@quandis/qbo4.ui 4.0.1-CI-20240405-163539 → 4.0.1-CI-20240405-221430

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see qbo4.ui.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4.ui=e())}(self,(()=>(()=>{var t={630:(t,e,r)=>{var o;!function(t){!function(e){var o="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=i(t);function i(t,e){return function(r,o){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:o}),e&&e(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(t,e){var r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,n=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return U(Object.create(null))}:a?function(){return U({__proto__:null})}:function(){return U({})},has:l?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},u=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var o=this._keys.length,n=r+1;n<o;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,M(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,o)},e.prototype.values=function(){return new r(this._keys,this._values,n)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!M(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(M(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function o(t,e){return t}function n(t,e){return e}function s(t,e){return[t,e]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),h="function"==typeof WeakMap?WeakMap:function(){var t=16,e=c.create(),o=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var t;do{t="@@WeakMap@@"+a()}while(c.has(e,t));return e[t]=!0,t}function i(t,e){if(!r.call(t,o)){if(!e)return;Object.defineProperty(t,o,{value:c.create()})}return t[o]}function s(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var e=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):s(e,t),e}return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",o=0;o<t;++o){var n=e[o];4!==o&&6!==o&&8!==o||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}(),f=o?Symbol.for("@reflect-metadata:registry"):void 0,b=function(){var t;return!A(f)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[f]),A(t)&&(t=function(){var t,r,o,n;A(f)||void 0===e.Reflect||f in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,o=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new h;return{isProviderFor:function(t,e){var r=s.get(t);return!(A(r)||!r.has(e))||!!n(t,e).length&&(A(r)&&(r=new p,s.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new h,s={registerProvider:a,getProvider:c,setProvider:b};return s;function a(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case A(r):r=e;break;case r===e:break;case A(o):o=e;break;case o===e:break;default:void 0===n&&(n=new p),n.add(e)}}function l(e,i){if(!A(r)){if(r.isProviderFor(e,i))return r;if(!A(o)){if(o.isProviderFor(e,i))return r;if(!A(n))for(var s=j(n);;){var a=N(s);if(!a)return;var l=D(a);if(l.isProviderFor(e,i))return z(s),l}}}if(!A(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,o=i.get(t);return A(o)||(r=o.get(e)),A(r)?(A(r=l(t,e))||(A(o)&&(o=new d,i.set(t,o)),o.set(e,r)),r):r}function u(t){if(A(t))throw new TypeError;return r===t||o===t||!A(n)&&n.has(t)}function b(t,e,r){if(!u(r))throw new Error("Metadata provider not registered.");var o=c(t,e);if(o!==r){if(!A(o))return!1;var n=i.get(t);A(n)&&(n=new d,i.set(t,n)),n.set(e,r)}return!0}}()),!A(f)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new h,r={isProviderFor:function(t,r){var o=e.get(t);return!A(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,n){o(r,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var n=o(e,r,!1);return!A(n)&&T(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var n=o(e,r,!1);if(!A(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],n=o(t,e,!1);if(A(n))return r;for(var i=j(n.keys()),s=0;;){var a=N(i);if(!a)return r.length=s,r;var l=D(a);try{r[s]=l}catch(t){try{z(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,n){var i=o(r,n,!1);if(A(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);A(s)||(s.delete(n),0===s.size&&e.delete(s))}return!0}};return b.registerProvider(r),r;function o(o,n,i){var s=e.get(o),a=!1;if(A(s)){if(!i)return;s=new d,e.set(o,s),a=!0}var l=s.get(n);if(A(l)){if(!i)return;if(l=new d,s.set(n,l),!t.setProvider(o,n,r))throw s.delete(n),a&&e.delete(o),new Error("Wrong provider for target.")}return l}}(b);function v(t,e,r){if(m(t,e,r))return!0;var o=H(e);return!E(o)&&v(t,o,r)}function m(t,e,r){var o=q(e,r,!1);return!A(o)&&T(o.OrdinaryHasOwnMetadata(t,e,r))}function y(t,e,r){if(m(t,e,r))return w(t,e,r);var o=H(e);return E(o)?void 0:y(t,o,r)}function w(t,e,r){var o=q(e,r,!1);if(!A(o))return o.OrdinaryGetOwnMetadata(t,e,r)}function _(t,e,r,o){q(r,o,!0).OrdinaryDefineOwnMetadata(t,e,r,o)}function x(t,e){var r=k(t,e),o=H(t);if(null===o)return r;var n=x(o,e);if(n.length<=0)return r;if(r.length<=0)return n;for(var i=new p,s=[],a=0,l=r;a<l.length;a++){var c=l[a];i.has(c)||(i.add(c),s.push(c))}for(var u=0,d=n;u<d.length;u++)c=d[u],i.has(c)||(i.add(c),s.push(c));return s}function k(t,e){var r=q(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function C(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function A(t){return void 0===t}function E(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function $(t,e){switch(C(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=L(t,n);if(void 0!==o){var i=o.call(t,r);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(P(r)&&!S(n=r.call(t)))return n;if(P(o=t.valueOf)&&!S(n=o.call(t)))return n}else{var o;if(P(o=t.valueOf)&&!S(n=o.call(t)))return n;var n,i=t.toString;if(P(i)&&!S(n=i.call(t)))return n}throw new TypeError}(t,"default"===r?"number":r)}function T(t){return!!t}function O(t){var e=$(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function I(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function P(t){return"function"==typeof t}function R(t){return"function"==typeof t}function M(t,e){return t===e||t!=t&&e!=e}function L(t,e){var r=t[e];if(null!=r){if(!P(r))throw new TypeError;return r}}function j(t){var e=L(t,i);if(!P(e))throw new TypeError;var r=e.call(t);if(!S(r))throw new TypeError;return r}function D(t){return t.value}function N(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function H(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===u)return e;if(e!==u)return e;var r=t.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return e;var n=o.constructor;return"function"!=typeof n||n===t?e:n}function q(t,e,r){var o=b.getProvider(t,e);if(!A(o))return o;if(r){if(b.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function U(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,o){if(A(r)){if(!I(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e);if(!A(o)&&!E(o)){if(!R(o))throw new TypeError;e=o}}return e}(t,e)}if(!I(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(o)&&!A(o)&&!E(o))throw new TypeError;return E(o)&&(o=void 0),function(t,e,r,o){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,r,o);if(!A(i)&&!E(i)){if(!S(i))throw new TypeError;o=i}}return o}(t,e,r=O(r),o)})),t("metadata",(function(t,e){return function(r,o){if(!S(r))throw new TypeError;if(!A(o)&&!function(t){switch(C(t)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(t,e,r,o)}})),t("defineMetadata",(function(t,e,r,o){if(!S(r))throw new TypeError;return A(o)||(o=O(o)),_(t,e,r,o)})),t("hasMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),m(t,e,r)})),t("getMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),y(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return A(e)||(e=O(e)),x(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return A(e)||(e=O(e)),k(t,e)})),t("deleteMetadata",(function(t,e,r){if(!S(e))throw new TypeError;if(A(r)||(r=O(r)),!S(e))throw new TypeError;A(r)||(r=O(r));var o=q(e,r,!1);return!A(o)&&o.OrdinaryDeleteMetadata(t,e,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=t)}()}(o||(o={}))}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{ApiServiceComponent:()=>PT,EmailValidator:()=>Ow,ExistsValidator:()=>Iw,IApiServiceToken:()=>ww,QboBadge:()=>Tx,QboDataList:()=>Px,QboDocViewer:()=>Lx,QboFormElement:()=>zx,QboMainMenu:()=>Y$,QboMarkdown:()=>eT,QboMicrophone:()=>iT,QboPopover:()=>lT,QboPopup:()=>fT,QboPopupListener:()=>vT,QboSelect:()=>wT,QboSideBar:()=>kT,QboTable:()=>ET,QboValidate:()=>TT,RestApiService:()=>Ew,ValidateToken:()=>xw,ZipCodeValidator:()=>Tw,getApiService:()=>_w,getArray:()=>kw,registerRestApi:()=>Sw,replicate:()=>Aw,services:()=>R,substitute:()=>Cw});var t={};r.r(t),r.d(t,{afterMain:()=>ik,afterRead:()=>rk,afterWrite:()=>lk,applyStyles:()=>bk,arrow:()=>Lk,auto:()=>Vx,basePlacements:()=>Fx,beforeMain:()=>ok,beforeRead:()=>tk,beforeWrite:()=>sk,bottom:()=>qx,clippingParents:()=>Xx,computeStyles:()=>zk,createPopper:()=>fC,createPopperBase:()=>hC,createPopperLite:()=>bC,detectOverflow:()=>tC,end:()=>Kx,eventListeners:()=>qk,flip:()=>eC,hide:()=>nC,left:()=>Bx,main:()=>nk,modifierPhases:()=>ck,offset:()=>iC,placements:()=>Zx,popper:()=>Jx,popperGenerator:()=>pC,popperOffsets:()=>sC,preventOverflow:()=>aC,read:()=>ek,reference:()=>Qx,right:()=>Ux,start:()=>Wx,top:()=>Hx,variationPlacements:()=>Yx,viewport:()=>Gx,write:()=>ak}),r(630);const e="LoggerToken";var n,i,s;(s=n||(n={}))[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Information=2]="Information",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(i||(i={}));const a=i;var l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},l(t,e)};function c(t,e){function r(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function u(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function h(t){return!!t.useClass}function f(t){return!!t.useFactory}var b=function(){function t(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return t.prototype.createProxy=function(t){var e,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(e=t(r.wrap()),o=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(r){e[r]=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e[0]=t(),Reflect[r].apply(void 0,p(e))}})),e},t}();function g(t){return"string"==typeof t||"symbol"==typeof t}function v(t){return"object"==typeof t&&"token"in t&&"transform"in t}function m(t){return!!t.useToken}function y(t){return null!=t.useValue}const w=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(w),x=function(){this.scopedResolutions=new Map};var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(w),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(w);const A=function(){this.preResolution=new k,this.postResolution=new C};var E=new Map,S=function(){function t(t){this.parent=t,this._registry=new _,this.interceptors=new A,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,r){var o;if(void 0===r&&(r={lifecycle:a.Transient}),this.ensureNotDisposed(),o=function(t){return h(t)||y(t)||m(t)||f(t)}(e)?e:{useClass:e},m(o))for(var n=[t],i=o;null!=i;){var s=i.useToken;if(n.includes(s))throw new Error("Token registration cycle detected! "+p(n,[s]).join(" -> "));n.push(s);var l=this._registry.get(s);i=l&&m(l.provider)?l.provider:null}if((r.lifecycle===a.Singleton||r.lifecycle==a.ContainerScoped||r.lifecycle==a.ResolutionScoped)&&(y(o)||f(o)))throw new Error('Cannot use lifecycle "'+a[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:o,options:r}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),g(e)?this.register(t,{useToken:e}):this.register(t,{useClass:e})},t.prototype.registerInstance=function(t,e){return this.ensureNotDisposed(),this.register(t,{useValue:e})},t.prototype.registerSingleton=function(t,e){if(this.ensureNotDisposed(),g(t)){if(g(e))return this.register(t,{useToken:e},{lifecycle:a.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:a.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=t;return e&&!g(e)&&(r=e),this.register(t,{useClass:r},{lifecycle:a.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new x),this.ensureNotDisposed();var r=this.getRegistration(t);if(!r&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),r){var o=this.resolveRegistration(r,e);return this.executePostResolutionInterceptor(t,o,"Single"),o}if(function(t){return"function"==typeof t||t instanceof b}(t))return o=this.construct(t,e),this.executePostResolutionInterceptor(t,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},t.prototype.executePreResolutionInterceptor=function(t,e){var r,o;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=u(this.interceptors.preResolution.getAll(t)),s=i.next();!s.done;s=i.next()){var a=s.value;"Once"!=a.options.frequency&&n.push(a),a.callback(t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,r){var o,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var s=u(this.interceptors.postResolution.getAll(t)),a=s.next();!a.done;a=s.next()){var l=a.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e,r)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var r,o=t.options.lifecycle===a.Singleton,n=t.options.lifecycle===a.ContainerScoped,i=o||n;return r=y(t.provider)?t.provider.useValue:m(t.provider)?i?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):h(t.provider)?i?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):f(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.set(t,r),r},t.prototype.resolveAll=function(t,e){var r=this;void 0===e&&(e=new x),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),o){var n=o.map((function(t){return r.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,n,"All"),n}var i=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,i,"All"),i},t.prototype.isRegistered=function(t,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(t)||e&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},t.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},t.prototype.clearInstances=function(){var t,e;this.ensureNotDisposed();try{for(var r=u(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=d(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(t){return!y(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,r;this.ensureNotDisposed();var o=new t(this);try{for(var n=u(this._registry.entries()),i=n.next();!i.done;i=n.next()){var s=d(i.value,2),l=s[0],c=s[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&o._registry.setAll(l,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return o},t.prototype.beforeResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:r})},t.prototype.afterResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:r})},t.prototype.dispose=function(){return function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function s(t){try{l(o.next(t))}catch(t){i(t)}}function a(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var r,o,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var r=e.dispose();r&&t.push(r)})),[4,Promise.all(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},t.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},t.prototype.construct=function(t,e){var r=this;if(t instanceof b)return t.createProxy((function(t){return r.resolve(t,e)}));var o,n=function(){var o=E.get(t);if(!o||0===o.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=o.map(r.resolveParams(e,t));return new(t.bind.apply(t,p([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var r=this;return function(o,n){var i,s,a,l;try{return"object"==typeof(l=o)&&"token"in l&&"multiple"in l?v(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,p([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,p([r.resolve(o.token,t)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,t):v(o)?(a=r.resolve(o.transform,t)).transform.apply(a,p([r.resolve(o.token,t)],o.transformArgs)):r.resolve(o,t)}catch(t){throw new Error(function(t,e,r){var o,n,i,s,a=d(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],l=(n=e,null===(o=void 0===a?null:a)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n);return i="Cannot inject the dependency "+l+' of "'+t.name+'" constructor. Reason:',void 0===s&&(s=" "),p([i],r.message.split("\n").map((function(t){return s+t}))).join("\n")}(e,n,t))}}},t.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},t}(),$=new S,T="injectionTokens";function O(t,e){return function(r,o,n){var i=Reflect.getOwnMetadata(T,r)||{};i[n]=e?{token:t,transform:e.transformToken,transformArgs:e.args||[]}:t,Reflect.defineMetadata(T,i,r)}}const I=function(){return function(t){E.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],r=Reflect.getOwnMetadata(T,t)||{};return Object.keys(r).forEach((function(t){e[+t]=r[t]})),e}(t))}},P=function(t){return O({token:t,multiple:!0})};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new class{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}($.createChildContainer(),{});const R=window.qbo4.services,M="IConfigurationSourceToken",L="IConfigurationToken";function*j(t,e=""){for(const[r,o]of Object.entries(t)){const t=e?`${e}:${r}`:r;if(Array.isArray(o))for(let e=0;e<o.length;e++){const r=o[e];"object"==typeof r&&null!==r?yield*j(r,`${t}:${e}`):yield{key:`${t}:${e}`,value:r}}else"object"==typeof o&&null!==o?yield*j(o,t):yield{key:t,value:o}}}class D{constructor(t){this.jsonConfig=t}getData(){return this.jsonConfig}*getValues(){yield*j(this.jsonConfig)}}class N{constructor(t){this.data=t}getSection(t){const e=t.split(":");let r=this.data;for(const t of e){if(!(t in r))return new N({});r=r[t]}return new N(r)}get(t){const e=t.split(":");let r=this.data;for(const t of e){if(!r||!(t in r))return{};r=r[t]}return r}bind(t){const e=new t;for(const t in this.data)this.data.hasOwnProperty(t)&&(e[t]=this.data[t]);return e}*getValues(){yield*j(this.data)}}let z=class extends N{constructor(t){super({}),this.sources=t,this.mergeConfigurations(t)}mergeConfigurations(t){t.forEach((t=>{const e=t.getData();this.data={...this.data,...e}}))}};var H,q;z=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([I(),(H=0,q=P(M),function(t,e){q(t,e,H)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array])],z),R.container.register(L,{useClass:z},{lifecycle:a.Singleton}),R.container.register(M,{useClass:class{getData(){return{}}*getValues(){yield*j({})}}},{lifecycle:a.Singleton});const U=globalThis,B=U.ShadowRoot&&(void 0===U.ShadyCSS||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),F=new WeakMap;class W{constructor(t,e,r){if(this._$cssResult$=!0,r!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=F.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&F.set(e,t))}return t}toString(){return this.cssText}}const K=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new W(r,t,V)},X=B?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new W("string"==typeof t?t:t+"",void 0,V))(e)})(t):t,{is:G,defineProperty:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Y,getOwnPropertySymbols:Z,getPrototypeOf:tt}=Object,et=globalThis,rt=et.trustedTypes,ot=rt?rt.emptyScript:"",nt=et.reactiveElementPolyfillSupport,it=(t,e)=>t,st={toAttribute(t,e){switch(e){case Boolean:t=t?ot:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},at=(t,e)=>!G(t,e),lt={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:at};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;class ct extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=lt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(t,r,e);void 0!==o&&J(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=Q(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const i=o?.call(this);n.call(this,e),this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??lt}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=tt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const t=this.properties,e=[...Y(t),...Z(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(X(t))}else void 0!==t&&e.push(X(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(B)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=U.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:st).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:st;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??at)(this[t],e))return;this.P(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[it("elementProperties")]=new Map,ct[it("finalized")]=new Map,nt?.({ReactiveElement:ct}),(et.reactiveElementVersions??=[]).push("2.0.4");const ut=globalThis,dt=ut.trustedTypes,pt=dt?dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,ht="$lit$",ft=`lit$${(Math.random()+"").slice(9)}$`,bt="?"+ft,gt=`<${bt}>`,vt=document,mt=()=>vt.createComment(""),yt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,wt=Array.isArray,_t="[ \t\n\f\r]",xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kt=/-->/g,Ct=/>/g,At=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Et=/'/g,St=/"/g,$t=/^(?:script|style|textarea|title)$/i,Tt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ot=Tt(1),It=(Tt(2),Symbol.for("lit-noChange")),Pt=Symbol.for("lit-nothing"),Rt=new WeakMap,Mt=vt.createTreeWalker(vt,129);function Lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pt?pt.createHTML(e):e}const jt=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=xt;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===xt?"!--"===l[1]?s=kt:void 0!==l[1]?s=Ct:void 0!==l[2]?($t.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=At):void 0!==l[3]&&(s=At):s===At?">"===l[0]?(s=n??xt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?At:'"'===l[3]?St:Et):s===St||s===Et?s=At:s===kt||s===Ct?s=xt:(s=At,n=void 0);const d=s===At&&t[e+1].startsWith("/>")?" ":"";i+=s===xt?r+gt:c>=0?(o.push(a),r.slice(0,c)+ht+r.slice(c)+ft+d):r+ft+(-2===c?e:d)}return[Lt(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]};class Dt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=jt(t,e);if(this.el=Dt.createElement(l,r),Mt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Mt.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(ht)){const e=c[i++],r=o.getAttribute(t).split(ft),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?Ut:"?"===s[1]?Bt:"@"===s[1]?Vt:qt}),o.removeAttribute(t)}else t.startsWith(ft)&&(a.push({type:6,index:n}),o.removeAttribute(t));if($t.test(o.tagName)){const t=o.textContent.split(ft),e=t.length-1;if(e>0){o.textContent=dt?dt.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],mt()),Mt.nextNode(),a.push({type:2,index:++n});o.append(t[e],mt())}}}else if(8===o.nodeType)if(o.data===bt)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(ft,t+1));)a.push({type:7,index:n}),t+=ft.length-1}n++}}static createElement(t,e){const r=vt.createElement("template");return r.innerHTML=t,r}}function Nt(t,e,r=t,o){if(e===It)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=yt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(e=Nt(t,n._$AS(t,e.values),n,o)),e}class zt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??vt).importNode(e,!0);Mt.currentNode=o;let n=Mt.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Ht(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Ft(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=Mt.nextNode(),i++)}return Mt.currentNode=vt,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Ht{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=Pt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Nt(this,t,e),yt(t)?t===Pt||null==t||""===t?(this._$AH!==Pt&&this._$AR(),this._$AH=Pt):t!==this._$AH&&t!==It&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>wt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==Pt&&yt(this._$AH)?this._$AA.nextSibling.data=t:this.T(vt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Dt.createElement(Lt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new zt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=Rt.get(t.strings);return void 0===e&&Rt.set(t.strings,e=new Dt(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new Ht(this.S(mt()),this.S(mt()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class qt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=Pt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Pt}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Nt(this,t,e,0),i=!yt(t)||t!==this._$AH&&t!==It,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Nt(this,o[r+s],e,s),a===It&&(a=this._$AH[s]),i||=!yt(a)||a!==this._$AH[s],a===Pt?t=Pt:t!==Pt&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===Pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ut extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Pt?void 0:t}}class Bt extends qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Pt)}}class Vt extends qt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Nt(this,t,e,0)??Pt)===It)return;const r=this._$AH,o=t===Pt&&r!==Pt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==Pt&&(r===Pt||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Ft{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Nt(this,t)}}const Wt=ut.litHtmlPolyfillSupport;Wt?.(Dt,Ht),(ut.litHtmlVersions??=[]).push("3.1.2");const Kt=(t,e,r)=>{const o=r?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=r?.renderBefore??null;o._$litPart$=n=new Ht(e.insertBefore(mt(),t),t,void 0,r??{})}return n._$AI(t),n};class Xt extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return It}}Xt._$litElement$=!0,Xt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Xt});const Gt=globalThis.litElementPolyfillSupport;Gt?.({LitElement:Xt}),(globalThis.litElementVersions??=[]).push("4.0.4");const Jt={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:at},Qt=(t=Jt,e,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),"accessor"===o){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};var Yt;class Zt extends Xt{static get formAssociated(){return!0}static{this.styles=K`
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4.ui=e())}(self,(()=>(()=>{var t={630:(t,e,r)=>{var o;!function(t){!function(e){var o="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=i(t);function i(t,e){return function(r,o){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:o}),e&&e(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(t,e){var r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,n=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return U(Object.create(null))}:a?function(){return U({__proto__:null})}:function(){return U({})},has:l?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},u=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var o=this._keys.length,n=r+1;n<o;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,M(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,o)},e.prototype.values=function(){return new r(this._keys,this._values,n)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!M(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(M(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function o(t,e){return t}function n(t,e){return e}function s(t,e){return[t,e]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),h="function"==typeof WeakMap?WeakMap:function(){var t=16,e=c.create(),o=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var t;do{t="@@WeakMap@@"+a()}while(c.has(e,t));return e[t]=!0,t}function i(t,e){if(!r.call(t,o)){if(!e)return;Object.defineProperty(t,o,{value:c.create()})}return t[o]}function s(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var e=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):s(e,t),e}return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",o=0;o<t;++o){var n=e[o];4!==o&&6!==o&&8!==o||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}(),f=o?Symbol.for("@reflect-metadata:registry"):void 0,b=function(){var t;return!A(f)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[f]),A(t)&&(t=function(){var t,r,o,n;A(f)||void 0===e.Reflect||f in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,o=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new h;return{isProviderFor:function(t,e){var r=s.get(t);return!(A(r)||!r.has(e))||!!n(t,e).length&&(A(r)&&(r=new p,s.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new h,s={registerProvider:a,getProvider:c,setProvider:b};return s;function a(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case A(r):r=e;break;case r===e:break;case A(o):o=e;break;case o===e:break;default:void 0===n&&(n=new p),n.add(e)}}function l(e,i){if(!A(r)){if(r.isProviderFor(e,i))return r;if(!A(o)){if(o.isProviderFor(e,i))return r;if(!A(n))for(var s=j(n);;){var a=N(s);if(!a)return;var l=D(a);if(l.isProviderFor(e,i))return z(s),l}}}if(!A(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,o=i.get(t);return A(o)||(r=o.get(e)),A(r)?(A(r=l(t,e))||(A(o)&&(o=new d,i.set(t,o)),o.set(e,r)),r):r}function u(t){if(A(t))throw new TypeError;return r===t||o===t||!A(n)&&n.has(t)}function b(t,e,r){if(!u(r))throw new Error("Metadata provider not registered.");var o=c(t,e);if(o!==r){if(!A(o))return!1;var n=i.get(t);A(n)&&(n=new d,i.set(t,n)),n.set(e,r)}return!0}}()),!A(f)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new h,r={isProviderFor:function(t,r){var o=e.get(t);return!A(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,n){o(r,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var n=o(e,r,!1);return!A(n)&&T(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var n=o(e,r,!1);if(!A(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],n=o(t,e,!1);if(A(n))return r;for(var i=j(n.keys()),s=0;;){var a=N(i);if(!a)return r.length=s,r;var l=D(a);try{r[s]=l}catch(t){try{z(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,n){var i=o(r,n,!1);if(A(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);A(s)||(s.delete(n),0===s.size&&e.delete(s))}return!0}};return b.registerProvider(r),r;function o(o,n,i){var s=e.get(o),a=!1;if(A(s)){if(!i)return;s=new d,e.set(o,s),a=!0}var l=s.get(n);if(A(l)){if(!i)return;if(l=new d,s.set(n,l),!t.setProvider(o,n,r))throw s.delete(n),a&&e.delete(o),new Error("Wrong provider for target.")}return l}}(b);function v(t,e,r){if(m(t,e,r))return!0;var o=H(e);return!E(o)&&v(t,o,r)}function m(t,e,r){var o=q(e,r,!1);return!A(o)&&T(o.OrdinaryHasOwnMetadata(t,e,r))}function y(t,e,r){if(m(t,e,r))return w(t,e,r);var o=H(e);return E(o)?void 0:y(t,o,r)}function w(t,e,r){var o=q(e,r,!1);if(!A(o))return o.OrdinaryGetOwnMetadata(t,e,r)}function _(t,e,r,o){q(r,o,!0).OrdinaryDefineOwnMetadata(t,e,r,o)}function x(t,e){var r=k(t,e),o=H(t);if(null===o)return r;var n=x(o,e);if(n.length<=0)return r;if(r.length<=0)return n;for(var i=new p,s=[],a=0,l=r;a<l.length;a++){var c=l[a];i.has(c)||(i.add(c),s.push(c))}for(var u=0,d=n;u<d.length;u++)c=d[u],i.has(c)||(i.add(c),s.push(c));return s}function k(t,e){var r=q(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function C(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function A(t){return void 0===t}function E(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function $(t,e){switch(C(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=L(t,n);if(void 0!==o){var i=o.call(t,r);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(P(r)&&!S(n=r.call(t)))return n;if(P(o=t.valueOf)&&!S(n=o.call(t)))return n}else{var o;if(P(o=t.valueOf)&&!S(n=o.call(t)))return n;var n,i=t.toString;if(P(i)&&!S(n=i.call(t)))return n}throw new TypeError}(t,"default"===r?"number":r)}function T(t){return!!t}function O(t){var e=$(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function I(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function P(t){return"function"==typeof t}function R(t){return"function"==typeof t}function M(t,e){return t===e||t!=t&&e!=e}function L(t,e){var r=t[e];if(null!=r){if(!P(r))throw new TypeError;return r}}function j(t){var e=L(t,i);if(!P(e))throw new TypeError;var r=e.call(t);if(!S(r))throw new TypeError;return r}function D(t){return t.value}function N(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function H(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===u)return e;if(e!==u)return e;var r=t.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return e;var n=o.constructor;return"function"!=typeof n||n===t?e:n}function q(t,e,r){var o=b.getProvider(t,e);if(!A(o))return o;if(r){if(b.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function U(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,o){if(A(r)){if(!I(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e);if(!A(o)&&!E(o)){if(!R(o))throw new TypeError;e=o}}return e}(t,e)}if(!I(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(o)&&!A(o)&&!E(o))throw new TypeError;return E(o)&&(o=void 0),function(t,e,r,o){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,r,o);if(!A(i)&&!E(i)){if(!S(i))throw new TypeError;o=i}}return o}(t,e,r=O(r),o)})),t("metadata",(function(t,e){return function(r,o){if(!S(r))throw new TypeError;if(!A(o)&&!function(t){switch(C(t)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(t,e,r,o)}})),t("defineMetadata",(function(t,e,r,o){if(!S(r))throw new TypeError;return A(o)||(o=O(o)),_(t,e,r,o)})),t("hasMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),m(t,e,r)})),t("getMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),y(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return A(r)||(r=O(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return A(e)||(e=O(e)),x(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return A(e)||(e=O(e)),k(t,e)})),t("deleteMetadata",(function(t,e,r){if(!S(e))throw new TypeError;if(A(r)||(r=O(r)),!S(e))throw new TypeError;A(r)||(r=O(r));var o=q(e,r,!1);return!A(o)&&o.OrdinaryDeleteMetadata(t,e,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=t)}()}(o||(o={}))}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{ApiServiceComponent:()=>OT,EmailValidator:()=>d_,ExistsValidator:()=>p_,IApiServiceToken:()=>e_,QboBadge:()=>Sx,QboDataList:()=>Ox,QboDocViewer:()=>Rx,QboFormElement:()=>Dx,QboMainMenu:()=>J$,QboMarkdown:()=>Z$,QboMicrophone:()=>oT,QboPopover:()=>sT,QboPopup:()=>pT,QboPopupListener:()=>bT,QboSelect:()=>mT,QboSideBar:()=>_T,QboTable:()=>CT,QboValidate:()=>ST,RestApiService:()=>a_,ValidateToken:()=>o_,ZipCodeValidator:()=>u_,getApiService:()=>r_,getArray:()=>n_,registerRestApi:()=>l_,replicate:()=>s_,services:()=>R,substitute:()=>i_});var t={};r.r(t),r.d(t,{afterMain:()=>ok,afterRead:()=>tk,afterWrite:()=>sk,applyStyles:()=>hk,arrow:()=>Rk,auto:()=>Ux,basePlacements:()=>Bx,beforeMain:()=>ek,beforeRead:()=>Yx,beforeWrite:()=>nk,bottom:()=>zx,clippingParents:()=>Wx,computeStyles:()=>Dk,createPopper:()=>pC,createPopperBase:()=>dC,createPopperLite:()=>hC,detectOverflow:()=>Yk,end:()=>Vx,eventListeners:()=>zk,flip:()=>Zk,hide:()=>rC,left:()=>qx,main:()=>rk,modifierPhases:()=>ak,offset:()=>oC,placements:()=>Qx,popper:()=>Xx,popperGenerator:()=>uC,popperOffsets:()=>nC,preventOverflow:()=>iC,read:()=>Zx,reference:()=>Gx,right:()=>Hx,start:()=>Fx,top:()=>Nx,variationPlacements:()=>Jx,viewport:()=>Kx,write:()=>ik}),r(630);const e="LoggerToken";var n,i,s;(s=n||(n={}))[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Information=2]="Information",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(i||(i={}));const a=i;var l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},l(t,e)};function c(t,e){function r(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function u(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function h(t){return!!t.useClass}function f(t){return!!t.useFactory}var b=function(){function t(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return t.prototype.createProxy=function(t){var e,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(e=t(r.wrap()),o=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(r){e[r]=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e[0]=t(),Reflect[r].apply(void 0,p(e))}})),e},t}();function g(t){return"string"==typeof t||"symbol"==typeof t}function v(t){return"object"==typeof t&&"token"in t&&"transform"in t}function m(t){return!!t.useToken}function y(t){return null!=t.useValue}const w=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(w),x=function(){this.scopedResolutions=new Map};var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(w),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(w);const A=function(){this.preResolution=new k,this.postResolution=new C};var E=new Map,S=function(){function t(t){this.parent=t,this._registry=new _,this.interceptors=new A,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,r){var o;if(void 0===r&&(r={lifecycle:a.Transient}),this.ensureNotDisposed(),o=function(t){return h(t)||y(t)||m(t)||f(t)}(e)?e:{useClass:e},m(o))for(var n=[t],i=o;null!=i;){var s=i.useToken;if(n.includes(s))throw new Error("Token registration cycle detected! "+p(n,[s]).join(" -> "));n.push(s);var l=this._registry.get(s);i=l&&m(l.provider)?l.provider:null}if((r.lifecycle===a.Singleton||r.lifecycle==a.ContainerScoped||r.lifecycle==a.ResolutionScoped)&&(y(o)||f(o)))throw new Error('Cannot use lifecycle "'+a[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:o,options:r}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),g(e)?this.register(t,{useToken:e}):this.register(t,{useClass:e})},t.prototype.registerInstance=function(t,e){return this.ensureNotDisposed(),this.register(t,{useValue:e})},t.prototype.registerSingleton=function(t,e){if(this.ensureNotDisposed(),g(t)){if(g(e))return this.register(t,{useToken:e},{lifecycle:a.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:a.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=t;return e&&!g(e)&&(r=e),this.register(t,{useClass:r},{lifecycle:a.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new x),this.ensureNotDisposed();var r=this.getRegistration(t);if(!r&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),r){var o=this.resolveRegistration(r,e);return this.executePostResolutionInterceptor(t,o,"Single"),o}if(function(t){return"function"==typeof t||t instanceof b}(t))return o=this.construct(t,e),this.executePostResolutionInterceptor(t,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},t.prototype.executePreResolutionInterceptor=function(t,e){var r,o;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=u(this.interceptors.preResolution.getAll(t)),s=i.next();!s.done;s=i.next()){var a=s.value;"Once"!=a.options.frequency&&n.push(a),a.callback(t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,r){var o,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var s=u(this.interceptors.postResolution.getAll(t)),a=s.next();!a.done;a=s.next()){var l=a.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e,r)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var r,o=t.options.lifecycle===a.Singleton,n=t.options.lifecycle===a.ContainerScoped,i=o||n;return r=y(t.provider)?t.provider.useValue:m(t.provider)?i?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):h(t.provider)?i?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):f(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.set(t,r),r},t.prototype.resolveAll=function(t,e){var r=this;void 0===e&&(e=new x),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),o){var n=o.map((function(t){return r.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,n,"All"),n}var i=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,i,"All"),i},t.prototype.isRegistered=function(t,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(t)||e&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},t.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},t.prototype.clearInstances=function(){var t,e;this.ensureNotDisposed();try{for(var r=u(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=d(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(t){return!y(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,r;this.ensureNotDisposed();var o=new t(this);try{for(var n=u(this._registry.entries()),i=n.next();!i.done;i=n.next()){var s=d(i.value,2),l=s[0],c=s[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&o._registry.setAll(l,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return o},t.prototype.beforeResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:r})},t.prototype.afterResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:r})},t.prototype.dispose=function(){return function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function s(t){try{l(o.next(t))}catch(t){i(t)}}function a(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var r,o,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var r=e.dispose();r&&t.push(r)})),[4,Promise.all(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},t.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},t.prototype.construct=function(t,e){var r=this;if(t instanceof b)return t.createProxy((function(t){return r.resolve(t,e)}));var o,n=function(){var o=E.get(t);if(!o||0===o.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=o.map(r.resolveParams(e,t));return new(t.bind.apply(t,p([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var r=this;return function(o,n){var i,s,a,l;try{return"object"==typeof(l=o)&&"token"in l&&"multiple"in l?v(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,p([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,p([r.resolve(o.token,t)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,t):v(o)?(a=r.resolve(o.transform,t)).transform.apply(a,p([r.resolve(o.token,t)],o.transformArgs)):r.resolve(o,t)}catch(t){throw new Error(function(t,e,r){var o,n,i,s,a=d(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],l=(n=e,null===(o=void 0===a?null:a)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n);return i="Cannot inject the dependency "+l+' of "'+t.name+'" constructor. Reason:',void 0===s&&(s=" "),p([i],r.message.split("\n").map((function(t){return s+t}))).join("\n")}(e,n,t))}}},t.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},t}(),$=new S,T="injectionTokens";function O(t,e){return function(r,o,n){var i=Reflect.getOwnMetadata(T,r)||{};i[n]=e?{token:t,transform:e.transformToken,transformArgs:e.args||[]}:t,Reflect.defineMetadata(T,i,r)}}const I=function(){return function(t){E.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],r=Reflect.getOwnMetadata(T,t)||{};return Object.keys(r).forEach((function(t){e[+t]=r[t]})),e}(t))}},P=function(t){return O({token:t,multiple:!0})};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new class{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}($.createChildContainer(),{});const R=window.qbo4.services,M="IConfigurationSourceToken",L="IConfigurationToken";function*j(t,e=""){for(const[r,o]of Object.entries(t)){const t=e?`${e}:${r}`:r;if(Array.isArray(o))for(let e=0;e<o.length;e++){const r=o[e];"object"==typeof r&&null!==r?yield*j(r,`${t}:${e}`):yield{key:`${t}:${e}`,value:r}}else"object"==typeof o&&null!==o?yield*j(o,t):yield{key:t,value:o}}}class D{constructor(t){this.jsonConfig=t}getData(){return this.jsonConfig}*getValues(){yield*j(this.jsonConfig)}}class N{constructor(t){this.data=t}getSection(t){const e=t.split(":");let r=this.data;for(const t of e){if(!(t in r))return new N({});r=r[t]}return new N(r)}get(t){const e=t.split(":");let r=this.data;for(const t of e){if(!r||!(t in r))return{};r=r[t]}return r}bind(t){const e=new t;for(const t in this.data)this.data.hasOwnProperty(t)&&(e[t]=this.data[t]);return e}*getValues(){yield*j(this.data)}}let z=class extends N{constructor(t){super({}),this.sources=t,this.mergeConfigurations(t)}mergeConfigurations(t){t.forEach((t=>{const e=t.getData();this.data={...this.data,...e}}))}};var H,q;z=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([I(),(H=0,q=P(M),function(t,e){q(t,e,H)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array])],z),R.container.register(L,{useClass:z},{lifecycle:a.Singleton}),R.container.register(M,{useClass:class{getData(){return{}}*getValues(){yield*j({})}}},{lifecycle:a.Singleton});const U=globalThis,B=U.ShadowRoot&&(void 0===U.ShadyCSS||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,F=Symbol(),V=new WeakMap;class W{constructor(t,e,r){if(this._$cssResult$=!0,r!==F)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=V.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&V.set(e,t))}return t}toString(){return this.cssText}}const K=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new W(r,t,F)},X=B?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new W("string"==typeof t?t:t+"",void 0,F))(e)})(t):t,{is:G,defineProperty:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Y,getOwnPropertySymbols:Z,getPrototypeOf:tt}=Object,et=globalThis,rt=et.trustedTypes,ot=rt?rt.emptyScript:"",nt=et.reactiveElementPolyfillSupport,it=(t,e)=>t,st={toAttribute(t,e){switch(e){case Boolean:t=t?ot:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},at=(t,e)=>!G(t,e),lt={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:at};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;class ct extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=lt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(t,r,e);void 0!==o&&J(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=Q(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const i=o?.call(this);n.call(this,e),this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??lt}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=tt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const t=this.properties,e=[...Y(t),...Z(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(X(t))}else void 0!==t&&e.push(X(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(B)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=U.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:st).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:st;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??at)(this[t],e))return;this.P(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[it("elementProperties")]=new Map,ct[it("finalized")]=new Map,nt?.({ReactiveElement:ct}),(et.reactiveElementVersions??=[]).push("2.0.4");const ut=globalThis,dt=ut.trustedTypes,pt=dt?dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,ht="$lit$",ft=`lit$${(Math.random()+"").slice(9)}$`,bt="?"+ft,gt=`<${bt}>`,vt=document,mt=()=>vt.createComment(""),yt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,wt=Array.isArray,_t="[ \t\n\f\r]",xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kt=/-->/g,Ct=/>/g,At=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Et=/'/g,St=/"/g,$t=/^(?:script|style|textarea|title)$/i,Tt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ot=Tt(1),It=(Tt(2),Symbol.for("lit-noChange")),Pt=Symbol.for("lit-nothing"),Rt=new WeakMap,Mt=vt.createTreeWalker(vt,129);function Lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pt?pt.createHTML(e):e}const jt=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=xt;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===xt?"!--"===l[1]?s=kt:void 0!==l[1]?s=Ct:void 0!==l[2]?($t.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=At):void 0!==l[3]&&(s=At):s===At?">"===l[0]?(s=n??xt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?At:'"'===l[3]?St:Et):s===St||s===Et?s=At:s===kt||s===Ct?s=xt:(s=At,n=void 0);const d=s===At&&t[e+1].startsWith("/>")?" ":"";i+=s===xt?r+gt:c>=0?(o.push(a),r.slice(0,c)+ht+r.slice(c)+ft+d):r+ft+(-2===c?e:d)}return[Lt(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]};class Dt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=jt(t,e);if(this.el=Dt.createElement(l,r),Mt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Mt.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(ht)){const e=c[i++],r=o.getAttribute(t).split(ft),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?Ut:"?"===s[1]?Bt:"@"===s[1]?Ft:qt}),o.removeAttribute(t)}else t.startsWith(ft)&&(a.push({type:6,index:n}),o.removeAttribute(t));if($t.test(o.tagName)){const t=o.textContent.split(ft),e=t.length-1;if(e>0){o.textContent=dt?dt.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],mt()),Mt.nextNode(),a.push({type:2,index:++n});o.append(t[e],mt())}}}else if(8===o.nodeType)if(o.data===bt)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(ft,t+1));)a.push({type:7,index:n}),t+=ft.length-1}n++}}static createElement(t,e){const r=vt.createElement("template");return r.innerHTML=t,r}}function Nt(t,e,r=t,o){if(e===It)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=yt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(e=Nt(t,n._$AS(t,e.values),n,o)),e}class zt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??vt).importNode(e,!0);Mt.currentNode=o;let n=Mt.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Ht(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Vt(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=Mt.nextNode(),i++)}return Mt.currentNode=vt,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Ht{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=Pt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Nt(this,t,e),yt(t)?t===Pt||null==t||""===t?(this._$AH!==Pt&&this._$AR(),this._$AH=Pt):t!==this._$AH&&t!==It&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>wt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==Pt&&yt(this._$AH)?this._$AA.nextSibling.data=t:this.T(vt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Dt.createElement(Lt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new zt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=Rt.get(t.strings);return void 0===e&&Rt.set(t.strings,e=new Dt(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new Ht(this.S(mt()),this.S(mt()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class qt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=Pt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Pt}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Nt(this,t,e,0),i=!yt(t)||t!==this._$AH&&t!==It,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Nt(this,o[r+s],e,s),a===It&&(a=this._$AH[s]),i||=!yt(a)||a!==this._$AH[s],a===Pt?t=Pt:t!==Pt&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===Pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ut extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Pt?void 0:t}}class Bt extends qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Pt)}}class Ft extends qt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Nt(this,t,e,0)??Pt)===It)return;const r=this._$AH,o=t===Pt&&r!==Pt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==Pt&&(r===Pt||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Vt{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Nt(this,t)}}const Wt=ut.litHtmlPolyfillSupport;Wt?.(Dt,Ht),(ut.litHtmlVersions??=[]).push("3.1.2");class Kt extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const o=r?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=r?.renderBefore??null;o._$litPart$=n=new Ht(e.insertBefore(mt(),t),t,void 0,r??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return It}}Kt._$litElement$=!0,Kt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Kt});const Xt=globalThis.litElementPolyfillSupport;Xt?.({LitElement:Kt}),(globalThis.litElementVersions??=[]).push("4.0.4");const Gt={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:at},Jt=(t=Gt,e,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),"accessor"===o){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};var Qt;class Yt extends Kt{static get formAssociated(){return!0}static{this.styles=K`
3
3
  :host {
4
4
  display: block;
5
5
  padding: 16px;
@@ -21,15 +21,15 @@
21
21
  <button class="btn btn-secondary" @click="${this.cancelChanges}">Cancel</button>
22
22
  </div>
23
23
  </form>
24
- `}}(function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);i>3&&s&&Object.defineProperty(e,r,s)})([(Yt={type:String},(t,e)=>"object"==typeof e?Qt(Yt,t,e):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(Yt,t,e)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],Zt.prototype,"value",void 0),customElements.define("qbo-config-editor",Zt);const te="LoggerServiceToken";R.container.register(e,{useClass:class{logTrace(t,...e){console.debug(t,...e)}logDebug(t,...e){console.debug(t,...e)}logInformation(t,...e){console.info(t,...e)}logWarning(t,...e){console.warn(t,...e)}logError(t,e,...r){console.error(t,...e?[e,...r]:r)}logCritical(t,e,...r){console.error(`CRITICAL: ${t}`,...e?[e,...r]:r)}log(t,e,r,...o){switch(t){case n.Trace:this.logTrace(e,...o);break;case n.Debug:this.logDebug(e,...o);break;case n.Information:this.logInformation(e,...o);break;case n.Warning:this.logWarning(e,...o);break;case n.Error:this.logError(e,r,...o);break;case n.Critical:this.logCritical(e,r,...o);break;default:console.log(e,...o)}}}},{lifecycle:a.Singleton});const ee="LogReaderToken";class re{constructor(){this.logs=[]}logTrace(t,...e){this.logs.push({logLevel:n.Trace,message:t,args:e})}logDebug(t,...e){this.logs.push({logLevel:n.Debug,message:t,args:e})}logInformation(t,...e){this.logs.push({logLevel:n.Information,message:t,args:e})}logWarning(t,...e){this.logs.push({logLevel:n.Warning,message:t,args:e})}logError(t,e,...r){this.logs.push({logLevel:n.Error,message:t,error:e,args:r})}logCritical(t,e,...r){this.logs.push({logLevel:n.Critical,message:t,error:e,args:r})}log(t,e,r,...o){this.logs.push({logLevel:t,message:e,error:r,args:o})}getLogs(){return this.logs}clearLogs(){this.logs=[]}}R.container.registerSingleton(re),R.container.register(e,{useToken:re}),R.container.register(ee,{useToken:re});var oe=void 0,ne=null,ie="",se="function",ae="object",le="prototype",ce="__proto__",ue="undefined",de="constructor",pe="Symbol",he="_polyfill",fe="length",be="name",ge="call",ve="toString",me=Object,ye=me[le],we=String,_e=we[le],xe=Math,ke=Array,Ce=ke[le],Ae=Ce.slice;function Ee(t,e){try{return{v:t.apply(this,e)}}catch(t){return{e:t}}}var Se,$e,Te="__tsUtils$gblCfg";function Oe(){var t;return typeof globalThis!==ue&&(t=globalThis),t||typeof self===ue||(t=self),t||typeof window===ue||(t=window),t||typeof r.g===ue||(t=r.g),t}function Ie(){if(!Se){var t=Ee(Oe).v||{};Se=t[Te]=t[Te]||{}}return Se}function Pe(t){return function(e){return typeof e===t}}function Re(t){var e="[object "+t+"]";return function(t){return!(!t||Me(t)!==e)}}function Me(t){return ye.toString.call(t)}function Le(t){return typeof t===ue||t===ue}function je(t){return t===ne||Le(t)}function De(t){return!!t||t!==oe}var Ne=Pe("string"),ze=Pe(se);function He(t){return!(!t&&je(t)||!t||typeof t!==ae)}var qe=ke.isArray,Ue=Re("Date"),Be=Pe("number"),Ve=Pe("boolean"),Fe=Re("Error");function We(t){return!!(t&&t.then&&ze(t.then))}function Ke(t){return!(!t||(e=function(){return!(t&&0+t)},r=!t,o=Ee(e),o.e?r:o.v));var e,r,o}var Xe=me.getOwnPropertyDescriptor;function Ge(t,e){return!!t&&ye.hasOwnProperty[ge](t,e)}var Je=me.hasOwn||function(t,e){return Ge(t,e)||!!Xe(t,e)};function Qe(t,e,r){if(t&&He(t))for(var o in t)if(Je(t,o)&&-1===e[ge](r||t,o,t[o]))break}var Ye={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Ze,tr=me.defineProperty,er=me.defineProperties;function rr(t,e,r){return tr(t,e,function(t){var e={};if(e[Ye.c]=!0,e[Ye.e]=!0,t.l){e.get=function(){return t.l.v};var r=Xe(t.l,"v");r&&r.set&&(e.set=function(e){t.l.v=e})}return Qe(t,(function(t,r){e[Ye[t]]=Le(r)?e[Ye[t]]:r})),e}(r))}function or(){Ze=Ie()}function nr(t){var e={};return!Ze&&or(),e.b=Ze.lzy,tr(e,"v",{configurable:!0,get:function(){var r=t();return Ze.lzy||tr(e,"v",{value:r}),e.b=Ze.lzy,r}}),e}function ir(t){return tr({toJSON:function(){return t}},"v",{value:t})}var sr,ar="window";function lr(t,e){var r;return function(){return!Ze&&or(),(!r||Ze.lzy)&&(r=ir(Ee(t,e).v)),r.v}}function cr(t){return nr((function(){return Ee(dr,[t]).v||oe}))}function ur(t){return!Ze&&or(),(!sr||!1===t||Ze.lzy)&&(sr=ir(Ee(Oe).v||ne)),sr.v}function dr(t,e){var r=sr&&!1!==e?sr.v:ur(e);return r&&r[t]?r[t]:t===ar?br():ne}function pr(){return!!hr()}var hr=lr(dr,["document"]);function fr(){return!!br()}var br=lr(dr,[ar]),gr=lr(dr,["navigator"]),vr=lr(dr,["history"]),mr=lr((function(){return!!Ee((function(){return process&&(process.versions||{}).node})).v})),yr=lr((function(){return!!Ee((function(){return self&&self instanceof WorkerGlobalScope})).v}));function wr(t){throw new Error(t)}function _r(t){throw new TypeError(t)}var xr=we,kr="[object Error]";function Cr(t,e){var r=ie,o=ye[ve][ge](t);o===kr&&(t={stack:xr(t.stack),message:xr(t.message),name:xr(t.name)});try{r=(r=JSON.stringify(t,ne,e?"number"==typeof e?e:4:oe))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||xr(t)}catch(t){r=" - "+Cr(t,e)}return o+": "+r}var Ar,Er=me.create||function(t){if(!t)return{};var e=typeof t;function r(){}return e!==ae&&e!==se&&_r("Prototype must be an Object or function: "+Cr(t)),r[le]=t,new r},Sr="constructor",$r="prototype",Tr="function",Or="_dynInstFuncs",Ir="_isDynProxy",Pr="_dynClass",Rr="_dynInstChk",Mr=Rr,Lr="_dfOpts",jr="_unknown_",Dr="__proto__",Nr="_dyn"+Dr,zr="__dynProto$Gbl",Hr="_dynInstProto",qr="useBaseInst",Ur="setInstFuncs",Br=Object,Vr=Br.getPrototypeOf,Fr=Br.getOwnPropertyNames,Wr=ur(),Kr=Wr[zr]||(Wr[zr]={o:(Ar={},Ar[Ur]=!0,Ar[qr]=!0,Ar),n:1e3});function Xr(t){return t&&(t===Br[$r]||t===Array[$r])}function Gr(t){return Xr(t)||t===Function[$r]}function Jr(t){var e;if(t){if(Vr)return Vr(t);var r=t[Dr]||t[$r]||(t[Sr]?t[Sr][$r]:null);e=t[Nr]||r,Ge(t,Nr)||(delete t[Hr],e=t[Nr]=t[Hr]||t[Nr],t[Hr]=r)}return e}function Qr(t,e){var r=[];if(Fr)r=Fr(t);else for(var o in t)"string"==typeof o&&Ge(t,o)&&r.push(o);if(r&&r.length>0)for(var n=0;n<r.length;n++)e(r[n])}function Yr(t,e,r){return e!==Sr&&typeof t[e]===Tr&&(r||Ge(t,e))&&e!==Dr&&e!==$r}function Zr(t){_r("DynamicProto: "+t)}function to(t,e){for(var r=t.length-1;r>=0;r--)if(t[r]===e)return!0;return!1}function eo(t,e,r,o,n){if(!Xr(t)){var i=r[Or]=r[Or]||Er(null);if(!Xr(i)){var s=i[e]=i[e]||Er(null);!1!==i[Mr]&&(i[Mr]=!!n),Xr(s)||Qr(r,(function(e){Yr(r,e,!1)&&r[e]!==o[e]&&(s[e]=r[e],delete r[e],(!Ge(t,e)||t[e]&&!t[e][Ir])&&(t[e]=function(t,e){var r=function(){var o=function(t,e,r,o){var n=null;if(t&&Ge(r,Pr)){var i=t[Or]||Er(null);if((n=(i[r[Pr]]||Er(null))[e])||Zr("Missing ["+e+"] "+Tr),!n[Rr]&&!1!==i[Mr]){for(var s=!Ge(t,e),a=Jr(t),l=[];s&&a&&!Gr(a)&&!to(l,a);){var c=a[e];if(c){s=c===o;break}l.push(a),a=Jr(a)}try{s&&(t[e]=n),n[Rr]=1}catch(t){i[Mr]=!1}}}return n}(this,e,t,r)||function(t,e,r){var o=e[t];return o===r&&(o=Jr(e)[t]),typeof o!==Tr&&Zr("["+t+"] is not a "+Tr),o}(e,t,r);return o.apply(this,arguments)};return r[Ir]=1,r}(t,e)))}))}}}function ro(t,e){return Ge(t,$r)?t.name||e||jr:((t||{})[Sr]||{}).name||e||jr}function oo(t,e,r,o){Ge(t,$r)||Zr("theClass is an invalid class definition.");var n=t[$r];(function(t,e){if(Vr){for(var r=[],o=Jr(e);o&&!Gr(o)&&!to(r,o);){if(o===t)return!0;r.push(o),o=Jr(o)}return!1}return!0})(n,e)||Zr("["+ro(t)+"] not in hierarchy of ["+ro(e)+"]");var i=null;Ge(n,Pr)?i=n[Pr]:(i="_dynCls$"+ro(t,"_")+"$"+Kr.n,Kr.n++,n[Pr]=i);var s=oo[Lr],a=!!s[qr];a&&o&&void 0!==o[qr]&&(a=!!o[qr]);var l=function(t){var e=Er(null);return Qr(t,(function(r){!e[r]&&Yr(t,r,!1)&&(e[r]=t[r])})),e}(e),c=function(t,e,r,o){function n(t,e,r){var n=e[r];if(n[Ir]&&o){var i=t[Or]||{};!1!==i[Mr]&&(n=(i[e[Pr]]||{})[r]||n)}return function(){return n.apply(t,arguments)}}var i=Er(null);Qr(r,(function(t){i[t]=n(e,r,t)}));for(var s=Jr(t),a=[];s&&!Gr(s)&&!to(a,s);)Qr(s,(function(t){!i[t]&&Yr(s,t,!Vr)&&(i[t]=n(e,s,t))})),a.push(s),s=Jr(s);return i}(n,e,l,a);r(e,c);var u=!!Vr&&!!s[Ur];u&&o&&(u=!!o[Ur]),eo(n,i,e,l,!1!==u)}oo[Lr]=Kr.o;var no=me.freeze;var io=me.assign,so=me.keys;function ao(t){return no&&Qe(t,(function(t,e){(qe(e)||He(e))&&no(e)})),lo(t)}var lo=no||function(t){return t},co=(me.seal,me.getPrototypeOf||function(t){return t[ce]||ne}),uo=(me.entries,me.values,"function"),po="object",ho="undefined",fo="prototype",bo=Object,go=bo[fo],vo=((ur()||{}).Symbol,(ur()||{}).Reflect,"hasOwnProperty"),mo=io||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])go[vo].call(e,n)&&(t[n]=e[n]);return t},yo=function(t,e){return yo=bo.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e[vo](r)&&(t[r]=e[r])},yo(t,e)};function wo(t,e){function r(){this.constructor=t}typeof e!==uo&&null!==e&&_r("Class extends value "+String(e)+" is not a constructor or null"),yo(t,e),t[fo]=null===e?Er(e):(r[fo]=e[fo],new r)}function _o(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}var xo="toLowerCase",ko="blkVal",Co="length",Ao="rdOnly",Eo="notify",So="warnToConsole",$o="throwInternal",To="setDf",Oo="watch",Io="logger",Po="apply",Ro="push",Mo="splice",Lo="hdlr",jo="cancel",Do="initialize",No="identifier",zo="removeNotificationListener",Ho="addNotificationListener",qo="isInitialized",Uo="getNotifyMgr",Bo="getPlugin",Vo="pollInternalLogs",Fo="name",Wo="time",Ko="processNext",Xo="getProcessTelContext",Go="enabled",Jo="stopPollingInternalLogs",Qo="unload",Yo="onComplete",Zo="version",tn="loggingLevelConsole",en="createNew",rn="teardown",on="messageId",nn="message",sn="isAsync",an="diagLog",ln="_doTeardown",cn="update",un="getNext",dn="setNextPlugin",pn="protocol",hn="userAgent",fn="split",bn="nodeType",gn="replace",vn="logInternalMessage",mn="type",yn="handler",wn="status",_n="getResponseHeader",xn="getAllResponseHeaders",kn="isChildEvt",Cn="data",An="getCtx",En="setCtx",Sn="complete",$n="itemsReceived",Tn="urlString",On="sendPOST",In="headers",Pn="timeout",Rn="setRequestHeader",Mn="traceId",Ln="spanId",jn="traceFlags",Dn=Nn;function Nn(t,e,r){var o=e&&e[t];return function(e){var n=e&&e[t]||o;if(n||r){var i=arguments;return(n||r).apply(e,n?Ae[ge](i,1):i)}_r('"'+xr(t)+'" not defined for '+Cr(e))}}function zn(t){return function(e){return e[t]}}var Hn,qn,Un,Bn=Dn("indexOf",_e);function Vn(t,e,r){if(t)for(var o=t[fe]>>>0,n=0;n<o&&(!(n in t)||-1!==e[ge](r||t,t[n],n,t));n++);}function Fn(t){if(!t||typeof t!==ae)return!1;Un||(Un=!fr()||br());var e=!1;if(t!==Un){qn||(Hn=Function[le][ve],qn=Hn[ge](me));try{var r=co(t);(e=!r)||(Ge(r,de)&&(r=r[de]),e=r&&typeof r===se&&Hn[ge](r)===qn)}catch(t){}}return e}function Wn(t){return function(e){return je(e)&&_r("strTrim called ["+Cr(e)+"]"),e&&e.replace&&(e=e.replace(t,ie)),e}}var Kn=Nn("trim",_e,Wn(/^\s+|(?=\s)\s+$/g)),Xn=void 0,Gn="",Jn="channels",Qn="core",Yn="createPerfMgr",Zn="disabled",ti="extensionConfig",ei="extensions",ri="processTelemetry",oi="priority",ni="eventsSent",ii="eventsDiscarded",si="eventsSendRequest",ai="perfEvent",li="offlineEventsStored",ci="offlineBatchSent",ui="offlineBatchDrop",di="getPerfMgr",pi="domain",hi="path",fi="Not dynamic - ",bi=/-([a-z])/g,gi=/([^\w\d_$])/g,vi=/^(\d+[\w\d_$])/,mi=Object.getPrototypeOf;function yi(t){return!je(t)}function wi(t){var e=t;return e&&Ne(e)&&(e=(e=(e=e[gn](bi,(function(t,e){return e.toUpperCase()})))[gn](gi,"_"))[gn](vi,(function(t,e){return"_"+e}))),e}function _i(t,e){return!(!t||!e)&&-1!==Bn(t,e)}function xi(t){return t&&t.toISOString()||""}function ki(t){return Fe(t)?t[Fo]:Gn}function Ci(t,e,r,o,n){var i=r;return t&&((i=t[e])===r||n&&!n(i)||o&&!o(r)||(i=r,t[e]=i)),i}function Ai(t,e,r){var o;return t?!(o=t[e])&&je(o)&&(o=Le(r)?{}:r,t[e]=o):o=Le(r)?{}:r,o}function Ei(t,e){var r=null,o=null;return ze(t)?r=t:o=t,function(){var t=arguments;if(r&&(o=r()),o)return o[e][Po](o,t)}}function Si(t,e,r,o,n){t&&e&&r&&(!1!==n||Le(t[e]))&&(t[e]=Ei(r,o))}function $i(t,e,r,o){return t&&e&&He(t)&&qe(r)&&Vn(r,(function(r){Ne(r)&&Si(t,r,e,r,o)})),t}function Ti(t){return t&&io&&(t=bo(io({},t))),t}function Oi(t,e,r,o,n,i){var s=arguments,a=s[0]||{},l=s[Co],c=!1,u=1;for(l>0&&Ve(a)&&(c=a,a=s[u]||{},u++),He(a)||(a={});u<l;u++){var d=s[u],p=qe(d),h=He(d);for(var f in d)if(p&&f in d||h&&Je(d,f)){var b=d[f],g=void 0;if(c&&b&&((g=qe(b))||Fn(b))){var v=a[f];g?qe(v)||(v=[]):Fn(v)||(v={}),b=Oi(c,v,b)}void 0!==b&&(a[f]=b)}}return a}function Ii(t,e){var r=!1,o=e&&e.featureOptIn&&e.featureOptIn[t];if(t&&o){var n=o.mode;r=3==n||1==n}return r}function Pi(t){try{return t.responseText}catch(t){}return null}function Ri(t,e){return t?"XDomainRequest,Response:"+Pi(t)||0:e}function Mi(t,e){return t?"XMLHttpRequest,Status:"+t[wn]+",Response:"+Pi(t)||0:e}function Li(t,e){return e&&(Be(e)?t=[e].concat(t):qe(e)&&(t=e.concat(t))),t}var ji="withCredentials";function Di(t,e,r){if(!t[r]&&e&&e[_n]){var o=e[_n](r);o&&(t[r]=Kn(o))}return t}function Ni(t,e){var r,o,n={};return t[xn]?(r=t[xn](),o={},Ne(r)&&Vn(Kn(r)[fn](/[\r\n]+/),(function(t){if(t){var e=t.indexOf(": ");if(-1!==e){var r=Kn(t.substring(0,e))[xo](),n=Kn(t.substring(e+1));o[r]=n}else o[Kn(t)]=1}})),n=o):e&&(n=Di(n,t,"time-delta-millis"),n=Di(n,t,"kill-duration"),n=Di(n,t,"kill-duration-seconds")),n}function zi(){return(Date.now||Hi)()}function Hi(){return(new Date).getTime()}var qi="location",Ui="JSON",Bi="crypto",Vi="msCrypto",Fi="msie",Wi="trident/",Ki="XMLHttpRequest",Xi=null,Gi=null,Ji=!1,Qi=null,Yi=null;function Zi(t,e){var r=!1;if(t){try{if(!(r=e in t)){var o=t[fo];o&&(r=e in o)}}catch(t){}if(!r)try{r=!Le((new t)[e])}catch(t){}}return r}function ts(t){if(t&&Ji){var e=dr("__mockLocation");if(e)return e}return typeof location===po&&location?location:dr(qi)}function es(){return Boolean(typeof JSON===po&&JSON||null!==dr(Ui))}function rs(){return es()?JSON||dr(Ui):null}function os(){var t=gr();if(t&&(t[hn]!==Gi||null===Xi)){var e=((Gi=t[hn])||Gn)[xo]();Xi=_i(e,Fi)||_i(e,Wi)}return Xi}function ns(t){if(void 0===t&&(t=null),!t){var e=gr()||{};t=e?(e.userAgent||Gn)[xo]():Gn}var r=(t||Gn)[xo]();if(_i(r,Fi)){var o=hr()||{};return Math.max(parseInt(r[fn](Fi)[1]),o.documentMode||0)}if(_i(r,Wi)){var n=parseInt(r[fn](Wi)[1]);if(n)return n+4}return null}function is(t){return null!==Yi&&!1!==t||(Yi=!!gr()&&Boolean(gr().sendBeacon)),Yi}function ss(t){var e=!1;try{e=!!dr("fetch");var r=dr("Request");e&&t&&r&&(e=Zi(r,"keepalive"))}catch(t){}return e}function as(){var t=!1;try{t=!!dr(Ki)}catch(t){}return t}var ls=4294967296,cs=4294967295,us=123456789,ds=987654321,ps=!1,hs=us,fs=ds;function bs(){try{var t=2147483647&zi();(e=(Math.random()*ls^t)+t)<0&&(e>>>=0),hs=us+e&cs,fs=ds-e&cs,ps=!0}catch(t){}var e}function gs(t){var e=0,r=dr(Bi)||dr(Vi);return r&&r.getRandomValues&&(e=r.getRandomValues(new Uint32Array(1))[0]&cs),0===e&&os()&&(ps||bs(),e=function(t){var e=((fs=36969*(65535&fs)+(fs>>16)&cs)<<16)+(65535&(hs=18e3*(65535&hs)+(hs>>16)&cs))>>>0&cs;return e>>>=0}()&cs),0===e&&(e=Math.floor(ls*Math.random()|0)),t||(e>>>=0),e}function vs(t){void 0===t&&(t=22);for(var e=gs()>>>0,r=0,o=Gn;o[Co]<t;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&e),e>>>=6,5===r&&(e=(gs()<<2&4294967295|3&e)>>>0,r=0);return o}var ms="3.0.5",ys="."+vs(6),ws=0;function _s(t){return 1===t[bn]||9===t[bn]||!+t[bn]}function xs(t,e){return void 0===e&&(e=!1),wi(t+ws+++(e?"."+ms:Gn)+ys)}function ks(t){var e={id:xs("_aiData-"+(t||Gn)+"."+ms),accept:function(t){return _s(t)},get:function(t,r,o,n){var i=t[e.id];return i?i[wi(r)]:(n&&(i=function(t,e){var r=e[t.id];if(!r){r={};try{_s(e)&&rr(e,t.id,{e:!1,v:r})}catch(t){}}return r}(e,t),i[wi(r)]=o),o)},kill:function(t,e){if(t&&t[e])try{delete t[e]}catch(t){}}};return e}function Cs(t){return t&&He(t)&&(t.isVal||t.fb||Je(t,"v")||Je(t,"mrg")||Je(t,"ref")||t.set)}function As(t,e,r){var o,n=r.dfVal||De;if(e&&r.fb){var i=r.fb;qe(i)||(i=[i]);for(var s=0;s<i[Co];s++){var a=i[s],l=e[a];if(n(l)?o=l:t&&(n(l=t.cfg[a])&&(o=l),t.set(t.cfg,xr(a),l)),n(o))break}}return!n(o)&&n(r.v)&&(o=r.v),o}function Es(t,e,r){var o,n=r;return r&&Cs(r)&&(n=As(t,e,r)),n&&(Cs(n)&&(n=Es(t,e,n)),qe(n)?(o=[])[Co]=n[Co]:Fn(n)&&(o={}),o&&(Qe(n,(function(r,n){n&&Cs(n)&&(n=Es(t,e,n)),o[r]=n})),n=o)),n}function Ss(t,e,r,o){var n,i,s,a,l,c,u,d,p=o;Cs(p)?(n=p.isVal,i=p.set,c=p[Ao],u=p[ko],a=p.mrg,!(l=p.ref)&&Le(l)&&(l=!!a),s=As(t,e,p)):s=o,u&&t[ko](e,r);var h=!0,f=e[r];!f&&je(f)||(d=f,h=!1,n&&d!==s&&!n(d)&&(d=s,h=!0),i&&(h=(d=i(d,s,e))===s)),h?d=s?Es(t,e,s):s:(Fn(d)||qe(s))&&a&&s&&(Fn(s)||qe(s))&&Qe(s,(function(e,r){Ss(t,d,e,r)})),t.set(e,r,d),l&&t.ref(e,r),c&&t[Ao](e,r)}var $s=Dn("indexOf",Ce);function Ts(t,e,r,o){var n={};return Qe(t,(function(t,o){n[t]=e?o:t,n[o]=r?o:t})),o(n)}function Os(t){return Ts(t,0,0,ao)}var Is,Ps,Rs,Ms,Ls=Os({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),js="_urid";function Ds(t){var e={description:xr(t),toString:function(){return pe+"("+t+")"}};return e[he]=!0,e}function Ns(t){var e=function(){if(!Is){var t=Ie();Is=t.gblSym=t.gblSym||{k:{},s:{}}}return Is}();if(!Je(e.k,t)){var r=Ds(t),o=so(e.s).length;r[js]=function(){return o+"_"+r[ve]()},e.k[t]=r,e.s[r[js]()]=xr(t)}return e.k[t]}function zs(t,e){return nr((function(){var r=Ee(t);return r.e?e:r.v}))}function Hs(){Rs&&Rs.b||(Rs=cr(pe),Ms=zs((function(){return Rs.v?Rs.v.for:oe}),oe),zs((function(){return Rs.v?Rs.v.keyFor:oe}),oe))}function qs(){return!Ze&&or(),(!Rs||Ze.lzy)&&Hs(),!!Rs.v}function Us(t,e){var r=Ls[t];return!Ze&&or(),(!Rs||Ze.lzy)&&Hs(),Rs.v?Rs.v[r||t]:e?oe:function(t){var e;!Ps&&(Ps={});var r=Ls[t];return r&&(e=Ps[r]=Ps[r]||Ds(pe+"."+r)),e}(t)}function Bs(t,e){return!Ze&&or(),(!Rs||Ze.lzy)&&Hs(),Rs.v?Rs.v(t):e?ne:Ds(t)}function Vs(t){return!Ze&&or(),(!Ms||!Rs||Ze.lzy)&&Hs(),(Ms.v||Ns)(t)}var Fs=Vs("[[ai_dynCfg_1]]"),Ws=Vs("[[ai_blkDynCfg_1]]"),Ks=Vs("[[ai_frcDynCfg_1]]");function Xs(t){var e;return t&&(qe(t)?(e=[])[Co]=t[Co]:Fn(t)&&(e={}),e)?(Qe(t,(function(t,r){e[t]=Xs(r)})),e):t}function Gs(t,e,r){var o=!1;return r&&!t[e.blkVal]&&((o=r[Ks])||r[Ws]||(o=Fn(r)||qe(r))),o}function Js(t){_r("InvalidAccess:"+t)}var Qs=["push","pop","shift","unshift","splice"],Ys=function(t,e,r,o){t&&t[$o](3,108,"".concat(r," [").concat(e,"] failed - ")+Cr(o))};function Zs(t,e){var r=Xe(t,e);return r&&r.get}function ta(t,e,r,o){if(e){var n=Zs(e,r);n&&n[t.prop]?e[r]=o:function(t,e,r,o){var n={n:r,h:[],trk:function(e){e&&e.fn&&(-1===$s(n.h,e)&&n.h[Ro](e),t.trk(e,n))},clr:function(t){var e=$s(n.h,t);-1!==e&&n.h[Mo](e,1)}},i=!0,s=!1;function a(){i&&(s=s||Gs(a,t,o),o&&!o[Fs]&&s&&(o=ra(t,o,r,"Converting")),i=!1);var e=t.act;return e&&n.trk(e),o}a[t.prop]={chng:function(){t.add(n)}},rr(e,n.n,{g:a,s:function(l){if(o!==l){a[t.ro]&&!t.upd&&Js("["+r+"] is read-only:"+Cr(e)),i&&(s=s||Gs(a,t,o),i=!1);var c=s&&a[t.rf];if(s)if(c){Qe(o,(function(t){o[t]=l?l[t]:Xn}));try{Qe(l,(function(e,r){ta(t,o,e,r)})),l=o}catch(e){Ys((t.hdlr||{})[Io],r,"Assigning",e),s=!1}}else o&&o[Fs]&&Qe(o,(function(e){var r=Zs(o,e);if(r){var n=r[t.prop];n&&n.chng()}}));if(l!==o){var u=l&&Gs(a,t,l);!c&&u&&(l=ra(t,l,r,"Converting")),o=l,s=u}t.add(n)}}})}(t,e,r,o)}return e}function ea(t,e,r,o){if(e){var n=Zs(e,r),i=n&&!!n[t.prop],s=o&&o[0],a=o&&o[1],l=o&&o[2];if(!i){if(l)try{!function(t){if(t&&(Fn(t)||qe(t)))try{t[Ws]=!0}catch(t){}}(e)}catch(e){Ys((t.hdlr||{})[Io],r,"Blocking",e)}try{ta(t,e,r,e[r]),n=Zs(e,r)}catch(e){Ys((t.hdlr||{})[Io],r,"State",e)}}s&&(n[t.rf]=s),a&&(n[t.ro]=a),l&&(n[t.blkVal]=!0)}return e}function ra(t,e,r,o){try{Qe(e,(function(r,o){ta(t,e,r,o)})),e[Fs]||(tr(e,Fs,{get:function(){return t[Lo]}}),function(t,e,r){qe(e)&&Vn(Qs,(function(o){var n=e[o];e[o]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=n[Po](this,o);return ra(t,e,r,"Patching"),s}}))}(t,e,r))}catch(e){Ys((t.hdlr||{})[Io],r,o,e)}return e}function oa(t,e,r){return t.apply(e,r)}var na,ia,sa,aa="ref",la="unref",ca="hasRef",ua="enabled";function da(t,e,r){var o=qe(e),n=o?e.length:0,i=(n>0?e[0]:o?oe:e)||setTimeout,s=(n>1?e[1]:oe)||clearTimeout,a=r[0];r[0]=function(){l.dn(),oa(a,oe,Ae[ge](arguments))};var l=function(t,e,r){var o,n=!0,i=t?e(ne):ne;function a(){return n=!1,i&&i[la]&&i[la](),o}function l(){i&&function(t){oa(s,oe,[t])}(i),i=ne}function c(){return i=e(i),n||a(),o}return(o={cancel:l,refresh:c})[ca]=function(){return i&&i[ca]?i[ca]():n},o[aa]=function(){return n=!0,i&&i[aa]&&i[aa](),o},o[la]=a,{h:o=tr(o,ua,{get:function(){return!!i},set:function(t){!t&&i&&l(),t&&!i&&c()}}),dn:function(){i=ne}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;oa(s,oe,[t])}return oa(i,oe,r)}));return l.h}function pa(t,e){return da(!0,oe,Ae[ge](arguments))}function ha(t,e){var r=me.setPrototypeOf||function(t,e){!na&&(na=nr((function(){var t;return(t={})[ce]=[],t instanceof Array}))),na.v?t[ce]=e:Qe(e,(function(e,r){return t[e]=r}))};return r(t,e)}function fa(t,e){e&&(t[be]=e)}function ba(t,e,r){var o=r||Error,n=o[le][be],i=Error.captureStackTrace;return function(t,e,r){function o(){this.constructor=e,Ee(rr,[this,be,{v:t,c:!0,e:!1}])}return Ee(rr,[e,be,{v:t,c:!0,e:!1}]),(e=ha(e,r))[le]=r===ne?Er(r):(o[le]=r[le],new o),e}(t,(function(){var r=this,s=arguments;try{Ee(fa,[o,t]);var a=oa(o,r,Ae[ge](s))||r;if(a!==r){var l=co(r);l!==co(a)&&ha(a,l)}return i&&i(a,r[de]),e&&e(a,s),a}finally{Ee(fa,[o,n])}}),o)}var ga="[[ai_",va="]]";function ma(t,e,r){var o,n=function(t){if(t){var e=t[Fs]||t;if(e.cfg&&(e.cfg===t||e.cfg[Fs]===e))return e}return null}(e);if(n)return n;var i,s=xs("dyncfg",!0),a=e&&!1!==r?e:Xs(e),l=((o={uid:null,cfg:a})[Io]=t,o[Eo]=function(){i[Eo]()},o.set=function(e,r,o){try{e=ta(i,e,r,o)}catch(e){Ys(t,r,"Setting value",e)}return e[r]},o[To]=function(t,e){return e&&Qe(e,(function(e,r){Ss(l,t,e,r)})),t},o[Oo]=function(t){return function(t,e){var r={fn:e,rm:function(){r.fn=null,t=null,e=null}};return rr(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,e),r}(i,t)},o.ref=function(t,e){var r;return ea(i,t,e,(r={},r[0]=!0,r))[e]},o[Ao]=function(t,e){var r;return ea(i,t,e,(r={},r[1]=!0,r))[e]},o[ko]=function(t,e){var r;return ea(i,t,e,(r={},r[2]=!0,r))[e]},o._block=function(t,e){i.use(null,(function(r){var o=i.upd;try{Le(e)||(i.upd=e),t(r)}finally{i.upd=o}}))},o);return rr(l,"uid",{c:!1,e:!1,w:!1,v:s}),ra(i=function(t){var e,r,o=Bs(ga+"get"+t.uid+va),n=Bs(ga+"ro"+t.uid+va),i=Bs(ga+"rf"+t.uid+va),s=Bs(ga+"blkVal"+t.uid+va),a=Bs(ga+"dtl"+t.uid+va),l=null,c=null;function u(e,o){var n=r.act;try{r.act=e,e&&e[a]&&(Vn(e[a],(function(t){t.clr(e)})),e[a]=[]),o({cfg:t.cfg,set:t.set.bind(t),setDf:t[To].bind(t),ref:t.ref.bind(t),rdOnly:t[Ao].bind(t)})}catch(e){var i=t[Io];throw i&&i[$o](1,107,Cr(e)),e}finally{r.act=n||null}}function d(){if(l){var t=l;l=null,c&&c[jo](),c=null;var e=[];if(Vn(t,(function(t){if(t&&(t[a]&&(Vn(t[a],(function(e){e.clr(t)})),t[a]=null),t.fn))try{u(t,t.fn)}catch(t){e[Ro](t)}})),l)try{d()}catch(t){e[Ro](t)}e[Co]>0&&function(t,e){sa||(sa=ba("AggregationError",(function(t,e){e[Co]>1&&(t.errors=e[1])})));var r="Watcher error(s): ";throw Vn(e,(function(t,e){r+="\n".concat(e," > ").concat(Cr(t))})),new sa(r,e||[])}(0,e)}}return(e={prop:o,ro:n,rf:i})[ko]=s,e[Lo]=t,e.add=function(t){if(t&&t.h[Co]>0){l||(l=[]),c||(c=pa((function(){c=null,d()}),0));for(var e=0;e<t.h[Co];e++){var r=t.h[e];r&&-1===$s(l,r)&&l[Ro](r)}}},e[Eo]=d,e.use=u,e.trk=function(t,e){if(t){var r=t[a]=t[a]||[];-1===$s(r,e)&&r[Ro](e)}},r=e}(l),a,"config","Creating"),l}function ya(t,e,r,o){var n=ma(r,t||{},o);return e&&n[To](n.cfg,e),n}function wa(t,e,r){var o=t[Fs]||t;return!o.cfg||o.cfg!==t&&o.cfg[Fs]!==o?(function(t,e){t?(t[So](e),t[$o](2,108,e)):Js(e)}(r,fi+Cr(t)),ya(t,null,r)[Oo](e)):o[Oo](e)}var _a,xa,ka=[ni,ii,si,ai],Ca=null;function Aa(t,e){return function(){var r=arguments,o=Ea(e);if(o){var n=o.listener;n&&n[t]&&n[t][Po](n,r)}}}function Ea(t){var e,r=Ca;return r||!0===t.disableDbgExt||(r=Ca||((e=dr("Microsoft"))&&(Ca=e.ApplicationInsights),Ca)),r?r.ChromeDbgExt:null}var Sa="warnToConsole",$a={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Ta=((xa={})[0]=null,xa[1]="errorToConsole",xa[2]=Sa,xa[3]="debugToConsole",xa);function Oa(t){return t?'"'+t[gn](/\"/g,Gn)+'"':Gn}function Ia(t,e){var r=typeof console!==ho?console:dr("console");if(r){var o="log";r[t]&&(o=t),ze(r[o])&&r[o](e)}}var Pa=function(){function t(t,e,r,o){void 0===r&&(r=!1);var n=this;n[on]=t,n[nn]=(r?"AI: ":"AI (Internal): ")+t;var i=Gn;es()&&(i=rs().stringify(o));var s=(e?" message:"+Oa(e):Gn)+(o?" props:"+Oa(i):Gn);n[nn]+=s}return t.dataType="MessageData",t}();function Ra(t,e){return(t||{})[Io]||new Ma(e)}var Ma=function(){function t(e){this.identifier="DiagnosticLogger",this.queue=[];var r,o,n,i,s,a=0,l={};oo(t,this,(function(t){function c(e,r){if(!(a>=n)){var i=!0,s="AITR_"+r[on];if(l[s]?i=!1:l[s]=!0,i&&(e<=o&&(t.queue[Ro](r),a++,u(1===e?"error":"warn",r)),a===n)){var c="Internal events throttle limit per PageView reached for this app.",d=new Pa(23,c,!1);t.queue[Ro](d),1===e?t.errorToConsole(c):t[So](c)}}}function u(t,r){var o=Ea(e||{});o&&o[an]&&o[an](t,r)}s=function(e){return wa(ya(e,$a,t).cfg,(function(t){var e=t.cfg;r=e[tn],o=e.loggingLevelTelemetry,n=e.maxMessageLimit,i=e.enableDebug}))}(e||{}),t.consoleLoggingLevel=function(){return r},t[$o]=function(e,o,n,s,a){void 0===a&&(a=!1);var d=new Pa(o,n,a,s);if(i)throw Cr(d);var p=Ta[e]||Sa;if(Le(d[nn]))u("throw"+(1===e?"Critical":"Warning"),d);else{if(a){var h=+d[on];!l[h]&&r>=e&&(t[p](d[nn]),l[h]=!0)}else r>=e&&t[p](d[nn]);c(e,d)}},t.debugToConsole=function(t){Ia("debug",t),u("warning",t)},t[So]=function(t){Ia("warn",t),u("warning",t)},t.errorToConsole=function(t){Ia("error",t),u("error",t)},t.resetInternalMessageCount=function(){a=0,l={}},t[vn]=c,t[Qo]=function(t){s&&s.rm(),s=null}}))}return t.__ieDyn=1,t}();function La(t){return t||new Ma}function ja(t,e,r,o,n,i){void 0===i&&(i=!1),La(t)[$o](e,r,o,n,i)}function Da(t,e){La(t)[So](e)}var Na=function(t){return Ts(t,1,0,ao)},za=Na({LocalStorage:0,SessionStorage:1}),Ha=(Na({AI:0,AI_AND_W3C:1,W3C:2}),Na({Normal:1,Critical:2}),"split"),qa="length",Ua="toLowerCase",Ba="ingestionendpoint",Va="toString",Fa="push",Wa="removeItem",Ka="name",Xa="message",Ga="count",Ja="preTriggerDate",Qa="disabled",Ya="interval",Za="daysOfMonth",tl="date",el="getUTCDate",rl="stringify",ol="pathname",nl="correlationHeaderExcludePatterns",il="exceptions",sl="parsedStack",al="properties",ll="measurements",cl="sizeInBytes",ul="typeName",dl="severityLevel",pl="problemGroup",hl="isManual",fl="CreateFromInterface",bl="assembly",gl="fileName",vl="hasFullStack",ml="level",yl="method",wl="line",_l="duration",xl="receivedResponse",kl=void 0,Cl=void 0,Al="";function El(){return Ol()?Sl(za.LocalStorage):null}function Sl(t){try{if(je(ur()))return null;var e=(new Date)[Va](),r=dr(t===za.LocalStorage?"localStorage":"sessionStorage"),o=Al+e;r.setItem(o,e);var n=r.getItem(o)!==e;if(r[Wa](o),!n)return r}catch(t){}return null}function $l(){return Rl()?Sl(za.SessionStorage):null}function Tl(t){Al=t||""}function Ol(t){return(t||void 0===kl)&&(kl=!!Sl(za.LocalStorage)),kl}function Il(t,e){var r=El();if(null!==r)try{return r.getItem(e)}catch(e){kl=!1,ja(t,2,1,"Browser failed read of local storage. "+ki(e),{exception:Cr(e)})}return null}function Pl(t,e,r){var o=El();if(null!==o)try{return o.setItem(e,r),!0}catch(e){kl=!1,ja(t,2,3,"Browser failed write to local storage. "+ki(e),{exception:Cr(e)})}return!1}function Rl(t){return(t||void 0===Cl)&&(Cl=!!Sl(za.SessionStorage)),Cl}function Ml(t,e){var r=$l();if(null!==r)try{return r.getItem(e)}catch(e){Cl=!1,ja(t,2,2,"Browser failed read of session storage. "+ki(e),{exception:Cr(e)})}return null}function Ll(t,e,r){var o=$l();if(null!==o)try{return o.setItem(e,r),!0}catch(e){Cl=!1,ja(t,2,4,"Browser failed write to session storage. "+ki(e),{exception:Cr(e)})}return!1}var jl="AppInsightsPropertiesPlugin",Dl="AppInsightsChannelPlugin",Nl="ApplicationInsightsAnalytics",zl="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Hl="sampleRate",ql="ProcessLegacy",Ul="http.method",Bl="https://dc.services.visualstudio.com",Vl="/v2/track",Fl="not_specified",Wl="iKey",Kl=(xe.min,xe.max),Xl=Dn("slice",_e),Gl=Dn("substring",_e),Jl=Nn("substr",_e,Ql);function Ql(t,e,r){return je(t)&&_r("'polyStrSubstr called with invalid "+Cr(t)),r<0?ie:((e=e||0)<0&&(e=Kl(e+t[fe],0)),Le(r)?Xl(t,e):Xl(t,e,e+r))}function Yl(t,e){return Gl(t,0,e)}function Zl(t,e,r){var o=e[qa],n=function(t,e){var r;return e&&(e=Kn(xr(e)))[qa]>150&&(r=Gl(e,0,150),ja(t,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0)),r||e}(t,e);if(n[qa]!==o){for(var i=0,s=n;void 0!==r[s];)i++,s=Gl(n,0,147)+sc(i);n=s}return n}function tc(t,e,r){var o;return void 0===r&&(r=1024),e&&(r=r||1024,(e=Kn(xr(e)))[qa]>r&&(o=Gl(e,0,r),ja(t,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:e},!0))),o||e}function ec(t,e){return ic(t,e,2048,66)}function rc(t,e){var r;return e&&e[qa]>32768&&(r=Gl(e,0,32768),ja(t,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),r||e}function oc(t,e){if(e){var r={};Qe(e,(function(e,o){if(He(o)&&es())try{o=rs()[rl](o)}catch(e){ja(t,2,49,"custom property is not valid",{exception:e},!0)}o=tc(t,o,8192),e=Zl(t,e,r),r[e]=o})),e=r}return e}function nc(t,e){if(e){var r={};Qe(e,(function(e,o){e=Zl(t,e,r),r[e]=o})),e=r}return e}function ic(t,e,r,o){var n;return e&&(e=Kn(xr(e)))[qa]>r&&(n=Gl(e,0,r),ja(t,2,o,"input is too long, it has been truncated to "+r+" characters.",{data:e},!0)),n||e}function sc(t){var e="00"+t;return Jl(e,e[qa]-3)}function ac(t,e,r,o,n,i){var s;r=tc(o,r)||Fl,(je(t)||je(e)||je(r))&&wr("Input doesn't contain all required fields");var a="";t[Wl]&&(a=t[Wl],delete t[Wl]);var l=((s={})[Ka]=r,s.time=xi(new Date),s.iKey=a,s.ext=i||{},s.tags=[],s.data={},s.baseType=e,s.baseData=t,s);return je(n)||Qe(n,(function(t,e){l.data[t]=e})),l}var lc=function(){function t(t,e,r,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var n=this;n.ver=2,n[Ka]=tc(t,e)||Fl,n[al]=oc(t,r),n[ll]=nc(t,o)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(),cc=function(){function t(t,e,r,o,n){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,e=e||Fl,i[Xa]=rc(t,e),i[al]=oc(t,o),i[ll]=nc(t,n),r&&(i[dl]=r)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(),uc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},dc=function(){function t(t,e,r,o,n,i,s,a,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var u=new uc;u[Ga]=o>0?o:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(n)||null===n?void 0:n,u[Ka]=tc(t,e)||Fl,u.value=r,u.stdDev=isNaN(s)||null===s?void 0:s,c.metrics=[u],c[al]=oc(t,a),c[ll]=nc(t,l)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(),pc="";function hc(t){(isNaN(t)||t<0)&&(t=0),t=Math.round(t);var e=pc+t%1e3,r=pc+Math.floor(t/1e3)%60,o=pc+Math.floor(t/6e4)%60,n=pc+Math.floor(t/36e5)%24,i=Math.floor(t/864e5);return e=1===e[qa]?"00"+e:2===e[qa]?"0"+e:e,r=r[qa]<2?"0"+r:r,o=o[qa]<2?"0"+o:o,n=n[qa]<2?"0"+n:n,(i>0?i+".":pc)+n+":"+o+":"+r+"."+e}var fc=function(){function t(t,e,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var a=this;a.ver=2,a.id=function(t,e){return e?ic(t,e,128,69)[Va]():e}(t,s),a.url=ec(t,r),a[Ka]=tc(t,e)||Fl,isNaN(o)||(a[_l]=hc(o)),a[al]=oc(t,n),a[ll]=nc(t,i)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(),bc=function(){function t(t,e,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var a=this;a.ver=2,a.url=ec(t,r),a[Ka]=tc(t,e)||Fl,a[al]=oc(t,n),a[ll]=nc(t,i),s&&(a.domProcessing=s.domProcessing,a[_l]=s[_l],a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a[xl]=s[xl],a.sentRequest=s.sentRequest)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(),gc=Dn("map",Ce),vc="error",mc="stack",yc="stackDetails",wc="errorSrc",_c="message",xc="description";function kc(t,e){var r=t;return r&&!Ne(r)&&(JSON&&JSON[rl]?(r=JSON[rl](t),!e||r&&"{}"!==r||(r=ze(t[Va])?t[Va]():""+t)):r=t+" - (Missing JSON.stringify)"),r||""}function Cc(t,e){var r=t;return t&&(r&&!Ne(r)&&(r=t[_c]||t[xc]||r),r&&!Ne(r)&&(r=kc(r,!0)),t.filename&&(r=r+" @"+(t.filename||"")+":"+(t.lineno||"?")+":"+(t.colno||"?"))),e&&"String"!==e&&"Object"!==e&&"Error"!==e&&-1===Bn(r||"",e)&&(r=e+": "+r),r||""}function Ac(t){return t&&t.src&&Ne(t.src)&&t.obj&&qe(t.obj)}function Ec(t){var e=t||"";Ne(e)||(e=Ne(e[mc])?e[mc]:""+e);var r=e[Ha]("\n");return{src:e,obj:r}}function Sc(t){var e=null;if(t)try{if(t[mc])e=Ec(t[mc]);else if(t[vc]&&t[vc][mc])e=Ec(t[vc][mc]);else if(t.exception&&t.exception[mc])e=Ec(t.exception[mc]);else if(Ac(t))e=t;else if(Ac(t[yc]))e=t[yc];else if(br()&&br().opera&&t[_c])e=function(t){for(var e=[],r=t[Ha]("\n"),o=0;o<r[qa];o++){var n=r[o];r[o+1]&&(n+="@"+r[o+1],o++),e[Fa](n)}return{src:t,obj:e}}(t[Xa]);else if(t.reason&&t.reason[mc])e=Ec(t.reason[mc]);else if(Ne(t))e=Ec(t);else{var r=t[_c]||t[xc]||"";Ne(t[wc])&&(r&&(r+="\n"),r+=" from "+t[wc]),r&&(e=Ec(r))}}catch(t){e=Ec(t)}return e||{src:"",obj:null}}function $c(t){var e="";if(t&&!(e=t.typeName||t[Ka]||""))try{var r=/function (.{1,200})\(/.exec(t.constructor[Va]());e=r&&r[qa]>1?r[1]:""}catch(t){}return e}function Tc(t){if(t)try{if(!Ne(t)){var e=$c(t),r=kc(t,!1);return r&&"{}"!==r||(t[vc]&&(e=$c(t=t[vc])),r=kc(t,!0)),0!==Bn(r,e)&&"String"!==e?e+":"+r:r}}catch(t){}return""+(t||"")}var Oc,Ic=function(){function t(t,e,r,o,n,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(t){try{if(He(t))return"ver"in t&&"exceptions"in t&&"properties"in t}catch(t){}return!1}(e)?(s[il]=e[il]||[],s[al]=e[al],s[ll]=e[ll],e[dl]&&(s[dl]=e[dl]),e.id&&(s.id=e.id,e[al].id=e.id),e[pl]&&(s[pl]=e[pl]),je(e[hl])||(s[hl]=e[hl])):(r||(r={}),i&&(r.id=i),s[il]=[new Pc(t,e,r)],s[al]=oc(t,r),s[ll]=nc(t,o),n&&(s[dl]=n),i&&(s.id=i))}return t.CreateAutoException=function(t,e,r,o,n,i,s,a){var l,c=$c(n||i||t);return(l={})[Xa]=Cc(t,c),l.url=e,l.lineNumber=r,l.columnNumber=o,l.error=Tc(n||i||t),l.evt=Tc(i||t),l[ul]=c,l.stackDetails=Sc(s||n||i),l.errorSrc=a,l},t.CreateFromInterface=function(e,r,o,n){var i=r[il]&&gc(r[il],(function(t){return Pc[fl](e,t)}));return new t(e,mo(mo({},r),{exceptions:i}),o,n)},t.prototype.toInterface=function(){var t,e=this,r=e.exceptions,o=e.properties,n=e.measurements,i=e.severityLevel,s=e.problemGroup,a=e.id,l=e.isManual,c=r instanceof Array&&gc(r,(function(t){return t.toInterface()}))||void 0;return(t={ver:"4.0"})[il]=c,t.severityLevel=i,t.properties=o,t.measurements=n,t.problemGroup=s,t.id=a,t.isManual=l,t},t.CreateSimpleException=function(t,e,r,o,n,i){var s;return{exceptions:[(s={},s[vl]=!0,s.message=t,s.stack=n,s.typeName=e,s)]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=Tc,t}(),Pc=function(){function t(t,e,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var o=this;if(function(t){try{if(He(t))return"hasFullStack"in t&&"typeName"in t}catch(t){}return!1}(e))o[ul]=e[ul],o[Xa]=e[Xa],o[mc]=e[mc],o[sl]=e[sl]||[],o[vl]=e[vl];else{var n=e,i=n&&n.evt;Fe(n)||(n=n[vc]||i||n),o[ul]=tc(t,$c(n))||Fl,o[Xa]=rc(t,Cc(e||n,o[ul]))||Fl;var s=e[yc]||Sc(e);o[sl]=function(t){var e,r=t.obj;if(r&&r[qa]>0){e=[];var o=0,n=0;if(Vn(r,(function(t){var r=t[Va]();if(Rc.regex.test(r)){var i=new Rc(r,o++);n+=i[cl],e[Fa](i)}})),n>32768)for(var i=0,s=e[qa]-1,a=0,l=i,c=s;i<s;){if((a+=e[i][cl]+e[s][cl])>32768){var u=c-l+1;e.splice(l,u);break}l=i,c=s,i++,s--}}return e}(s),qe(o[sl])&&gc(o[sl],(function(e){e[bl]=tc(t,e[bl]),e[gl]=tc(t,e[gl])})),o[mc]=function(t,e){var r;if(e){var o=""+e;o[qa]>32768&&(r=Gl(o,0,32768),ja(t,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return r||e}(t,function(t){var e="";return t&&(t.obj?Vn(t.obj,(function(t){e+=t+"\n"})):e=t.src||""),e}(s)),o.hasFullStack=qe(o.parsedStack)&&o.parsedStack[qa]>0,r&&(r[ul]=r[ul]||o[ul])}}return t.prototype.toInterface=function(){var t,e=this,r=e[sl]instanceof Array&&gc(e[sl],(function(t){return t.toInterface()}));return(t={id:e.id,outerId:e.outerId,typeName:e[ul],message:e[Xa],hasFullStack:e[vl],stack:e[mc]})[sl]=r||void 0,t},t.CreateFromInterface=function(e,r){var o=r[sl]instanceof Array&&gc(r[sl],(function(t){return Rc[fl](t)}))||r[sl];return new t(e,mo(mo({},r),{parsedStack:o}))},t}(),Rc=function(){function t(e,r){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[cl]=0,"string"==typeof e){var n=e;o[ml]=r,o[yl]="<no_method>",o[bl]=Kn(n),o[gl]="",o[wl]=0;var i=n.match(t.regex);i&&i[qa]>=5&&(o[yl]=Kn(i[2])||o[yl],o[gl]=Kn(i[4]),o[wl]=parseInt(i[5])||0)}else o[ml]=e[ml],o[yl]=e[yl],o[bl]=e[bl],o[gl]=e[gl],o[wl]=e[wl],o[cl]=0;o.sizeInBytes+=o.method[qa],o.sizeInBytes+=o.fileName[qa],o.sizeInBytes+=o.assembly[qa],o[cl]+=t.baseSize,o.sizeInBytes+=o.level.toString()[qa],o.sizeInBytes+=o.line.toString()[qa]}return t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){var t=this;return{level:t[ml],method:t[yl],assembly:t[bl],fileName:t[gl],line:t[wl]}},t.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}();function Mc(){return!Ze&&or(),(!Oc||!Oc.b&&Ze.lzy)&&(Oc=cr("performance")),Oc.v}function Lc(){for(var t,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=Gn,o=0;o<4;o++)r+=e[15&(t=gs())]+e[t>>4&15]+e[t>>8&15]+e[t>>12&15]+e[t>>16&15]+e[t>>20&15]+e[t>>24&15]+e[t>>28&15];var n=e[8+(3&gs())|0];return Jl(r,0,8)+Jl(r,9,4)+"4"+Jl(r,13,3)+n+Jl(r,16,3)+Jl(r,19,12)}var jc="00",Dc="00000000000000000000000000000000",Nc="0000000000000000";function zc(t,e,r){return!(!t||t[Co]!==e||t===r||!t.match(/^[\da-f]*$/i))}function Hc(t,e,r){return zc(t,e)?t:r}function qc(t,e,r,o){var n;return(n={})[Zo]=zc(o,2,"ff")?o:jc,n[Mn]=Uc(t)?t:Lc(),n[Ln]=Bc(e)?e:Yl(Lc(),16),n.traceFlags=r>=0&&r<=255?r:1,n}function Uc(t){return zc(t,32,Dc)}function Bc(t){return zc(t,16,Nc)}function Vc(t){if(t){var e=function(t){(isNaN(t)||t<0||t>255)&&(t=1);for(var e=t.toString(16);e[Co]<2;)e="0"+e;return e}(t[jn]);zc(e,2)||(e="01");var r=t[Zo]||jc;return"00"!==r&&"ff"!==r&&(r=jc),"".concat(r.toLowerCase(),"-").concat(Hc(t.traceId,32,Dc).toLowerCase(),"-").concat(Hc(t.spanId,16,Nc).toLowerCase(),"-").concat(e.toLowerCase())}return""}var Fc=function(t){var e={};return Qe(t,(function(t,r){e[t]=r[1],e[r[0]]=r[1]})),ao(e)}({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Wc=hr()||{},Kc=0,Xc=[null,null,null,null,null];function Gc(t){var e=Kc,r=Xc,o=r[e];return Wc.createElement?r[e]||(o=r[e]=Wc.createElement("a")):o={host:Jc(t,!0)},o.href=t,++e>=r[qa]&&(e=0),Kc=e,o}function Jc(t,e){var r=Qc(t,e)||"";if(r){var o=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[qa]>3&&Ne(o[2])&&o[2][qa]>0)return o[2]+(o[3]||"")}return r}function Qc(t,e){var r=null;if(t){var o=t.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[qa]>2&&Ne(o[2])&&o[2][qa]>0&&(r=o[2]||"",e&&o[qa]>2)){var n=(o[1]||"")[Ua](),i=o[3]||"";("http"===n&&":80"===i||"https"===n&&":443"===i)&&(i=""),r+=i}}return r}var Yc=[Bl+Vl,"https://breeze.aimon.applicationinsights.io"+Vl,"https://dc-int.services.visualstudio.com"+Vl];function Zc(t){return-1!==$s(Yc,t[Ua]())}function tu(t,e,r){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t[nl])for(var o=0;o<t.correlationHeaderExcludePatterns[qa];o++)if(t[nl][o].test(e))return!1;var n=Gc(e).host[Ua]();if(!n||-1===Bn(n,":443")&&-1===Bn(n,":80")||(n=(Qc(e,!0)||"")[Ua]()),(!t||!t.enableCorsCorrelation)&&n&&n!==r)return!1;var i,s=t&&t.correlationHeaderDomains;if(s&&(Vn(s,(function(t){var e=new RegExp(t.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||e.test(n)})),!i))return!1;var a=t&&t.correlationHeaderExcludedDomains;if(!a||0===a[qa])return!0;for(o=0;o<a[qa];o++)if(new RegExp(a[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(n))return!1;return n&&n[qa]>0}function eu(t){if(t){var e=function(t,e){if(t)for(var r=t[Ha](","),o=0;o<r[qa];++o){var n=r[o][Ha]("=");if(2===n[qa]&&n[0]===e)return n[1]}}(t,Fc[1]);if(e&&"cid-v1:"!==e)return e}}function ru(){var t=Mc();if(t&&t.now&&t.timing){var e=t.now()+t.timing.navigationStart;if(e>0)return e}return zi()}function ou(t,e){var r=null;return 0===t||0===e||je(t)||je(e)||(r=e-t),r}function nu(t,e){var r=t||{};return{getName:function(){return r[Ka]},setName:function(t){e&&e.setName(t),r[Ka]=t},getTraceId:function(){return r.traceID},setTraceId:function(t){e&&e.setTraceId(t),Uc(t)&&(r.traceID=t)},getSpanId:function(){return r.parentID},setSpanId:function(t){e&&e.setSpanId(t),Bc(t)&&(r.parentID=t)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(t){e&&e.setTraceFlags(t),r.traceFlags=t}}}var iu=function(){function t(t,e,r,o,n,i,s,a,l,c,u,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var p=this;p.ver=2,p.id=e,p[_l]=hc(n),p.success=i,p.resultCode=s+"",p.type=tc(t,l);var h=function(t,e,r,o){var n,i=o,s=o;if(e&&e[qa]>0){var a=Gc(e);if(n=a.host,!i)if(null!=a[ol]){var l=0===a.pathname[qa]?"/":a[ol];"/"!==l.charAt(0)&&(l="/"+l),s=a[ol],i=tc(t,r?r+" "+l:l)}else i=tc(t,e)}else n=o,i=o;return{target:n,name:i,data:s}}(t,r,a,o);p.data=ec(t,o)||h.data,p.target=tc(t,h.target),c&&(p.target="".concat(p.target," | ").concat(c)),p[Ka]=tc(t,h[Ka]),p[al]=oc(t,u),p[ll]=nc(t,d)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}();function su(t){var e=null;if(ze(Event))e=new Event(t);else{var r=hr();r&&r.createEvent&&(e=r.createEvent("Event")).initEvent(t,!0,!0)}return e}function au(t,e,r){return!t&&je(t)?e:Ve(t)?t:"true"===xr(t)[xo]()}function lu(t){return{mrg:!0,v:t}}function cu(t,e){return{set:t,v:e}}function uu(t,e,r){return{fb:r,isVal:t,v:e}}function du(t,e){return{fb:e,set:au,v:!!t}}var pu,hu,fu=Nn("endsWith",_e,bu);function bu(t,e,r){Ne(t)||_r("'"+Cr(t)+"' is not a string");var o=Ne(e)?e:xr(e),n=!Le(r)&&r<t[fe]?r:t[fe];return Gl(t,n-o[fe],n)===o}var gu,vu="toGMTString",mu="toUTCString",yu="cookie",wu="expires",_u="isCookieUseDisabled",xu="disableCookiesUsage",ku="_ckMgr",Cu=null,Au=null,Eu=null,Su={},$u={},Tu=((pu={cookieCfg:lu((hu={},hu[pi]={fb:"cookieDomain",dfVal:yi},hu.path={fb:"cookiePath",dfVal:yi},hu.enabled=Xn,hu.ignoreCookies=Xn,hu.blockedCookies=Xn,hu)),cookieDomain:Xn,cookiePath:Xn})[xu]=Xn,pu);function Ou(){!gu&&(gu=nr((function(){return hr()})))}function Iu(t){return!t||t.isEnabled()}function Pu(t,e){return!!(e&&t&&qe(t.ignoreCookies))&&-1!==$s(t.ignoreCookies,e)}function Ru(t,e){var r=e[Go];if(je(r)){var o=void 0;Le(t[_u])||(o=!t[_u]),Le(t[xu])||(o=!t[xu]),r=o}return r}function Mu(t,e){var r;if(t)r=t.getCookieMgr();else if(e){var o=e.cookieCfg;r=o&&o[ku]?o[ku]:Lu(e)}return r||(r=function(t,e){var r=Lu[ku]||$u[ku];return r||(r=Lu[ku]=Lu(t,e),$u[ku]=r),r}(e,(t||{})[Io])),r}function Lu(t,e){var r,o,n,i,s,a,l,c,u;t=ya(t||$u,null,e).cfg,s=wa(t,(function(e){e[To](e.cfg,Tu),o=e.ref(e.cfg,"cookieCfg"),n=o[hi]||"/",i=o[pi],a=!1!==Ru(t,o),l=o.getCookie||Hu,c=o.setCookie||qu,u=o.delCookie||qu}),e);var d=((r={isEnabled:function(){var r=!1!==Ru(t,o)&&a&&ju(e),n=$u[ku];return r&&n&&d!==n&&(r=Iu(n)),r},setEnabled:function(t){a=!1!==t,o[Go]=t},set:function(t,e,r,s,a){var l,u=!1;if(Iu(d)&&!function(t,e){return!!(e&&t&&qe(t.blockedCookies)&&-1!==$s(t.blockedCookies,e))||Pu(t,e)}(o,t)){var p={},h=Kn(e||Gn),f=Bn(h,";");if(-1!==f&&(h=Kn(Yl(e,f)),p=Du(Gl(e,f+1))),Ci(p,pi,s||i,Ke,Le),!je(r)){var b=os();if(Le(p[wu])){var g=zi()+1e3*r;if(g>0){var v=new Date;v.setTime(g),Ci(p,wu,Nu(v,b?vu:mu)||Nu(v,b?vu:mu)||Gn,Ke)}}b||Ci(p,"max-age",Gn+r,null,Le)}var m=ts();m&&"https:"===m[pn]&&(Ci(p,"secure",null,null,Le),null===Au&&(l=(gr()||{})[hn],Au=!(Ne(l)&&(_i(l,"CPU iPhone OS 12")||_i(l,"iPad; CPU OS 12")||_i(l,"Macintosh; Intel Mac OS X 10_14")&&_i(l,"Version/")&&_i(l,"Safari")||_i(l,"Macintosh; Intel Mac OS X 10_14")&&fu(l,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||_i(l,"Chrome/5")||_i(l,"Chrome/6")||_i(l,"UnrealEngine")&&!_i(l,"Chrome")||_i(l,"UCBrowser/12")||_i(l,"UCBrowser/11")))),Au&&Ci(p,"SameSite","None",null,Le)),Ci(p,hi,a||n,null,Le),c(t,zu(h,p)),u=!0}return u},get:function(t){var e=Gn;return Iu(d)&&!Pu(o,t)&&(e=l(t)),e},del:function(t,e){var r=!1;return Iu(d)&&(r=d.purge(t,e)),r},purge:function(t,r){var o,n=!1;if(ju(e)){var i=((o={})[hi]=r||"/",o[wu]="Thu, 01 Jan 1970 00:00:01 GMT",o);os()||(i["max-age"]="0"),u(t,zu(Gn,i)),n=!0}return n}})[Qo]=function(t){s&&s.rm(),s=null},r);return d[ku]=d,d}function ju(t){if(null===Cu){Cu=!1,!gu&&Ou();try{var e=gu.v||{};Cu=void 0!==e[yu]}catch(e){ja(t,2,68,"Cannot access document.cookie - "+ki(e),{exception:Cr(e)})}}return Cu}function Du(t){var e={};return t&&t[Co]&&Vn(Kn(t)[fn](";"),(function(t){if(t=Kn(t||Gn)){var r=Bn(t,"=");-1===r?e[t]=null:e[Kn(Yl(t,r))]=Kn(Gl(t,r+1))}})),e}function Nu(t,e){return ze(t[e])?t[e]():null}function zu(t,e){var r=t||Gn;return Qe(e,(function(t,e){r+="; "+t+(je(e)?Gn:"="+e)})),r}function Hu(t){var e=Gn;if(!gu&&Ou(),gu.v){var r=gu.v[yu]||Gn;Eu!==r&&(Su=Du(r),Eu=r),e=Kn(Su[t]||Gn)}return e}function qu(t,e){!gu&&Ou(),gu.v&&(gu.v[yu]=t+"="+e)}var Uu="on",Bu="attachEvent",Vu="addEventListener",Fu="detachEvent",Wu="removeEventListener",Ku="events",Xu="visibilitychange",Gu="pagehide",Ju="unload",Qu="beforeunload",Yu=xs("aiEvtPageHide"),Zu=(xs("aiEvtPageShow"),/\.[\.]+/g),td=/[\.]+$/,ed=1,rd=ks("events"),od=/^([^.]*)(?:\.(.+)|)/;function nd(t){return t&&t[gn]?t[gn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Gn):t}function id(t,e){var r;if(e){var o=Gn;qe(e)?(o=Gn,Vn(e,(function(t){(t=nd(t))&&("."!==t[0]&&(t="."+t),o+=t)}))):o=nd(e),o&&("."!==o[0]&&(o="."+o),t=(t||Gn)+o)}var n=od.exec(t||Gn)||[];return(r={})[mn]=n[1],r.ns=(n[2]||Gn).replace(Zu,".").replace(td,Gn)[fn](".").sort().join("."),r}function sd(t,e,r){void 0===r&&(r=!0);var o=rd.get(t,Ku,{},r),n=o[e];return n||(n=o[e]=[]),n}function ad(t,e,r,o){t&&e&&e[mn]&&(t[Wu]?t[Wu](e[mn],r,o):t[Fu]&&t[Fu](Uu+e[mn],r))}function ld(t,e,r,o){for(var n=e[Co];n--;){var i=e[n];i&&(r.ns&&r.ns!==i.evtName.ns||o&&!o(i)||(ad(t,i.evtName,i[yn],i.capture),e[Mo](n,1)))}}function cd(t,e){return e?id("xx",qe(e)?[t].concat(e):[t,e]).ns[fn]("."):t}function ud(t,e,r,o,n){var i;void 0===n&&(n=!1);var s=!1;if(t)try{var a=id(e,o);if(s=function(t,e,r,o){var n=!1;return t&&e&&e[mn]&&r&&(t[Vu]?(t[Vu](e[mn],r,o),n=!0):t[Bu]&&(t[Bu](Uu+e[mn],r),n=!0)),n}(t,a,r,n),s&&rd.accept(t)){var l=((i={guid:ed++,evtName:a})[yn]=r,i.capture=n,i);sd(t,a.type)[Ro](l)}}catch(t){}return s}function dd(t,e,r,o,n){if(void 0===n&&(n=!1),t)try{var i=id(e,o),s=!1;!function(t,e,r){if(e[mn])ld(t,sd(t,e[mn]),e,r);else{var o=rd.get(t,Ku,{});Qe(o,(function(o,n){ld(t,n,e,r)})),0===so(o)[Co]&&rd.kill(t,Ku)}}(t,i,(function(t){return!((!i.ns||r)&&t[yn]!==r||(s=!0,0))})),s||ad(t,i,r,n)}catch(t){}}function pd(t,e,r,o){var n=!1;return e&&t&&t[Co]>0&&Vn(t,(function(t){t&&(r&&-1!==$s(r,t)||(n=function(t,e,r){var o=!1,n=br();n&&(o=ud(n,t,e,r),o=ud(n.body,t,e,r)||o);var i=hr();return i&&(o=ud(i,t,e,r)||o),o}(t,e,o)||n))})),n}function hd(t,e,r){t&&qe(t)&&Vn(t,(function(t){t&&function(t,e,r){var o=br();o&&(dd(o,t,e,r),dd(o.body,t,e,r));var n=hr();n&&dd(n,t,e,r)}(t,e,r)}))}function fd(t,e,r){var o=cd(Yu,r),n=pd([Gu],t,e,o);return e&&-1!==$s(e,Xu)||(n=pd([Xu],(function(e){var r=hr();t&&r&&"hidden"===r.visibilityState&&t(e)}),e,o)||n),!n&&e&&(n=fd(t,null,r)),n}var bd="ctx",gd="ParentContextKey",vd="ChildrenContextKey",md=function(){function t(e,r,o){var n,i=this;i.start=zi(),i[Fo]=e,i[sn]=o,i[kn]=function(){return!1},ze(r)&&rr(i,"payload",{g:function(){return!n&&ze(r)&&(n=r(),r=null),n}}),i[An]=function(e){return e?e===t[gd]||e===t[vd]?i[e]:(i[bd]||{})[e]:null},i[En]=function(e,r){e&&(e===t[gd]?(i[e]||(i[kn]=function(){return!0}),i[e]=r):e===t[vd]?i[e]=r:(i[bd]=i[bd]||{})[e]=r)},i[Sn]=function(){var e=0,r=i[An](t[vd]);if(qe(r))for(var o=0;o<r[Co];o++){var n=r[o];n&&(e+=n[Wo])}i[Wo]=zi()-i.start,i.exTime=i[Wo]-e,i[Sn]=function(){}}}return t.ParentContextKey="parent",t.ChildrenContextKey="childEvts",t}(),yd=function(){function t(e){this.ctx={},oo(t,this,(function(t){t.create=function(t,e,r){return new md(t,e,r)},t.fire=function(t){t&&(t[Sn](),e&&ze(e[ai])&&e[ai](t))},t[En]=function(e,r){e&&((t[bd]=t[bd]||{})[e]=r)},t[An]=function(e){return(t[bd]||{})[e]}}))}return t.__ieDyn=1,t}(),wd="CoreUtils.doPerf";function _d(t,e,r,o,n){if(t){var i=t;if(i[di]&&(i=i[di]()),i){var s=void 0,a=i[An](wd);try{if(s=i.create(e(),o,n)){if(a&&s[En]&&(s[En](md[gd],a),a[An]&&a[En])){var l=a[An](md[vd]);l||(l=[],a[En](md[vd],l)),l[Ro](s)}return i[En](wd,s),r(s)}}catch(t){s&&s[En]&&s[En]("exception",t)}finally{s&&i.fire(s),i[En](wd,a)}}}return r()}var xd=ks("plugin");function kd(t){return xd.get(t,"state",{},!0)}function Cd(t,e){for(var r,o=[],n=null,i=t[un]();i;){var s=i[Bo]();if(s){n&&n[dn]&&s[ri]&&n[dn](s);var a=!!(r=kd(s))[qo];s[qo]&&(a=s[qo]()),a||o[Ro](s),n=s,i=i[un]()}}Vn(o,(function(o){var n=t[Qn]();o[Do](t.getCfg(),n,e,t[un]()),r=kd(o),o[Qn]||r[Qn]||(r[Qn]=n),r[qo]=!0,delete r[rn]}))}function Ad(t){return t.sort((function(t,e){var r=0;if(e){var o=e[ri];t[ri]?r=o?t[oi]-e[oi]:1:o&&(r=-1)}else r=t?1:-1;return r}))}var Ed="TelemetryPluginChain",Sd="_hasRun",$d="_getTelCtx",Td=0;function Od(t,e,r,o){var n=null,i=[];e||(e=ya({},null,r[Io])),null!==o&&(n=o?function(t,e,r){for(;t;){if(t[Bo]()===r)return t;t=t[un]()}return Md([r],e.config||{},e)}(t,r,o):t);var s={_next:function(){var t=n;if(n=t?t[un]():null,!t){var e=i;e&&e[Co]>0&&(Vn(e,(function(t){try{t.func.call(t.self,t.args)}catch(t){ja(r[Io],2,73,"Unexpected Exception during onComplete - "+Cr(t))}})),i=[])}return t},ctx:{core:function(){return r},diagLog:function(){return Ra(r,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:function(t,r){var o=a(t,!0);return r&&Qe(r,(function(t,r){if(je(o[t])){var n=e.cfg[t];!n&&je(n)||(o[t]=n)}Ss(e,o,t,r)})),e[To](o,r)},getConfig:function(t,r,o){void 0===o&&(o=!1);var n,i=a(t,!1),s=e.cfg;return!i||!i[r]&&je(i[r])?!s[r]&&je(s[r])||(n=s[r]):n=i[r],n||!je(n)?n:o},hasNext:function(){return!!n},getNext:function(){return n},setNext:function(t){n=t},iterate:function(t){for(var e;e=s._next();){var r=e[Bo]();r&&t(r)}},onComplete:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t&&i[Ro]({func:t,self:Le(e)?s.ctx:e,args:r})}}};function a(t,r){var o=null,n=e.cfg;if(n&&t){var i=n[ti];!i&&r&&(i={}),n[ti]=i,(i=e.ref(n,ti))&&(!(o=i[t])&&r&&(o={}),i[t]=o,o=e.ref(i,t))}return o}return s}function Id(t,e,r,o){var n=ya(e),i=Od(t,n,r,o),s=i.ctx;return s[Ko]=function(t){var e=i._next();return e&&e[ri](t,s),!e},s[en]=function(t,e){return void 0===t&&(t=null),qe(t)&&(t=Md(t,n.cfg,r,e)),Id(t||s[un](),n.cfg,r,e)},s}function Pd(t,e,r){var o=ya(e.config),n=Od(t,o,e,r),i=n.ctx;return i[Ko]=function(t){var e=n._next();return e&&e[Qo](i,t),!e},i[en]=function(t,r){return void 0===t&&(t=null),qe(t)&&(t=Md(t,o.cfg,e,r)),Pd(t||i[un](),e,r)},i}function Rd(t,e,r){var o=ya(e.config),n=Od(t,o,e,r).ctx;return n[Ko]=function(t){return n.iterate((function(e){ze(e[cn])&&e[cn](n,t)}))},n[en]=function(t,r){return void 0===t&&(t=null),qe(t)&&(t=Md(t,o.cfg,e,r)),Rd(t||n[un](),e,r)},n}function Md(t,e,r,o){var n=null,i=!o;if(qe(t)&&t[Co]>0){var s=null;Vn(t,(function(t){if(i||o!==t||(i=!0),i&&t&&ze(t[ri])){var a=function(t,e,r){var o,n=null,i=ze(t[ri]),s=ze(t[dn]),a={getPlugin:function(){return t},getNext:function(){return n},processTelemetry:function(o,c){l(c=c||function(){var o;return t&&ze(t[$d])&&(o=t[$d]()),o||(o=Id(a,e,r)),o}(),(function(e){if(!t||!i)return!1;var r=kd(t);return!r[rn]&&!r[Zn]&&(s&&t[dn](n),t[ri](o,e),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||c[Ko](o)},unload:function(e,r){l(e,(function(){var o=!1;if(t){var n=kd(t),i=t[Qn]||n[Qn];!t||i&&i!==e.core()||n[rn]||(n[Qn]=null,n[rn]=!0,n[qo]=!1,t[rn]&&!0===t[rn](e,r)&&(o=!0))}return o}),"unload",(function(){}),r[sn])||e[Ko](r)},update:function(e,r){l(e,(function(){var o=!1;if(t){var n=kd(t),i=t[Qn]||n[Qn];!t||i&&i!==e.core()||n[rn]||t[cn]&&!0===t[cn](e,r)&&(o=!0)}return o}),"update",(function(){}),!1)||e[Ko](r)},_id:o=t?t[No]+"-"+t[oi]+"-"+Td++:"Unknown-0-"+Td++,_setNext:function(t){n=t}};function l(e,r,i,s,a){var l=!1,c=t?t[No]:Ed,u=e[Sd];return u||(u=e[Sd]={}),e.setNext(n),t&&_d(e[Qn](),(function(){return c+":"+i}),(function(){u[o]=!0;try{var t=n?n._id:Gn;t&&(u[t]=!1),l=r(e)}catch(t){var s=!n||u[n._id];s&&(l=!0),n&&s||ja(e[an](),1,73,"Plugin ["+c+"] failed during "+i+" - "+Cr(t)+", run flags: "+Cr(u))}}),s,a),l}return lo(a)}(t,e,r);n||(n=a),s&&s._setNext(a),s=a}}))}return o&&!n?Md([o],e,r):n}var Ld,jd,Dd="_aiHooks",Nd=["req","rsp","hkErr","fnErr"];function zd(t,e){if(t)for(var r=0;r<t[Co]&&!e(t[r],r);r++);}function Hd(t,e,r,o,n){n>=0&&n<=2&&zd(t,(function(t,i){var s=t.cbks,a=s[Nd[n]];if(a){e.ctx=function(){return o[i]=o[i]||{}};try{a[Po](e.inst,r)}catch(t){var l=e.err;try{var c=s[Nd[2]];c&&(e.err=t,c[Po](e.inst,r))}catch(t){}finally{e.err=l}}}}))}function qd(t,e,r,o){var n=null;return t&&(Ge(t,e)?n=t:r&&(n=qd(mi(t),e,o,!1))),n}function Ud(t,e,r,o){var n=r&&r[Dd];if(!n){var i=function(t){return function(){var e,r=arguments,o=t.h,n=((e={})[Fo]=t.n,e.inst=this,e.ctx=null,e.set=function(t,e){(r=a([],r))[t]=e,s=a([n],r)},e),i=[],s=a([n],r);function a(t,e){return zd(e,(function(e){t[Ro](e)})),t}n.evt=dr("event"),Hd(o,n,s,i,0);var l=t.f;if(l)try{n.rslt=l[Po](this,r)}catch(t){throw n.err=t,Hd(o,n,s,i,3),t}return Hd(o,n,s,i,1),n.rslt}}(n={i:0,n:e,f:r,h:[]});i[Dd]=n,t[e]=i}var s={id:n.i,cbks:o,rm:function(){var t=this.id;zd(n.h,(function(e,r){if(e.id===t)return n.h[Mo](r,1),1}))}};return n.i++,n.h[Ro](s),s}function Bd(t,e,r,o,n){if(void 0===o&&(o=!0),t&&e&&r){var i=qd(t,e,o,n);if(i){var s=i[e];if(typeof s===uo)return Ud(i,e,s,r)}}return null}function Vd(t,e,r,o,n){if(t&&e&&r){var i=qd(t,e,o,n)||t;if(i)return Ud(i,e,i[e],r)}return null}function Fd(){var t=[];return{add:function(e){e&&t[Ro](e)},run:function(e,r){Vn(t,(function(t){try{t(e,r)}catch(t){ja(e[an](),2,73,"Unexpected error calling unload handler - "+Cr(t))}})),t=[]}}}function Wd(t){return!!t&&ze(t.next)}function Kd(t,e,r){if(t&&(Wd(t)||(!Ld&&(Ld=ir(Us(3))),t=t[Ld.v]?t[Ld.v]():null),Wd(t))){var o=void 0,n=void 0;try{for(var i=0;!(n=t.next()).done&&-1!==e[ge](r||t,n.value,i,t);)i++}catch(e){o={e},t.throw&&(n=null,t.throw(o))}finally{try{n&&!n.done&&t.return&&t.return(n)}finally{if(o)throw o.e}}}}function Xd(t,e){return!Le(e)&&t&&(qe(e)?oa(t.push,t,e):Wd(e)||!function(t){return t===ne||!De(t)}(r=e)&&ze(r[Us(3)])?Kd(e,(function(e){t.push(e)})):t.push(e)),t;var r}function Gd(){var t=[];return{run:function(e){var r=t;t=[],Vn(r,(function(t){try{(t.rm||t.remove).call(t)}catch(t){ja(e,2,73,"Unloading:"+Cr(t))}}))},add:function(e){e&&Xd(t,e)}}}var Jd="getPlugin",Qd=((jd={})[ti]={isVal:yi,v:{}},jd),Yd=function(){function t(){var e,r,o,n,i,s=this;function a(t){void 0===t&&(t=null);var e=t;if(!e){var n=r||Id(null,{},s[Qn]);e=o&&o[Jd]?n[en](null,o[Jd]):n[en](null,o)}return e}function l(t,e,n){ya(t,Qd,Ra(e)),!n&&e&&(n=e[Xo]()[un]());var i=o;o&&o[Jd]&&(i=o[Jd]()),s[Qn]=e,r=Id(n,t,e,i)}function c(){e=!1,s[Qn]=null,r=null,o=null,i=Gd(),n=Fd()}c(),oo(t,s,(function(t){t[Do]=function(t,r,o,n){l(t,r,n),e=!0},t[rn]=function(e,r){var s,a=t[Qn];if(a&&(!e||a===e[Qn]())){var l,u=!1,d=e||Pd(null,a,o&&o[Jd]?o[Jd]():o),p=r||((s={reason:0})[sn]=!1,s);return t[ln]&&!0===t[ln](d,p,h)?l=!0:h(),l}function h(){u||(u=!0,n.run(d,r),i.run(d[an]()),!0===l&&d[Ko](p),c())}},t[cn]=function(e,r){var n=t[Qn];if(n&&(!e||n===e[Qn]())){var i,s=!1,a=e||Rd(null,n,o&&o[Jd]?o[Jd]():o),c=r||{reason:0};return t._doUpdate&&!0===t._doUpdate(a,c,u)?i=!0:u(),i}function u(){s||(s=!0,l(a.getCfg(),a.core(),a[un]()))}},Si(t,"_addUnloadCb",(function(){return n}),"add"),Si(t,"_addHook",(function(){return i}),"add"),rr(t,"_unloadHooks",{g:function(){return i}})})),s[an]=function(t){return a(t)[an]()},s[qo]=function(){return e},s.setInitialized=function(t){e=t},s[dn]=function(t){o=t},s[Ko]=function(t,e){e?e[Ko](t):o&&ze(o[ri])&&o[ri](t,null)},s._getTelCtx=a}return t.__ieDyn=1,t}(),Zd="toString",tp="isStorageUseDisabled",ep="_addHook",rp="core",op="dataType",np="envelopeType",ip="diagLog",sp="track",ap="trackPageView",lp="trackPreviousPageVisit",cp="sendPageViewInternal",up="startTime",dp="properties",pp="duration",hp="sendPageViewPerformanceInternal",fp="populatePageViewPerformanceEvent",bp="href",gp="sendExceptionInternal",vp="exception",mp="error",yp="_onerror",wp="errorSrc",_p="lineNumber",xp="columnNumber",kp="message",Cp="CreateAutoException",Ap="addTelemetryInitializer",Ep="autoTrackPageVisitTime",Sp="isBrowserLinkTrackingEnabled",$p="length",Tp="enableAutoRouteTracking",Op="enableUnhandledPromiseRejectionTracking",Ip="autoUnhandledPromiseInstrumented",Pp="getEntriesByType",Rp="isPerformanceTimingSupported",Mp="getPerformanceTiming",Lp="navigationStart",jp="shouldCollectDuration",Dp="isPerformanceTimingDataReady",Np="responseStart",zp="loadEventEnd",Hp="responseEnd",qp="connectEnd",Up="pageVisitStartTime",Bp=function(){function t(e,r,o,n){oo(t,this,(function(t){var i,s=null,a=[],l=!1,c=!1;function u(t){o&&o.flush(t,(function(){}))}function d(){s||(s=pa((function(){s=null;var t=a.slice(0),e=!1;a=[],Vn(t,(function(t){t()?e=!0:a.push(t)})),a[$p]>0&&d(),e&&u(!0)}),100))}function p(t){a.push(t),d()}o&&(i=o.logger),t[ap]=function(t,o){var s=t.name;if(je(s)||"string"!=typeof s){var a=hr();s=t.name=a&&a.title||""}var d=t.uri;if(je(d)||"string"!=typeof d){var h=ts();d=t.uri=h&&h[bp]||""}if(!c){var f=Mc(),b=f&&f[Pp]&&f[Pp]("navigation");if(b&&b[0]&&!Le(f.timeOrigin)){var g=b[0].loadEventStart;t[up]=new Date(f.timeOrigin+g)}else{var v=(o||t[dp]||{})[pp]||0;t[up]=new Date((new Date).getTime()-v)}c=!0}if(!n[Rp]())return e[cp](t,o),u(!0),void(yr()||ja(i,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var m,y,w=!1,_=n[Mp]()[Lp];_>0&&(m=ou(_,+new Date),n[jp](m)||(m=void 0)),je(o)||je(o[pp])||(y=o[pp]),!r&&isNaN(y)||(isNaN(y)&&(o||(o={}),o[pp]=m),e[cp](t,o),u(!0),w=!0),o||(o={}),p((function(){var r=!1;try{if(n[Dp]()){r=!0;var a={name:s,uri:d};n[fp](a),a.isValid||w?(w||(o[pp]=a.durationMs,e[cp](t,o)),l||(e[hp](a,o),l=!0)):(o[pp]=m,e[cp](t,o))}else _>0&&ou(_,+new Date)>6e4&&(r=!0,w||(o[pp]=6e4,e[cp](t,o)))}catch(t){ja(i,1,38,"trackPageView failed on page load calculation: "+ki(t),{exception:Cr(t)})}return r}))},t.teardown=function(t,e){if(s){s.cancel(),s=null;var r=a.slice(0);a=[],Vn(r,(function(t){t()}))}}}))}return t.__ieDyn=1,t}(),Vp=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Fp(){var t=Mc();return t&&!!t.timing}function Wp(){var t=Mc(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e[Lp]>0&&e[Np]>0&&e.requestStart>0&&e[zp]>0&&e[Hp]>0&&e[qp]>0&&e.domLoading>0}function Kp(){return Fp()?Mc().timing:null}function Xp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(gr()||{}).userAgent,o=!1;if(r)for(var n=0;n<Vp[$p];n++)o=o||-1!==Bn(r.toLowerCase(),Vp[n]);if(o)return!1;for(n=0;n<t[$p];n++)if(t[n]<0||t[n]>=36e5)return!1;return!0}var Gp,Jp=function(){function t(e){var r=Ra(e);oo(t,this,(function(t){t[fp]=function(e){e.isValid=!1;var o,n=(o=Mc())&&o.getEntriesByType&&o.getEntriesByType("navigation")[$p]>0?Mc()[Pp]("navigation")[0]:null,i=Kp(),s=0,a=0,l=0,c=0,u=0;(n||i)&&(n?(s=n[pp],a=0===n[up]?n[qp]:ou(n[up],n[qp]),l=ou(n.requestStart,n[Np]),c=ou(n[Np],n[Hp]),u=ou(n.responseEnd,n[zp])):(s=ou(i[Lp],i[zp]),a=ou(i[Lp],i[qp]),l=ou(i.requestStart,i[Np]),c=ou(i[Np],i[Hp]),u=ou(i.responseEnd,i[zp])),0===s?ja(r,2,10,"error calculating page view performance.",{total:s,network:a,request:l,response:c,dom:u}):t[jp](s,a,l,c,u)?s<Math.floor(a)+Math.floor(l)+Math.floor(c)+Math.floor(u)?ja(r,2,8,"client performance math error.",{total:s,network:a,request:l,response:c,dom:u}):(e.durationMs=s,e.perfTotal=e[pp]=hc(s),e.networkConnect=hc(a),e.sentRequest=hc(l),e.receivedResponse=hc(c),e.domProcessing=hc(u),e.isValid=!0):ja(r,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:s,network:a,request:l,response:c,dom:u}))},t[Mp]=Kp,t[Rp]=Fp,t[Dp]=Wp,t[jp]=Xp}))}return t.__ieDyn=1,t}(),Qp=function(){function t(e,r){var o="prevPageVisitData";oo(t,this,(function(t){t[lp]=function(t,n){try{var i=function(t,r){var n=null;try{if(n=function(){var t=null;try{if(Rl()){var r=zi(),n=Ml(e,o);n&&es()&&((t=rs().parse(n)).pageVisitTime=r-t[Up],function(t,e){var r=$l();if(null!==r)try{return r[Wa](e),!0}catch(e){Cl=!1,ja(t,2,6,"Browser failed removal of session storage item. "+ki(e),{exception:Cr(e)})}}(e,o))}}catch(r){Da(e,"Stop page visit timer failed: "+Cr(r)),t=null}return t}(),Rl()){null!=Ml(e,o)&&wr("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=rs().stringify(new Yp(t,r));Ll(e,o,i)}}catch(t){Da(e,"Call to restart failed: "+Cr(t)),n=null}return n}(t,n);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(t){Da(e,"Auto track page visit time failed, metric will not be collected: "+Cr(t))}},rr(t,"_logger",{g:function(){return e}}),rr(t,"pageVisitTimeTrackingHandler",{g:function(){return r}})}))}return t.__ieDyn=1,t}(),Yp=function(t,e){this[Up]=zi(),this.pageName=t,this.pageUrl=e},Zp=function(t,e){var r=this,o={};r.start=function(e){void 0!==o[e]&&ja(t,2,62,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),o[e]=+new Date},r.stop=function(e,n,i,s){var a=o[e];if(isNaN(a))ja(t,2,63,"stop was called without a corresponding start.",{name:e,key:e},!0);else{var l=ou(a,+new Date);r.action(e,n,l,i,s)}delete o[e],o[e]=void 0}};function th(t,e){t&&t.dispatchEvent&&e&&t.dispatchEvent(e)}var eh=ao(((Gp={sessionRenewalMs:cu(rh,18e5),sessionExpirationMs:cu(rh,864e5),disableExceptionTracking:du()})[Ep]=du(),Gp.overridePageViewDuration=du(),Gp[Op]=du(),Gp[Ip]=!1,Gp.samplingPercentage=uu((function(t){return!isNaN(t)&&t>0&&t<=100}),100),Gp[tp]=du(),Gp[Sp]=du(),Gp[Tp]=du(),Gp.namePrefix={isVal:Ne,v:xr(Gn)},Gp.enableDebug=du(),Gp.disableFlushOnBeforeUnload=du(),Gp.disableFlushOnUnload=du(!1,"disableFlushOnBeforeUnload"),Gp));function rh(t,e){return(t=t||e)<6e4&&(t=6e4),+t}var oh=function(t){function e(){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m,y,w,_=t.call(this)||this;return _.identifier=Nl,_.priority=180,_.autoRoutePVDelay=500,oo(e,_,(function(t,e){var _=e[ep];function x(e,r,o,n,i){t[ip]().throwInternal(e,r,o,n,i)}function k(){r=null,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,h=!1,f=!1,b=!1,v=!1;var e=ts(!0);m=e&&e[bp]||"",y=null,w=null,g=null,rr(t,"config",{g:function(){return g}})}k(),t.getCookieMgr=function(){return Mu(t[rp])},t.processTelemetry=function(e,r){t.processNext(e,r)},t.trackEvent=function(e,r){try{var o=ac(e,lc[op],lc[np],t[ip](),r);t[rp][sp](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+ki(t),{exception:Cr(t)})}},t.startTrackEvent=function(t){try{r.start(t)}catch(t){x(1,29,"startTrackEvent failed, event will not be collected: "+ki(t),{exception:Cr(t)})}},t.stopTrackEvent=function(t,e,o){try{r.stop(t,void 0,e,o)}catch(t){x(1,30,"stopTrackEvent failed, event will not be collected: "+ki(t),{exception:Cr(t)})}},t.trackTrace=function(e,r){try{var o=ac(e,cc[op],cc[np],t[ip](),r);t[rp][sp](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+ki(t),{exception:Cr(t)})}},t.trackMetric=function(e,r){try{var o=ac(e,dc[op],dc[np],t[ip](),r);t[rp][sp](o)}catch(t){x(1,36,"trackMetric failed, metric will not be collected: "+ki(t),{exception:Cr(t)})}},t[ap]=function(t,e){try{var r=t||{};n[ap](r,mo(mo(mo({},r.properties),r.measurements),e)),v&&s[lp](r.name,r.uri)}catch(t){x(1,37,"trackPageView failed, page view will not be collected: "+ki(t),{exception:Cr(t)})}},t[cp]=function(e,r,o){var n=hr();if(n&&(e.refUri=void 0===e.refUri?n.referrer:e.refUri),je(e[up])){var i=(r||e[dp]||{})[pp]||0;e[up]=new Date((new Date).getTime()-i)}var s=ac(e,fc[op],fc[np],t[ip](),r,o);t[rp][sp](s)},t[hp]=function(e,r,o){var n=ac(e,bc[op],bc[np],t[ip](),r,o);t[rp][sp](n)},t.trackPageViewPerformance=function(e,r){var o=e||{};try{i[fp](o),t[hp](o,r)}catch(t){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+ki(t),{exception:Cr(t)})}},t.startTrackPage=function(t){try{if("string"!=typeof t){var e=hr();t=e&&e.title||""}o.start(t)}catch(t){x(1,31,"startTrackPage failed, page view may not be collected: "+ki(t),{exception:Cr(t)})}},t.stopTrackPage=function(t,e,r,n){try{if("string"!=typeof t){var i=hr();t=i&&i.title||""}if("string"!=typeof e){var a=ts();e=a&&a[bp]||""}o.stop(t,e,r,n),v&&s[lp](t,e)}catch(t){x(1,32,"stopTrackPage failed, page view will not be collected: "+ki(t),{exception:Cr(t)})}},t[gp]=function(e,r,o){var n=e&&(e[vp]||e[mp])||Fe(e)&&e||{name:e&&typeof e,message:e||Fl};e=e||{};var i=ac(new Ic(t[ip](),n,e[dp]||r,e.measurements,e.severityLevel,e.id).toInterface(),Ic[op],Ic[np],t[ip](),r,o);t[rp][sp](i)},t.trackException=function(e,r){e&&!e[vp]&&e[mp]&&(e[vp]=e[mp]);try{t[gp](e,r)}catch(t){x(1,35,"trackException failed, exception will not be collected: "+ki(t),{exception:Cr(t)})}},t[yp]=function(e){var r=e&&e[mp],o=e&&e.evt;try{if(!o){var n=br();n&&(o=n.event)}var i=e&&e.url||(hr()||{}).URL,s=e[wp]||"window.onerror@"+i+":"+(e[_p]||0)+":"+(e[xp]||0),a={errorSrc:s,url:i,lineNumber:e[_p]||0,columnNumber:e[xp]||0,message:e[kp]};!function(t,e,r,o,n){return!n&&Ne(t)&&("Script error."===t||"Script error"===t)}(e.message,e.url,e.lineNumber,e.columnNumber,e[mp])?(e[wp]||(e[wp]=s),t.trackException({exception:e,severityLevel:3},a)):function(e,r){var o=ac(e,Ic[op],Ic[np],t[ip](),r);t[rp][sp](o)}(Ic[Cp]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,e[_p]||0,e[xp]||0,r,o,null,s),a)}catch(t){var l=r?r.name+", "+r[kp]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+ki(t),{exception:Cr(t),errorString:l})}},t[Ap]=function(e){if(t[rp])return t[rp][Ap](e);a||(a=[]),a.push(e)},t.initialize=function(x,k,C,A){if(!t.isInitialized()){je(k)&&wr("Error initializing"),e.initialize(x,k,C,A);try{w=cd(xs(t.identifier),k.evtNamespace&&k.evtNamespace()),a&&(Vn(a,(function(t){k[Ap](t)})),a=null),function(e){var r=t.identifier,o=t[rp];t[ep](wa(e,(function(){var n,i=Id(null,e,o);g=i.getExtCfg(r,eh),v=g[Ep],e.storagePrefix&&Tl(e.storagePrefix),Le((n=g)[tp])||(n[tp]?(kl=!1,Cl=!1):(kl=Ol(!0),Cl=Rl(!0))),l=g[Sp],function(){if(!c&&l){var e=["/browserLinkSignalR/","/__browserLink/"];t[ep](t[Ap]((function(t){if(l&&t.baseType===iu[op]){var r=t.baseData;if(r)for(var o=0;o<e[$p];o++)if(r.target&&Bn(r.target,e[o])>=0)return!1}return!0}))),c=!0}}()})))}(x),i=new Jp(t[rp]),n=new Bp(t,g.overridePageViewDuration,t[rp],i),s=new Qp(t[ip](),(function(e,r,o){return function(e,r,o){var n={PageName:e,PageUrl:r};t.trackMetric({name:"PageVisitTime",average:o,max:o,min:o,sampleCount:1},n)}(e,r,o)})),(r=new Zp(t[ip](),"trackEvent")).action=function(e,r,o,n,i){n||(n={}),i||(i={}),n.duration=o[Zd](),t.trackEvent({name:e,properties:n,measurements:i})},(o=new Zp(t[ip](),"trackPageView")).action=function(e,r,o,n,i){je(n)&&(n={}),n.duration=o[Zd]();var s={name:e,uri:r,properties:n,measurements:i};t[cp](s,n)},fr()&&(E=br(),S=ts(!0),t[ep](wa(g,(function(){(p=g.disableExceptionTracking)||h||g.autoExceptionInstrumented||(_(Vd(E,"onerror",{ns:w,rsp:function(e,r,o,n,i,s){p||!0===e.rslt||t[yp](Ic[Cp](r,o,n,i,s,e.evt))}},!1)),h=!0)}))),function(e,r){t[ep](wa(g,(function(){f=!0===g[Op],h=h||g[Ip],f&&!b&&(_(Vd(e,"onunhandledrejection",{ns:w,rsp:function(e,o){f&&!0!==e.rslt&&t[yp](Ic[Cp](function(t){if(t&&t.reason){var e=t.reason;return!Ne(e)&&ze(e[Zd])?e[Zd]():Cr(e)}return t||""}(o),r?r[bp]:"",0,0,o,e.evt))}},!1)),g[Ip]=b=!0)})))}(E,S),function(){var e=br(),r=ts(!0);t[ep](wa(g,(function(){if(u=!0===g[Tp],e&&u&&!d&&vr()){var o=vr();ze(o.pushState)&&ze(o.replaceState)&&typeof Event!==ho&&function(e,r,o){if(!d){var n=g.namePrefix||"";_(Vd(r,"pushState",{ns:w,rsp:function(){u&&(th(e,su(n+"pushState")),th(e,su(n+"locationchange")))}},!0)),_(Vd(r,"replaceState",{ns:w,rsp:function(){u&&(th(e,su(n+"replaceState")),th(e,su(n+"locationchange")))}},!0)),ud(e,n+"popstate",(function(){u&&th(e,su(n+"locationchange"))}),w),ud(e,n+"locationchange",(function(){if(y?(m=y,y=o&&o[bp]||""):y=o&&o[bp]||"",u){var e=function(){var e=null;if(t[rp]&&t[rp].getTraceCtx&&(e=t[rp].getTraceCtx(!1)),!e){var r=t[rp].getPlugin(jl);if(r){var o=r.plugin.context;o&&(e=nu(o.telemetryTrace))}}return e}();if(e){e.setTraceId(Lc());var r="_unknown_";o&&o.pathname&&(r=o.pathname+(o.hash||"")),e.setName(tc(t[ip](),r))}pa(function(e){t[ap]({refUri:e,properties:{duration:0}})}.bind(t,m),t.autoRoutePVDelay)}}),w),d=!0}}(e,o,r)}})))}())}catch(e){throw t.setInitialized(!1),e}var E,S}},t._doTeardown=function(t,e){n&&n.teardown(t,e),dd(window,null,null,w),k()},rr(t,"_pageViewManager",{g:function(){return n}}),rr(t,"_pageViewPerformanceManager",{g:function(){return i}}),rr(t,"_pageVisitTimeManager",{g:function(){return s}}),rr(t,"_evtNamespace",{g:function(){return"."+w}})})),_}return wo(e,t),e.Version="3.1.2",e}(Yd),nh="Promise",ih="rejected";function sh(t,e){return ah(t,(function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t}),(function(t){return e?e({status:ih,rejected:!0,reason:t}):t}))}function ah(t,e,r,o){var n=t;try{if(We(t))(e||r)&&(n=t.then(e,r));else try{e&&(n=e(t))}catch(t){if(!r)throw t;n=r(t)}}finally{o&&function(t,e){e&&(We(t)?t.finally?t.finally(e):t.then((function(t){return e(),t}),(function(t){throw e(),t})):e())}(n,o)}return n}function lh(t){return t.value&&ph(t),!0}var ch=[function(t){var e=t.value;if(qe(e)){var r=t.result=[];return r.length=e.length,t.copyTo(r,e),!0}return!1},ph,function(t){return t.type===se},function(t){var e=t.value;return!!Ue(e)&&(t.result=new Date(e.getTime()),!0)}];function uh(t,e,r,o){var n=r.handler,i=r.path?o?r.path.concat(o):r.path:[],s={handler:r.handler,src:r.src,path:i},a=typeof e,l=!1,c=!1;e&&a===ae?l=Fn(e):c=e===ne||function(t){return!$e&&($e=["string","number","boolean",ue,"symbol","bigint"]),t!==ae&&-1!==$e.indexOf(t)}(a);var u={type:a,isPrim:c,isPlain:l,value:e,result:e,path:i,origin:r.src,copy:function(e,o){return uh(t,e,o?s:r,o)},copyTo:function(e,r){return dh(t,e,r,s)}};return u.isPrim?n&&n[ge](r,u)?u.result:e:function(t,e,o,i){var s;return Vn(t,(function(t){if(t.k===e)return s=t,-1})),s||(s={k:e,v:e},t.push(s),function(t){rr(u,"result",{g:function(){return t.v},s:function(e){t.v=e}});for(var e=0,o=n;!(o||(e<ch.length?ch[e++]:lh))[ge](r,u);)o=ne}(s)),s.v}(t,e)}function dh(t,e,r,o){if(!je(r))for(var n in r)e[n]=uh(t,r[n],o,n);return e}function ph(t){var e=t.value;if(e&&t.isPlain){var r=t.result={};return t.copyTo(r,e),!0}return!1}function hh(t,e){return Vn(e,(function(e){!function(t,e,r){dh([],t,e,{handler:void 0,src:e,path:[]})}(t,e)})),t}function fh(t,e,r,o,n,i,s){return hh(uh([],a=t,{handler:undefined,src:a})||{},Ae[ge](arguments));var a}var bh=Dn("split",_e);function gh(t,e,r){if(t&&e){var o=bh(e,"."),n=o.pop();Vn(o,(function(e){je(t[e])&&(t[e]={}),t=t[e]})),t[n]=r}}qs();var vh="featureOptIn",mh="onCfgChangeReceive",yh="nonOverrideConfigs",wh="scheduleFetchTimeout";function _h(t,e,r,o){try{var n=r>o;n&&(t=null);var i=0==r?function(t,e,r,o,n,i,s){return hh(t||{},Ae[ge](arguments))}({},t):t;return i&&e&&!n&&Qe(i,(function(t){var n=e[t];n&&(He(i[t])&&He(n)?i[t]=_h(i[t],n,++r,o):delete i[t])})),i}catch(t){}return t}var xh,kh="featureOptIn.",Ch=".mode",Ah=".onCfg",Eh=".offCfg";var Sh,$h,Th,Oh=void 0,Ih=ao(((xh={syncMode:1,blkCdnCfg:Oh,customEvtName:Oh,cfgUrl:Oh,overrideSyncFn:Oh,overrideFetchFn:Oh})[mh]=Oh,xh[wh]=18e5,xh[yh]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},xh)),Ph=function(t){function e(){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m=t.call(this)||this;m.priority=198,m.identifier="AppInsightsCfgSyncPlugin";var y=!1;return oo(e,m,(function(t,e){function m(){o=null,n=null,i=null,s=null,l=null,c=null,f=null,a=null,d=null,p=null,u=null,g=null,v=null,h=null}function w(e,r){if(e){if(o=e,r&&!y)return x();if(l&&!y)return t.core.updateCfg(e),!0}return!1}function _(){try{var t=ur();t&&dd(t,null,null,i)}catch(t){}}function x(t){try{return v&&ze(v)?v(o,t):function(t,e,r){var o,n,i=ur();if(i&&i.CustomEvent)try{return o=i,n=function(t,e){var r=null,o={detail:e||null};if(ze(CustomEvent))r=new CustomEvent(t,o);else{var n=hr();n&&n.createEvent&&(r=n.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,o)}return r}(t,{cfg:e||null,customDetails:r||null}),!!(o&&o.dispatchEvent&&n)&&(o.dispatchEvent(n),!0)}catch(t){}return!1}(n,o,t)}catch(t){}return!1}function k(t){try{return _(),t&&(n=t,function(){if(l){var t=ur();if(t)try{ud(t,n,(function(t){var e=t&&t.detail;if(h&&e)h(e);else{var r=e&&e.cfg,o=r&&Fn(r)&&function(t,e){var r=null;try{t&&(r=_h(t,f,0,5))}catch(t){}return r}(r);o&&w(o)}}),i,!0)}catch(t){}}}()),!0}catch(t){}return!1}function C(t,e,r){var o=ur(),n=o&&o.fetch||null;if(t&&n&&ze(n))try{var i=new Request(t,{method:"GET"});sh(fetch(i),(function(t){var o=t.value;t.rejected?S(e,400):o.ok?sh(o.text(),(function(t){S(e,o.status,t.value,r)})):S(e,o.status,null,r)}))}catch(t){}}function A(t,e,r){try{var o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&S(e,o.status,o.responseText,r)},o.onerror=function(){S(e,400)},o.ontimeout=function(){S(e,400)},o.send()}catch(t){}}function E(e,r,o){try{if(e>=200&&e<400&&r){p=0;var n=rs();if(n){var i=function(t,e){try{if(!t||!t.enabled)return null;if(!t[vh])return t.config;var r=t[vh],o=t.config||{};return Qe(r,(function(r){var n,i,s,a,l,c,u,d=function(t,e,r){var o;if(!e||!e.enabled)return null;var n=(e[vh]||{})[t]||{mode:1},i=n.mode,s=n.onCfg,a=n.offCfg,l=(r||{})[t]||{mode:2},c=l.mode,u=l.onCfg,d=l.offCfg,p=!!l.blockCdnCfg,h=kh+t+Ah,f=kh+t+Eh,b=c,g=u,v=d;return p||(4===i||5===i?(b=4==i?3:2,g=s||u,v=a||d):2===i||2===c?(b=2,g=u||s,v=d||a):3===i?(b=3,g=u||s,v=d||a):1===i&&1===c&&(b=1)),(o={})[kh+t+Ch]=b,o[h]=g,o[f]=v,o}(r,t,e.config[vh]);je(d)||(Qe(d,(function(t,e){gh(o,t,e)})),s=o,a=(i=d)[kh+(n=r)+Ch],l=i[kh+n+Ah],c=i[kh+n+Eh],u=null,3===a&&(u=l),2===a&&(u=c),u&&Qe(u,(function(t,e){gh(s,t,e)})))})),o}catch(t){}return null}(n.parse(r),t.core);i&&w(i,o)}}else p++;p<3&&$()}catch(t){}}function S(t,e,r,o){try{t(e,r,o)}catch(t){}}function $(){!a&&d&&(a=pa((function(){a=null,b(s,E,c)}),d)).unref()}function T(){a&&a.cancel(),a=null,p=0}m(),t.initialize=function(a,m,y,w){e.initialize(a,m,y,w),i=cd(xs(t.identifier),m.evtNamespace&&m.evtNamespace()),function(e){var i=t.identifier,a=t.core;t._addHook(wa(e,(function(){var t=Id(null,e,a);r=t.getExtCfg(i,Ih);var d=u;u=!!r.blkCdnCfg,je(d)||d===u||(!u&&s?b&&b(s,E,c):T()),je(l)&&(l=2===r.syncMode),je(c)&&(c=1===r.syncMode);var p=r.customEvtName||"ai_cfgsync";n!==p&&(l?k(p):(_(),n=p)),je(s)&&(s=r.cfgUrl),s||(o=e,c&&x())}))),v=r.overrideSyncFn,g=r.overrideFetchFn,h=r[mh],f=r[yh],d=r[wh],b=function(){var t=g;return je(t)&&(ss()?t=C:as()&&(t=A)),t}(),p=0,s&&!u&&b&&b(s,E,c)}(a)},t.getCfg=function(){return o},t.pause=function(){y=!0,T()},t.resume=function(){y=!1,$()},t.setCfg=function(t){return w(t)},t.sync=function(t){return x(t)},t.updateEventListenerName=function(t){return k(t)},t._doTeardown=function(t,e){_(),T(),m()},t._getDbgPlgTargets=function(){return[c,l,n,u]},t.processTelemetry=function(e,r){t.processNext(e,r)}})),m}return wo(e,t),e.__ieDyn=1,e}(Yd);function Rh(t,e){dd(t,null,null,e)}function Mh(t,e,r){return(t&&t.slice||Ae).apply(t,Ae[ge](arguments,1))}var Lh,jh=!1,Dh=["pending","resolving","resolved",ih],Nh="dispatchEvent";function zh(t){var e;return t&&t.createEvent&&(e=t.createEvent("Event")),!!e&&e.initEvent}var Hh,qh="unhandledRejection",Uh=qh.toLowerCase(),Bh=[],Vh=0,Fh=10;function Wh(t){return ze(t)?t.toString():Cr(t)}function Kh(t,e,r){var o,n,i=Mh(arguments,3),s=0,a=!1,l=[],c=Vh++,u=Bh.length>0?Bh[Bh.length-1]:void 0,d=!1,p=null;function h(e,r){try{return Bh.push(c),d=!0,p&&p.cancel(),p=null,t((function(t,n){l.push((function(){try{var i=2===s?e:r,a=Le(i)?o:ze(i)?i(o):i;We(a)?a.then(t,n):i?t(a):3===s?n(a):t(a)}catch(t){n(t)}})),a&&b()}),i)}finally{Bh.pop()}}function f(){return Dh[s]}function b(){if(l.length>0){var t=l.slice();l=[],d=!0,p&&p.cancel(),p=null,e(t)}}function g(t,e){return function(r){if(s===e){if(2===t&&We(r))return s=1,void r.then(g(2,1),g(3,1));s=t,a=!0,o=r,b(),d||3!==t||p||(p=pa(v,Fh))}}}function v(){d||(d=!0,mr()?process.emit(qh,o,n):function(t,e,r,o){var n=hr();!Lh&&(Lh=ir(!!Ee(zh,[n]).v));var i=Lh.v?n.createEvent("Event"):o?new Event(e):{};if(r&&r(i),Lh.v&&i.initEvent(e,!1,!0),i&&t[Nh])t[Nh](i);else{var s=t["on"+e];if(s)s(i);else{var a=dr("console");a&&(a.error||a.log)(e,Cr(i))}}}(br()||ur(),Uh,(function(t){return rr(t,"promise",{g:function(){return n}}),t.reason=o,t}),!!Hh.v))}return!Hh&&(Hh=cr(nh+"RejectionEvent")),tr(n={then:h,catch:function(t){return h(void 0,t)},finally:function(t){var e=t,r=t;return ze(t)&&(e=function(e){return t&&t(),e},r=function(e){throw t&&t(),e}),h(e,r)}},"state",{get:f}),jh&&function(t,e,r,n){$h=$h||{toString:function(){return"[[PromiseResult]]"}},Th=Th||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[Sh=Sh||{toString:function(){return"[[PromiseState]]"}}]={get:e},i[$h]={get:function(){return Me(o)}},i[Th]={get:function(){return d}},er(t,i)}(n,f),qs()&&(n[Us(11)]="IPromise"),n.toString=function(){return"IPromise"+(jh?"["+c+(Le(u)?"":":"+u)+"]":"")+" "+f()+(a?" - "+Wh(o):"")},function(){ze(r)||_r(nh+": executor is not a function - "+Wh(r));var t=g(3,0);try{r.call(n,g(2,0),t)}catch(e){t(e)}}(),n}function Xh(t){return function(e){var r=Mh(arguments,1);return t((function(t,r){try{var o=[],n=1;Kd(e,(function(e,i){e&&(n++,ah(e,(function(e){o[i]=e,0==--n&&t(o)}),r))})),0==--n&&t(o)}catch(t){r(t)}}),r)}}function Gh(t,e){return Kh(Gh,function(t){var e=Be(t)?t:0;return function(t){pa((function(){!function(t){Vn(t,(function(t){try{t()}catch(t){}}))}(t)}),e)}}(e),t,e)}var Jh,Qh,Yh=!0;function Zh(t,e){!Jh&&(Jh=ir(Yh&&Ee(dr,[nh]).v||null));var r=Jh.v;if(!r)return Gh(t);ze(t)||_r(nh+": executor is not a function - "+Cr(t));var o=0,n=new r((function(e,r){t((function(t){o=2,e(t)}),(function(t){o=3,r(t)}))}));return tr(n,"state",{get:function(){return Dh[o]}}),n}function tf(t,e){return!Qh&&(Qh=ir(Zh)),Qh.v.call(this,t,e)}var ef=Xh(tf),rf="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",of="",nf="&NoResponseBody=true",sf="POST",af=function(){function t(){var e,r,o,n,i,s,a,l,c,u,d,p,h,f=0;oo(t,this,(function(t,b){var g=!0;function v(t,e){ja(o,2,26,"Failed to send telemetry.",{message:t}),y(e,400,{})}function m(t){v("No endpoint url is provided for the batch",t)}function y(t,e,r,o){try{t&&t(e,r,o)}catch(t){}}function w(t,e){var r=gr(),o=t[Tn];if(!o)return m(e),!0;o=t[Tn]+(p?nf:of);var i=t[Cn],s=n?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(o,s)}function _(t,e,r){var s=t[Cn];try{if(s)if(w(t,e))y(e,200,{},of);else{var l=i&&i.beaconOnRetry;l&&ze(l)?l(t,e,w):(a&&a[On](t,e,!0),ja(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(t){n&&Da(o,"Failed to send telemetry using sendBeacon API. Ex:"+Cr(t)),y(e,n?0:400,{},of)}}function x(t,r,o){var s,a,l,c=t[In]||{};!o&&e&&(s=tf((function(t,e){a=t,l=e}))),n&&o&&t.disableXhrSync&&(o=!1);var u=t[Tn];if(!u)return m(r),void(a&&a(!1));var d=function(t,e,r,o,n,i){function s(t,e,r){try{t[e]=r}catch(t){}}void 0===o&&(o=!1),void 0===n&&(n=!1);var a=new XMLHttpRequest;return o&&s(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o),r&&s(a,ji,r),a.open(t,e,!n),r&&s(a,ji,r),!n&&i&&s(a,"timeout",i),a}(sf,u,g,!0,o,t[Pn]);function p(e){var o=i&&i.xhrOnComplete;if(o&&ze(o))o(e,r,t);else{var s=Pi(e);y(r,e[wn],Ni(e,n),s)}}return d[Rn]("Content-type","application/json"),Vn(so(c),(function(t){d[Rn](t,c[t])})),d.onreadystatechange=function(){n||(p(d),4===d.readyState&&a&&a(!0))},d.onload=function(){n&&p(d)},d.onerror=function(t){y(r,n?d[wn]:400,Ni(d,n),n?of:Mi(d)),l&&l(t)},d.ontimeout=function(){y(r,n?d[wn]:500,Ni(d,n),n?of:Mi(d)),a&&a(!1)},d.send(t[Cn]),s}function k(t,r,o){var s,a,l,c,u=t[Tn],d=t[Cn],b=n?d:new Blob([d],{type:"application/json"}),v=new Headers,w=d[Co],_=!1,x=!1,k=t[In]||{},C=((s={method:sf,body:b})[rf]=!0,s);t.headers&&so(t.headers)[Co]>0&&(Vn(so(k),(function(t){v.append(t,k[t])})),C[In]=v),g&&n&&(C.credentials="include"),o&&(C.keepalive=!0,f+=w,n?2===t._sendReason&&(_=!0,p&&(u+=nf)):_=!0);var A=new Request(u,C);try{A[rf]=!0}catch(t){}if(!o&&e&&(a=tf((function(t,e){l=t,c=e}))),!u)return m(r),void(l&&l(!1));function E(t){y(r,n?0:400,{},n?of:t)}function S(t,e,o){var n=t[wn],s=i.fetchOnComplete;s&&ze(s)?s(t,r,o||of,e):y(r,n,{},o||of)}try{sh(fetch(n?u:A,n?C:null),(function(e){if(o&&(f-=w,w=0),!x)if(x=!0,e.rejected)E(e.reason&&e.reason[nn]),c&&c(e.reason);else{var r=e.value;try{n||r.ok?n&&!r.body?(S(r,null,of),l&&l(!0)):sh(r.text(),(function(e){S(r,t,e.value),l&&l(!0)})):(E(r.statusText),l&&l(!1))}catch(t){E(Cr(t)),c&&c(t)}}}))}catch(t){x||(E(Cr(t)),c&&c(t))}return _&&!x&&(x=!0,y(r,200,{}),l&&l(!0)),n&&!x&&t[Pn]>0&&h&&h.set((function(){x||(x=!0,y(r,500,{}),l&&l(!0))}),t[Pn]),a}function C(t,e,r){var s=br(),a=new XDomainRequest,l=t[Cn];a.onload=function(){var r=Pi(a),o=i&&i.xdrOnComplete;o&&ze(o)?o(a,e,t):y(e,200,{},r)},a.onerror=function(){y(e,400,{},n?of:Ri(a))},a.ontimeout=function(){y(e,500,{})},a.onprogress=function(){};var c=s&&s.location&&s.location[pn]||"",u=t[Tn];if(u){if(!n&&0!==u.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return ja(o,2,40,". "+d),void v(d,e)}var p=n?u:u[gn](/^(https?:)/,"");a.open(sf,p),t[Pn]&&(a[Pn]=t[Pn]),a.send(l),n&&r?h&&h.set((function(){a.send(l)}),0):a.send(l)}else m(e)}function A(){f=0,r=!1,e=!1,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,h=null}A(),t[Do]=function(e,n){o=n,r&&ja(o,1,28,"Sender is already initialized"),t.SetConfig(e),r=!0},t._getDbgPlgTargets=function(){return[r,n,s,e]},t.SetConfig=function(t){try{if(i=t.senderOnCompleteCallBack||{},s=!!t.disableCredentials,n=!!t.isOneDs,e=!!t.enableSendPromise,l=!!t.disableXhr,c=!!t.disableBeacon,u=!!t.disableBeaconSync,h=t.timeWrapper,p=!!t.addNoResponse,d=!!t.disableFetchKeepAlive,a={sendPOST:x},n||(g=!1),s){var r=ts();r&&r.protocol&&"file:"===r.protocol[xo]()&&(g=!1)}return!0}catch(t){}return!1},t.getSyncFetchPayload=function(){return f},t.getSenderInst=function(t,e){return t&&t[Co]?function(t,e){for(var r,o=0,n=null,i=0;null==n&&i<t[Co];)o=t[i],l||1!==o?2!==o||!ss(e)||e&&d?3!==o||!is()||(e?u:c)||(n=_):n=k:(null===Qi&&(Qi=typeof XDomainRequest!==ho)&&as()&&(Qi=Qi&&!Zi(dr(Ki),"withCredentials")),Qi?n=C:as()&&(n=x)),i++;return n?((r={_transport:o,_isSync:e})[On]=n,r):null}(t,e):null},t.getFallbackInst=function(){return a},t[ln]=function(t,e){A()}}))}return t.__ieDyn=1,t}(),lf=zn(fe);function cf(t,e){if(t&&t[Qo])return t[Qo](e)}function uf(t,e,r){var o;return r||(o=tf((function(t){r=t}))),t&&lf(t)>0?sh(cf(t[0],e),(function(){uf(Mh(t,1),e,r)})):r(),o}function df(t,e){try{if(t&&""!==t){var r=rs().parse(t);if(r&&r[$n]&&r[$n]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[Co])return r}}catch(r){ja(e,1,43,"Cannot parse the response. "+(r[Fo]||Cr(r)),{response:t})}return null}function pf(t){var e="ai."+t+".";return function(t){return e+t}}var hf,ff=pf("application"),bf=pf("device"),gf=pf("location"),vf=pf("operation"),mf=pf("session"),yf=pf("user"),wf=pf("cloud"),_f=pf("internal"),xf=function(t){function e(){return t.call(this)||this}return wo(e,t),e}((hf={applicationVersion:ff("ver"),applicationBuild:ff("build"),applicationTypeId:ff("typeId"),applicationId:ff("applicationId"),applicationLayer:ff("layer"),deviceId:bf("id"),deviceIp:bf("ip"),deviceLanguage:bf("language"),deviceLocale:bf("locale"),deviceModel:bf("model"),deviceFriendlyName:bf("friendlyName"),deviceNetwork:bf("network"),deviceNetworkName:bf("networkName"),deviceOEMName:bf("oemName"),deviceOS:bf("os"),deviceOSVersion:bf("osVersion"),deviceRoleInstance:bf("roleInstance"),deviceRoleName:bf("roleName"),deviceScreenResolution:bf("screenResolution"),deviceType:bf("type"),deviceMachineName:bf("machineName"),deviceVMName:bf("vmName"),deviceBrowser:bf("browser"),deviceBrowserVersion:bf("browserVersion"),locationIp:gf("ip"),locationCountry:gf("country"),locationProvince:gf("province"),locationCity:gf("city"),operationId:vf("id"),operationName:vf("name"),operationParentId:vf("parentId"),operationRootId:vf("rootId"),operationSyntheticSource:vf("syntheticSource"),operationCorrelationVector:vf("correlationVector"),sessionId:mf("id"),sessionIsFirst:mf("isFirst"),sessionIsNew:mf("isNew"),userAccountAcquisitionDate:yf("accountAcquisitionDate"),userAccountId:yf("accountId"),userAgent:yf("userAgent"),userId:yf("id"),userStoreRegion:yf("storeRegion"),userAuthUserId:yf("authUserId"),userAnonymousUserAcquisitionDate:yf("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:yf("authUserAcquisitionDate"),cloudName:wf("name"),cloudRole:wf("role"),cloudRoleVer:wf("roleVer"),cloudRoleInstance:wf("roleInstance"),cloudEnvironment:wf("environment"),cloudLocation:wf("location"),cloudDeploymentUnit:wf("deploymentUnit"),internalNodeName:_f("nodeName"),internalSdkVersion:_f("sdkVersion"),internalAgentVersion:_f("agentVersion"),internalSnippet:_f("snippet"),internalSdkSrc:_f("sdkSrc")},function(){var t=this;hf&&Qe(hf,(function(e,r){t[e]=r}))})),kf="user",Cf="device",Af="trace",Ef=new xf,Sf=function(t,e,r){var o=this,n=this;n.ver=1,n.sampleRate=100,n.tags={},n[Ka]=tc(t,r)||Fl,n.data=e,n.time=xi(new Date),n.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===o.sampleRate?4:1},tags:1,data:1}},$f=function(t,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=e},Tf="duration",Of="tags",If="deviceType",Pf="data",Rf="name",Mf="traceID",Lf="length",jf="stringify",Df="measurements",Nf="dataType",zf="envelopeType",Hf="toString",qf="_get",Uf="enqueue",Bf="count",Vf="eventsLimitInMem",Ff="push",Wf="emitLineDelimitedJson",Kf="clear",Xf="createNew",Gf="markAsSent",Jf="clearSent",Qf="bufferOverride",Yf="BUFFER_KEY",Zf="SENT_BUFFER_KEY",tb="MAX_BUFFER_SIZE",eb="triggerSend",rb="diagLog",ob="initialize",nb="_sender",ib="customHeaders",sb="maxBatchSizeInBytes",ab="onunloadDisableBeacon",lb="isBeaconApiDisabled",cb="alwaysUseXhrOverride",ub="disableXhr",db="enableSessionStorageBuffer",pb="_buffer",hb="onunloadDisableFetch",fb="disableSendBeaconSplit",bb="instrumentationKey",gb="enableSendPromise",vb="getSenderInst",mb="unloadTransports",yb="convertUndefined",wb="maxBatchInterval",_b="serialize",xb="_onError",kb="_onPartialSuccess",Cb="_onSuccess",Ab="itemsAccepted",Eb="oriPayload",Sb="baseType",$b="sampleRate",Tb="eventsSendRequest",Ob="getSamplingScore",Ib="baseType",Pb="baseData",Rb="properties",Mb="true";function Lb(t,e,r){return Ci(t,e,r,Ke)}function jb(t,e,r){je(t)||Qe(t,(function(t,o){Be(o)?r[t]=o:Ne(o)?e[t]=o:es()&&(e[t]=rs()[jf](o))}))}function Db(t,e){je(t)||Qe(t,(function(r,o){t[r]=o||e}))}function Nb(t,e,r,o){var n=new Sf(t,o,e);Lb(n,"sampleRate",r[Hl]),(r[Pb]||{}).startTime&&(n.time=xi(r[Pb].startTime)),n.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return n[Rf]=n[Rf].replace("{0}",i),function(t,e,r){var o=r[Of]=r[Of]||{},n=e.ext=e.ext||{},i=e[Of]=e[Of]||[],s=n.user;s&&(Lb(o,Ef.userAuthUserId,s.authId),Lb(o,Ef.userId,s.id||s.localId));var a=n.app;a&&Lb(o,Ef.sessionId,a.sesId);var l=n.device;l&&(Lb(o,Ef.deviceId,l.id||l.localId),Lb(o,Ef[If],l.deviceClass),Lb(o,Ef.deviceIp,l.ip),Lb(o,Ef.deviceModel,l.model),Lb(o,Ef[If],l[If]));var c=e.ext.web;if(c){Lb(o,Ef.deviceLanguage,c.browserLang),Lb(o,Ef.deviceBrowserVersion,c.browserVer),Lb(o,Ef.deviceBrowser,c.browser);var u=r[Pf]=r[Pf]||{},d=u[Pb]=u[Pb]||{},p=d[Rb]=d[Rb]||{};Lb(p,"domain",c.domain),Lb(p,"isManual",c.isManual?Mb:null),Lb(p,"screenRes",c.screenRes),Lb(p,"userConsent",c.userConsent?Mb:null)}var h=n.os;h&&Lb(o,Ef.deviceOS,h[Rf]);var f=n.trace;f&&(Lb(o,Ef.operationParentId,f.parentID),Lb(o,Ef.operationName,tc(t,f[Rf])),Lb(o,Ef.operationId,f[Mf]));for(var b={},g=i[Lf]-1;g>=0;g--)Qe(i[g],(function(t,e){b[t]=e})),i.splice(g,1);Qe(i,(function(t,e){b[t]=e}));var v=mo(mo({},o),b);v[Ef.internalSdkVersion]||(v[Ef.internalSdkVersion]=tc(t,"javascript:".concat(Hb.Version),64)),r[Of]=Ti(v)}(t,r,n),r[Of]=r[Of]||[],Ti(n)}function zb(t,e){je(e[Pb])&&ja(t,1,46,"telemetryItem.baseData cannot be null.")}var Hb={Version:"3.1.2"};function qb(t,e,r){zb(t,e);var o={},n={};e[Ib]!==lc[Nf]&&(o.baseTypeSource=e[Ib]),e[Ib]===lc[Nf]?(o=e[Pb][Rb]||{},n=e[Pb][Df]||{}):e[Pb]&&jb(e[Pb],o,n),jb(e[Pf],o,n),je(r)||Db(o,r);var i=e[Pb][Rf],s=new lc(t,i,o,n),a=new $f(lc[Nf],s);return Nb(t,lc[zf],e,a)}var Ub,Bb,Vb=function(){function t(e,r){var o=[],n=!1;this[qf]=function(){return o},this._set=function(t){return o=t},oo(t,this,(function(t){t[Uf]=function(i){t[Bf]()>=r[Vf]?n||(ja(e,2,105,"Maximum in-memory buffer size reached: "+t[Bf](),!0),n=!0):o[Ff](i)},t[Bf]=function(){return o[Lf]},t.size=function(){for(var t=o[Lf],e=0;e<o[Lf];e++)t+=o[e][Lf];return r[Wf]||(t+=2),t},t[Kf]=function(){o=[],n=!1},t.getItems=function(){return o.slice(0)},t.batchPayloads=function(t){return t&&t[Lf]>0?r[Wf]?t.join("\n"):"["+t.join(",")+"]":null},t[Xf]=function(t,r,n){var i=o.slice(0);t=t||e,r=r||{};var s=n?new Wb(t,r):new Fb(t,r);return Vn(i,(function(t){s[Uf](t)})),s}}))}return t.__ieDyn=1,t}(),Fb=function(t){function e(r,o){var n=t.call(this,r,o)||this;return oo(e,n,(function(t,e){t[Gf]=function(t){e[Kf]()},t[Jf]=function(t){}})),n}return wo(e,t),e.__ieDyn=1,e}(Vb),Wb=function(t){function e(r,o){var n=t.call(this,r,o)||this,i=!1,s=null==o?void 0:o.namePrefix,a=o[Qf]||{getItem:Ml,setItem:Ll},l=a.getItem,c=a.setItem;return oo(e,n,(function(t,o){var n=p(e[Yf]),a=p(e[Zf]),u=t._set(n.concat(a));function d(t,e){var r=[];return Vn(e,(function(e){ze(e)||-1!==$s(t,e)||r[Ff](e)})),r}function p(t){var e=t;try{var o=l(r,e=s?s+"_"+e:e);if(o){var n=rs().parse(o);if(Ne(n)&&(n=rs().parse(n)),n&&qe(n))return n}}catch(t){ja(r,1,42," storage key: "+e+", "+ki(t),{exception:Cr(t)})}return[]}function h(t,e){var o=t;try{o=s?s+"_"+o:o;var n=JSON[jf](e);c(r,o,n)}catch(t){c(r,o,JSON[jf]([])),ja(r,2,41," storage key: "+o+", "+ki(t)+". Buffer cleared",{exception:Cr(t)})}}u[Lf]>e[tb]&&(u[Lf]=e[tb]),h(e[Zf],[]),h(e[Yf],u),t[Uf]=function(n){t[Bf]()>=e[tb]?i||(ja(r,2,67,"Maximum buffer size reached: "+t[Bf](),!0),i=!0):(o[Uf](n),h(e.BUFFER_KEY,t[qf]()))},t[Kf]=function(){o[Kf](),h(e.BUFFER_KEY,t[qf]()),h(e[Zf],[]),i=!1},t[Gf]=function(o){h(e[Yf],t._set(d(o,t[qf]())));var n=p(e[Zf]);n instanceof Array&&o instanceof Array&&((n=n.concat(o))[Lf]>e[tb]&&(ja(r,1,67,"Sent buffer reached its maximum size: "+n[Lf],!0),n[Lf]=e[tb]),h(e[Zf],n))},t[Jf]=function(t){var r=p(e[Zf]);r=d(t,r),h(e[Zf],r)},t[Xf]=function(o,n,i){i=!!i;var s=t[qf]().slice(0),a=p(e[Zf]).slice(0);o=o||r,n=n||{},t[Kf]();var l=i?new e(o,n):new Fb(o,n);return Vn(s,(function(t){l[Uf](t)})),i&&l[Gf](a),l}})),n}return wo(e,t),e.BUFFER_KEY="AI_buffer",e.SENT_BUFFER_KEY="AI_sentBuffer",e.MAX_BUFFER_SIZE=2e3,e}(Vb),Kb=function(){function t(e){oo(t,this,(function(t){function r(t,i){var s="__aiCircularRefCheck",a={};if(!t)return ja(e,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),a;if(t[s])return ja(e,2,50,"Circular reference detected while serializing object",{name:i},!0),a;if(!t.aiDataContract){if("measurements"===i)a=n(t,"number",i);else if("properties"===i)a=n(t,"string",i);else if("tags"===i)a=n(t,"string",i);else if(qe(t))a=o(t,i);else{ja(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{rs()[jf](t),a=t}catch(t){ja(e,1,48,t&&ze(t[Hf])?t[Hf]():"Error serializing object",null,!0)}}return a}return t[s]=!0,Qe(t.aiDataContract,(function(n,s){var l=ze(s)?1&s():1&s,c=ze(s)?4&s():4&s,u=2&s,d=void 0!==t[n],p=He(t[n])&&null!==t[n];if(!l||d||u){if(!c){var h;void 0!==(h=p?u?o(t[n],n):r(t[n],n):t[n])&&(a[n]=h)}}else ja(e,1,24,"Missing required field specification. The field is required but not present on source",{field:n,name:i})})),delete t[s],a}function o(t,o){var n;if(t)if(qe(t)){n=[];for(var i=0;i<t[Lf];i++){var s=r(t[i],o+"["+i+"]");n[Ff](s)}}else ja(e,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:o},!0);return n}function n(t,r,o){var n;return t&&(n={},Qe(t,(function(t,i){if("string"===r)void 0===i?n[t]="undefined":null===i?n[t]="null":i[Hf]?n[t]=i[Hf]():n[t]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)n[t]="undefined";else if(null===i)n[t]="null";else{var s=parseFloat(i);n[t]=s}else n[t]="invalid field: "+o+" is of unknown type.",ja(e,1,n[t],null,!0)}))),n}t[_b]=function(t){var o=r(t,"root");try{return rs()[jf](o)}catch(t){ja(e,1,48,t&&ze(t[Hf])?t[Hf]():"Error serializing object",null,!0)}}}))}return t.__ieDyn=1,t}(),Xb=function(){function t(){}return t.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/t.INT_MAX_VALUE*100},t.prototype.getHashCode=function(t){if(""===t)return 0;for(;t[Lf]<8;)t=t.concat(t);for(var e=5381,r=0;r<t[Lf];++r)e=(e<<5)+e+t.charCodeAt(r),e|=0;return Math.abs(e)},t.INT_MAX_VALUE=2147483647,t}(),Gb=function(){var t=new Xb,e=new xf;this[Ob]=function(r){return r[Of]&&r[Of][e.userId]?t.getHashCodeScore(r[Of][e.userId]):r.ext&&r.ext.user&&r.ext.user.id?t.getHashCodeScore(r.ext.user.id):r[Of]&&r[Of][e.operationId]?t.getHashCodeScore(r[Of][e.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[Mf]?t.getHashCodeScore(r.ext.telemetryTrace[Mf]):100*Math.random()}},Jb=function(){function t(t,e){this.INT_MAX_VALUE=2147483647;var r=e||Ra(null);(t>100||t<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[$b]=t,this.samplingScoreGenerator=new Gb}return t.prototype.isSampledIn=function(t){var e=this[$b];return null==e||e>=100||t.baseType===dc[Nf]||this.samplingScoreGenerator[Ob](t)<e},t}(),Qb=void 0;function Yb(t){try{return t.responseText}catch(t){}return null}var Zb=ao(((Ub={endpointUrl:uu(Ke,Bl+Vl)})[Wf]=du(),Ub[wb]=15e3,Ub[sb]=102400,Ub.disableTelemetry=du(),Ub[db]=du(!0),Ub.isRetryDisabled=du(),Ub[lb]=du(!0),Ub[fb]=du(!0),Ub[ub]=du(),Ub[hb]=du(),Ub[ab]=du(),Ub[bb]=Qb,Ub.namePrefix=Qb,Ub.samplingPercentage=uu((function(t){return!isNaN(t)&&t>0&&t<=100}),100),Ub[ib]=Qb,Ub[yb]=Qb,Ub[Vf]=1e4,Ub[Qf]=!1,Ub.httpXHROverride={isVal:function(t){return t&&t.sendPOST},v:Qb},Ub[cb]=du(),Ub.transports=Qb,Ub.retryCodes=Qb,Ub)),tg=((Bb={})[lc.dataType]=qb,Bb[cc.dataType]=function(t,e,r){zb(t,e);var o=e[Pb].message,n=e[Pb].severityLevel,i=e[Pb][Rb]||{},s=e[Pb][Df]||{};jb(e[Pf],i,s),je(r)||Db(i,r);var a=new cc(t,o,n,i,s),l=new $f(cc[Nf],a);return Nb(t,cc[zf],e,l)},Bb[fc.dataType]=function(t,e,r){var o;zb(t,e);var n=e[Pb];je(n)||je(n[Rb])||je(n[Rb][Tf])?je(e[Pf])||je(e[Pf][Tf])||(o=e[Pf][Tf],delete e[Pf][Tf]):(o=n[Rb][Tf],delete n[Rb][Tf]);var i,s=e[Pb];((e.ext||{}).trace||{})[Mf]&&(i=e.ext.trace[Mf]);var a=s.id||i,l=s[Rf],c=s.uri,u=s[Rb]||{},d=s[Df]||{};je(s.refUri)||(u.refUri=s.refUri),je(s.pageType)||(u.pageType=s.pageType),je(s.isLoggedIn)||(u.isLoggedIn=s.isLoggedIn[Hf]()),je(s[Rb])||Qe(s[Rb],(function(t,e){u[t]=e})),jb(e[Pf],u,d),je(r)||Db(u,r);var p=new fc(t,l,c,o,u,d,a),h=new $f(fc[Nf],p);return Nb(t,fc[zf],e,h)},Bb[bc.dataType]=function(t,e,r){zb(t,e);var o=e[Pb],n=o[Rf],i=o.uri||o.url,s=o[Rb]||{},a=o[Df]||{};jb(e[Pf],s,a),je(r)||Db(s,r);var l=new bc(t,n,i,void 0,s,a,o),c=new $f(bc[Nf],l);return Nb(t,bc[zf],e,c)},Bb[Ic.dataType]=function(t,e,r){zb(t,e);var o=e[Pb][Df]||{},n=e[Pb][Rb]||{};jb(e[Pf],n,o),je(r)||Db(n,r);var i=e[Pb],s=Ic.CreateFromInterface(t,i,n,o),a=new $f(Ic[Nf],s);return Nb(t,Ic[zf],e,a)},Bb[dc.dataType]=function(t,e,r){zb(t,e);var o=e[Pb],n=o[Rb]||{},i=o[Df]||{};jb(e[Pf],n,i),je(r)||Db(n,r);var s=new dc(t,o[Rf],o.average,o.sampleCount,o.min,o.max,o.stdDev,n,i),a=new $f(dc[Nf],s);return Nb(t,dc[zf],e,a)},Bb[iu.dataType]=function(t,e,r){zb(t,e);var o=e[Pb][Df]||{},n=e[Pb][Rb]||{};jb(e[Pf],n,o),je(r)||Db(n,r);var i=e[Pb];if(je(i))return Da(t,"Invalid input for dependency data"),null;var s=i[Rb]&&i[Rb][Ul]?i[Rb][Ul]:"GET",a=new iu(t,i.id,i.target,i[Rf],i[Tf],i.success,i.responseCode,s,i.type,i.correlationContext,n,o),l=new $f(iu[Nf],a);return Nb(t,iu[zf],e,l)},Bb),eg=function(t){function e(){var r,o,n,i,s,a,l,c=t.call(this)||this;c.priority=1001,c.identifier=Dl;var u,d,p,h,f,b,g,v,m,y,w,_,x,k,C,A,E,S,$,T,O,I,P,R,M,L,j,D=0;return oo(e,c,(function(t,N){function z(e,o){var n=Yb(e);if(!e||n+""!="200"&&""!==n){var i=df(n);i&&i.itemsReceived&&i.itemsReceived>i[Ab]&&!k?t[kb](o,i):t[xb](o,Ri(e))}else r=0,t[Cb](o,0)}function H(t,e,r){4===t.readyState&&Q(t.status,e,t.responseURL,r,Mi(t),Yb(t)||t.response)}function q(t){try{if(t){var e=t[Eb];return e&&e[Lf]?e:null}}catch(t){}return null}function U(e,r){return!(w||(e?e.baseData&&!e[Sb]?(r&&ja(r,1,70,"Cannot send telemetry without baseData and baseType"),1):(e[Sb]||(e[Sb]="EventData"),t[nb]?(o=e,t._sample.isSampledIn(o)?(e[Hl]=t._sample[$b],0):(r&&ja(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:t._sample[$b]}),1)):(r&&ja(r,1,28,"Sender was not initialized"),1)):(r&&ja(r,1,7,"Cannot send empty telemetry"),1)));var o}function B(t,r){var o=t.iKey||_,n=e.constructEnvelope(t,o,r,x);if(n){var i=!1;if(t[Of]&&t[Of][ql]&&(Vn(t[Of][ql],(function(t){try{t&&!1===t(n)&&(i=!0,Da(r,"Telemetry processor check returns false"))}catch(t){ja(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ki(t),{exception:Cr(t)},!0)}})),delete t[Of][ql]),!i)return n}else ja(r,1,47,"Unable to create an AppInsights envelope")}function V(e){var r="",o=t[rb]();try{var n=U(e,o),i=null;n&&(i=B(e,o)),i&&(r=s[_b](i))}catch(t){}return r}function F(t){var e="";return t&&t[Lf]&&(e="["+t.join(",")+"]"),e}function W(t){var e,r=G();return(e={urlString:h})[Pf]=t,e.headers=r,e}function K(e,r,o,n){void 0===n&&(n=!0);var i=X(r),s=e&&e.sendPOST;return s&&i?(n&&t._buffer[Gf](r),s(i,(function(e,o,n){return function(e,r,o,n){200===r&&e?t._onSuccess(e,e[Lf]):n&&t[xb](e,n)}(r,e,0,n)}),!o)):null}function X(e){var r;if(qe(e)&&e[Lf]>0){var o=t[pb].batchPayloads(e),n=G();return(r={})[Pf]=o,r.urlString=h,r.headers=n,r.disableXhrSync=O,r.disableFetchKeepAlive=!I,r[Eb]=e,r}return null}function G(){try{var t=l||{};return Zc(h)&&(t[Fc[6]]=Fc[7]),t}catch(t){}return null}function J(e){var r=e?e[Lf]:0;return t[pb].size()+r>b&&(d&&!d.isOnline()||t[eb](!0,null,10),!0)}function Q(e,o,n,i,s,a){var l=null;if(t._appId||(l=df(a))&&l.appId&&(t._appId=l.appId),(e<200||e>=300)&&0!==e){if((301===e||307===e||308===e)&&!Y(n))return void t[xb](o,s);!k&&nt(e)?(et(o),ja(t[rb](),2,40,". Response code "+e+". Will retry to send "+o[Lf]+" items.")):t[xb](o,s)}else d&&!d.isOnline()?k||(et(o,10),ja(t[rb](),2,40,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(o.length," items."))):(Y(n),206===e?(l||(l=df(a)),l&&!k?t[kb](o,l):t[xb](o,s)):(r=0,t[Cb](o,i)))}function Y(t){return!(a>=10||je(t)||""===t||t===h||(h=t,++a,0))}function Z(t,e){if(!u)return K(L&&L[vb]([3],!0),t,e);u(t,!1)}function tt(e,r){var o=null;if(qe(e)){for(var n=e[Lf],i=0;i<e[Lf];i++)n+=e[i][Lf];return L.getSyncFetchPayload()+n<=65e3?o=2:is()?o=3:(o=1,ja(t[rb](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),K(L&&L[vb]([o],!0),e,r)}return null}function et(e,n){if(void 0===n&&(n=1),e&&0!==e[Lf]){var i=t[pb];i[Jf](e),r++;for(var s=0,a=e;s<a.length;s++){var l=a[s];i[Uf](l)}!function(t){var e;if(r<=1)e=10;else{var n=(Math.pow(2,r)-1)/2,i=Math.floor(Math.random()*n*10)+1;i*=t,e=Math.max(Math.min(i,3600),10)}var s=zi()+1e3*e;o=s}(n),rt()}}function rt(){if(!i&&!n){var e=o?Math.max(0,o-zi()):0,r=Math.max(C,e);i=pa((function(){i=null,t[eb](!0,null,1)}),r)}}function ot(){i&&i.cancel(),i=null,o=null}function nt(t){return je(j)?401===t||408===t||429===t||500===t||502===t||503===t||504===t:j[Lf]&&j.indexOf(t)>-1}function it(){t[nb]=null,t[pb]=null,t._appId=null,t._sample=null,l={},d=null,r=0,o=null,n=!1,i=null,s=null,a=0,D=0,u=null,p=null,h=null,f=null,b=0,g=!1,y=null,w=!1,_=null,x=Qb,k=!1,A=null,S=Qb,O=!1,I=!1,M=!1,P=null,R=null,L=null,rr(t,"_senderConfig",{g:function(){return Oi({},Zb)}})}it(),t.pause=function(){ot(),n=!0},t.resume=function(){n&&(n=!1,o=null,J(),rt())},t.flush=function(e,r,o){if(void 0===e&&(e=!0),!n){ot();try{return t[eb](e,null,o||1)}catch(e){ja(t[rb](),1,22,"flush failed, telemetry will not be collected: "+ki(e),{exception:Cr(e)})}}},t.onunloadFlush=function(){if(!n)if(g||T)try{return t[eb](!0,Z,2)}catch(e){ja(t[rb](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ki(e),{exception:Cr(e)})}else t.flush(!1)},t.addHeader=function(t,e){l[t]=e},t[ob]=function(e,n,i,D){t.isInitialized()&&ja(t[rb](),1,28,"Sender is already initialized"),N[ob](e,n,i,D);var U=t.identifier;s=new Kb(n.logger),r=0,o=null,t[nb]=null,a=0;var B=t[rb]();p=cd(xs("Sender"),n.evtNamespace&&n.evtNamespace()),d=function(t){var e=hr(),r=gr(),o=!1,n=[],i=1;!r||je(r.onLine)||r.onLine||(i=2);var s=0,a=d(),l=cd(xs("OfflineListener"),t);try{if(u(br())&&(o=!0),e){var c=e.body||e;c.ononline&&u(c)&&(o=!0)}}catch(t){o=!1}function u(t){var e=!1;return t&&(e=ud(t,"online",h,l))&&ud(t,"offline",f,l),e}function d(){return 2!==s&&2!==i}function p(){var t=d();a!==t&&(a=t,Vn(n,(function(t){var e={isOnline:a,rState:i,uState:s};try{t(e)}catch(t){}})))}function h(){i=1,p()}function f(){i=2,p()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var t=br();if(t&&o){if(Rh(t,l),e){var r=e.body||e;Le(r.ononline)||Rh(r,l)}o=!1}},addListener:function(t){return n[Fa](t),{rm:function(){var e=n.indexOf(t);return e>-1?n.splice(e,1):void 0}}},setOnlineState:function(t){s=t,p()}}}(p),t._addHook(wa(e,(function(e){var r=e.cfg;r.storagePrefix&&Tl(r.storagePrefix);var o=Id(null,r,n).getExtCfg(U,Zb);rr(t,"_senderConfig",{g:function(){return o}}),f!==o.endpointUrl&&(h=f=o.endpointUrl),y&&y!==o[ib]&&Vn(y,(function(t){delete l[t.header]})),b=o[sb],g=(!1===o[ab]||!1===o[lb])&&is(),v=!1===o[ab]&&is(),m=!1===o[lb]&&is(),T=o[cb],O=!!o[ub],j=o.retryCodes;var i=o[Qf],s=!!o[db]&&(!!i||Rl()),a=o.namePrefix,d=s!==A||s&&S!==a||s&&E!==i;if(t[pb]){if(d)try{t._buffer=t._buffer[Xf](B,o,s)}catch(e){ja(t[rb](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ki(e),{exception:Cr(e)})}J()}else t[pb]=s?new Wb(B,o):new Fb(B,o);S=a,A=s,E=i,I=!o[hb]&&ss(!0),M=!!o[fb],t._sample=new Jb(o.samplingPercentage,B),function(t,e){var r=e.disableInstrumentationKeyValidation;return!(je(r)||!r)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(t)}(_=o[bb],r)||ja(B,1,100,"Invalid Instrumentation key "+_),y=o[ib],!Zc(h)&&y&&y[Lf]>0?Vn(y,(function(t){c.addHeader(t.header,t.value)})):y=null,$=o[gb];var p=function(){var e;try{var r={xdrOnComplete:function(t,e,r){var o=q(r);if(o)return z(t,o)},fetchOnComplete:function(t,e,r,o){var n=q(o);if(n)return Q(t.status,n,t.url,n[Lf],t.statusText,r||"")},xhrOnComplete:function(t,e,r){var o=q(r);if(o)return H(t,o,o[Lf])},beaconOnRetry:function(e,r,o){return function(e,r,o){var n=e&&e[Eb];if(M)R&&R(n,!0),ja(t[rb](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],s=0;s<n[Lf];s++){var a=n[s],l=[a];o(X(l),r)?t._onSuccess(l,l[Lf]):i[Ff](a)}i[Lf]>0&&(R&&R(i,!0),ja(t[rb](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(e,r,o)}};return(e={})[gb]=$,e.isOneDs=!1,e.disableCredentials=!1,e[ub]=O,e.disableBeacon=!m,e.disableBeaconSync=!v,e.senderOnCompleteCallBack=r,e}catch(t){}return null}();L?L.SetConfig(p):(L=new af)[ob](p,B);var D=o.httpXHROverride,N=null,V=null,F=Li([3,1,2],o.transports);N=L&&L[vb](F,!1);var W=L&&L.getFallbackInst();P=function(t,e){return K(W,t,e)},R=function(t,e){return K(W,t,e,!1)},N=T?D:N||D||W,t[nb]=function(t,e){return K(N,t,e)},I&&(u=tt);var G=Li([3,1],o[mb]);I||(G=G.filter((function(t){return 2!==t}))),V=L&&L[vb](G,!0),V=T?D:V||D,(T||o[mb]||!u)&&V&&(u=function(t,e){return K(V,t,e)}),u||(u=P),w=o.disableTelemetry,x=o[yb]||Qb,k=o.isRetryDisabled,C=o[wb]})))},t.processTelemetry=function(e,r){var o=(r=t._getTelCtx(r))[rb]();try{if(!U(e,o))return;var n=B(e,o);if(!n)return;var i=s[_b](n),a=t[pb];J(i),a[Uf](i),rt()}catch(t){ja(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ki(t),{exception:Cr(t)})}t.processNext(e,r)},t.isCompletelyIdle=function(){return!n&&0===D&&0===t._buffer[Bf]()},t._xhrReadyStateChange=function(t,e,r){return H(t,e,r)},t[eb]=function(e,r,o){var i;if(void 0===e&&(e=!0),!n)try{var s=t[pb];if(w)s[Kf]();else{if(s[Bf]()>0){var a=s.getItems();!function(e,r){var o,n=(o="getNotifyMgr",t.core[o]?t.core[o]():t.core._notificationManager);if(n&&n[Tb])try{n[Tb](e,r)}catch(e){ja(t[rb](),1,74,"send request notification failed: "+ki(e),{exception:Cr(e)})}}(o||0,e),i=r?r.call(t,a,e):t[nb](a,e)}new Date}ot()}catch(e){var l=ns();(!l||l>9)&&ja(t[rb](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ki(e),{exception:Cr(e)})}return i},t.getOfflineSupport=function(){var t;return(t={getUrl:function(){return h},createPayload:W})[_b]=V,t.batch=F,t.shouldProcess=function(t){return!!U(t)},t},t._doTeardown=function(e,r){t.onunloadFlush(),cf(d,!1),it()},t[xb]=function(e,r,o){ja(t[rb](),2,26,"Failed to send telemetry.",{message:r}),t._buffer&&t._buffer[Jf](e)},t[kb]=function(e,r){for(var o=[],n=[],i=0,s=r.errors.reverse();i<s.length;i++){var a=s[i],l=e.splice(a.index,1)[0];nt(a.statusCode)?n[Ff](l):o[Ff](l)}e[Lf]>0&&t[Cb](e,r[Ab]),o[Lf]>0&&t[xb](o,Mi(null,["partial success",r[Ab],"of",r.itemsReceived].join(" "))),n[Lf]>0&&(et(n),ja(t[rb](),2,40,"Partial success. Delivered: "+e[Lf]+", Failed: "+o[Lf]+". Will retry to send "+n[Lf]+" our of "+r.itemsReceived+" items"))},t[Cb]=function(e,r){t._buffer&&t._buffer[Jf](e)},t._xdrOnLoad=function(t,e){return z(t,e)}})),c}return wo(e,t),e.constructEnvelope=function(t,e,r,o){var n;return n=e===t.iKey||je(e)?t:mo(mo({},t),{iKey:e}),(tg[n.baseType]||qb)(r,n,o)},e}(Yd),rg=Dn("reduce",Ce);var og=function(t,e){var r,o,n,i,s,a,l,c=this,u=!1,d=!1;function p(t,e,n,i){if(u){var a=function(t){try{var e=h(t);return(1e6>0?Math.floor(gs()/cs*1000001)>>>0:0)<=e.limit.samplingRate}catch(t){}return!1}(t);if(!a)return;var l=h(t),c=_(t),d=b(l,r,c),p=!1,f=0,v=x(t);try{d&&!v?(f=Math.min(l.limit.maxSendNumber,c[Ga]+1),c[Ga]=0,p=!0,s[t]=!0,c[Ja]=new Date):(s[t]=d,c[Ga]+=1);var y=g(t);m(o,y,c);for(var C=0;C<f;C++)w(t,o,e,n)}catch(t){}return{isThrottled:p,throttleNum:f}}return i&&k(t)[Fa]({msgID:t,message:e,severity:n}),null}function h(t){return n[t]||n[109]}function f(t,e){var r,o,i,s,a;try{var l=e||{},c={};c[Qa]=!!l[Qa];var u=l[Ya]||{};d=(null==u?void 0:u.daysOfMonth)&&(null==u?void 0:u.daysOfMonth[qa])>0,c[Ya]=(s=null===(i=(i=u)||{})||void 0===i?void 0:i.monthInterval,a=null==i?void 0:i.dayInterval,je(s)&&je(a)&&(i.monthInterval=3,d||(i[Za]=[28],d=!0)),i={monthInterval:null==i?void 0:i.monthInterval,dayInterval:null==i?void 0:i.dayInterval,daysOfMonth:null==i?void 0:i.daysOfMonth});var p={samplingRate:(null===(r=l.limit)||void 0===r?void 0:r.samplingRate)||100,maxSendNumber:(null===(o=l.limit)||void 0===o?void 0:o.maxSendNumber)||1};c.limit=p,n[t]=c}catch(t){}}function b(t,e,r){if(t&&!t[Qa]&&e&&yi(r)){var o=v(),n=r[tl],i=t[Ya],s=1;if(null==i?void 0:i.monthInterval){var a=12*(o.getUTCFullYear()-n.getUTCFullYear())+o.getUTCMonth()-n.getUTCMonth();s=y(i.monthInterval,0,a)}var l=1;if(d)l=$s(i[Za],o[el]());else if(null==i?void 0:i.dayInterval){var c=Math.floor((o.getTime()-n.getTime())/864e5);l=y(i.dayInterval,0,c)}return s>=0&&l>=0}return!1}function g(t,e){var r=yi(e)?e:"";return t?"appInsightsThrottle"+r+"-"+t:null}function v(t){try{if(!t)return new Date;var e=new Date(t);if(!isNaN(e.getDate()))return e}catch(t){}return null}function m(t,e,r){try{return Pl(t,e,Kn(JSON[rl](r)))}catch(t){}return!1}function y(t,e,r){return t<=0?1:r>=e&&(r-e)%t==0?Math.floor((r-e)/t)+1:-1}function w(t,e,r,o){ja(e,o||1,t,r)}function _(t){try{var e=i[t];if(!e){var r=g(t,a);e=function(t,e,r){try{var o={date:v(),count:0};if(t){var n=JSON.parse(t);return{date:v(n[tl])||o[tl],count:n[Ga]||o[Ga],preTriggerDate:n.preTriggerDate?v(n[Ja]):void 0}}return m(e,r,o),o}catch(t){}return null}(Il(o,r),o,r),i[t]=e}return i[t]}catch(t){}return null}function x(t){var e=s[t];if(je(e)){e=!1;var r=_(t);r&&(e=function(t){try{if(t){var e=new Date;return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t[el]()===e[el]()}}catch(t){}return!1}(r[Ja])),s[t]=e}return s[t]}function k(t){return je((l=l||{})[t])&&(l[t]=[]),l[t]}o=Ra(t),s={},i={},l={},n={},f(109),a=yi(e)?e:"",t.addUnloadHook(wa(t.config,(function(t){var e=t.cfg;r=Ol(),Qe(e.throttleMgrCfg||{},(function(t,e){f(parseInt(t),e)}))}))),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return n},c.canThrottle=function(t){var e=_(t);return b(h(t),r,e)},c.isTriggered=function(t){return x(t)},c.isReady=function(){return u},c.flush=function(t){try{var e=k(t);if(e&&e[qa]>0){var r=e.slice(0);return l[t]=[],Vn(r,(function(t){p(t.msgID,t[Xa],t.severity,!1)})),!0}}catch(t){}return!1},c.flushAll=function(){try{if(l){var t=!0;return Qe(l,(function(e){var r=c.flush(parseInt(e));t=t&&r})),t}}catch(t){}return!1},c.onReadyState=function(t,e){return void 0===e&&(e=!0),(u=!!je(t)||t)&&e?c.flushAll():null},c.sendMessage=function(t,e,r){return p(t,e,r,!0)}},ng={perfEvtsSendAll:!1};function ig(t){t.h=null;var e=t.cb;t.cb=[],Vn(e,(function(t){Ee(t.fn,[t.arg])}))}function sg(t,e,r,o){Vn(t,(function(t){t&&t[e]&&(r?(r.cb[Ro]({fn:o,arg:t}),r.h=r.h||pa(ig,0,r)):Ee(o,[t]))}))}var ag,lg=function(){function t(e){var r,o;this.listeners=[];var n=[],i={h:null,cb:[]},s=ya(e,ng);o=s[Oo]((function(t){r=!!t.cfg.perfEvtsSendAll})),oo(t,this,(function(t){rr(t,"listeners",{g:function(){return n}}),t[Ho]=function(t){n[Ro](t)},t[zo]=function(t){for(var e=$s(n,t);e>-1;)n[Mo](e,1),e=$s(n,t)},t[ni]=function(t){sg(n,ni,i,(function(e){e[ni](t)}))},t[ii]=function(t,e){sg(n,ii,i,(function(r){r[ii](t,e)}))},t[si]=function(t,e){sg(n,si,e?i:null,(function(r){r[si](t,e)}))},t[ai]=function(t){t&&(!r&&t[kn]()||sg(n,ai,null,(function(e){t[sn]?pa((function(){return e[ai](t)}),0):e[ai](t)})))},t[li]=function(t){t&&t[Co]&&sg(n,li,i,(function(e){e[li](t)}))},t[ci]=function(t){t&&t[Cn]&&sg(n,ci,i,(function(e){e[ci](t)}))},t[ui]=function(t,e){if(t>0){var r=e||0;sg(n,ui,i,(function(e){e[ui](t,r)}))}},t[Qo]=function(t){var e,r=function(){o&&o.rm(),o=null,n=[],i.h&&i.h[jo](),i.h=null,i.cb=[]};if(sg(n,"unload",null,(function(r){var o=r[Qo](t);o&&(e||(e=[]),e[Ro](o))})),e)return tf((function(t){return sh(ef(e),(function(){r(),t()}))}));r()}}))}return t.__ieDyn=1,t}(),cg=function(t){function e(){var r,o,n=t.call(this)||this;function i(){r=0,o=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,i(),oo(e,n,(function(t,e){t.addTelemetryInitializer=function(t){return function(t,e,r){var o={id:e,fn:r};return Xd(t,o),{remove:function(){Vn(t,(function(e,r){if(e.id===o.id)return t[Mo](r,1),-1}))}}}(o,r++,t)},t[ri]=function(e,r){(function(t,e,r){for(var o=!1,n=t[Co],i=0;i<n;++i){var s=t[i];if(s)try{if(!1===s.fn[Po](null,[e])){o=!0;break}}catch(t){ja(r,2,64,"Telemetry initializer failed: "+ki(t),{exception:Cr(t)},!0)}}return!o})(o,e,r?r[an]():t[an]())&&t[Ko](e,r)},t[ln]=function(){i()}})),n}return wo(e,t),e.__ieDyn=1,e}(Yd),ug="Plugins must provide initialize method",dg="SDK is still unloading...",pg=ao(((ag={cookieCfg:{}})[ei]={rdOnly:!0,ref:!0,v:[]},ag[Jn]={rdOnly:!0,ref:!0,v:[]},ag[ti]={ref:!0,v:{}},ag[Yn]=Xn,ag.loggingLevelConsole=0,ag.diagnosticLogInterval=Xn,ag));function hg(t,e){return new yd(e)}function fg(t,e){var r=!1;return Vn(e,(function(e){if(e===t)return r=!0,-1})),r}function bg(t,e,r,o){r&&Qe(r,(function(r,n){o&&Fn(n)&&Fn(e[r])&&bg(t,e[r],n,o),o&&Fn(n)&&Fn(e[r])?bg(t,e[r],n,o):t.set(e,r,n)}))}function gg(t,e){var r=null,o=-1;return Vn(t,(function(t,n){if(t.w===e)return r=t,o=n,-1})),{i:o,l:r}}function vg(t,e,r,o){return e.add(t[Oo]((function(t){var e=t.cfg.disableDbgExt;!0===e&&o&&(r[zo](o),o=null),r&&!o&&!0!==e&&(o=function(t){if(!_a){_a={};for(var e=0;e<ka[Co];e++)_a[ka[e]]=Aa(ka[e],t)}return _a}(t.cfg),r[Ho](o))}))),o}var mg=function(){function t(){var e,r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m,y,w,_,x,k,C,A,E,S,$;oo(t,this,(function(t){function T(t){return E&&E[Go]||$||(t||o&&o.queue[Co]>0)&&(S||(S=!0,U(e[Oo]((function(t){var e=t.cfg.diagnosticLogInterval;e&&e>0||(e=1e4);var r=!1;E&&(r=E[Go],E[jo]()),E=function(t,e){return da(!1,oe,Ae[ge](arguments))}(D,e),E.unref(),E[Go]=r})))),E[Go]=!0),E}function O(){var t={};C=[];var e=function(e){e&&Vn(e,(function(e){if(e[No]&&e[Zo]&&!t[e.identifier]){var r=e[No]+"="+e[Zo];C[Ro](r),t[e.identifier]=e}}))};e(p),d&&Vn(d,(function(t){e(t)})),e(u)}function I(){r=!1,(e=ya({},pg,t[Io])).cfg[tn]=1,rr(t,"config",{g:function(){return e.cfg},s:function(e){t.updateCfg(e,!1)}}),rr(t,"pluginVersionStringArr",{g:function(){return C||O(),C}}),rr(t,"pluginVersionString",{g:function(){return A||(C||O(),A=C.join(";")),A||Gn}}),rr(t,"logger",{g:function(){return o||(o=new Ma(e.cfg),e[Io]=o),o},s:function(t){e[Io]=t,o!==t&&(cf(o,!1),o=t)}}),t[Io]=new Ma(e.cfg),k=[];var y=t.config[ei]||[];y.splice(0,y[Co]),Xd(y,k),f=new cg,n=[],cf(i,!1),i=null,s=null,a=null,cf(l,!1),l=null,c=null,u=[],d=null,p=null,h=!1,b=null,g=xs("AIBaseCore",!0),v=Fd(),w=null,_=null,m=Gd(),x=[],A=null,C=null,$=!1,E=null,S=!1}function P(){var r=Id(L(),e.cfg,t);return r[Yo](T),r}function R(e){var r=function(t,e,r){var o,n=[],i=[],s={};return Vn(r,(function(e){(je(e)||je(e[Do]))&&wr(ug);var r=e[oi],o=e[No];e&&r&&(je(s[r])?s[r]=o:Da(t,"Two extensions have same priority #"+r+" - "+s[r]+", "+o)),!r||r<500?n[Ro](e):i[Ro](e)})),(o={})[Qn]=n,o[Jn]=i,o}(t[Io],0,u);c=null,A=null,C=null,p=Ad(Xd(p=(d||[])[0]||[],r[Jn]));var o=Xd(Ad(r[Qn]),p);k=lo(o);var n=t.config[ei]||[];n.splice(0,n[Co]),Xd(n,k);var i=P();p&&p[Co]>0&&Cd(i[en](p),o),Cd(i,o),e&&z(e)}function M(t){var e=null,r=null,o=[];return Vn(k,(function(e){if(e[No]===t&&e!==f)return r=e,-1;e.getChannel&&o[Ro](e)})),!r&&o[Co]>0&&Vn(o,(function(e){if(!(r=e.getChannel(t)))return-1})),r&&(e={plugin:r,setEnabled:function(t){kd(r)[Zn]=!t},isEnabled:function(){var t=kd(r);return!t[rn]&&!t[Zn]},remove:function(t,e){var o;void 0===t&&(t=!0);var n=[r],i=((o={reason:1})[sn]=t,o);j(n,i,(function(t){t&&R({reason:32,removed:n}),e&&e(t)}))}}),e}function L(){if(!c){var r=(k||[]).slice();-1===$s(r,f)&&r[Ro](f),c=Md(Ad(r),e.cfg,t)}return c}function j(r,o,n){if(r&&r[Co]>0){var i=Pd(Md(r,e.cfg,t),t);i[Yo]((function(){var t=!1,e=[];Vn(u,(function(o,n){fg(o,r)?t=!0:e[Ro](o)})),u=e,A=null,C=null;var o=[];d&&(Vn(d,(function(e,n){var i=[];Vn(e,(function(e){fg(e,r)?t=!0:i[Ro](e)})),o[Ro](i)})),d=o),n&&n(t),T()})),i[Ko](o)}else n(!1)}function D(){if(o&&o.queue){var e=o.queue.slice(0);o.queue[Co]=0,Vn(e,(function(e){var r,o=((r={})[Fo]=b||"InternalMessageId: "+e[on],r.iKey=_,r[Wo]=xi(new Date),r.baseType=Pa.dataType,r.baseData={message:e[nn]},r);t.track(o)}))}}function N(t,e,r,o){var n=1,i=!1,s=null;function a(){n--,i&&0===n&&(s&&s[jo](),s=null,e&&e(i),e=null)}return o=o||5e3,p&&p[Co]>0&&P()[en](p).iterate((function(e){if(e.flush){n++;var i=!1;e.flush(t,(function(){i=!0,a()}),r)||i||(t&&null==s?s=pa((function(){s=null,a()}),o):a())}})),i=!0,a(),!0}function z(e){var r=Rd(L(),t);r[Yo](T),t._updateHook&&!0===t._updateHook(r,e)||r[Ko](e)}function H(e){var r=t[Io];r?(ja(r,2,73,e),T()):wr(e)}function q(e){var r=t[Uo]();r&&r[ii]([e],2)}function U(t){m.add(t)}I(),t._getDbgPlgTargets=function(){return[k]},t[qo]=function(){return r},t[Do]=function(n,l,c,f){var b;h&&wr(dg),t[qo]()&&wr("Core cannot be initialized more than once"),n=(e=ya(n,pg,c||t[Io],!1)).cfg,U(e[Oo]((function(t){_=t.cfg.instrumentationKey;var e=t.ref(t.cfg,ti);Qe(e,(function(r){t.ref(e,r)})),je(_)&&wr("Please provide instrumentation key")}))),y=vg(e,m,(i=f)&&t[Uo](),y),U(e[Oo]((function(e){if(e.cfg.enablePerfMgr){var r=e.cfg[Yn];b!==r&&(r||(r=hg),Ai(e.cfg,Yn,r),b=r,a=null),s||a||!ze(r)||(a=r(t,t[Uo]()))}else a=null,b=null}))),t[Io]=c;var g=n[ei];if((u=[])[Ro].apply(u,_o(_o([],l),g)),d=n[Jn],R(null),p&&0!==p[Co]||wr("No "+Jn+" available"),d&&d[Co]>1){var v=t[Bo]("TeeChannelController");v&&v.plugin||ja(o,1,28,"TeeChannel required")}!function(t,e,r){Vn(e,(function(e){var o=wa(t,e.w,r);delete e.w,e.rm=function(){o.rm()}}))}(n,x,o),x=null,r=!0,t.releaseQueue(),t[Vo]()},t.getChannels=function(){var t=[];return p&&Vn(p,(function(e){t[Ro](e)})),lo(t)},t.track=function(e){_d(t[di](),(function(){return"AppInsightsCore:track"}),(function(){null===e&&(q(e),wr("Invalid telemetry item")),!e[Fo]&&je(e[Fo])&&(q(e),wr("telemetry name required")),e.iKey=e.iKey||_,e[Wo]=e[Wo]||xi(new Date),e.ver=e.ver||"4.0",!h&&t[qo]()?P()[Ko](e):n[Ro](e)}),(function(){return{item:e}}),!e.sync)},t[Xo]=P,t[Uo]=function(){return i||(i=new lg(e.cfg),t._notificationManager=i),i},t[Ho]=function(e){t.getNotifyMgr()[Ho](e)},t[zo]=function(t){i&&i[zo](t)},t.getCookieMgr=function(){return l||(l=Lu(e.cfg,t[Io])),l},t.setCookieMgr=function(t){l!==t&&(cf(l,!1),l=t)},t[di]=function(){return s||a||null},t.setPerfMgr=function(t){s=t},t.eventCnt=function(){return n[Co]},t.releaseQueue=function(){if(r&&n[Co]>0){var t=n;n=[],Vn(t,(function(t){P()[Ko](t)}))}},t[Vo]=function(t){return b=t||null,$=!1,E&&E[jo](),T(!0)},t[Jo]=function(){$=!0,E&&E[jo](),D()},$i(t,(function(){return f}),["addTelemetryInitializer"]),t[Qo]=function(e,n,s){var a;void 0===e&&(e=!0),r||wr("SDK is not initialized"),h&&wr(dg);var c,u=((a={reason:50})[sn]=e,a.flushComplete=!1,a);e&&!n&&(c=tf((function(t){n=t})));var d=Pd(L(),t);function p(e){u.flushComplete=e,h=!0,v.run(d,u),t[Jo](),d[Ko](u)}return d[Yo]((function(){m.run(t[Io]),uf([l,i,o],e,(function(){I(),n&&n(u)}))}),t),D(),N(e,p,6,s)||p(!1),c},t[Bo]=M,t.addPlugin=function(t,e,r,o){if(!t)return o&&o(!1),void H(ug);var n=M(t[No]);if(n&&!e)return o&&o(!1),void H("Plugin ["+t[No]+"] is already loaded!");var i={reason:16};function s(e){u[Ro](t),i.added=[t],R(i),o&&o(!0)}if(n){var a=[n.plugin];j(a,{reason:2,isAsync:!!r},(function(t){t?(i.removed=a,i.reason|=32,s()):o&&o(!1)}))}else s()},t.updateCfg=function(r,o){var n;if(void 0===o&&(o=!0),t[qo]()){n={reason:1,cfg:e.cfg,oldCfg:fh({},e.cfg),newConfig:fh({},r),merge:o},r=n.newConfig;var i=e.cfg;r[ei]=i[ei],r[Jn]=i[Jn]}e._block((function(t){var e=t.cfg;bg(t,e,r,o),o||Qe(e,(function(o){Je(r,o)||t.set(e,o,Xn)})),t[To](e,pg)}),!0),e[Eo](),n&&z(n)},t.evtNamespace=function(){return g},t.flush=N,t.getTraceCtx=function(t){return w||(e={},w={getName:function(){return e[Fo]},setName:function(t){e[Fo]=t},getTraceId:function(){return e[Mn]},setTraceId:function(t){Uc(t)&&(e[Mn]=t)},getSpanId:function(){return e[Ln]},setSpanId:function(t){Bc(t)&&(e[Ln]=t)},getTraceFlags:function(){return e[jn]},setTraceFlags:function(t){e[jn]=t}}),w;var e},t.setTraceCtx=function(t){w=t||null},t.addUnloadHook=U,Si(t,"addUnloadCb",(function(){return v}),"add"),t.onCfgChange=function(o){var n,i,s,a;return r?n=wa(e.cfg,o,t[Io]):((a=gg(i=x,s=o).l)||(a={w:s,rm:function(){var t=gg(i,s);-1!==t.i&&i[Mo](t.i,1)}},i[Ro](a)),n=a),function(t){return rr({rm:function(){t.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(t)+">"}})}(n)},t.getWParam=function(){return pr()||e.cfg.enableWParam?0:-1}}))}return t.__ieDyn=1,t}(),yg="duration",wg="properties",_g="requestUrl",xg="inst",kg="length",Cg="traceID",Ag="spanID",Eg="traceFlags",Sg="context",$g="aborted",Tg="traceId",Og="spanId",Ig="_addHook",Pg="core",Rg="includeCorrelationHeaders",Mg="getAbsoluteUrl",Lg="headers",jg="requestHeaders",Dg="setRequestHeader",Ng="trackDependencyDataInternal",zg="startTime",Hg="toLowerCase",qg="enableRequestHeaderTracking",Ug="enableAjaxErrorStatusText",Bg="enableAjaxPerfTracking",Vg="maxAjaxCallsPerView",Fg="excludeRequestFromAutoTrackingPatterns",Wg="addRequestContext",Kg="disableAjaxTracking",Xg="ajaxPerfLookupDelay",Gg="disableFetchTracking",Jg="enableResponseHeaderTracking",Qg="status",Yg="statusText",Zg="headerMap",tv="openDone",ev="sendDone",rv="requestSentTime",ov="abortDone",nv="getTraceId",iv="getTraceFlags",sv="method",av="errorStatusText",lv="stateChangeAttached",cv="responseText",uv="responseFinishedTime",dv="CreateTrackItem",pv="response",hv="getAllResponseHeaders",fv="getPartAProps",bv="perfMark",gv="name",vv="perfTiming",mv="exception",yv="ajaxDiagnosticsMessage",wv="correlationContext",_v="ajaxTotalDuration",xv="eventTraceCtx";function kv(t,e,r){var o=0,n=t[e],i=t[r];return n&&i&&(o=ou(n,i)),o}function Cv(t,e,r,o,n){var i=0,s=kv(r,o,n);return s&&(i=Av(t,e,hc(s))),i}function Av(t,e,r){var o="ajaxPerf",n=0;return t&&e&&r&&((t[o]=t[o]||{})[e]=r,n=1),n}var Ev,Sv=function(){var t=this;t[tv]=!1,t.setRequestHeaderDone=!1,t[ev]=!1,t[ov]=!1,t[lv]=!1},$v=function(){function t(e,r,o,n){var i,s=this,a=o;s[bv]=null,s.completed=!1,s.requestHeadersSize=null,s[jg]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[_v]=null,s[$g]=0,s.pageUrl=null,s[_g]=null,s.requestSize=0,s[sv]=null,s[Qg]=null,s[rv]=null,s.responseStartedTime=null,s[uv]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new Sv,s.clientFailure=0,s[Cg]=e,s[Ag]=r,s[Eg]=null==n?void 0:n.getTraceFlags(),s[xv]=n?((i={})[Tg]=n[nv](),i[Og]=n.getSpanId(),i[Eg]=n[iv](),i):null,oo(t,s,(function(t){t.getAbsoluteUrl=function(){return t[_g]?function(t){var e,r=Gc(t);return r&&(e=r.href),e}(t[_g]):null},t.getPathName=function(){return t[_g]?ec(a,(e=t[sv],r=t[_g],e?e.toUpperCase()+" "+r:r)):null;var e,r},t[dv]=function(e,r,o){var n;if(t.ajaxTotalDuration=Math.round(1e3*ou(t.requestSentTime,t.responseFinishedTime))/1e3,t[_v]<0)return null;var i=((n={id:"|"+t[Cg]+"."+t[Ag],target:t[Mg]()})[gv]=t.getPathName(),n.type=e,n[zg]=null,n.duration=t[_v],n.success=+t[Qg]>=200&&+t[Qg]<400,n.responseCode=+t[Qg],n[wg]={HttpMethod:t[sv]},n),s=i[wg];if(t[$g]&&(s[$g]=!0),t[rv]&&(i[zg]=new Date,i[zg].setTime(t[rv])),function(t,e){var r=t[vv],o=e[wg]||{},n=0,i="name",s="Start",a="End",l="domainLookup",c="connect",u="redirect",d="request",p="response",h="startTime",f=l+s,b=l+a,g=c+s,v=c+a,m=d+s,y=d+a,w=p+s,_=p+a,x=u+s,k=u=a,C="transferSize",A="encodedBodySize",E="decodedBodySize",S="serverTiming";if(r){n|=Cv(o,u,r,x,k),n|=Cv(o,l,r,f,b),n|=Cv(o,c,r,g,v),n|=Cv(o,d,r,m,y),n|=Cv(o,p,r,w,_),n|=Cv(o,"networkConnect",r,h,v),n|=Cv(o,"sentRequest",r,m,_);var $=r[yg];$||($=kv(r,h,_)||0),n|=Av(o,yg,$),n|=Av(o,"perfTotal",$);var T=r[S];if(T){var O={};Vn(T,(function(t,e){var r=wi(t[i]||""+e),o=O[r]||{};Qe(t,(function(t,e){(t!==i&&Ne(e)||Be(e))&&(o[t]&&(e=o[t]+";"+e),!e&&Ne(e)||(o[t]=e))})),O[r]=o})),n|=Av(o,S,O)}n|=Av(o,C,r[C]),n|=Av(o,A,r[A]),n|=Av(o,E,r[E])}else t[bv]&&(n|=Av(o,"missing",t.perfAttempts));n&&(e[wg]=o)}(t,i),r&&so(t.requestHeaders)[kg]>0&&(s[jg]=t[jg]),o){var a=o();if(a){var l=a[wv];if(l&&(i.correlationContext=l),a[Zg]&&so(a.headerMap)[kg]>0&&(s.responseHeaders=a[Zg]),t[av])if(t[Qg]>=400){var c=a.type;""!==c&&"text"!==c||(s.responseText=a.responseText?a[Yg]+" - "+a.responseText:a[Yg]),"json"===c&&(s.responseText=a.response?a[Yg]+" - "+JSON.stringify(a[pv]):a[Yg])}else 0===t[Qg]&&(s.responseText=a[Yg]||"")}}return i},t[fv]=function(){var e,r=null,o=t[xv];if(o&&(o[Tg]||o[Og])){var n=(r={})[Af]=((e={})[Cg]=o[Tg],e.parentID=o[Og],e);je(o[Eg])||(n[Eg]=o[Eg])}return r}}))}return t.__ieDyn=1,t}(),Tv="ai.ajxmn.",Ov="diagLog",Iv="_ajaxData",Pv="fetch",Rv="Failed to monitor XMLHttpRequest",Mv=", monitoring data for this ajax call ",Lv=Mv+"may be incorrect.",jv=Mv+"won't be sent.",Dv="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Nv="Failed to add custom defined request context as configured call back may missing a null check.",zv="Failed to calculate the duration of the ",Hv=0,qv=function(t,e){return t&&e&&t[Iv]?(t[Iv].i||{})[e]:null},Uv=function(t,e){var r=!1;if(t){var o=(t[Iv]||{}).xh;o&&Vn(o,(function(t){if(t.n===e)return r=!0,-1}))}return r};function Bv(t,e){var r="";try{var o=qv(t,e);o&&o[_g]&&(r+="(url: '"+o[_g]+"')")}catch(t){}return r}function Vv(t,e,r,o,n){ja(t[Ov](),1,e,r,o,n)}function Fv(t,e,r,o,n){ja(t[Ov](),2,e,r,o,n)}function Wv(t,e,r){return function(o){var n;Vv(t,e,r,((n={ajaxDiagnosticsMessage:Bv(o[xg],t._ajaxDataId)})[mv]=Cr(o.err),n))}}function Kv(t,e){return t&&e?Bn(t,e):-1}function Xv(t,e,r){var o={id:e,fn:r};return t.push(o),{remove:function(){Vn(t,(function(e,r){if(e.id===o.id)return t.splice(r,1),-1}))}}}function Gv(t,e,r,o){var n=!0;return Vn(e,(function(e,i){try{!1===e.fn.call(null,r)&&(n=!1)}catch(e){ja(t&&t.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+ki(e),{exception:Cr(e)},!0)}})),n}var Jv="*.blob.core.",Qv=lo([Jv+"windows.net",Jv+"chinacloudapi.cn",Jv+"cloudapi.de",Jv+"usgovcloudapi.net"]),Yv=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],Zv=lo(((Ev={})[Vg]=500,Ev[Kg]=!1,Ev[Gg]=!1,Ev[Fg]=void 0,Ev.disableCorrelationHeaders=!1,Ev.distributedTracingMode=1,Ev.correlationHeaderExcludedDomains=Qv,Ev.correlationHeaderDomains=void 0,Ev.correlationHeaderExcludePatterns=void 0,Ev.appId=void 0,Ev.enableCorsCorrelation=!1,Ev[qg]=!1,Ev[Jg]=!1,Ev[Ug]=!1,Ev[Bg]=!1,Ev.maxAjaxPerfLookupAttempts=3,Ev[Xg]=25,Ev.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Ev[Wg]=void 0,Ev.addIntEndpoints=!0,Ev)),tm=function(t){function e(){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m,y,w,_,x,k,C,A,E,S,$,T,O,I,P=t.call(this)||this;return P.identifier=e.identifier,P.priority=120,oo(e,P,(function(t,P){var R=P[Ig];function M(){var e=ts();r=!1,o=!1,I=!1,n=e&&e.host&&e.host[Hg](),i=null,s=!1,a=!1,l=0,c=null,u=!1,d=!1,p=null,h=!1,f=0,b=!1,g={},v=!1,m=!1,y=null,w=null,_=null,k=0,C=[],A=[],x=xs("ajaxData"),t._ajaxDataId=x,E=null,S=1,$=1,T=1,O=null}function L(t){var e=!0;return(t||E)&&Vn(E,(function(r){if(r[Hg]()===t[Hg]())return e=!1,-1})),e}function j(t,e,r){R(function(t,e,r){return t?Bd(t[fo],e,r,!1):null}(t,e,r))}function D(t,e,r){var o=!1,n=((Ne(e)?e:(e||{}).url||"")||"")[Hg]();if(Vn(y,(function(t){var e=t;Ne(t)&&(e=new RegExp(t)),o||(o=e.test(n))})),o)return o;var i=Kv(n,"?"),s=Kv(n,"#");return(-1===i||-1!==s&&s<i)&&(i=s),-1!==i&&(n=n.substring(0,i)),je(t)?je(e)||(o="object"==typeof e&&!0===e[zl]||!!r&&!0===r[zl]):o=!0===t[zl]||!0===n[zl],!o&&n&&Zc(n)&&(o=!0),o?g[n]||(g[n]=1):g[n]&&(o=!0),o}function N(t,e,r){var n=!0,i=o;return je(t)||(n=!0===r||!je(e)),i&&n}function z(){var e=null;return t[Pg]&&t[Pg].getTraceCtx&&(e=t[Pg].getTraceCtx(!1)),!e&&c&&c.telemetryTrace&&(e=nu(c.telemetryTrace)),e}function H(t,e){if(e[_g]&&p&&h){var r=Mc();if(r&&ze(r.mark)){Hv++;var o=p+t+"#"+Hv;r.mark(o);var n=r.getEntriesByName(o);n&&1===n[kg]&&(e[bv]=n[0])}}}function q(t,e,r,o){var n=e[bv],i=Mc(),s=S,a=$,l=e[_g],c=0;!function u(){try{if(i&&n){c++;for(var d=null,p=i.getEntries(),h=p[kg]-1;h>=0;h--){var f=p[h];if(f){if("resource"===f.entryType)f.initiatorType!==t||-1===Kv(f[gv],l)&&-1===Kv(l,f[gv])||(d=f);else if("mark"===f.entryType&&f[gv]===n[gv]){e[vv]=d;break}if(f[zg]<n[zg]-1e3)break}}}!n||e[vv]||c>=s||!1===e.async?(n&&ze(i.clearMarks)&&i.clearMarks(n[gv]),e.perfAttempts=c,r()):pa(u,a)}catch(t){o(t)}}()}function U(e){var r="";try{je(e)||(r+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(e){Vv(t,15,"Failed to grab failed fetch diagnostics message",{exception:Cr(e)})}return r}function B(e,r,o,n,i,a,l){function c(e,r,n){var i=n||{};i.fetchDiagnosticsMessage=U(o),r&&(i.exception=Cr(r)),Fv(t,e,zv+"fetch call"+jv,i)}i&&(i[uv]=ru(),i[Qg]=r,q(Pv,i,(function(){var e,l=i[dv]("Fetch",s,a);try{w&&(e=w({status:r,request:o,response:n}))}catch(e){Fv(t,104,Nv)}if(l){void 0!==e&&(l[wg]=mo(mo({},l.properties),e));var u=i[fv]();V(A,t[Pg],i,l,null,u)}else c(14,null,{requestSentTime:i[rv],responseFinishedTime:i[uv]})}),(function(t){c(18,t,null)})))}function V(e,r,o,n,i,s){var a,l=!0;e[kg]>0&&(l=Gv(r,e,((a={item:n})[wg]=i,a.sysProperties=s,a.context=o?o[Sg]:null,a.aborted=!!o&&!!o[$g],a),"initializer")),l&&t[Ng](n,i,s)}M(),t.initialize=function(n,l,g,k){var C;t.isInitialized()||(P.initialize(n,l,g,k),_=cd(xs("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){t[Ig](wa(r,(function(r){var o=r.cfg,n=Id(null,o,t[Pg]);if(i=n.getExtCfg(e.identifier,Zv),T=i.distributedTracingMode,s=i[qg],a=i[Ug],h=i[Bg],f=i[Vg],y=[].concat(i[Fg]||[],!1!==i.addIntEndpoints?Yv:[]),w=i[Wg],d=0===T||1===T,u=1===T||2===T,h){var l=o.instrumentationKey||"unkwn";p=l[kg]>5?Tv+Gl(l,l[kg]-5)+".":Tv+l+"."}v=!!i[Kg],S=i.maxAjaxPerfLookupAttempts,$=i[Xg],E=i.ignoreHeaders,O=i.appId})))}(n),function(t,e){var r,o,n=!1;if(as()){var i=XMLHttpRequest[fo];n=!(je(i)||je(i.open)||je(i.send)||je(i.abort))}var s=ns();if(s&&s<9&&(n=!1),n)try{var a=new XMLHttpRequest,l={xh:[],i:(r={},r[e]={},r)};a[Iv]=l;var c=XMLHttpRequest[fo].open;XMLHttpRequest[fo].open=c}catch(e){n=!1,Vv(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((o={})[mv]=Cr(e),o))}return n}(t,x)&&t[Ig](wa(i,(function(){v=!!i[Kg],s=i[qg],v||o||(j(XMLHttpRequest,"open",{ns:_,req:function(e,r,o,n){if(!v){var i=e[xg],l=qv(i,x);!D(i,o)&&N(i,l,!0)&&(l&&l.xhrMonitoringState[tv]||(l=function(e,r,o,n){var i,s=z(),l=s&&s[nv]()||Lc(),c=Jl(Lc(),0,16),u=e[Iv]=e[Iv]||{xh:[],i:{}},d=u.i=u.i||{},p=d[x]=d[x]||new $v(l,c,t[Ov](),null===(i=t.core)||void 0===i?void 0:i.getTraceCtx());return p[Eg]=s&&s[iv](),p[sv]=r,p[_g]=o,p.xhrMonitoringState[tv]=!0,p[jg]={},p.async=n,p[av]=a,p}(i,r,o,n)),function(e,r){r.xhrMonitoringState[lv]=ud(e,"readystatechange",(function(){var o;try{e&&4===e.readyState&&N(e,r)&&function(e){var r=qv(e,x);function o(r,o){var n=o||{};n.ajaxDiagnosticsMessage=Bv(e,x),r&&(n.exception=Cr(r)),Fv(t,14,zv+"ajax call"+jv,n)}r[uv]=ru(),r[Qg]=e[Qg],q("xmlhttprequest",r,(function(){try{var n=r[dv]("Ajax",s,(function(){var r,o=((r={statusText:e[Yg]})[Zg]=null,r[wv]=function(e){var r;try{var o=e[hv]();if(null!==o&&-1!==Kv(o[Hg](),Fc[8]))return eu(e.getResponseHeader(Fc[0]))}catch(o){Fv(t,18,Dv,((r={})[yv]=Bv(e,x),r[mv]=Cr(o),r))}}(e),r.type=e.responseType,r[cv]=function(t){try{var e=t.responseType;if(""===e||"text"===e)return t[cv]}catch(t){}return null}(e),r.response=e[pv],r);if(b){var n=e[hv]();if(n){var i=Kn(n).split(/[\r\n]+/),s={};Vn(i,(function(t){var e=t.split(": "),r=e.shift(),o=e.join(": ");L(r)&&(s[r]=o)})),o[Zg]=s}}return o})),i=void 0;try{w&&(i=w({status:e[Qg],xhr:e}))}catch(e){Fv(t,104,Nv)}if(n){void 0!==i&&(n[wg]=mo(mo({},n.properties),i));var a=r[fv]();V(A,t[Pg],r,n,null,a)}else o(null,{requestSentTime:r[rv],responseFinishedTime:r[uv]})}finally{try{var l=(e[Iv]||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(t){}}}),(function(t){o(t,null)}))}(e)}catch(r){var n=Cr(r);n&&-1!==Kv(n[Hg](),"c00c023f")||Vv(t,16,Rv+" 'readystatechange' event handler"+Lv,((o={})[yv]=Bv(e,x),o[mv]=n,o))}}),_)}(i,l))}},hkErr:Wv(t,15,Rv+".open"+Lv)}),j(XMLHttpRequest,"send",{ns:_,req:function(e,r){if(!v){var o=e[xg],n=qv(o,x);N(o,n)&&!n.xhrMonitoringState[ev]&&(H("xhr",n),n[rv]=ru(),t[Rg](n,void 0,void 0,o),n.xhrMonitoringState[ev]=!0)}},hkErr:Wv(t,17,Rv+Lv)}),j(XMLHttpRequest,"abort",{ns:_,req:function(t){if(!v){var e=t[xg],r=qv(e,x);N(e,r)&&!r.xhrMonitoringState[ov]&&(r[$g]=1,r.xhrMonitoringState[ov]=!0)}},hkErr:Wv(t,13,Rv+".abort"+Lv)}),j(XMLHttpRequest,"setRequestHeader",{ns:_,req:function(t,e,r){if(!v){var o=t[xg],n=qv(o,x);n&&N(o,n)&&(function(t,e,r){if(t){var o=(t[Iv]||{}).xh;o&&o.push({n:e,v:r})}}(o,e,r),s&&L(e)&&n&&(n[jg][e]=r))}},hkErr:Wv(t,71,Rv+".setRequestHeader"+Lv)}),o=!0)}))),function(){var e,n=!(e=ur())||je(e.Request)||je(e.Request[fo])||je(e[Pv])?null:e[Pv];if(n){var l=ur(),c=n.polyfill;t[Ig](wa(i,(function(){m=!!i[Gg],b=i[Jg],m||r?c&&!I&&(R(Bd(l,Pv,{ns:_,req:function(t,e,r){D(null,e,r)}})),I=!0):(R(Bd(l,Pv,{ns:_,req:function(e,n,i){var l;if(!m&&r&&!D(null,n,i)&&(!c||!o)){var u=e.ctx();l=function(e,r){var o,n,i=z(),l=i&&i[nv]()||Lc(),c=Jl(Lc(),0,16),u=new $v(l,c,t[Ov](),null===(o=t.core)||void 0===o?void 0:o.getTraceCtx());if(u[Eg]=i&&i[iv](),u[rv]=ru(),u[av]=a,""===(n=e instanceof Request?(e||{}).url||"":e)){var d=ts();d&&d.href&&(n=bh(d.href,"#")[0])}u[_g]=n;var p="GET";r&&r[sv]?p=r[sv]:e&&e instanceof Request&&(p=e[sv]),u[sv]=p;var h={};return s&&new Headers((r?r[Lg]:0)||e instanceof Request&&e[Lg]||{}).forEach((function(t,e){L(e)&&(h[e]=t)})),u[jg]=h,H(Pv,u),u}(n,i);var d=t[Rg](l,n,i);d!==i&&e.set(1,d),u.data=l}},rsp:function(e,r){if(!m){var o=e.ctx().data;o&&(e.rslt=e.rslt.then((function(e){return B(0,(e||{})[Qg],r,e,o,(function(){var r,o=((r={statusText:(e||{})[Yg]})[Zg]=null,r[wv]=function(e){var r;if(e&&e[Lg])try{return eu(e[Lg].get(Fc[0]))}catch(o){Fv(t,18,Dv,((r={fetchDiagnosticsMessage:U(e)})[mv]=Cr(o),r))}}(e),r);if(b&&e){var n={};e.headers.forEach((function(t,e){L(e)&&(n[e]=t)})),o[Zg]=n}return o})),e})).catch((function(t){throw B(0,0,r,null,o,null,t.message||Cr(t)),t})))}},hkErr:Wv(t,15,"Failed to monitor Window.fetch"+Lv)},!0,yr())),r=!0)}))),c&&(l[Pv].polyfill=c)}}(),(C=t[Pg].getPlugin(jl))&&(c=C.plugin[Sg]))},t._doTeardown=function(){M()},t.trackDependencyData=function(e,r){V(A,t[Pg],null,e,r)},t[Rg]=function(e,r,o,a){var l=t._currentWindowHost||n;if(function(t,e,r,o,n,i){var s;if(t[kg]>0){var a=((s={})[Pg]=e,s.xhr=o,s.input=n,s.init=i,s.traceId=r[Cg],s.spanId=r[Ag],s.traceFlags=r[Eg],s.context=r[Sg]||{},s.aborted=!!r[$g],s);Gv(e,t,a,"listener"),r[Cg]=a[Tg],r[Ag]=a[Og],r[Eg]=a[Eg],r[Sg]=a[Sg]}}(C,t[Pg],e,a,r,o),r||""===r){if(tu(i,e[Mg](),l)){o||(o={});var p=new Headers(o[Lg]||r instanceof Request&&r[Lg]||{});if(d){var h="|"+e[Cg]+"."+e[Ag];p.set(Fc[3],h),s&&(e[jg][Fc[3]]=h)}if((b=O||c&&c.appId())&&(p.set(Fc[0],Fc[2]+b),s&&(e[jg][Fc[0]]=Fc[2]+b)),u){je(g=e[Eg])&&(g=1);var f=Vc(qc(e[Cg],e[Ag],g));p.set(Fc[4],f),s&&(e[jg][Fc[4]]=f)}o[Lg]=p}return o}if(a){var b,g;if(tu(i,e[Mg](),l))d&&(Uv(a,Fc[3])?Fv(t,71,"Unable to set ["+Fc[3]+"] as it has already been set by another instance"):(h="|"+e[Cg]+"."+e[Ag],a[Dg](Fc[3],h),s&&(e[jg][Fc[3]]=h))),(b=O||c&&c.appId())&&(Uv(a,Fc[0])?Fv(t,71,"Unable to set ["+Fc[0]+"] as it has already been set by another instance"):(a[Dg](Fc[0],Fc[2]+b),s&&(e[jg][Fc[0]]=Fc[2]+b))),u&&(je(g=e[Eg])&&(g=1),Uv(a,Fc[4])?Fv(t,71,"Unable to set ["+Fc[4]+"] as it has already been set by another instance"):(f=Vc(qc(e[Cg],e[Ag],g)),a[Dg](Fc[4],f),s&&(e[jg][Fc[4]]=f)));return a}},t[Ng]=function(e,r,o){if(-1===f||l<f){2!==T&&1!==T||"string"!=typeof e.id||"."===e.id[e.id[kg]-1]||(e.id+="."),je(e[zg])&&(e[zg]=new Date);var n=ac(e,iu.dataType,iu.envelopeType,t[Ov](),r,o);t[Pg].track(n)}else l===f&&Vv(t,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},t.addDependencyListener=function(t){return Xv(C,k++,t)},t.addDependencyInitializer=function(t){return Xv(A,k++,t)}})),P}return wo(e,t),e.prototype.processTelemetry=function(t,e){this.processNext(t,e)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e}(Yd),em=function(){},rm=function(){this.id="browser",this.deviceClass="Browser"},om=function(t,e){var r=this,o=wa(t,(function(){var e=t.sdkExtension;r.sdkVersion=(e?e+"_":"")+"javascript:3.1.2"}));e&&e.add(o)},nm=function(){},im="sessionManager",sm="update",am="isUserCookieSet",lm="isNewUser",cm="getTraceCtx",um="telemetryTrace",dm="applySessionContext",pm="applyApplicationContext",hm="applyDeviceContext",fm="applyOperationContext",bm="applyUserContext",gm="applyOperatingSystemContxt",vm="applyLocationContext",mm="applyInternalContext",ym="accountId",wm="getSessionId",_m="namePrefix",xm="userCookiePostfix",km="idLength",Cm="getNewId",Am="length",Em="automaticSession",Sm="authenticatedId",$m="acquisitionDate",Tm="renewalDate",Om="join",Im="cookieSeparator",Pm="authUserCookieName",Rm=function(){},Mm=function(){function t(e,r,o){var n,i,s,a,l=Ra(r),c=Mu(r);oo(t,this,(function(t){e||(e={});var r=wa(e,(function(t){s=e.sessionExpirationMs||864e5,a=e.sessionRenewalMs||18e5;var r=e.sessionCookiePostfix||e[_m]||"";n="ai_session"+r}));function u(t,e){var r=!1,o=", session will be reset",n=e.split("|");if(n[Am]>=2)try{var i=+n[1]||0,s=+n[2]||0;isNaN(i)||i<=0?ja(l,2,27,"AI session acquisition date is 0"+o):isNaN(s)||s<=0?ja(l,2,27,"AI session renewal date is 0"+o):n[0]&&(t.id=n[0],t[$m]=i,t[Tm]=s,r=!0)}catch(t){ja(l,1,9,"Error parsing ai_session value ["+(e||"")+"]"+o+" - "+ki(t),{exception:Cr(t)})}return r}function d(t,r){var o=t[$m];t[Tm]=r;var l,u=a,d=o+s-r,p=[t.id,o,r];l=d<u?d/1e3:u/1e3;var h=e.cookieDomain||null;c.set(n,p[Om]("|"),s>0?l:null,h),i=r}o&&o.add(r),t[Em]=new Rm,t[sm]=function(){var r=zi(),o=!1,p=t[Em];if(p.id||(o=!function(t,e){var r=!1,o=c.get(n);if(o&&ze(o.split))r=u(t,o);else{var i=Il(l,n);i&&(r=u(t,i))}return r||!!t.id}(p)),!o&&s>0){var h=r-p[$m],f=r-p[Tm];o=(o=(o=h<0||f<0)||h>s)||f>a}o?function(r){var o=e[Cm]||vs;t.automaticSession.id=o(e[km]||22),t[Em][$m]=r,d(t[Em],r),Ol()||ja(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&d(p,r)},t.backup=function(){var e,r,o,i=t[Em];e=i.id,r=i[$m],o=i[Tm],Pl(l,n,[e,r,o][Om]("|"))}}))}return t.__ieDyn=1,t}(),Lm=function(t,e,r,o){var n=this;n.traceID=t||Lc(),n.parentID=e;var i=ts();!r&&i&&i.pathname&&(r=i.pathname),n.name=tc(o,r)};function jm(t){return!("string"!=typeof t||!t||t.match(/,|;|=| |\|/))}var Dm=function(){function t(e,r,o){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=Ra(r),s=Mu(r);oo(t,this,(function(r){rr(r,"config",{g:function(){return e}});var a=wa(e,(function(){var o=e[xm]||"";n=t.userCookieName+o;var a=s.get(n);if(a){r[lm]=!1;var d=a.split(t[Im]);d[Am]>0&&(r.id=d[0],r[am]=!!r.id)}if(!r.id){r.id=l(),u(c(r.id)[Om](t[Im]));var p=(e[_m]||"")+"ai_session";!function(t,e){var r=El();if(null!==r)try{return r[Wa](e),!0}catch(e){kl=!1,ja(t,2,5,"Browser failed removal of local storage item. "+ki(e),{exception:Cr(e)})}}(i,p)}r[ym]=e[ym]||void 0;var h=s.get(t[Pm]);if(h){var f=(h=decodeURI(h)).split(t[Im]);f[0]&&(r[Sm]=f[0]),f[Am]>1&&f[1]&&(r[ym]=f[1])}}));function l(){var t=e||{};return(t[Cm]||vs)(t[km]?e[km]:22)}function c(t){var e=xi(new Date);return r.accountAcquisitionDate=e,r[lm]=!0,[t,e]}function u(t){r[am]=s.set(n,t,31536e3)}o&&o.add(a),r.setAuthenticatedUserContext=function(e,o,n){if(void 0===n&&(n=!1),!jm(e)||o&&!jm(o))ja(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{r[Sm]=e;var a=r[Sm];o&&(r[ym]=o,a=[r[Sm],r.accountId][Om](t[Im])),n&&s.set(t[Pm],encodeURI(a))}},r.clearAuthenticatedUserContext=function(){r[Sm]=null,r[ym]=null,s.del(t[Pm])},r[sm]=function(e){r.id===e&&r[am]||u(c(e||l())[Om](t[Im]))}}))}return t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}(),Nm="ext",zm="tags";function Hm(t,e){t&&t[e]&&0===so(t[e])[Am]&&delete t[e]}function qm(){return null}var Um,Bm,Vm=function(){function t(e,r,o,n){var i=this,s=e.logger;oo(t,this,(function(t){if(t.appId=qm,t[wm]=qm,t.application=new em,t.internal=new om(r,n),fr()){t[im]=new Mm(r,e,n),t.device=new rm,t.location=new nm,t.user=new Dm(r,e,n);var a,l=void 0,c=void 0;o&&(l=o.getTraceId(),c=o.getSpanId(),a=o.getName()),t[um]=new Lm(l,c,a,s),t.session=new Rm}t[wm]=function(){var e=t.session,r=null;if(e&&Ne(e.id))r=e.id;else{var o=(t[im]||{})[Em];r=o&&Ne(o.id)?o.id:null}return r},t[dm]=function(e,r){Ci(Ai(e.ext,"app"),"sesId",t[wm](),Ne)},t[gm]=function(e,r){Ci(e.ext,"os",t.os)},t[pm]=function(e,r){var o=t.application;if(o){var n=Ai(e,zm);Ci(n,Ef.applicationVersion,o.ver,Ne),Ci(n,Ef.applicationBuild,o.build,Ne)}},t[hm]=function(e,r){var o=t.device;if(o){var n=Ai(Ai(e,Nm),Cf);Ci(n,"localId",o.id,Ne),Ci(n,"ip",o.ip,Ne),Ci(n,"model",o.model,Ne),Ci(n,"deviceClass",o.deviceClass,Ne)}},t[mm]=function(e,r){var o=t.internal;if(o){var n=Ai(e,zm);Ci(n,Ef.internalAgentVersion,o.agentVersion,Ne),Ci(n,Ef.internalSdkVersion,tc(s,o.sdkVersion,64),Ne),e.baseType!==Pa.dataType&&e.baseType!==fc.dataType||(Ci(n,Ef.internalSnippet,o.snippetVer,Ne),Ci(n,Ef.internalSdkSrc,o.sdkSrc,Ne))}},t[vm]=function(t,e){var r=i.location;r&&Ci(Ai(t,zm,[]),Ef.locationIp,r.ip,Ne)},t[fm]=function(e,r){var o=t[um];if(o){var n=Ai(Ai(e,Nm),Af,{traceID:void 0,parentID:void 0});Ci(n,"traceID",o.traceID,Ne,je),Ci(n,"name",o.name,Ne,je),Ci(n,"parentID",o.parentID,Ne,je)}},t.applyWebContext=function(t,e){var r=i.web;r&&Ci(Ai(t,Nm),"web",r)},t[bm]=function(e,r){var o=t.user;if(o){Ci(Ai(e,zm,[]),Ef.userAccountId,o[ym],Ne);var n=Ai(Ai(e,Nm),kf);Ci(n,"id",o.id,Ne),Ci(n,"authId",o[Sm],Ne)}},t.cleanUp=function(t,e){var r=t.ext;r&&(Hm(r,Cf),Hm(r,kf),Hm(r,"web"),Hm(r,"os"),Hm(r,"app"),Hm(r,Af))}}))}return t.__ieDyn=1,t}(),Fm=null,Wm=ao(((Um={})[ym]=Fm,Um.sessionRenewalMs=18e5,Um.samplingPercentage=100,Um.sessionExpirationMs=864e5,Um.cookieDomain=Fm,Um.sdkExtension=Fm,Um.isBrowserLinkTrackingEnabled=!1,Um.appId=Fm,Um[wm]=Fm,Um[_m]=Bm,Um.sessionCookiePostfix=Bm,Um[xm]=Bm,Um[km]=22,Um[Cm]=Fm,Um));const Km=function(t){function e(){var r,o,n,i,s,a=t.call(this)||this;return a.priority=110,a.identifier=jl,oo(e,a,(function(t,e){function a(){r=null,o=null,n=null,i=null,s=!0}a(),rr(t,"context",{g:function(){return i}}),t.initialize=function(a,l,c,u){e.initialize(a,l,c,u),function(e){var a=t.identifier,l=t.core;t._addHook(wa(e,(function(){var o=Id(null,e,l);e.storagePrefix&&Tl(e.storagePrefix),s=!1!==e.disableUserInitMessage,r=o.getExtCfg(a,Wm),t._extConfig=r}))),n=l[cm](!1),i=new Vm(l,r,n,t._unloadHooks),o=nu(t.context[um],n),l.setTraceCtx(o),t.context.appId=function(){var t=l.getPlugin(Dl);return t?t.plugin._appId:null}}(a)},t.processTelemetry=function(e,r){if(!je(e)){r=t._getTelCtx(r),e.name===fc.envelopeType&&r.diagLog().resetInternalMessageCount();var o=i||{};o.session&&"string"!=typeof i.session.id&&o[im]&&o[im][sm]();var n=o.user;if(n&&!n[am]&&n[sm](o.user.id),function(e,r){Ai(e,"tags",[]),Ai(e,"ext",{});var o=t.context;o[dm](e,r),o[pm](e,r),o[hm](e,r),o[fm](e,r),o[bm](e,r),o[gm](e,r),o.applyWebContext(e,r),o[vm](e,r),o[mm](e,r),o.cleanUp(e,r)}(e,r),n&&n[lm]&&(n[lm]=!1,!s)){var a=new Pa(72,(gr()||{}).userAgent||"");!function(t,e,r){La(t)[vn](1,r)}(r.diagLog(),0,a)}t.processNext(e,r)}},t._doTeardown=function(t,e){var r=(t||{}).core();r&&r[cm]&&r[cm](!1)===o&&r.setTraceCtx(n),a()}})),a}return wo(e,t),e.__ieDyn=1,e}(Yd);var Xm,Gm,Jm,Qm,Ym="AuthenticatedUserContext",Zm="track",ty="snippet",ey="flush",ry="pollInternalLogs",oy="getPlugin",ny="evtNamespace",iy=Zm+"Event",sy=Zm+"Trace",ay=Zm+"Metric",ly=Zm+"PageView",cy=Zm+"Exception",uy=Zm+"DependencyData",dy="set"+Ym,py="clear"+Ym,hy="version",fy="queue",by="connectionString",gy="endpointUrl",vy="userOverrideEndpointUrl",my="instrumentationKey",yy="onunloadFlush",wy="context",_y="addHousekeepingBeforeUnload",xy="sendMessage",ky=[ty,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],Cy="iKeyUsage",Ay="CdnUsage",Ey="SdkLoaderVer",Sy=void 0,$y={disabled:!0,limit:lu({samplingRate:100,maxSendNumber:1}),interval:lu({monthInterval:3,daysOfMonth:[28]})},Ty=((Xm={})[by]=Sy,Xm[gy]=Sy,Xm[my]=Sy,Xm[vy]=Sy,Xm.diagnosticLogInterval=uu((function(t){return t&&t>0}),1e4),Xm.featureOptIn=((Gm={})[Cy]={mode:2},Gm[Ay]={mode:2},Gm[Ey]={mode:2},Gm),Xm.throttleMgrCfg=lu(((Jm={})[109]=lu($y),Jm[106]=lu($y),Jm[111]=lu($y),Jm[110]=lu($y),Jm)),Xm),Oy=function(){function t(e){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g=this;oo(t,this,(function(t){m(),rr(t,"config",{g:function(){return c}}),Vn(["pluginVersionStringArr","pluginVersionString"],(function(e){rr(t,e,{g:function(){return l?l[e]:null}})})),i=""+(e.sv||e[hy]||""),e[fy]=e[fy]||[],e[hy]=e[hy]||2;var v=ya(e.config||{},Ty);function m(){s=xs("AISKU"),a=null,r=null,o=null,n=null,i=null,p=null,h=!1,f=!1,b=!1,d=new Ph}function y(){var t;a&&(hd([Qu,Ju,Gu],null,a),t=cd(Yu,a),hd([Gu],null,t),hd([Xu],null,t))}function w(t){l.addUnloadHook(t)}c=v.cfg,u=new oh,rr(t,"appInsights",{g:function(){return u}}),o=new Km,r=new tm,n=new eg,l=new mg,rr(t,"core",{g:function(){return l}}),w(wa(v,(function(){if(c[by]){var t=function(t){if(!t)return{};var e=t[Ha](";"),r=rg(e,(function(t,e){var r=e[Ha]("=");if(2===r[qa]){var o=r[0][Ua](),n=r[1];t[o]=n}return t}),{});if(so(r)[qa]>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r[Ba]=r[Ba]||"https://"+o+"dc."+r.endpointsuffix}r[Ba]=r[Ba]||Bl,fu(r[Ba],"/")&&(r[Ba]=r[Ba].slice(0,-1))}return r}(c[by]),e=t.ingestionendpoint;c[gy]=c[vy]?c[vy]:e+Vl,c[my]=t.instrumentationkey||c[my]}c[gy]=c[vy]?c[vy]:c[gy]}))),t[ty]=e,t[ey]=function(t,e){var r;return void 0===t&&(t=!0),_d(l,(function(){return"AISKU.flush"}),(function(){t&&!e&&(r=tf((function(t){e=t})));var o=1,n=function(){0==--o&&e()};Vn(l.getChannels(),(function(e){e&&(o++,e[ey](t,n))})),n()}),null,t),r},t[yy]=function(t){void 0===t&&(t=!0),Vn(l.getChannels(),(function(e){e[yy]?e[yy]():e[ey](t)}))},t.loadAppInsights=function(e,s,a){return void 0===e&&(e=!1),e&&function(t){throw ia||(ia=ba("UnsupportedError")),new ia("Legacy Mode is no longer supported")}(),_d(t.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(c,[n,o,r,u,d],s,a),rr(t,"context",{g:function(){return o[wy]}}),p||(p=new og(l));var e=function(){if(Qm)return Qm;var t=null;try{var e=(document||{}).currentScript;e&&(t=e.src)}catch(t){}if(t){try{var r=t.toLowerCase();if(r){var o="";Vn(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(t,e){if(-1!==Bn(r,t))return o="cdn"+(e+1),-1===Bn(r,"/scripts/")&&(-1!==Bn(r,"/next/")?o+="-next":-1!==Bn(r,"/beta/")&&(o+="-beta")),Qm=o+"",-1}))}}catch(t){}Qm=t}return Qm}();e&&t[wy]&&(t[wy].internal.sdkSrc=e),function(e){if(e){var r="";je(i)||(r+=i),t[wy]&&t[wy].internal&&(t[wy].internal.snippetVer=r||"-"),Qe(t,(function(t,r){Ne(t)&&!ze(r)&&t&&"_"!==t[0]&&-1===$s(ky,t)&&e[t]!==r&&(e[t]=r)}))}}(t[ty]),t.emptyQueue(),t[ry](),t[_y](t),w(wa(v,(function(){var e=!1;c.throttleMgrCfg[109]&&(e=!c.throttleMgrCfg[109].disabled),!p.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&e&&p.onReadyState(!0),h||c[by]||!Ii(Cy,c)||(p[xy](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),h=!0),!f&&t[wy].internal.sdkSrc&&-1!=t[wy].internal.sdkSrc.indexOf("az416426")&&Ii(Ay,c)&&(p[xy](110,"See Cdn support notice at aka.ms/JsActiveCdn"),f=!0),!b&&parseInt(i)<6&&Ii(Ey,c)&&(p[xy](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),b=!0)})))})),t},t.updateSnippetDefinitions=function(e){!function(t,e,r){if(t&&e&&He(t)&&He(e)){var o=function(o){if(Ne(o)){var n=e[o];ze(n)?r&&!r(o)||(t[o]=Ei(e,o)):r&&!r(o)||(Je(t,o)&&delete t[o],rr(t,o,{g:function(){return e[o]},s:function(t){e[o]=t}}))}};for(var n in e)o(n)}}(e,t,(function(t){return t&&-1===$s(ky,t)}))},t.emptyQueue=function(){try{if(qe(t.snippet[fy])){for(var e=t.snippet[fy].length,r=0;r<e;r++)(0,t.snippet[fy][r])();t.snippet[fy]=void 0,delete t.snippet[fy]}}catch(t){t&&ze(t.toString)&&t.toString()}},t[_y]=function(e){if(fr()||pr()){var r=function(){if(e[yy](!1),ze(t.core[oy])){var r=g.core[oy](jl);if(r){var o=r.plugin;o&&o[wy]&&o[wy]._sessionManager&&o[wy]._sessionManager.backup()}}},o=!1;a||(a=cd(s,l[ny]&&l[ny]())),w(wa(c,(function(t){var n=t.cfg,i=e.appInsights,s=Id(null,n,i.core).getExtCfg(i.identifier||Nl);y();var c,u=n.disablePageUnloadEvents;s.disableFlushOnBeforeUnload||(function(t,e,r,o){var n=!1;return e&&t&&qe(t)&&!(n=pd(t,e,r,o))&&r&&r[Co]>0&&(n=pd(t,e,null,o)),n}([Qu,Ju,Gu],r,u,a)&&(o=!0),fd(r,u,a)&&(o=!0),o||(c=gr())&&c.product&&"ReactNative"===c.product||ja(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),o||s.disableFlushOnUnload||fd(r,u,a)})))}},t.getSender=function(){return n},t.unload=function(e,r,o){var n,i=!1;return e&&!r&&(n=tf((function(t){r=t}))),t[yy](e),y(),l.unload&&l.unload(e,(function(t){i||(i=!0,m(),r&&r(t))}),o),n},$i(t,u,["getCookieMgr",iy,ly,"trackPageViewPerformance",cy,"_onerror",sy,ay,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),$i(t,(function(){return r}),[uy,"addDependencyListener","addDependencyInitializer"]),$i(t,l,["addTelemetryInitializer",ry,"stopPollingInternalLogs",oy,"addPlugin",ny,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),$i(t,(function(){var t=o[wy];return t?t.user:null}),[dy,py])}))}return t.prototype.addDependencyInitializer=function(t){return null},t}();class Iy{constructor(){this.config={},this.trackPageView=!1}}const Py="AppInsightsConfigurationToken";let Ry=class{constructor(t){this.config=t,t.config?.connectionString||t.config?.instrumentationKey?(this.instance=new Oy(t),this.instance.loadAppInsights(),t.trackPageView&&this.instance.trackPageView()):console.warn("AppInsightsLogger configuraiton has no connectionString or instrumentaitonKey."),this.config=t}logTrace(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:0})}logDebug(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:1})}logInformation(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:2})}logWarning(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:3})}logError(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r))})}logCritical(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r)),properties:{severity:"critical"}})}log(t,e,r,...o){r?this.instance?.trackException({exception:r,properties:{message:this.formatMessage(e,o)}}):this.instance?.trackTrace({message:this.formatMessage(e,o),severityLevel:t})}formatMessage(t,e){return e.length>0?`${t}, ${e.join(", ")}`:t}};var My;Ry=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([I(),function(t,e){return function(r,o){e(r,o,t)}}(0,(My=Py,O(My))),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Iy])],Ry),R.container.registerSingleton(Ry),R.container.register(e,{useToken:Ry}),R.container.register(Py,{useFactory:function(){return R.container.resolve(L).getSection("ApplicationInsights").bind(Iy)}});var Ly=function(t,e){return function(r,o){e(r,o,t)}};let jy=class{constructor(t,e){this.loggers=t,this.readers=e,this.logTrace(`LoggingService.constructor loaded with ${t.length} loggers and ${e.length} readers.`)}logTrace(t,...e){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:n.Trace,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logTrace(t,...e)}logDebug(t,...e){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:n.Debug,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logDebug(t,...e)}logInformation(t,...e){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:n.Information,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logInformation(t,...e)}logWarning(t,...e){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:n.Warning,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logWarning(t,...e)}logError(t,e,...r){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:n.Error,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logError(t,e,...r)}logCritical(t,e,...r){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:n.Critical,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logCritical(t,e,...r)}log(t,e,r,...o){window.dispatchEvent(new CustomEvent(yw.WRITING_LOG,{detail:{logLevel:t,message:e,error:r,...o},bubbles:!0,cancelable:!0,composed:!0}));for(const n of this.loggers)n.log(t,e,r,...o)}getLogs(){return this.readers.reduce(((t,e)=>{const r=e.getLogs();return t.concat(r)}),[])}clearLogs(){this.readers.forEach((t=>t.clearLogs()))}};jy=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([I(),Ly(0,P(e)),Ly(1,P(ee)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array,Array])],jy),R.container.register(te,{useClass:jy},{lifecycle:a.Singleton});const Dy=globalThis,Ny=Dy.ShadowRoot&&(void 0===Dy.ShadyCSS||Dy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zy=Symbol(),Hy=new WeakMap;class qy{constructor(t,e,r){if(this._$cssResult$=!0,r!==zy)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ny&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=Hy.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Hy.set(e,t))}return t}toString(){return this.cssText}}const Uy=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new qy(r,t,zy)},By=Ny?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new qy("string"==typeof t?t:t+"",void 0,zy))(e)})(t):t,{is:Vy,defineProperty:Fy,getOwnPropertyDescriptor:Wy,getOwnPropertyNames:Ky,getOwnPropertySymbols:Xy,getPrototypeOf:Gy}=Object,Jy=globalThis,Qy=Jy.trustedTypes,Yy=Qy?Qy.emptyScript:"",Zy=Jy.reactiveElementPolyfillSupport,tw=(t,e)=>t,ew={toAttribute(t,e){switch(e){case Boolean:t=t?Yy:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},rw=(t,e)=>!Vy(t,e),ow={attribute:!0,type:String,converter:ew,reflect:!1,hasChanged:rw};Symbol.metadata??=Symbol("metadata"),Jy.litPropertyMetadata??=new WeakMap;class nw extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ow){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Fy(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=Wy(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const i=o?.call(this);n.call(this,e),this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ow}static _$Ei(){if(this.hasOwnProperty(tw("elementProperties")))return;const t=Gy(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tw("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tw("properties"))){const t=this.properties,e=[...Ky(t),...Xy(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(By(t))}else void 0!==t&&e.push(By(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ny)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=Dy.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:ew).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:ew;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??rw)(this[t],e))return;this.P(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}nw.elementStyles=[],nw.shadowRootOptions={mode:"open"},nw[tw("elementProperties")]=new Map,nw[tw("finalized")]=new Map,Zy?.({ReactiveElement:nw}),(Jy.reactiveElementVersions??=[]).push("2.0.4");class iw extends nw{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return It}}iw._$litElement$=!0,iw.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:iw});const sw=globalThis.litElementPolyfillSupport;sw?.({LitElement:iw}),(globalThis.litElementVersions??=[]).push("4.0.4");const aw=Uy`
24
+ `}}(function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);i>3&&s&&Object.defineProperty(e,r,s)})([(Qt={type:String},(t,e)=>"object"==typeof e?Jt(Qt,t,e):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(Qt,t,e)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],Yt.prototype,"value",void 0),customElements.define("qbo-config-editor",Yt);const Zt="LoggerServiceToken";R.container.register(e,{useClass:class{logTrace(t,...e){console.debug(t,...e)}logDebug(t,...e){console.debug(t,...e)}logInformation(t,...e){console.info(t,...e)}logWarning(t,...e){console.warn(t,...e)}logError(t,e,...r){console.error(t,...e?[e,...r]:r)}logCritical(t,e,...r){console.error(`CRITICAL: ${t}`,...e?[e,...r]:r)}log(t,e,r,...o){switch(t){case n.Trace:this.logTrace(e,...o);break;case n.Debug:this.logDebug(e,...o);break;case n.Information:this.logInformation(e,...o);break;case n.Warning:this.logWarning(e,...o);break;case n.Error:this.logError(e,r,...o);break;case n.Critical:this.logCritical(e,r,...o);break;default:console.log(e,...o)}}}},{lifecycle:a.Singleton});const te="LogReaderToken";class ee{constructor(){this.logs=[]}logTrace(t,...e){this.logs.push({logLevel:n.Trace,message:t,args:e})}logDebug(t,...e){this.logs.push({logLevel:n.Debug,message:t,args:e})}logInformation(t,...e){this.logs.push({logLevel:n.Information,message:t,args:e})}logWarning(t,...e){this.logs.push({logLevel:n.Warning,message:t,args:e})}logError(t,e,...r){this.logs.push({logLevel:n.Error,message:t,error:e,args:r})}logCritical(t,e,...r){this.logs.push({logLevel:n.Critical,message:t,error:e,args:r})}log(t,e,r,...o){this.logs.push({logLevel:t,message:e,error:r,args:o})}getLogs(){return this.logs}clearLogs(){this.logs=[]}}R.container.registerSingleton(ee),R.container.register(e,{useToken:ee}),R.container.register(te,{useToken:ee});var re=void 0,oe=null,ne="",ie="function",se="object",ae="prototype",le="__proto__",ce="undefined",ue="constructor",de="Symbol",pe="_polyfill",he="length",fe="name",be="call",ge="toString",ve=Object,me=ve[ae],ye=String,we=ye[ae],_e=Math,xe=Array,ke=xe[ae],Ce=ke.slice;function Ae(t,e){try{return{v:t.apply(this,e)}}catch(t){return{e:t}}}var Ee,Se,$e="__tsUtils$gblCfg";function Te(){var t;return typeof globalThis!==ce&&(t=globalThis),t||typeof self===ce||(t=self),t||typeof window===ce||(t=window),t||typeof r.g===ce||(t=r.g),t}function Oe(){if(!Ee){var t=Ae(Te).v||{};Ee=t[$e]=t[$e]||{}}return Ee}function Ie(t){return function(e){return typeof e===t}}function Pe(t){var e="[object "+t+"]";return function(t){return!(!t||Re(t)!==e)}}function Re(t){return me.toString.call(t)}function Me(t){return typeof t===ce||t===ce}function Le(t){return t===oe||Me(t)}function je(t){return!!t||t!==re}var De=Ie("string"),Ne=Ie(ie);function ze(t){return!(!t&&Le(t)||!t||typeof t!==se)}var He=xe.isArray,qe=Pe("Date"),Ue=Ie("number"),Be=Ie("boolean"),Fe=Pe("Error");function Ve(t){return!!(t&&t.then&&Ne(t.then))}function We(t){return!(!t||(e=function(){return!(t&&0+t)},r=!t,o=Ae(e),o.e?r:o.v));var e,r,o}var Ke=ve.getOwnPropertyDescriptor;function Xe(t,e){return!!t&&me.hasOwnProperty[be](t,e)}var Ge=ve.hasOwn||function(t,e){return Xe(t,e)||!!Ke(t,e)};function Je(t,e,r){if(t&&ze(t))for(var o in t)if(Ge(t,o)&&-1===e[be](r||t,o,t[o]))break}var Qe={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Ye,Ze=ve.defineProperty,tr=ve.defineProperties;function er(t,e,r){return Ze(t,e,function(t){var e={};if(e[Qe.c]=!0,e[Qe.e]=!0,t.l){e.get=function(){return t.l.v};var r=Ke(t.l,"v");r&&r.set&&(e.set=function(e){t.l.v=e})}return Je(t,(function(t,r){e[Qe[t]]=Me(r)?e[Qe[t]]:r})),e}(r))}function rr(){Ye=Oe()}function or(t){var e={};return!Ye&&rr(),e.b=Ye.lzy,Ze(e,"v",{configurable:!0,get:function(){var r=t();return Ye.lzy||Ze(e,"v",{value:r}),e.b=Ye.lzy,r}}),e}function nr(t){return Ze({toJSON:function(){return t}},"v",{value:t})}var ir,sr="window";function ar(t,e){var r;return function(){return!Ye&&rr(),(!r||Ye.lzy)&&(r=nr(Ae(t,e).v)),r.v}}function lr(t){return or((function(){return Ae(ur,[t]).v||re}))}function cr(t){return!Ye&&rr(),(!ir||!1===t||Ye.lzy)&&(ir=nr(Ae(Te).v||oe)),ir.v}function ur(t,e){var r=ir&&!1!==e?ir.v:cr(e);return r&&r[t]?r[t]:t===sr?fr():oe}function dr(){return!!pr()}var pr=ar(ur,["document"]);function hr(){return!!fr()}var fr=ar(ur,[sr]),br=ar(ur,["navigator"]),gr=ar(ur,["history"]),vr=ar((function(){return!!Ae((function(){return process&&(process.versions||{}).node})).v})),mr=ar((function(){return!!Ae((function(){return self&&self instanceof WorkerGlobalScope})).v}));function yr(t){throw new Error(t)}function wr(t){throw new TypeError(t)}var _r=ye,xr="[object Error]";function kr(t,e){var r=ne,o=me[ge][be](t);o===xr&&(t={stack:_r(t.stack),message:_r(t.message),name:_r(t.name)});try{r=(r=JSON.stringify(t,oe,e?"number"==typeof e?e:4:re))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||_r(t)}catch(t){r=" - "+kr(t,e)}return o+": "+r}var Cr,Ar=ve.create||function(t){if(!t)return{};var e=typeof t;function r(){}return e!==se&&e!==ie&&wr("Prototype must be an Object or function: "+kr(t)),r[ae]=t,new r},Er="constructor",Sr="prototype",$r="function",Tr="_dynInstFuncs",Or="_isDynProxy",Ir="_dynClass",Pr="_dynInstChk",Rr=Pr,Mr="_dfOpts",Lr="_unknown_",jr="__proto__",Dr="_dyn"+jr,Nr="__dynProto$Gbl",zr="_dynInstProto",Hr="useBaseInst",qr="setInstFuncs",Ur=Object,Br=Ur.getPrototypeOf,Fr=Ur.getOwnPropertyNames,Vr=cr(),Wr=Vr[Nr]||(Vr[Nr]={o:(Cr={},Cr[qr]=!0,Cr[Hr]=!0,Cr),n:1e3});function Kr(t){return t&&(t===Ur[Sr]||t===Array[Sr])}function Xr(t){return Kr(t)||t===Function[Sr]}function Gr(t){var e;if(t){if(Br)return Br(t);var r=t[jr]||t[Sr]||(t[Er]?t[Er][Sr]:null);e=t[Dr]||r,Xe(t,Dr)||(delete t[zr],e=t[Dr]=t[zr]||t[Dr],t[zr]=r)}return e}function Jr(t,e){var r=[];if(Fr)r=Fr(t);else for(var o in t)"string"==typeof o&&Xe(t,o)&&r.push(o);if(r&&r.length>0)for(var n=0;n<r.length;n++)e(r[n])}function Qr(t,e,r){return e!==Er&&typeof t[e]===$r&&(r||Xe(t,e))&&e!==jr&&e!==Sr}function Yr(t){wr("DynamicProto: "+t)}function Zr(t,e){for(var r=t.length-1;r>=0;r--)if(t[r]===e)return!0;return!1}function to(t,e,r,o,n){if(!Kr(t)){var i=r[Tr]=r[Tr]||Ar(null);if(!Kr(i)){var s=i[e]=i[e]||Ar(null);!1!==i[Rr]&&(i[Rr]=!!n),Kr(s)||Jr(r,(function(e){Qr(r,e,!1)&&r[e]!==o[e]&&(s[e]=r[e],delete r[e],(!Xe(t,e)||t[e]&&!t[e][Or])&&(t[e]=function(t,e){var r=function(){var o=function(t,e,r,o){var n=null;if(t&&Xe(r,Ir)){var i=t[Tr]||Ar(null);if((n=(i[r[Ir]]||Ar(null))[e])||Yr("Missing ["+e+"] "+$r),!n[Pr]&&!1!==i[Rr]){for(var s=!Xe(t,e),a=Gr(t),l=[];s&&a&&!Xr(a)&&!Zr(l,a);){var c=a[e];if(c){s=c===o;break}l.push(a),a=Gr(a)}try{s&&(t[e]=n),n[Pr]=1}catch(t){i[Rr]=!1}}}return n}(this,e,t,r)||function(t,e,r){var o=e[t];return o===r&&(o=Gr(e)[t]),typeof o!==$r&&Yr("["+t+"] is not a "+$r),o}(e,t,r);return o.apply(this,arguments)};return r[Or]=1,r}(t,e)))}))}}}function eo(t,e){return Xe(t,Sr)?t.name||e||Lr:((t||{})[Er]||{}).name||e||Lr}function ro(t,e,r,o){Xe(t,Sr)||Yr("theClass is an invalid class definition.");var n=t[Sr];(function(t,e){if(Br){for(var r=[],o=Gr(e);o&&!Xr(o)&&!Zr(r,o);){if(o===t)return!0;r.push(o),o=Gr(o)}return!1}return!0})(n,e)||Yr("["+eo(t)+"] not in hierarchy of ["+eo(e)+"]");var i=null;Xe(n,Ir)?i=n[Ir]:(i="_dynCls$"+eo(t,"_")+"$"+Wr.n,Wr.n++,n[Ir]=i);var s=ro[Mr],a=!!s[Hr];a&&o&&void 0!==o[Hr]&&(a=!!o[Hr]);var l=function(t){var e=Ar(null);return Jr(t,(function(r){!e[r]&&Qr(t,r,!1)&&(e[r]=t[r])})),e}(e),c=function(t,e,r,o){function n(t,e,r){var n=e[r];if(n[Or]&&o){var i=t[Tr]||{};!1!==i[Rr]&&(n=(i[e[Ir]]||{})[r]||n)}return function(){return n.apply(t,arguments)}}var i=Ar(null);Jr(r,(function(t){i[t]=n(e,r,t)}));for(var s=Gr(t),a=[];s&&!Xr(s)&&!Zr(a,s);)Jr(s,(function(t){!i[t]&&Qr(s,t,!Br)&&(i[t]=n(e,s,t))})),a.push(s),s=Gr(s);return i}(n,e,l,a);r(e,c);var u=!!Br&&!!s[qr];u&&o&&(u=!!o[qr]),to(n,i,e,l,!1!==u)}ro[Mr]=Wr.o;var oo=ve.freeze;var no=ve.assign,io=ve.keys;function so(t){return oo&&Je(t,(function(t,e){(He(e)||ze(e))&&oo(e)})),ao(t)}var ao=oo||function(t){return t},lo=(ve.seal,ve.getPrototypeOf||function(t){return t[le]||oe}),co=(ve.entries,ve.values,"function"),uo="object",po="undefined",ho="prototype",fo=Object,bo=fo[ho],go=((cr()||{}).Symbol,(cr()||{}).Reflect,"hasOwnProperty"),vo=no||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])bo[go].call(e,n)&&(t[n]=e[n]);return t},mo=function(t,e){return mo=fo.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e[go](r)&&(t[r]=e[r])},mo(t,e)};function yo(t,e){function r(){this.constructor=t}typeof e!==co&&null!==e&&wr("Class extends value "+String(e)+" is not a constructor or null"),mo(t,e),t[ho]=null===e?Ar(e):(r[ho]=e[ho],new r)}function wo(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}var _o="toLowerCase",xo="blkVal",ko="length",Co="rdOnly",Ao="notify",Eo="warnToConsole",So="throwInternal",$o="setDf",To="watch",Oo="logger",Io="apply",Po="push",Ro="splice",Mo="hdlr",Lo="cancel",jo="initialize",Do="identifier",No="removeNotificationListener",zo="addNotificationListener",Ho="isInitialized",qo="getNotifyMgr",Uo="getPlugin",Bo="pollInternalLogs",Fo="name",Vo="time",Wo="processNext",Ko="getProcessTelContext",Xo="enabled",Go="stopPollingInternalLogs",Jo="unload",Qo="onComplete",Yo="version",Zo="loggingLevelConsole",tn="createNew",en="teardown",rn="messageId",on="message",nn="isAsync",sn="diagLog",an="_doTeardown",ln="update",cn="getNext",un="setNextPlugin",dn="protocol",pn="userAgent",hn="split",fn="nodeType",bn="replace",gn="logInternalMessage",vn="type",mn="handler",yn="status",wn="getResponseHeader",_n="getAllResponseHeaders",xn="isChildEvt",kn="data",Cn="getCtx",An="setCtx",En="complete",Sn="itemsReceived",$n="urlString",Tn="sendPOST",On="headers",In="timeout",Pn="setRequestHeader",Rn="traceId",Mn="spanId",Ln="traceFlags",jn=Dn;function Dn(t,e,r){var o=e&&e[t];return function(e){var n=e&&e[t]||o;if(n||r){var i=arguments;return(n||r).apply(e,n?Ce[be](i,1):i)}wr('"'+_r(t)+'" not defined for '+kr(e))}}function Nn(t){return function(e){return e[t]}}var zn,Hn,qn,Un=jn("indexOf",we);function Bn(t,e,r){if(t)for(var o=t[he]>>>0,n=0;n<o&&(!(n in t)||-1!==e[be](r||t,t[n],n,t));n++);}function Fn(t){if(!t||typeof t!==se)return!1;qn||(qn=!hr()||fr());var e=!1;if(t!==qn){Hn||(zn=Function[ae][ge],Hn=zn[be](ve));try{var r=lo(t);(e=!r)||(Xe(r,ue)&&(r=r[ue]),e=r&&typeof r===ie&&zn[be](r)===Hn)}catch(t){}}return e}function Vn(t){return function(e){return Le(e)&&wr("strTrim called ["+kr(e)+"]"),e&&e.replace&&(e=e.replace(t,ne)),e}}var Wn=Dn("trim",we,Vn(/^\s+|(?=\s)\s+$/g)),Kn=void 0,Xn="",Gn="channels",Jn="core",Qn="createPerfMgr",Yn="disabled",Zn="extensionConfig",ti="extensions",ei="processTelemetry",ri="priority",oi="eventsSent",ni="eventsDiscarded",ii="eventsSendRequest",si="perfEvent",ai="offlineEventsStored",li="offlineBatchSent",ci="offlineBatchDrop",ui="getPerfMgr",di="domain",pi="path",hi="Not dynamic - ",fi=/-([a-z])/g,bi=/([^\w\d_$])/g,gi=/^(\d+[\w\d_$])/,vi=Object.getPrototypeOf;function mi(t){return!Le(t)}function yi(t){var e=t;return e&&De(e)&&(e=(e=(e=e[bn](fi,(function(t,e){return e.toUpperCase()})))[bn](bi,"_"))[bn](gi,(function(t,e){return"_"+e}))),e}function wi(t,e){return!(!t||!e)&&-1!==Un(t,e)}function _i(t){return t&&t.toISOString()||""}function xi(t){return Fe(t)?t[Fo]:Xn}function ki(t,e,r,o,n){var i=r;return t&&((i=t[e])===r||n&&!n(i)||o&&!o(r)||(i=r,t[e]=i)),i}function Ci(t,e,r){var o;return t?!(o=t[e])&&Le(o)&&(o=Me(r)?{}:r,t[e]=o):o=Me(r)?{}:r,o}function Ai(t,e){var r=null,o=null;return Ne(t)?r=t:o=t,function(){var t=arguments;if(r&&(o=r()),o)return o[e][Io](o,t)}}function Ei(t,e,r,o,n){t&&e&&r&&(!1!==n||Me(t[e]))&&(t[e]=Ai(r,o))}function Si(t,e,r,o){return t&&e&&ze(t)&&He(r)&&Bn(r,(function(r){De(r)&&Ei(t,r,e,r,o)})),t}function $i(t){return t&&no&&(t=fo(no({},t))),t}function Ti(t,e,r,o,n,i){var s=arguments,a=s[0]||{},l=s[ko],c=!1,u=1;for(l>0&&Be(a)&&(c=a,a=s[u]||{},u++),ze(a)||(a={});u<l;u++){var d=s[u],p=He(d),h=ze(d);for(var f in d)if(p&&f in d||h&&Ge(d,f)){var b=d[f],g=void 0;if(c&&b&&((g=He(b))||Fn(b))){var v=a[f];g?He(v)||(v=[]):Fn(v)||(v={}),b=Ti(c,v,b)}void 0!==b&&(a[f]=b)}}return a}function Oi(t,e){var r=!1,o=e&&e.featureOptIn&&e.featureOptIn[t];if(t&&o){var n=o.mode;r=3==n||1==n}return r}function Ii(t){try{return t.responseText}catch(t){}return null}function Pi(t,e){return t?"XDomainRequest,Response:"+Ii(t)||0:e}function Ri(t,e){return t?"XMLHttpRequest,Status:"+t[yn]+",Response:"+Ii(t)||0:e}function Mi(t,e){return e&&(Ue(e)?t=[e].concat(t):He(e)&&(t=e.concat(t))),t}var Li="withCredentials";function ji(t,e,r){if(!t[r]&&e&&e[wn]){var o=e[wn](r);o&&(t[r]=Wn(o))}return t}function Di(t,e){var r,o,n={};return t[_n]?(r=t[_n](),o={},De(r)&&Bn(Wn(r)[hn](/[\r\n]+/),(function(t){if(t){var e=t.indexOf(": ");if(-1!==e){var r=Wn(t.substring(0,e))[_o](),n=Wn(t.substring(e+1));o[r]=n}else o[Wn(t)]=1}})),n=o):e&&(n=ji(n,t,"time-delta-millis"),n=ji(n,t,"kill-duration"),n=ji(n,t,"kill-duration-seconds")),n}function Ni(){return(Date.now||zi)()}function zi(){return(new Date).getTime()}var Hi="location",qi="JSON",Ui="crypto",Bi="msCrypto",Fi="msie",Vi="trident/",Wi="XMLHttpRequest",Ki=null,Xi=null,Gi=!1,Ji=null,Qi=null;function Yi(t,e){var r=!1;if(t){try{if(!(r=e in t)){var o=t[ho];o&&(r=e in o)}}catch(t){}if(!r)try{r=!Me((new t)[e])}catch(t){}}return r}function Zi(t){if(t&&Gi){var e=ur("__mockLocation");if(e)return e}return typeof location===uo&&location?location:ur(Hi)}function ts(){return Boolean(typeof JSON===uo&&JSON||null!==ur(qi))}function es(){return ts()?JSON||ur(qi):null}function rs(){var t=br();if(t&&(t[pn]!==Xi||null===Ki)){var e=((Xi=t[pn])||Xn)[_o]();Ki=wi(e,Fi)||wi(e,Vi)}return Ki}function os(t){if(void 0===t&&(t=null),!t){var e=br()||{};t=e?(e.userAgent||Xn)[_o]():Xn}var r=(t||Xn)[_o]();if(wi(r,Fi)){var o=pr()||{};return Math.max(parseInt(r[hn](Fi)[1]),o.documentMode||0)}if(wi(r,Vi)){var n=parseInt(r[hn](Vi)[1]);if(n)return n+4}return null}function ns(t){return null!==Qi&&!1!==t||(Qi=!!br()&&Boolean(br().sendBeacon)),Qi}function is(t){var e=!1;try{e=!!ur("fetch");var r=ur("Request");e&&t&&r&&(e=Yi(r,"keepalive"))}catch(t){}return e}function ss(){var t=!1;try{t=!!ur(Wi)}catch(t){}return t}var as=4294967296,ls=4294967295,cs=123456789,us=987654321,ds=!1,ps=cs,hs=us;function fs(){try{var t=2147483647&Ni();(e=(Math.random()*as^t)+t)<0&&(e>>>=0),ps=cs+e&ls,hs=us-e&ls,ds=!0}catch(t){}var e}function bs(t){var e=0,r=ur(Ui)||ur(Bi);return r&&r.getRandomValues&&(e=r.getRandomValues(new Uint32Array(1))[0]&ls),0===e&&rs()&&(ds||fs(),e=function(t){var e=((hs=36969*(65535&hs)+(hs>>16)&ls)<<16)+(65535&(ps=18e3*(65535&ps)+(ps>>16)&ls))>>>0&ls;return e>>>=0}()&ls),0===e&&(e=Math.floor(as*Math.random()|0)),t||(e>>>=0),e}function gs(t){void 0===t&&(t=22);for(var e=bs()>>>0,r=0,o=Xn;o[ko]<t;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&e),e>>>=6,5===r&&(e=(bs()<<2&4294967295|3&e)>>>0,r=0);return o}var vs="3.0.5",ms="."+gs(6),ys=0;function ws(t){return 1===t[fn]||9===t[fn]||!+t[fn]}function _s(t,e){return void 0===e&&(e=!1),yi(t+ys+++(e?"."+vs:Xn)+ms)}function xs(t){var e={id:_s("_aiData-"+(t||Xn)+"."+vs),accept:function(t){return ws(t)},get:function(t,r,o,n){var i=t[e.id];return i?i[yi(r)]:(n&&(i=function(t,e){var r=e[t.id];if(!r){r={};try{ws(e)&&er(e,t.id,{e:!1,v:r})}catch(t){}}return r}(e,t),i[yi(r)]=o),o)},kill:function(t,e){if(t&&t[e])try{delete t[e]}catch(t){}}};return e}function ks(t){return t&&ze(t)&&(t.isVal||t.fb||Ge(t,"v")||Ge(t,"mrg")||Ge(t,"ref")||t.set)}function Cs(t,e,r){var o,n=r.dfVal||je;if(e&&r.fb){var i=r.fb;He(i)||(i=[i]);for(var s=0;s<i[ko];s++){var a=i[s],l=e[a];if(n(l)?o=l:t&&(n(l=t.cfg[a])&&(o=l),t.set(t.cfg,_r(a),l)),n(o))break}}return!n(o)&&n(r.v)&&(o=r.v),o}function As(t,e,r){var o,n=r;return r&&ks(r)&&(n=Cs(t,e,r)),n&&(ks(n)&&(n=As(t,e,n)),He(n)?(o=[])[ko]=n[ko]:Fn(n)&&(o={}),o&&(Je(n,(function(r,n){n&&ks(n)&&(n=As(t,e,n)),o[r]=n})),n=o)),n}function Es(t,e,r,o){var n,i,s,a,l,c,u,d,p=o;ks(p)?(n=p.isVal,i=p.set,c=p[Co],u=p[xo],a=p.mrg,!(l=p.ref)&&Me(l)&&(l=!!a),s=Cs(t,e,p)):s=o,u&&t[xo](e,r);var h=!0,f=e[r];!f&&Le(f)||(d=f,h=!1,n&&d!==s&&!n(d)&&(d=s,h=!0),i&&(h=(d=i(d,s,e))===s)),h?d=s?As(t,e,s):s:(Fn(d)||He(s))&&a&&s&&(Fn(s)||He(s))&&Je(s,(function(e,r){Es(t,d,e,r)})),t.set(e,r,d),l&&t.ref(e,r),c&&t[Co](e,r)}var Ss=jn("indexOf",ke);function $s(t,e,r,o){var n={};return Je(t,(function(t,o){n[t]=e?o:t,n[o]=r?o:t})),o(n)}function Ts(t){return $s(t,0,0,so)}var Os,Is,Ps,Rs,Ms=Ts({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Ls="_urid";function js(t){var e={description:_r(t),toString:function(){return de+"("+t+")"}};return e[pe]=!0,e}function Ds(t){var e=function(){if(!Os){var t=Oe();Os=t.gblSym=t.gblSym||{k:{},s:{}}}return Os}();if(!Ge(e.k,t)){var r=js(t),o=io(e.s).length;r[Ls]=function(){return o+"_"+r[ge]()},e.k[t]=r,e.s[r[Ls]()]=_r(t)}return e.k[t]}function Ns(t,e){return or((function(){var r=Ae(t);return r.e?e:r.v}))}function zs(){Ps&&Ps.b||(Ps=lr(de),Rs=Ns((function(){return Ps.v?Ps.v.for:re}),re),Ns((function(){return Ps.v?Ps.v.keyFor:re}),re))}function Hs(){return!Ye&&rr(),(!Ps||Ye.lzy)&&zs(),!!Ps.v}function qs(t,e){var r=Ms[t];return!Ye&&rr(),(!Ps||Ye.lzy)&&zs(),Ps.v?Ps.v[r||t]:e?re:function(t){var e;!Is&&(Is={});var r=Ms[t];return r&&(e=Is[r]=Is[r]||js(de+"."+r)),e}(t)}function Us(t,e){return!Ye&&rr(),(!Ps||Ye.lzy)&&zs(),Ps.v?Ps.v(t):e?oe:js(t)}function Bs(t){return!Ye&&rr(),(!Rs||!Ps||Ye.lzy)&&zs(),(Rs.v||Ds)(t)}var Fs=Bs("[[ai_dynCfg_1]]"),Vs=Bs("[[ai_blkDynCfg_1]]"),Ws=Bs("[[ai_frcDynCfg_1]]");function Ks(t){var e;return t&&(He(t)?(e=[])[ko]=t[ko]:Fn(t)&&(e={}),e)?(Je(t,(function(t,r){e[t]=Ks(r)})),e):t}function Xs(t,e,r){var o=!1;return r&&!t[e.blkVal]&&((o=r[Ws])||r[Vs]||(o=Fn(r)||He(r))),o}function Gs(t){wr("InvalidAccess:"+t)}var Js=["push","pop","shift","unshift","splice"],Qs=function(t,e,r,o){t&&t[So](3,108,"".concat(r," [").concat(e,"] failed - ")+kr(o))};function Ys(t,e){var r=Ke(t,e);return r&&r.get}function Zs(t,e,r,o){if(e){var n=Ys(e,r);n&&n[t.prop]?e[r]=o:function(t,e,r,o){var n={n:r,h:[],trk:function(e){e&&e.fn&&(-1===Ss(n.h,e)&&n.h[Po](e),t.trk(e,n))},clr:function(t){var e=Ss(n.h,t);-1!==e&&n.h[Ro](e,1)}},i=!0,s=!1;function a(){i&&(s=s||Xs(a,t,o),o&&!o[Fs]&&s&&(o=ea(t,o,r,"Converting")),i=!1);var e=t.act;return e&&n.trk(e),o}a[t.prop]={chng:function(){t.add(n)}},er(e,n.n,{g:a,s:function(l){if(o!==l){a[t.ro]&&!t.upd&&Gs("["+r+"] is read-only:"+kr(e)),i&&(s=s||Xs(a,t,o),i=!1);var c=s&&a[t.rf];if(s)if(c){Je(o,(function(t){o[t]=l?l[t]:Kn}));try{Je(l,(function(e,r){Zs(t,o,e,r)})),l=o}catch(e){Qs((t.hdlr||{})[Oo],r,"Assigning",e),s=!1}}else o&&o[Fs]&&Je(o,(function(e){var r=Ys(o,e);if(r){var n=r[t.prop];n&&n.chng()}}));if(l!==o){var u=l&&Xs(a,t,l);!c&&u&&(l=ea(t,l,r,"Converting")),o=l,s=u}t.add(n)}}})}(t,e,r,o)}return e}function ta(t,e,r,o){if(e){var n=Ys(e,r),i=n&&!!n[t.prop],s=o&&o[0],a=o&&o[1],l=o&&o[2];if(!i){if(l)try{!function(t){if(t&&(Fn(t)||He(t)))try{t[Vs]=!0}catch(t){}}(e)}catch(e){Qs((t.hdlr||{})[Oo],r,"Blocking",e)}try{Zs(t,e,r,e[r]),n=Ys(e,r)}catch(e){Qs((t.hdlr||{})[Oo],r,"State",e)}}s&&(n[t.rf]=s),a&&(n[t.ro]=a),l&&(n[t.blkVal]=!0)}return e}function ea(t,e,r,o){try{Je(e,(function(r,o){Zs(t,e,r,o)})),e[Fs]||(Ze(e,Fs,{get:function(){return t[Mo]}}),function(t,e,r){He(e)&&Bn(Js,(function(o){var n=e[o];e[o]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=n[Io](this,o);return ea(t,e,r,"Patching"),s}}))}(t,e,r))}catch(e){Qs((t.hdlr||{})[Oo],r,o,e)}return e}function ra(t,e,r){return t.apply(e,r)}var oa,na,ia,sa="ref",aa="unref",la="hasRef",ca="enabled";function ua(t,e,r){var o=He(e),n=o?e.length:0,i=(n>0?e[0]:o?re:e)||setTimeout,s=(n>1?e[1]:re)||clearTimeout,a=r[0];r[0]=function(){l.dn(),ra(a,re,Ce[be](arguments))};var l=function(t,e,r){var o,n=!0,i=t?e(oe):oe;function a(){return n=!1,i&&i[aa]&&i[aa](),o}function l(){i&&function(t){ra(s,re,[t])}(i),i=oe}function c(){return i=e(i),n||a(),o}return(o={cancel:l,refresh:c})[la]=function(){return i&&i[la]?i[la]():n},o[sa]=function(){return n=!0,i&&i[sa]&&i[sa](),o},o[aa]=a,{h:o=Ze(o,ca,{get:function(){return!!i},set:function(t){!t&&i&&l(),t&&!i&&c()}}),dn:function(){i=oe}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;ra(s,re,[t])}return ra(i,re,r)}));return l.h}function da(t,e){return ua(!0,re,Ce[be](arguments))}function pa(t,e){var r=ve.setPrototypeOf||function(t,e){!oa&&(oa=or((function(){var t;return(t={})[le]=[],t instanceof Array}))),oa.v?t[le]=e:Je(e,(function(e,r){return t[e]=r}))};return r(t,e)}function ha(t,e){e&&(t[fe]=e)}function fa(t,e,r){var o=r||Error,n=o[ae][fe],i=Error.captureStackTrace;return function(t,e,r){function o(){this.constructor=e,Ae(er,[this,fe,{v:t,c:!0,e:!1}])}return Ae(er,[e,fe,{v:t,c:!0,e:!1}]),(e=pa(e,r))[ae]=r===oe?Ar(r):(o[ae]=r[ae],new o),e}(t,(function(){var r=this,s=arguments;try{Ae(ha,[o,t]);var a=ra(o,r,Ce[be](s))||r;if(a!==r){var l=lo(r);l!==lo(a)&&pa(a,l)}return i&&i(a,r[ue]),e&&e(a,s),a}finally{Ae(ha,[o,n])}}),o)}var ba="[[ai_",ga="]]";function va(t,e,r){var o,n=function(t){if(t){var e=t[Fs]||t;if(e.cfg&&(e.cfg===t||e.cfg[Fs]===e))return e}return null}(e);if(n)return n;var i,s=_s("dyncfg",!0),a=e&&!1!==r?e:Ks(e),l=((o={uid:null,cfg:a})[Oo]=t,o[Ao]=function(){i[Ao]()},o.set=function(e,r,o){try{e=Zs(i,e,r,o)}catch(e){Qs(t,r,"Setting value",e)}return e[r]},o[$o]=function(t,e){return e&&Je(e,(function(e,r){Es(l,t,e,r)})),t},o[To]=function(t){return function(t,e){var r={fn:e,rm:function(){r.fn=null,t=null,e=null}};return er(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,e),r}(i,t)},o.ref=function(t,e){var r;return ta(i,t,e,(r={},r[0]=!0,r))[e]},o[Co]=function(t,e){var r;return ta(i,t,e,(r={},r[1]=!0,r))[e]},o[xo]=function(t,e){var r;return ta(i,t,e,(r={},r[2]=!0,r))[e]},o._block=function(t,e){i.use(null,(function(r){var o=i.upd;try{Me(e)||(i.upd=e),t(r)}finally{i.upd=o}}))},o);return er(l,"uid",{c:!1,e:!1,w:!1,v:s}),ea(i=function(t){var e,r,o=Us(ba+"get"+t.uid+ga),n=Us(ba+"ro"+t.uid+ga),i=Us(ba+"rf"+t.uid+ga),s=Us(ba+"blkVal"+t.uid+ga),a=Us(ba+"dtl"+t.uid+ga),l=null,c=null;function u(e,o){var n=r.act;try{r.act=e,e&&e[a]&&(Bn(e[a],(function(t){t.clr(e)})),e[a]=[]),o({cfg:t.cfg,set:t.set.bind(t),setDf:t[$o].bind(t),ref:t.ref.bind(t),rdOnly:t[Co].bind(t)})}catch(e){var i=t[Oo];throw i&&i[So](1,107,kr(e)),e}finally{r.act=n||null}}function d(){if(l){var t=l;l=null,c&&c[Lo](),c=null;var e=[];if(Bn(t,(function(t){if(t&&(t[a]&&(Bn(t[a],(function(e){e.clr(t)})),t[a]=null),t.fn))try{u(t,t.fn)}catch(t){e[Po](t)}})),l)try{d()}catch(t){e[Po](t)}e[ko]>0&&function(t,e){ia||(ia=fa("AggregationError",(function(t,e){e[ko]>1&&(t.errors=e[1])})));var r="Watcher error(s): ";throw Bn(e,(function(t,e){r+="\n".concat(e," > ").concat(kr(t))})),new ia(r,e||[])}(0,e)}}return(e={prop:o,ro:n,rf:i})[xo]=s,e[Mo]=t,e.add=function(t){if(t&&t.h[ko]>0){l||(l=[]),c||(c=da((function(){c=null,d()}),0));for(var e=0;e<t.h[ko];e++){var r=t.h[e];r&&-1===Ss(l,r)&&l[Po](r)}}},e[Ao]=d,e.use=u,e.trk=function(t,e){if(t){var r=t[a]=t[a]||[];-1===Ss(r,e)&&r[Po](e)}},r=e}(l),a,"config","Creating"),l}function ma(t,e,r,o){var n=va(r,t||{},o);return e&&n[$o](n.cfg,e),n}function ya(t,e,r){var o=t[Fs]||t;return!o.cfg||o.cfg!==t&&o.cfg[Fs]!==o?(function(t,e){t?(t[Eo](e),t[So](2,108,e)):Gs(e)}(r,hi+kr(t)),ma(t,null,r)[To](e)):o[To](e)}var wa,_a,xa=[oi,ni,ii,si],ka=null;function Ca(t,e){return function(){var r=arguments,o=Aa(e);if(o){var n=o.listener;n&&n[t]&&n[t][Io](n,r)}}}function Aa(t){var e,r=ka;return r||!0===t.disableDbgExt||(r=ka||((e=ur("Microsoft"))&&(ka=e.ApplicationInsights),ka)),r?r.ChromeDbgExt:null}var Ea="warnToConsole",Sa={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},$a=((_a={})[0]=null,_a[1]="errorToConsole",_a[2]=Ea,_a[3]="debugToConsole",_a);function Ta(t){return t?'"'+t[bn](/\"/g,Xn)+'"':Xn}function Oa(t,e){var r=typeof console!==po?console:ur("console");if(r){var o="log";r[t]&&(o=t),Ne(r[o])&&r[o](e)}}var Ia=function(){function t(t,e,r,o){void 0===r&&(r=!1);var n=this;n[rn]=t,n[on]=(r?"AI: ":"AI (Internal): ")+t;var i=Xn;ts()&&(i=es().stringify(o));var s=(e?" message:"+Ta(e):Xn)+(o?" props:"+Ta(i):Xn);n[on]+=s}return t.dataType="MessageData",t}();function Pa(t,e){return(t||{})[Oo]||new Ra(e)}var Ra=function(){function t(e){this.identifier="DiagnosticLogger",this.queue=[];var r,o,n,i,s,a=0,l={};ro(t,this,(function(t){function c(e,r){if(!(a>=n)){var i=!0,s="AITR_"+r[rn];if(l[s]?i=!1:l[s]=!0,i&&(e<=o&&(t.queue[Po](r),a++,u(1===e?"error":"warn",r)),a===n)){var c="Internal events throttle limit per PageView reached for this app.",d=new Ia(23,c,!1);t.queue[Po](d),1===e?t.errorToConsole(c):t[Eo](c)}}}function u(t,r){var o=Aa(e||{});o&&o[sn]&&o[sn](t,r)}s=function(e){return ya(ma(e,Sa,t).cfg,(function(t){var e=t.cfg;r=e[Zo],o=e.loggingLevelTelemetry,n=e.maxMessageLimit,i=e.enableDebug}))}(e||{}),t.consoleLoggingLevel=function(){return r},t[So]=function(e,o,n,s,a){void 0===a&&(a=!1);var d=new Ia(o,n,a,s);if(i)throw kr(d);var p=$a[e]||Ea;if(Me(d[on]))u("throw"+(1===e?"Critical":"Warning"),d);else{if(a){var h=+d[rn];!l[h]&&r>=e&&(t[p](d[on]),l[h]=!0)}else r>=e&&t[p](d[on]);c(e,d)}},t.debugToConsole=function(t){Oa("debug",t),u("warning",t)},t[Eo]=function(t){Oa("warn",t),u("warning",t)},t.errorToConsole=function(t){Oa("error",t),u("error",t)},t.resetInternalMessageCount=function(){a=0,l={}},t[gn]=c,t[Jo]=function(t){s&&s.rm(),s=null}}))}return t.__ieDyn=1,t}();function Ma(t){return t||new Ra}function La(t,e,r,o,n,i){void 0===i&&(i=!1),Ma(t)[So](e,r,o,n,i)}function ja(t,e){Ma(t)[Eo](e)}var Da=function(t){return $s(t,1,0,so)},Na=Da({LocalStorage:0,SessionStorage:1}),za=(Da({AI:0,AI_AND_W3C:1,W3C:2}),Da({Normal:1,Critical:2}),"split"),Ha="length",qa="toLowerCase",Ua="ingestionendpoint",Ba="toString",Fa="push",Va="removeItem",Wa="name",Ka="message",Xa="count",Ga="preTriggerDate",Ja="disabled",Qa="interval",Ya="daysOfMonth",Za="date",tl="getUTCDate",el="stringify",rl="pathname",ol="correlationHeaderExcludePatterns",nl="exceptions",il="parsedStack",sl="properties",al="measurements",ll="sizeInBytes",cl="typeName",ul="severityLevel",dl="problemGroup",pl="isManual",hl="CreateFromInterface",fl="assembly",bl="fileName",gl="hasFullStack",vl="level",ml="method",yl="line",wl="duration",_l="receivedResponse",xl=void 0,kl=void 0,Cl="";function Al(){return Tl()?El(Na.LocalStorage):null}function El(t){try{if(Le(cr()))return null;var e=(new Date)[Ba](),r=ur(t===Na.LocalStorage?"localStorage":"sessionStorage"),o=Cl+e;r.setItem(o,e);var n=r.getItem(o)!==e;if(r[Va](o),!n)return r}catch(t){}return null}function Sl(){return Pl()?El(Na.SessionStorage):null}function $l(t){Cl=t||""}function Tl(t){return(t||void 0===xl)&&(xl=!!El(Na.LocalStorage)),xl}function Ol(t,e){var r=Al();if(null!==r)try{return r.getItem(e)}catch(e){xl=!1,La(t,2,1,"Browser failed read of local storage. "+xi(e),{exception:kr(e)})}return null}function Il(t,e,r){var o=Al();if(null!==o)try{return o.setItem(e,r),!0}catch(e){xl=!1,La(t,2,3,"Browser failed write to local storage. "+xi(e),{exception:kr(e)})}return!1}function Pl(t){return(t||void 0===kl)&&(kl=!!El(Na.SessionStorage)),kl}function Rl(t,e){var r=Sl();if(null!==r)try{return r.getItem(e)}catch(e){kl=!1,La(t,2,2,"Browser failed read of session storage. "+xi(e),{exception:kr(e)})}return null}function Ml(t,e,r){var o=Sl();if(null!==o)try{return o.setItem(e,r),!0}catch(e){kl=!1,La(t,2,4,"Browser failed write to session storage. "+xi(e),{exception:kr(e)})}return!1}var Ll="AppInsightsPropertiesPlugin",jl="AppInsightsChannelPlugin",Dl="ApplicationInsightsAnalytics",Nl="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",zl="sampleRate",Hl="ProcessLegacy",ql="http.method",Ul="https://dc.services.visualstudio.com",Bl="/v2/track",Fl="not_specified",Vl="iKey",Wl=(_e.min,_e.max),Kl=jn("slice",we),Xl=jn("substring",we),Gl=Dn("substr",we,Jl);function Jl(t,e,r){return Le(t)&&wr("'polyStrSubstr called with invalid "+kr(t)),r<0?ne:((e=e||0)<0&&(e=Wl(e+t[he],0)),Me(r)?Kl(t,e):Kl(t,e,e+r))}function Ql(t,e){return Xl(t,0,e)}function Yl(t,e,r){var o=e[Ha],n=function(t,e){var r;return e&&(e=Wn(_r(e)))[Ha]>150&&(r=Xl(e,0,150),La(t,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0)),r||e}(t,e);if(n[Ha]!==o){for(var i=0,s=n;void 0!==r[s];)i++,s=Xl(n,0,147)+ic(i);n=s}return n}function Zl(t,e,r){var o;return void 0===r&&(r=1024),e&&(r=r||1024,(e=Wn(_r(e)))[Ha]>r&&(o=Xl(e,0,r),La(t,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:e},!0))),o||e}function tc(t,e){return nc(t,e,2048,66)}function ec(t,e){var r;return e&&e[Ha]>32768&&(r=Xl(e,0,32768),La(t,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),r||e}function rc(t,e){if(e){var r={};Je(e,(function(e,o){if(ze(o)&&ts())try{o=es()[el](o)}catch(e){La(t,2,49,"custom property is not valid",{exception:e},!0)}o=Zl(t,o,8192),e=Yl(t,e,r),r[e]=o})),e=r}return e}function oc(t,e){if(e){var r={};Je(e,(function(e,o){e=Yl(t,e,r),r[e]=o})),e=r}return e}function nc(t,e,r,o){var n;return e&&(e=Wn(_r(e)))[Ha]>r&&(n=Xl(e,0,r),La(t,2,o,"input is too long, it has been truncated to "+r+" characters.",{data:e},!0)),n||e}function ic(t){var e="00"+t;return Gl(e,e[Ha]-3)}function sc(t,e,r,o,n,i){var s;r=Zl(o,r)||Fl,(Le(t)||Le(e)||Le(r))&&yr("Input doesn't contain all required fields");var a="";t[Vl]&&(a=t[Vl],delete t[Vl]);var l=((s={})[Wa]=r,s.time=_i(new Date),s.iKey=a,s.ext=i||{},s.tags=[],s.data={},s.baseType=e,s.baseData=t,s);return Le(n)||Je(n,(function(t,e){l.data[t]=e})),l}var ac=function(){function t(t,e,r,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var n=this;n.ver=2,n[Wa]=Zl(t,e)||Fl,n[sl]=rc(t,r),n[al]=oc(t,o)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(),lc=function(){function t(t,e,r,o,n){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,e=e||Fl,i[Ka]=ec(t,e),i[sl]=rc(t,o),i[al]=oc(t,n),r&&(i[ul]=r)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(),cc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},uc=function(){function t(t,e,r,o,n,i,s,a,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var u=new cc;u[Xa]=o>0?o:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(n)||null===n?void 0:n,u[Wa]=Zl(t,e)||Fl,u.value=r,u.stdDev=isNaN(s)||null===s?void 0:s,c.metrics=[u],c[sl]=rc(t,a),c[al]=oc(t,l)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(),dc="";function pc(t){(isNaN(t)||t<0)&&(t=0),t=Math.round(t);var e=dc+t%1e3,r=dc+Math.floor(t/1e3)%60,o=dc+Math.floor(t/6e4)%60,n=dc+Math.floor(t/36e5)%24,i=Math.floor(t/864e5);return e=1===e[Ha]?"00"+e:2===e[Ha]?"0"+e:e,r=r[Ha]<2?"0"+r:r,o=o[Ha]<2?"0"+o:o,n=n[Ha]<2?"0"+n:n,(i>0?i+".":dc)+n+":"+o+":"+r+"."+e}var hc=function(){function t(t,e,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var a=this;a.ver=2,a.id=function(t,e){return e?nc(t,e,128,69)[Ba]():e}(t,s),a.url=tc(t,r),a[Wa]=Zl(t,e)||Fl,isNaN(o)||(a[wl]=pc(o)),a[sl]=rc(t,n),a[al]=oc(t,i)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(),fc=function(){function t(t,e,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var a=this;a.ver=2,a.url=tc(t,r),a[Wa]=Zl(t,e)||Fl,a[sl]=rc(t,n),a[al]=oc(t,i),s&&(a.domProcessing=s.domProcessing,a[wl]=s[wl],a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a[_l]=s[_l],a.sentRequest=s.sentRequest)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(),bc=jn("map",ke),gc="error",vc="stack",mc="stackDetails",yc="errorSrc",wc="message",_c="description";function xc(t,e){var r=t;return r&&!De(r)&&(JSON&&JSON[el]?(r=JSON[el](t),!e||r&&"{}"!==r||(r=Ne(t[Ba])?t[Ba]():""+t)):r=t+" - (Missing JSON.stringify)"),r||""}function kc(t,e){var r=t;return t&&(r&&!De(r)&&(r=t[wc]||t[_c]||r),r&&!De(r)&&(r=xc(r,!0)),t.filename&&(r=r+" @"+(t.filename||"")+":"+(t.lineno||"?")+":"+(t.colno||"?"))),e&&"String"!==e&&"Object"!==e&&"Error"!==e&&-1===Un(r||"",e)&&(r=e+": "+r),r||""}function Cc(t){return t&&t.src&&De(t.src)&&t.obj&&He(t.obj)}function Ac(t){var e=t||"";De(e)||(e=De(e[vc])?e[vc]:""+e);var r=e[za]("\n");return{src:e,obj:r}}function Ec(t){var e=null;if(t)try{if(t[vc])e=Ac(t[vc]);else if(t[gc]&&t[gc][vc])e=Ac(t[gc][vc]);else if(t.exception&&t.exception[vc])e=Ac(t.exception[vc]);else if(Cc(t))e=t;else if(Cc(t[mc]))e=t[mc];else if(fr()&&fr().opera&&t[wc])e=function(t){for(var e=[],r=t[za]("\n"),o=0;o<r[Ha];o++){var n=r[o];r[o+1]&&(n+="@"+r[o+1],o++),e[Fa](n)}return{src:t,obj:e}}(t[Ka]);else if(t.reason&&t.reason[vc])e=Ac(t.reason[vc]);else if(De(t))e=Ac(t);else{var r=t[wc]||t[_c]||"";De(t[yc])&&(r&&(r+="\n"),r+=" from "+t[yc]),r&&(e=Ac(r))}}catch(t){e=Ac(t)}return e||{src:"",obj:null}}function Sc(t){var e="";if(t&&!(e=t.typeName||t[Wa]||""))try{var r=/function (.{1,200})\(/.exec(t.constructor[Ba]());e=r&&r[Ha]>1?r[1]:""}catch(t){}return e}function $c(t){if(t)try{if(!De(t)){var e=Sc(t),r=xc(t,!1);return r&&"{}"!==r||(t[gc]&&(e=Sc(t=t[gc])),r=xc(t,!0)),0!==Un(r,e)&&"String"!==e?e+":"+r:r}}catch(t){}return""+(t||"")}var Tc,Oc=function(){function t(t,e,r,o,n,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(t){try{if(ze(t))return"ver"in t&&"exceptions"in t&&"properties"in t}catch(t){}return!1}(e)?(s[nl]=e[nl]||[],s[sl]=e[sl],s[al]=e[al],e[ul]&&(s[ul]=e[ul]),e.id&&(s.id=e.id,e[sl].id=e.id),e[dl]&&(s[dl]=e[dl]),Le(e[pl])||(s[pl]=e[pl])):(r||(r={}),i&&(r.id=i),s[nl]=[new Ic(t,e,r)],s[sl]=rc(t,r),s[al]=oc(t,o),n&&(s[ul]=n),i&&(s.id=i))}return t.CreateAutoException=function(t,e,r,o,n,i,s,a){var l,c=Sc(n||i||t);return(l={})[Ka]=kc(t,c),l.url=e,l.lineNumber=r,l.columnNumber=o,l.error=$c(n||i||t),l.evt=$c(i||t),l[cl]=c,l.stackDetails=Ec(s||n||i),l.errorSrc=a,l},t.CreateFromInterface=function(e,r,o,n){var i=r[nl]&&bc(r[nl],(function(t){return Ic[hl](e,t)}));return new t(e,vo(vo({},r),{exceptions:i}),o,n)},t.prototype.toInterface=function(){var t,e=this,r=e.exceptions,o=e.properties,n=e.measurements,i=e.severityLevel,s=e.problemGroup,a=e.id,l=e.isManual,c=r instanceof Array&&bc(r,(function(t){return t.toInterface()}))||void 0;return(t={ver:"4.0"})[nl]=c,t.severityLevel=i,t.properties=o,t.measurements=n,t.problemGroup=s,t.id=a,t.isManual=l,t},t.CreateSimpleException=function(t,e,r,o,n,i){var s;return{exceptions:[(s={},s[gl]=!0,s.message=t,s.stack=n,s.typeName=e,s)]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=$c,t}(),Ic=function(){function t(t,e,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var o=this;if(function(t){try{if(ze(t))return"hasFullStack"in t&&"typeName"in t}catch(t){}return!1}(e))o[cl]=e[cl],o[Ka]=e[Ka],o[vc]=e[vc],o[il]=e[il]||[],o[gl]=e[gl];else{var n=e,i=n&&n.evt;Fe(n)||(n=n[gc]||i||n),o[cl]=Zl(t,Sc(n))||Fl,o[Ka]=ec(t,kc(e||n,o[cl]))||Fl;var s=e[mc]||Ec(e);o[il]=function(t){var e,r=t.obj;if(r&&r[Ha]>0){e=[];var o=0,n=0;if(Bn(r,(function(t){var r=t[Ba]();if(Pc.regex.test(r)){var i=new Pc(r,o++);n+=i[ll],e[Fa](i)}})),n>32768)for(var i=0,s=e[Ha]-1,a=0,l=i,c=s;i<s;){if((a+=e[i][ll]+e[s][ll])>32768){var u=c-l+1;e.splice(l,u);break}l=i,c=s,i++,s--}}return e}(s),He(o[il])&&bc(o[il],(function(e){e[fl]=Zl(t,e[fl]),e[bl]=Zl(t,e[bl])})),o[vc]=function(t,e){var r;if(e){var o=""+e;o[Ha]>32768&&(r=Xl(o,0,32768),La(t,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return r||e}(t,function(t){var e="";return t&&(t.obj?Bn(t.obj,(function(t){e+=t+"\n"})):e=t.src||""),e}(s)),o.hasFullStack=He(o.parsedStack)&&o.parsedStack[Ha]>0,r&&(r[cl]=r[cl]||o[cl])}}return t.prototype.toInterface=function(){var t,e=this,r=e[il]instanceof Array&&bc(e[il],(function(t){return t.toInterface()}));return(t={id:e.id,outerId:e.outerId,typeName:e[cl],message:e[Ka],hasFullStack:e[gl],stack:e[vc]})[il]=r||void 0,t},t.CreateFromInterface=function(e,r){var o=r[il]instanceof Array&&bc(r[il],(function(t){return Pc[hl](t)}))||r[il];return new t(e,vo(vo({},r),{parsedStack:o}))},t}(),Pc=function(){function t(e,r){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[ll]=0,"string"==typeof e){var n=e;o[vl]=r,o[ml]="<no_method>",o[fl]=Wn(n),o[bl]="",o[yl]=0;var i=n.match(t.regex);i&&i[Ha]>=5&&(o[ml]=Wn(i[2])||o[ml],o[bl]=Wn(i[4]),o[yl]=parseInt(i[5])||0)}else o[vl]=e[vl],o[ml]=e[ml],o[fl]=e[fl],o[bl]=e[bl],o[yl]=e[yl],o[ll]=0;o.sizeInBytes+=o.method[Ha],o.sizeInBytes+=o.fileName[Ha],o.sizeInBytes+=o.assembly[Ha],o[ll]+=t.baseSize,o.sizeInBytes+=o.level.toString()[Ha],o.sizeInBytes+=o.line.toString()[Ha]}return t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){var t=this;return{level:t[vl],method:t[ml],assembly:t[fl],fileName:t[bl],line:t[yl]}},t.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}();function Rc(){return!Ye&&rr(),(!Tc||!Tc.b&&Ye.lzy)&&(Tc=lr("performance")),Tc.v}function Mc(){for(var t,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=Xn,o=0;o<4;o++)r+=e[15&(t=bs())]+e[t>>4&15]+e[t>>8&15]+e[t>>12&15]+e[t>>16&15]+e[t>>20&15]+e[t>>24&15]+e[t>>28&15];var n=e[8+(3&bs())|0];return Gl(r,0,8)+Gl(r,9,4)+"4"+Gl(r,13,3)+n+Gl(r,16,3)+Gl(r,19,12)}var Lc="00",jc="00000000000000000000000000000000",Dc="0000000000000000";function Nc(t,e,r){return!(!t||t[ko]!==e||t===r||!t.match(/^[\da-f]*$/i))}function zc(t,e,r){return Nc(t,e)?t:r}function Hc(t,e,r,o){var n;return(n={})[Yo]=Nc(o,2,"ff")?o:Lc,n[Rn]=qc(t)?t:Mc(),n[Mn]=Uc(e)?e:Ql(Mc(),16),n.traceFlags=r>=0&&r<=255?r:1,n}function qc(t){return Nc(t,32,jc)}function Uc(t){return Nc(t,16,Dc)}function Bc(t){if(t){var e=function(t){(isNaN(t)||t<0||t>255)&&(t=1);for(var e=t.toString(16);e[ko]<2;)e="0"+e;return e}(t[Ln]);Nc(e,2)||(e="01");var r=t[Yo]||Lc;return"00"!==r&&"ff"!==r&&(r=Lc),"".concat(r.toLowerCase(),"-").concat(zc(t.traceId,32,jc).toLowerCase(),"-").concat(zc(t.spanId,16,Dc).toLowerCase(),"-").concat(e.toLowerCase())}return""}var Fc=function(t){var e={};return Je(t,(function(t,r){e[t]=r[1],e[r[0]]=r[1]})),so(e)}({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Vc=pr()||{},Wc=0,Kc=[null,null,null,null,null];function Xc(t){var e=Wc,r=Kc,o=r[e];return Vc.createElement?r[e]||(o=r[e]=Vc.createElement("a")):o={host:Gc(t,!0)},o.href=t,++e>=r[Ha]&&(e=0),Wc=e,o}function Gc(t,e){var r=Jc(t,e)||"";if(r){var o=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[Ha]>3&&De(o[2])&&o[2][Ha]>0)return o[2]+(o[3]||"")}return r}function Jc(t,e){var r=null;if(t){var o=t.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[Ha]>2&&De(o[2])&&o[2][Ha]>0&&(r=o[2]||"",e&&o[Ha]>2)){var n=(o[1]||"")[qa](),i=o[3]||"";("http"===n&&":80"===i||"https"===n&&":443"===i)&&(i=""),r+=i}}return r}var Qc=[Ul+Bl,"https://breeze.aimon.applicationinsights.io"+Bl,"https://dc-int.services.visualstudio.com"+Bl];function Yc(t){return-1!==Ss(Qc,t[qa]())}function Zc(t,e,r){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t[ol])for(var o=0;o<t.correlationHeaderExcludePatterns[Ha];o++)if(t[ol][o].test(e))return!1;var n=Xc(e).host[qa]();if(!n||-1===Un(n,":443")&&-1===Un(n,":80")||(n=(Jc(e,!0)||"")[qa]()),(!t||!t.enableCorsCorrelation)&&n&&n!==r)return!1;var i,s=t&&t.correlationHeaderDomains;if(s&&(Bn(s,(function(t){var e=new RegExp(t.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||e.test(n)})),!i))return!1;var a=t&&t.correlationHeaderExcludedDomains;if(!a||0===a[Ha])return!0;for(o=0;o<a[Ha];o++)if(new RegExp(a[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(n))return!1;return n&&n[Ha]>0}function tu(t){if(t){var e=function(t,e){if(t)for(var r=t[za](","),o=0;o<r[Ha];++o){var n=r[o][za]("=");if(2===n[Ha]&&n[0]===e)return n[1]}}(t,Fc[1]);if(e&&"cid-v1:"!==e)return e}}function eu(){var t=Rc();if(t&&t.now&&t.timing){var e=t.now()+t.timing.navigationStart;if(e>0)return e}return Ni()}function ru(t,e){var r=null;return 0===t||0===e||Le(t)||Le(e)||(r=e-t),r}function ou(t,e){var r=t||{};return{getName:function(){return r[Wa]},setName:function(t){e&&e.setName(t),r[Wa]=t},getTraceId:function(){return r.traceID},setTraceId:function(t){e&&e.setTraceId(t),qc(t)&&(r.traceID=t)},getSpanId:function(){return r.parentID},setSpanId:function(t){e&&e.setSpanId(t),Uc(t)&&(r.parentID=t)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(t){e&&e.setTraceFlags(t),r.traceFlags=t}}}var nu=function(){function t(t,e,r,o,n,i,s,a,l,c,u,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var p=this;p.ver=2,p.id=e,p[wl]=pc(n),p.success=i,p.resultCode=s+"",p.type=Zl(t,l);var h=function(t,e,r,o){var n,i=o,s=o;if(e&&e[Ha]>0){var a=Xc(e);if(n=a.host,!i)if(null!=a[rl]){var l=0===a.pathname[Ha]?"/":a[rl];"/"!==l.charAt(0)&&(l="/"+l),s=a[rl],i=Zl(t,r?r+" "+l:l)}else i=Zl(t,e)}else n=o,i=o;return{target:n,name:i,data:s}}(t,r,a,o);p.data=tc(t,o)||h.data,p.target=Zl(t,h.target),c&&(p.target="".concat(p.target," | ").concat(c)),p[Wa]=Zl(t,h[Wa]),p[sl]=rc(t,u),p[al]=oc(t,d)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}();function iu(t){var e=null;if(Ne(Event))e=new Event(t);else{var r=pr();r&&r.createEvent&&(e=r.createEvent("Event")).initEvent(t,!0,!0)}return e}function su(t,e,r){return!t&&Le(t)?e:Be(t)?t:"true"===_r(t)[_o]()}function au(t){return{mrg:!0,v:t}}function lu(t,e){return{set:t,v:e}}function cu(t,e,r){return{fb:r,isVal:t,v:e}}function uu(t,e){return{fb:e,set:su,v:!!t}}var du,pu,hu=Dn("endsWith",we,fu);function fu(t,e,r){De(t)||wr("'"+kr(t)+"' is not a string");var o=De(e)?e:_r(e),n=!Me(r)&&r<t[he]?r:t[he];return Xl(t,n-o[he],n)===o}var bu,gu="toGMTString",vu="toUTCString",mu="cookie",yu="expires",wu="isCookieUseDisabled",_u="disableCookiesUsage",xu="_ckMgr",ku=null,Cu=null,Au=null,Eu={},Su={},$u=((du={cookieCfg:au((pu={},pu[di]={fb:"cookieDomain",dfVal:mi},pu.path={fb:"cookiePath",dfVal:mi},pu.enabled=Kn,pu.ignoreCookies=Kn,pu.blockedCookies=Kn,pu)),cookieDomain:Kn,cookiePath:Kn})[_u]=Kn,du);function Tu(){!bu&&(bu=or((function(){return pr()})))}function Ou(t){return!t||t.isEnabled()}function Iu(t,e){return!!(e&&t&&He(t.ignoreCookies))&&-1!==Ss(t.ignoreCookies,e)}function Pu(t,e){var r=e[Xo];if(Le(r)){var o=void 0;Me(t[wu])||(o=!t[wu]),Me(t[_u])||(o=!t[_u]),r=o}return r}function Ru(t,e){var r;if(t)r=t.getCookieMgr();else if(e){var o=e.cookieCfg;r=o&&o[xu]?o[xu]:Mu(e)}return r||(r=function(t,e){var r=Mu[xu]||Su[xu];return r||(r=Mu[xu]=Mu(t,e),Su[xu]=r),r}(e,(t||{})[Oo])),r}function Mu(t,e){var r,o,n,i,s,a,l,c,u;t=ma(t||Su,null,e).cfg,s=ya(t,(function(e){e[$o](e.cfg,$u),o=e.ref(e.cfg,"cookieCfg"),n=o[pi]||"/",i=o[di],a=!1!==Pu(t,o),l=o.getCookie||zu,c=o.setCookie||Hu,u=o.delCookie||Hu}),e);var d=((r={isEnabled:function(){var r=!1!==Pu(t,o)&&a&&Lu(e),n=Su[xu];return r&&n&&d!==n&&(r=Ou(n)),r},setEnabled:function(t){a=!1!==t,o[Xo]=t},set:function(t,e,r,s,a){var l,u=!1;if(Ou(d)&&!function(t,e){return!!(e&&t&&He(t.blockedCookies)&&-1!==Ss(t.blockedCookies,e))||Iu(t,e)}(o,t)){var p={},h=Wn(e||Xn),f=Un(h,";");if(-1!==f&&(h=Wn(Ql(e,f)),p=ju(Xl(e,f+1))),ki(p,di,s||i,We,Me),!Le(r)){var b=rs();if(Me(p[yu])){var g=Ni()+1e3*r;if(g>0){var v=new Date;v.setTime(g),ki(p,yu,Du(v,b?gu:vu)||Du(v,b?gu:vu)||Xn,We)}}b||ki(p,"max-age",Xn+r,null,Me)}var m=Zi();m&&"https:"===m[dn]&&(ki(p,"secure",null,null,Me),null===Cu&&(l=(br()||{})[pn],Cu=!(De(l)&&(wi(l,"CPU iPhone OS 12")||wi(l,"iPad; CPU OS 12")||wi(l,"Macintosh; Intel Mac OS X 10_14")&&wi(l,"Version/")&&wi(l,"Safari")||wi(l,"Macintosh; Intel Mac OS X 10_14")&&hu(l,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||wi(l,"Chrome/5")||wi(l,"Chrome/6")||wi(l,"UnrealEngine")&&!wi(l,"Chrome")||wi(l,"UCBrowser/12")||wi(l,"UCBrowser/11")))),Cu&&ki(p,"SameSite","None",null,Me)),ki(p,pi,a||n,null,Me),c(t,Nu(h,p)),u=!0}return u},get:function(t){var e=Xn;return Ou(d)&&!Iu(o,t)&&(e=l(t)),e},del:function(t,e){var r=!1;return Ou(d)&&(r=d.purge(t,e)),r},purge:function(t,r){var o,n=!1;if(Lu(e)){var i=((o={})[pi]=r||"/",o[yu]="Thu, 01 Jan 1970 00:00:01 GMT",o);rs()||(i["max-age"]="0"),u(t,Nu(Xn,i)),n=!0}return n}})[Jo]=function(t){s&&s.rm(),s=null},r);return d[xu]=d,d}function Lu(t){if(null===ku){ku=!1,!bu&&Tu();try{var e=bu.v||{};ku=void 0!==e[mu]}catch(e){La(t,2,68,"Cannot access document.cookie - "+xi(e),{exception:kr(e)})}}return ku}function ju(t){var e={};return t&&t[ko]&&Bn(Wn(t)[hn](";"),(function(t){if(t=Wn(t||Xn)){var r=Un(t,"=");-1===r?e[t]=null:e[Wn(Ql(t,r))]=Wn(Xl(t,r+1))}})),e}function Du(t,e){return Ne(t[e])?t[e]():null}function Nu(t,e){var r=t||Xn;return Je(e,(function(t,e){r+="; "+t+(Le(e)?Xn:"="+e)})),r}function zu(t){var e=Xn;if(!bu&&Tu(),bu.v){var r=bu.v[mu]||Xn;Au!==r&&(Eu=ju(r),Au=r),e=Wn(Eu[t]||Xn)}return e}function Hu(t,e){!bu&&Tu(),bu.v&&(bu.v[mu]=t+"="+e)}var qu="on",Uu="attachEvent",Bu="addEventListener",Fu="detachEvent",Vu="removeEventListener",Wu="events",Ku="visibilitychange",Xu="pagehide",Gu="unload",Ju="beforeunload",Qu=_s("aiEvtPageHide"),Yu=(_s("aiEvtPageShow"),/\.[\.]+/g),Zu=/[\.]+$/,td=1,ed=xs("events"),rd=/^([^.]*)(?:\.(.+)|)/;function od(t){return t&&t[bn]?t[bn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Xn):t}function nd(t,e){var r;if(e){var o=Xn;He(e)?(o=Xn,Bn(e,(function(t){(t=od(t))&&("."!==t[0]&&(t="."+t),o+=t)}))):o=od(e),o&&("."!==o[0]&&(o="."+o),t=(t||Xn)+o)}var n=rd.exec(t||Xn)||[];return(r={})[vn]=n[1],r.ns=(n[2]||Xn).replace(Yu,".").replace(Zu,Xn)[hn](".").sort().join("."),r}function id(t,e,r){void 0===r&&(r=!0);var o=ed.get(t,Wu,{},r),n=o[e];return n||(n=o[e]=[]),n}function sd(t,e,r,o){t&&e&&e[vn]&&(t[Vu]?t[Vu](e[vn],r,o):t[Fu]&&t[Fu](qu+e[vn],r))}function ad(t,e,r,o){for(var n=e[ko];n--;){var i=e[n];i&&(r.ns&&r.ns!==i.evtName.ns||o&&!o(i)||(sd(t,i.evtName,i[mn],i.capture),e[Ro](n,1)))}}function ld(t,e){return e?nd("xx",He(e)?[t].concat(e):[t,e]).ns[hn]("."):t}function cd(t,e,r,o,n){var i;void 0===n&&(n=!1);var s=!1;if(t)try{var a=nd(e,o);if(s=function(t,e,r,o){var n=!1;return t&&e&&e[vn]&&r&&(t[Bu]?(t[Bu](e[vn],r,o),n=!0):t[Uu]&&(t[Uu](qu+e[vn],r),n=!0)),n}(t,a,r,n),s&&ed.accept(t)){var l=((i={guid:td++,evtName:a})[mn]=r,i.capture=n,i);id(t,a.type)[Po](l)}}catch(t){}return s}function ud(t,e,r,o,n){if(void 0===n&&(n=!1),t)try{var i=nd(e,o),s=!1;!function(t,e,r){if(e[vn])ad(t,id(t,e[vn]),e,r);else{var o=ed.get(t,Wu,{});Je(o,(function(o,n){ad(t,n,e,r)})),0===io(o)[ko]&&ed.kill(t,Wu)}}(t,i,(function(t){return!((!i.ns||r)&&t[mn]!==r||(s=!0,0))})),s||sd(t,i,r,n)}catch(t){}}function dd(t,e,r,o){var n=!1;return e&&t&&t[ko]>0&&Bn(t,(function(t){t&&(r&&-1!==Ss(r,t)||(n=function(t,e,r){var o=!1,n=fr();n&&(o=cd(n,t,e,r),o=cd(n.body,t,e,r)||o);var i=pr();return i&&(o=cd(i,t,e,r)||o),o}(t,e,o)||n))})),n}function pd(t,e,r){t&&He(t)&&Bn(t,(function(t){t&&function(t,e,r){var o=fr();o&&(ud(o,t,e,r),ud(o.body,t,e,r));var n=pr();n&&ud(n,t,e,r)}(t,e,r)}))}function hd(t,e,r){var o=ld(Qu,r),n=dd([Xu],t,e,o);return e&&-1!==Ss(e,Ku)||(n=dd([Ku],(function(e){var r=pr();t&&r&&"hidden"===r.visibilityState&&t(e)}),e,o)||n),!n&&e&&(n=hd(t,null,r)),n}var fd="ctx",bd="ParentContextKey",gd="ChildrenContextKey",vd=function(){function t(e,r,o){var n,i=this;i.start=Ni(),i[Fo]=e,i[nn]=o,i[xn]=function(){return!1},Ne(r)&&er(i,"payload",{g:function(){return!n&&Ne(r)&&(n=r(),r=null),n}}),i[Cn]=function(e){return e?e===t[bd]||e===t[gd]?i[e]:(i[fd]||{})[e]:null},i[An]=function(e,r){e&&(e===t[bd]?(i[e]||(i[xn]=function(){return!0}),i[e]=r):e===t[gd]?i[e]=r:(i[fd]=i[fd]||{})[e]=r)},i[En]=function(){var e=0,r=i[Cn](t[gd]);if(He(r))for(var o=0;o<r[ko];o++){var n=r[o];n&&(e+=n[Vo])}i[Vo]=Ni()-i.start,i.exTime=i[Vo]-e,i[En]=function(){}}}return t.ParentContextKey="parent",t.ChildrenContextKey="childEvts",t}(),md=function(){function t(e){this.ctx={},ro(t,this,(function(t){t.create=function(t,e,r){return new vd(t,e,r)},t.fire=function(t){t&&(t[En](),e&&Ne(e[si])&&e[si](t))},t[An]=function(e,r){e&&((t[fd]=t[fd]||{})[e]=r)},t[Cn]=function(e){return(t[fd]||{})[e]}}))}return t.__ieDyn=1,t}(),yd="CoreUtils.doPerf";function wd(t,e,r,o,n){if(t){var i=t;if(i[ui]&&(i=i[ui]()),i){var s=void 0,a=i[Cn](yd);try{if(s=i.create(e(),o,n)){if(a&&s[An]&&(s[An](vd[bd],a),a[Cn]&&a[An])){var l=a[Cn](vd[gd]);l||(l=[],a[An](vd[gd],l)),l[Po](s)}return i[An](yd,s),r(s)}}catch(t){s&&s[An]&&s[An]("exception",t)}finally{s&&i.fire(s),i[An](yd,a)}}}return r()}var _d=xs("plugin");function xd(t){return _d.get(t,"state",{},!0)}function kd(t,e){for(var r,o=[],n=null,i=t[cn]();i;){var s=i[Uo]();if(s){n&&n[un]&&s[ei]&&n[un](s);var a=!!(r=xd(s))[Ho];s[Ho]&&(a=s[Ho]()),a||o[Po](s),n=s,i=i[cn]()}}Bn(o,(function(o){var n=t[Jn]();o[jo](t.getCfg(),n,e,t[cn]()),r=xd(o),o[Jn]||r[Jn]||(r[Jn]=n),r[Ho]=!0,delete r[en]}))}function Cd(t){return t.sort((function(t,e){var r=0;if(e){var o=e[ei];t[ei]?r=o?t[ri]-e[ri]:1:o&&(r=-1)}else r=t?1:-1;return r}))}var Ad="TelemetryPluginChain",Ed="_hasRun",Sd="_getTelCtx",$d=0;function Td(t,e,r,o){var n=null,i=[];e||(e=ma({},null,r[Oo])),null!==o&&(n=o?function(t,e,r){for(;t;){if(t[Uo]()===r)return t;t=t[cn]()}return Rd([r],e.config||{},e)}(t,r,o):t);var s={_next:function(){var t=n;if(n=t?t[cn]():null,!t){var e=i;e&&e[ko]>0&&(Bn(e,(function(t){try{t.func.call(t.self,t.args)}catch(t){La(r[Oo],2,73,"Unexpected Exception during onComplete - "+kr(t))}})),i=[])}return t},ctx:{core:function(){return r},diagLog:function(){return Pa(r,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:function(t,r){var o=a(t,!0);return r&&Je(r,(function(t,r){if(Le(o[t])){var n=e.cfg[t];!n&&Le(n)||(o[t]=n)}Es(e,o,t,r)})),e[$o](o,r)},getConfig:function(t,r,o){void 0===o&&(o=!1);var n,i=a(t,!1),s=e.cfg;return!i||!i[r]&&Le(i[r])?!s[r]&&Le(s[r])||(n=s[r]):n=i[r],n||!Le(n)?n:o},hasNext:function(){return!!n},getNext:function(){return n},setNext:function(t){n=t},iterate:function(t){for(var e;e=s._next();){var r=e[Uo]();r&&t(r)}},onComplete:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t&&i[Po]({func:t,self:Me(e)?s.ctx:e,args:r})}}};function a(t,r){var o=null,n=e.cfg;if(n&&t){var i=n[Zn];!i&&r&&(i={}),n[Zn]=i,(i=e.ref(n,Zn))&&(!(o=i[t])&&r&&(o={}),i[t]=o,o=e.ref(i,t))}return o}return s}function Od(t,e,r,o){var n=ma(e),i=Td(t,n,r,o),s=i.ctx;return s[Wo]=function(t){var e=i._next();return e&&e[ei](t,s),!e},s[tn]=function(t,e){return void 0===t&&(t=null),He(t)&&(t=Rd(t,n.cfg,r,e)),Od(t||s[cn](),n.cfg,r,e)},s}function Id(t,e,r){var o=ma(e.config),n=Td(t,o,e,r),i=n.ctx;return i[Wo]=function(t){var e=n._next();return e&&e[Jo](i,t),!e},i[tn]=function(t,r){return void 0===t&&(t=null),He(t)&&(t=Rd(t,o.cfg,e,r)),Id(t||i[cn](),e,r)},i}function Pd(t,e,r){var o=ma(e.config),n=Td(t,o,e,r).ctx;return n[Wo]=function(t){return n.iterate((function(e){Ne(e[ln])&&e[ln](n,t)}))},n[tn]=function(t,r){return void 0===t&&(t=null),He(t)&&(t=Rd(t,o.cfg,e,r)),Pd(t||n[cn](),e,r)},n}function Rd(t,e,r,o){var n=null,i=!o;if(He(t)&&t[ko]>0){var s=null;Bn(t,(function(t){if(i||o!==t||(i=!0),i&&t&&Ne(t[ei])){var a=function(t,e,r){var o,n=null,i=Ne(t[ei]),s=Ne(t[un]),a={getPlugin:function(){return t},getNext:function(){return n},processTelemetry:function(o,c){l(c=c||function(){var o;return t&&Ne(t[Sd])&&(o=t[Sd]()),o||(o=Od(a,e,r)),o}(),(function(e){if(!t||!i)return!1;var r=xd(t);return!r[en]&&!r[Yn]&&(s&&t[un](n),t[ei](o,e),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||c[Wo](o)},unload:function(e,r){l(e,(function(){var o=!1;if(t){var n=xd(t),i=t[Jn]||n[Jn];!t||i&&i!==e.core()||n[en]||(n[Jn]=null,n[en]=!0,n[Ho]=!1,t[en]&&!0===t[en](e,r)&&(o=!0))}return o}),"unload",(function(){}),r[nn])||e[Wo](r)},update:function(e,r){l(e,(function(){var o=!1;if(t){var n=xd(t),i=t[Jn]||n[Jn];!t||i&&i!==e.core()||n[en]||t[ln]&&!0===t[ln](e,r)&&(o=!0)}return o}),"update",(function(){}),!1)||e[Wo](r)},_id:o=t?t[Do]+"-"+t[ri]+"-"+$d++:"Unknown-0-"+$d++,_setNext:function(t){n=t}};function l(e,r,i,s,a){var l=!1,c=t?t[Do]:Ad,u=e[Ed];return u||(u=e[Ed]={}),e.setNext(n),t&&wd(e[Jn](),(function(){return c+":"+i}),(function(){u[o]=!0;try{var t=n?n._id:Xn;t&&(u[t]=!1),l=r(e)}catch(t){var s=!n||u[n._id];s&&(l=!0),n&&s||La(e[sn](),1,73,"Plugin ["+c+"] failed during "+i+" - "+kr(t)+", run flags: "+kr(u))}}),s,a),l}return ao(a)}(t,e,r);n||(n=a),s&&s._setNext(a),s=a}}))}return o&&!n?Rd([o],e,r):n}var Md,Ld,jd="_aiHooks",Dd=["req","rsp","hkErr","fnErr"];function Nd(t,e){if(t)for(var r=0;r<t[ko]&&!e(t[r],r);r++);}function zd(t,e,r,o,n){n>=0&&n<=2&&Nd(t,(function(t,i){var s=t.cbks,a=s[Dd[n]];if(a){e.ctx=function(){return o[i]=o[i]||{}};try{a[Io](e.inst,r)}catch(t){var l=e.err;try{var c=s[Dd[2]];c&&(e.err=t,c[Io](e.inst,r))}catch(t){}finally{e.err=l}}}}))}function Hd(t,e,r,o){var n=null;return t&&(Xe(t,e)?n=t:r&&(n=Hd(vi(t),e,o,!1))),n}function qd(t,e,r,o){var n=r&&r[jd];if(!n){var i=function(t){return function(){var e,r=arguments,o=t.h,n=((e={})[Fo]=t.n,e.inst=this,e.ctx=null,e.set=function(t,e){(r=a([],r))[t]=e,s=a([n],r)},e),i=[],s=a([n],r);function a(t,e){return Nd(e,(function(e){t[Po](e)})),t}n.evt=ur("event"),zd(o,n,s,i,0);var l=t.f;if(l)try{n.rslt=l[Io](this,r)}catch(t){throw n.err=t,zd(o,n,s,i,3),t}return zd(o,n,s,i,1),n.rslt}}(n={i:0,n:e,f:r,h:[]});i[jd]=n,t[e]=i}var s={id:n.i,cbks:o,rm:function(){var t=this.id;Nd(n.h,(function(e,r){if(e.id===t)return n.h[Ro](r,1),1}))}};return n.i++,n.h[Po](s),s}function Ud(t,e,r,o,n){if(void 0===o&&(o=!0),t&&e&&r){var i=Hd(t,e,o,n);if(i){var s=i[e];if(typeof s===co)return qd(i,e,s,r)}}return null}function Bd(t,e,r,o,n){if(t&&e&&r){var i=Hd(t,e,o,n)||t;if(i)return qd(i,e,i[e],r)}return null}function Fd(){var t=[];return{add:function(e){e&&t[Po](e)},run:function(e,r){Bn(t,(function(t){try{t(e,r)}catch(t){La(e[sn](),2,73,"Unexpected error calling unload handler - "+kr(t))}})),t=[]}}}function Vd(t){return!!t&&Ne(t.next)}function Wd(t,e,r){if(t&&(Vd(t)||(!Md&&(Md=nr(qs(3))),t=t[Md.v]?t[Md.v]():null),Vd(t))){var o=void 0,n=void 0;try{for(var i=0;!(n=t.next()).done&&-1!==e[be](r||t,n.value,i,t);)i++}catch(e){o={e},t.throw&&(n=null,t.throw(o))}finally{try{n&&!n.done&&t.return&&t.return(n)}finally{if(o)throw o.e}}}}function Kd(t,e){return!Me(e)&&t&&(He(e)?ra(t.push,t,e):Vd(e)||!function(t){return t===oe||!je(t)}(r=e)&&Ne(r[qs(3)])?Wd(e,(function(e){t.push(e)})):t.push(e)),t;var r}function Xd(){var t=[];return{run:function(e){var r=t;t=[],Bn(r,(function(t){try{(t.rm||t.remove).call(t)}catch(t){La(e,2,73,"Unloading:"+kr(t))}}))},add:function(e){e&&Kd(t,e)}}}var Gd="getPlugin",Jd=((Ld={})[Zn]={isVal:mi,v:{}},Ld),Qd=function(){function t(){var e,r,o,n,i,s=this;function a(t){void 0===t&&(t=null);var e=t;if(!e){var n=r||Od(null,{},s[Jn]);e=o&&o[Gd]?n[tn](null,o[Gd]):n[tn](null,o)}return e}function l(t,e,n){ma(t,Jd,Pa(e)),!n&&e&&(n=e[Ko]()[cn]());var i=o;o&&o[Gd]&&(i=o[Gd]()),s[Jn]=e,r=Od(n,t,e,i)}function c(){e=!1,s[Jn]=null,r=null,o=null,i=Xd(),n=Fd()}c(),ro(t,s,(function(t){t[jo]=function(t,r,o,n){l(t,r,n),e=!0},t[en]=function(e,r){var s,a=t[Jn];if(a&&(!e||a===e[Jn]())){var l,u=!1,d=e||Id(null,a,o&&o[Gd]?o[Gd]():o),p=r||((s={reason:0})[nn]=!1,s);return t[an]&&!0===t[an](d,p,h)?l=!0:h(),l}function h(){u||(u=!0,n.run(d,r),i.run(d[sn]()),!0===l&&d[Wo](p),c())}},t[ln]=function(e,r){var n=t[Jn];if(n&&(!e||n===e[Jn]())){var i,s=!1,a=e||Pd(null,n,o&&o[Gd]?o[Gd]():o),c=r||{reason:0};return t._doUpdate&&!0===t._doUpdate(a,c,u)?i=!0:u(),i}function u(){s||(s=!0,l(a.getCfg(),a.core(),a[cn]()))}},Ei(t,"_addUnloadCb",(function(){return n}),"add"),Ei(t,"_addHook",(function(){return i}),"add"),er(t,"_unloadHooks",{g:function(){return i}})})),s[sn]=function(t){return a(t)[sn]()},s[Ho]=function(){return e},s.setInitialized=function(t){e=t},s[un]=function(t){o=t},s[Wo]=function(t,e){e?e[Wo](t):o&&Ne(o[ei])&&o[ei](t,null)},s._getTelCtx=a}return t.__ieDyn=1,t}(),Yd="toString",Zd="isStorageUseDisabled",tp="_addHook",ep="core",rp="dataType",op="envelopeType",np="diagLog",ip="track",sp="trackPageView",ap="trackPreviousPageVisit",lp="sendPageViewInternal",cp="startTime",up="properties",dp="duration",pp="sendPageViewPerformanceInternal",hp="populatePageViewPerformanceEvent",fp="href",bp="sendExceptionInternal",gp="exception",vp="error",mp="_onerror",yp="errorSrc",wp="lineNumber",_p="columnNumber",xp="message",kp="CreateAutoException",Cp="addTelemetryInitializer",Ap="autoTrackPageVisitTime",Ep="isBrowserLinkTrackingEnabled",Sp="length",$p="enableAutoRouteTracking",Tp="enableUnhandledPromiseRejectionTracking",Op="autoUnhandledPromiseInstrumented",Ip="getEntriesByType",Pp="isPerformanceTimingSupported",Rp="getPerformanceTiming",Mp="navigationStart",Lp="shouldCollectDuration",jp="isPerformanceTimingDataReady",Dp="responseStart",Np="loadEventEnd",zp="responseEnd",Hp="connectEnd",qp="pageVisitStartTime",Up=function(){function t(e,r,o,n){ro(t,this,(function(t){var i,s=null,a=[],l=!1,c=!1;function u(t){o&&o.flush(t,(function(){}))}function d(){s||(s=da((function(){s=null;var t=a.slice(0),e=!1;a=[],Bn(t,(function(t){t()?e=!0:a.push(t)})),a[Sp]>0&&d(),e&&u(!0)}),100))}function p(t){a.push(t),d()}o&&(i=o.logger),t[sp]=function(t,o){var s=t.name;if(Le(s)||"string"!=typeof s){var a=pr();s=t.name=a&&a.title||""}var d=t.uri;if(Le(d)||"string"!=typeof d){var h=Zi();d=t.uri=h&&h[fp]||""}if(!c){var f=Rc(),b=f&&f[Ip]&&f[Ip]("navigation");if(b&&b[0]&&!Me(f.timeOrigin)){var g=b[0].loadEventStart;t[cp]=new Date(f.timeOrigin+g)}else{var v=(o||t[up]||{})[dp]||0;t[cp]=new Date((new Date).getTime()-v)}c=!0}if(!n[Pp]())return e[lp](t,o),u(!0),void(mr()||La(i,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var m,y,w=!1,_=n[Rp]()[Mp];_>0&&(m=ru(_,+new Date),n[Lp](m)||(m=void 0)),Le(o)||Le(o[dp])||(y=o[dp]),!r&&isNaN(y)||(isNaN(y)&&(o||(o={}),o[dp]=m),e[lp](t,o),u(!0),w=!0),o||(o={}),p((function(){var r=!1;try{if(n[jp]()){r=!0;var a={name:s,uri:d};n[hp](a),a.isValid||w?(w||(o[dp]=a.durationMs,e[lp](t,o)),l||(e[pp](a,o),l=!0)):(o[dp]=m,e[lp](t,o))}else _>0&&ru(_,+new Date)>6e4&&(r=!0,w||(o[dp]=6e4,e[lp](t,o)))}catch(t){La(i,1,38,"trackPageView failed on page load calculation: "+xi(t),{exception:kr(t)})}return r}))},t.teardown=function(t,e){if(s){s.cancel(),s=null;var r=a.slice(0);a=[],Bn(r,(function(t){t()}))}}}))}return t.__ieDyn=1,t}(),Bp=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Fp(){var t=Rc();return t&&!!t.timing}function Vp(){var t=Rc(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e[Mp]>0&&e[Dp]>0&&e.requestStart>0&&e[Np]>0&&e[zp]>0&&e[Hp]>0&&e.domLoading>0}function Wp(){return Fp()?Rc().timing:null}function Kp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(br()||{}).userAgent,o=!1;if(r)for(var n=0;n<Bp[Sp];n++)o=o||-1!==Un(r.toLowerCase(),Bp[n]);if(o)return!1;for(n=0;n<t[Sp];n++)if(t[n]<0||t[n]>=36e5)return!1;return!0}var Xp,Gp=function(){function t(e){var r=Pa(e);ro(t,this,(function(t){t[hp]=function(e){e.isValid=!1;var o,n=(o=Rc())&&o.getEntriesByType&&o.getEntriesByType("navigation")[Sp]>0?Rc()[Ip]("navigation")[0]:null,i=Wp(),s=0,a=0,l=0,c=0,u=0;(n||i)&&(n?(s=n[dp],a=0===n[cp]?n[Hp]:ru(n[cp],n[Hp]),l=ru(n.requestStart,n[Dp]),c=ru(n[Dp],n[zp]),u=ru(n.responseEnd,n[Np])):(s=ru(i[Mp],i[Np]),a=ru(i[Mp],i[Hp]),l=ru(i.requestStart,i[Dp]),c=ru(i[Dp],i[zp]),u=ru(i.responseEnd,i[Np])),0===s?La(r,2,10,"error calculating page view performance.",{total:s,network:a,request:l,response:c,dom:u}):t[Lp](s,a,l,c,u)?s<Math.floor(a)+Math.floor(l)+Math.floor(c)+Math.floor(u)?La(r,2,8,"client performance math error.",{total:s,network:a,request:l,response:c,dom:u}):(e.durationMs=s,e.perfTotal=e[dp]=pc(s),e.networkConnect=pc(a),e.sentRequest=pc(l),e.receivedResponse=pc(c),e.domProcessing=pc(u),e.isValid=!0):La(r,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:s,network:a,request:l,response:c,dom:u}))},t[Rp]=Wp,t[Pp]=Fp,t[jp]=Vp,t[Lp]=Kp}))}return t.__ieDyn=1,t}(),Jp=function(){function t(e,r){var o="prevPageVisitData";ro(t,this,(function(t){t[ap]=function(t,n){try{var i=function(t,r){var n=null;try{if(n=function(){var t=null;try{if(Pl()){var r=Ni(),n=Rl(e,o);n&&ts()&&((t=es().parse(n)).pageVisitTime=r-t[qp],function(t,e){var r=Sl();if(null!==r)try{return r[Va](e),!0}catch(e){kl=!1,La(t,2,6,"Browser failed removal of session storage item. "+xi(e),{exception:kr(e)})}}(e,o))}}catch(r){ja(e,"Stop page visit timer failed: "+kr(r)),t=null}return t}(),Pl()){null!=Rl(e,o)&&yr("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=es().stringify(new Qp(t,r));Ml(e,o,i)}}catch(t){ja(e,"Call to restart failed: "+kr(t)),n=null}return n}(t,n);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(t){ja(e,"Auto track page visit time failed, metric will not be collected: "+kr(t))}},er(t,"_logger",{g:function(){return e}}),er(t,"pageVisitTimeTrackingHandler",{g:function(){return r}})}))}return t.__ieDyn=1,t}(),Qp=function(t,e){this[qp]=Ni(),this.pageName=t,this.pageUrl=e},Yp=function(t,e){var r=this,o={};r.start=function(e){void 0!==o[e]&&La(t,2,62,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),o[e]=+new Date},r.stop=function(e,n,i,s){var a=o[e];if(isNaN(a))La(t,2,63,"stop was called without a corresponding start.",{name:e,key:e},!0);else{var l=ru(a,+new Date);r.action(e,n,l,i,s)}delete o[e],o[e]=void 0}};function Zp(t,e){t&&t.dispatchEvent&&e&&t.dispatchEvent(e)}var th=so(((Xp={sessionRenewalMs:lu(eh,18e5),sessionExpirationMs:lu(eh,864e5),disableExceptionTracking:uu()})[Ap]=uu(),Xp.overridePageViewDuration=uu(),Xp[Tp]=uu(),Xp[Op]=!1,Xp.samplingPercentage=cu((function(t){return!isNaN(t)&&t>0&&t<=100}),100),Xp[Zd]=uu(),Xp[Ep]=uu(),Xp[$p]=uu(),Xp.namePrefix={isVal:De,v:_r(Xn)},Xp.enableDebug=uu(),Xp.disableFlushOnBeforeUnload=uu(),Xp.disableFlushOnUnload=uu(!1,"disableFlushOnBeforeUnload"),Xp));function eh(t,e){return(t=t||e)<6e4&&(t=6e4),+t}var rh=function(t){function e(){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m,y,w,_=t.call(this)||this;return _.identifier=Dl,_.priority=180,_.autoRoutePVDelay=500,ro(e,_,(function(t,e){var _=e[tp];function x(e,r,o,n,i){t[np]().throwInternal(e,r,o,n,i)}function k(){r=null,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,h=!1,f=!1,b=!1,v=!1;var e=Zi(!0);m=e&&e[fp]||"",y=null,w=null,g=null,er(t,"config",{g:function(){return g}})}k(),t.getCookieMgr=function(){return Ru(t[ep])},t.processTelemetry=function(e,r){t.processNext(e,r)},t.trackEvent=function(e,r){try{var o=sc(e,ac[rp],ac[op],t[np](),r);t[ep][ip](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+xi(t),{exception:kr(t)})}},t.startTrackEvent=function(t){try{r.start(t)}catch(t){x(1,29,"startTrackEvent failed, event will not be collected: "+xi(t),{exception:kr(t)})}},t.stopTrackEvent=function(t,e,o){try{r.stop(t,void 0,e,o)}catch(t){x(1,30,"stopTrackEvent failed, event will not be collected: "+xi(t),{exception:kr(t)})}},t.trackTrace=function(e,r){try{var o=sc(e,lc[rp],lc[op],t[np](),r);t[ep][ip](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+xi(t),{exception:kr(t)})}},t.trackMetric=function(e,r){try{var o=sc(e,uc[rp],uc[op],t[np](),r);t[ep][ip](o)}catch(t){x(1,36,"trackMetric failed, metric will not be collected: "+xi(t),{exception:kr(t)})}},t[sp]=function(t,e){try{var r=t||{};n[sp](r,vo(vo(vo({},r.properties),r.measurements),e)),v&&s[ap](r.name,r.uri)}catch(t){x(1,37,"trackPageView failed, page view will not be collected: "+xi(t),{exception:kr(t)})}},t[lp]=function(e,r,o){var n=pr();if(n&&(e.refUri=void 0===e.refUri?n.referrer:e.refUri),Le(e[cp])){var i=(r||e[up]||{})[dp]||0;e[cp]=new Date((new Date).getTime()-i)}var s=sc(e,hc[rp],hc[op],t[np](),r,o);t[ep][ip](s)},t[pp]=function(e,r,o){var n=sc(e,fc[rp],fc[op],t[np](),r,o);t[ep][ip](n)},t.trackPageViewPerformance=function(e,r){var o=e||{};try{i[hp](o),t[pp](o,r)}catch(t){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+xi(t),{exception:kr(t)})}},t.startTrackPage=function(t){try{if("string"!=typeof t){var e=pr();t=e&&e.title||""}o.start(t)}catch(t){x(1,31,"startTrackPage failed, page view may not be collected: "+xi(t),{exception:kr(t)})}},t.stopTrackPage=function(t,e,r,n){try{if("string"!=typeof t){var i=pr();t=i&&i.title||""}if("string"!=typeof e){var a=Zi();e=a&&a[fp]||""}o.stop(t,e,r,n),v&&s[ap](t,e)}catch(t){x(1,32,"stopTrackPage failed, page view will not be collected: "+xi(t),{exception:kr(t)})}},t[bp]=function(e,r,o){var n=e&&(e[gp]||e[vp])||Fe(e)&&e||{name:e&&typeof e,message:e||Fl};e=e||{};var i=sc(new Oc(t[np](),n,e[up]||r,e.measurements,e.severityLevel,e.id).toInterface(),Oc[rp],Oc[op],t[np](),r,o);t[ep][ip](i)},t.trackException=function(e,r){e&&!e[gp]&&e[vp]&&(e[gp]=e[vp]);try{t[bp](e,r)}catch(t){x(1,35,"trackException failed, exception will not be collected: "+xi(t),{exception:kr(t)})}},t[mp]=function(e){var r=e&&e[vp],o=e&&e.evt;try{if(!o){var n=fr();n&&(o=n.event)}var i=e&&e.url||(pr()||{}).URL,s=e[yp]||"window.onerror@"+i+":"+(e[wp]||0)+":"+(e[_p]||0),a={errorSrc:s,url:i,lineNumber:e[wp]||0,columnNumber:e[_p]||0,message:e[xp]};!function(t,e,r,o,n){return!n&&De(t)&&("Script error."===t||"Script error"===t)}(e.message,e.url,e.lineNumber,e.columnNumber,e[vp])?(e[yp]||(e[yp]=s),t.trackException({exception:e,severityLevel:3},a)):function(e,r){var o=sc(e,Oc[rp],Oc[op],t[np](),r);t[ep][ip](o)}(Oc[kp]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,e[wp]||0,e[_p]||0,r,o,null,s),a)}catch(t){var l=r?r.name+", "+r[xp]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+xi(t),{exception:kr(t),errorString:l})}},t[Cp]=function(e){if(t[ep])return t[ep][Cp](e);a||(a=[]),a.push(e)},t.initialize=function(x,k,C,A){if(!t.isInitialized()){Le(k)&&yr("Error initializing"),e.initialize(x,k,C,A);try{w=ld(_s(t.identifier),k.evtNamespace&&k.evtNamespace()),a&&(Bn(a,(function(t){k[Cp](t)})),a=null),function(e){var r=t.identifier,o=t[ep];t[tp](ya(e,(function(){var n,i=Od(null,e,o);g=i.getExtCfg(r,th),v=g[Ap],e.storagePrefix&&$l(e.storagePrefix),Me((n=g)[Zd])||(n[Zd]?(xl=!1,kl=!1):(xl=Tl(!0),kl=Pl(!0))),l=g[Ep],function(){if(!c&&l){var e=["/browserLinkSignalR/","/__browserLink/"];t[tp](t[Cp]((function(t){if(l&&t.baseType===nu[rp]){var r=t.baseData;if(r)for(var o=0;o<e[Sp];o++)if(r.target&&Un(r.target,e[o])>=0)return!1}return!0}))),c=!0}}()})))}(x),i=new Gp(t[ep]),n=new Up(t,g.overridePageViewDuration,t[ep],i),s=new Jp(t[np](),(function(e,r,o){return function(e,r,o){var n={PageName:e,PageUrl:r};t.trackMetric({name:"PageVisitTime",average:o,max:o,min:o,sampleCount:1},n)}(e,r,o)})),(r=new Yp(t[np](),"trackEvent")).action=function(e,r,o,n,i){n||(n={}),i||(i={}),n.duration=o[Yd](),t.trackEvent({name:e,properties:n,measurements:i})},(o=new Yp(t[np](),"trackPageView")).action=function(e,r,o,n,i){Le(n)&&(n={}),n.duration=o[Yd]();var s={name:e,uri:r,properties:n,measurements:i};t[lp](s,n)},hr()&&(E=fr(),S=Zi(!0),t[tp](ya(g,(function(){(p=g.disableExceptionTracking)||h||g.autoExceptionInstrumented||(_(Bd(E,"onerror",{ns:w,rsp:function(e,r,o,n,i,s){p||!0===e.rslt||t[mp](Oc[kp](r,o,n,i,s,e.evt))}},!1)),h=!0)}))),function(e,r){t[tp](ya(g,(function(){f=!0===g[Tp],h=h||g[Op],f&&!b&&(_(Bd(e,"onunhandledrejection",{ns:w,rsp:function(e,o){f&&!0!==e.rslt&&t[mp](Oc[kp](function(t){if(t&&t.reason){var e=t.reason;return!De(e)&&Ne(e[Yd])?e[Yd]():kr(e)}return t||""}(o),r?r[fp]:"",0,0,o,e.evt))}},!1)),g[Op]=b=!0)})))}(E,S),function(){var e=fr(),r=Zi(!0);t[tp](ya(g,(function(){if(u=!0===g[$p],e&&u&&!d&&gr()){var o=gr();Ne(o.pushState)&&Ne(o.replaceState)&&typeof Event!==po&&function(e,r,o){if(!d){var n=g.namePrefix||"";_(Bd(r,"pushState",{ns:w,rsp:function(){u&&(Zp(e,iu(n+"pushState")),Zp(e,iu(n+"locationchange")))}},!0)),_(Bd(r,"replaceState",{ns:w,rsp:function(){u&&(Zp(e,iu(n+"replaceState")),Zp(e,iu(n+"locationchange")))}},!0)),cd(e,n+"popstate",(function(){u&&Zp(e,iu(n+"locationchange"))}),w),cd(e,n+"locationchange",(function(){if(y?(m=y,y=o&&o[fp]||""):y=o&&o[fp]||"",u){var e=function(){var e=null;if(t[ep]&&t[ep].getTraceCtx&&(e=t[ep].getTraceCtx(!1)),!e){var r=t[ep].getPlugin(Ll);if(r){var o=r.plugin.context;o&&(e=ou(o.telemetryTrace))}}return e}();if(e){e.setTraceId(Mc());var r="_unknown_";o&&o.pathname&&(r=o.pathname+(o.hash||"")),e.setName(Zl(t[np](),r))}da(function(e){t[sp]({refUri:e,properties:{duration:0}})}.bind(t,m),t.autoRoutePVDelay)}}),w),d=!0}}(e,o,r)}})))}())}catch(e){throw t.setInitialized(!1),e}var E,S}},t._doTeardown=function(t,e){n&&n.teardown(t,e),ud(window,null,null,w),k()},er(t,"_pageViewManager",{g:function(){return n}}),er(t,"_pageViewPerformanceManager",{g:function(){return i}}),er(t,"_pageVisitTimeManager",{g:function(){return s}}),er(t,"_evtNamespace",{g:function(){return"."+w}})})),_}return yo(e,t),e.Version="3.1.2",e}(Qd),oh="Promise",nh="rejected";function ih(t,e){return sh(t,(function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t}),(function(t){return e?e({status:nh,rejected:!0,reason:t}):t}))}function sh(t,e,r,o){var n=t;try{if(Ve(t))(e||r)&&(n=t.then(e,r));else try{e&&(n=e(t))}catch(t){if(!r)throw t;n=r(t)}}finally{o&&function(t,e){e&&(Ve(t)?t.finally?t.finally(e):t.then((function(t){return e(),t}),(function(t){throw e(),t})):e())}(n,o)}return n}function ah(t){return t.value&&dh(t),!0}var lh=[function(t){var e=t.value;if(He(e)){var r=t.result=[];return r.length=e.length,t.copyTo(r,e),!0}return!1},dh,function(t){return t.type===ie},function(t){var e=t.value;return!!qe(e)&&(t.result=new Date(e.getTime()),!0)}];function ch(t,e,r,o){var n=r.handler,i=r.path?o?r.path.concat(o):r.path:[],s={handler:r.handler,src:r.src,path:i},a=typeof e,l=!1,c=!1;e&&a===se?l=Fn(e):c=e===oe||function(t){return!Se&&(Se=["string","number","boolean",ce,"symbol","bigint"]),t!==se&&-1!==Se.indexOf(t)}(a);var u={type:a,isPrim:c,isPlain:l,value:e,result:e,path:i,origin:r.src,copy:function(e,o){return ch(t,e,o?s:r,o)},copyTo:function(e,r){return uh(t,e,r,s)}};return u.isPrim?n&&n[be](r,u)?u.result:e:function(t,e,o,i){var s;return Bn(t,(function(t){if(t.k===e)return s=t,-1})),s||(s={k:e,v:e},t.push(s),function(t){er(u,"result",{g:function(){return t.v},s:function(e){t.v=e}});for(var e=0,o=n;!(o||(e<lh.length?lh[e++]:ah))[be](r,u);)o=oe}(s)),s.v}(t,e)}function uh(t,e,r,o){if(!Le(r))for(var n in r)e[n]=ch(t,r[n],o,n);return e}function dh(t){var e=t.value;if(e&&t.isPlain){var r=t.result={};return t.copyTo(r,e),!0}return!1}function ph(t,e){return Bn(e,(function(e){!function(t,e,r){uh([],t,e,{handler:void 0,src:e,path:[]})}(t,e)})),t}function hh(t,e,r,o,n,i,s){return ph(ch([],a=t,{handler:undefined,src:a})||{},Ce[be](arguments));var a}var fh=jn("split",we);function bh(t,e,r){if(t&&e){var o=fh(e,"."),n=o.pop();Bn(o,(function(e){Le(t[e])&&(t[e]={}),t=t[e]})),t[n]=r}}Hs();var gh="featureOptIn",vh="onCfgChangeReceive",mh="nonOverrideConfigs",yh="scheduleFetchTimeout";function wh(t,e,r,o){try{var n=r>o;n&&(t=null);var i=0==r?function(t,e,r,o,n,i,s){return ph(t||{},Ce[be](arguments))}({},t):t;return i&&e&&!n&&Je(i,(function(t){var n=e[t];n&&(ze(i[t])&&ze(n)?i[t]=wh(i[t],n,++r,o):delete i[t])})),i}catch(t){}return t}var _h,xh="featureOptIn.",kh=".mode",Ch=".onCfg",Ah=".offCfg";var Eh,Sh,$h,Th=void 0,Oh=so(((_h={syncMode:1,blkCdnCfg:Th,customEvtName:Th,cfgUrl:Th,overrideSyncFn:Th,overrideFetchFn:Th})[vh]=Th,_h[yh]=18e5,_h[mh]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},_h)),Ih=function(t){function e(){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m=t.call(this)||this;m.priority=198,m.identifier="AppInsightsCfgSyncPlugin";var y=!1;return ro(e,m,(function(t,e){function m(){o=null,n=null,i=null,s=null,l=null,c=null,f=null,a=null,d=null,p=null,u=null,g=null,v=null,h=null}function w(e,r){if(e){if(o=e,r&&!y)return x();if(l&&!y)return t.core.updateCfg(e),!0}return!1}function _(){try{var t=cr();t&&ud(t,null,null,i)}catch(t){}}function x(t){try{return v&&Ne(v)?v(o,t):function(t,e,r){var o,n,i=cr();if(i&&i.CustomEvent)try{return o=i,n=function(t,e){var r=null,o={detail:e||null};if(Ne(CustomEvent))r=new CustomEvent(t,o);else{var n=pr();n&&n.createEvent&&(r=n.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,o)}return r}(t,{cfg:e||null,customDetails:r||null}),!!(o&&o.dispatchEvent&&n)&&(o.dispatchEvent(n),!0)}catch(t){}return!1}(n,o,t)}catch(t){}return!1}function k(t){try{return _(),t&&(n=t,function(){if(l){var t=cr();if(t)try{cd(t,n,(function(t){var e=t&&t.detail;if(h&&e)h(e);else{var r=e&&e.cfg,o=r&&Fn(r)&&function(t,e){var r=null;try{t&&(r=wh(t,f,0,5))}catch(t){}return r}(r);o&&w(o)}}),i,!0)}catch(t){}}}()),!0}catch(t){}return!1}function C(t,e,r){var o=cr(),n=o&&o.fetch||null;if(t&&n&&Ne(n))try{var i=new Request(t,{method:"GET"});ih(fetch(i),(function(t){var o=t.value;t.rejected?S(e,400):o.ok?ih(o.text(),(function(t){S(e,o.status,t.value,r)})):S(e,o.status,null,r)}))}catch(t){}}function A(t,e,r){try{var o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&S(e,o.status,o.responseText,r)},o.onerror=function(){S(e,400)},o.ontimeout=function(){S(e,400)},o.send()}catch(t){}}function E(e,r,o){try{if(e>=200&&e<400&&r){p=0;var n=es();if(n){var i=function(t,e){try{if(!t||!t.enabled)return null;if(!t[gh])return t.config;var r=t[gh],o=t.config||{};return Je(r,(function(r){var n,i,s,a,l,c,u,d=function(t,e,r){var o;if(!e||!e.enabled)return null;var n=(e[gh]||{})[t]||{mode:1},i=n.mode,s=n.onCfg,a=n.offCfg,l=(r||{})[t]||{mode:2},c=l.mode,u=l.onCfg,d=l.offCfg,p=!!l.blockCdnCfg,h=xh+t+Ch,f=xh+t+Ah,b=c,g=u,v=d;return p||(4===i||5===i?(b=4==i?3:2,g=s||u,v=a||d):2===i||2===c?(b=2,g=u||s,v=d||a):3===i?(b=3,g=u||s,v=d||a):1===i&&1===c&&(b=1)),(o={})[xh+t+kh]=b,o[h]=g,o[f]=v,o}(r,t,e.config[gh]);Le(d)||(Je(d,(function(t,e){bh(o,t,e)})),s=o,a=(i=d)[xh+(n=r)+kh],l=i[xh+n+Ch],c=i[xh+n+Ah],u=null,3===a&&(u=l),2===a&&(u=c),u&&Je(u,(function(t,e){bh(s,t,e)})))})),o}catch(t){}return null}(n.parse(r),t.core);i&&w(i,o)}}else p++;p<3&&$()}catch(t){}}function S(t,e,r,o){try{t(e,r,o)}catch(t){}}function $(){!a&&d&&(a=da((function(){a=null,b(s,E,c)}),d)).unref()}function T(){a&&a.cancel(),a=null,p=0}m(),t.initialize=function(a,m,y,w){e.initialize(a,m,y,w),i=ld(_s(t.identifier),m.evtNamespace&&m.evtNamespace()),function(e){var i=t.identifier,a=t.core;t._addHook(ya(e,(function(){var t=Od(null,e,a);r=t.getExtCfg(i,Oh);var d=u;u=!!r.blkCdnCfg,Le(d)||d===u||(!u&&s?b&&b(s,E,c):T()),Le(l)&&(l=2===r.syncMode),Le(c)&&(c=1===r.syncMode);var p=r.customEvtName||"ai_cfgsync";n!==p&&(l?k(p):(_(),n=p)),Le(s)&&(s=r.cfgUrl),s||(o=e,c&&x())}))),v=r.overrideSyncFn,g=r.overrideFetchFn,h=r[vh],f=r[mh],d=r[yh],b=function(){var t=g;return Le(t)&&(is()?t=C:ss()&&(t=A)),t}(),p=0,s&&!u&&b&&b(s,E,c)}(a)},t.getCfg=function(){return o},t.pause=function(){y=!0,T()},t.resume=function(){y=!1,$()},t.setCfg=function(t){return w(t)},t.sync=function(t){return x(t)},t.updateEventListenerName=function(t){return k(t)},t._doTeardown=function(t,e){_(),T(),m()},t._getDbgPlgTargets=function(){return[c,l,n,u]},t.processTelemetry=function(e,r){t.processNext(e,r)}})),m}return yo(e,t),e.__ieDyn=1,e}(Qd);function Ph(t,e){ud(t,null,null,e)}function Rh(t,e,r){return(t&&t.slice||Ce).apply(t,Ce[be](arguments,1))}var Mh,Lh=!1,jh=["pending","resolving","resolved",nh],Dh="dispatchEvent";function Nh(t){var e;return t&&t.createEvent&&(e=t.createEvent("Event")),!!e&&e.initEvent}var zh,Hh="unhandledRejection",qh=Hh.toLowerCase(),Uh=[],Bh=0,Fh=10;function Vh(t){return Ne(t)?t.toString():kr(t)}function Wh(t,e,r){var o,n,i=Rh(arguments,3),s=0,a=!1,l=[],c=Bh++,u=Uh.length>0?Uh[Uh.length-1]:void 0,d=!1,p=null;function h(e,r){try{return Uh.push(c),d=!0,p&&p.cancel(),p=null,t((function(t,n){l.push((function(){try{var i=2===s?e:r,a=Me(i)?o:Ne(i)?i(o):i;Ve(a)?a.then(t,n):i?t(a):3===s?n(a):t(a)}catch(t){n(t)}})),a&&b()}),i)}finally{Uh.pop()}}function f(){return jh[s]}function b(){if(l.length>0){var t=l.slice();l=[],d=!0,p&&p.cancel(),p=null,e(t)}}function g(t,e){return function(r){if(s===e){if(2===t&&Ve(r))return s=1,void r.then(g(2,1),g(3,1));s=t,a=!0,o=r,b(),d||3!==t||p||(p=da(v,Fh))}}}function v(){d||(d=!0,vr()?process.emit(Hh,o,n):function(t,e,r,o){var n=pr();!Mh&&(Mh=nr(!!Ae(Nh,[n]).v));var i=Mh.v?n.createEvent("Event"):o?new Event(e):{};if(r&&r(i),Mh.v&&i.initEvent(e,!1,!0),i&&t[Dh])t[Dh](i);else{var s=t["on"+e];if(s)s(i);else{var a=ur("console");a&&(a.error||a.log)(e,kr(i))}}}(fr()||cr(),qh,(function(t){return er(t,"promise",{g:function(){return n}}),t.reason=o,t}),!!zh.v))}return!zh&&(zh=lr(oh+"RejectionEvent")),Ze(n={then:h,catch:function(t){return h(void 0,t)},finally:function(t){var e=t,r=t;return Ne(t)&&(e=function(e){return t&&t(),e},r=function(e){throw t&&t(),e}),h(e,r)}},"state",{get:f}),Lh&&function(t,e,r,n){Sh=Sh||{toString:function(){return"[[PromiseResult]]"}},$h=$h||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[Eh=Eh||{toString:function(){return"[[PromiseState]]"}}]={get:e},i[Sh]={get:function(){return Re(o)}},i[$h]={get:function(){return d}},tr(t,i)}(n,f),Hs()&&(n[qs(11)]="IPromise"),n.toString=function(){return"IPromise"+(Lh?"["+c+(Me(u)?"":":"+u)+"]":"")+" "+f()+(a?" - "+Vh(o):"")},function(){Ne(r)||wr(oh+": executor is not a function - "+Vh(r));var t=g(3,0);try{r.call(n,g(2,0),t)}catch(e){t(e)}}(),n}function Kh(t){return function(e){var r=Rh(arguments,1);return t((function(t,r){try{var o=[],n=1;Wd(e,(function(e,i){e&&(n++,sh(e,(function(e){o[i]=e,0==--n&&t(o)}),r))})),0==--n&&t(o)}catch(t){r(t)}}),r)}}function Xh(t,e){return Wh(Xh,function(t){var e=Ue(t)?t:0;return function(t){da((function(){!function(t){Bn(t,(function(t){try{t()}catch(t){}}))}(t)}),e)}}(e),t,e)}var Gh,Jh,Qh=!0;function Yh(t,e){!Gh&&(Gh=nr(Qh&&Ae(ur,[oh]).v||null));var r=Gh.v;if(!r)return Xh(t);Ne(t)||wr(oh+": executor is not a function - "+kr(t));var o=0,n=new r((function(e,r){t((function(t){o=2,e(t)}),(function(t){o=3,r(t)}))}));return Ze(n,"state",{get:function(){return jh[o]}}),n}function Zh(t,e){return!Jh&&(Jh=nr(Yh)),Jh.v.call(this,t,e)}var tf=Kh(Zh),ef="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",rf="",of="&NoResponseBody=true",nf="POST",sf=function(){function t(){var e,r,o,n,i,s,a,l,c,u,d,p,h,f=0;ro(t,this,(function(t,b){var g=!0;function v(t,e){La(o,2,26,"Failed to send telemetry.",{message:t}),y(e,400,{})}function m(t){v("No endpoint url is provided for the batch",t)}function y(t,e,r,o){try{t&&t(e,r,o)}catch(t){}}function w(t,e){var r=br(),o=t[$n];if(!o)return m(e),!0;o=t[$n]+(p?of:rf);var i=t[kn],s=n?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(o,s)}function _(t,e,r){var s=t[kn];try{if(s)if(w(t,e))y(e,200,{},rf);else{var l=i&&i.beaconOnRetry;l&&Ne(l)?l(t,e,w):(a&&a[Tn](t,e,!0),La(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(t){n&&ja(o,"Failed to send telemetry using sendBeacon API. Ex:"+kr(t)),y(e,n?0:400,{},rf)}}function x(t,r,o){var s,a,l,c=t[On]||{};!o&&e&&(s=Zh((function(t,e){a=t,l=e}))),n&&o&&t.disableXhrSync&&(o=!1);var u=t[$n];if(!u)return m(r),void(a&&a(!1));var d=function(t,e,r,o,n,i){function s(t,e,r){try{t[e]=r}catch(t){}}void 0===o&&(o=!1),void 0===n&&(n=!1);var a=new XMLHttpRequest;return o&&s(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o),r&&s(a,Li,r),a.open(t,e,!n),r&&s(a,Li,r),!n&&i&&s(a,"timeout",i),a}(nf,u,g,!0,o,t[In]);function p(e){var o=i&&i.xhrOnComplete;if(o&&Ne(o))o(e,r,t);else{var s=Ii(e);y(r,e[yn],Di(e,n),s)}}return d[Pn]("Content-type","application/json"),Bn(io(c),(function(t){d[Pn](t,c[t])})),d.onreadystatechange=function(){n||(p(d),4===d.readyState&&a&&a(!0))},d.onload=function(){n&&p(d)},d.onerror=function(t){y(r,n?d[yn]:400,Di(d,n),n?rf:Ri(d)),l&&l(t)},d.ontimeout=function(){y(r,n?d[yn]:500,Di(d,n),n?rf:Ri(d)),a&&a(!1)},d.send(t[kn]),s}function k(t,r,o){var s,a,l,c,u=t[$n],d=t[kn],b=n?d:new Blob([d],{type:"application/json"}),v=new Headers,w=d[ko],_=!1,x=!1,k=t[On]||{},C=((s={method:nf,body:b})[ef]=!0,s);t.headers&&io(t.headers)[ko]>0&&(Bn(io(k),(function(t){v.append(t,k[t])})),C[On]=v),g&&n&&(C.credentials="include"),o&&(C.keepalive=!0,f+=w,n?2===t._sendReason&&(_=!0,p&&(u+=of)):_=!0);var A=new Request(u,C);try{A[ef]=!0}catch(t){}if(!o&&e&&(a=Zh((function(t,e){l=t,c=e}))),!u)return m(r),void(l&&l(!1));function E(t){y(r,n?0:400,{},n?rf:t)}function S(t,e,o){var n=t[yn],s=i.fetchOnComplete;s&&Ne(s)?s(t,r,o||rf,e):y(r,n,{},o||rf)}try{ih(fetch(n?u:A,n?C:null),(function(e){if(o&&(f-=w,w=0),!x)if(x=!0,e.rejected)E(e.reason&&e.reason[on]),c&&c(e.reason);else{var r=e.value;try{n||r.ok?n&&!r.body?(S(r,null,rf),l&&l(!0)):ih(r.text(),(function(e){S(r,t,e.value),l&&l(!0)})):(E(r.statusText),l&&l(!1))}catch(t){E(kr(t)),c&&c(t)}}}))}catch(t){x||(E(kr(t)),c&&c(t))}return _&&!x&&(x=!0,y(r,200,{}),l&&l(!0)),n&&!x&&t[In]>0&&h&&h.set((function(){x||(x=!0,y(r,500,{}),l&&l(!0))}),t[In]),a}function C(t,e,r){var s=fr(),a=new XDomainRequest,l=t[kn];a.onload=function(){var r=Ii(a),o=i&&i.xdrOnComplete;o&&Ne(o)?o(a,e,t):y(e,200,{},r)},a.onerror=function(){y(e,400,{},n?rf:Pi(a))},a.ontimeout=function(){y(e,500,{})},a.onprogress=function(){};var c=s&&s.location&&s.location[dn]||"",u=t[$n];if(u){if(!n&&0!==u.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return La(o,2,40,". "+d),void v(d,e)}var p=n?u:u[bn](/^(https?:)/,"");a.open(nf,p),t[In]&&(a[In]=t[In]),a.send(l),n&&r?h&&h.set((function(){a.send(l)}),0):a.send(l)}else m(e)}function A(){f=0,r=!1,e=!1,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,h=null}A(),t[jo]=function(e,n){o=n,r&&La(o,1,28,"Sender is already initialized"),t.SetConfig(e),r=!0},t._getDbgPlgTargets=function(){return[r,n,s,e]},t.SetConfig=function(t){try{if(i=t.senderOnCompleteCallBack||{},s=!!t.disableCredentials,n=!!t.isOneDs,e=!!t.enableSendPromise,l=!!t.disableXhr,c=!!t.disableBeacon,u=!!t.disableBeaconSync,h=t.timeWrapper,p=!!t.addNoResponse,d=!!t.disableFetchKeepAlive,a={sendPOST:x},n||(g=!1),s){var r=Zi();r&&r.protocol&&"file:"===r.protocol[_o]()&&(g=!1)}return!0}catch(t){}return!1},t.getSyncFetchPayload=function(){return f},t.getSenderInst=function(t,e){return t&&t[ko]?function(t,e){for(var r,o=0,n=null,i=0;null==n&&i<t[ko];)o=t[i],l||1!==o?2!==o||!is(e)||e&&d?3!==o||!ns()||(e?u:c)||(n=_):n=k:(null===Ji&&(Ji=typeof XDomainRequest!==po)&&ss()&&(Ji=Ji&&!Yi(ur(Wi),"withCredentials")),Ji?n=C:ss()&&(n=x)),i++;return n?((r={_transport:o,_isSync:e})[Tn]=n,r):null}(t,e):null},t.getFallbackInst=function(){return a},t[an]=function(t,e){A()}}))}return t.__ieDyn=1,t}(),af=Nn(he);function lf(t,e){if(t&&t[Jo])return t[Jo](e)}function cf(t,e,r){var o;return r||(o=Zh((function(t){r=t}))),t&&af(t)>0?ih(lf(t[0],e),(function(){cf(Rh(t,1),e,r)})):r(),o}function uf(t,e){try{if(t&&""!==t){var r=es().parse(t);if(r&&r[Sn]&&r[Sn]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[ko])return r}}catch(r){La(e,1,43,"Cannot parse the response. "+(r[Fo]||kr(r)),{response:t})}return null}function df(t){var e="ai."+t+".";return function(t){return e+t}}var pf,hf=df("application"),ff=df("device"),bf=df("location"),gf=df("operation"),vf=df("session"),mf=df("user"),yf=df("cloud"),wf=df("internal"),_f=function(t){function e(){return t.call(this)||this}return yo(e,t),e}((pf={applicationVersion:hf("ver"),applicationBuild:hf("build"),applicationTypeId:hf("typeId"),applicationId:hf("applicationId"),applicationLayer:hf("layer"),deviceId:ff("id"),deviceIp:ff("ip"),deviceLanguage:ff("language"),deviceLocale:ff("locale"),deviceModel:ff("model"),deviceFriendlyName:ff("friendlyName"),deviceNetwork:ff("network"),deviceNetworkName:ff("networkName"),deviceOEMName:ff("oemName"),deviceOS:ff("os"),deviceOSVersion:ff("osVersion"),deviceRoleInstance:ff("roleInstance"),deviceRoleName:ff("roleName"),deviceScreenResolution:ff("screenResolution"),deviceType:ff("type"),deviceMachineName:ff("machineName"),deviceVMName:ff("vmName"),deviceBrowser:ff("browser"),deviceBrowserVersion:ff("browserVersion"),locationIp:bf("ip"),locationCountry:bf("country"),locationProvince:bf("province"),locationCity:bf("city"),operationId:gf("id"),operationName:gf("name"),operationParentId:gf("parentId"),operationRootId:gf("rootId"),operationSyntheticSource:gf("syntheticSource"),operationCorrelationVector:gf("correlationVector"),sessionId:vf("id"),sessionIsFirst:vf("isFirst"),sessionIsNew:vf("isNew"),userAccountAcquisitionDate:mf("accountAcquisitionDate"),userAccountId:mf("accountId"),userAgent:mf("userAgent"),userId:mf("id"),userStoreRegion:mf("storeRegion"),userAuthUserId:mf("authUserId"),userAnonymousUserAcquisitionDate:mf("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:mf("authUserAcquisitionDate"),cloudName:yf("name"),cloudRole:yf("role"),cloudRoleVer:yf("roleVer"),cloudRoleInstance:yf("roleInstance"),cloudEnvironment:yf("environment"),cloudLocation:yf("location"),cloudDeploymentUnit:yf("deploymentUnit"),internalNodeName:wf("nodeName"),internalSdkVersion:wf("sdkVersion"),internalAgentVersion:wf("agentVersion"),internalSnippet:wf("snippet"),internalSdkSrc:wf("sdkSrc")},function(){var t=this;pf&&Je(pf,(function(e,r){t[e]=r}))})),xf="user",kf="device",Cf="trace",Af=new _f,Ef=function(t,e,r){var o=this,n=this;n.ver=1,n.sampleRate=100,n.tags={},n[Wa]=Zl(t,r)||Fl,n.data=e,n.time=_i(new Date),n.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===o.sampleRate?4:1},tags:1,data:1}},Sf=function(t,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=e},$f="duration",Tf="tags",Of="deviceType",If="data",Pf="name",Rf="traceID",Mf="length",Lf="stringify",jf="measurements",Df="dataType",Nf="envelopeType",zf="toString",Hf="_get",qf="enqueue",Uf="count",Bf="eventsLimitInMem",Ff="push",Vf="emitLineDelimitedJson",Wf="clear",Kf="createNew",Xf="markAsSent",Gf="clearSent",Jf="bufferOverride",Qf="BUFFER_KEY",Yf="SENT_BUFFER_KEY",Zf="MAX_BUFFER_SIZE",tb="triggerSend",eb="diagLog",rb="initialize",ob="_sender",nb="customHeaders",ib="maxBatchSizeInBytes",sb="onunloadDisableBeacon",ab="isBeaconApiDisabled",lb="alwaysUseXhrOverride",cb="disableXhr",ub="enableSessionStorageBuffer",db="_buffer",pb="onunloadDisableFetch",hb="disableSendBeaconSplit",fb="instrumentationKey",bb="enableSendPromise",gb="getSenderInst",vb="unloadTransports",mb="convertUndefined",yb="maxBatchInterval",wb="serialize",_b="_onError",xb="_onPartialSuccess",kb="_onSuccess",Cb="itemsAccepted",Ab="oriPayload",Eb="baseType",Sb="sampleRate",$b="eventsSendRequest",Tb="getSamplingScore",Ob="baseType",Ib="baseData",Pb="properties",Rb="true";function Mb(t,e,r){return ki(t,e,r,We)}function Lb(t,e,r){Le(t)||Je(t,(function(t,o){Ue(o)?r[t]=o:De(o)?e[t]=o:ts()&&(e[t]=es()[Lf](o))}))}function jb(t,e){Le(t)||Je(t,(function(r,o){t[r]=o||e}))}function Db(t,e,r,o){var n=new Ef(t,o,e);Mb(n,"sampleRate",r[zl]),(r[Ib]||{}).startTime&&(n.time=_i(r[Ib].startTime)),n.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return n[Pf]=n[Pf].replace("{0}",i),function(t,e,r){var o=r[Tf]=r[Tf]||{},n=e.ext=e.ext||{},i=e[Tf]=e[Tf]||[],s=n.user;s&&(Mb(o,Af.userAuthUserId,s.authId),Mb(o,Af.userId,s.id||s.localId));var a=n.app;a&&Mb(o,Af.sessionId,a.sesId);var l=n.device;l&&(Mb(o,Af.deviceId,l.id||l.localId),Mb(o,Af[Of],l.deviceClass),Mb(o,Af.deviceIp,l.ip),Mb(o,Af.deviceModel,l.model),Mb(o,Af[Of],l[Of]));var c=e.ext.web;if(c){Mb(o,Af.deviceLanguage,c.browserLang),Mb(o,Af.deviceBrowserVersion,c.browserVer),Mb(o,Af.deviceBrowser,c.browser);var u=r[If]=r[If]||{},d=u[Ib]=u[Ib]||{},p=d[Pb]=d[Pb]||{};Mb(p,"domain",c.domain),Mb(p,"isManual",c.isManual?Rb:null),Mb(p,"screenRes",c.screenRes),Mb(p,"userConsent",c.userConsent?Rb:null)}var h=n.os;h&&Mb(o,Af.deviceOS,h[Pf]);var f=n.trace;f&&(Mb(o,Af.operationParentId,f.parentID),Mb(o,Af.operationName,Zl(t,f[Pf])),Mb(o,Af.operationId,f[Rf]));for(var b={},g=i[Mf]-1;g>=0;g--)Je(i[g],(function(t,e){b[t]=e})),i.splice(g,1);Je(i,(function(t,e){b[t]=e}));var v=vo(vo({},o),b);v[Af.internalSdkVersion]||(v[Af.internalSdkVersion]=Zl(t,"javascript:".concat(zb.Version),64)),r[Tf]=$i(v)}(t,r,n),r[Tf]=r[Tf]||[],$i(n)}function Nb(t,e){Le(e[Ib])&&La(t,1,46,"telemetryItem.baseData cannot be null.")}var zb={Version:"3.1.2"};function Hb(t,e,r){Nb(t,e);var o={},n={};e[Ob]!==ac[Df]&&(o.baseTypeSource=e[Ob]),e[Ob]===ac[Df]?(o=e[Ib][Pb]||{},n=e[Ib][jf]||{}):e[Ib]&&Lb(e[Ib],o,n),Lb(e[If],o,n),Le(r)||jb(o,r);var i=e[Ib][Pf],s=new ac(t,i,o,n),a=new Sf(ac[Df],s);return Db(t,ac[Nf],e,a)}var qb,Ub,Bb=function(){function t(e,r){var o=[],n=!1;this[Hf]=function(){return o},this._set=function(t){return o=t},ro(t,this,(function(t){t[qf]=function(i){t[Uf]()>=r[Bf]?n||(La(e,2,105,"Maximum in-memory buffer size reached: "+t[Uf](),!0),n=!0):o[Ff](i)},t[Uf]=function(){return o[Mf]},t.size=function(){for(var t=o[Mf],e=0;e<o[Mf];e++)t+=o[e][Mf];return r[Vf]||(t+=2),t},t[Wf]=function(){o=[],n=!1},t.getItems=function(){return o.slice(0)},t.batchPayloads=function(t){return t&&t[Mf]>0?r[Vf]?t.join("\n"):"["+t.join(",")+"]":null},t[Kf]=function(t,r,n){var i=o.slice(0);t=t||e,r=r||{};var s=n?new Vb(t,r):new Fb(t,r);return Bn(i,(function(t){s[qf](t)})),s}}))}return t.__ieDyn=1,t}(),Fb=function(t){function e(r,o){var n=t.call(this,r,o)||this;return ro(e,n,(function(t,e){t[Xf]=function(t){e[Wf]()},t[Gf]=function(t){}})),n}return yo(e,t),e.__ieDyn=1,e}(Bb),Vb=function(t){function e(r,o){var n=t.call(this,r,o)||this,i=!1,s=null==o?void 0:o.namePrefix,a=o[Jf]||{getItem:Rl,setItem:Ml},l=a.getItem,c=a.setItem;return ro(e,n,(function(t,o){var n=p(e[Qf]),a=p(e[Yf]),u=t._set(n.concat(a));function d(t,e){var r=[];return Bn(e,(function(e){Ne(e)||-1!==Ss(t,e)||r[Ff](e)})),r}function p(t){var e=t;try{var o=l(r,e=s?s+"_"+e:e);if(o){var n=es().parse(o);if(De(n)&&(n=es().parse(n)),n&&He(n))return n}}catch(t){La(r,1,42," storage key: "+e+", "+xi(t),{exception:kr(t)})}return[]}function h(t,e){var o=t;try{o=s?s+"_"+o:o;var n=JSON[Lf](e);c(r,o,n)}catch(t){c(r,o,JSON[Lf]([])),La(r,2,41," storage key: "+o+", "+xi(t)+". Buffer cleared",{exception:kr(t)})}}u[Mf]>e[Zf]&&(u[Mf]=e[Zf]),h(e[Yf],[]),h(e[Qf],u),t[qf]=function(n){t[Uf]()>=e[Zf]?i||(La(r,2,67,"Maximum buffer size reached: "+t[Uf](),!0),i=!0):(o[qf](n),h(e.BUFFER_KEY,t[Hf]()))},t[Wf]=function(){o[Wf](),h(e.BUFFER_KEY,t[Hf]()),h(e[Yf],[]),i=!1},t[Xf]=function(o){h(e[Qf],t._set(d(o,t[Hf]())));var n=p(e[Yf]);n instanceof Array&&o instanceof Array&&((n=n.concat(o))[Mf]>e[Zf]&&(La(r,1,67,"Sent buffer reached its maximum size: "+n[Mf],!0),n[Mf]=e[Zf]),h(e[Yf],n))},t[Gf]=function(t){var r=p(e[Yf]);r=d(t,r),h(e[Yf],r)},t[Kf]=function(o,n,i){i=!!i;var s=t[Hf]().slice(0),a=p(e[Yf]).slice(0);o=o||r,n=n||{},t[Wf]();var l=i?new e(o,n):new Fb(o,n);return Bn(s,(function(t){l[qf](t)})),i&&l[Xf](a),l}})),n}return yo(e,t),e.BUFFER_KEY="AI_buffer",e.SENT_BUFFER_KEY="AI_sentBuffer",e.MAX_BUFFER_SIZE=2e3,e}(Bb),Wb=function(){function t(e){ro(t,this,(function(t){function r(t,i){var s="__aiCircularRefCheck",a={};if(!t)return La(e,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),a;if(t[s])return La(e,2,50,"Circular reference detected while serializing object",{name:i},!0),a;if(!t.aiDataContract){if("measurements"===i)a=n(t,"number",i);else if("properties"===i)a=n(t,"string",i);else if("tags"===i)a=n(t,"string",i);else if(He(t))a=o(t,i);else{La(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{es()[Lf](t),a=t}catch(t){La(e,1,48,t&&Ne(t[zf])?t[zf]():"Error serializing object",null,!0)}}return a}return t[s]=!0,Je(t.aiDataContract,(function(n,s){var l=Ne(s)?1&s():1&s,c=Ne(s)?4&s():4&s,u=2&s,d=void 0!==t[n],p=ze(t[n])&&null!==t[n];if(!l||d||u){if(!c){var h;void 0!==(h=p?u?o(t[n],n):r(t[n],n):t[n])&&(a[n]=h)}}else La(e,1,24,"Missing required field specification. The field is required but not present on source",{field:n,name:i})})),delete t[s],a}function o(t,o){var n;if(t)if(He(t)){n=[];for(var i=0;i<t[Mf];i++){var s=r(t[i],o+"["+i+"]");n[Ff](s)}}else La(e,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:o},!0);return n}function n(t,r,o){var n;return t&&(n={},Je(t,(function(t,i){if("string"===r)void 0===i?n[t]="undefined":null===i?n[t]="null":i[zf]?n[t]=i[zf]():n[t]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)n[t]="undefined";else if(null===i)n[t]="null";else{var s=parseFloat(i);n[t]=s}else n[t]="invalid field: "+o+" is of unknown type.",La(e,1,n[t],null,!0)}))),n}t[wb]=function(t){var o=r(t,"root");try{return es()[Lf](o)}catch(t){La(e,1,48,t&&Ne(t[zf])?t[zf]():"Error serializing object",null,!0)}}}))}return t.__ieDyn=1,t}(),Kb=function(){function t(){}return t.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/t.INT_MAX_VALUE*100},t.prototype.getHashCode=function(t){if(""===t)return 0;for(;t[Mf]<8;)t=t.concat(t);for(var e=5381,r=0;r<t[Mf];++r)e=(e<<5)+e+t.charCodeAt(r),e|=0;return Math.abs(e)},t.INT_MAX_VALUE=2147483647,t}(),Xb=function(){var t=new Kb,e=new _f;this[Tb]=function(r){return r[Tf]&&r[Tf][e.userId]?t.getHashCodeScore(r[Tf][e.userId]):r.ext&&r.ext.user&&r.ext.user.id?t.getHashCodeScore(r.ext.user.id):r[Tf]&&r[Tf][e.operationId]?t.getHashCodeScore(r[Tf][e.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[Rf]?t.getHashCodeScore(r.ext.telemetryTrace[Rf]):100*Math.random()}},Gb=function(){function t(t,e){this.INT_MAX_VALUE=2147483647;var r=e||Pa(null);(t>100||t<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[Sb]=t,this.samplingScoreGenerator=new Xb}return t.prototype.isSampledIn=function(t){var e=this[Sb];return null==e||e>=100||t.baseType===uc[Df]||this.samplingScoreGenerator[Tb](t)<e},t}(),Jb=void 0;function Qb(t){try{return t.responseText}catch(t){}return null}var Yb=so(((qb={endpointUrl:cu(We,Ul+Bl)})[Vf]=uu(),qb[yb]=15e3,qb[ib]=102400,qb.disableTelemetry=uu(),qb[ub]=uu(!0),qb.isRetryDisabled=uu(),qb[ab]=uu(!0),qb[hb]=uu(!0),qb[cb]=uu(),qb[pb]=uu(),qb[sb]=uu(),qb[fb]=Jb,qb.namePrefix=Jb,qb.samplingPercentage=cu((function(t){return!isNaN(t)&&t>0&&t<=100}),100),qb[nb]=Jb,qb[mb]=Jb,qb[Bf]=1e4,qb[Jf]=!1,qb.httpXHROverride={isVal:function(t){return t&&t.sendPOST},v:Jb},qb[lb]=uu(),qb.transports=Jb,qb.retryCodes=Jb,qb)),Zb=((Ub={})[ac.dataType]=Hb,Ub[lc.dataType]=function(t,e,r){Nb(t,e);var o=e[Ib].message,n=e[Ib].severityLevel,i=e[Ib][Pb]||{},s=e[Ib][jf]||{};Lb(e[If],i,s),Le(r)||jb(i,r);var a=new lc(t,o,n,i,s),l=new Sf(lc[Df],a);return Db(t,lc[Nf],e,l)},Ub[hc.dataType]=function(t,e,r){var o;Nb(t,e);var n=e[Ib];Le(n)||Le(n[Pb])||Le(n[Pb][$f])?Le(e[If])||Le(e[If][$f])||(o=e[If][$f],delete e[If][$f]):(o=n[Pb][$f],delete n[Pb][$f]);var i,s=e[Ib];((e.ext||{}).trace||{})[Rf]&&(i=e.ext.trace[Rf]);var a=s.id||i,l=s[Pf],c=s.uri,u=s[Pb]||{},d=s[jf]||{};Le(s.refUri)||(u.refUri=s.refUri),Le(s.pageType)||(u.pageType=s.pageType),Le(s.isLoggedIn)||(u.isLoggedIn=s.isLoggedIn[zf]()),Le(s[Pb])||Je(s[Pb],(function(t,e){u[t]=e})),Lb(e[If],u,d),Le(r)||jb(u,r);var p=new hc(t,l,c,o,u,d,a),h=new Sf(hc[Df],p);return Db(t,hc[Nf],e,h)},Ub[fc.dataType]=function(t,e,r){Nb(t,e);var o=e[Ib],n=o[Pf],i=o.uri||o.url,s=o[Pb]||{},a=o[jf]||{};Lb(e[If],s,a),Le(r)||jb(s,r);var l=new fc(t,n,i,void 0,s,a,o),c=new Sf(fc[Df],l);return Db(t,fc[Nf],e,c)},Ub[Oc.dataType]=function(t,e,r){Nb(t,e);var o=e[Ib][jf]||{},n=e[Ib][Pb]||{};Lb(e[If],n,o),Le(r)||jb(n,r);var i=e[Ib],s=Oc.CreateFromInterface(t,i,n,o),a=new Sf(Oc[Df],s);return Db(t,Oc[Nf],e,a)},Ub[uc.dataType]=function(t,e,r){Nb(t,e);var o=e[Ib],n=o[Pb]||{},i=o[jf]||{};Lb(e[If],n,i),Le(r)||jb(n,r);var s=new uc(t,o[Pf],o.average,o.sampleCount,o.min,o.max,o.stdDev,n,i),a=new Sf(uc[Df],s);return Db(t,uc[Nf],e,a)},Ub[nu.dataType]=function(t,e,r){Nb(t,e);var o=e[Ib][jf]||{},n=e[Ib][Pb]||{};Lb(e[If],n,o),Le(r)||jb(n,r);var i=e[Ib];if(Le(i))return ja(t,"Invalid input for dependency data"),null;var s=i[Pb]&&i[Pb][ql]?i[Pb][ql]:"GET",a=new nu(t,i.id,i.target,i[Pf],i[$f],i.success,i.responseCode,s,i.type,i.correlationContext,n,o),l=new Sf(nu[Df],a);return Db(t,nu[Nf],e,l)},Ub),tg=function(t){function e(){var r,o,n,i,s,a,l,c=t.call(this)||this;c.priority=1001,c.identifier=jl;var u,d,p,h,f,b,g,v,m,y,w,_,x,k,C,A,E,S,$,T,O,I,P,R,M,L,j,D=0;return ro(e,c,(function(t,N){function z(e,o){var n=Qb(e);if(!e||n+""!="200"&&""!==n){var i=uf(n);i&&i.itemsReceived&&i.itemsReceived>i[Cb]&&!k?t[xb](o,i):t[_b](o,Pi(e))}else r=0,t[kb](o,0)}function H(t,e,r){4===t.readyState&&Q(t.status,e,t.responseURL,r,Ri(t),Qb(t)||t.response)}function q(t){try{if(t){var e=t[Ab];return e&&e[Mf]?e:null}}catch(t){}return null}function U(e,r){return!(w||(e?e.baseData&&!e[Eb]?(r&&La(r,1,70,"Cannot send telemetry without baseData and baseType"),1):(e[Eb]||(e[Eb]="EventData"),t[ob]?(o=e,t._sample.isSampledIn(o)?(e[zl]=t._sample[Sb],0):(r&&La(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:t._sample[Sb]}),1)):(r&&La(r,1,28,"Sender was not initialized"),1)):(r&&La(r,1,7,"Cannot send empty telemetry"),1)));var o}function B(t,r){var o=t.iKey||_,n=e.constructEnvelope(t,o,r,x);if(n){var i=!1;if(t[Tf]&&t[Tf][Hl]&&(Bn(t[Tf][Hl],(function(t){try{t&&!1===t(n)&&(i=!0,ja(r,"Telemetry processor check returns false"))}catch(t){La(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+xi(t),{exception:kr(t)},!0)}})),delete t[Tf][Hl]),!i)return n}else La(r,1,47,"Unable to create an AppInsights envelope")}function F(e){var r="",o=t[eb]();try{var n=U(e,o),i=null;n&&(i=B(e,o)),i&&(r=s[wb](i))}catch(t){}return r}function V(t){var e="";return t&&t[Mf]&&(e="["+t.join(",")+"]"),e}function W(t){var e,r=G();return(e={urlString:h})[If]=t,e.headers=r,e}function K(e,r,o,n){void 0===n&&(n=!0);var i=X(r),s=e&&e.sendPOST;return s&&i?(n&&t._buffer[Xf](r),s(i,(function(e,o,n){return function(e,r,o,n){200===r&&e?t._onSuccess(e,e[Mf]):n&&t[_b](e,n)}(r,e,0,n)}),!o)):null}function X(e){var r;if(He(e)&&e[Mf]>0){var o=t[db].batchPayloads(e),n=G();return(r={})[If]=o,r.urlString=h,r.headers=n,r.disableXhrSync=O,r.disableFetchKeepAlive=!I,r[Ab]=e,r}return null}function G(){try{var t=l||{};return Yc(h)&&(t[Fc[6]]=Fc[7]),t}catch(t){}return null}function J(e){var r=e?e[Mf]:0;return t[db].size()+r>b&&(d&&!d.isOnline()||t[tb](!0,null,10),!0)}function Q(e,o,n,i,s,a){var l=null;if(t._appId||(l=uf(a))&&l.appId&&(t._appId=l.appId),(e<200||e>=300)&&0!==e){if((301===e||307===e||308===e)&&!Y(n))return void t[_b](o,s);!k&&nt(e)?(et(o),La(t[eb](),2,40,". Response code "+e+". Will retry to send "+o[Mf]+" items.")):t[_b](o,s)}else d&&!d.isOnline()?k||(et(o,10),La(t[eb](),2,40,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(o.length," items."))):(Y(n),206===e?(l||(l=uf(a)),l&&!k?t[xb](o,l):t[_b](o,s)):(r=0,t[kb](o,i)))}function Y(t){return!(a>=10||Le(t)||""===t||t===h||(h=t,++a,0))}function Z(t,e){if(!u)return K(L&&L[gb]([3],!0),t,e);u(t,!1)}function tt(e,r){var o=null;if(He(e)){for(var n=e[Mf],i=0;i<e[Mf];i++)n+=e[i][Mf];return L.getSyncFetchPayload()+n<=65e3?o=2:ns()?o=3:(o=1,La(t[eb](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),K(L&&L[gb]([o],!0),e,r)}return null}function et(e,n){if(void 0===n&&(n=1),e&&0!==e[Mf]){var i=t[db];i[Gf](e),r++;for(var s=0,a=e;s<a.length;s++){var l=a[s];i[qf](l)}!function(t){var e;if(r<=1)e=10;else{var n=(Math.pow(2,r)-1)/2,i=Math.floor(Math.random()*n*10)+1;i*=t,e=Math.max(Math.min(i,3600),10)}var s=Ni()+1e3*e;o=s}(n),rt()}}function rt(){if(!i&&!n){var e=o?Math.max(0,o-Ni()):0,r=Math.max(C,e);i=da((function(){i=null,t[tb](!0,null,1)}),r)}}function ot(){i&&i.cancel(),i=null,o=null}function nt(t){return Le(j)?401===t||408===t||429===t||500===t||502===t||503===t||504===t:j[Mf]&&j.indexOf(t)>-1}function it(){t[ob]=null,t[db]=null,t._appId=null,t._sample=null,l={},d=null,r=0,o=null,n=!1,i=null,s=null,a=0,D=0,u=null,p=null,h=null,f=null,b=0,g=!1,y=null,w=!1,_=null,x=Jb,k=!1,A=null,S=Jb,O=!1,I=!1,M=!1,P=null,R=null,L=null,er(t,"_senderConfig",{g:function(){return Ti({},Yb)}})}it(),t.pause=function(){ot(),n=!0},t.resume=function(){n&&(n=!1,o=null,J(),rt())},t.flush=function(e,r,o){if(void 0===e&&(e=!0),!n){ot();try{return t[tb](e,null,o||1)}catch(e){La(t[eb](),1,22,"flush failed, telemetry will not be collected: "+xi(e),{exception:kr(e)})}}},t.onunloadFlush=function(){if(!n)if(g||T)try{return t[tb](!0,Z,2)}catch(e){La(t[eb](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+xi(e),{exception:kr(e)})}else t.flush(!1)},t.addHeader=function(t,e){l[t]=e},t[rb]=function(e,n,i,D){t.isInitialized()&&La(t[eb](),1,28,"Sender is already initialized"),N[rb](e,n,i,D);var U=t.identifier;s=new Wb(n.logger),r=0,o=null,t[ob]=null,a=0;var B=t[eb]();p=ld(_s("Sender"),n.evtNamespace&&n.evtNamespace()),d=function(t){var e=pr(),r=br(),o=!1,n=[],i=1;!r||Le(r.onLine)||r.onLine||(i=2);var s=0,a=d(),l=ld(_s("OfflineListener"),t);try{if(u(fr())&&(o=!0),e){var c=e.body||e;c.ononline&&u(c)&&(o=!0)}}catch(t){o=!1}function u(t){var e=!1;return t&&(e=cd(t,"online",h,l))&&cd(t,"offline",f,l),e}function d(){return 2!==s&&2!==i}function p(){var t=d();a!==t&&(a=t,Bn(n,(function(t){var e={isOnline:a,rState:i,uState:s};try{t(e)}catch(t){}})))}function h(){i=1,p()}function f(){i=2,p()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var t=fr();if(t&&o){if(Ph(t,l),e){var r=e.body||e;Me(r.ononline)||Ph(r,l)}o=!1}},addListener:function(t){return n[Fa](t),{rm:function(){var e=n.indexOf(t);return e>-1?n.splice(e,1):void 0}}},setOnlineState:function(t){s=t,p()}}}(p),t._addHook(ya(e,(function(e){var r=e.cfg;r.storagePrefix&&$l(r.storagePrefix);var o=Od(null,r,n).getExtCfg(U,Yb);er(t,"_senderConfig",{g:function(){return o}}),f!==o.endpointUrl&&(h=f=o.endpointUrl),y&&y!==o[nb]&&Bn(y,(function(t){delete l[t.header]})),b=o[ib],g=(!1===o[sb]||!1===o[ab])&&ns(),v=!1===o[sb]&&ns(),m=!1===o[ab]&&ns(),T=o[lb],O=!!o[cb],j=o.retryCodes;var i=o[Jf],s=!!o[ub]&&(!!i||Pl()),a=o.namePrefix,d=s!==A||s&&S!==a||s&&E!==i;if(t[db]){if(d)try{t._buffer=t._buffer[Kf](B,o,s)}catch(e){La(t[eb](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+xi(e),{exception:kr(e)})}J()}else t[db]=s?new Vb(B,o):new Fb(B,o);S=a,A=s,E=i,I=!o[pb]&&is(!0),M=!!o[hb],t._sample=new Gb(o.samplingPercentage,B),function(t,e){var r=e.disableInstrumentationKeyValidation;return!(Le(r)||!r)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(t)}(_=o[fb],r)||La(B,1,100,"Invalid Instrumentation key "+_),y=o[nb],!Yc(h)&&y&&y[Mf]>0?Bn(y,(function(t){c.addHeader(t.header,t.value)})):y=null,$=o[bb];var p=function(){var e;try{var r={xdrOnComplete:function(t,e,r){var o=q(r);if(o)return z(t,o)},fetchOnComplete:function(t,e,r,o){var n=q(o);if(n)return Q(t.status,n,t.url,n[Mf],t.statusText,r||"")},xhrOnComplete:function(t,e,r){var o=q(r);if(o)return H(t,o,o[Mf])},beaconOnRetry:function(e,r,o){return function(e,r,o){var n=e&&e[Ab];if(M)R&&R(n,!0),La(t[eb](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],s=0;s<n[Mf];s++){var a=n[s],l=[a];o(X(l),r)?t._onSuccess(l,l[Mf]):i[Ff](a)}i[Mf]>0&&(R&&R(i,!0),La(t[eb](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(e,r,o)}};return(e={})[bb]=$,e.isOneDs=!1,e.disableCredentials=!1,e[cb]=O,e.disableBeacon=!m,e.disableBeaconSync=!v,e.senderOnCompleteCallBack=r,e}catch(t){}return null}();L?L.SetConfig(p):(L=new sf)[rb](p,B);var D=o.httpXHROverride,N=null,F=null,V=Mi([3,1,2],o.transports);N=L&&L[gb](V,!1);var W=L&&L.getFallbackInst();P=function(t,e){return K(W,t,e)},R=function(t,e){return K(W,t,e,!1)},N=T?D:N||D||W,t[ob]=function(t,e){return K(N,t,e)},I&&(u=tt);var G=Mi([3,1],o[vb]);I||(G=G.filter((function(t){return 2!==t}))),F=L&&L[gb](G,!0),F=T?D:F||D,(T||o[vb]||!u)&&F&&(u=function(t,e){return K(F,t,e)}),u||(u=P),w=o.disableTelemetry,x=o[mb]||Jb,k=o.isRetryDisabled,C=o[yb]})))},t.processTelemetry=function(e,r){var o=(r=t._getTelCtx(r))[eb]();try{if(!U(e,o))return;var n=B(e,o);if(!n)return;var i=s[wb](n),a=t[db];J(i),a[qf](i),rt()}catch(t){La(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+xi(t),{exception:kr(t)})}t.processNext(e,r)},t.isCompletelyIdle=function(){return!n&&0===D&&0===t._buffer[Uf]()},t._xhrReadyStateChange=function(t,e,r){return H(t,e,r)},t[tb]=function(e,r,o){var i;if(void 0===e&&(e=!0),!n)try{var s=t[db];if(w)s[Wf]();else{if(s[Uf]()>0){var a=s.getItems();!function(e,r){var o,n=(o="getNotifyMgr",t.core[o]?t.core[o]():t.core._notificationManager);if(n&&n[$b])try{n[$b](e,r)}catch(e){La(t[eb](),1,74,"send request notification failed: "+xi(e),{exception:kr(e)})}}(o||0,e),i=r?r.call(t,a,e):t[ob](a,e)}new Date}ot()}catch(e){var l=os();(!l||l>9)&&La(t[eb](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+xi(e),{exception:kr(e)})}return i},t.getOfflineSupport=function(){var t;return(t={getUrl:function(){return h},createPayload:W})[wb]=F,t.batch=V,t.shouldProcess=function(t){return!!U(t)},t},t._doTeardown=function(e,r){t.onunloadFlush(),lf(d,!1),it()},t[_b]=function(e,r,o){La(t[eb](),2,26,"Failed to send telemetry.",{message:r}),t._buffer&&t._buffer[Gf](e)},t[xb]=function(e,r){for(var o=[],n=[],i=0,s=r.errors.reverse();i<s.length;i++){var a=s[i],l=e.splice(a.index,1)[0];nt(a.statusCode)?n[Ff](l):o[Ff](l)}e[Mf]>0&&t[kb](e,r[Cb]),o[Mf]>0&&t[_b](o,Ri(null,["partial success",r[Cb],"of",r.itemsReceived].join(" "))),n[Mf]>0&&(et(n),La(t[eb](),2,40,"Partial success. Delivered: "+e[Mf]+", Failed: "+o[Mf]+". Will retry to send "+n[Mf]+" our of "+r.itemsReceived+" items"))},t[kb]=function(e,r){t._buffer&&t._buffer[Gf](e)},t._xdrOnLoad=function(t,e){return z(t,e)}})),c}return yo(e,t),e.constructEnvelope=function(t,e,r,o){var n;return n=e===t.iKey||Le(e)?t:vo(vo({},t),{iKey:e}),(Zb[n.baseType]||Hb)(r,n,o)},e}(Qd),eg=jn("reduce",ke);var rg=function(t,e){var r,o,n,i,s,a,l,c=this,u=!1,d=!1;function p(t,e,n,i){if(u){var a=function(t){try{var e=h(t);return(1e6>0?Math.floor(bs()/ls*1000001)>>>0:0)<=e.limit.samplingRate}catch(t){}return!1}(t);if(!a)return;var l=h(t),c=_(t),d=b(l,r,c),p=!1,f=0,v=x(t);try{d&&!v?(f=Math.min(l.limit.maxSendNumber,c[Xa]+1),c[Xa]=0,p=!0,s[t]=!0,c[Ga]=new Date):(s[t]=d,c[Xa]+=1);var y=g(t);m(o,y,c);for(var C=0;C<f;C++)w(t,o,e,n)}catch(t){}return{isThrottled:p,throttleNum:f}}return i&&k(t)[Fa]({msgID:t,message:e,severity:n}),null}function h(t){return n[t]||n[109]}function f(t,e){var r,o,i,s,a;try{var l=e||{},c={};c[Ja]=!!l[Ja];var u=l[Qa]||{};d=(null==u?void 0:u.daysOfMonth)&&(null==u?void 0:u.daysOfMonth[Ha])>0,c[Qa]=(s=null===(i=(i=u)||{})||void 0===i?void 0:i.monthInterval,a=null==i?void 0:i.dayInterval,Le(s)&&Le(a)&&(i.monthInterval=3,d||(i[Ya]=[28],d=!0)),i={monthInterval:null==i?void 0:i.monthInterval,dayInterval:null==i?void 0:i.dayInterval,daysOfMonth:null==i?void 0:i.daysOfMonth});var p={samplingRate:(null===(r=l.limit)||void 0===r?void 0:r.samplingRate)||100,maxSendNumber:(null===(o=l.limit)||void 0===o?void 0:o.maxSendNumber)||1};c.limit=p,n[t]=c}catch(t){}}function b(t,e,r){if(t&&!t[Ja]&&e&&mi(r)){var o=v(),n=r[Za],i=t[Qa],s=1;if(null==i?void 0:i.monthInterval){var a=12*(o.getUTCFullYear()-n.getUTCFullYear())+o.getUTCMonth()-n.getUTCMonth();s=y(i.monthInterval,0,a)}var l=1;if(d)l=Ss(i[Ya],o[tl]());else if(null==i?void 0:i.dayInterval){var c=Math.floor((o.getTime()-n.getTime())/864e5);l=y(i.dayInterval,0,c)}return s>=0&&l>=0}return!1}function g(t,e){var r=mi(e)?e:"";return t?"appInsightsThrottle"+r+"-"+t:null}function v(t){try{if(!t)return new Date;var e=new Date(t);if(!isNaN(e.getDate()))return e}catch(t){}return null}function m(t,e,r){try{return Il(t,e,Wn(JSON[el](r)))}catch(t){}return!1}function y(t,e,r){return t<=0?1:r>=e&&(r-e)%t==0?Math.floor((r-e)/t)+1:-1}function w(t,e,r,o){La(e,o||1,t,r)}function _(t){try{var e=i[t];if(!e){var r=g(t,a);e=function(t,e,r){try{var o={date:v(),count:0};if(t){var n=JSON.parse(t);return{date:v(n[Za])||o[Za],count:n[Xa]||o[Xa],preTriggerDate:n.preTriggerDate?v(n[Ga]):void 0}}return m(e,r,o),o}catch(t){}return null}(Ol(o,r),o,r),i[t]=e}return i[t]}catch(t){}return null}function x(t){var e=s[t];if(Le(e)){e=!1;var r=_(t);r&&(e=function(t){try{if(t){var e=new Date;return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t[tl]()===e[tl]()}}catch(t){}return!1}(r[Ga])),s[t]=e}return s[t]}function k(t){return Le((l=l||{})[t])&&(l[t]=[]),l[t]}o=Pa(t),s={},i={},l={},n={},f(109),a=mi(e)?e:"",t.addUnloadHook(ya(t.config,(function(t){var e=t.cfg;r=Tl(),Je(e.throttleMgrCfg||{},(function(t,e){f(parseInt(t),e)}))}))),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return n},c.canThrottle=function(t){var e=_(t);return b(h(t),r,e)},c.isTriggered=function(t){return x(t)},c.isReady=function(){return u},c.flush=function(t){try{var e=k(t);if(e&&e[Ha]>0){var r=e.slice(0);return l[t]=[],Bn(r,(function(t){p(t.msgID,t[Ka],t.severity,!1)})),!0}}catch(t){}return!1},c.flushAll=function(){try{if(l){var t=!0;return Je(l,(function(e){var r=c.flush(parseInt(e));t=t&&r})),t}}catch(t){}return!1},c.onReadyState=function(t,e){return void 0===e&&(e=!0),(u=!!Le(t)||t)&&e?c.flushAll():null},c.sendMessage=function(t,e,r){return p(t,e,r,!0)}},og={perfEvtsSendAll:!1};function ng(t){t.h=null;var e=t.cb;t.cb=[],Bn(e,(function(t){Ae(t.fn,[t.arg])}))}function ig(t,e,r,o){Bn(t,(function(t){t&&t[e]&&(r?(r.cb[Po]({fn:o,arg:t}),r.h=r.h||da(ng,0,r)):Ae(o,[t]))}))}var sg,ag=function(){function t(e){var r,o;this.listeners=[];var n=[],i={h:null,cb:[]},s=ma(e,og);o=s[To]((function(t){r=!!t.cfg.perfEvtsSendAll})),ro(t,this,(function(t){er(t,"listeners",{g:function(){return n}}),t[zo]=function(t){n[Po](t)},t[No]=function(t){for(var e=Ss(n,t);e>-1;)n[Ro](e,1),e=Ss(n,t)},t[oi]=function(t){ig(n,oi,i,(function(e){e[oi](t)}))},t[ni]=function(t,e){ig(n,ni,i,(function(r){r[ni](t,e)}))},t[ii]=function(t,e){ig(n,ii,e?i:null,(function(r){r[ii](t,e)}))},t[si]=function(t){t&&(!r&&t[xn]()||ig(n,si,null,(function(e){t[nn]?da((function(){return e[si](t)}),0):e[si](t)})))},t[ai]=function(t){t&&t[ko]&&ig(n,ai,i,(function(e){e[ai](t)}))},t[li]=function(t){t&&t[kn]&&ig(n,li,i,(function(e){e[li](t)}))},t[ci]=function(t,e){if(t>0){var r=e||0;ig(n,ci,i,(function(e){e[ci](t,r)}))}},t[Jo]=function(t){var e,r=function(){o&&o.rm(),o=null,n=[],i.h&&i.h[Lo](),i.h=null,i.cb=[]};if(ig(n,"unload",null,(function(r){var o=r[Jo](t);o&&(e||(e=[]),e[Po](o))})),e)return Zh((function(t){return ih(tf(e),(function(){r(),t()}))}));r()}}))}return t.__ieDyn=1,t}(),lg=function(t){function e(){var r,o,n=t.call(this)||this;function i(){r=0,o=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,i(),ro(e,n,(function(t,e){t.addTelemetryInitializer=function(t){return function(t,e,r){var o={id:e,fn:r};return Kd(t,o),{remove:function(){Bn(t,(function(e,r){if(e.id===o.id)return t[Ro](r,1),-1}))}}}(o,r++,t)},t[ei]=function(e,r){(function(t,e,r){for(var o=!1,n=t[ko],i=0;i<n;++i){var s=t[i];if(s)try{if(!1===s.fn[Io](null,[e])){o=!0;break}}catch(t){La(r,2,64,"Telemetry initializer failed: "+xi(t),{exception:kr(t)},!0)}}return!o})(o,e,r?r[sn]():t[sn]())&&t[Wo](e,r)},t[an]=function(){i()}})),n}return yo(e,t),e.__ieDyn=1,e}(Qd),cg="Plugins must provide initialize method",ug="SDK is still unloading...",dg=so(((sg={cookieCfg:{}})[ti]={rdOnly:!0,ref:!0,v:[]},sg[Gn]={rdOnly:!0,ref:!0,v:[]},sg[Zn]={ref:!0,v:{}},sg[Qn]=Kn,sg.loggingLevelConsole=0,sg.diagnosticLogInterval=Kn,sg));function pg(t,e){return new md(e)}function hg(t,e){var r=!1;return Bn(e,(function(e){if(e===t)return r=!0,-1})),r}function fg(t,e,r,o){r&&Je(r,(function(r,n){o&&Fn(n)&&Fn(e[r])&&fg(t,e[r],n,o),o&&Fn(n)&&Fn(e[r])?fg(t,e[r],n,o):t.set(e,r,n)}))}function bg(t,e){var r=null,o=-1;return Bn(t,(function(t,n){if(t.w===e)return r=t,o=n,-1})),{i:o,l:r}}function gg(t,e,r,o){return e.add(t[To]((function(t){var e=t.cfg.disableDbgExt;!0===e&&o&&(r[No](o),o=null),r&&!o&&!0!==e&&(o=function(t){if(!wa){wa={};for(var e=0;e<xa[ko];e++)wa[xa[e]]=Ca(xa[e],t)}return wa}(t.cfg),r[zo](o))}))),o}var vg=function(){function t(){var e,r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m,y,w,_,x,k,C,A,E,S,$;ro(t,this,(function(t){function T(t){return E&&E[Xo]||$||(t||o&&o.queue[ko]>0)&&(S||(S=!0,U(e[To]((function(t){var e=t.cfg.diagnosticLogInterval;e&&e>0||(e=1e4);var r=!1;E&&(r=E[Xo],E[Lo]()),E=function(t,e){return ua(!1,re,Ce[be](arguments))}(D,e),E.unref(),E[Xo]=r})))),E[Xo]=!0),E}function O(){var t={};C=[];var e=function(e){e&&Bn(e,(function(e){if(e[Do]&&e[Yo]&&!t[e.identifier]){var r=e[Do]+"="+e[Yo];C[Po](r),t[e.identifier]=e}}))};e(p),d&&Bn(d,(function(t){e(t)})),e(u)}function I(){r=!1,(e=ma({},dg,t[Oo])).cfg[Zo]=1,er(t,"config",{g:function(){return e.cfg},s:function(e){t.updateCfg(e,!1)}}),er(t,"pluginVersionStringArr",{g:function(){return C||O(),C}}),er(t,"pluginVersionString",{g:function(){return A||(C||O(),A=C.join(";")),A||Xn}}),er(t,"logger",{g:function(){return o||(o=new Ra(e.cfg),e[Oo]=o),o},s:function(t){e[Oo]=t,o!==t&&(lf(o,!1),o=t)}}),t[Oo]=new Ra(e.cfg),k=[];var y=t.config[ti]||[];y.splice(0,y[ko]),Kd(y,k),f=new lg,n=[],lf(i,!1),i=null,s=null,a=null,lf(l,!1),l=null,c=null,u=[],d=null,p=null,h=!1,b=null,g=_s("AIBaseCore",!0),v=Fd(),w=null,_=null,m=Xd(),x=[],A=null,C=null,$=!1,E=null,S=!1}function P(){var r=Od(L(),e.cfg,t);return r[Qo](T),r}function R(e){var r=function(t,e,r){var o,n=[],i=[],s={};return Bn(r,(function(e){(Le(e)||Le(e[jo]))&&yr(cg);var r=e[ri],o=e[Do];e&&r&&(Le(s[r])?s[r]=o:ja(t,"Two extensions have same priority #"+r+" - "+s[r]+", "+o)),!r||r<500?n[Po](e):i[Po](e)})),(o={})[Jn]=n,o[Gn]=i,o}(t[Oo],0,u);c=null,A=null,C=null,p=Cd(Kd(p=(d||[])[0]||[],r[Gn]));var o=Kd(Cd(r[Jn]),p);k=ao(o);var n=t.config[ti]||[];n.splice(0,n[ko]),Kd(n,k);var i=P();p&&p[ko]>0&&kd(i[tn](p),o),kd(i,o),e&&z(e)}function M(t){var e=null,r=null,o=[];return Bn(k,(function(e){if(e[Do]===t&&e!==f)return r=e,-1;e.getChannel&&o[Po](e)})),!r&&o[ko]>0&&Bn(o,(function(e){if(!(r=e.getChannel(t)))return-1})),r&&(e={plugin:r,setEnabled:function(t){xd(r)[Yn]=!t},isEnabled:function(){var t=xd(r);return!t[en]&&!t[Yn]},remove:function(t,e){var o;void 0===t&&(t=!0);var n=[r],i=((o={reason:1})[nn]=t,o);j(n,i,(function(t){t&&R({reason:32,removed:n}),e&&e(t)}))}}),e}function L(){if(!c){var r=(k||[]).slice();-1===Ss(r,f)&&r[Po](f),c=Rd(Cd(r),e.cfg,t)}return c}function j(r,o,n){if(r&&r[ko]>0){var i=Id(Rd(r,e.cfg,t),t);i[Qo]((function(){var t=!1,e=[];Bn(u,(function(o,n){hg(o,r)?t=!0:e[Po](o)})),u=e,A=null,C=null;var o=[];d&&(Bn(d,(function(e,n){var i=[];Bn(e,(function(e){hg(e,r)?t=!0:i[Po](e)})),o[Po](i)})),d=o),n&&n(t),T()})),i[Wo](o)}else n(!1)}function D(){if(o&&o.queue){var e=o.queue.slice(0);o.queue[ko]=0,Bn(e,(function(e){var r,o=((r={})[Fo]=b||"InternalMessageId: "+e[rn],r.iKey=_,r[Vo]=_i(new Date),r.baseType=Ia.dataType,r.baseData={message:e[on]},r);t.track(o)}))}}function N(t,e,r,o){var n=1,i=!1,s=null;function a(){n--,i&&0===n&&(s&&s[Lo](),s=null,e&&e(i),e=null)}return o=o||5e3,p&&p[ko]>0&&P()[tn](p).iterate((function(e){if(e.flush){n++;var i=!1;e.flush(t,(function(){i=!0,a()}),r)||i||(t&&null==s?s=da((function(){s=null,a()}),o):a())}})),i=!0,a(),!0}function z(e){var r=Pd(L(),t);r[Qo](T),t._updateHook&&!0===t._updateHook(r,e)||r[Wo](e)}function H(e){var r=t[Oo];r?(La(r,2,73,e),T()):yr(e)}function q(e){var r=t[qo]();r&&r[ni]([e],2)}function U(t){m.add(t)}I(),t._getDbgPlgTargets=function(){return[k]},t[Ho]=function(){return r},t[jo]=function(n,l,c,f){var b;h&&yr(ug),t[Ho]()&&yr("Core cannot be initialized more than once"),n=(e=ma(n,dg,c||t[Oo],!1)).cfg,U(e[To]((function(t){_=t.cfg.instrumentationKey;var e=t.ref(t.cfg,Zn);Je(e,(function(r){t.ref(e,r)})),Le(_)&&yr("Please provide instrumentation key")}))),y=gg(e,m,(i=f)&&t[qo](),y),U(e[To]((function(e){if(e.cfg.enablePerfMgr){var r=e.cfg[Qn];b!==r&&(r||(r=pg),Ci(e.cfg,Qn,r),b=r,a=null),s||a||!Ne(r)||(a=r(t,t[qo]()))}else a=null,b=null}))),t[Oo]=c;var g=n[ti];if((u=[])[Po].apply(u,wo(wo([],l),g)),d=n[Gn],R(null),p&&0!==p[ko]||yr("No "+Gn+" available"),d&&d[ko]>1){var v=t[Uo]("TeeChannelController");v&&v.plugin||La(o,1,28,"TeeChannel required")}!function(t,e,r){Bn(e,(function(e){var o=ya(t,e.w,r);delete e.w,e.rm=function(){o.rm()}}))}(n,x,o),x=null,r=!0,t.releaseQueue(),t[Bo]()},t.getChannels=function(){var t=[];return p&&Bn(p,(function(e){t[Po](e)})),ao(t)},t.track=function(e){wd(t[ui](),(function(){return"AppInsightsCore:track"}),(function(){null===e&&(q(e),yr("Invalid telemetry item")),!e[Fo]&&Le(e[Fo])&&(q(e),yr("telemetry name required")),e.iKey=e.iKey||_,e[Vo]=e[Vo]||_i(new Date),e.ver=e.ver||"4.0",!h&&t[Ho]()?P()[Wo](e):n[Po](e)}),(function(){return{item:e}}),!e.sync)},t[Ko]=P,t[qo]=function(){return i||(i=new ag(e.cfg),t._notificationManager=i),i},t[zo]=function(e){t.getNotifyMgr()[zo](e)},t[No]=function(t){i&&i[No](t)},t.getCookieMgr=function(){return l||(l=Mu(e.cfg,t[Oo])),l},t.setCookieMgr=function(t){l!==t&&(lf(l,!1),l=t)},t[ui]=function(){return s||a||null},t.setPerfMgr=function(t){s=t},t.eventCnt=function(){return n[ko]},t.releaseQueue=function(){if(r&&n[ko]>0){var t=n;n=[],Bn(t,(function(t){P()[Wo](t)}))}},t[Bo]=function(t){return b=t||null,$=!1,E&&E[Lo](),T(!0)},t[Go]=function(){$=!0,E&&E[Lo](),D()},Si(t,(function(){return f}),["addTelemetryInitializer"]),t[Jo]=function(e,n,s){var a;void 0===e&&(e=!0),r||yr("SDK is not initialized"),h&&yr(ug);var c,u=((a={reason:50})[nn]=e,a.flushComplete=!1,a);e&&!n&&(c=Zh((function(t){n=t})));var d=Id(L(),t);function p(e){u.flushComplete=e,h=!0,v.run(d,u),t[Go](),d[Wo](u)}return d[Qo]((function(){m.run(t[Oo]),cf([l,i,o],e,(function(){I(),n&&n(u)}))}),t),D(),N(e,p,6,s)||p(!1),c},t[Uo]=M,t.addPlugin=function(t,e,r,o){if(!t)return o&&o(!1),void H(cg);var n=M(t[Do]);if(n&&!e)return o&&o(!1),void H("Plugin ["+t[Do]+"] is already loaded!");var i={reason:16};function s(e){u[Po](t),i.added=[t],R(i),o&&o(!0)}if(n){var a=[n.plugin];j(a,{reason:2,isAsync:!!r},(function(t){t?(i.removed=a,i.reason|=32,s()):o&&o(!1)}))}else s()},t.updateCfg=function(r,o){var n;if(void 0===o&&(o=!0),t[Ho]()){n={reason:1,cfg:e.cfg,oldCfg:hh({},e.cfg),newConfig:hh({},r),merge:o},r=n.newConfig;var i=e.cfg;r[ti]=i[ti],r[Gn]=i[Gn]}e._block((function(t){var e=t.cfg;fg(t,e,r,o),o||Je(e,(function(o){Ge(r,o)||t.set(e,o,Kn)})),t[$o](e,dg)}),!0),e[Ao](),n&&z(n)},t.evtNamespace=function(){return g},t.flush=N,t.getTraceCtx=function(t){return w||(e={},w={getName:function(){return e[Fo]},setName:function(t){e[Fo]=t},getTraceId:function(){return e[Rn]},setTraceId:function(t){qc(t)&&(e[Rn]=t)},getSpanId:function(){return e[Mn]},setSpanId:function(t){Uc(t)&&(e[Mn]=t)},getTraceFlags:function(){return e[Ln]},setTraceFlags:function(t){e[Ln]=t}}),w;var e},t.setTraceCtx=function(t){w=t||null},t.addUnloadHook=U,Ei(t,"addUnloadCb",(function(){return v}),"add"),t.onCfgChange=function(o){var n,i,s,a;return r?n=ya(e.cfg,o,t[Oo]):((a=bg(i=x,s=o).l)||(a={w:s,rm:function(){var t=bg(i,s);-1!==t.i&&i[Ro](t.i,1)}},i[Po](a)),n=a),function(t){return er({rm:function(){t.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(t)+">"}})}(n)},t.getWParam=function(){return dr()||e.cfg.enableWParam?0:-1}}))}return t.__ieDyn=1,t}(),mg="duration",yg="properties",wg="requestUrl",_g="inst",xg="length",kg="traceID",Cg="spanID",Ag="traceFlags",Eg="context",Sg="aborted",$g="traceId",Tg="spanId",Og="_addHook",Ig="core",Pg="includeCorrelationHeaders",Rg="getAbsoluteUrl",Mg="headers",Lg="requestHeaders",jg="setRequestHeader",Dg="trackDependencyDataInternal",Ng="startTime",zg="toLowerCase",Hg="enableRequestHeaderTracking",qg="enableAjaxErrorStatusText",Ug="enableAjaxPerfTracking",Bg="maxAjaxCallsPerView",Fg="excludeRequestFromAutoTrackingPatterns",Vg="addRequestContext",Wg="disableAjaxTracking",Kg="ajaxPerfLookupDelay",Xg="disableFetchTracking",Gg="enableResponseHeaderTracking",Jg="status",Qg="statusText",Yg="headerMap",Zg="openDone",tv="sendDone",ev="requestSentTime",rv="abortDone",ov="getTraceId",nv="getTraceFlags",iv="method",sv="errorStatusText",av="stateChangeAttached",lv="responseText",cv="responseFinishedTime",uv="CreateTrackItem",dv="response",pv="getAllResponseHeaders",hv="getPartAProps",fv="perfMark",bv="name",gv="perfTiming",vv="exception",mv="ajaxDiagnosticsMessage",yv="correlationContext",wv="ajaxTotalDuration",_v="eventTraceCtx";function xv(t,e,r){var o=0,n=t[e],i=t[r];return n&&i&&(o=ru(n,i)),o}function kv(t,e,r,o,n){var i=0,s=xv(r,o,n);return s&&(i=Cv(t,e,pc(s))),i}function Cv(t,e,r){var o="ajaxPerf",n=0;return t&&e&&r&&((t[o]=t[o]||{})[e]=r,n=1),n}var Av,Ev=function(){var t=this;t[Zg]=!1,t.setRequestHeaderDone=!1,t[tv]=!1,t[rv]=!1,t[av]=!1},Sv=function(){function t(e,r,o,n){var i,s=this,a=o;s[fv]=null,s.completed=!1,s.requestHeadersSize=null,s[Lg]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[wv]=null,s[Sg]=0,s.pageUrl=null,s[wg]=null,s.requestSize=0,s[iv]=null,s[Jg]=null,s[ev]=null,s.responseStartedTime=null,s[cv]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new Ev,s.clientFailure=0,s[kg]=e,s[Cg]=r,s[Ag]=null==n?void 0:n.getTraceFlags(),s[_v]=n?((i={})[$g]=n[ov](),i[Tg]=n.getSpanId(),i[Ag]=n[nv](),i):null,ro(t,s,(function(t){t.getAbsoluteUrl=function(){return t[wg]?function(t){var e,r=Xc(t);return r&&(e=r.href),e}(t[wg]):null},t.getPathName=function(){return t[wg]?tc(a,(e=t[iv],r=t[wg],e?e.toUpperCase()+" "+r:r)):null;var e,r},t[uv]=function(e,r,o){var n;if(t.ajaxTotalDuration=Math.round(1e3*ru(t.requestSentTime,t.responseFinishedTime))/1e3,t[wv]<0)return null;var i=((n={id:"|"+t[kg]+"."+t[Cg],target:t[Rg]()})[bv]=t.getPathName(),n.type=e,n[Ng]=null,n.duration=t[wv],n.success=+t[Jg]>=200&&+t[Jg]<400,n.responseCode=+t[Jg],n[yg]={HttpMethod:t[iv]},n),s=i[yg];if(t[Sg]&&(s[Sg]=!0),t[ev]&&(i[Ng]=new Date,i[Ng].setTime(t[ev])),function(t,e){var r=t[gv],o=e[yg]||{},n=0,i="name",s="Start",a="End",l="domainLookup",c="connect",u="redirect",d="request",p="response",h="startTime",f=l+s,b=l+a,g=c+s,v=c+a,m=d+s,y=d+a,w=p+s,_=p+a,x=u+s,k=u=a,C="transferSize",A="encodedBodySize",E="decodedBodySize",S="serverTiming";if(r){n|=kv(o,u,r,x,k),n|=kv(o,l,r,f,b),n|=kv(o,c,r,g,v),n|=kv(o,d,r,m,y),n|=kv(o,p,r,w,_),n|=kv(o,"networkConnect",r,h,v),n|=kv(o,"sentRequest",r,m,_);var $=r[mg];$||($=xv(r,h,_)||0),n|=Cv(o,mg,$),n|=Cv(o,"perfTotal",$);var T=r[S];if(T){var O={};Bn(T,(function(t,e){var r=yi(t[i]||""+e),o=O[r]||{};Je(t,(function(t,e){(t!==i&&De(e)||Ue(e))&&(o[t]&&(e=o[t]+";"+e),!e&&De(e)||(o[t]=e))})),O[r]=o})),n|=Cv(o,S,O)}n|=Cv(o,C,r[C]),n|=Cv(o,A,r[A]),n|=Cv(o,E,r[E])}else t[fv]&&(n|=Cv(o,"missing",t.perfAttempts));n&&(e[yg]=o)}(t,i),r&&io(t.requestHeaders)[xg]>0&&(s[Lg]=t[Lg]),o){var a=o();if(a){var l=a[yv];if(l&&(i.correlationContext=l),a[Yg]&&io(a.headerMap)[xg]>0&&(s.responseHeaders=a[Yg]),t[sv])if(t[Jg]>=400){var c=a.type;""!==c&&"text"!==c||(s.responseText=a.responseText?a[Qg]+" - "+a.responseText:a[Qg]),"json"===c&&(s.responseText=a.response?a[Qg]+" - "+JSON.stringify(a[dv]):a[Qg])}else 0===t[Jg]&&(s.responseText=a[Qg]||"")}}return i},t[hv]=function(){var e,r=null,o=t[_v];if(o&&(o[$g]||o[Tg])){var n=(r={})[Cf]=((e={})[kg]=o[$g],e.parentID=o[Tg],e);Le(o[Ag])||(n[Ag]=o[Ag])}return r}}))}return t.__ieDyn=1,t}(),$v="ai.ajxmn.",Tv="diagLog",Ov="_ajaxData",Iv="fetch",Pv="Failed to monitor XMLHttpRequest",Rv=", monitoring data for this ajax call ",Mv=Rv+"may be incorrect.",Lv=Rv+"won't be sent.",jv="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Dv="Failed to add custom defined request context as configured call back may missing a null check.",Nv="Failed to calculate the duration of the ",zv=0,Hv=function(t,e){return t&&e&&t[Ov]?(t[Ov].i||{})[e]:null},qv=function(t,e){var r=!1;if(t){var o=(t[Ov]||{}).xh;o&&Bn(o,(function(t){if(t.n===e)return r=!0,-1}))}return r};function Uv(t,e){var r="";try{var o=Hv(t,e);o&&o[wg]&&(r+="(url: '"+o[wg]+"')")}catch(t){}return r}function Bv(t,e,r,o,n){La(t[Tv](),1,e,r,o,n)}function Fv(t,e,r,o,n){La(t[Tv](),2,e,r,o,n)}function Vv(t,e,r){return function(o){var n;Bv(t,e,r,((n={ajaxDiagnosticsMessage:Uv(o[_g],t._ajaxDataId)})[vv]=kr(o.err),n))}}function Wv(t,e){return t&&e?Un(t,e):-1}function Kv(t,e,r){var o={id:e,fn:r};return t.push(o),{remove:function(){Bn(t,(function(e,r){if(e.id===o.id)return t.splice(r,1),-1}))}}}function Xv(t,e,r,o){var n=!0;return Bn(e,(function(e,i){try{!1===e.fn.call(null,r)&&(n=!1)}catch(e){La(t&&t.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+xi(e),{exception:kr(e)},!0)}})),n}var Gv="*.blob.core.",Jv=ao([Gv+"windows.net",Gv+"chinacloudapi.cn",Gv+"cloudapi.de",Gv+"usgovcloudapi.net"]),Qv=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],Yv=ao(((Av={})[Bg]=500,Av[Wg]=!1,Av[Xg]=!1,Av[Fg]=void 0,Av.disableCorrelationHeaders=!1,Av.distributedTracingMode=1,Av.correlationHeaderExcludedDomains=Jv,Av.correlationHeaderDomains=void 0,Av.correlationHeaderExcludePatterns=void 0,Av.appId=void 0,Av.enableCorsCorrelation=!1,Av[Hg]=!1,Av[Gg]=!1,Av[qg]=!1,Av[Ug]=!1,Av.maxAjaxPerfLookupAttempts=3,Av[Kg]=25,Av.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Av[Vg]=void 0,Av.addIntEndpoints=!0,Av)),Zv=function(t){function e(){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g,v,m,y,w,_,x,k,C,A,E,S,$,T,O,I,P=t.call(this)||this;return P.identifier=e.identifier,P.priority=120,ro(e,P,(function(t,P){var R=P[Og];function M(){var e=Zi();r=!1,o=!1,I=!1,n=e&&e.host&&e.host[zg](),i=null,s=!1,a=!1,l=0,c=null,u=!1,d=!1,p=null,h=!1,f=0,b=!1,g={},v=!1,m=!1,y=null,w=null,_=null,k=0,C=[],A=[],x=_s("ajaxData"),t._ajaxDataId=x,E=null,S=1,$=1,T=1,O=null}function L(t){var e=!0;return(t||E)&&Bn(E,(function(r){if(r[zg]()===t[zg]())return e=!1,-1})),e}function j(t,e,r){R(function(t,e,r){return t?Ud(t[ho],e,r,!1):null}(t,e,r))}function D(t,e,r){var o=!1,n=((De(e)?e:(e||{}).url||"")||"")[zg]();if(Bn(y,(function(t){var e=t;De(t)&&(e=new RegExp(t)),o||(o=e.test(n))})),o)return o;var i=Wv(n,"?"),s=Wv(n,"#");return(-1===i||-1!==s&&s<i)&&(i=s),-1!==i&&(n=n.substring(0,i)),Le(t)?Le(e)||(o="object"==typeof e&&!0===e[Nl]||!!r&&!0===r[Nl]):o=!0===t[Nl]||!0===n[Nl],!o&&n&&Yc(n)&&(o=!0),o?g[n]||(g[n]=1):g[n]&&(o=!0),o}function N(t,e,r){var n=!0,i=o;return Le(t)||(n=!0===r||!Le(e)),i&&n}function z(){var e=null;return t[Ig]&&t[Ig].getTraceCtx&&(e=t[Ig].getTraceCtx(!1)),!e&&c&&c.telemetryTrace&&(e=ou(c.telemetryTrace)),e}function H(t,e){if(e[wg]&&p&&h){var r=Rc();if(r&&Ne(r.mark)){zv++;var o=p+t+"#"+zv;r.mark(o);var n=r.getEntriesByName(o);n&&1===n[xg]&&(e[fv]=n[0])}}}function q(t,e,r,o){var n=e[fv],i=Rc(),s=S,a=$,l=e[wg],c=0;!function u(){try{if(i&&n){c++;for(var d=null,p=i.getEntries(),h=p[xg]-1;h>=0;h--){var f=p[h];if(f){if("resource"===f.entryType)f.initiatorType!==t||-1===Wv(f[bv],l)&&-1===Wv(l,f[bv])||(d=f);else if("mark"===f.entryType&&f[bv]===n[bv]){e[gv]=d;break}if(f[Ng]<n[Ng]-1e3)break}}}!n||e[gv]||c>=s||!1===e.async?(n&&Ne(i.clearMarks)&&i.clearMarks(n[bv]),e.perfAttempts=c,r()):da(u,a)}catch(t){o(t)}}()}function U(e){var r="";try{Le(e)||(r+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(e){Bv(t,15,"Failed to grab failed fetch diagnostics message",{exception:kr(e)})}return r}function B(e,r,o,n,i,a,l){function c(e,r,n){var i=n||{};i.fetchDiagnosticsMessage=U(o),r&&(i.exception=kr(r)),Fv(t,e,Nv+"fetch call"+Lv,i)}i&&(i[cv]=eu(),i[Jg]=r,q(Iv,i,(function(){var e,l=i[uv]("Fetch",s,a);try{w&&(e=w({status:r,request:o,response:n}))}catch(e){Fv(t,104,Dv)}if(l){void 0!==e&&(l[yg]=vo(vo({},l.properties),e));var u=i[hv]();F(A,t[Ig],i,l,null,u)}else c(14,null,{requestSentTime:i[ev],responseFinishedTime:i[cv]})}),(function(t){c(18,t,null)})))}function F(e,r,o,n,i,s){var a,l=!0;e[xg]>0&&(l=Xv(r,e,((a={item:n})[yg]=i,a.sysProperties=s,a.context=o?o[Eg]:null,a.aborted=!!o&&!!o[Sg],a),"initializer")),l&&t[Dg](n,i,s)}M(),t.initialize=function(n,l,g,k){var C;t.isInitialized()||(P.initialize(n,l,g,k),_=ld(_s("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){t[Og](ya(r,(function(r){var o=r.cfg,n=Od(null,o,t[Ig]);if(i=n.getExtCfg(e.identifier,Yv),T=i.distributedTracingMode,s=i[Hg],a=i[qg],h=i[Ug],f=i[Bg],y=[].concat(i[Fg]||[],!1!==i.addIntEndpoints?Qv:[]),w=i[Vg],d=0===T||1===T,u=1===T||2===T,h){var l=o.instrumentationKey||"unkwn";p=l[xg]>5?$v+Xl(l,l[xg]-5)+".":$v+l+"."}v=!!i[Wg],S=i.maxAjaxPerfLookupAttempts,$=i[Kg],E=i.ignoreHeaders,O=i.appId})))}(n),function(t,e){var r,o,n=!1;if(ss()){var i=XMLHttpRequest[ho];n=!(Le(i)||Le(i.open)||Le(i.send)||Le(i.abort))}var s=os();if(s&&s<9&&(n=!1),n)try{var a=new XMLHttpRequest,l={xh:[],i:(r={},r[e]={},r)};a[Ov]=l;var c=XMLHttpRequest[ho].open;XMLHttpRequest[ho].open=c}catch(e){n=!1,Bv(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((o={})[vv]=kr(e),o))}return n}(t,x)&&t[Og](ya(i,(function(){v=!!i[Wg],s=i[Hg],v||o||(j(XMLHttpRequest,"open",{ns:_,req:function(e,r,o,n){if(!v){var i=e[_g],l=Hv(i,x);!D(i,o)&&N(i,l,!0)&&(l&&l.xhrMonitoringState[Zg]||(l=function(e,r,o,n){var i,s=z(),l=s&&s[ov]()||Mc(),c=Gl(Mc(),0,16),u=e[Ov]=e[Ov]||{xh:[],i:{}},d=u.i=u.i||{},p=d[x]=d[x]||new Sv(l,c,t[Tv](),null===(i=t.core)||void 0===i?void 0:i.getTraceCtx());return p[Ag]=s&&s[nv](),p[iv]=r,p[wg]=o,p.xhrMonitoringState[Zg]=!0,p[Lg]={},p.async=n,p[sv]=a,p}(i,r,o,n)),function(e,r){r.xhrMonitoringState[av]=cd(e,"readystatechange",(function(){var o;try{e&&4===e.readyState&&N(e,r)&&function(e){var r=Hv(e,x);function o(r,o){var n=o||{};n.ajaxDiagnosticsMessage=Uv(e,x),r&&(n.exception=kr(r)),Fv(t,14,Nv+"ajax call"+Lv,n)}r[cv]=eu(),r[Jg]=e[Jg],q("xmlhttprequest",r,(function(){try{var n=r[uv]("Ajax",s,(function(){var r,o=((r={statusText:e[Qg]})[Yg]=null,r[yv]=function(e){var r;try{var o=e[pv]();if(null!==o&&-1!==Wv(o[zg](),Fc[8]))return tu(e.getResponseHeader(Fc[0]))}catch(o){Fv(t,18,jv,((r={})[mv]=Uv(e,x),r[vv]=kr(o),r))}}(e),r.type=e.responseType,r[lv]=function(t){try{var e=t.responseType;if(""===e||"text"===e)return t[lv]}catch(t){}return null}(e),r.response=e[dv],r);if(b){var n=e[pv]();if(n){var i=Wn(n).split(/[\r\n]+/),s={};Bn(i,(function(t){var e=t.split(": "),r=e.shift(),o=e.join(": ");L(r)&&(s[r]=o)})),o[Yg]=s}}return o})),i=void 0;try{w&&(i=w({status:e[Jg],xhr:e}))}catch(e){Fv(t,104,Dv)}if(n){void 0!==i&&(n[yg]=vo(vo({},n.properties),i));var a=r[hv]();F(A,t[Ig],r,n,null,a)}else o(null,{requestSentTime:r[ev],responseFinishedTime:r[cv]})}finally{try{var l=(e[Ov]||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(t){}}}),(function(t){o(t,null)}))}(e)}catch(r){var n=kr(r);n&&-1!==Wv(n[zg](),"c00c023f")||Bv(t,16,Pv+" 'readystatechange' event handler"+Mv,((o={})[mv]=Uv(e,x),o[vv]=n,o))}}),_)}(i,l))}},hkErr:Vv(t,15,Pv+".open"+Mv)}),j(XMLHttpRequest,"send",{ns:_,req:function(e,r){if(!v){var o=e[_g],n=Hv(o,x);N(o,n)&&!n.xhrMonitoringState[tv]&&(H("xhr",n),n[ev]=eu(),t[Pg](n,void 0,void 0,o),n.xhrMonitoringState[tv]=!0)}},hkErr:Vv(t,17,Pv+Mv)}),j(XMLHttpRequest,"abort",{ns:_,req:function(t){if(!v){var e=t[_g],r=Hv(e,x);N(e,r)&&!r.xhrMonitoringState[rv]&&(r[Sg]=1,r.xhrMonitoringState[rv]=!0)}},hkErr:Vv(t,13,Pv+".abort"+Mv)}),j(XMLHttpRequest,"setRequestHeader",{ns:_,req:function(t,e,r){if(!v){var o=t[_g],n=Hv(o,x);n&&N(o,n)&&(function(t,e,r){if(t){var o=(t[Ov]||{}).xh;o&&o.push({n:e,v:r})}}(o,e,r),s&&L(e)&&n&&(n[Lg][e]=r))}},hkErr:Vv(t,71,Pv+".setRequestHeader"+Mv)}),o=!0)}))),function(){var e,n=!(e=cr())||Le(e.Request)||Le(e.Request[ho])||Le(e[Iv])?null:e[Iv];if(n){var l=cr(),c=n.polyfill;t[Og](ya(i,(function(){m=!!i[Xg],b=i[Gg],m||r?c&&!I&&(R(Ud(l,Iv,{ns:_,req:function(t,e,r){D(null,e,r)}})),I=!0):(R(Ud(l,Iv,{ns:_,req:function(e,n,i){var l;if(!m&&r&&!D(null,n,i)&&(!c||!o)){var u=e.ctx();l=function(e,r){var o,n,i=z(),l=i&&i[ov]()||Mc(),c=Gl(Mc(),0,16),u=new Sv(l,c,t[Tv](),null===(o=t.core)||void 0===o?void 0:o.getTraceCtx());if(u[Ag]=i&&i[nv](),u[ev]=eu(),u[sv]=a,""===(n=e instanceof Request?(e||{}).url||"":e)){var d=Zi();d&&d.href&&(n=fh(d.href,"#")[0])}u[wg]=n;var p="GET";r&&r[iv]?p=r[iv]:e&&e instanceof Request&&(p=e[iv]),u[iv]=p;var h={};return s&&new Headers((r?r[Mg]:0)||e instanceof Request&&e[Mg]||{}).forEach((function(t,e){L(e)&&(h[e]=t)})),u[Lg]=h,H(Iv,u),u}(n,i);var d=t[Pg](l,n,i);d!==i&&e.set(1,d),u.data=l}},rsp:function(e,r){if(!m){var o=e.ctx().data;o&&(e.rslt=e.rslt.then((function(e){return B(0,(e||{})[Jg],r,e,o,(function(){var r,o=((r={statusText:(e||{})[Qg]})[Yg]=null,r[yv]=function(e){var r;if(e&&e[Mg])try{return tu(e[Mg].get(Fc[0]))}catch(o){Fv(t,18,jv,((r={fetchDiagnosticsMessage:U(e)})[vv]=kr(o),r))}}(e),r);if(b&&e){var n={};e.headers.forEach((function(t,e){L(e)&&(n[e]=t)})),o[Yg]=n}return o})),e})).catch((function(t){throw B(0,0,r,null,o,null,t.message||kr(t)),t})))}},hkErr:Vv(t,15,"Failed to monitor Window.fetch"+Mv)},!0,mr())),r=!0)}))),c&&(l[Iv].polyfill=c)}}(),(C=t[Ig].getPlugin(Ll))&&(c=C.plugin[Eg]))},t._doTeardown=function(){M()},t.trackDependencyData=function(e,r){F(A,t[Ig],null,e,r)},t[Pg]=function(e,r,o,a){var l=t._currentWindowHost||n;if(function(t,e,r,o,n,i){var s;if(t[xg]>0){var a=((s={})[Ig]=e,s.xhr=o,s.input=n,s.init=i,s.traceId=r[kg],s.spanId=r[Cg],s.traceFlags=r[Ag],s.context=r[Eg]||{},s.aborted=!!r[Sg],s);Xv(e,t,a,"listener"),r[kg]=a[$g],r[Cg]=a[Tg],r[Ag]=a[Ag],r[Eg]=a[Eg]}}(C,t[Ig],e,a,r,o),r||""===r){if(Zc(i,e[Rg](),l)){o||(o={});var p=new Headers(o[Mg]||r instanceof Request&&r[Mg]||{});if(d){var h="|"+e[kg]+"."+e[Cg];p.set(Fc[3],h),s&&(e[Lg][Fc[3]]=h)}if((b=O||c&&c.appId())&&(p.set(Fc[0],Fc[2]+b),s&&(e[Lg][Fc[0]]=Fc[2]+b)),u){Le(g=e[Ag])&&(g=1);var f=Bc(Hc(e[kg],e[Cg],g));p.set(Fc[4],f),s&&(e[Lg][Fc[4]]=f)}o[Mg]=p}return o}if(a){var b,g;if(Zc(i,e[Rg](),l))d&&(qv(a,Fc[3])?Fv(t,71,"Unable to set ["+Fc[3]+"] as it has already been set by another instance"):(h="|"+e[kg]+"."+e[Cg],a[jg](Fc[3],h),s&&(e[Lg][Fc[3]]=h))),(b=O||c&&c.appId())&&(qv(a,Fc[0])?Fv(t,71,"Unable to set ["+Fc[0]+"] as it has already been set by another instance"):(a[jg](Fc[0],Fc[2]+b),s&&(e[Lg][Fc[0]]=Fc[2]+b))),u&&(Le(g=e[Ag])&&(g=1),qv(a,Fc[4])?Fv(t,71,"Unable to set ["+Fc[4]+"] as it has already been set by another instance"):(f=Bc(Hc(e[kg],e[Cg],g)),a[jg](Fc[4],f),s&&(e[Lg][Fc[4]]=f)));return a}},t[Dg]=function(e,r,o){if(-1===f||l<f){2!==T&&1!==T||"string"!=typeof e.id||"."===e.id[e.id[xg]-1]||(e.id+="."),Le(e[Ng])&&(e[Ng]=new Date);var n=sc(e,nu.dataType,nu.envelopeType,t[Tv](),r,o);t[Ig].track(n)}else l===f&&Bv(t,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},t.addDependencyListener=function(t){return Kv(C,k++,t)},t.addDependencyInitializer=function(t){return Kv(A,k++,t)}})),P}return yo(e,t),e.prototype.processTelemetry=function(t,e){this.processNext(t,e)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e}(Qd),tm=function(){},em=function(){this.id="browser",this.deviceClass="Browser"},rm=function(t,e){var r=this,o=ya(t,(function(){var e=t.sdkExtension;r.sdkVersion=(e?e+"_":"")+"javascript:3.1.2"}));e&&e.add(o)},om=function(){},nm="sessionManager",im="update",sm="isUserCookieSet",am="isNewUser",lm="getTraceCtx",cm="telemetryTrace",um="applySessionContext",dm="applyApplicationContext",pm="applyDeviceContext",hm="applyOperationContext",fm="applyUserContext",bm="applyOperatingSystemContxt",gm="applyLocationContext",vm="applyInternalContext",mm="accountId",ym="getSessionId",wm="namePrefix",_m="userCookiePostfix",xm="idLength",km="getNewId",Cm="length",Am="automaticSession",Em="authenticatedId",Sm="acquisitionDate",$m="renewalDate",Tm="join",Om="cookieSeparator",Im="authUserCookieName",Pm=function(){},Rm=function(){function t(e,r,o){var n,i,s,a,l=Pa(r),c=Ru(r);ro(t,this,(function(t){e||(e={});var r=ya(e,(function(t){s=e.sessionExpirationMs||864e5,a=e.sessionRenewalMs||18e5;var r=e.sessionCookiePostfix||e[wm]||"";n="ai_session"+r}));function u(t,e){var r=!1,o=", session will be reset",n=e.split("|");if(n[Cm]>=2)try{var i=+n[1]||0,s=+n[2]||0;isNaN(i)||i<=0?La(l,2,27,"AI session acquisition date is 0"+o):isNaN(s)||s<=0?La(l,2,27,"AI session renewal date is 0"+o):n[0]&&(t.id=n[0],t[Sm]=i,t[$m]=s,r=!0)}catch(t){La(l,1,9,"Error parsing ai_session value ["+(e||"")+"]"+o+" - "+xi(t),{exception:kr(t)})}return r}function d(t,r){var o=t[Sm];t[$m]=r;var l,u=a,d=o+s-r,p=[t.id,o,r];l=d<u?d/1e3:u/1e3;var h=e.cookieDomain||null;c.set(n,p[Tm]("|"),s>0?l:null,h),i=r}o&&o.add(r),t[Am]=new Pm,t[im]=function(){var r=Ni(),o=!1,p=t[Am];if(p.id||(o=!function(t,e){var r=!1,o=c.get(n);if(o&&Ne(o.split))r=u(t,o);else{var i=Ol(l,n);i&&(r=u(t,i))}return r||!!t.id}(p)),!o&&s>0){var h=r-p[Sm],f=r-p[$m];o=(o=(o=h<0||f<0)||h>s)||f>a}o?function(r){var o=e[km]||gs;t.automaticSession.id=o(e[xm]||22),t[Am][Sm]=r,d(t[Am],r),Tl()||La(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&d(p,r)},t.backup=function(){var e,r,o,i=t[Am];e=i.id,r=i[Sm],o=i[$m],Il(l,n,[e,r,o][Tm]("|"))}}))}return t.__ieDyn=1,t}(),Mm=function(t,e,r,o){var n=this;n.traceID=t||Mc(),n.parentID=e;var i=Zi();!r&&i&&i.pathname&&(r=i.pathname),n.name=Zl(o,r)};function Lm(t){return!("string"!=typeof t||!t||t.match(/,|;|=| |\|/))}var jm=function(){function t(e,r,o){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=Pa(r),s=Ru(r);ro(t,this,(function(r){er(r,"config",{g:function(){return e}});var a=ya(e,(function(){var o=e[_m]||"";n=t.userCookieName+o;var a=s.get(n);if(a){r[am]=!1;var d=a.split(t[Om]);d[Cm]>0&&(r.id=d[0],r[sm]=!!r.id)}if(!r.id){r.id=l(),u(c(r.id)[Tm](t[Om]));var p=(e[wm]||"")+"ai_session";!function(t,e){var r=Al();if(null!==r)try{return r[Va](e),!0}catch(e){xl=!1,La(t,2,5,"Browser failed removal of local storage item. "+xi(e),{exception:kr(e)})}}(i,p)}r[mm]=e[mm]||void 0;var h=s.get(t[Im]);if(h){var f=(h=decodeURI(h)).split(t[Om]);f[0]&&(r[Em]=f[0]),f[Cm]>1&&f[1]&&(r[mm]=f[1])}}));function l(){var t=e||{};return(t[km]||gs)(t[xm]?e[xm]:22)}function c(t){var e=_i(new Date);return r.accountAcquisitionDate=e,r[am]=!0,[t,e]}function u(t){r[sm]=s.set(n,t,31536e3)}o&&o.add(a),r.setAuthenticatedUserContext=function(e,o,n){if(void 0===n&&(n=!1),!Lm(e)||o&&!Lm(o))La(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{r[Em]=e;var a=r[Em];o&&(r[mm]=o,a=[r[Em],r.accountId][Tm](t[Om])),n&&s.set(t[Im],encodeURI(a))}},r.clearAuthenticatedUserContext=function(){r[Em]=null,r[mm]=null,s.del(t[Im])},r[im]=function(e){r.id===e&&r[sm]||u(c(e||l())[Tm](t[Om]))}}))}return t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}(),Dm="ext",Nm="tags";function zm(t,e){t&&t[e]&&0===io(t[e])[Cm]&&delete t[e]}function Hm(){return null}var qm,Um,Bm=function(){function t(e,r,o,n){var i=this,s=e.logger;ro(t,this,(function(t){if(t.appId=Hm,t[ym]=Hm,t.application=new tm,t.internal=new rm(r,n),hr()){t[nm]=new Rm(r,e,n),t.device=new em,t.location=new om,t.user=new jm(r,e,n);var a,l=void 0,c=void 0;o&&(l=o.getTraceId(),c=o.getSpanId(),a=o.getName()),t[cm]=new Mm(l,c,a,s),t.session=new Pm}t[ym]=function(){var e=t.session,r=null;if(e&&De(e.id))r=e.id;else{var o=(t[nm]||{})[Am];r=o&&De(o.id)?o.id:null}return r},t[um]=function(e,r){ki(Ci(e.ext,"app"),"sesId",t[ym](),De)},t[bm]=function(e,r){ki(e.ext,"os",t.os)},t[dm]=function(e,r){var o=t.application;if(o){var n=Ci(e,Nm);ki(n,Af.applicationVersion,o.ver,De),ki(n,Af.applicationBuild,o.build,De)}},t[pm]=function(e,r){var o=t.device;if(o){var n=Ci(Ci(e,Dm),kf);ki(n,"localId",o.id,De),ki(n,"ip",o.ip,De),ki(n,"model",o.model,De),ki(n,"deviceClass",o.deviceClass,De)}},t[vm]=function(e,r){var o=t.internal;if(o){var n=Ci(e,Nm);ki(n,Af.internalAgentVersion,o.agentVersion,De),ki(n,Af.internalSdkVersion,Zl(s,o.sdkVersion,64),De),e.baseType!==Ia.dataType&&e.baseType!==hc.dataType||(ki(n,Af.internalSnippet,o.snippetVer,De),ki(n,Af.internalSdkSrc,o.sdkSrc,De))}},t[gm]=function(t,e){var r=i.location;r&&ki(Ci(t,Nm,[]),Af.locationIp,r.ip,De)},t[hm]=function(e,r){var o=t[cm];if(o){var n=Ci(Ci(e,Dm),Cf,{traceID:void 0,parentID:void 0});ki(n,"traceID",o.traceID,De,Le),ki(n,"name",o.name,De,Le),ki(n,"parentID",o.parentID,De,Le)}},t.applyWebContext=function(t,e){var r=i.web;r&&ki(Ci(t,Dm),"web",r)},t[fm]=function(e,r){var o=t.user;if(o){ki(Ci(e,Nm,[]),Af.userAccountId,o[mm],De);var n=Ci(Ci(e,Dm),xf);ki(n,"id",o.id,De),ki(n,"authId",o[Em],De)}},t.cleanUp=function(t,e){var r=t.ext;r&&(zm(r,kf),zm(r,xf),zm(r,"web"),zm(r,"os"),zm(r,"app"),zm(r,Cf))}}))}return t.__ieDyn=1,t}(),Fm=null,Vm=so(((qm={})[mm]=Fm,qm.sessionRenewalMs=18e5,qm.samplingPercentage=100,qm.sessionExpirationMs=864e5,qm.cookieDomain=Fm,qm.sdkExtension=Fm,qm.isBrowserLinkTrackingEnabled=!1,qm.appId=Fm,qm[ym]=Fm,qm[wm]=Um,qm.sessionCookiePostfix=Um,qm[_m]=Um,qm[xm]=22,qm[km]=Fm,qm));const Wm=function(t){function e(){var r,o,n,i,s,a=t.call(this)||this;return a.priority=110,a.identifier=Ll,ro(e,a,(function(t,e){function a(){r=null,o=null,n=null,i=null,s=!0}a(),er(t,"context",{g:function(){return i}}),t.initialize=function(a,l,c,u){e.initialize(a,l,c,u),function(e){var a=t.identifier,l=t.core;t._addHook(ya(e,(function(){var o=Od(null,e,l);e.storagePrefix&&$l(e.storagePrefix),s=!1!==e.disableUserInitMessage,r=o.getExtCfg(a,Vm),t._extConfig=r}))),n=l[lm](!1),i=new Bm(l,r,n,t._unloadHooks),o=ou(t.context[cm],n),l.setTraceCtx(o),t.context.appId=function(){var t=l.getPlugin(jl);return t?t.plugin._appId:null}}(a)},t.processTelemetry=function(e,r){if(!Le(e)){r=t._getTelCtx(r),e.name===hc.envelopeType&&r.diagLog().resetInternalMessageCount();var o=i||{};o.session&&"string"!=typeof i.session.id&&o[nm]&&o[nm][im]();var n=o.user;if(n&&!n[sm]&&n[im](o.user.id),function(e,r){Ci(e,"tags",[]),Ci(e,"ext",{});var o=t.context;o[um](e,r),o[dm](e,r),o[pm](e,r),o[hm](e,r),o[fm](e,r),o[bm](e,r),o.applyWebContext(e,r),o[gm](e,r),o[vm](e,r),o.cleanUp(e,r)}(e,r),n&&n[am]&&(n[am]=!1,!s)){var a=new Ia(72,(br()||{}).userAgent||"");!function(t,e,r){Ma(t)[gn](1,r)}(r.diagLog(),0,a)}t.processNext(e,r)}},t._doTeardown=function(t,e){var r=(t||{}).core();r&&r[lm]&&r[lm](!1)===o&&r.setTraceCtx(n),a()}})),a}return yo(e,t),e.__ieDyn=1,e}(Qd);var Km,Xm,Gm,Jm,Qm="AuthenticatedUserContext",Ym="track",Zm="snippet",ty="flush",ey="pollInternalLogs",ry="getPlugin",oy="evtNamespace",ny=Ym+"Event",iy=Ym+"Trace",sy=Ym+"Metric",ay=Ym+"PageView",ly=Ym+"Exception",cy=Ym+"DependencyData",uy="set"+Qm,dy="clear"+Qm,py="version",hy="queue",fy="connectionString",by="endpointUrl",gy="userOverrideEndpointUrl",vy="instrumentationKey",my="onunloadFlush",yy="context",wy="addHousekeepingBeforeUnload",_y="sendMessage",xy=[Zm,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],ky="iKeyUsage",Cy="CdnUsage",Ay="SdkLoaderVer",Ey=void 0,Sy={disabled:!0,limit:au({samplingRate:100,maxSendNumber:1}),interval:au({monthInterval:3,daysOfMonth:[28]})},$y=((Km={})[fy]=Ey,Km[by]=Ey,Km[vy]=Ey,Km[gy]=Ey,Km.diagnosticLogInterval=cu((function(t){return t&&t>0}),1e4),Km.featureOptIn=((Xm={})[ky]={mode:2},Xm[Cy]={mode:2},Xm[Ay]={mode:2},Xm),Km.throttleMgrCfg=au(((Gm={})[109]=au(Sy),Gm[106]=au(Sy),Gm[111]=au(Sy),Gm[110]=au(Sy),Gm)),Km),Ty=function(){function t(e){var r,o,n,i,s,a,l,c,u,d,p,h,f,b,g=this;ro(t,this,(function(t){m(),er(t,"config",{g:function(){return c}}),Bn(["pluginVersionStringArr","pluginVersionString"],(function(e){er(t,e,{g:function(){return l?l[e]:null}})})),i=""+(e.sv||e[py]||""),e[hy]=e[hy]||[],e[py]=e[py]||2;var v=ma(e.config||{},$y);function m(){s=_s("AISKU"),a=null,r=null,o=null,n=null,i=null,p=null,h=!1,f=!1,b=!1,d=new Ih}function y(){var t;a&&(pd([Ju,Gu,Xu],null,a),t=ld(Qu,a),pd([Xu],null,t),pd([Ku],null,t))}function w(t){l.addUnloadHook(t)}c=v.cfg,u=new rh,er(t,"appInsights",{g:function(){return u}}),o=new Wm,r=new Zv,n=new tg,l=new vg,er(t,"core",{g:function(){return l}}),w(ya(v,(function(){if(c[fy]){var t=function(t){if(!t)return{};var e=t[za](";"),r=eg(e,(function(t,e){var r=e[za]("=");if(2===r[Ha]){var o=r[0][qa](),n=r[1];t[o]=n}return t}),{});if(io(r)[Ha]>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r[Ua]=r[Ua]||"https://"+o+"dc."+r.endpointsuffix}r[Ua]=r[Ua]||Ul,hu(r[Ua],"/")&&(r[Ua]=r[Ua].slice(0,-1))}return r}(c[fy]),e=t.ingestionendpoint;c[by]=c[gy]?c[gy]:e+Bl,c[vy]=t.instrumentationkey||c[vy]}c[by]=c[gy]?c[gy]:c[by]}))),t[Zm]=e,t[ty]=function(t,e){var r;return void 0===t&&(t=!0),wd(l,(function(){return"AISKU.flush"}),(function(){t&&!e&&(r=Zh((function(t){e=t})));var o=1,n=function(){0==--o&&e()};Bn(l.getChannels(),(function(e){e&&(o++,e[ty](t,n))})),n()}),null,t),r},t[my]=function(t){void 0===t&&(t=!0),Bn(l.getChannels(),(function(e){e[my]?e[my]():e[ty](t)}))},t.loadAppInsights=function(e,s,a){return void 0===e&&(e=!1),e&&function(t){throw na||(na=fa("UnsupportedError")),new na("Legacy Mode is no longer supported")}(),wd(t.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(c,[n,o,r,u,d],s,a),er(t,"context",{g:function(){return o[yy]}}),p||(p=new rg(l));var e=function(){if(Jm)return Jm;var t=null;try{var e=(document||{}).currentScript;e&&(t=e.src)}catch(t){}if(t){try{var r=t.toLowerCase();if(r){var o="";Bn(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(t,e){if(-1!==Un(r,t))return o="cdn"+(e+1),-1===Un(r,"/scripts/")&&(-1!==Un(r,"/next/")?o+="-next":-1!==Un(r,"/beta/")&&(o+="-beta")),Jm=o+"",-1}))}}catch(t){}Jm=t}return Jm}();e&&t[yy]&&(t[yy].internal.sdkSrc=e),function(e){if(e){var r="";Le(i)||(r+=i),t[yy]&&t[yy].internal&&(t[yy].internal.snippetVer=r||"-"),Je(t,(function(t,r){De(t)&&!Ne(r)&&t&&"_"!==t[0]&&-1===Ss(xy,t)&&e[t]!==r&&(e[t]=r)}))}}(t[Zm]),t.emptyQueue(),t[ey](),t[wy](t),w(ya(v,(function(){var e=!1;c.throttleMgrCfg[109]&&(e=!c.throttleMgrCfg[109].disabled),!p.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&e&&p.onReadyState(!0),h||c[fy]||!Oi(ky,c)||(p[_y](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),h=!0),!f&&t[yy].internal.sdkSrc&&-1!=t[yy].internal.sdkSrc.indexOf("az416426")&&Oi(Cy,c)&&(p[_y](110,"See Cdn support notice at aka.ms/JsActiveCdn"),f=!0),!b&&parseInt(i)<6&&Oi(Ay,c)&&(p[_y](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),b=!0)})))})),t},t.updateSnippetDefinitions=function(e){!function(t,e,r){if(t&&e&&ze(t)&&ze(e)){var o=function(o){if(De(o)){var n=e[o];Ne(n)?r&&!r(o)||(t[o]=Ai(e,o)):r&&!r(o)||(Ge(t,o)&&delete t[o],er(t,o,{g:function(){return e[o]},s:function(t){e[o]=t}}))}};for(var n in e)o(n)}}(e,t,(function(t){return t&&-1===Ss(xy,t)}))},t.emptyQueue=function(){try{if(He(t.snippet[hy])){for(var e=t.snippet[hy].length,r=0;r<e;r++)(0,t.snippet[hy][r])();t.snippet[hy]=void 0,delete t.snippet[hy]}}catch(t){t&&Ne(t.toString)&&t.toString()}},t[wy]=function(e){if(hr()||dr()){var r=function(){if(e[my](!1),Ne(t.core[ry])){var r=g.core[ry](Ll);if(r){var o=r.plugin;o&&o[yy]&&o[yy]._sessionManager&&o[yy]._sessionManager.backup()}}},o=!1;a||(a=ld(s,l[oy]&&l[oy]())),w(ya(c,(function(t){var n=t.cfg,i=e.appInsights,s=Od(null,n,i.core).getExtCfg(i.identifier||Dl);y();var c,u=n.disablePageUnloadEvents;s.disableFlushOnBeforeUnload||(function(t,e,r,o){var n=!1;return e&&t&&He(t)&&!(n=dd(t,e,r,o))&&r&&r[ko]>0&&(n=dd(t,e,null,o)),n}([Ju,Gu,Xu],r,u,a)&&(o=!0),hd(r,u,a)&&(o=!0),o||(c=br())&&c.product&&"ReactNative"===c.product||La(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),o||s.disableFlushOnUnload||hd(r,u,a)})))}},t.getSender=function(){return n},t.unload=function(e,r,o){var n,i=!1;return e&&!r&&(n=Zh((function(t){r=t}))),t[my](e),y(),l.unload&&l.unload(e,(function(t){i||(i=!0,m(),r&&r(t))}),o),n},Si(t,u,["getCookieMgr",ny,ay,"trackPageViewPerformance",ly,"_onerror",iy,sy,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),Si(t,(function(){return r}),[cy,"addDependencyListener","addDependencyInitializer"]),Si(t,l,["addTelemetryInitializer",ey,"stopPollingInternalLogs",ry,"addPlugin",oy,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Si(t,(function(){var t=o[yy];return t?t.user:null}),[uy,dy])}))}return t.prototype.addDependencyInitializer=function(t){return null},t}();class Oy{constructor(){this.config={},this.trackPageView=!1}}const Iy="AppInsightsConfigurationToken";let Py=class{constructor(t){this.config=t,t.config?.connectionString||t.config?.instrumentationKey?(this.instance=new Ty(t),this.instance.loadAppInsights(),t.trackPageView&&this.instance.trackPageView()):console.warn("AppInsightsLogger configuraiton has no connectionString or instrumentaitonKey."),this.config=t}logTrace(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:0})}logDebug(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:1})}logInformation(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:2})}logWarning(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:3})}logError(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r))})}logCritical(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r)),properties:{severity:"critical"}})}log(t,e,r,...o){r?this.instance?.trackException({exception:r,properties:{message:this.formatMessage(e,o)}}):this.instance?.trackTrace({message:this.formatMessage(e,o),severityLevel:t})}formatMessage(t,e){return e.length>0?`${t}, ${e.join(", ")}`:t}};var Ry;Py=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([I(),function(t,e){return function(r,o){e(r,o,t)}}(0,(Ry=Iy,O(Ry))),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Oy])],Py),R.container.registerSingleton(Py),R.container.register(e,{useToken:Py}),R.container.register(Iy,{useFactory:function(){return R.container.resolve(L).getSection("ApplicationInsights").bind(Oy)}});var My=function(t,e){return function(r,o){e(r,o,t)}};let Ly=class{constructor(t,e){this.loggers=t,this.readers=e,this.logTrace(`LoggingService.constructor loaded with ${t.length} loggers and ${e.length} readers.`)}logTrace(t,...e){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:n.Trace,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logTrace(t,...e)}logDebug(t,...e){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:n.Debug,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logDebug(t,...e)}logInformation(t,...e){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:n.Information,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logInformation(t,...e)}logWarning(t,...e){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:n.Warning,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logWarning(t,...e)}logError(t,e,...r){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:n.Error,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logError(t,e,...r)}logCritical(t,e,...r){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:n.Critical,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logCritical(t,e,...r)}log(t,e,r,...o){window.dispatchEvent(new CustomEvent(t_.WRITING_LOG,{detail:{logLevel:t,message:e,error:r,...o},bubbles:!0,cancelable:!0,composed:!0}));for(const n of this.loggers)n.log(t,e,r,...o)}getLogs(){return this.readers.reduce(((t,e)=>{const r=e.getLogs();return t.concat(r)}),[])}clearLogs(){this.readers.forEach((t=>t.clearLogs()))}};Ly=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([I(),My(0,P(e)),My(1,P(te)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array,Array])],Ly),R.container.register(Zt,{useClass:Ly},{lifecycle:a.Singleton});const jy=globalThis,Dy=jy.ShadowRoot&&(void 0===jy.ShadyCSS||jy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ny=Symbol(),zy=new WeakMap;class Hy{constructor(t,e,r){if(this._$cssResult$=!0,r!==Ny)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Dy&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=zy.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&zy.set(e,t))}return t}toString(){return this.cssText}}const qy=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new Hy(r,t,Ny)},Uy=Dy?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new Hy("string"==typeof t?t:t+"",void 0,Ny))(e)})(t):t,{is:By,defineProperty:Fy,getOwnPropertyDescriptor:Vy,getOwnPropertyNames:Wy,getOwnPropertySymbols:Ky,getPrototypeOf:Xy}=Object,Gy=globalThis,Jy=Gy.trustedTypes,Qy=Jy?Jy.emptyScript:"",Yy=Gy.reactiveElementPolyfillSupport,Zy=(t,e)=>t,tw={toAttribute(t,e){switch(e){case Boolean:t=t?Qy:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},ew=(t,e)=>!By(t,e),rw={attribute:!0,type:String,converter:tw,reflect:!1,hasChanged:ew};Symbol.metadata??=Symbol("metadata"),Gy.litPropertyMetadata??=new WeakMap;class ow extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=rw){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Fy(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=Vy(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const i=o?.call(this);n.call(this,e),this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rw}static _$Ei(){if(this.hasOwnProperty(Zy("elementProperties")))return;const t=Xy(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Zy("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zy("properties"))){const t=this.properties,e=[...Wy(t),...Ky(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(Uy(t))}else void 0!==t&&e.push(Uy(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Dy)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=jy.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:tw).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:tw;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??ew)(this[t],e))return;this.P(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}ow.elementStyles=[],ow.shadowRootOptions={mode:"open"},ow[Zy("elementProperties")]=new Map,ow[Zy("finalized")]=new Map,Yy?.({ReactiveElement:ow}),(Gy.reactiveElementVersions??=[]).push("2.0.4");const nw=globalThis,iw=nw.trustedTypes,sw=iw?iw.createPolicy("lit-html",{createHTML:t=>t}):void 0,aw="$lit$",lw=`lit$${(Math.random()+"").slice(9)}$`,cw="?"+lw,uw=`<${cw}>`,dw=document,pw=()=>dw.createComment(""),hw=t=>null===t||"object"!=typeof t&&"function"!=typeof t,fw=Array.isArray,bw="[ \t\n\f\r]",gw=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vw=/-->/g,mw=/>/g,yw=RegExp(`>|${bw}(?:([^\\s"'>=/]+)(${bw}*=${bw}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ww=/'/g,_w=/"/g,xw=/^(?:script|style|textarea|title)$/i,kw=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Cw=kw(1),Aw=(kw(2),Symbol.for("lit-noChange")),Ew=Symbol.for("lit-nothing"),Sw=new WeakMap,$w=dw.createTreeWalker(dw,129);function Tw(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==sw?sw.createHTML(e):e}class Ow{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=gw;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===gw?"!--"===l[1]?s=vw:void 0!==l[1]?s=mw:void 0!==l[2]?(xw.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=yw):void 0!==l[3]&&(s=yw):s===yw?">"===l[0]?(s=n??gw,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?yw:'"'===l[3]?_w:ww):s===_w||s===ww?s=yw:s===vw||s===mw?s=gw:(s=yw,n=void 0);const d=s===yw&&t[e+1].startsWith("/>")?" ":"";i+=s===gw?r+uw:c>=0?(o.push(a),r.slice(0,c)+aw+r.slice(c)+lw+d):r+lw+(-2===c?e:d)}return[Tw(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=Ow.createElement(l,r),$w.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=$w.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(aw)){const e=c[i++],r=o.getAttribute(t).split(lw),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?Lw:"?"===s[1]?jw:"@"===s[1]?Dw:Mw}),o.removeAttribute(t)}else t.startsWith(lw)&&(a.push({type:6,index:n}),o.removeAttribute(t));if(xw.test(o.tagName)){const t=o.textContent.split(lw),e=t.length-1;if(e>0){o.textContent=iw?iw.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],pw()),$w.nextNode(),a.push({type:2,index:++n});o.append(t[e],pw())}}}else if(8===o.nodeType)if(o.data===cw)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(lw,t+1));)a.push({type:7,index:n}),t+=lw.length-1}n++}}static createElement(t,e){const r=dw.createElement("template");return r.innerHTML=t,r}}function Iw(t,e,r=t,o){if(e===Aw)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=hw(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(e=Iw(t,n._$AS(t,e.values),n,o)),e}class Pw{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??dw).importNode(e,!0);$w.currentNode=o;let n=$w.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Rw(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Nw(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=$w.nextNode(),i++)}return $w.currentNode=dw,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Rw{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=Ew,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Iw(this,t,e),hw(t)?t===Ew||null==t||""===t?(this._$AH!==Ew&&this._$AR(),this._$AH=Ew):t!==this._$AH&&t!==Aw&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>fw(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==Ew&&hw(this._$AH)?this._$AA.nextSibling.data=t:this.T(dw.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Ow.createElement(Tw(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Pw(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=Sw.get(t.strings);return void 0===e&&Sw.set(t.strings,e=new Ow(t)),e}k(t){fw(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new Rw(this.S(pw()),this.S(pw()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Mw{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=Ew,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ew}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Iw(this,t,e,0),i=!hw(t)||t!==this._$AH&&t!==Aw,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Iw(this,o[r+s],e,s),a===Aw&&(a=this._$AH[s]),i||=!hw(a)||a!==this._$AH[s],a===Ew?t=Ew:t!==Ew&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===Ew?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Lw extends Mw{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ew?void 0:t}}class jw extends Mw{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ew)}}class Dw extends Mw{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Iw(this,t,e,0)??Ew)===Aw)return;const r=this._$AH,o=t===Ew&&r!==Ew||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==Ew&&(r===Ew||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Nw{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Iw(this,t)}}const zw=nw.litHtmlPolyfillSupport;zw?.(Ow,Rw),(nw.litHtmlVersions??=[]).push("3.1.2");class Hw extends ow{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const o=r?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=r?.renderBefore??null;o._$litPart$=n=new Rw(e.insertBefore(pw(),t),t,void 0,r??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Aw}}Hw._$litElement$=!0,Hw.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Hw});const qw=globalThis.litElementPolyfillSupport;qw?.({LitElement:Hw}),(globalThis.litElementVersions??=[]).push("4.0.4");const Uw=qy`
25
25
  :root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg,hsla(0,0%,100%,.15),hsla(0,0%,100%,0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33,37,41,.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33,37,41,.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0,0,0,.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0,0,0,.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0,0,0,.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0,0,0,.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0,0,0,.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13,110,253,.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}.h5,h5{color:var(--bs-heading-color);font-size:1.25rem;font-weight:500;line-height:1.2;margin-bottom:.5rem;margin-top:0}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}svg{vertical-align:middle}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;text-transform:none}[role=button]{cursor:pointer}[type=button],button{-webkit-appearance:button}[type=button]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{border-style:none;padding:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{-webkit-appearance:button;font:inherit}[hidden]{display:none!important}.container{--bs-gutter-x:1.5rem;--bs-gutter-y:0;margin-left:auto;margin-right:auto;padding-left:calc(var(--bs-gutter-x)*.5);padding-right:calc(var(--bs-gutter-x)*.5);width:100%}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}@media (min-width:1400px){.container{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-left:calc(var(--bs-gutter-x)*-.5);margin-right:calc(var(--bs-gutter-x)*-.5);margin-top:calc(var(--bs-gutter-y)*-1)}.row>*{flex-shrink:0;margin-top:var(--bs-gutter-y);max-width:100%;padding-left:calc(var(--bs-gutter-x)*.5);padding-right:calc(var(--bs-gutter-x)*.5);width:100%}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{filter:none;opacity:.65;pointer-events:none}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 hsla(0,0%,100%,.15),0 1px 1px rgba(0,0,0,.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb),.5);background-color:var(--bs-btn-bg);border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);color:var(--bs-btn-color);cursor:pointer;display:inline-block;font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);color:var(--bs-btn-hover-color)}.btn-check+.btn:hover{background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color);color:var(--bs-btn-color)}.btn:focus-visible{background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);box-shadow:var(--bs-btn-focus-box-shadow);color:var(--bs-btn-hover-color);outline:0}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);box-shadow:var(--bs-btn-focus-box-shadow);outline:0}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);color:var(--bs-btn-active-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled{background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);color:var(--bs-btn-disabled-color);opacity:var(--bs-btn-disabled-opacity);pointer-events:none}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0,0,0,.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.list-group,.log-list{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;border-radius:var(--bs-list-group-border-radius);display:flex;flex-direction:column;margin-bottom:0;padding-left:0}.list-group-numbered{counter-reset:section;list-style-type:none}.list-group-numbered>.list-group-item:before,.list-group-numbered>.log-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{color:var(--bs-list-group-action-color);text-align:inherit;width:100%}.list-group-item-action:focus,.list-group-item-action:hover{background-color:var(--bs-list-group-action-hover-bg);color:var(--bs-list-group-action-hover-color);text-decoration:none;z-index:1}.list-group-item-action:active{background-color:var(--bs-list-group-action-active-bg);color:var(--bs-list-group-action-active-color)}.list-group-item,.log-item{background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);color:var(--bs-list-group-color);display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);position:relative;text-decoration:none}.list-group-item:first-child,.log-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child,.log-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.disabled.log-item,.list-group-item.disabled,.list-group-item:disabled,.log-item:disabled{background-color:var(--bs-list-group-disabled-bg);color:var(--bs-list-group-disabled-color);pointer-events:none}.active.log-item,.list-group-item.active{background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color);color:var(--bs-list-group-active-color);z-index:2}.list-group-item+.list-group-item,.list-group-item+.log-item,.log-item+.list-group-item,.log-item+.log-item{border-top-width:0}.list-group-item+.active.log-item,.list-group-item+.list-group-item.active,.log-item+.active.log-item,.log-item+.list-group-item.active{border-top-width:var(--bs-list-group-border-width);margin-top:calc(var(--bs-list-group-border-width)*-1)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child),.list-group-horizontal>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child),.list-group-horizontal>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal>.active.log-item,.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item,.list-group-horizontal>.list-group-item+.log-item,.list-group-horizontal>.log-item+.list-group-item,.list-group-horizontal>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal>.list-group-item+.active.log-item,.list-group-horizontal>.list-group-item+.list-group-item.active,.list-group-horizontal>.log-item+.active.log-item,.list-group-horizontal>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child),.list-group-horizontal-sm>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child),.list-group-horizontal-sm>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-sm>.active.log-item,.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item,.list-group-horizontal-sm>.list-group-item+.log-item,.list-group-horizontal-sm>.log-item+.list-group-item,.list-group-horizontal-sm>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-sm>.list-group-item+.active.log-item,.list-group-horizontal-sm>.list-group-item+.list-group-item.active,.list-group-horizontal-sm>.log-item+.active.log-item,.list-group-horizontal-sm>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child),.list-group-horizontal-md>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child),.list-group-horizontal-md>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-md>.active.log-item,.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item,.list-group-horizontal-md>.list-group-item+.log-item,.list-group-horizontal-md>.log-item+.list-group-item,.list-group-horizontal-md>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-md>.list-group-item+.active.log-item,.list-group-horizontal-md>.list-group-item+.list-group-item.active,.list-group-horizontal-md>.log-item+.active.log-item,.list-group-horizontal-md>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child),.list-group-horizontal-lg>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child),.list-group-horizontal-lg>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-lg>.active.log-item,.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item,.list-group-horizontal-lg>.list-group-item+.log-item,.list-group-horizontal-lg>.log-item+.list-group-item,.list-group-horizontal-lg>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-lg>.list-group-item+.active.log-item,.list-group-horizontal-lg>.list-group-item+.list-group-item.active,.list-group-horizontal-lg>.log-item+.active.log-item,.list-group-horizontal-lg>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child),.list-group-horizontal-xl>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child),.list-group-horizontal-xl>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-xl>.active.log-item,.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item,.list-group-horizontal-xl>.list-group-item+.log-item,.list-group-horizontal-xl>.log-item+.list-group-item,.list-group-horizontal-xl>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-xl>.list-group-item+.active.log-item,.list-group-horizontal-xl>.list-group-item+.list-group-item.active,.list-group-horizontal-xl>.log-item+.active.log-item,.list-group-horizontal-xl>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child),.list-group-horizontal-xxl>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child),.list-group-horizontal-xxl>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-xxl>.active.log-item,.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item,.list-group-horizontal-xxl>.list-group-item+.log-item,.list-group-horizontal-xxl>.log-item+.list-group-item,.list-group-horizontal-xxl>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-xxl>.list-group-item+.active.log-item,.list-group-horizontal-xxl>.list-group-item+.list-group-item.active,.list-group-horizontal-xxl>.log-item+.active.log-item,.list-group-horizontal-xxl>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item,.list-group-flush>.log-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child,.list-group-flush>.log-item:last-child{border-bottom-width:0}.list-group-item-primary,.log-item.debug{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary,.log-item.trace{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning,.log-item.warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger,.log-item.critial,.log-item.error{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light,.log-item.info{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3E%3C/svg%3E");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13,110,253,.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;box-sizing:content-box;height:1em;opacity:var(--bs-btn-close-opacity);padding:.25em;width:1em}.btn-close,.btn-close:hover{color:var(--bs-btn-close-color)}.btn-close:hover{opacity:var(--bs-btn-close-hover-opacity);text-decoration:none}.btn-close:focus{box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity);outline:0}.btn-close.disabled,.btn-close:disabled{opacity:var(--bs-btn-close-disabled-opacity);pointer-events:none;user-select:none}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);display:none;height:100%;left:0;outline:0;overflow-x:hidden;overflow-y:auto;position:fixed;top:0;width:100%;z-index:var(--bs-modal-zindex)}.modal-dialog{margin:var(--bs-modal-margin);pointer-events:none;position:relative;width:auto}.modal.show .modal-dialog{transform:none}.modal-content{background-clip:padding-box;background-color:var(--bs-modal-bg);border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);color:var(--bs-modal-color);display:flex;flex-direction:column;outline:0;pointer-events:auto;position:relative;width:100%}.modal-header{align-items:center;border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius);display:flex;flex-shrink:0;padding:var(--bs-modal-header-padding)}.modal-header .btn-close{margin:calc(var(--bs-modal-header-padding-y)*-.5) calc(var(--bs-modal-header-padding-x)*-.5) calc(var(--bs-modal-header-padding-y)*-.5) auto;padding:calc(var(--bs-modal-header-padding-y)*.5) calc(var(--bs-modal-header-padding-x)*.5)}.modal-title{line-height:var(--bs-modal-title-line-height);margin-bottom:0}.modal-body{flex:1 1 auto;padding:var(--bs-modal-padding);position:relative}.modal-footer{align-items:center;background-color:var(--bs-modal-footer-bg);border-bottom-left-radius:var(--bs-modal-inner-border-radius);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap)*.5)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap)*.5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{margin-left:auto;margin-right:auto;max-width:var(--bs-modal-width)}}@media (min-width:992px){.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.spinner-border,.spinner-grow{animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);border-radius:50%;display:inline-block;height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);width:var(--bs-spinner-width)}@keyframes spinner-border{to{transform:rotate(1turn)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border-right-color:currentcolor;border:var(--bs-spinner-border-width) solid;border-right:var(--bs-spinner-border-width) solid transparent}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{animation:placeholder-wave 2s linear infinite;mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-size:200% 100%}@keyframes placeholder-wave{to{mask-position:-200% 0}}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.flex-wrap{flex-wrap:wrap!important}.modal.show{display:block}
26
26
  /*# sourceMappingURL=qbo4.logging.min.css.map*/
27
- `,lw=Uy`
27
+ `,Bw=qy`
28
28
  :root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h5,h1,h5{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h5,h5{font-size:1.25rem}p{margin-top:0;margin-bottom:1rem}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}b{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code{font-family:var(--bs-font-monospace);font-size:1em}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}th{text-align:inherit;text-align:-webkit-match-parent}td,th,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.container{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}@media (min-width:1400px){.container{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), 0.05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), 0.1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}input{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){input{transition:none}}input[type=file]{overflow:hidden}input[type=file]:not(:disabled):not([readonly]){cursor:pointer}input:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}input::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}input::-webkit-datetime-edit{display:block;padding:0}input::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}input::placeholder{color:var(--bs-secondary-color);opacity:1}input:disabled{background-color:var(--bs-secondary-bg);opacity:1}input::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){input::file-selector-button{transition:none}}input:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.show .modal-dialog{transform:none}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}}@media (min-width:992px){.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.shadow{box-shadow:var(--bs-box-shadow)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.flex-wrap{flex-wrap:wrap!important}.rounded{border-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}
29
- `,cw=(Uy`
29
+ `,Fw=(qy`
30
30
  :root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h5,h1,h5{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h5,h5{font-size:1.25rem}p{margin-top:0;margin-bottom:1rem}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}b{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code{font-family:var(--bs-font-monospace);font-size:1em}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}td,th,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.container{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}@media (min-width:1400px){.container{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), 0.05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), 0.1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn,.qbo-modal>div>div>div:nth-of-type(3) .btn-check:disabled+.btn-secondary,.qbo-modal>div>div>div:nth-of-type(3) .btn-check[disabled]+.btn-secondary{pointer-events:none;filter:none;opacity:.65}.btn,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary{transition:none}}.btn:hover,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover,.qbo-modal>div>div>div:nth-of-type(3) .btn-check+.btn-secondary:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn,.qbo-modal>div>div>div:nth-of-type(3) .btn-check:focus-visible+.btn-secondary{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,.qbo-modal>div>div>div:nth-of-type(3) .active.btn-secondary,.qbo-modal>div>div>div:nth-of-type(3) .btn-check:checked+.btn-secondary,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary:first-child:active,.qbo-modal>div>div>div:nth-of-type(3) .show.btn-secondary,.qbo-modal>div>div>div:nth-of-type(3) :not(.btn-check)+.btn-secondary:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,.qbo-modal>div>div>div:nth-of-type(3) .active.btn-secondary:focus-visible,.qbo-modal>div>div>div:nth-of-type(3) .btn-check:checked+.btn-secondary:focus-visible,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary:first-child:active:focus-visible,.qbo-modal>div>div>div:nth-of-type(3) .show.btn-secondary:focus-visible,.qbo-modal>div>div>div:nth-of-type(3) :not(.btn-check)+.btn-secondary:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn,.qbo-modal>div>div>div:nth-of-type(3) .btn-check:checked:focus-visible+.btn-secondary{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary:disabled,.qbo-modal>div>div>div:nth-of-type(3) .disabled.btn-secondary{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-secondary,.qbo-modal>div>div>div:nth-of-type(3) .btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.collapse:not(.show){display:none}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close,.qbo-modal>div>div>div:first-of-type button{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover,.qbo-modal>div>div>div:first-of-type button:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus,.qbo-modal>div>div>div:first-of-type button:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled,.qbo-modal>div>div>div:first-of-type button.disabled,.qbo-modal>div>div>div:first-of-type button:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog,.qbo-modal>div{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.show .modal-dialog,.modal.show .qbo-modal>div{transform:none}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content,.modal-dialog-scrollable .qbo-modal>div>div{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body,.modal-dialog-scrollable .qbo-modal>div>div>div:nth-of-type(2){overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content,.qbo-modal>div>div{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-header,.qbo-modal>div>div>div:first-of-type{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close,.qbo-modal>div>div>div:first-of-type .btn-close,.qbo-modal>div>div>div:first-of-type button{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title,.qbo-modal>div>div>div:first-of-type .h5,.qbo-modal>div>div>div:first-of-type h5{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body,.qbo-modal>div>div>div:nth-of-type(2){position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer,.qbo-modal>div>div>div:nth-of-type(3){display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*,.qbo-modal>div>div>div:nth-of-type(3)>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog,.qbo-modal>div{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}}@media (min-width:992px){.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before,.qbo-modal>div>div>div:nth-of-type(3) .placeholder.btn-secondary::before{display:inline-block;content:""}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.shadow{box-shadow:var(--bs-box-shadow)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.flex-wrap{flex-wrap:wrap!important}.justify-content-between{justify-content:space-between!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}
31
- `,{attribute:!0,type:String,converter:ew,reflect:!1,hasChanged:rw}),uw=(t=cw,e,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),"accessor"===o){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};function dw(t){return(e,r)=>"object"==typeof r?uw(t,e,r):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}var pw,hw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},fw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let bw=class extends iw{static{pw=this}static{this.styles=[aw,lw]}static{this.logLevelNames=Object.keys(n).filter((t=>isNaN(Number(t)))).map((t=>t.toLowerCase()))}constructor(){super(),this.debug=!1,this.info=!1,this.warning=!1,this.error=!0,this.critial=!0,this.window=!1,this.logs=[],this.logCounts={[n.Trace]:0,[n.Debug]:0,[n.Information]:0,[n.Warning]:0,[n.Error]:0,[n.Critical]:0},this.showModal=!1,this.logWindowError=t=>{this.loggerService?.logError(`Caught an error: ${t.message}`,t.error,Array.isArray(t.detail)?t.detail:[t.detail])},this.logRejection=t=>{this.loggerService?.logWarning(`Unhandled promist rejection: ${t.reason}`,Array.isArray(t.detail)?t.detail:[t.detail])},this.addLog=t=>{const e=this.toLog(t);this.loggerService?.log(e.logLevel,e.message,e.error,e.args),this.logs.push(e),this.logCounts.hasOwnProperty(e.logLevel)?this.logCounts[e.logLevel]++:this.logCounts[e.logLevel]=1,this.requestUpdate("logs",[...this.logs]),this.renderLogCounts()},this.loggerService=null,this.addEventListener("click",(t=>{this.showModal||(t.preventDefault(),t.stopPropagation(),this.showLogs())}))}showLogs(){this.showModal=!0}hideLogs(){this.showModal=!1}toLog(t){var e=Array.isArray(t.detail)?t.detail:[t.detail];return{logLevel:t.detail?.logLevel??n.Information,message:t.detail?.message??`${t.type} raised from ${t.target}`,error:t.detail?.error??null,args:e}}async connectedCallback(){super.connectedCallback(),this.loggerService=R.getService(te),this.logs=this.loggerService.getLogs(),window.addEventListener(yw.WRITE_LOG,this.addLog),this.window&&(window.addEventListener("error",this.logWindowError),window.addEventListener("unhandledrejection",this.logRejection))}async disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(yw.WRITE_LOG,this.addLog),window.removeEventListener("error",this.logWindowError),window.removeEventListener("unhandledrejection",this.logRejection)}renderLogCounts(){this.querySelectorAll("[data-loglevel]").forEach((t=>{const e=function(t,e){const r=Object.keys(t).filter((t=>isNaN(Number(t)))),o=r.find((t=>t.toLowerCase()===e.toLowerCase()));return void 0!==o?t[o]:void 0}(n,t.getAttribute("data-loglevel"));void 0!==this.logCounts[e]&&(t.textContent=`${this.logCounts[e]}`)}));const t=this.querySelector("[data-loglevel=total]");null!==t&&(t.textContent=`${Object.values(this.logCounts).reduce(((t,e)=>t+e),0)}`)}render(){return Ot`<slot></slot>
32
- ${this.showModal?Ot`
31
+ `,{attribute:!0,type:String,converter:tw,reflect:!1,hasChanged:ew}),Vw=(t=Fw,e,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),"accessor"===o){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};function Ww(t){return(e,r)=>"object"==typeof r?Vw(t,e,r):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}var Kw,Xw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Gw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Jw=class extends Hw{static{Kw=this}static{this.styles=[Uw,Bw]}static{this.logLevelNames=Object.keys(n).filter((t=>isNaN(Number(t)))).map((t=>t.toLowerCase()))}constructor(){super(),this.debug=!1,this.info=!1,this.warning=!1,this.error=!0,this.critial=!0,this.window=!1,this.logs=[],this.logCounts={[n.Trace]:0,[n.Debug]:0,[n.Information]:0,[n.Warning]:0,[n.Error]:0,[n.Critical]:0},this.showModal=!1,this.logWindowError=t=>{this.loggerService?.logError(`Caught an error: ${t.message}`,t.error,Array.isArray(t.detail)?t.detail:[t.detail])},this.logRejection=t=>{this.loggerService?.logWarning(`Unhandled promist rejection: ${t.reason}`,Array.isArray(t.detail)?t.detail:[t.detail])},this.addLog=t=>{const e=this.toLog(t);this.loggerService?.log(e.logLevel,e.message,e.error,e.args),this.logs.push(e),this.logCounts.hasOwnProperty(e.logLevel)?this.logCounts[e.logLevel]++:this.logCounts[e.logLevel]=1,this.requestUpdate("logs",[...this.logs]),this.renderLogCounts()},this.loggerService=null,this.addEventListener("click",(t=>{this.showModal||(t.preventDefault(),t.stopPropagation(),this.showLogs())}))}showLogs(){this.showModal=!0}hideLogs(){this.showModal=!1}toLog(t){var e=Array.isArray(t.detail)?t.detail:[t.detail];return{logLevel:t.detail?.logLevel??n.Information,message:t.detail?.message??`${t.type} raised from ${t.target}`,error:t.detail?.error??null,args:e}}async connectedCallback(){super.connectedCallback(),this.loggerService=R.getService(Zt),this.logs=this.loggerService.getLogs(),window.addEventListener(t_.WRITE_LOG,this.addLog),this.window&&(window.addEventListener("error",this.logWindowError),window.addEventListener("unhandledrejection",this.logRejection))}async disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(t_.WRITE_LOG,this.addLog),window.removeEventListener("error",this.logWindowError),window.removeEventListener("unhandledrejection",this.logRejection)}renderLogCounts(){this.querySelectorAll("[data-loglevel]").forEach((t=>{const e=function(t,e){const r=Object.keys(t).filter((t=>isNaN(Number(t)))),o=r.find((t=>t.toLowerCase()===e.toLowerCase()));return void 0!==o?t[o]:void 0}(n,t.getAttribute("data-loglevel"));void 0!==this.logCounts[e]&&(t.textContent=`${this.logCounts[e]}`)}));const t=this.querySelector("[data-loglevel=total]");null!==t&&(t.textContent=`${Object.values(this.logCounts).reduce(((t,e)=>t+e),0)}`)}render(){return Cw`<slot></slot>
32
+ ${this.showModal?Cw`
33
33
  <div class="modal show" @click="${this.hideLogs}">
34
34
  <div class="modal-dialog modal-xl" role="document" @click="${t=>t.stopPropagation()}">
35
35
  <div class="modal-content">
@@ -40,7 +40,7 @@
40
40
  </div>
41
41
  <div class="modal-body">
42
42
  <div class="log-list">
43
- ${this.logs.filter((t=>null!==t)).map((t=>Ot`<div class="log-item ${pw.logLevelNames[t.logLevel]}">${t.message}</div>`))}
43
+ ${this.logs.filter((t=>null!==t)).map((t=>Cw`<div class="log-item ${Kw.logLevelNames[t.logLevel]}">${t.message}</div>`))}
44
44
  </div>
45
45
  </div>
46
46
  <div class="modal-footer">
@@ -49,16 +49,16 @@
49
49
  </div>
50
50
  </div>
51
51
  </div>`:""}
52
- `}};hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"debug",void 0),hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"info",void 0),hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"warning",void 0),hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"error",void 0),hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"critial",void 0),hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"window",void 0),hw([dw({type:Array}),fw("design:type",Array)],bw.prototype,"logs",void 0),hw([dw({type:Object}),fw("design:type",Object)],bw.prototype,"logCounts",void 0),hw([dw({type:Boolean}),fw("design:type",Object)],bw.prototype,"showModal",void 0),bw=pw=hw([(t=>(e,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("qbo-logging"),fw("design:paramtypes",[])],bw);var gw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},vw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class mw extends iw{constructor(){super(...arguments),this.selector="",this.cssClass="",this.selectorRoot=""}static{this.styles=[lw]}render(){return Ot`<slot>
52
+ `}};Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"debug",void 0),Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"info",void 0),Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"warning",void 0),Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"error",void 0),Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"critial",void 0),Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"window",void 0),Xw([Ww({type:Array}),Gw("design:type",Array)],Jw.prototype,"logs",void 0),Xw([Ww({type:Object}),Gw("design:type",Object)],Jw.prototype,"logCounts",void 0),Xw([Ww({type:Boolean}),Gw("design:type",Object)],Jw.prototype,"showModal",void 0),Jw=Kw=Xw([(t=>(e,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("qbo-logging"),Gw("design:paramtypes",[])],Jw);var Qw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Yw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Zw extends Hw{constructor(){super(...arguments),this.selector="",this.cssClass="",this.selectorRoot=""}static{this.styles=[Bw]}render(){return Cw`<slot>
53
53
  <input type="text" @input="${this.handleInput}" placeholder="Filter ...">
54
54
  </slot>
55
- `}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(t){const e=t.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((t=>{(t.textContent?.toLowerCase()||"").includes(e)?this.cssClass?t.classList.remove(this.cssClass):t instanceof HTMLElement&&(t.style.display=""):this.cssClass?t.classList.add(this.cssClass):t instanceof HTMLElement&&(t.style.display="none")}))}}gw([dw({type:String}),vw("design:type",Object)],mw.prototype,"selector",void 0),gw([dw({type:String}),vw("design:type",Object)],mw.prototype,"cssClass",void 0),gw([dw({type:String}),vw("design:type",Object)],mw.prototype,"selectorRoot",void 0),customElements.define("qbo-find",mw);const yw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},ww="ApiServiceToken";function _w(t){return R.container.resolve(t)}const xw="ValidateToken";function kw(t,e){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),null}if(Array.isArray(t))return t;if("object"==typeof t&&null!==t)for(const r in t){const o=t[r];if(Array.isArray(o))return o;if("object"==typeof o){const t=kw(o,e);if(t)return t}}return null}function Cw(t,...e){const r=/\${(.*?)}/g;let o=t;for(let t=0;t<e.length;t++){const n=e[t];o=o.replace(r,((t,e)=>{const r=e.split(/\.|\[|\]/).filter((t=>""!==t));let o=n;for(let e of r){if(void 0===o[e])return t;o=o[e]}return o}))}return o=o.replace(r,(()=>"")),o}function Aw(t,e,r,o=!0){if(null!=t&&null!=e){for(;o&&t.firstChild;)t.removeChild(t.firstChild);r.map(((r,o)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=Cw(n.firstElementChild?.innerHTML??"",r)),t.appendChild(n)}))}}class Ew{constructor(t,e={"Content-Type":"application/json"},r=null){this.apiEndpoint=t,this.headers=e,this.method=r}async fetch(t,e=null){const r=Cw(new URL(t??"",this.apiEndpoint).href,e),o=this.method??(null!==e?"POST":"GET"),n=new Headers(this.headers||{});null===e||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&e?JSON.stringify(e):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}}function Sw(t,e,r={"Content-Type":"application/json"},o){R.container.registerInstance(t,new Ew(e,r,o))}R.container.registerInstance("default",new Ew(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var $w=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let Tw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}};Tw=$w([I()],Tw),R.container.register(xw,{useClass:Tw});let Ow=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}};Ow=$w([I()],Ow),R.container.register(xw,{useClass:Ow});let Iw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var r=t.getAttribute("data-exists-path");const o=R.container.isRegistered(e)?R.container.resolve(e):new Ew(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=kw(await o.fetch(r,{value:t.value}));return null!=e&&e.length>0}return!1}};Iw=$w([I()],Iw),R.container.register(xw,{useClass:Iw});const Pw=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:o}=e;return{kind:r,elements:o,finisher(e){customElements.define(t,e)}}})(t,e),Rw=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function Mw(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):Rw(t,e)}var Lw;null===(Lw=window.HTMLSlotElement)||void 0===Lw||Lw.prototype.assignedElements;const jw=window,Dw=jw.ShadowRoot&&(void 0===jw.ShadyCSS||jw.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nw=Symbol(),zw=new WeakMap;class Hw{constructor(t,e,r){if(this._$cssResult$=!0,r!==Nw)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Dw&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=zw.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&zw.set(e,t))}return t}toString(){return this.cssText}}const qw=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new Hw(r,t,Nw)},Uw=Dw?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new Hw("string"==typeof t?t:t+"",void 0,Nw))(e)})(t):t;var Bw;const Vw=window,Fw=Vw.trustedTypes,Ww=Fw?Fw.emptyScript:"",Kw=Vw.reactiveElementPolyfillSupport,Xw={toAttribute(t,e){switch(e){case Boolean:t=t?Ww:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},Gw=(t,e)=>e!==t&&(e==e||t==t),Jw={attribute:!0,type:String,converter:Xw,reflect:!1,hasChanged:Gw},Qw="finalized";class Yw extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const o=this._$Ep(r,e);void 0!==o&&(this._$Ev.set(o,r),t.push(o))})),t}static createProperty(t,e=Jw){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Jw}static finalize(){if(this.hasOwnProperty(Qw))return!1;this[Qw]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(Uw(t))}else void 0!==t&&e.push(Uw(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Dw?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),o=jw.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=Jw){var o;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==(null===(o=r.converter)||void 0===o?void 0:o.toAttribute)?r.converter:Xw).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null}}_$AK(t,e){var r;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:Xw;this._$El=n,this[n]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let o=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||Gw)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var Zw;Yw[Qw]=!0,Yw.elementProperties=new Map,Yw.elementStyles=[],Yw.shadowRootOptions={mode:"open"},null==Kw||Kw({ReactiveElement:Yw}),(null!==(Bw=Vw.reactiveElementVersions)&&void 0!==Bw?Bw:Vw.reactiveElementVersions=[]).push("1.6.3");const t_=window,e_=t_.trustedTypes,r_=e_?e_.createPolicy("lit-html",{createHTML:t=>t}):void 0,o_="$lit$",n_=`lit$${(Math.random()+"").slice(9)}$`,i_="?"+n_,s_=`<${i_}>`,a_=document,l_=()=>a_.createComment(""),c_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u_=Array.isArray,d_="[ \t\n\f\r]",p_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,h_=/-->/g,f_=/>/g,b_=RegExp(`>|${d_}(?:([^\\s"'>=/]+)(${d_}*=${d_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g_=/'/g,v_=/"/g,m_=/^(?:script|style|textarea|title)$/i,y_=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),w_=(y_(1),y_(2),Symbol.for("lit-noChange")),__=Symbol.for("lit-nothing"),x_=new WeakMap,k_=a_.createTreeWalker(a_,129,null,!1);function C_(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r_?r_.createHTML(e):e}class A_{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=p_;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===p_?"!--"===l[1]?s=h_:void 0!==l[1]?s=f_:void 0!==l[2]?(m_.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=b_):void 0!==l[3]&&(s=b_):s===b_?">"===l[0]?(s=null!=n?n:p_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?b_:'"'===l[3]?v_:g_):s===v_||s===g_?s=b_:s===h_||s===f_?s=p_:(s=b_,n=void 0);const d=s===b_&&t[e+1].startsWith("/>")?" ":"";i+=s===p_?r+s_:c>=0?(o.push(a),r.slice(0,c)+o_+r.slice(c)+n_+d):r+n_+(-2===c?(o.push(void 0),e):d)}return[C_(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=A_.createElement(l,r),k_.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=k_.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(o_)||e.startsWith(n_)){const r=c[i++];if(t.push(e),void 0!==r){const t=o.getAttribute(r.toLowerCase()+o_).split(n_),e=/([.?@])?(.*)/.exec(r);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?O_:"?"===e[1]?P_:"@"===e[1]?R_:T_})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(m_.test(o.tagName)){const t=o.textContent.split(n_),e=t.length-1;if(e>0){o.textContent=e_?e_.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],l_()),k_.nextNode(),a.push({type:2,index:++n});o.append(t[e],l_())}}}else if(8===o.nodeType)if(o.data===i_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(n_,t+1));)a.push({type:7,index:n}),t+=n_.length-1}n++}}static createElement(t,e){const r=a_.createElement("template");return r.innerHTML=t,r}}function E_(t,e,r=t,o){var n,i,s,a;if(e===w_)return e;let l=void 0!==o?null===(n=r._$Co)||void 0===n?void 0:n[o]:r._$Cl;const c=c_(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,r,o)),void 0!==o?(null!==(s=(a=r)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:r._$Cl=l),void 0!==l&&(e=E_(t,l._$AS(t,e.values),l,o)),e}class S_{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:a_).importNode(r,!0);k_.currentNode=n;let i=k_.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new $_(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new M_(i,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(i=k_.nextNode(),s++)}return k_.currentNode=a_,n}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class $_{constructor(t,e,r,o){var n;this.type=2,this._$AH=__,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E_(this,t,e),c_(t)?t===__||null==t||""===t?(this._$AH!==__&&this._$AR(),this._$AH=__):t!==this._$AH&&t!==w_&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>u_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==__&&c_(this._$AH)?this._$AA.nextSibling.data=t:this.$(a_.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A_.createElement(C_(o.h,o.h[0]),this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(r);else{const t=new S_(n,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=x_.get(t.strings);return void 0===e&&x_.set(t.strings,e=new A_(t)),e}T(t){u_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new $_(this.k(l_()),this.k(l_()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class T_{constructor(t,e,r,o,n){this.type=1,this._$AH=__,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=__}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=E_(this,t,e,0),i=!c_(t)||t!==this._$AH&&t!==w_,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=E_(this,o[r+s],e,s),a===w_&&(a=this._$AH[s]),i||(i=!c_(a)||a!==this._$AH[s]),a===__?t=__:t!==__&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===__?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class O_ extends T_{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===__?void 0:t}}const I_=e_?e_.emptyScript:"";class P_ extends T_{constructor(){super(...arguments),this.type=4}j(t){t&&t!==__?this.element.setAttribute(this.name,I_):this.element.removeAttribute(this.name)}}class R_ extends T_{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=E_(this,t,e,0))&&void 0!==r?r:__)===w_)return;const o=this._$AH,n=t===__&&o!==__||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==__&&(o===__||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class M_{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){E_(this,t)}}const L_=t_.litHtmlPolyfillSupport;var j_;null==L_||L_(A_,$_),(null!==(Zw=t_.litHtmlVersions)&&void 0!==Zw?Zw:t_.litHtmlVersions=[]).push("2.8.0");const D_=window,N_=D_.trustedTypes,z_=N_?N_.createPolicy("lit-html",{createHTML:t=>t}):void 0,H_="$lit$",q_=`lit$${(Math.random()+"").slice(9)}$`,U_="?"+q_,B_=`<${U_}>`,V_=document,F_=()=>V_.createComment(""),W_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K_=Array.isArray,X_="[ \t\n\f\r]",G_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J_=/-->/g,Q_=/>/g,Y_=RegExp(`>|${X_}(?:([^\\s"'>=/]+)(${X_}*=${X_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z_=/'/g,tx=/"/g,ex=/^(?:script|style|textarea|title)$/i,rx=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ox=rx(1),nx=(rx(2),Symbol.for("lit-noChange")),ix=Symbol.for("lit-nothing"),sx=new WeakMap,ax=V_.createTreeWalker(V_,129,null,!1);function lx(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==z_?z_.createHTML(e):e}class cx{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=G_;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===G_?"!--"===l[1]?s=J_:void 0!==l[1]?s=Q_:void 0!==l[2]?(ex.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Y_):void 0!==l[3]&&(s=Y_):s===Y_?">"===l[0]?(s=null!=n?n:G_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Y_:'"'===l[3]?tx:Z_):s===tx||s===Z_?s=Y_:s===J_||s===Q_?s=G_:(s=Y_,n=void 0);const d=s===Y_&&t[e+1].startsWith("/>")?" ":"";i+=s===G_?r+B_:c>=0?(o.push(a),r.slice(0,c)+H_+r.slice(c)+q_+d):r+q_+(-2===c?(o.push(void 0),e):d)}return[lx(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=cx.createElement(l,r),ax.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ax.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(H_)||e.startsWith(q_)){const r=c[i++];if(t.push(e),void 0!==r){const t=o.getAttribute(r.toLowerCase()+H_).split(q_),e=/([.?@])?(.*)/.exec(r);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?fx:"?"===e[1]?gx:"@"===e[1]?vx:hx})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(ex.test(o.tagName)){const t=o.textContent.split(q_),e=t.length-1;if(e>0){o.textContent=N_?N_.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],F_()),ax.nextNode(),a.push({type:2,index:++n});o.append(t[e],F_())}}}else if(8===o.nodeType)if(o.data===U_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(q_,t+1));)a.push({type:7,index:n}),t+=q_.length-1}n++}}static createElement(t,e){const r=V_.createElement("template");return r.innerHTML=t,r}}function ux(t,e,r=t,o){var n,i,s,a;if(e===nx)return e;let l=void 0!==o?null===(n=r._$Co)||void 0===n?void 0:n[o]:r._$Cl;const c=W_(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,r,o)),void 0!==o?(null!==(s=(a=r)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:r._$Cl=l),void 0!==l&&(e=ux(t,l._$AS(t,e.values),l,o)),e}class dx{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:V_).importNode(r,!0);ax.currentNode=n;let i=ax.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new px(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new mx(i,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(i=ax.nextNode(),s++)}return ax.currentNode=V_,n}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class px{constructor(t,e,r,o){var n;this.type=2,this._$AH=ix,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ux(this,t,e),W_(t)?t===ix||null==t||""===t?(this._$AH!==ix&&this._$AR(),this._$AH=ix):t!==this._$AH&&t!==nx&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>K_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ix&&W_(this._$AH)?this._$AA.nextSibling.data=t:this.$(V_.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=cx.createElement(lx(o.h,o.h[0]),this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(r);else{const t=new dx(n,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=sx.get(t.strings);return void 0===e&&sx.set(t.strings,e=new cx(t)),e}T(t){K_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new px(this.k(F_()),this.k(F_()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class hx{constructor(t,e,r,o,n){this.type=1,this._$AH=ix,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ix}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=ux(this,t,e,0),i=!W_(t)||t!==this._$AH&&t!==nx,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=ux(this,o[r+s],e,s),a===nx&&(a=this._$AH[s]),i||(i=!W_(a)||a!==this._$AH[s]),a===ix?t=ix:t!==ix&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===ix?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class fx extends hx{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ix?void 0:t}}const bx=N_?N_.emptyScript:"";class gx extends hx{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ix?this.element.setAttribute(this.name,bx):this.element.removeAttribute(this.name)}}class vx extends hx{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=ux(this,t,e,0))&&void 0!==r?r:ix)===nx)return;const o=this._$AH,n=t===ix&&o!==ix||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==ix&&(o===ix||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class mx{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){ux(this,t)}}const yx=D_.litHtmlPolyfillSupport;var wx,_x;null==yx||yx(cx,px),(null!==(j_=D_.litHtmlVersions)&&void 0!==j_?j_:D_.litHtmlVersions=[]).push("2.8.0");class xx extends Yw{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{var o,n;const i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:e;let s=i._$litPart$;if(void 0===s){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;i._$litPart$=s=new px(e.insertBefore(F_(),t),t,void 0,null!=r?r:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return nx}}xx.finalized=!0,xx._$litElement$=!0,null===(wx=globalThis.litElementHydrateSupport)||void 0===wx||wx.call(globalThis,{LitElement:xx});const kx=globalThis.litElementPolyfillSupport;null==kx||kx({LitElement:xx}),(null!==(_x=globalThis.litElementVersions)&&void 0!==_x?_x:globalThis.litElementVersions=[]).push("3.3.3");var Cx=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ax=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Ex=(t=>{class e extends t{constructor(...t){super(...t),this.apiEndpoint=null,this.method="GET",this.error=!1,this.jsonData={},this.accept="application/json",this.headerTag='script[name="headers"]',this.html=null,this.fetchOnLoad=!0}async connectedCallback(){if(super.connectedCallback(),this.fetchOnLoad){const t=this.getHeaders(),e=this.getPayload(t);await this.fetchData(t,e)}}getHeaders(){const t=this.querySelector(this.headerTag);let e={Accept:this.accept};if(t&&null!==t.textContent)try{e=JSON.parse(t.textContent)}catch(t){console.error("Error parsing header JSON:",t)}return e}getPayload(t){const e=this.querySelector('script[name="payload"]');let r=null;if(e&&null!==e.textContent)try{r=JSON.parse(e.textContent),r&&(t["Content-Type"]="application/json")}catch(t){console.error("Error parsing payload JSON:",t)}return r}async fetchData(t,e){if(null!==this.apiEndpoint){null!==e&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:t,body:e?JSON.stringify(e):null});"application/json"===this.accept?(this.jsonData=await r.json(),this.html=null):(this.html=await r.text(),this.jsonData=null),this.dispatchEvent(new CustomEvent("qbo-updated",{bubbles:!0,composed:!0}))}catch(t){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:t}))}}}}return Cx([Mw({type:URL}),Ax("design:type",Object)],e.prototype,"apiEndpoint",void 0),Cx([Mw({type:String}),Ax("design:type",Object)],e.prototype,"method",void 0),Cx([Mw({type:Boolean}),Ax("design:type",Object)],e.prototype,"error",void 0),Cx([Mw({type:Object}),Ax("design:type",Object)],e.prototype,"jsonData",void 0),Cx([Mw({type:String}),Ax("design:type",Object)],e.prototype,"accept",void 0),Cx([Mw({type:String}),Ax("design:type",Object)],e.prototype,"headerTag",void 0),Cx([Mw({type:String}),Ax("design:type",Object)],e.prototype,"html",void 0),Cx([Mw({type:Boolean}),Ax("design:type",Object)],e.prototype,"fetchOnLoad",void 0),e})(xx);var Sx=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},$x=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Tx=class extends Ex{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){if(this.targetElement=null!=this.target?this.closest(this.target):this,null==this.targetElement)throw new Error(`Could not find target element ${this.target}`);this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(t){(super.getPayload(t)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const t=[];this.targetElement.querySelectorAll(this.selector).forEach((e=>{const r=e.getAttribute("data-badge");null!==r&&t.push(r)})),this.values=t}async fetchData(t,e){super.fetchData(t,e)}render(){this.targetElement.querySelectorAll(this.selector).forEach((t=>{t.innerHTML=t.getAttribute("data-badge")??""}))}};Sx([Mw({type:Boolean}),$x("design:type",Object)],Tx.prototype,"loading",void 0),Sx([Mw(),$x("design:type",Object)],Tx.prototype,"target",void 0),Sx([Mw(),$x("design:type",Array)],Tx.prototype,"values",void 0),Sx([Mw(),$x("design:type",Object)],Tx.prototype,"selector",void 0),Tx=Sx([Pw("qbo-badge")],Tx);var Ox=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ix=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Px=class extends Ex{constructor(){super(...arguments),this.listId=null,this.min=3,this.options=[],this.renderInHost=!0,this.text=null,this.value=null,this.fetchOnLoad=!1,this.endpoint=null,this.headers=null,this.payload={},this.targets=null}connectedCallback(){super.connectedCallback(),this.targets=document.querySelectorAll(`input[list=${this.listId}]`);const t=this;this.targets.forEach((function(e){e.addEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.addEventListener("change",t.setOutputValue.bind(t))})),this.endpoint=this.apiEndpoint.toString(),this.headers=this.getHeaders(),this.payload=this.getPayload(this.headers)}disconnectedCallback(){const t=this;this.targets?.forEach((function(e){e.removeEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.removeEventListener("change",t.setOutputValue.bind(t))})),super.disconnectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async buildDataList(t){const e=t.target;e instanceof HTMLInputElement&&e.value.length>=this.min&&(null!=this.endpoint&&(this.apiEndpoint=new URL(this.endpoint.replace("{value}",`${e.value}`),this.baseURI)),await this.fetchData(this.headers,this.payload))}setOutputValue(t){const e=t.target;let r=null;if(e.hasAttribute("data-for")){const t=e.getAttribute("data-for");r=document.getElementById(t)||e.querySelector(t)||e.parentElement?.querySelector(t)||document.getElementsByName(t)[0]}if(e instanceof HTMLInputElement&&r instanceof HTMLInputElement){const t=this.text,o=this.options?.filter((function(r){return r[t]==e.value}));e.value=1==o?.length?o[0][`${this.text}`]:"",r.value=1==o?.length?o[0][`${this.value}`]:""}}render(){return this.options=kw(this.jsonData),this.options&&0!==this.options.length?(null!=this.options&&(this.value??=Object.keys(this.options[0])[0],this.text??=Object.keys(this.options[0])[1]??this.value),ox`
55
+ `}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(t){const e=t.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((t=>{(t.textContent?.toLowerCase()||"").includes(e)?this.cssClass?t.classList.remove(this.cssClass):t instanceof HTMLElement&&(t.style.display=""):this.cssClass?t.classList.add(this.cssClass):t instanceof HTMLElement&&(t.style.display="none")}))}}Qw([Ww({type:String}),Yw("design:type",Object)],Zw.prototype,"selector",void 0),Qw([Ww({type:String}),Yw("design:type",Object)],Zw.prototype,"cssClass",void 0),Qw([Ww({type:String}),Yw("design:type",Object)],Zw.prototype,"selectorRoot",void 0),customElements.define("qbo-find",Zw);const t_={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},e_="ApiServiceToken";function r_(t){return R.container.resolve(t)}const o_="ValidateToken";function n_(t,e){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),null}if(Array.isArray(t))return t;if("object"==typeof t&&null!==t)for(const r in t){const o=t[r];if(Array.isArray(o))return o;if("object"==typeof o){const t=n_(o,e);if(t)return t}}return null}function i_(t,...e){const r=/\${(.*?)}/g;let o=t;for(let t=0;t<e.length;t++){const n=e[t];o=o.replace(r,((t,e)=>{const r=e.split(/\.|\[|\]/).filter((t=>""!==t));let o=n;for(let e of r){if(void 0===o[e])return t;o=o[e]}return o}))}return o=o.replace(r,(()=>"")),o}function s_(t,e,r,o=!0){if(null!=t&&null!=e){for(;o&&t.firstChild;)t.removeChild(t.firstChild);r.map(((r,o)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=i_(n.firstElementChild?.innerHTML??"",r)),t.appendChild(n)}))}}class a_{constructor(t,e={"Content-Type":"application/json"},r=null){this.apiEndpoint=t,this.headers=e,this.method=r}async fetch(t,e=null){const r=i_(new URL(t??"",this.apiEndpoint).href,e),o=this.method??(null!==e?"POST":"GET"),n=new Headers(this.headers||{});null===e||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&e?JSON.stringify(e):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}}function l_(t,e,r={"Content-Type":"application/json"},o){R.container.registerInstance(t,new a_(e,r,o))}R.container.registerInstance("default",new a_(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var c_=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let u_=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}};u_=c_([I()],u_),R.container.register(o_,{useClass:u_});let d_=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}};d_=c_([I()],d_),R.container.register(o_,{useClass:d_});let p_=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var r=t.getAttribute("data-exists-path");const o=R.container.isRegistered(e)?R.container.resolve(e):new a_(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=n_(await o.fetch(r,{value:t.value}));return null!=e&&e.length>0}return!1}};p_=c_([I()],p_),R.container.register(o_,{useClass:p_});const h_=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:o}=e;return{kind:r,elements:o,finisher(e){customElements.define(t,e)}}})(t,e),f_=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function b_(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):f_(t,e)}var g_;null===(g_=window.HTMLSlotElement)||void 0===g_||g_.prototype.assignedElements;const v_=window,m_=v_.ShadowRoot&&(void 0===v_.ShadyCSS||v_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,y_=Symbol(),w_=new WeakMap;class __{constructor(t,e,r){if(this._$cssResult$=!0,r!==y_)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(m_&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=w_.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&w_.set(e,t))}return t}toString(){return this.cssText}}const x_=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new __(r,t,y_)},k_=m_?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new __("string"==typeof t?t:t+"",void 0,y_))(e)})(t):t;var C_;const A_=window,E_=A_.trustedTypes,S_=E_?E_.emptyScript:"",$_=A_.reactiveElementPolyfillSupport,T_={toAttribute(t,e){switch(e){case Boolean:t=t?S_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},O_=(t,e)=>e!==t&&(e==e||t==t),I_={attribute:!0,type:String,converter:T_,reflect:!1,hasChanged:O_},P_="finalized";class R_ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const o=this._$Ep(r,e);void 0!==o&&(this._$Ev.set(o,r),t.push(o))})),t}static createProperty(t,e=I_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||I_}static finalize(){if(this.hasOwnProperty(P_))return!1;this[P_]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(k_(t))}else void 0!==t&&e.push(k_(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{m_?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),o=v_.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=I_){var o;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==(null===(o=r.converter)||void 0===o?void 0:o.toAttribute)?r.converter:T_).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null}}_$AK(t,e){var r;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:T_;this._$El=n,this[n]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let o=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||O_)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var M_;R_[P_]=!0,R_.elementProperties=new Map,R_.elementStyles=[],R_.shadowRootOptions={mode:"open"},null==$_||$_({ReactiveElement:R_}),(null!==(C_=A_.reactiveElementVersions)&&void 0!==C_?C_:A_.reactiveElementVersions=[]).push("1.6.3");const L_=window,j_=L_.trustedTypes,D_=j_?j_.createPolicy("lit-html",{createHTML:t=>t}):void 0,N_="$lit$",z_=`lit$${(Math.random()+"").slice(9)}$`,H_="?"+z_,q_=`<${H_}>`,U_=document,B_=()=>U_.createComment(""),F_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V_=Array.isArray,W_="[ \t\n\f\r]",K_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X_=/-->/g,G_=/>/g,J_=RegExp(`>|${W_}(?:([^\\s"'>=/]+)(${W_}*=${W_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q_=/'/g,Y_=/"/g,Z_=/^(?:script|style|textarea|title)$/i,tx=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ex=tx(1),rx=(tx(2),Symbol.for("lit-noChange")),ox=Symbol.for("lit-nothing"),nx=new WeakMap,ix=U_.createTreeWalker(U_,129,null,!1);function sx(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==D_?D_.createHTML(e):e}class ax{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=K_;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===K_?"!--"===l[1]?s=X_:void 0!==l[1]?s=G_:void 0!==l[2]?(Z_.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=J_):void 0!==l[3]&&(s=J_):s===J_?">"===l[0]?(s=null!=n?n:K_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?J_:'"'===l[3]?Y_:Q_):s===Y_||s===Q_?s=J_:s===X_||s===G_?s=K_:(s=J_,n=void 0);const d=s===J_&&t[e+1].startsWith("/>")?" ":"";i+=s===K_?r+q_:c>=0?(o.push(a),r.slice(0,c)+N_+r.slice(c)+z_+d):r+z_+(-2===c?(o.push(void 0),e):d)}return[sx(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ax.createElement(l,r),ix.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ix.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(N_)||e.startsWith(z_)){const r=c[i++];if(t.push(e),void 0!==r){const t=o.getAttribute(r.toLowerCase()+N_).split(z_),e=/([.?@])?(.*)/.exec(r);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?px:"?"===e[1]?fx:"@"===e[1]?bx:dx})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Z_.test(o.tagName)){const t=o.textContent.split(z_),e=t.length-1;if(e>0){o.textContent=j_?j_.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],B_()),ix.nextNode(),a.push({type:2,index:++n});o.append(t[e],B_())}}}else if(8===o.nodeType)if(o.data===H_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(z_,t+1));)a.push({type:7,index:n}),t+=z_.length-1}n++}}static createElement(t,e){const r=U_.createElement("template");return r.innerHTML=t,r}}function lx(t,e,r=t,o){var n,i,s,a;if(e===rx)return e;let l=void 0!==o?null===(n=r._$Co)||void 0===n?void 0:n[o]:r._$Cl;const c=F_(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,r,o)),void 0!==o?(null!==(s=(a=r)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:r._$Cl=l),void 0!==l&&(e=lx(t,l._$AS(t,e.values),l,o)),e}class cx{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:U_).importNode(r,!0);ix.currentNode=n;let i=ix.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ux(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new gx(i,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(i=ix.nextNode(),s++)}return ix.currentNode=U_,n}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class ux{constructor(t,e,r,o){var n;this.type=2,this._$AH=ox,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lx(this,t,e),F_(t)?t===ox||null==t||""===t?(this._$AH!==ox&&this._$AR(),this._$AH=ox):t!==this._$AH&&t!==rx&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>V_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ox&&F_(this._$AH)?this._$AA.nextSibling.data=t:this.$(U_.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ax.createElement(sx(o.h,o.h[0]),this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(r);else{const t=new cx(n,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=nx.get(t.strings);return void 0===e&&nx.set(t.strings,e=new ax(t)),e}T(t){V_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new ux(this.k(B_()),this.k(B_()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class dx{constructor(t,e,r,o,n){this.type=1,this._$AH=ox,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ox}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=lx(this,t,e,0),i=!F_(t)||t!==this._$AH&&t!==rx,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=lx(this,o[r+s],e,s),a===rx&&(a=this._$AH[s]),i||(i=!F_(a)||a!==this._$AH[s]),a===ox?t=ox:t!==ox&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===ox?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class px extends dx{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ox?void 0:t}}const hx=j_?j_.emptyScript:"";class fx extends dx{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ox?this.element.setAttribute(this.name,hx):this.element.removeAttribute(this.name)}}class bx extends dx{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=lx(this,t,e,0))&&void 0!==r?r:ox)===rx)return;const o=this._$AH,n=t===ox&&o!==ox||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==ox&&(o===ox||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class gx{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){lx(this,t)}}const vx=L_.litHtmlPolyfillSupport;var mx,yx;null==vx||vx(ax,ux),(null!==(M_=L_.litHtmlVersions)&&void 0!==M_?M_:L_.litHtmlVersions=[]).push("2.8.0");class wx extends R_{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{var o,n;const i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:e;let s=i._$litPart$;if(void 0===s){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;i._$litPart$=s=new ux(e.insertBefore(B_(),t),t,void 0,null!=r?r:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return rx}}wx.finalized=!0,wx._$litElement$=!0,null===(mx=globalThis.litElementHydrateSupport)||void 0===mx||mx.call(globalThis,{LitElement:wx});const _x=globalThis.litElementPolyfillSupport;null==_x||_x({LitElement:wx}),(null!==(yx=globalThis.litElementVersions)&&void 0!==yx?yx:globalThis.litElementVersions=[]).push("3.3.3");var xx=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},kx=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Cx=(t=>{class e extends t{constructor(...t){super(...t),this.apiEndpoint=null,this.method="GET",this.error=!1,this.jsonData={},this.accept="application/json",this.headerTag='script[name="headers"]',this.html=null,this.fetchOnLoad=!0}async connectedCallback(){if(super.connectedCallback(),this.fetchOnLoad){const t=this.getHeaders(),e=this.getPayload(t);await this.fetchData(t,e)}}getHeaders(){const t=this.querySelector(this.headerTag);let e={Accept:this.accept};if(t&&null!==t.textContent)try{e=JSON.parse(t.textContent)}catch(t){console.error("Error parsing header JSON:",t)}return e}getPayload(t){const e=this.querySelector('script[name="payload"]');let r=null;if(e&&null!==e.textContent)try{r=JSON.parse(e.textContent),r&&(t["Content-Type"]="application/json")}catch(t){console.error("Error parsing payload JSON:",t)}return r}async fetchData(t,e){if(null!==this.apiEndpoint){null!==e&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:t,body:e?JSON.stringify(e):null});"application/json"===this.accept?(this.jsonData=await r.json(),this.html=null):(this.html=await r.text(),this.jsonData=null),this.dispatchEvent(new CustomEvent("qbo-updated",{bubbles:!0,composed:!0}))}catch(t){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:t}))}}}}return xx([b_({type:URL}),kx("design:type",Object)],e.prototype,"apiEndpoint",void 0),xx([b_({type:String}),kx("design:type",Object)],e.prototype,"method",void 0),xx([b_({type:Boolean}),kx("design:type",Object)],e.prototype,"error",void 0),xx([b_({type:Object}),kx("design:type",Object)],e.prototype,"jsonData",void 0),xx([b_({type:String}),kx("design:type",Object)],e.prototype,"accept",void 0),xx([b_({type:String}),kx("design:type",Object)],e.prototype,"headerTag",void 0),xx([b_({type:String}),kx("design:type",Object)],e.prototype,"html",void 0),xx([b_({type:Boolean}),kx("design:type",Object)],e.prototype,"fetchOnLoad",void 0),e})(wx);var Ax=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ex=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Sx=class extends Cx{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){if(this.targetElement=null!=this.target?this.closest(this.target):this,null==this.targetElement)throw new Error(`Could not find target element ${this.target}`);this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(t){(super.getPayload(t)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const t=[];this.targetElement.querySelectorAll(this.selector).forEach((e=>{const r=e.getAttribute("data-badge");null!==r&&t.push(r)})),this.values=t}async fetchData(t,e){super.fetchData(t,e)}render(){this.targetElement.querySelectorAll(this.selector).forEach((t=>{t.innerHTML=t.getAttribute("data-badge")??""}))}};Ax([b_({type:Boolean}),Ex("design:type",Object)],Sx.prototype,"loading",void 0),Ax([b_(),Ex("design:type",Object)],Sx.prototype,"target",void 0),Ax([b_(),Ex("design:type",Array)],Sx.prototype,"values",void 0),Ax([b_(),Ex("design:type",Object)],Sx.prototype,"selector",void 0),Sx=Ax([h_("qbo-badge")],Sx);var $x=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Tx=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Ox=class extends Cx{constructor(){super(...arguments),this.listId=null,this.min=3,this.options=[],this.renderInHost=!0,this.text=null,this.value=null,this.fetchOnLoad=!1,this.endpoint=null,this.headers=null,this.payload={},this.targets=null}connectedCallback(){super.connectedCallback(),this.targets=document.querySelectorAll(`input[list=${this.listId}]`);const t=this;this.targets.forEach((function(e){e.addEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.addEventListener("change",t.setOutputValue.bind(t))})),this.endpoint=this.apiEndpoint.toString(),this.headers=this.getHeaders(),this.payload=this.getPayload(this.headers)}disconnectedCallback(){const t=this;this.targets?.forEach((function(e){e.removeEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.removeEventListener("change",t.setOutputValue.bind(t))})),super.disconnectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async buildDataList(t){const e=t.target;e instanceof HTMLInputElement&&e.value.length>=this.min&&(null!=this.endpoint&&(this.apiEndpoint=new URL(this.endpoint.replace("{value}",`${e.value}`),this.baseURI)),await this.fetchData(this.headers,this.payload))}setOutputValue(t){const e=t.target;let r=null;if(e.hasAttribute("data-for")){const t=e.getAttribute("data-for");r=document.getElementById(t)||e.querySelector(t)||e.parentElement?.querySelector(t)||document.getElementsByName(t)[0]}if(e instanceof HTMLInputElement&&r instanceof HTMLInputElement){const t=this.text,o=this.options?.filter((function(r){return r[t]==e.value}));e.value=1==o?.length?o[0][`${this.text}`]:"",r.value=1==o?.length?o[0][`${this.value}`]:""}}render(){return this.options=n_(this.jsonData),this.options&&0!==this.options.length?(null!=this.options&&(this.value??=Object.keys(this.options[0])[0],this.text??=Object.keys(this.options[0])[1]??this.value),ex`
56
56
  <datalist id=${this.listId}>
57
- ${this.options.map((t=>ox`<option value="${t[this.text]}" data-value="${t[this.value]}"/>`))}
58
- </datalist>`):ox``}};Ox([Mw({type:String}),Ix("design:type",Object)],Px.prototype,"listId",void 0),Ox([Mw({type:Number}),Ix("design:type",Object)],Px.prototype,"min",void 0),Ox([Mw({type:Array}),Ix("design:type",Object)],Px.prototype,"options",void 0),Ox([Mw({type:Boolean}),Ix("design:type",Object)],Px.prototype,"renderInHost",void 0),Ox([Mw({type:String}),Ix("design:type",Object)],Px.prototype,"text",void 0),Ox([Mw({type:String}),Ix("design:type",Object)],Px.prototype,"value",void 0),Ox([Mw({type:Boolean}),Ix("design:type",Object)],Px.prototype,"fetchOnLoad",void 0),Px=Ox([Pw("qbo-datalist")],Px);var Rx=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Mx=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Lx=class extends Ex{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[qw`
57
+ ${this.options.map((t=>ex`<option value="${t[this.text]}" data-value="${t[this.value]}"/>`))}
58
+ </datalist>`):ex``}};$x([b_({type:String}),Tx("design:type",Object)],Ox.prototype,"listId",void 0),$x([b_({type:Number}),Tx("design:type",Object)],Ox.prototype,"min",void 0),$x([b_({type:Array}),Tx("design:type",Object)],Ox.prototype,"options",void 0),$x([b_({type:Boolean}),Tx("design:type",Object)],Ox.prototype,"renderInHost",void 0),$x([b_({type:String}),Tx("design:type",Object)],Ox.prototype,"text",void 0),$x([b_({type:String}),Tx("design:type",Object)],Ox.prototype,"value",void 0),$x([b_({type:Boolean}),Tx("design:type",Object)],Ox.prototype,"fetchOnLoad",void 0),Ox=$x([h_("qbo-datalist")],Ox);var Ix=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Px=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Rx=class extends Cx{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[x_`
59
59
  /* Add any custom styles here */
60
60
  .foo { color: red; }
61
- `]}async connectedCallback(){super.connectedCallback()}render(){return ox`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Rx([Mw({type:Boolean}),Mx("design:type",Object)],Lx.prototype,"open",void 0),Rx([Mw({type:Boolean}),Mx("design:type",Object)],Lx.prototype,"loading",void 0),Rx([Mw({type:Boolean}),Mx("design:type",Object)],Lx.prototype,"renderInHost",void 0),Lx=Rx([Pw("qbo-docviewer")],Lx);var jx,Dx=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Nx=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let zx=class extends xx{static{jx=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=t=>{const e=t.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),this.logger.logTrace(`${this.name}${e.name} was set to ${e.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=t=>{if(t.stopPropagation(),console.log(t),t instanceof CustomEvent&&t.detail.formData instanceof FormData)for(let[e,r]of t.detail.formData.entries())this.value.set(e,r),console.log(`Added ${e}=${r} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals(),this.logger=R.container.resolve(te)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=Cw(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(t){super.updated(t),this.establishFormData()}render(){return ox`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea");Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof jx)&&t.name)).forEach((t=>{const e=t;if(e instanceof HTMLSelectElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof HTMLTextAreaElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof jx)for(let[t,r]of e.value.entries())this.value.set(`${this.name}${t}`,r);else e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type?e.checked&&this.value.set(`${this.name}${e.name}`,e.value):this.value.set(`${this.name}${e.name}`,e.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};Dx([Mw({type:FormData}),Nx("design:type",FormData)],zx.prototype,"value",void 0),Dx([Mw({type:String}),Nx("design:type",Object)],zx.prototype,"template",void 0),Dx([Mw({type:String}),Nx("design:type",Object)],zx.prototype,"name",void 0),Dx([Mw({type:Object}),Nx("design:type",Object)],zx.prototype,"data",void 0),zx=jx=Dx([Pw("qbo-form-element"),Nx("design:paramtypes",[])],zx);var Hx="top",qx="bottom",Ux="right",Bx="left",Vx="auto",Fx=[Hx,qx,Ux,Bx],Wx="start",Kx="end",Xx="clippingParents",Gx="viewport",Jx="popper",Qx="reference",Yx=Fx.reduce((function(t,e){return t.concat([e+"-"+Wx,e+"-"+Kx])}),[]),Zx=[].concat(Fx,[Vx]).reduce((function(t,e){return t.concat([e,e+"-"+Wx,e+"-"+Kx])}),[]),tk="beforeRead",ek="read",rk="afterRead",ok="beforeMain",nk="main",ik="afterMain",sk="beforeWrite",ak="write",lk="afterWrite",ck=[tk,ek,rk,ok,nk,ik,sk,ak,lk];function uk(t){return t?(t.nodeName||"").toLowerCase():null}function dk(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function pk(t){return t instanceof dk(t).Element||t instanceof Element}function hk(t){return t instanceof dk(t).HTMLElement||t instanceof HTMLElement}function fk(t){return"undefined"!=typeof ShadowRoot&&(t instanceof dk(t).ShadowRoot||t instanceof ShadowRoot)}const bk={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];hk(n)&&uk(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});hk(o)&&uk(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function gk(t){return t.split("-")[0]}var vk=Math.max,mk=Math.min,yk=Math.round;function wk(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function _k(){return!/^((?!chrome|android).)*safari/i.test(wk())}function xk(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&hk(t)&&(n=t.offsetWidth>0&&yk(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&yk(o.height)/t.offsetHeight||1);var s=(pk(t)?dk(t):window).visualViewport,a=!_k()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,u=o.width/n,d=o.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function kk(t){var e=xk(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Ck(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&fk(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ak(t){return dk(t).getComputedStyle(t)}function Ek(t){return["table","td","th"].indexOf(uk(t))>=0}function Sk(t){return((pk(t)?t.ownerDocument:t.document)||window.document).documentElement}function $k(t){return"html"===uk(t)?t:t.assignedSlot||t.parentNode||(fk(t)?t.host:null)||Sk(t)}function Tk(t){return hk(t)&&"fixed"!==Ak(t).position?t.offsetParent:null}function Ok(t){for(var e=dk(t),r=Tk(t);r&&Ek(r)&&"static"===Ak(r).position;)r=Tk(r);return r&&("html"===uk(r)||"body"===uk(r)&&"static"===Ak(r).position)?e:r||function(t){var e=/firefox/i.test(wk());if(/Trident/i.test(wk())&&hk(t)&&"fixed"===Ak(t).position)return null;var r=$k(t);for(fk(r)&&(r=r.host);hk(r)&&["html","body"].indexOf(uk(r))<0;){var o=Ak(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function Ik(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Pk(t,e,r){return vk(t,mk(e,r))}function Rk(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Mk(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const Lk={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=gk(r.placement),l=Ik(a),c=[Bx,Ux].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(t,e){return Rk("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Mk(t,Fx))}(n.padding,r),d=kk(i),p="y"===l?Hx:Bx,h="y"===l?qx:Ux,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],b=s[l]-r.rects.reference[l],g=Ok(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-b/2,y=u[p],w=v-d[c]-u[h],_=v/2-d[c]/2+m,x=Pk(y,_,w),k=l;r.modifiersData[o]=((e={})[k]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Ck(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jk(t){return t.split("-")[1]}var Dk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nk(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,b=void 0===f?0:f,g="function"==typeof u?u({x:h,y:b}):{x:h,y:b};h=g.x,b=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Bx,w=Hx,_=window;if(c){var x=Ok(r),k="clientHeight",C="clientWidth";x===dk(r)&&"static"!==Ak(x=Sk(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth"),(n===Hx||(n===Bx||n===Ux)&&i===Kx)&&(w=qx,b-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-o.height,b*=l?1:-1),n!==Bx&&(n!==Hx&&n!==qx||i!==Kx)||(y=Ux,h-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[C])-o.width,h*=l?1:-1)}var A,E=Object.assign({position:a},c&&Dk),S=!0===u?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:yk(r*n)/n||0,y:yk(o*n)/n||0}}({x:h,y:b},dk(r)):{x:h,y:b};return h=S.x,b=S.y,l?Object.assign({},E,((A={})[w]=m?"0":"",A[y]=v?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",A)):Object.assign({},E,((e={})[w]=m?b+"px":"",e[y]=v?h+"px":"",e.transform="",e))}const zk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:gk(e.placement),variation:jk(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Nk(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Nk(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Hk={passive:!0};const qk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=dk(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,Hk)})),a&&l.addEventListener("resize",r.update,Hk),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,Hk)})),a&&l.removeEventListener("resize",r.update,Hk)}},data:{}};var Uk={left:"right",right:"left",bottom:"top",top:"bottom"};function Bk(t){return t.replace(/left|right|bottom|top/g,(function(t){return Uk[t]}))}var Vk={start:"end",end:"start"};function Fk(t){return t.replace(/start|end/g,(function(t){return Vk[t]}))}function Wk(t){var e=dk(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Kk(t){return xk(Sk(t)).left+Wk(t).scrollLeft}function Xk(t){var e=Ak(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Gk(t){return["html","body","#document"].indexOf(uk(t))>=0?t.ownerDocument.body:hk(t)&&Xk(t)?t:Gk($k(t))}function Jk(t,e){var r;void 0===e&&(e=[]);var o=Gk(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=dk(o),s=n?[i].concat(i.visualViewport||[],Xk(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(Jk($k(s)))}function Qk(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Yk(t,e,r){return e===Gx?Qk(function(t,e){var r=dk(t),o=Sk(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=_k();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+Kk(t),y:l}}(t,r)):pk(e)?function(t,e){var r=xk(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):Qk(function(t){var e,r=Sk(t),o=Wk(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=vk(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=vk(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Kk(t),l=-o.scrollTop;return"rtl"===Ak(n||r).direction&&(a+=vk(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Sk(t)))}function Zk(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?gk(n):null,s=n?jk(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Hx:e={x:a,y:r.y-o.height};break;case qx:e={x:a,y:r.y+r.height};break;case Ux:e={x:r.x+r.width,y:l};break;case Bx:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?Ik(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Wx:e[c]=e[c]-(r[u]/2-o[u]/2);break;case Kx:e[c]=e[c]+(r[u]/2-o[u]/2)}}return e}function tC(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=void 0===o?t.placement:o,i=r.strategy,s=void 0===i?t.strategy:i,a=r.boundary,l=void 0===a?Xx:a,c=r.rootBoundary,u=void 0===c?Gx:c,d=r.elementContext,p=void 0===d?Jx:d,h=r.altBoundary,f=void 0!==h&&h,b=r.padding,g=void 0===b?0:b,v=Rk("number"!=typeof g?g:Mk(g,Fx)),m=p===Jx?Qx:Jx,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=Jk($k(t)),r=["absolute","fixed"].indexOf(Ak(t).position)>=0&&hk(t)?Ok(t):t;return pk(r)?e.filter((function(t){return pk(t)&&Ck(t,r)&&"body"!==uk(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=Yk(t,r,o);return e.top=vk(n.top,e.top),e.right=mk(n.right,e.right),e.bottom=mk(n.bottom,e.bottom),e.left=vk(n.left,e.left),e}),Yk(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(pk(w)?w:w.contextElement||Sk(t.elements.popper),l,u,s),x=xk(t.elements.reference),k=Zk({reference:x,element:y,strategy:"absolute",placement:n}),C=Qk(Object.assign({},y,k)),A=p===Jx?C:x,E={top:_.top-A.top+v.top,bottom:A.bottom-_.bottom+v.bottom,left:_.left-A.left+v.left,right:A.right-_.right+v.right},S=t.modifiersData.offset;if(p===Jx&&S){var $=S[n];Object.keys(E).forEach((function(t){var e=[Ux,qx].indexOf(t)>=0?1:-1,r=[Hx,qx].indexOf(t)>=0?"y":"x";E[t]+=$[r]*e}))}return E}const eC={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,b=r.allowedAutoPlacements,g=e.options.placement,v=gk(g),m=l||(v!==g&&f?function(t){if(gk(t)===Vx)return[];var e=Bk(t);return[Fk(t),e,Fk(e)]}(g):[Bk(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(gk(r)===Vx?function(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Zx:l,u=jk(o),d=u?a?Yx:Yx.filter((function(t){return jk(t)===u})):Fx,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var h=p.reduce((function(e,r){return e[r]=tC(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[gk(r)],e}),{});return Object.keys(h).sort((function(t,e){return h[t]-h[e]}))}(e,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:b}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,k=!0,C=y[0],A=0;A<y.length;A++){var E=y[A],S=gk(E),$=jk(E)===Wx,T=[Hx,qx].indexOf(S)>=0,O=T?"width":"height",I=tC(e,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=T?$?Ux:Bx:$?qx:Hx;w[O]>_[O]&&(P=Bk(P));var R=Bk(P),M=[];if(i&&M.push(I[S]<=0),a&&M.push(I[P]<=0,I[R]<=0),M.every((function(t){return t}))){C=E,k=!1;break}x.set(E,M)}if(k)for(var L=function(t){var e=y.find((function(e){var r=x.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},j=f?3:1;j>0&&"break"!==L(j);j--);e.placement!==C&&(e.modifiersData[o]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rC(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function oC(t){return[Hx,Ux,qx,Bx].some((function(e){return t[e]>=0}))}const nC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=tC(e,{elementContext:"reference"}),a=tC(e,{altBoundary:!0}),l=rC(s,o),c=rC(a,n,i),u=oC(l),d=oC(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},iC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=void 0===n?[0,0]:n,s=Zx.reduce((function(t,r){return t[r]=function(t,e,r){var o=gk(t),n=[Bx,Hx].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Bx,Ux].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,e.rects,i),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},sC={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=Zk({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},aC={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,h=void 0===p||p,f=r.tetherOffset,b=void 0===f?0:f,g=tC(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=gk(e.placement),m=jk(e.placement),y=!m,w=Ik(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,A="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,E="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(x){if(i){var T,O="y"===w?Hx:Bx,I="y"===w?qx:Ux,P="y"===w?"height":"width",R=x[w],M=R+g[O],L=R-g[I],j=h?-C[P]/2:0,D=m===Wx?k[P]:C[P],N=m===Wx?-C[P]:-k[P],z=e.elements.arrow,H=h&&z?kk(z):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=q[O],B=q[I],V=Pk(0,k[P],H[P]),F=y?k[P]/2-j-V-U-E.mainAxis:D-V-U-E.mainAxis,W=y?-k[P]/2+j+V+B+E.mainAxis:N+V+B+E.mainAxis,K=e.elements.arrow&&Ok(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(T=null==S?void 0:S[w])?T:0,J=R+W-G,Q=Pk(h?mk(M,R+F-G-X):M,R,h?vk(L,J):L);x[w]=Q,$[w]=Q-R}if(a){var Y,Z="x"===w?Hx:Bx,tt="x"===w?qx:Ux,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Hx,Bx].indexOf(v),st=null!=(Y=null==S?void 0:S[_])?Y:0,at=it?ot:et-k[rt]-C[rt]-st+E.altAxis,lt=it?et+k[rt]+C[rt]-st-E.altAxis:nt,ct=h&&it?function(t,e,r){var o=Pk(t,e,r);return o>r?r:o}(at,et,lt):Pk(h?at:ot,et,h?lt:nt);x[_]=ct,$[_]=ct-et}e.modifiersData[o]=$}},requiresIfExists:["offset"]};function lC(t,e,r){void 0===r&&(r=!1);var o,n,i=hk(e),s=hk(e)&&function(t){var e=t.getBoundingClientRect(),r=yk(e.width)/t.offsetWidth||1,o=yk(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=Sk(e),l=xk(t,s,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==uk(e)||Xk(a))&&(c=(o=e)!==dk(o)&&hk(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Wk(o)),hk(e)?((u=xk(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Kk(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function cC(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var uC={placement:"bottom",modifiers:[],strategy:"absolute"};function dC(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function pC(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?uC:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},uC,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:pk(t)?Jk(t):t.contextElement?Jk(t.contextElement):[],popper:Jk(e)};var s,c,p=function(t){var e=cC(t);return ck.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,o=void 0===r?{}:r,n=t.effect;if("function"==typeof n){var i=n({state:a,name:e,instance:u,options:o});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(dC(e,r)){a.rects={reference:lC(e,Ok(r),"fixed"===a.options.strategy),popper:kk(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var n=a.orderedModifiers[o],i=n.fn,s=n.options,l=void 0===s?{}:s,d=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){d(),c=!0}};if(!dC(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u}}var hC=pC(),fC=pC({defaultModifiers:[qk,sC,zk,bk,iC,eC,aC,Lk,nC]}),bC=pC({defaultModifiers:[qk,sC,zk,bk]});const gC=new Map,vC={set(t,e,r){gC.has(t)||gC.set(t,new Map);const o=gC.get(t);o.has(e)||0===o.size?o.set(e,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,e)=>gC.has(t)&&gC.get(t).get(e)||null,remove(t,e){if(!gC.has(t))return;const r=gC.get(t);r.delete(e),0===r.size&&gC.delete(t)}},mC="transitionend",yC=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),wC=t=>{t.dispatchEvent(new Event(mC))},_C=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),xC=t=>_C(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(yC(t)):null,kC=t=>{if(!_C(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const e=t.closest("summary");if(e&&e.parentNode!==r)return!1;if(null===e)return!1}return e},CC=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),AC=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?AC(t.parentNode):null},EC=()=>{},SC=t=>{t.offsetHeight},$C=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,TC=[],OC=()=>"rtl"===document.documentElement.dir,IC=t=>{var e;e=()=>{const e=$C();if(e){const r=t.NAME,o=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=o,t.jQueryInterface)}},"loading"===document.readyState?(TC.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of TC)t()})),TC.push(e)):e()},PC=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,RC=(t,e,r=!0)=>{if(!r)return void PC(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const o=Number.parseFloat(e),n=Number.parseFloat(r);return o||n?(e=e.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(r))):0})(e)+5;let n=!1;const i=({target:r})=>{r===e&&(n=!0,e.removeEventListener(mC,i),PC(t))};e.addEventListener(mC,i),setTimeout((()=>{n||wC(e)}),o)},MC=(t,e,r,o)=>{const n=t.length;let i=t.indexOf(e);return-1===i?!r&&o?t[n-1]:t[0]:(i+=r?1:-1,o&&(i=(i+n)%n),t[Math.max(0,Math.min(i,n-1))])},LC=/[^.]*(?=\..*)\.|.*/,jC=/\..*/,DC=/::\d+$/,NC={};let zC=1;const HC={mouseenter:"mouseover",mouseleave:"mouseout"},qC=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function UC(t,e){return e&&`${e}::${zC++}`||t.uidEvent||zC++}function BC(t){const e=UC(t);return t.uidEvent=e,NC[e]=NC[e]||{},NC[e]}function VC(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function FC(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=GC(t);return qC.has(i)||(i=t),[o,n,i]}function WC(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=FC(e,r,o);if(e in HC){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const l=BC(t),c=l[a]||(l[a]={}),u=VC(c,s,i?r:null);if(u)return void(u.oneOff=u.oneOff&&n);const d=UC(s,e.replace(LC,"")),p=i?function(t,e,r){return function o(n){const i=t.querySelectorAll(e);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return QC(n,{delegateTarget:s}),o.oneOff&&JC.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return QC(o,{delegateTarget:t}),r.oneOff&&JC.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=d,c[d]=p,t.addEventListener(a,p,i)}function KC(t,e,r,o,n){const i=VC(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function XC(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&KC(t,e,r,s.callable,s.delegationSelector)}function GC(t){return t=t.replace(jC,""),HC[t]||t}const JC={on(t,e,r,o){WC(t,e,r,o,!1)},one(t,e,r,o){WC(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=FC(e,r,o),a=s!==e,l=BC(t),c=l[s]||{},u=e.startsWith(".");if(void 0===i){if(u)for(const r of Object.keys(l))XC(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(DC,"");a&&!e.includes(n)||KC(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;KC(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=$C();let n=null,i=!0,s=!0,a=!1;e!==GC(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=QC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function QC(t,e={}){for(const[r,o]of Object.entries(e))try{t[r]=o}catch(e){Object.defineProperty(t,r,{configurable:!0,get:()=>o})}return t}function YC(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ZC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const tA={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${ZC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ZC(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=YC(t.dataset[o])}return e},getDataAttribute:(t,e)=>YC(t.getAttribute(`data-bs-${ZC(e)}`))};class eA{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const r=_C(e)?tA.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},..._C(e)?tA.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,n]of Object.entries(e)){const e=t[o],i=_C(e)?"element":null==(r=e)?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${n}".`)}var r}}class rA extends eA{constructor(t,e){super(),(t=xC(t))&&(this._element=t,this._config=this._getConfig(e),vC.set(this._element,this.constructor.DATA_KEY,this))}dispose(){vC.remove(this._element,this.constructor.DATA_KEY),JC.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){RC(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return vC.get(xC(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const oA=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&"#"!==r?r.trim():null}return e?e.split(",").map((t=>yC(t))).join(","):null},nA={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const r=[];let o=t.parentNode.closest(e);for(;o;)r.push(o),o=o.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!CC(t)&&kC(t)))},getSelectorFromElement(t){const e=oA(t);return e&&nA.findOne(e)?e:null},getElementFromSelector(t){const e=oA(t);return e?nA.findOne(e):null},getMultipleElementsFromSelector(t){const e=oA(t);return e?nA.find(e):[]}},iA=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;JC.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),CC(this))return;const n=nA.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},sA=".bs.alert",aA=`close${sA}`,lA=`closed${sA}`;class cA extends rA{static get NAME(){return"alert"}close(){if(JC.trigger(this._element,aA).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),JC.trigger(this._element,lA),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=cA.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}iA(cA,"close"),IC(cA);const uA='[data-bs-toggle="button"]';class dA extends rA{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=dA.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}JC.on(document,"click.bs.button.data-api",uA,(t=>{t.preventDefault();const e=t.target.closest(uA);dA.getOrCreateInstance(e).toggle()})),IC(dA);const pA=".bs.swipe",hA=`touchstart${pA}`,fA=`touchmove${pA}`,bA=`touchend${pA}`,gA=`pointerdown${pA}`,vA=`pointerup${pA}`,mA={endCallback:null,leftCallback:null,rightCallback:null},yA={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class wA extends eA{constructor(t,e){super(),this._element=t,t&&wA.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return mA}static get DefaultType(){return yA}static get NAME(){return"swipe"}dispose(){JC.off(this._element,pA)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),PC(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&PC(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(JC.on(this._element,gA,(t=>this._start(t))),JC.on(this._element,vA,(t=>this._end(t))),this._element.classList.add("pointer-event")):(JC.on(this._element,hA,(t=>this._start(t))),JC.on(this._element,fA,(t=>this._move(t))),JC.on(this._element,bA,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const _A=".bs.carousel",xA=".data-api",kA="ArrowLeft",CA="ArrowRight",AA="next",EA="prev",SA="left",$A="right",TA=`slide${_A}`,OA=`slid${_A}`,IA=`keydown${_A}`,PA=`mouseenter${_A}`,RA=`mouseleave${_A}`,MA=`dragstart${_A}`,LA=`load${_A}${xA}`,jA=`click${_A}${xA}`,DA="carousel",NA="active",zA=".active",HA=".carousel-item",qA=zA+HA,UA={[kA]:$A,[CA]:SA},BA={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},VA={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class FA extends rA{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=nA.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===DA&&this.cycle()}static get Default(){return BA}static get DefaultType(){return VA}static get NAME(){return"carousel"}next(){this._slide(AA)}nextWhenVisible(){!document.hidden&&kC(this._element)&&this.next()}prev(){this._slide(EA)}pause(){this._isSliding&&wC(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?JC.one(this._element,OA,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void JC.one(this._element,OA,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?AA:EA;this._slide(o,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&JC.on(this._element,IA,(t=>this._keydown(t))),"hover"===this._config.pause&&(JC.on(this._element,PA,(()=>this.pause())),JC.on(this._element,RA,(()=>this._maybeEnableCycle()))),this._config.touch&&wA.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of nA.find(".carousel-item img",this._element))JC.on(t,MA,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(SA)),rightCallback:()=>this._slide(this._directionToOrder($A)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new wA(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=UA[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=nA.findOne(zA,this._indicatorsElement);e.classList.remove(NA),e.removeAttribute("aria-current");const r=nA.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(NA),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const r=this._getActive(),o=t===AA,n=e||MC(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>JC.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(TA).defaultPrevented)return;if(!r||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";n.classList.add(c),SC(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(NA),r.classList.remove(NA,c,l),this._isSliding=!1,s(OA)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return nA.findOne(qA,this._element)}_getItems(){return nA.find(HA,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return OC()?t===SA?EA:AA:t===SA?AA:EA}_orderToDirection(t){return OC()?t===EA?SA:$A:t===EA?$A:SA}static jQueryInterface(t){return this.each((function(){const e=FA.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}JC.on(document,jA,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=nA.getElementFromSelector(this);if(!e||!e.classList.contains(DA))return;t.preventDefault();const r=FA.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===tA.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),JC.on(window,LA,(()=>{const t=nA.find('[data-bs-ride="carousel"]');for(const e of t)FA.getOrCreateInstance(e)})),IC(FA);const WA=".bs.collapse",KA=`show${WA}`,XA=`shown${WA}`,GA=`hide${WA}`,JA=`hidden${WA}`,QA=`click${WA}.data-api`,YA="show",ZA="collapse",tE="collapsing",eE=`:scope .${ZA} .${ZA}`,rE='[data-bs-toggle="collapse"]',oE={parent:null,toggle:!0},nE={parent:"(null|element)",toggle:"boolean"};class iE extends rA{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=nA.find(rE);for(const t of r){const e=nA.getSelectorFromElement(t),r=nA.find(e).filter((t=>t===this._element));null!==e&&r.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return oE}static get DefaultType(){return nE}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>iE.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(JC.trigger(this._element,KA).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(ZA),this._element.classList.add(tE),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(tE),this._element.classList.add(ZA,YA),this._element.style[e]="",JC.trigger(this._element,XA)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(JC.trigger(this._element,GA).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,SC(this._element),this._element.classList.add(tE),this._element.classList.remove(ZA,YA);for(const t of this._triggerArray){const e=nA.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(tE),this._element.classList.add(ZA),JC.trigger(this._element,JA)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(YA)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=xC(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(rE);for(const e of t){const t=nA.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=nA.find(eE,this._config.parent);return nA.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const r of t)r.classList.toggle("collapsed",!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const r=iE.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}JC.on(document,QA,rE,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of nA.getMultipleElementsFromSelector(this))iE.getOrCreateInstance(t,{toggle:!1}).toggle()})),IC(iE);const sE="dropdown",aE=".bs.dropdown",lE=".data-api",cE="ArrowUp",uE="ArrowDown",dE=`hide${aE}`,pE=`hidden${aE}`,hE=`show${aE}`,fE=`shown${aE}`,bE=`click${aE}${lE}`,gE=`keydown${aE}${lE}`,vE=`keyup${aE}${lE}`,mE="show",yE='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',wE=`${yE}.${mE}`,_E=".dropdown-menu",xE=OC()?"top-end":"top-start",kE=OC()?"top-start":"top-end",CE=OC()?"bottom-end":"bottom-start",AE=OC()?"bottom-start":"bottom-end",EE=OC()?"left-start":"right-start",SE=OC()?"right-start":"left-start",$E={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},TE={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class OE extends rA{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=nA.next(this._element,_E)[0]||nA.prev(this._element,_E)[0]||nA.findOne(_E,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $E}static get DefaultType(){return TE}static get NAME(){return sE}toggle(){return this._isShown()?this.hide():this.show()}show(){if(CC(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!JC.trigger(this._element,hE,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))JC.on(t,"mouseover",EC);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(mE),this._element.classList.add(mE),JC.trigger(this._element,fE,t)}}hide(){if(CC(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!JC.trigger(this._element,dE,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))JC.off(t,"mouseover",EC);this._popper&&this._popper.destroy(),this._menu.classList.remove(mE),this._element.classList.remove(mE),this._element.setAttribute("aria-expanded","false"),tA.removeDataAttribute(this._menu,"popper"),JC.trigger(this._element,pE,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!_C(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${sE.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:_C(this._config.reference)?e=xC(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=fC(e,this._menu,r)}_isShown(){return this._menu.classList.contains(mE)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return EE;if(t.classList.contains("dropstart"))return SE;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?kE:xE:e?AE:CE}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(tA.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...PC(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=nA.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>kC(t)));r.length&&MC(r,e,t===uE,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=OE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=nA.find(wE);for(const r of e){const e=OE.getInstance(r);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),n=o.includes(e._menu);if(o.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const i={relatedTarget:e._element};"click"===t.type&&(i.clickEvent=t),e._completeHide(i)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,o=[cE,uE].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(yE)?this:nA.prev(this,yE)[0]||nA.next(this,yE)[0]||nA.findOne(yE,t.delegateTarget.parentNode),i=OE.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}JC.on(document,gE,yE,OE.dataApiKeydownHandler),JC.on(document,gE,_E,OE.dataApiKeydownHandler),JC.on(document,bE,OE.clearMenus),JC.on(document,vE,OE.clearMenus),JC.on(document,bE,yE,(function(t){t.preventDefault(),OE.getOrCreateInstance(this).toggle()})),IC(OE);const IE="backdrop",PE="show",RE=`mousedown.bs.${IE}`,ME={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},LE={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class jE extends eA{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ME}static get DefaultType(){return LE}static get NAME(){return IE}show(t){if(!this._config.isVisible)return void PC(t);this._append();const e=this._getElement();this._config.isAnimated&&SC(e),e.classList.add(PE),this._emulateAnimation((()=>{PC(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(PE),this._emulateAnimation((()=>{this.dispose(),PC(t)}))):PC(t)}dispose(){this._isAppended&&(JC.off(this._element,RE),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=xC(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),JC.on(t,RE,(()=>{PC(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){RC(t,this._getElement(),this._config.isAnimated)}}const DE=".bs.focustrap",NE=`focusin${DE}`,zE=`keydown.tab${DE}`,HE="backward",qE={autofocus:!0,trapElement:null},UE={autofocus:"boolean",trapElement:"element"};class BE extends eA{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return qE}static get DefaultType(){return UE}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),JC.off(document,DE),JC.on(document,NE,(t=>this._handleFocusin(t))),JC.on(document,zE,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,JC.off(document,DE))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=nA.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===HE?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?HE:"forward")}}const VE=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",FE=".sticky-top",WE="padding-right",KE="margin-right";class XE{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,WE,(e=>e+t)),this._setElementAttributes(VE,WE,(e=>e+t)),this._setElementAttributes(FE,KE,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,WE),this._resetElementAttributes(VE,WE),this._resetElementAttributes(FE,KE)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){const o=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+o)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const r=t.style.getPropertyValue(e);r&&tA.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=tA.getDataAttribute(t,e);null!==r?(tA.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(_C(t))e(t);else for(const r of nA.find(t,this._element))e(r)}}const GE=".bs.modal",JE=`hide${GE}`,QE=`hidePrevented${GE}`,YE=`hidden${GE}`,ZE=`show${GE}`,tS=`shown${GE}`,eS=`resize${GE}`,rS=`click.dismiss${GE}`,oS=`mousedown.dismiss${GE}`,nS=`keydown.dismiss${GE}`,iS=`click${GE}.data-api`,sS="modal-open",aS="show",lS="modal-static",cS={backdrop:!0,focus:!0,keyboard:!0},uS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class dS extends rA{constructor(t,e){super(t,e),this._dialog=nA.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new XE,this._addEventListeners()}static get Default(){return cS}static get DefaultType(){return uS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||JC.trigger(this._element,ZE,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(sS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(JC.trigger(this._element,JE).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(aS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){JC.off(window,GE),JC.off(this._dialog,GE),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new jE({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new BE({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=nA.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),SC(this._element),this._element.classList.add(aS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,JC.trigger(this._element,tS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){JC.on(this._element,nS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),JC.on(window,eS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),JC.on(this._element,oS,(t=>{JC.one(this._element,rS,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(sS),this._resetAdjustments(),this._scrollBar.reset(),JC.trigger(this._element,YE)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(JC.trigger(this._element,QE).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(lS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(lS),this._queueCallback((()=>{this._element.classList.remove(lS),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){const t=OC()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=OC()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const r=dS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}JC.on(document,iS,'[data-bs-toggle="modal"]',(function(t){const e=nA.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),JC.one(e,ZE,(t=>{t.defaultPrevented||JC.one(e,YE,(()=>{kC(this)&&this.focus()}))}));const r=nA.findOne(".modal.show");r&&dS.getInstance(r).hide(),dS.getOrCreateInstance(e).toggle(this)})),iA(dS),IC(dS);const pS=".bs.offcanvas",hS=".data-api",fS=`load${pS}${hS}`,bS="show",gS="showing",vS="hiding",mS=".offcanvas.show",yS=`show${pS}`,wS=`shown${pS}`,_S=`hide${pS}`,xS=`hidePrevented${pS}`,kS=`hidden${pS}`,CS=`resize${pS}`,AS=`click${pS}${hS}`,ES=`keydown.dismiss${pS}`,SS={backdrop:!0,keyboard:!0,scroll:!1},$S={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class TS extends rA{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return SS}static get DefaultType(){return $S}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||JC.trigger(this._element,yS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new XE).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(gS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(bS),this._element.classList.remove(gS),JC.trigger(this._element,wS,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(JC.trigger(this._element,_S).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(vS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(bS,vS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new XE).reset(),JC.trigger(this._element,kS)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new jE({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():JC.trigger(this._element,xS)}:null})}_initializeFocusTrap(){return new BE({trapElement:this._element})}_addEventListeners(){JC.on(this._element,ES,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():JC.trigger(this._element,xS))}))}static jQueryInterface(t){return this.each((function(){const e=TS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}JC.on(document,AS,'[data-bs-toggle="offcanvas"]',(function(t){const e=nA.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),CC(this))return;JC.one(e,kS,(()=>{kC(this)&&this.focus()}));const r=nA.findOne(mS);r&&r!==e&&TS.getInstance(r).hide(),TS.getOrCreateInstance(e).toggle(this)})),JC.on(window,fS,(()=>{for(const t of nA.find(mS))TS.getOrCreateInstance(t).show()})),JC.on(window,CS,(()=>{for(const t of nA.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&TS.getOrCreateInstance(t).hide()})),iA(TS),IC(TS);const OS={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},IS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),PS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,RS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!IS.has(r)||Boolean(PS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},MS={allowList:OS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},LS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},jS={entry:"(string|element|function|null)",selector:"(string|element)"};class DS extends eA{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return MS}static get DefaultType(){return LS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,r]of Object.entries(this._config.content))this._setContent(t,r,e);const e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},jS)}_setContent(t,e,r){const o=nA.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?_C(e)?this._putElementInTemplate(xC(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const t of n){const r=t.nodeName.toLowerCase();if(!Object.keys(e).includes(r)){t.remove();continue}const o=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[r]||[]);for(const e of o)RS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return PC(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const NS=new Set(["sanitize","allowList","sanitizeFn"]),zS="fade",HS="show",qS=".tooltip-inner",US=".modal",BS="hide.bs.modal",VS="hover",FS="focus",WS={AUTO:"auto",TOP:"top",RIGHT:OC()?"left":"right",BOTTOM:"bottom",LEFT:OC()?"right":"left"},KS={allowList:OS,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},XS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class GS extends rA{constructor(e,r){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return KS}static get DefaultType(){return XS}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),JC.off(this._element.closest(US),BS,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=JC.trigger(this._element,this.constructor.eventName("show")),e=(AC(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),JC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(HS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))JC.on(t,"mouseover",EC);this._queueCallback((()=>{JC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!JC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(HS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))JC.off(t,"mouseover",EC);this._activeTrigger.click=!1,this._activeTrigger[FS]=!1,this._activeTrigger[VS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),JC.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(zS,HS),e.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(zS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new DS({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[qS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(zS)}_isShown(){return this.tip&&this.tip.classList.contains(HS)}_createPopper(t){const e=PC(this._config.placement,[this,t,this._element]),r=WS[e.toUpperCase()];return fC(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return PC(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...PC(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)JC.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===VS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===VS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");JC.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?FS:VS]=!0,e._enter()})),JC.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?FS:VS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},JC.on(this._element.closest(US),BS,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=tA.getDataAttributes(this._element);for(const t of Object.keys(e))NS.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:xC(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=GS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}IC(GS);const JS=".popover-header",QS=".popover-body",YS={...GS.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ZS={...GS.DefaultType,content:"(null|string|element|function)"};class t$ extends GS{static get Default(){return YS}static get DefaultType(){return ZS}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[JS]:this._getTitle(),[QS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=t$.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}IC(t$);const e$=".bs.scrollspy",r$=`activate${e$}`,o$=`click${e$}`,n$=`load${e$}.data-api`,i$="active",s$="[href]",a$=".nav-link",l$=`${a$}, .nav-item > ${a$}, .list-group-item`,c$={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},u$={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class d$ extends rA{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return c$}static get DefaultType(){return u$}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=xC(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(JC.off(this._config.target,o$),JC.on(this._config.target,o$,s$,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const r=this._rootElement||window,o=e.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),r=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of t){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(i));continue}const t=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(r(i),!o)return}else n||t||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=nA.find(s$,this._config.target);for(const e of t){if(!e.hash||CC(e))continue;const t=nA.findOne(decodeURI(e.hash),this._element);kC(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(i$),this._activateParents(t),JC.trigger(this._element,r$,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))nA.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(i$);else for(const e of nA.parents(t,".nav, .list-group"))for(const t of nA.prev(e,l$))t.classList.add(i$)}_clearActiveClass(t){t.classList.remove(i$);const e=nA.find(`${s$}.${i$}`,t);for(const t of e)t.classList.remove(i$)}static jQueryInterface(t){return this.each((function(){const e=d$.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}JC.on(window,n$,(()=>{for(const t of nA.find('[data-bs-spy="scroll"]'))d$.getOrCreateInstance(t)})),IC(d$);const p$=".bs.tab",h$=`hide${p$}`,f$=`hidden${p$}`,b$=`show${p$}`,g$=`shown${p$}`,v$=`click${p$}`,m$=`keydown${p$}`,y$=`load${p$}`,w$="ArrowLeft",_$="ArrowRight",x$="ArrowUp",k$="ArrowDown",C$="Home",A$="End",E$="active",S$="fade",$$="show",T$=".dropdown-toggle",O$=`:not(${T$})`,I$='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',P$=`.nav-link${O$}, .list-group-item${O$}, [role="tab"]${O$}, ${I$}`,R$=`.${E$}[data-bs-toggle="tab"], .${E$}[data-bs-toggle="pill"], .${E$}[data-bs-toggle="list"]`;class M$ extends rA{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),JC.on(this._element,m$,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),r=e?JC.trigger(e,h$,{relatedTarget:t}):null;JC.trigger(t,b$,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(E$),this._activate(nA.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),JC.trigger(t,g$,{relatedTarget:e})):t.classList.add($$)}),t,t.classList.contains(S$)))}_deactivate(t,e){t&&(t.classList.remove(E$),t.blur(),this._deactivate(nA.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),JC.trigger(t,f$,{relatedTarget:e})):t.classList.remove($$)}),t,t.classList.contains(S$)))}_keydown(t){if(![w$,_$,x$,k$,C$,A$].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!CC(t)));let r;if([C$,A$].includes(t.key))r=e[t.key===C$?0:e.length-1];else{const o=[_$,k$].includes(t.key);r=MC(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),M$.getOrCreateInstance(r).show())}_getChildren(){return nA.find(P$,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=nA.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const o=(t,o)=>{const n=nA.findOne(t,r);n&&n.classList.toggle(o,e)};o(T$,E$),o(".dropdown-menu",$$),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(E$)}_getInnerElement(t){return t.matches(P$)?t:nA.findOne(P$,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=M$.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}JC.on(document,v$,I$,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),CC(this)||M$.getOrCreateInstance(this).show()})),JC.on(window,y$,(()=>{for(const t of nA.find(R$))M$.getOrCreateInstance(t)})),IC(M$);const L$=".bs.toast",j$=`mouseover${L$}`,D$=`mouseout${L$}`,N$=`focusin${L$}`,z$=`focusout${L$}`,H$=`hide${L$}`,q$=`hidden${L$}`,U$=`show${L$}`,B$=`shown${L$}`,V$="hide",F$="show",W$="showing",K$={animation:"boolean",autohide:"boolean",delay:"number"},X$={animation:!0,autohide:!0,delay:5e3};class G$ extends rA{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return X$}static get DefaultType(){return K$}static get NAME(){return"toast"}show(){JC.trigger(this._element,U$).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(V$),SC(this._element),this._element.classList.add(F$,W$),this._queueCallback((()=>{this._element.classList.remove(W$),JC.trigger(this._element,B$),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(JC.trigger(this._element,H$).defaultPrevented||(this._element.classList.add(W$),this._queueCallback((()=>{this._element.classList.add(V$),this._element.classList.remove(W$,F$),JC.trigger(this._element,q$)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(F$),super.dispose()}isShown(){return this._element.classList.contains(F$)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){JC.on(this._element,j$,(t=>this._onInteraction(t,!0))),JC.on(this._element,D$,(t=>this._onInteraction(t,!1))),JC.on(this._element,N$,(t=>this._onInteraction(t,!0))),JC.on(this._element,z$,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=G$.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}iA(G$),IC(G$);var J$=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Q$=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Y$=class extends Ex{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint=new URL("config/mainmenu",this.baseURI),this.renderInHost=!0,this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=e.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(t)&&(e.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new t$(t)}))}}renderImage(t){return null!=t?ox`<img src="${t}"/><span/>`:ox``}renderMenu(t,e,r){let o=ox``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?ox`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?ox`${o}${this.renderMenuDivider()}`:e?ox`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:ox`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?ox`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?ox`${o}${this.renderMenuDivider()}`:e?ox`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:ox`${o}${this.renderMenuLink(n)}`),ox`${o}`}renderMenuDivider(){return ox`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?ox`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?ox`<li>
61
+ `]}async connectedCallback(){super.connectedCallback()}render(){return ex`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Ix([b_({type:Boolean}),Px("design:type",Object)],Rx.prototype,"open",void 0),Ix([b_({type:Boolean}),Px("design:type",Object)],Rx.prototype,"loading",void 0),Ix([b_({type:Boolean}),Px("design:type",Object)],Rx.prototype,"renderInHost",void 0),Rx=Ix([h_("qbo-docviewer")],Rx);var Mx,Lx=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},jx=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Dx=class extends wx{static{Mx=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=t=>{const e=t.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),this.logger.logTrace(`${this.name}${e.name} was set to ${e.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=t=>{if(t.stopPropagation(),console.log(t),t instanceof CustomEvent&&t.detail.formData instanceof FormData)for(let[e,r]of t.detail.formData.entries())this.value.set(e,r),console.log(`Added ${e}=${r} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals(),this.logger=R.container.resolve(Zt)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=i_(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(t){super.updated(t),this.establishFormData()}render(){return ex`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea");Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof Mx)&&t.name)).forEach((t=>{const e=t;if(e instanceof HTMLSelectElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof HTMLTextAreaElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof Mx)for(let[t,r]of e.value.entries())this.value.set(`${this.name}${t}`,r);else e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type?e.checked&&this.value.set(`${this.name}${e.name}`,e.value):this.value.set(`${this.name}${e.name}`,e.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};Lx([b_({type:FormData}),jx("design:type",FormData)],Dx.prototype,"value",void 0),Lx([b_({type:String}),jx("design:type",Object)],Dx.prototype,"template",void 0),Lx([b_({type:String}),jx("design:type",Object)],Dx.prototype,"name",void 0),Lx([b_({type:Object}),jx("design:type",Object)],Dx.prototype,"data",void 0),Dx=Mx=Lx([h_("qbo-form-element"),jx("design:paramtypes",[])],Dx);var Nx="top",zx="bottom",Hx="right",qx="left",Ux="auto",Bx=[Nx,zx,Hx,qx],Fx="start",Vx="end",Wx="clippingParents",Kx="viewport",Xx="popper",Gx="reference",Jx=Bx.reduce((function(t,e){return t.concat([e+"-"+Fx,e+"-"+Vx])}),[]),Qx=[].concat(Bx,[Ux]).reduce((function(t,e){return t.concat([e,e+"-"+Fx,e+"-"+Vx])}),[]),Yx="beforeRead",Zx="read",tk="afterRead",ek="beforeMain",rk="main",ok="afterMain",nk="beforeWrite",ik="write",sk="afterWrite",ak=[Yx,Zx,tk,ek,rk,ok,nk,ik,sk];function lk(t){return t?(t.nodeName||"").toLowerCase():null}function ck(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function uk(t){return t instanceof ck(t).Element||t instanceof Element}function dk(t){return t instanceof ck(t).HTMLElement||t instanceof HTMLElement}function pk(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ck(t).ShadowRoot||t instanceof ShadowRoot)}const hk={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];dk(n)&&lk(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});dk(o)&&lk(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function fk(t){return t.split("-")[0]}var bk=Math.max,gk=Math.min,vk=Math.round;function mk(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function yk(){return!/^((?!chrome|android).)*safari/i.test(mk())}function wk(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&dk(t)&&(n=t.offsetWidth>0&&vk(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&vk(o.height)/t.offsetHeight||1);var s=(uk(t)?ck(t):window).visualViewport,a=!yk()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,u=o.width/n,d=o.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function _k(t){var e=wk(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function xk(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&pk(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function kk(t){return ck(t).getComputedStyle(t)}function Ck(t){return["table","td","th"].indexOf(lk(t))>=0}function Ak(t){return((uk(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ek(t){return"html"===lk(t)?t:t.assignedSlot||t.parentNode||(pk(t)?t.host:null)||Ak(t)}function Sk(t){return dk(t)&&"fixed"!==kk(t).position?t.offsetParent:null}function $k(t){for(var e=ck(t),r=Sk(t);r&&Ck(r)&&"static"===kk(r).position;)r=Sk(r);return r&&("html"===lk(r)||"body"===lk(r)&&"static"===kk(r).position)?e:r||function(t){var e=/firefox/i.test(mk());if(/Trident/i.test(mk())&&dk(t)&&"fixed"===kk(t).position)return null;var r=Ek(t);for(pk(r)&&(r=r.host);dk(r)&&["html","body"].indexOf(lk(r))<0;){var o=kk(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function Tk(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ok(t,e,r){return bk(t,gk(e,r))}function Ik(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Pk(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const Rk={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=fk(r.placement),l=Tk(a),c=[qx,Hx].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(t,e){return Ik("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Pk(t,Bx))}(n.padding,r),d=_k(i),p="y"===l?Nx:qx,h="y"===l?zx:Hx,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],b=s[l]-r.rects.reference[l],g=$k(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-b/2,y=u[p],w=v-d[c]-u[h],_=v/2-d[c]/2+m,x=Ok(y,_,w),k=l;r.modifiersData[o]=((e={})[k]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&xk(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mk(t){return t.split("-")[1]}var Lk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jk(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,b=void 0===f?0:f,g="function"==typeof u?u({x:h,y:b}):{x:h,y:b};h=g.x,b=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=qx,w=Nx,_=window;if(c){var x=$k(r),k="clientHeight",C="clientWidth";x===ck(r)&&"static"!==kk(x=Ak(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth"),(n===Nx||(n===qx||n===Hx)&&i===Vx)&&(w=zx,b-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-o.height,b*=l?1:-1),n!==qx&&(n!==Nx&&n!==zx||i!==Vx)||(y=Hx,h-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[C])-o.width,h*=l?1:-1)}var A,E=Object.assign({position:a},c&&Lk),S=!0===u?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:vk(r*n)/n||0,y:vk(o*n)/n||0}}({x:h,y:b},ck(r)):{x:h,y:b};return h=S.x,b=S.y,l?Object.assign({},E,((A={})[w]=m?"0":"",A[y]=v?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",A)):Object.assign({},E,((e={})[w]=m?b+"px":"",e[y]=v?h+"px":"",e.transform="",e))}const Dk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:fk(e.placement),variation:Mk(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,jk(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,jk(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Nk={passive:!0};const zk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=ck(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,Nk)})),a&&l.addEventListener("resize",r.update,Nk),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,Nk)})),a&&l.removeEventListener("resize",r.update,Nk)}},data:{}};var Hk={left:"right",right:"left",bottom:"top",top:"bottom"};function qk(t){return t.replace(/left|right|bottom|top/g,(function(t){return Hk[t]}))}var Uk={start:"end",end:"start"};function Bk(t){return t.replace(/start|end/g,(function(t){return Uk[t]}))}function Fk(t){var e=ck(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Vk(t){return wk(Ak(t)).left+Fk(t).scrollLeft}function Wk(t){var e=kk(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Kk(t){return["html","body","#document"].indexOf(lk(t))>=0?t.ownerDocument.body:dk(t)&&Wk(t)?t:Kk(Ek(t))}function Xk(t,e){var r;void 0===e&&(e=[]);var o=Kk(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=ck(o),s=n?[i].concat(i.visualViewport||[],Wk(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(Xk(Ek(s)))}function Gk(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Jk(t,e,r){return e===Kx?Gk(function(t,e){var r=ck(t),o=Ak(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=yk();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+Vk(t),y:l}}(t,r)):uk(e)?function(t,e){var r=wk(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):Gk(function(t){var e,r=Ak(t),o=Fk(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=bk(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=bk(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Vk(t),l=-o.scrollTop;return"rtl"===kk(n||r).direction&&(a+=bk(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Ak(t)))}function Qk(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?fk(n):null,s=n?Mk(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Nx:e={x:a,y:r.y-o.height};break;case zx:e={x:a,y:r.y+r.height};break;case Hx:e={x:r.x+r.width,y:l};break;case qx:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?Tk(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Fx:e[c]=e[c]-(r[u]/2-o[u]/2);break;case Vx:e[c]=e[c]+(r[u]/2-o[u]/2)}}return e}function Yk(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=void 0===o?t.placement:o,i=r.strategy,s=void 0===i?t.strategy:i,a=r.boundary,l=void 0===a?Wx:a,c=r.rootBoundary,u=void 0===c?Kx:c,d=r.elementContext,p=void 0===d?Xx:d,h=r.altBoundary,f=void 0!==h&&h,b=r.padding,g=void 0===b?0:b,v=Ik("number"!=typeof g?g:Pk(g,Bx)),m=p===Xx?Gx:Xx,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=Xk(Ek(t)),r=["absolute","fixed"].indexOf(kk(t).position)>=0&&dk(t)?$k(t):t;return uk(r)?e.filter((function(t){return uk(t)&&xk(t,r)&&"body"!==lk(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=Jk(t,r,o);return e.top=bk(n.top,e.top),e.right=gk(n.right,e.right),e.bottom=gk(n.bottom,e.bottom),e.left=bk(n.left,e.left),e}),Jk(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(uk(w)?w:w.contextElement||Ak(t.elements.popper),l,u,s),x=wk(t.elements.reference),k=Qk({reference:x,element:y,strategy:"absolute",placement:n}),C=Gk(Object.assign({},y,k)),A=p===Xx?C:x,E={top:_.top-A.top+v.top,bottom:A.bottom-_.bottom+v.bottom,left:_.left-A.left+v.left,right:A.right-_.right+v.right},S=t.modifiersData.offset;if(p===Xx&&S){var $=S[n];Object.keys(E).forEach((function(t){var e=[Hx,zx].indexOf(t)>=0?1:-1,r=[Nx,zx].indexOf(t)>=0?"y":"x";E[t]+=$[r]*e}))}return E}const Zk={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,b=r.allowedAutoPlacements,g=e.options.placement,v=fk(g),m=l||(v!==g&&f?function(t){if(fk(t)===Ux)return[];var e=qk(t);return[Bk(t),e,Bk(e)]}(g):[qk(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(fk(r)===Ux?function(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Qx:l,u=Mk(o),d=u?a?Jx:Jx.filter((function(t){return Mk(t)===u})):Bx,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var h=p.reduce((function(e,r){return e[r]=Yk(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[fk(r)],e}),{});return Object.keys(h).sort((function(t,e){return h[t]-h[e]}))}(e,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:b}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,k=!0,C=y[0],A=0;A<y.length;A++){var E=y[A],S=fk(E),$=Mk(E)===Fx,T=[Nx,zx].indexOf(S)>=0,O=T?"width":"height",I=Yk(e,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=T?$?Hx:qx:$?zx:Nx;w[O]>_[O]&&(P=qk(P));var R=qk(P),M=[];if(i&&M.push(I[S]<=0),a&&M.push(I[P]<=0,I[R]<=0),M.every((function(t){return t}))){C=E,k=!1;break}x.set(E,M)}if(k)for(var L=function(t){var e=y.find((function(e){var r=x.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},j=f?3:1;j>0&&"break"!==L(j);j--);e.placement!==C&&(e.modifiersData[o]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tC(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function eC(t){return[Nx,Hx,zx,qx].some((function(e){return t[e]>=0}))}const rC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=Yk(e,{elementContext:"reference"}),a=Yk(e,{altBoundary:!0}),l=tC(s,o),c=tC(a,n,i),u=eC(l),d=eC(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},oC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=void 0===n?[0,0]:n,s=Qx.reduce((function(t,r){return t[r]=function(t,e,r){var o=fk(t),n=[qx,Nx].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[qx,Hx].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,e.rects,i),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},nC={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=Qk({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},iC={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,h=void 0===p||p,f=r.tetherOffset,b=void 0===f?0:f,g=Yk(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=fk(e.placement),m=Mk(e.placement),y=!m,w=Tk(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,A="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,E="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(x){if(i){var T,O="y"===w?Nx:qx,I="y"===w?zx:Hx,P="y"===w?"height":"width",R=x[w],M=R+g[O],L=R-g[I],j=h?-C[P]/2:0,D=m===Fx?k[P]:C[P],N=m===Fx?-C[P]:-k[P],z=e.elements.arrow,H=h&&z?_k(z):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=q[O],B=q[I],F=Ok(0,k[P],H[P]),V=y?k[P]/2-j-F-U-E.mainAxis:D-F-U-E.mainAxis,W=y?-k[P]/2+j+F+B+E.mainAxis:N+F+B+E.mainAxis,K=e.elements.arrow&&$k(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(T=null==S?void 0:S[w])?T:0,J=R+W-G,Q=Ok(h?gk(M,R+V-G-X):M,R,h?bk(L,J):L);x[w]=Q,$[w]=Q-R}if(a){var Y,Z="x"===w?Nx:qx,tt="x"===w?zx:Hx,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Nx,qx].indexOf(v),st=null!=(Y=null==S?void 0:S[_])?Y:0,at=it?ot:et-k[rt]-C[rt]-st+E.altAxis,lt=it?et+k[rt]+C[rt]-st-E.altAxis:nt,ct=h&&it?function(t,e,r){var o=Ok(t,e,r);return o>r?r:o}(at,et,lt):Ok(h?at:ot,et,h?lt:nt);x[_]=ct,$[_]=ct-et}e.modifiersData[o]=$}},requiresIfExists:["offset"]};function sC(t,e,r){void 0===r&&(r=!1);var o,n,i=dk(e),s=dk(e)&&function(t){var e=t.getBoundingClientRect(),r=vk(e.width)/t.offsetWidth||1,o=vk(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=Ak(e),l=wk(t,s,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==lk(e)||Wk(a))&&(c=(o=e)!==ck(o)&&dk(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Fk(o)),dk(e)?((u=wk(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Vk(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function aC(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var lC={placement:"bottom",modifiers:[],strategy:"absolute"};function cC(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function uC(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?lC:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},lC,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:uk(t)?Xk(t):t.contextElement?Xk(t.contextElement):[],popper:Xk(e)};var s,c,p=function(t){var e=aC(t);return ak.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,o=void 0===r?{}:r,n=t.effect;if("function"==typeof n){var i=n({state:a,name:e,instance:u,options:o});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(cC(e,r)){a.rects={reference:sC(e,$k(r),"fixed"===a.options.strategy),popper:_k(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var n=a.orderedModifiers[o],i=n.fn,s=n.options,l=void 0===s?{}:s,d=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){d(),c=!0}};if(!cC(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u}}var dC=uC(),pC=uC({defaultModifiers:[zk,nC,Dk,hk,oC,Zk,iC,Rk,rC]}),hC=uC({defaultModifiers:[zk,nC,Dk,hk]});const fC=new Map,bC={set(t,e,r){fC.has(t)||fC.set(t,new Map);const o=fC.get(t);o.has(e)||0===o.size?o.set(e,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,e)=>fC.has(t)&&fC.get(t).get(e)||null,remove(t,e){if(!fC.has(t))return;const r=fC.get(t);r.delete(e),0===r.size&&fC.delete(t)}},gC="transitionend",vC=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),mC=t=>{t.dispatchEvent(new Event(gC))},yC=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),wC=t=>yC(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(vC(t)):null,_C=t=>{if(!yC(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const e=t.closest("summary");if(e&&e.parentNode!==r)return!1;if(null===e)return!1}return e},xC=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),kC=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?kC(t.parentNode):null},CC=()=>{},AC=t=>{t.offsetHeight},EC=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,SC=[],$C=()=>"rtl"===document.documentElement.dir,TC=t=>{var e;e=()=>{const e=EC();if(e){const r=t.NAME,o=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=o,t.jQueryInterface)}},"loading"===document.readyState?(SC.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of SC)t()})),SC.push(e)):e()},OC=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,IC=(t,e,r=!0)=>{if(!r)return void OC(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const o=Number.parseFloat(e),n=Number.parseFloat(r);return o||n?(e=e.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(r))):0})(e)+5;let n=!1;const i=({target:r})=>{r===e&&(n=!0,e.removeEventListener(gC,i),OC(t))};e.addEventListener(gC,i),setTimeout((()=>{n||mC(e)}),o)},PC=(t,e,r,o)=>{const n=t.length;let i=t.indexOf(e);return-1===i?!r&&o?t[n-1]:t[0]:(i+=r?1:-1,o&&(i=(i+n)%n),t[Math.max(0,Math.min(i,n-1))])},RC=/[^.]*(?=\..*)\.|.*/,MC=/\..*/,LC=/::\d+$/,jC={};let DC=1;const NC={mouseenter:"mouseover",mouseleave:"mouseout"},zC=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function HC(t,e){return e&&`${e}::${DC++}`||t.uidEvent||DC++}function qC(t){const e=HC(t);return t.uidEvent=e,jC[e]=jC[e]||{},jC[e]}function UC(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function BC(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=KC(t);return zC.has(i)||(i=t),[o,n,i]}function FC(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=BC(e,r,o);if(e in NC){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const l=qC(t),c=l[a]||(l[a]={}),u=UC(c,s,i?r:null);if(u)return void(u.oneOff=u.oneOff&&n);const d=HC(s,e.replace(RC,"")),p=i?function(t,e,r){return function o(n){const i=t.querySelectorAll(e);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return GC(n,{delegateTarget:s}),o.oneOff&&XC.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return GC(o,{delegateTarget:t}),r.oneOff&&XC.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=d,c[d]=p,t.addEventListener(a,p,i)}function VC(t,e,r,o,n){const i=UC(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function WC(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&VC(t,e,r,s.callable,s.delegationSelector)}function KC(t){return t=t.replace(MC,""),NC[t]||t}const XC={on(t,e,r,o){FC(t,e,r,o,!1)},one(t,e,r,o){FC(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=BC(e,r,o),a=s!==e,l=qC(t),c=l[s]||{},u=e.startsWith(".");if(void 0===i){if(u)for(const r of Object.keys(l))WC(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(LC,"");a&&!e.includes(n)||VC(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;VC(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=EC();let n=null,i=!0,s=!0,a=!1;e!==KC(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=GC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function GC(t,e={}){for(const[r,o]of Object.entries(e))try{t[r]=o}catch(e){Object.defineProperty(t,r,{configurable:!0,get:()=>o})}return t}function JC(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function QC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const YC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${QC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${QC(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=JC(t.dataset[o])}return e},getDataAttribute:(t,e)=>JC(t.getAttribute(`data-bs-${QC(e)}`))};class ZC{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const r=yC(e)?YC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...yC(e)?YC.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,n]of Object.entries(e)){const e=t[o],i=yC(e)?"element":null==(r=e)?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${n}".`)}var r}}class tA extends ZC{constructor(t,e){super(),(t=wC(t))&&(this._element=t,this._config=this._getConfig(e),bC.set(this._element,this.constructor.DATA_KEY,this))}dispose(){bC.remove(this._element,this.constructor.DATA_KEY),XC.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){IC(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return bC.get(wC(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const eA=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&"#"!==r?r.trim():null}return e?e.split(",").map((t=>vC(t))).join(","):null},rA={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const r=[];let o=t.parentNode.closest(e);for(;o;)r.push(o),o=o.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!xC(t)&&_C(t)))},getSelectorFromElement(t){const e=eA(t);return e&&rA.findOne(e)?e:null},getElementFromSelector(t){const e=eA(t);return e?rA.findOne(e):null},getMultipleElementsFromSelector(t){const e=eA(t);return e?rA.find(e):[]}},oA=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;XC.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),xC(this))return;const n=rA.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},nA=".bs.alert",iA=`close${nA}`,sA=`closed${nA}`;class aA extends tA{static get NAME(){return"alert"}close(){if(XC.trigger(this._element,iA).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),XC.trigger(this._element,sA),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=aA.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}oA(aA,"close"),TC(aA);const lA='[data-bs-toggle="button"]';class cA extends tA{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=cA.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}XC.on(document,"click.bs.button.data-api",lA,(t=>{t.preventDefault();const e=t.target.closest(lA);cA.getOrCreateInstance(e).toggle()})),TC(cA);const uA=".bs.swipe",dA=`touchstart${uA}`,pA=`touchmove${uA}`,hA=`touchend${uA}`,fA=`pointerdown${uA}`,bA=`pointerup${uA}`,gA={endCallback:null,leftCallback:null,rightCallback:null},vA={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class mA extends ZC{constructor(t,e){super(),this._element=t,t&&mA.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return gA}static get DefaultType(){return vA}static get NAME(){return"swipe"}dispose(){XC.off(this._element,uA)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),OC(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&OC(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(XC.on(this._element,fA,(t=>this._start(t))),XC.on(this._element,bA,(t=>this._end(t))),this._element.classList.add("pointer-event")):(XC.on(this._element,dA,(t=>this._start(t))),XC.on(this._element,pA,(t=>this._move(t))),XC.on(this._element,hA,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const yA=".bs.carousel",wA=".data-api",_A="ArrowLeft",xA="ArrowRight",kA="next",CA="prev",AA="left",EA="right",SA=`slide${yA}`,$A=`slid${yA}`,TA=`keydown${yA}`,OA=`mouseenter${yA}`,IA=`mouseleave${yA}`,PA=`dragstart${yA}`,RA=`load${yA}${wA}`,MA=`click${yA}${wA}`,LA="carousel",jA="active",DA=".active",NA=".carousel-item",zA=DA+NA,HA={[_A]:EA,[xA]:AA},qA={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},UA={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class BA extends tA{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=rA.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===LA&&this.cycle()}static get Default(){return qA}static get DefaultType(){return UA}static get NAME(){return"carousel"}next(){this._slide(kA)}nextWhenVisible(){!document.hidden&&_C(this._element)&&this.next()}prev(){this._slide(CA)}pause(){this._isSliding&&mC(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?XC.one(this._element,$A,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void XC.one(this._element,$A,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?kA:CA;this._slide(o,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&XC.on(this._element,TA,(t=>this._keydown(t))),"hover"===this._config.pause&&(XC.on(this._element,OA,(()=>this.pause())),XC.on(this._element,IA,(()=>this._maybeEnableCycle()))),this._config.touch&&mA.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of rA.find(".carousel-item img",this._element))XC.on(t,PA,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(AA)),rightCallback:()=>this._slide(this._directionToOrder(EA)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new mA(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=HA[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=rA.findOne(DA,this._indicatorsElement);e.classList.remove(jA),e.removeAttribute("aria-current");const r=rA.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(jA),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const r=this._getActive(),o=t===kA,n=e||PC(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>XC.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(SA).defaultPrevented)return;if(!r||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";n.classList.add(c),AC(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(jA),r.classList.remove(jA,c,l),this._isSliding=!1,s($A)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return rA.findOne(zA,this._element)}_getItems(){return rA.find(NA,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return $C()?t===AA?CA:kA:t===AA?kA:CA}_orderToDirection(t){return $C()?t===CA?AA:EA:t===CA?EA:AA}static jQueryInterface(t){return this.each((function(){const e=BA.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}XC.on(document,MA,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=rA.getElementFromSelector(this);if(!e||!e.classList.contains(LA))return;t.preventDefault();const r=BA.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===YC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),XC.on(window,RA,(()=>{const t=rA.find('[data-bs-ride="carousel"]');for(const e of t)BA.getOrCreateInstance(e)})),TC(BA);const FA=".bs.collapse",VA=`show${FA}`,WA=`shown${FA}`,KA=`hide${FA}`,XA=`hidden${FA}`,GA=`click${FA}.data-api`,JA="show",QA="collapse",YA="collapsing",ZA=`:scope .${QA} .${QA}`,tE='[data-bs-toggle="collapse"]',eE={parent:null,toggle:!0},rE={parent:"(null|element)",toggle:"boolean"};class oE extends tA{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=rA.find(tE);for(const t of r){const e=rA.getSelectorFromElement(t),r=rA.find(e).filter((t=>t===this._element));null!==e&&r.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return eE}static get DefaultType(){return rE}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>oE.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(XC.trigger(this._element,VA).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(QA),this._element.classList.add(YA),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(YA),this._element.classList.add(QA,JA),this._element.style[e]="",XC.trigger(this._element,WA)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(XC.trigger(this._element,KA).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,AC(this._element),this._element.classList.add(YA),this._element.classList.remove(QA,JA);for(const t of this._triggerArray){const e=rA.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(YA),this._element.classList.add(QA),XC.trigger(this._element,XA)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(JA)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=wC(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(tE);for(const e of t){const t=rA.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=rA.find(ZA,this._config.parent);return rA.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const r of t)r.classList.toggle("collapsed",!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const r=oE.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}XC.on(document,GA,tE,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of rA.getMultipleElementsFromSelector(this))oE.getOrCreateInstance(t,{toggle:!1}).toggle()})),TC(oE);const nE="dropdown",iE=".bs.dropdown",sE=".data-api",aE="ArrowUp",lE="ArrowDown",cE=`hide${iE}`,uE=`hidden${iE}`,dE=`show${iE}`,pE=`shown${iE}`,hE=`click${iE}${sE}`,fE=`keydown${iE}${sE}`,bE=`keyup${iE}${sE}`,gE="show",vE='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',mE=`${vE}.${gE}`,yE=".dropdown-menu",wE=$C()?"top-end":"top-start",_E=$C()?"top-start":"top-end",xE=$C()?"bottom-end":"bottom-start",kE=$C()?"bottom-start":"bottom-end",CE=$C()?"left-start":"right-start",AE=$C()?"right-start":"left-start",EE={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},SE={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class $E extends tA{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=rA.next(this._element,yE)[0]||rA.prev(this._element,yE)[0]||rA.findOne(yE,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return EE}static get DefaultType(){return SE}static get NAME(){return nE}toggle(){return this._isShown()?this.hide():this.show()}show(){if(xC(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!XC.trigger(this._element,dE,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))XC.on(t,"mouseover",CC);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(gE),this._element.classList.add(gE),XC.trigger(this._element,pE,t)}}hide(){if(xC(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!XC.trigger(this._element,cE,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))XC.off(t,"mouseover",CC);this._popper&&this._popper.destroy(),this._menu.classList.remove(gE),this._element.classList.remove(gE),this._element.setAttribute("aria-expanded","false"),YC.removeDataAttribute(this._menu,"popper"),XC.trigger(this._element,uE,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!yC(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${nE.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:yC(this._config.reference)?e=wC(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=pC(e,this._menu,r)}_isShown(){return this._menu.classList.contains(gE)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return CE;if(t.classList.contains("dropstart"))return AE;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?_E:wE:e?kE:xE}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(YC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...OC(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=rA.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>_C(t)));r.length&&PC(r,e,t===lE,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=$E.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=rA.find(mE);for(const r of e){const e=$E.getInstance(r);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),n=o.includes(e._menu);if(o.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const i={relatedTarget:e._element};"click"===t.type&&(i.clickEvent=t),e._completeHide(i)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,o=[aE,lE].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(vE)?this:rA.prev(this,vE)[0]||rA.next(this,vE)[0]||rA.findOne(vE,t.delegateTarget.parentNode),i=$E.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}XC.on(document,fE,vE,$E.dataApiKeydownHandler),XC.on(document,fE,yE,$E.dataApiKeydownHandler),XC.on(document,hE,$E.clearMenus),XC.on(document,bE,$E.clearMenus),XC.on(document,hE,vE,(function(t){t.preventDefault(),$E.getOrCreateInstance(this).toggle()})),TC($E);const TE="backdrop",OE="show",IE=`mousedown.bs.${TE}`,PE={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},RE={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ME extends ZC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return PE}static get DefaultType(){return RE}static get NAME(){return TE}show(t){if(!this._config.isVisible)return void OC(t);this._append();const e=this._getElement();this._config.isAnimated&&AC(e),e.classList.add(OE),this._emulateAnimation((()=>{OC(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(OE),this._emulateAnimation((()=>{this.dispose(),OC(t)}))):OC(t)}dispose(){this._isAppended&&(XC.off(this._element,IE),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=wC(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),XC.on(t,IE,(()=>{OC(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){IC(t,this._getElement(),this._config.isAnimated)}}const LE=".bs.focustrap",jE=`focusin${LE}`,DE=`keydown.tab${LE}`,NE="backward",zE={autofocus:!0,trapElement:null},HE={autofocus:"boolean",trapElement:"element"};class qE extends ZC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return zE}static get DefaultType(){return HE}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),XC.off(document,LE),XC.on(document,jE,(t=>this._handleFocusin(t))),XC.on(document,DE,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,XC.off(document,LE))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=rA.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===NE?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?NE:"forward")}}const UE=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",BE=".sticky-top",FE="padding-right",VE="margin-right";class WE{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,FE,(e=>e+t)),this._setElementAttributes(UE,FE,(e=>e+t)),this._setElementAttributes(BE,VE,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,FE),this._resetElementAttributes(UE,FE),this._resetElementAttributes(BE,VE)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){const o=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+o)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const r=t.style.getPropertyValue(e);r&&YC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=YC.getDataAttribute(t,e);null!==r?(YC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(yC(t))e(t);else for(const r of rA.find(t,this._element))e(r)}}const KE=".bs.modal",XE=`hide${KE}`,GE=`hidePrevented${KE}`,JE=`hidden${KE}`,QE=`show${KE}`,YE=`shown${KE}`,ZE=`resize${KE}`,tS=`click.dismiss${KE}`,eS=`mousedown.dismiss${KE}`,rS=`keydown.dismiss${KE}`,oS=`click${KE}.data-api`,nS="modal-open",iS="show",sS="modal-static",aS={backdrop:!0,focus:!0,keyboard:!0},lS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class cS extends tA{constructor(t,e){super(t,e),this._dialog=rA.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new WE,this._addEventListeners()}static get Default(){return aS}static get DefaultType(){return lS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||XC.trigger(this._element,QE,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(XC.trigger(this._element,XE).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(iS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){XC.off(window,KE),XC.off(this._dialog,KE),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ME({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new qE({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=rA.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),AC(this._element),this._element.classList.add(iS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,XC.trigger(this._element,YE,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){XC.on(this._element,rS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),XC.on(window,ZE,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),XC.on(this._element,eS,(t=>{XC.one(this._element,tS,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(nS),this._resetAdjustments(),this._scrollBar.reset(),XC.trigger(this._element,JE)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(XC.trigger(this._element,GE).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(sS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(sS),this._queueCallback((()=>{this._element.classList.remove(sS),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){const t=$C()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=$C()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const r=cS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}XC.on(document,oS,'[data-bs-toggle="modal"]',(function(t){const e=rA.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),XC.one(e,QE,(t=>{t.defaultPrevented||XC.one(e,JE,(()=>{_C(this)&&this.focus()}))}));const r=rA.findOne(".modal.show");r&&cS.getInstance(r).hide(),cS.getOrCreateInstance(e).toggle(this)})),oA(cS),TC(cS);const uS=".bs.offcanvas",dS=".data-api",pS=`load${uS}${dS}`,hS="show",fS="showing",bS="hiding",gS=".offcanvas.show",vS=`show${uS}`,mS=`shown${uS}`,yS=`hide${uS}`,wS=`hidePrevented${uS}`,_S=`hidden${uS}`,xS=`resize${uS}`,kS=`click${uS}${dS}`,CS=`keydown.dismiss${uS}`,AS={backdrop:!0,keyboard:!0,scroll:!1},ES={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class SS extends tA{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return AS}static get DefaultType(){return ES}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||XC.trigger(this._element,vS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new WE).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(fS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(hS),this._element.classList.remove(fS),XC.trigger(this._element,mS,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(XC.trigger(this._element,yS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(hS,bS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new WE).reset(),XC.trigger(this._element,_S)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new ME({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():XC.trigger(this._element,wS)}:null})}_initializeFocusTrap(){return new qE({trapElement:this._element})}_addEventListeners(){XC.on(this._element,CS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():XC.trigger(this._element,wS))}))}static jQueryInterface(t){return this.each((function(){const e=SS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}XC.on(document,kS,'[data-bs-toggle="offcanvas"]',(function(t){const e=rA.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),xC(this))return;XC.one(e,_S,(()=>{_C(this)&&this.focus()}));const r=rA.findOne(gS);r&&r!==e&&SS.getInstance(r).hide(),SS.getOrCreateInstance(e).toggle(this)})),XC.on(window,pS,(()=>{for(const t of rA.find(gS))SS.getOrCreateInstance(t).show()})),XC.on(window,xS,(()=>{for(const t of rA.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&SS.getOrCreateInstance(t).hide()})),oA(SS),TC(SS);const $S={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},TS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),OS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,IS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!TS.has(r)||Boolean(OS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},PS={allowList:$S,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},RS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},MS={entry:"(string|element|function|null)",selector:"(string|element)"};class LS extends ZC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return PS}static get DefaultType(){return RS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,r]of Object.entries(this._config.content))this._setContent(t,r,e);const e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},MS)}_setContent(t,e,r){const o=rA.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?yC(e)?this._putElementInTemplate(wC(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const t of n){const r=t.nodeName.toLowerCase();if(!Object.keys(e).includes(r)){t.remove();continue}const o=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[r]||[]);for(const e of o)IS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return OC(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const jS=new Set(["sanitize","allowList","sanitizeFn"]),DS="fade",NS="show",zS=".tooltip-inner",HS=".modal",qS="hide.bs.modal",US="hover",BS="focus",FS={AUTO:"auto",TOP:"top",RIGHT:$C()?"left":"right",BOTTOM:"bottom",LEFT:$C()?"right":"left"},VS={allowList:$S,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},WS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class KS extends tA{constructor(e,r){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return VS}static get DefaultType(){return WS}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),XC.off(this._element.closest(HS),qS,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=XC.trigger(this._element,this.constructor.eventName("show")),e=(kC(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),XC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(NS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))XC.on(t,"mouseover",CC);this._queueCallback((()=>{XC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!XC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(NS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))XC.off(t,"mouseover",CC);this._activeTrigger.click=!1,this._activeTrigger[BS]=!1,this._activeTrigger[US]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),XC.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(DS,NS),e.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(DS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new LS({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[zS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(DS)}_isShown(){return this.tip&&this.tip.classList.contains(NS)}_createPopper(t){const e=OC(this._config.placement,[this,t,this._element]),r=FS[e.toUpperCase()];return pC(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return OC(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...OC(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)XC.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===US?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===US?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");XC.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?BS:US]=!0,e._enter()})),XC.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?BS:US]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},XC.on(this._element.closest(HS),qS,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=YC.getDataAttributes(this._element);for(const t of Object.keys(e))jS.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:wC(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=KS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}TC(KS);const XS=".popover-header",GS=".popover-body",JS={...KS.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},QS={...KS.DefaultType,content:"(null|string|element|function)"};class YS extends KS{static get Default(){return JS}static get DefaultType(){return QS}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[XS]:this._getTitle(),[GS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=YS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}TC(YS);const ZS=".bs.scrollspy",t$=`activate${ZS}`,e$=`click${ZS}`,r$=`load${ZS}.data-api`,o$="active",n$="[href]",i$=".nav-link",s$=`${i$}, .nav-item > ${i$}, .list-group-item`,a$={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},l$={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class c$ extends tA{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return a$}static get DefaultType(){return l$}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=wC(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(XC.off(this._config.target,e$),XC.on(this._config.target,e$,n$,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const r=this._rootElement||window,o=e.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),r=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of t){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(i));continue}const t=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(r(i),!o)return}else n||t||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=rA.find(n$,this._config.target);for(const e of t){if(!e.hash||xC(e))continue;const t=rA.findOne(decodeURI(e.hash),this._element);_C(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(o$),this._activateParents(t),XC.trigger(this._element,t$,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))rA.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(o$);else for(const e of rA.parents(t,".nav, .list-group"))for(const t of rA.prev(e,s$))t.classList.add(o$)}_clearActiveClass(t){t.classList.remove(o$);const e=rA.find(`${n$}.${o$}`,t);for(const t of e)t.classList.remove(o$)}static jQueryInterface(t){return this.each((function(){const e=c$.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}XC.on(window,r$,(()=>{for(const t of rA.find('[data-bs-spy="scroll"]'))c$.getOrCreateInstance(t)})),TC(c$);const u$=".bs.tab",d$=`hide${u$}`,p$=`hidden${u$}`,h$=`show${u$}`,f$=`shown${u$}`,b$=`click${u$}`,g$=`keydown${u$}`,v$=`load${u$}`,m$="ArrowLeft",y$="ArrowRight",w$="ArrowUp",_$="ArrowDown",x$="Home",k$="End",C$="active",A$="fade",E$="show",S$=".dropdown-toggle",$$=`:not(${S$})`,T$='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',O$=`.nav-link${$$}, .list-group-item${$$}, [role="tab"]${$$}, ${T$}`,I$=`.${C$}[data-bs-toggle="tab"], .${C$}[data-bs-toggle="pill"], .${C$}[data-bs-toggle="list"]`;class P$ extends tA{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),XC.on(this._element,g$,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),r=e?XC.trigger(e,d$,{relatedTarget:t}):null;XC.trigger(t,h$,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(C$),this._activate(rA.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),XC.trigger(t,f$,{relatedTarget:e})):t.classList.add(E$)}),t,t.classList.contains(A$)))}_deactivate(t,e){t&&(t.classList.remove(C$),t.blur(),this._deactivate(rA.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),XC.trigger(t,p$,{relatedTarget:e})):t.classList.remove(E$)}),t,t.classList.contains(A$)))}_keydown(t){if(![m$,y$,w$,_$,x$,k$].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!xC(t)));let r;if([x$,k$].includes(t.key))r=e[t.key===x$?0:e.length-1];else{const o=[y$,_$].includes(t.key);r=PC(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),P$.getOrCreateInstance(r).show())}_getChildren(){return rA.find(O$,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=rA.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const o=(t,o)=>{const n=rA.findOne(t,r);n&&n.classList.toggle(o,e)};o(S$,C$),o(".dropdown-menu",E$),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(C$)}_getInnerElement(t){return t.matches(O$)?t:rA.findOne(O$,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=P$.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}XC.on(document,b$,T$,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),xC(this)||P$.getOrCreateInstance(this).show()})),XC.on(window,v$,(()=>{for(const t of rA.find(I$))P$.getOrCreateInstance(t)})),TC(P$);const R$=".bs.toast",M$=`mouseover${R$}`,L$=`mouseout${R$}`,j$=`focusin${R$}`,D$=`focusout${R$}`,N$=`hide${R$}`,z$=`hidden${R$}`,H$=`show${R$}`,q$=`shown${R$}`,U$="hide",B$="show",F$="showing",V$={animation:"boolean",autohide:"boolean",delay:"number"},W$={animation:!0,autohide:!0,delay:5e3};class K$ extends tA{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return W$}static get DefaultType(){return V$}static get NAME(){return"toast"}show(){XC.trigger(this._element,H$).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(U$),AC(this._element),this._element.classList.add(B$,F$),this._queueCallback((()=>{this._element.classList.remove(F$),XC.trigger(this._element,q$),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(XC.trigger(this._element,N$).defaultPrevented||(this._element.classList.add(F$),this._queueCallback((()=>{this._element.classList.add(U$),this._element.classList.remove(F$,B$),XC.trigger(this._element,z$)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(B$),super.dispose()}isShown(){return this._element.classList.contains(B$)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){XC.on(this._element,M$,(t=>this._onInteraction(t,!0))),XC.on(this._element,L$,(t=>this._onInteraction(t,!1))),XC.on(this._element,j$,(t=>this._onInteraction(t,!0))),XC.on(this._element,D$,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=K$.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}oA(K$),TC(K$);var X$=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},G$=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let J$=class extends Cx{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint=new URL("config/mainmenu",this.baseURI),this.renderInHost=!0,this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=e.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(t)&&(e.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new YS(t)}))}}renderImage(t){return null!=t?ex`<img src="${t}"/><span/>`:ex``}renderMenu(t,e,r){let o=ex``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?ex`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?ex`${o}${this.renderMenuDivider()}`:e?ex`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:ex`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?ex`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?ex`${o}${this.renderMenuDivider()}`:e?ex`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:ex`${o}${this.renderMenuLink(n)}`),ex`${o}`}renderMenuDivider(){return ex`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?ex`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?ex`<li>
62
62
  <a class="${this.liAMenuClass}" href="${t.URL}">
63
63
  ${r}<span>${t.Text}</span>
64
64
  <span class="${this.spanMenuClass}">${this.spanMenuValue}</span>
@@ -66,22 +66,22 @@
66
66
  <ul class="${this.ulSubMenuClass} ${this.ulSubMenuToggleClass}">
67
67
  ${this.renderMenu(t.Menu,!0,!0)}
68
68
  </ul>
69
- </li>`:ox`<li class="${this.liLinkClass} ${this.liLinkToggleClass}">
69
+ </li>`:ex`<li class="${this.liLinkClass} ${this.liLinkToggleClass}">
70
70
  <a href="${t.URL}" data-bs-toggle="${this.dropdownToggle}">
71
71
  ${r}<span>${t.Text}</span>
72
72
  </a>
73
73
  <ul class="${this.ulSubMenuToggleClass} ${this.ulMainMenuToggleClass}">
74
74
  ${this.renderMenu(t.Menu,!0,!0)}
75
75
  </ul>
76
- </li>`}renderMenuDropdownLink(t,e,r){const o=null!=r&&""!=r?ox`<i class="${r} ${this.iconClass}" />`:"";return ox`<li><a class="${this.liAMenuClass}" href="${t}">${o}${e}</a></li>`}renderMenuLink(t){const e=null!=t.Icon&&""!=t.Icon?ox`<i class="${t.Icon} ${this.iconClass}" />`:"",r=t.Title,o=t.DataContent,n=null!=t.DataToggle?t.DataToggle:this.popoverToggle,i=null!=t.DataContainer?t.DataContainer:this.popoverContainer,s=null!=t.DataPlacement?t.DataPlacement:this.popoverPlacement,a=null!=t.DataTrigger?t.DataTrigger:this.popoverTrigger,l=null!=t.DataHtml?t.DataHtml:this.popoverHtml;return null!=t.DoubleClick?ox`<li class="${this.liLinkClass}">
76
+ </li>`}renderMenuDropdownLink(t,e,r){const o=null!=r&&""!=r?ex`<i class="${r} ${this.iconClass}" />`:"";return ex`<li><a class="${this.liAMenuClass}" href="${t}">${o}${e}</a></li>`}renderMenuLink(t){const e=null!=t.Icon&&""!=t.Icon?ex`<i class="${t.Icon} ${this.iconClass}" />`:"",r=t.Title,o=t.DataContent,n=null!=t.DataToggle?t.DataToggle:this.popoverToggle,i=null!=t.DataContainer?t.DataContainer:this.popoverContainer,s=null!=t.DataPlacement?t.DataPlacement:this.popoverPlacement,a=null!=t.DataTrigger?t.DataTrigger:this.popoverTrigger,l=null!=t.DataHtml?t.DataHtml:this.popoverHtml;return null!=t.DoubleClick?ex`<li class="${this.liLinkClass}">
77
77
  <a class="${this.dblClickClass}" title="${r}" data-bs-trigger="${a}" data-bs-placement="${s}" data-bs-container="${i}" data-bs-content="${o}" data-bs-toggle="${n}" data-bs-html="${l}" ondblclick="${t.DoubleClick}">
78
78
  ${e}${t.Text}
79
79
  </a>
80
- </li>`:ox`<li class="${this.liLinkClass}">
80
+ </li>`:ex`<li class="${this.liLinkClass}">
81
81
  <a title="${r}" data-bs-trigger="${a}" data-bs-placement="${s}" data-bs-container="${i}" data-bs-content="${o}" data-bs-toggle="${n}" data-bs-html="${l}" href="${t.URL}">
82
82
  ${e}${t.Text}
83
83
  </a>
84
- </li>`}render(){return this.jsonData.MainMenu?ox`
84
+ </li>`}render(){return this.jsonData.MainMenu?ex`
85
85
  <nav class="${this.navClass}">
86
86
  <div>
87
87
  <a href="#">
@@ -97,15 +97,15 @@
97
97
  </ul>
98
98
  </div>
99
99
  </div>
100
- </nav>`:ox``}};J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"ariaExpanded",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"ariaLabel",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"buttonType",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"collapseToggle",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"dblClickClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"dropdownId",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"dropdownToggle",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"iconClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"liLinkToggleClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"liLinkClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"liAMenuClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"navClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"popoverContainer",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"popoverHtml",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"popoverPlacement",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"popoverToggle",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"popoverTrigger",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"spanMenuClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"spanMenuValue",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"ulMainMenuToggleClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"ulSubMenuClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"ulSubMenuToggleClass",void 0),J$([Mw({type:String}),Q$("design:type",Object)],Y$.prototype,"apiEndpoint",void 0),J$([Mw({type:Boolean}),Q$("design:type",Object)],Y$.prototype,"renderInHost",void 0),Y$=J$([Pw("qbo-mainmenu")],Y$);class Z$ extends HTMLElement{get src(){return this.getAttribute("src")}set src(t){this.reflect("src",t)}get manualRender(){return this.hasAttribute("manual-render")}set manualRender(t){this.reflect("manual-render",t)}reflect(t,e){!1===e?this.removeAttribute(t):this.setAttribute(t,!0===e?"":e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,r){"src"===t&&this.connected&&!this.manualRender&&r!==e&&this.render()}constructor(t){super(),this.version="$VERSION",this.config={markedUrl:"https://cdn.jsdelivr.net/gh/markedjs/marked@4/marked.min.js",prismUrl:[["https://cdn.jsdelivr.net/gh/PrismJS/prism@1/prism.min.js","data-manual"],"https://cdn.jsdelivr.net/gh/PrismJS/prism@1/plugins/autoloader/prism-autoloader.min.js"],cssUrls:["https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@4/github-markdown.min.css","https://cdn.jsdelivr.net/gh/PrismJS/prism@1/themes/prism.min.css"],hostCss:":host{display:block;position:relative;contain:content;}:host([hidden]){display:none;}",...t,...window.ZeroMdConfig},this.root=this.hasAttribute("no-shadow")?this:this.attachShadow({mode:"open"}),this.root.prepend(...this.makeNodes('<div class="markdown-styles"></div><div class="markdown-body"></div>')),this.constructor.ready||(this.constructor.ready=Promise.all([!!window.marked||this.loadScript(this.config.markedUrl),!!window.Prism||this.loadScript(this.config.prismUrl)])),this.clicked=this.clicked.bind(this),this.manualRender||this.render().then((()=>setTimeout((()=>this.goto(location.hash)),250))),this.observer=new MutationObserver((()=>{this.observeChanges(),this.manualRender||this.render()})),this.observer.observe(this,{childList:!0}),this.observeChanges()}observeChanges(){this.querySelectorAll('template,script[type="text/markdown"]').forEach((t=>{this.observer.observe(t.content||t,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}))}connectedCallback(){this.connected=!0,this.fire("zero-md-connected",{},{bubbles:!1,composed:!1}),this.waitForReady().then((()=>{this.fire("zero-md-ready")})),this.shadowRoot&&this.shadowRoot.addEventListener("click",this.clicked)}disconnectedCallback(){this.connected=!1,this.shadowRoot&&this.shadowRoot.removeEventListener("click",this.clicked)}waitForReady(){const t=this.connected||new Promise((t=>{this.addEventListener("zero-md-connected",(function e(){this.removeEventListener("zero-md-connected",e),t()}))}));return Promise.all([this.constructor.ready,t])}fire(t,e={},r={bubbles:!0,composed:!0}){e.msg&&console.warn(e.msg),this.dispatchEvent(new CustomEvent(t,{detail:{node:this,...e},...r}))}tick(){return new Promise((t=>requestAnimationFrame(t)))}arrify(t){return t?Array.isArray(t)?t:[t]:[]}onload(t){return new Promise(((e,r)=>{t.onload=e,t.onerror=t=>r(t.path?t.path[0]:t.composedPath()[0])}))}loadScript(t){return Promise.all(this.arrify(t).map((t=>{const[e,...r]=this.arrify(t),o=document.createElement("script");return o.src=e,o.async=!1,r.forEach((t=>o.setAttribute(t,""))),this.onload(document.head.appendChild(o))})))}goto(t){let e;try{e=this.root.querySelector(t)}catch{}e&&e.scrollIntoView()}clicked(t){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented)return;const e=t.target.closest("a");e&&e.hash&&e.host===location.host&&e.pathname===location.pathname&&this.goto(e.hash)}dedent(t){const e=(t=t.replace(/^\n/,"")).match(/^\s+/);return e?t.replace(new RegExp(`^${e[0]}`,"gm"),""):t}getBaseUrl(t){const e=document.createElement("a");return e.href=t,e.href.substring(0,e.href.lastIndexOf("/")+1)}highlight(t){return new Promise((e=>{t.querySelectorAll('pre>code:not([class*="language-"])').forEach((t=>{const e=t.innerText.match(/^\s*</)?"markup":t.innerText.match(/^\s*(\$|#)/)?"bash":"js";t.classList.add(`language-${e}`)}));try{window.Prism.highlightAllUnder(t,!0,e())}catch{window.Prism.highlightAllUnder(t),e()}}))}makeNodes(t){const e=document.createElement("template");return e.innerHTML=t,e.content.children}buildStyles(){const t=t=>{const e=this.querySelector(t);return e?e.innerHTML||" ":""},e=this.arrify(this.config.cssUrls),r=`<style>${this.config.hostCss}</style>${t('template[data-merge="prepend"]')}${t("template:not([data-merge])")||e.reduce(((t,e)=>`${t}<link rel="stylesheet" href="${e}">`),"")}${t('template[data-merge="append"]')}`;return r}async buildMd(t={}){return await(async()=>{if(!this.src)return"";const e=await fetch(this.src);if(e.ok){const r=await e.text();return window.marked.parse(r,{baseUrl:this.getBaseUrl(this.src),...t})}return this.fire("zero-md-error",{msg:`[zero-md] HTTP error ${e.status} while fetching src`,status:e.status,src:this.src}),""})()||(()=>{const e=this.querySelector('script[type="text/markdown"]');if(!e)return"";const r=e.hasAttribute("data-dedent")?this.dedent(e.text):e.text;return window.marked.parse(r,t)})()}getHash(t){let e=5381;for(let r=0;r<t.length;r++)e=(e<<5)+e^t.charCodeAt(r);return(e>>>0).toString(36)}async stampStyles(t){const e=this.getHash(t),r=this.root.querySelector(".markdown-styles");if(r.getAttribute("data-hash")!==e){r.setAttribute("data-hash",e);const o=this.makeNodes(t),n=[...o].filter((t=>"LINK"===t.tagName&&"stylesheet"===t.getAttribute("rel")));return r.innerHTML="",r.append(...o),await Promise.all(n.map((t=>this.onload(t)))).catch((t=>{this.fire("zero-md-error",{msg:"[zero-md] An external stylesheet failed to load",status:void 0,src:t.href})})),!0}}async stampBody(t,e){const r=this.arrify(e),o=this.getHash(t+JSON.stringify(r)),n=this.root.querySelector(".markdown-body");if(n.getAttribute("data-hash")!==o){n.setAttribute("data-hash",o),r.unshift("markdown-body"),n.setAttribute("class",r.join(" "));const e=this.makeNodes(t);return n.innerHTML="",n.append(...e),await this.highlight(n),!0}}async render(t={}){await this.waitForReady();const e=this.buildMd(t),r=await this.stampStyles(this.buildStyles());await this.tick();const o=await this.stampBody(await e,t.classes);this.fire("zero-md-rendered",{node:this,stamped:{styles:r,body:o}})}}customElements.define("zero-md",Z$);var tT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let eT=class extends xx{async connectedCallback(){super.connectedCallback()}render(){return ox`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};tT([Mw(),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],eT.prototype,"src",void 0),eT=tT([Pw("qbo-markdown")],eT);var rT,oT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},nT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let iT=class extends xx{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{rT=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const t=new(window.SpeechRecognition||window.webkitSpeechRecognition);t.continuous=this.continuous,t.interimResults=this.interimResults,t.maxAlternatives=this.maxAlternatives,t.onresult=t=>{this.onResult(t)},t.onspeechend=t=>{this.stop(t)},t.onerror=t=>{this.error(t)},this._recognition=t,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(t){const e=t.results[t.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const r=this.target;if(r instanceof HTMLInputElement)"radio"===r.type?r.value===e&&(r.checked=!0):this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLTextAreaElement)this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLSelectElement)for(let t=0;t<r.options.length;t++)if(r.options[t].value===e||r.options[t].text===e){r.selectedIndex=t;break}}listen(t){this.listening?this.stop(t):this.start()}start(){this.listening=!0,rT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,rT.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(t){console.log("Error during speech recognition:",t)}render(){return ox`<slot></slot>`}};oT([Mw({type:Boolean}),nT("design:type",Object)],iT.prototype,"renderInHost",void 0),oT([Mw({type:Boolean}),nT("design:type",Object)],iT.prototype,"continuous",void 0),oT([Mw({type:Boolean}),nT("design:type",Object)],iT.prototype,"interimResults",void 0),oT([Mw({type:Number}),nT("design:type",Object)],iT.prototype,"maxAlternatives",void 0),oT([Mw({type:String}),nT("design:type",Object)],iT.prototype,"for",void 0),oT([Mw({type:String}),nT("design:type",Object)],iT.prototype,"class",void 0),oT([Mw({type:String}),nT("design:type",Object)],iT.prototype,"activeClass",void 0),iT=rT=oT([Pw("qbo-microphone")],iT);var sT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},aT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let lT=class extends xx{constructor(){super(...arguments),this.selector='[data-bs-toggle="popover"]',this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(t){this.renderRoot.querySelectorAll(`${this.selector}`).forEach((function(t){new t$(t)}))}render(){return ox`<slot></slot>`}};sT([Mw({type:String}),aT("design:type",Object)],lT.prototype,"selector",void 0),sT([Mw({type:Boolean}),aT("design:type",Object)],lT.prototype,"renderInHost",void 0),lT=sT([Pw("qbo-popover")],lT);class cT{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}class uT extends cT{constructor(t){if(super(t),this.et=__,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===__||null==t)return this.ft=void 0,this.et=t;if(t===w_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}uT.directiveName="unsafeHTML",uT.resultType=1;const dT=(t=>(...e)=>({_$litDirective$:t,values:e}))(uT);var pT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},hT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let fT=class extends Ex{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[qw`
100
+ </nav>`:ex``}};X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"ariaExpanded",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"ariaLabel",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"buttonType",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"collapseToggle",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"dblClickClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"dropdownId",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"dropdownToggle",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"iconClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"liLinkToggleClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"liLinkClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"liAMenuClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"navClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"popoverContainer",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"popoverHtml",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"popoverPlacement",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"popoverToggle",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"popoverTrigger",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"spanMenuClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"spanMenuValue",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"ulMainMenuToggleClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"ulSubMenuClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"ulSubMenuToggleClass",void 0),X$([b_({type:String}),G$("design:type",Object)],J$.prototype,"apiEndpoint",void 0),X$([b_({type:Boolean}),G$("design:type",Object)],J$.prototype,"renderInHost",void 0),J$=X$([h_("qbo-mainmenu")],J$);class Q$ extends HTMLElement{get src(){return this.getAttribute("src")}set src(t){this.reflect("src",t)}get manualRender(){return this.hasAttribute("manual-render")}set manualRender(t){this.reflect("manual-render",t)}reflect(t,e){!1===e?this.removeAttribute(t):this.setAttribute(t,!0===e?"":e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,r){"src"===t&&this.connected&&!this.manualRender&&r!==e&&this.render()}constructor(t){super(),this.version="$VERSION",this.config={markedUrl:"https://cdn.jsdelivr.net/gh/markedjs/marked@4/marked.min.js",prismUrl:[["https://cdn.jsdelivr.net/gh/PrismJS/prism@1/prism.min.js","data-manual"],"https://cdn.jsdelivr.net/gh/PrismJS/prism@1/plugins/autoloader/prism-autoloader.min.js"],cssUrls:["https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@4/github-markdown.min.css","https://cdn.jsdelivr.net/gh/PrismJS/prism@1/themes/prism.min.css"],hostCss:":host{display:block;position:relative;contain:content;}:host([hidden]){display:none;}",...t,...window.ZeroMdConfig},this.root=this.hasAttribute("no-shadow")?this:this.attachShadow({mode:"open"}),this.root.prepend(...this.makeNodes('<div class="markdown-styles"></div><div class="markdown-body"></div>')),this.constructor.ready||(this.constructor.ready=Promise.all([!!window.marked||this.loadScript(this.config.markedUrl),!!window.Prism||this.loadScript(this.config.prismUrl)])),this.clicked=this.clicked.bind(this),this.manualRender||this.render().then((()=>setTimeout((()=>this.goto(location.hash)),250))),this.observer=new MutationObserver((()=>{this.observeChanges(),this.manualRender||this.render()})),this.observer.observe(this,{childList:!0}),this.observeChanges()}observeChanges(){this.querySelectorAll('template,script[type="text/markdown"]').forEach((t=>{this.observer.observe(t.content||t,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}))}connectedCallback(){this.connected=!0,this.fire("zero-md-connected",{},{bubbles:!1,composed:!1}),this.waitForReady().then((()=>{this.fire("zero-md-ready")})),this.shadowRoot&&this.shadowRoot.addEventListener("click",this.clicked)}disconnectedCallback(){this.connected=!1,this.shadowRoot&&this.shadowRoot.removeEventListener("click",this.clicked)}waitForReady(){const t=this.connected||new Promise((t=>{this.addEventListener("zero-md-connected",(function e(){this.removeEventListener("zero-md-connected",e),t()}))}));return Promise.all([this.constructor.ready,t])}fire(t,e={},r={bubbles:!0,composed:!0}){e.msg&&console.warn(e.msg),this.dispatchEvent(new CustomEvent(t,{detail:{node:this,...e},...r}))}tick(){return new Promise((t=>requestAnimationFrame(t)))}arrify(t){return t?Array.isArray(t)?t:[t]:[]}onload(t){return new Promise(((e,r)=>{t.onload=e,t.onerror=t=>r(t.path?t.path[0]:t.composedPath()[0])}))}loadScript(t){return Promise.all(this.arrify(t).map((t=>{const[e,...r]=this.arrify(t),o=document.createElement("script");return o.src=e,o.async=!1,r.forEach((t=>o.setAttribute(t,""))),this.onload(document.head.appendChild(o))})))}goto(t){let e;try{e=this.root.querySelector(t)}catch{}e&&e.scrollIntoView()}clicked(t){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented)return;const e=t.target.closest("a");e&&e.hash&&e.host===location.host&&e.pathname===location.pathname&&this.goto(e.hash)}dedent(t){const e=(t=t.replace(/^\n/,"")).match(/^\s+/);return e?t.replace(new RegExp(`^${e[0]}`,"gm"),""):t}getBaseUrl(t){const e=document.createElement("a");return e.href=t,e.href.substring(0,e.href.lastIndexOf("/")+1)}highlight(t){return new Promise((e=>{t.querySelectorAll('pre>code:not([class*="language-"])').forEach((t=>{const e=t.innerText.match(/^\s*</)?"markup":t.innerText.match(/^\s*(\$|#)/)?"bash":"js";t.classList.add(`language-${e}`)}));try{window.Prism.highlightAllUnder(t,!0,e())}catch{window.Prism.highlightAllUnder(t),e()}}))}makeNodes(t){const e=document.createElement("template");return e.innerHTML=t,e.content.children}buildStyles(){const t=t=>{const e=this.querySelector(t);return e?e.innerHTML||" ":""},e=this.arrify(this.config.cssUrls),r=`<style>${this.config.hostCss}</style>${t('template[data-merge="prepend"]')}${t("template:not([data-merge])")||e.reduce(((t,e)=>`${t}<link rel="stylesheet" href="${e}">`),"")}${t('template[data-merge="append"]')}`;return r}async buildMd(t={}){return await(async()=>{if(!this.src)return"";const e=await fetch(this.src);if(e.ok){const r=await e.text();return window.marked.parse(r,{baseUrl:this.getBaseUrl(this.src),...t})}return this.fire("zero-md-error",{msg:`[zero-md] HTTP error ${e.status} while fetching src`,status:e.status,src:this.src}),""})()||(()=>{const e=this.querySelector('script[type="text/markdown"]');if(!e)return"";const r=e.hasAttribute("data-dedent")?this.dedent(e.text):e.text;return window.marked.parse(r,t)})()}getHash(t){let e=5381;for(let r=0;r<t.length;r++)e=(e<<5)+e^t.charCodeAt(r);return(e>>>0).toString(36)}async stampStyles(t){const e=this.getHash(t),r=this.root.querySelector(".markdown-styles");if(r.getAttribute("data-hash")!==e){r.setAttribute("data-hash",e);const o=this.makeNodes(t),n=[...o].filter((t=>"LINK"===t.tagName&&"stylesheet"===t.getAttribute("rel")));return r.innerHTML="",r.append(...o),await Promise.all(n.map((t=>this.onload(t)))).catch((t=>{this.fire("zero-md-error",{msg:"[zero-md] An external stylesheet failed to load",status:void 0,src:t.href})})),!0}}async stampBody(t,e){const r=this.arrify(e),o=this.getHash(t+JSON.stringify(r)),n=this.root.querySelector(".markdown-body");if(n.getAttribute("data-hash")!==o){n.setAttribute("data-hash",o),r.unshift("markdown-body"),n.setAttribute("class",r.join(" "));const e=this.makeNodes(t);return n.innerHTML="",n.append(...e),await this.highlight(n),!0}}async render(t={}){await this.waitForReady();const e=this.buildMd(t),r=await this.stampStyles(this.buildStyles());await this.tick();const o=await this.stampBody(await e,t.classes);this.fire("zero-md-rendered",{node:this,stamped:{styles:r,body:o}})}}customElements.define("zero-md",Q$);var Y$=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let Z$=class extends wx{async connectedCallback(){super.connectedCallback()}render(){return ex`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};Y$([b_(),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],Z$.prototype,"src",void 0),Z$=Y$([h_("qbo-markdown")],Z$);var tT,eT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},rT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let oT=class extends wx{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{tT=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const t=new(window.SpeechRecognition||window.webkitSpeechRecognition);t.continuous=this.continuous,t.interimResults=this.interimResults,t.maxAlternatives=this.maxAlternatives,t.onresult=t=>{this.onResult(t)},t.onspeechend=t=>{this.stop(t)},t.onerror=t=>{this.error(t)},this._recognition=t,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(t){const e=t.results[t.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const r=this.target;if(r instanceof HTMLInputElement)"radio"===r.type?r.value===e&&(r.checked=!0):this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLTextAreaElement)this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLSelectElement)for(let t=0;t<r.options.length;t++)if(r.options[t].value===e||r.options[t].text===e){r.selectedIndex=t;break}}listen(t){this.listening?this.stop(t):this.start()}start(){this.listening=!0,tT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,tT.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(t){console.log("Error during speech recognition:",t)}render(){return ex`<slot></slot>`}};eT([b_({type:Boolean}),rT("design:type",Object)],oT.prototype,"renderInHost",void 0),eT([b_({type:Boolean}),rT("design:type",Object)],oT.prototype,"continuous",void 0),eT([b_({type:Boolean}),rT("design:type",Object)],oT.prototype,"interimResults",void 0),eT([b_({type:Number}),rT("design:type",Object)],oT.prototype,"maxAlternatives",void 0),eT([b_({type:String}),rT("design:type",Object)],oT.prototype,"for",void 0),eT([b_({type:String}),rT("design:type",Object)],oT.prototype,"class",void 0),eT([b_({type:String}),rT("design:type",Object)],oT.prototype,"activeClass",void 0),oT=tT=eT([h_("qbo-microphone")],oT);var nT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},iT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let sT=class extends wx{constructor(){super(...arguments),this.selector='[data-bs-toggle="popover"]',this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(t){this.renderRoot.querySelectorAll(`${this.selector}`).forEach((function(t){new YS(t)}))}render(){return ex`<slot></slot>`}};nT([b_({type:String}),iT("design:type",Object)],sT.prototype,"selector",void 0),nT([b_({type:Boolean}),iT("design:type",Object)],sT.prototype,"renderInHost",void 0),sT=nT([h_("qbo-popover")],sT);class aT{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}class lT extends aT{constructor(t){if(super(t),this.et=ox,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ox||null==t)return this.ft=void 0,this.et=t;if(t===rx)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}lT.directiveName="unsafeHTML",lT.resultType=1;const cT=(t=>(...e)=>({_$litDirective$:t,values:e}))(lT);var uT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},dT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let pT=class extends Cx{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[x_`
101
101
  /* Add any custom styles here */
102
102
  .foo { color: red; }
103
- `]}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(t){t.target.closest('[data-dismiss="modal"]')&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}handleOutsideClick(t){this.open&&!this.contains(t.target)&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}render(){return ox`
103
+ `]}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(t){t.target.closest('[data-dismiss="modal"]')&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}handleOutsideClick(t){this.open&&!this.contains(t.target)&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}render(){return ex`
104
104
  <slot name="button" @click="${this.toggle}">
105
105
  <button class="btn">Popup</button>
106
106
  </slot>
107
- <slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">${dT(this.html)}</slot>
108
- `}};pT([Mw({type:Boolean}),hT("design:type",Object)],fT.prototype,"open",void 0),pT([Mw({type:Boolean}),hT("design:type",Object)],fT.prototype,"loading",void 0),pT([Mw({type:Boolean}),hT("design:type",Object)],fT.prototype,"renderInHost",void 0),fT=pT([Pw("qbo-popup")],fT);var bT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},gT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let vT=class extends xx{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1,this.title="Popup",this.eventName="qbo-popup",this.listen=!0}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(t){if(t.target.closest('[data-dismiss="modal"]')){this.open=!1,this.src=null;const t=this.querySelector("iframe")??this.renderRoot.querySelector("iframe");null!=t&&t.removeAttribute("src"),document.removeEventListener("click",this.handleOutsideClick)}}handleOutsideClick(t){}firstUpdated(){const t=this;t.targetElement=document.querySelector(t.target)??document,t.targetContainer=t.querySelector("iframe")??t.renderRoot.querySelector("iframe"),t.targetElement.addEventListener(t.eventName,(e=>{t.showElement(e.target)})),t.listen&&t.targetElement.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t instanceof HTMLAnchorElement));null!=e&&(e.dispatchEvent(new CustomEvent(this.eventName,{bubbles:!0,composed:!0})),t.preventDefault())}))}showElement(t){this.src=t.href.replace("youtube.com/watch","youtube.com/embed");const e=this.querySelector("iframe")??this.renderRoot.querySelector("iframe");null!=e&&(e.src=this.src,this.show())}render(){return ox`
107
+ <slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">${cT(this.html)}</slot>
108
+ `}};uT([b_({type:Boolean}),dT("design:type",Object)],pT.prototype,"open",void 0),uT([b_({type:Boolean}),dT("design:type",Object)],pT.prototype,"loading",void 0),uT([b_({type:Boolean}),dT("design:type",Object)],pT.prototype,"renderInHost",void 0),pT=uT([h_("qbo-popup")],pT);var hT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},fT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let bT=class extends wx{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1,this.title="Popup",this.eventName="qbo-popup",this.listen=!0}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(t){if(t.target.closest('[data-dismiss="modal"]')){this.open=!1,this.src=null;const t=this.querySelector("iframe")??this.renderRoot.querySelector("iframe");null!=t&&t.removeAttribute("src"),document.removeEventListener("click",this.handleOutsideClick)}}handleOutsideClick(t){}firstUpdated(){const t=this;t.targetElement=document.querySelector(t.target)??document,t.targetContainer=t.querySelector("iframe")??t.renderRoot.querySelector("iframe"),t.targetElement.addEventListener(t.eventName,(e=>{t.showElement(e.target)})),t.listen&&t.targetElement.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t instanceof HTMLAnchorElement));null!=e&&(e.dispatchEvent(new CustomEvent(this.eventName,{bubbles:!0,composed:!0})),t.preventDefault())}))}showElement(t){this.src=t.href.replace("youtube.com/watch","youtube.com/embed");const e=this.querySelector("iframe")??this.renderRoot.querySelector("iframe");null!=e&&(e.src=this.src,this.show())}render(){return ex`
109
109
  <slot name="button" @click="${this.toggle}"></slot>
110
110
  <slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">
111
111
  <link href="scripts/qbo4.css" rel="stylesheet">
@@ -122,20 +122,20 @@
122
122
  </div>
123
123
  </div>
124
124
  </slot>
125
- `}};bT([Mw({type:Boolean}),gT("design:type",Object)],vT.prototype,"open",void 0),bT([Mw({type:Boolean}),gT("design:type",Object)],vT.prototype,"loading",void 0),bT([Mw({type:Boolean}),gT("design:type",Object)],vT.prototype,"renderInHost",void 0),bT([Mw({type:String}),gT("design:type",Object)],vT.prototype,"src",void 0),bT([Mw({type:String}),gT("design:type",Object)],vT.prototype,"title",void 0),bT([Mw(),gT("design:type",Object)],vT.prototype,"clickSelector",void 0),bT([Mw(),gT("design:type",Object)],vT.prototype,"eventName",void 0),bT([Mw(),gT("design:type",Object)],vT.prototype,"target",void 0),bT([Mw({type:Boolean}),gT("design:type",Object)],vT.prototype,"listen",void 0),vT=bT([Pw("qbo-popup-listener")],vT);var mT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},yT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let wT=class extends Ex{constructor(){super(...arguments),this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.qboClass=null,this.options=[],this.renderInHost=!0}static{this.styles=[qw`
125
+ `}};hT([b_({type:Boolean}),fT("design:type",Object)],bT.prototype,"open",void 0),hT([b_({type:Boolean}),fT("design:type",Object)],bT.prototype,"loading",void 0),hT([b_({type:Boolean}),fT("design:type",Object)],bT.prototype,"renderInHost",void 0),hT([b_({type:String}),fT("design:type",Object)],bT.prototype,"src",void 0),hT([b_({type:String}),fT("design:type",Object)],bT.prototype,"title",void 0),hT([b_(),fT("design:type",Object)],bT.prototype,"clickSelector",void 0),hT([b_(),fT("design:type",Object)],bT.prototype,"eventName",void 0),hT([b_(),fT("design:type",Object)],bT.prototype,"target",void 0),hT([b_({type:Boolean}),fT("design:type",Object)],bT.prototype,"listen",void 0),bT=hT([h_("qbo-popup-listener")],bT);var gT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},vT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let mT=class extends Cx{constructor(){super(...arguments),this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.qboClass=null,this.options=[],this.renderInHost=!0}static{this.styles=[x_`
126
126
  /* Add any custom styles here */
127
127
  .foo { color: red; }
128
- `]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=kw(this.jsonData),this.options&&0!==this.options.length?(this.optionValue??=Object.keys(this.options[0])[0],this.optionText??=Object.keys(this.options[0])[1]??this.optionValue,ox`
128
+ `]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=n_(this.jsonData),this.options&&0!==this.options.length?(this.optionValue??=Object.keys(this.options[0])[0],this.optionText??=Object.keys(this.options[0])[1]??this.optionValue,ex`
129
129
  <select class=${this.qboClass}>
130
- ${this.options.map((t=>ox`<option value="${t[this.optionValue]}" ?selected="${t[this.optionValue]===this.defaultValue}">${t[this.optionText]}</option>`))}
131
- </select>`):ox`<p>Loading...</p>`}};mT([Mw({type:Boolean}),yT("design:type",Object)],wT.prototype,"loading",void 0),mT([Mw({type:String}),yT("design:type",Object)],wT.prototype,"optionText",void 0),mT([Mw({type:String}),yT("design:type",Object)],wT.prototype,"optionValue",void 0),mT([Mw({type:String}),yT("design:type",Object)],wT.prototype,"defaultValue",void 0),mT([Mw({attribute:"qbo-class"}),yT("design:type",Object)],wT.prototype,"qboClass",void 0),mT([Mw({type:Array}),yT("design:type",Object)],wT.prototype,"options",void 0),mT([Mw({type:Boolean}),yT("design:type",Object)],wT.prototype,"renderInHost",void 0),wT=mT([Pw("qbo-select")],wT);var _T=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},xT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let kT=class extends xx{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(r=>{const o=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(o instanceof HTMLElement&&o.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(o instanceof HTMLElement&&o.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return ox`<slot></slot>`}};_T([Mw({type:String}),xT("design:type",Object)],kT.prototype,"collapseAttribute",void 0),_T([Mw({type:String}),xT("design:type",Object)],kT.prototype,"collapseSelector",void 0),_T([Mw({type:String}),xT("design:type",Object)],kT.prototype,"menuCollapsed",void 0),_T([Mw({type:String}),xT("design:type",Object)],kT.prototype,"menuExpanded",void 0),_T([Mw({type:String}),xT("design:type",Object)],kT.prototype,"menuShow",void 0),kT=_T([Pw("qbo-sidebar")],kT);var CT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},AT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ET=class extends Ex{constructor(){super(...arguments),this.loading=!1,this.renderInHost=!1,this.qboClass="table table-striped table-hover",this.dataSelector=null,this.options=null}async connectedCallback(){super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){this.options=kw(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),Aw(this.querySelector("tbody"),this.querySelector("template"),this.options);const t=Object.keys(this.options[0]);return ox`<slot>
130
+ ${this.options.map((t=>ex`<option value="${t[this.optionValue]}" ?selected="${t[this.optionValue]===this.defaultValue}">${t[this.optionText]}</option>`))}
131
+ </select>`):ex`<p>Loading...</p>`}};gT([b_({type:Boolean}),vT("design:type",Object)],mT.prototype,"loading",void 0),gT([b_({type:String}),vT("design:type",Object)],mT.prototype,"optionText",void 0),gT([b_({type:String}),vT("design:type",Object)],mT.prototype,"optionValue",void 0),gT([b_({type:String}),vT("design:type",Object)],mT.prototype,"defaultValue",void 0),gT([b_({attribute:"qbo-class"}),vT("design:type",Object)],mT.prototype,"qboClass",void 0),gT([b_({type:Array}),vT("design:type",Object)],mT.prototype,"options",void 0),gT([b_({type:Boolean}),vT("design:type",Object)],mT.prototype,"renderInHost",void 0),mT=gT([h_("qbo-select")],mT);var yT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},wT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let _T=class extends wx{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(r=>{const o=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(o instanceof HTMLElement&&o.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(o instanceof HTMLElement&&o.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return ex`<slot></slot>`}};yT([b_({type:String}),wT("design:type",Object)],_T.prototype,"collapseAttribute",void 0),yT([b_({type:String}),wT("design:type",Object)],_T.prototype,"collapseSelector",void 0),yT([b_({type:String}),wT("design:type",Object)],_T.prototype,"menuCollapsed",void 0),yT([b_({type:String}),wT("design:type",Object)],_T.prototype,"menuExpanded",void 0),yT([b_({type:String}),wT("design:type",Object)],_T.prototype,"menuShow",void 0),_T=yT([h_("qbo-sidebar")],_T);var xT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},kT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let CT=class extends Cx{constructor(){super(...arguments),this.loading=!1,this.renderInHost=!1,this.qboClass="table table-striped table-hover",this.dataSelector=null,this.options=null}async connectedCallback(){super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){this.options=n_(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),s_(this.querySelector("tbody"),this.querySelector("template"),this.options);const t=Object.keys(this.options[0]);return ex`<slot>
132
132
  <table class=${this.qboClass}>
133
133
  <thead>
134
- ${null!=this.querySelector("*[slot=header]")?ox`<tr><th colspan="${t.length}"><slot name="header"></slot></th></tr>`:null}
135
- <tr>${t.map((t=>ox`<th>${t}</th>`))}</tr>
134
+ ${null!=this.querySelector("*[slot=header]")?ex`<tr><th colspan="${t.length}"><slot name="header"></slot></th></tr>`:null}
135
+ <tr>${t.map((t=>ex`<th>${t}</th>`))}</tr>
136
136
  </thead>
137
- <tbody>${this.options.map(((e,r)=>ox`<tr data-index="${r}">${t.map((t=>ox`<td>${e[t]}</td>`))}</tr>`))}</tbody>
137
+ <tbody>${this.options.map(((e,r)=>ex`<tr data-index="${r}">${t.map((t=>ex`<td>${e[t]}</td>`))}</tr>`))}</tbody>
138
138
  <tfoot><tr><td colspan="${t.length}"><slot name="footer">${t.length} rows rendered.</slot></td></tr></tfoot>
139
139
  </table>
140
- </slot>`}loadData(){if(null!=this.dataSelector){const t=document.querySelector(this.dataSelector);if(null!=t)return kw(t.text)}return null}};CT([Mw({type:Boolean}),AT("design:type",Object)],ET.prototype,"loading",void 0),CT([Mw({type:Boolean}),AT("design:type",Object)],ET.prototype,"renderInHost",void 0),CT([Mw({attribute:"qbo-class"}),AT("design:type",Object)],ET.prototype,"qboClass",void 0),CT([Mw(),AT("design:type",Object)],ET.prototype,"dataSelector",void 0),CT([Mw(),AT("design:type",Object)],ET.prototype,"options",void 0),ET=CT([Pw("qbo-table")],ET);var ST=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},$T=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let TT=class extends xx{constructor(){super(...arguments),this.renderInHost=!1,this.autoComplete="off",this.validatedClass="was-validated",this.workingClass=["bg-light","text-secondary"],this.form=null,this.validators=[],this.validate=async t=>{console.log("validating form"),t.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const t of e)t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?(console.log("validating element ",t),await this.validateElement(t)):console.log("ignoring element ",t);this.form?.checkValidity()?console.log("form is valid, js submit"):(console.log("form is invalid"),t.preventDefault(),t.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async t=>{const e=t instanceof Event?t.target:t;if(console.log("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const t of this.validators)if(e.matches(t.selector)){if(console.log("element matches selector ",t.selector," for ",e.matches(t.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((t=>e.classList.add(t)));const r=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(r?"":t.message),console.log("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.log("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.log("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))}}async connectedCallback(){super.connectedCallback(),this.form=this.closest("form"),null!=this.form&&(this.form?.addEventListener("submit",this.validate),this.form?.addEventListener("change",this.validateElement),this.validators=R.container.resolveAll(xw))}async disconnectedCallback(){super.disconnectedCallback(),this.form?.addEventListener("change",this.validateElement),this.form?.addEventListener("submit",this.validate)}render(){return ox``}};ST([Mw({type:Boolean}),$T("design:type",Object)],TT.prototype,"renderInHost",void 0),ST([Mw({type:String}),$T("design:type",Object)],TT.prototype,"autoComplete",void 0),ST([Mw({type:String}),$T("design:type",Object)],TT.prototype,"validatedClass",void 0),ST([Mw({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),$T("design:type",Object)],TT.prototype,"workingClass",void 0),TT=ST([Pw("qbo-validate")],TT);var OT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},IT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let PT=class extends xx{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}firstUpdated(){const t={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((e=>{const r=e.getAttribute("name"),o=e.textContent;r&&o&&(t[r]=o)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),Sw(this.name,this.apiEndpoint,t,this.method)}render(){return ox``}};OT([Mw({type:String}),IT("design:type",Object)],PT.prototype,"name",void 0),OT([Mw({type:String}),IT("design:type",Object)],PT.prototype,"apiEndpoint",void 0),OT([Mw({type:String}),IT("design:type",String)],PT.prototype,"method",void 0),PT=OT([Pw("qbo-api")],PT)})(),o})()));
140
+ </slot>`}loadData(){if(null!=this.dataSelector){const t=document.querySelector(this.dataSelector);if(null!=t)return n_(t.text)}return null}};xT([b_({type:Boolean}),kT("design:type",Object)],CT.prototype,"loading",void 0),xT([b_({type:Boolean}),kT("design:type",Object)],CT.prototype,"renderInHost",void 0),xT([b_({attribute:"qbo-class"}),kT("design:type",Object)],CT.prototype,"qboClass",void 0),xT([b_(),kT("design:type",Object)],CT.prototype,"dataSelector",void 0),xT([b_(),kT("design:type",Object)],CT.prototype,"options",void 0),CT=xT([h_("qbo-table")],CT);var AT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ET=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ST=class extends wx{constructor(){super(...arguments),this.renderInHost=!1,this.autoComplete="off",this.validatedClass="was-validated",this.workingClass=["bg-light","text-secondary"],this.form=null,this.validators=[],this.validate=async t=>{console.log("validating form"),t.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const t of e)t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?(console.log("validating element ",t),await this.validateElement(t)):console.log("ignoring element ",t);this.form?.checkValidity()?console.log("form is valid, js submit"):(console.log("form is invalid"),t.preventDefault(),t.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async t=>{const e=t instanceof Event?t.target:t;if(console.log("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const t of this.validators)if(e.matches(t.selector)){if(console.log("element matches selector ",t.selector," for ",e.matches(t.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((t=>e.classList.add(t)));const r=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(r?"":t.message),console.log("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.log("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.log("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))}}async connectedCallback(){super.connectedCallback(),this.form=this.closest("form"),null!=this.form&&(this.form?.addEventListener("submit",this.validate),this.form?.addEventListener("change",this.validateElement),this.validators=R.container.resolveAll(o_))}async disconnectedCallback(){super.disconnectedCallback(),this.form?.addEventListener("change",this.validateElement),this.form?.addEventListener("submit",this.validate)}render(){return ex``}};AT([b_({type:Boolean}),ET("design:type",Object)],ST.prototype,"renderInHost",void 0),AT([b_({type:String}),ET("design:type",Object)],ST.prototype,"autoComplete",void 0),AT([b_({type:String}),ET("design:type",Object)],ST.prototype,"validatedClass",void 0),AT([b_({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),ET("design:type",Object)],ST.prototype,"workingClass",void 0),ST=AT([h_("qbo-validate")],ST);var $T=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},TT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let OT=class extends wx{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}firstUpdated(){const t={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((e=>{const r=e.getAttribute("name"),o=e.textContent;r&&o&&(t[r]=o)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),l_(this.name,this.apiEndpoint,t,this.method)}render(){return ex``}};$T([b_({type:String}),TT("design:type",Object)],OT.prototype,"name",void 0),$T([b_({type:String}),TT("design:type",Object)],OT.prototype,"apiEndpoint",void 0),$T([b_({type:String}),TT("design:type",String)],OT.prototype,"method",void 0),OT=$T([h_("qbo-api")],OT)})(),o})()));
141
141
  //# sourceMappingURL=qbo4.ui.min.js.map