@quandis/qbo4.ui 4.0.1-CI-20240426-215901 → 4.0.1-CI-20240429-172951
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.
- package/package.json +1 -1
- package/readme.md +106 -0
- package/src/qbo/IApiService.d.ts +9 -1
- package/src/qbo/IApiService.js +0 -4
- package/src/qbo/IApiService.ts +10 -3
- package/src/qbo/Program.d.ts +3 -0
- package/src/qbo/Program.js +26 -0
- package/src/qbo/Program.ts +30 -0
- package/src/qbo/RestApiService.d.ts +1 -0
- package/src/qbo/RestApiService.js +2 -1
- package/src/qbo/RestApiService.ts +2 -1
- package/src/qbo/qbo-api.d.ts +1 -1
- package/src/qbo/qbo-api.js +7 -7
- package/src/qbo/qbo-api.ts +1 -1
- package/wwwroot/js/qbo4.ui.js +56 -34
- package/wwwroot/js/qbo4.ui.min.js +12 -12
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
|
@@ -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 V(Object.create(null))}:a?function(){return V({__proto__:null})}:function(){return V({})},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]}},d=Object.getPrototypeOf(Function),u="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--,L(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(!L(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(L(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 u}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}(),b="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,h=function(){var t;return!S(f)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[f]),S(t)&&(t=function(){var t,r,o,n;S(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 b;return{isProviderFor:function(t,e){var r=s.get(t);return!(S(r)||!r.has(e))||!!n(t,e).length&&(S(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 b,s={registerProvider:a,getProvider:c,setProvider:h};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 S(r):r=e;break;case r===e:break;case S(o):o=e;break;case o===e:break;default:void 0===n&&(n=new p),n.add(e)}}function l(e,i){if(!S(r)){if(r.isProviderFor(e,i))return r;if(!S(o)){if(o.isProviderFor(e,i))return r;if(!S(n))for(var s=P(n);;){var a=N(s);if(!a)return;var l=M(a);if(l.isProviderFor(e,i))return z(s),l}}}if(!S(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,o=i.get(t);return S(o)||(r=o.get(e)),S(r)?(S(r=l(t,e))||(S(o)&&(o=new u,i.set(t,o)),o.set(e,r)),r):r}function d(t){if(S(t))throw new TypeError;return r===t||o===t||!S(n)&&n.has(t)}function h(t,e,r){if(!d(r))throw new Error("Metadata provider not registered.");var o=c(t,e);if(o!==r){if(!S(o))return!1;var n=i.get(t);S(n)&&(n=new u,i.set(t,n)),n.set(e,r)}return!0}}()),!S(f)&&T(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 b,r={isProviderFor:function(t,r){var o=e.get(t);return!S(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!S(n)&&$(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var n=o(e,r,!1);if(!S(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],n=o(t,e,!1);if(S(n))return r;for(var i=P(n.keys()),s=0;;){var a=N(i);if(!a)return r.length=s,r;var l=M(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(S(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);S(s)||(s.delete(n),0===s.size&&e.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=e.get(o),a=!1;if(S(s)){if(!i)return;s=new u,e.set(o,s),a=!0}var l=s.get(n);if(S(l)){if(!i)return;if(l=new u,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}}(h);function v(t,e,r){if(m(t,e,r))return!0;var o=q(e);return!E(o)&&v(t,o,r)}function m(t,e,r){var o=H(e,r,!1);return!S(o)&&$(o.OrdinaryHasOwnMetadata(t,e,r))}function y(t,e,r){if(m(t,e,r))return w(t,e,r);var o=q(e);return E(o)?void 0:y(t,o,r)}function w(t,e,r){var o=H(e,r,!1);if(!S(o))return o.OrdinaryGetOwnMetadata(t,e,r)}function _(t,e,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(t,e,r,o)}function x(t,e){var r=C(t,e),o=q(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 d=0,u=n;d<u.length;d++)c=u[d],i.has(c)||(i.add(c),s.push(c));return s}function C(t,e){var r=H(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function k(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 S(t){return void 0===t}function E(t){return null===t}function T(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(k(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=R(t,n);if(void 0!==o){var i=o.call(t,r);if(T(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(D(r)&&!T(n=r.call(t)))return n;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n}else{var o;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n;var n,i=t.toString;if(D(i)&&!T(n=i.call(t)))return n}throw new TypeError}(t,"default"===r?"number":r)}function $(t){return!!t}function O(t){var e=A(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 D(t){return"function"==typeof t}function j(t){return"function"==typeof t}function L(t,e){return t===e||t!=t&&e!=e}function R(t,e){var r=t[e];if(null!=r){if(!D(r))throw new TypeError;return r}}function P(t){var e=R(t,i);if(!D(e))throw new TypeError;var r=e.call(t);if(!T(r))throw new TypeError;return r}function M(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 q(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)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 H(t,e,r){var o=h.getProvider(t,e);if(!S(o))return o;if(r){if(h.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,o){if(S(r)){if(!I(t))throw new TypeError;if(!j(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e);if(!S(o)&&!E(o)){if(!j(o))throw new TypeError;e=o}}return e}(t,e)}if(!I(t))throw new TypeError;if(!T(e))throw new TypeError;if(!T(o)&&!S(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(!S(i)&&!E(i)){if(!T(i))throw new TypeError;o=i}}return o}(t,e,r=O(r),o)})),t("metadata",(function(t,e){return function(r,o){if(!T(r))throw new TypeError;if(!S(o)&&!function(t){switch(k(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(!T(r))throw new TypeError;return S(o)||(o=O(o)),_(t,e,r,o)})),t("hasMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),m(t,e,r)})),t("getMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),y(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=O(e)),x(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=O(e)),C(t,e)})),t("deleteMetadata",(function(t,e,r){if(!T(e))throw new TypeError;if(S(r)||(r=O(r)),!T(e))throw new TypeError;S(r)||(r=O(r));var o=H(e,r,!1);return!S(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:()=>Cw,Dependency:()=>hw,DependencyValidator:()=>ww,DependencyValidatorOptions:()=>gw,DependencyValidatorOptionsToken:()=>vw,EmailValidator:()=>bw,ExistsValidator:()=>fw,IApiServiceToken:()=>ow,QboBadge:()=>$w,QboContact:()=>Dw,QboDataList:()=>Rw,QboDocViewer:()=>Nw,QboFormElement:()=>Vw,QboMainMenu:()=>eT,QboMarkdown:()=>nT,QboMicrophone:()=>lT,QboPopover:()=>uT,QboPopup:()=>mT,QboPopupListener:()=>_T,QboSelect:()=>kT,QboSideBar:()=>TT,QboTable:()=>OT,QboValidate:()=>jT,RestApiService:()=>cw,ValidateToken:()=>iw,ZipCodeValidator:()=>pw,elementClearValue:()=>MT,elementOptions:()=>LT,elementResetValue:()=>PT,elementSelectorAll:()=>RT,getApiService:()=>nw,getArray:()=>sw,matches:()=>NT,registerRestApi:()=>dw,replicate:()=>lw,services:()=>I,substitute:()=>aw});var t,e={};r.r(e),r.d(e,{afterMain:()=>l_,afterRead:()=>i_,afterWrite:()=>u_,applyStyles:()=>m_,arrow:()=>N_,auto:()=>Kw,basePlacements:()=>Xw,beforeMain:()=>s_,beforeRead:()=>o_,beforeWrite:()=>c_,bottom:()=>Fw,clippingParents:()=>Qw,computeStyles:()=>V_,createPopper:()=>vx,createPopperBase:()=>gx,createPopperLite:()=>mx,detectOverflow:()=>ox,end:()=>Jw,eventListeners:()=>F_,flip:()=>nx,hide:()=>ax,left:()=>Ww,main:()=>a_,modifierPhases:()=>p_,offset:()=>lx,placements:()=>r_,popper:()=>Zw,popperGenerator:()=>hx,popperOffsets:()=>cx,preventOverflow:()=>dx,read:()=>n_,reference:()=>t_,right:()=>Bw,start:()=>Gw,top:()=>Uw,variationPlacements:()=>e_,viewport:()=>Yw,write:()=>d_}),r(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const n=t;var i=function(t,e){return i=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])},i(t,e)};function s(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(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 l(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 c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(t){return!!t.useClass}function u(t){return!!t.useFactory}var p=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,c(e))}})),e},t}();function b(t){return"string"==typeof t||"symbol"==typeof t}function f(t){return"object"==typeof t&&"token"in t&&"transform"in t}function h(t){return!!t.useToken}function g(t){return null!=t.useValue}const v=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}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),y=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var C=new Map,k=function(){function t(t){this.parent=t,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(t){return d(t)||g(t)||h(t)||u(t)}(e)?e:{useClass:e},h(o))for(var i=[t],s=o;null!=s;){var a=s.useToken;if(i.includes(a))throw new Error("Token registration cycle detected! "+c(i,[a]).join(" -> "));i.push(a);var l=this._registry.get(a);s=l&&h(l.provider)?l.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(g(o)||u(o)))throw new Error('Cannot use lifecycle "'+n[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(),b(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(),b(t)){if(b(e))return this.register(t,{useToken:e},{lifecycle:n.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=t;return e&&!b(e)&&(r=e),this.register(t,{useClass:r},{lifecycle:n.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getRegistration(t);if(!r&&b(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 p}(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=a(this.interceptors.preResolution.getAll(t)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.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=a(this.interceptors.postResolution.getAll(t)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(t,e,r)}}catch(t){o={error:t}}finally{try{l&&!l.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===n.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var r,o=t.options.lifecycle===n.Singleton,i=t.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(t.provider)?t.provider.useValue:h(t.provider)?s?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?s?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):u(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.set(t,r),r},t.prototype.resolveAll=function(t,e){var r=this;void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&b(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=a(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=l(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(t){return!g(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 i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),d=c[0],u=c[1];u.some((function(t){return t.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(d,u.map((function(t){return t.options.lifecycle===n.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}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 p)return t.createProxy((function(t){return r.resolve(t,e)}));var o,n=function(){var o=C.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,c([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,d;try{return"object"==typeof(d=o)&&"token"in d&&"multiple"in d?f(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,c([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,c([r.resolve(o.token,t)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,t):f(o)?(a=r.resolve(o.transform,t)).transform.apply(a,c([r.resolve(o.token,t)],o.transformArgs)):r.resolve(o,t)}catch(t){throw new Error(function(t,e,r){var o,n,i=l(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,r){return void 0===r&&(r=" "),c([t],e.message.split("\n").map((function(t){return r+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',r)}(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}(),S=new k,E="injectionTokens";function T(t,e){return function(r,o,n){var i=Reflect.getOwnMetadata(E,r)||{};i[n]=e?{token:t,transform:e.transformToken,transformArgs:e.args||[]}:t,Reflect.defineMetadata(E,i,r)}}const A=function(t){return T(t)},$=function(){return function(t){C.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],r=Reflect.getOwnMetadata(E,t)||{};return Object.keys(r).forEach((function(t){e[+t]=r[t]})),e}(t))}},O=function(t){return T({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)}}(S.createChildContainer(),{});const I=window.qbo4.services,D="IConfigurationSourceToken",j="IConfigurationToken";function*L(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*L(r,`${t}:${e}`):yield{key:`${t}:${e}`,value:r}}else"object"==typeof o&&null!==o?yield*L(o,t):yield{key:t,value:o}}}class R{constructor(t){this.jsonConfig=t}getData(){return this.jsonConfig}*getValues(){yield*L(this.jsonConfig)}}class P{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 P({});r=r[t]}return new P(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*L(this.data)}}let M=class extends P{constructor(t){super({}),this.sources=t,this.mergeConfigurations(t)}mergeConfigurations(t){t.forEach((t=>{const e=t.getData();this.data={...this.data,...e}}))}};var N,z;M=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}([$(),(N=0,z=O(D),function(t,e){z(t,e,N)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array])],M),I.container.register(j,{useClass:M},{lifecycle:n.Singleton}),I.container.register(D,{useClass:class{getData(){return{}}*getValues(){yield*L({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),U=new WeakMap;class F{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(H&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=U.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&U.set(e,t))}return t}toString(){return this.cssText}}const B=(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 F(r,t,V)},W=H?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new F("string"==typeof t?t:t+"",void 0,V))(e)})(t):t,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,tt=Z.trustedTypes,et=tt?tt.emptyScript:"",rt=Z.reactiveElementPolyfillSupport,ot=(t,e)=>t,nt={toAttribute(t,e){switch(e){case Boolean:t=t?et: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}},it=(t,e)=>!K(t,e),st={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class at 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=st){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&&X(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=G(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)??st}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const t=Y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const t=this.properties,e=[...J(t),...Q(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(W(t))}else void 0!==t&&e.push(W(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(H)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=q.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:nt).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:nt;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??it)(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){}}at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[ot("elementProperties")]=new Map,at[ot("finalized")]=new Map,rt?.({ReactiveElement:at}),(Z.reactiveElementVersions??=[]).push("2.0.4");const lt=globalThis,ct=lt.trustedTypes,dt=ct?ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,ut="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,bt="?"+pt,ft=`<${bt}>`,ht=document,gt=()=>ht.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,mt=Array.isArray,yt="[ \t\n\f\r]",wt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,xt=/>/g,Ct=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,St=/"/g,Et=/^(?:script|style|textarea|title)$/i,Tt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),At=Tt(1),$t=(Tt(2),Symbol.for("lit-noChange")),Ot=Symbol.for("lit-nothing"),It=new WeakMap,Dt=ht.createTreeWalker(ht,129);function jt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==dt?dt.createHTML(e):e}const Lt=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=wt;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,d=0;for(;d<r.length&&(s.lastIndex=d,l=s.exec(r),null!==l);)d=s.lastIndex,s===wt?"!--"===l[1]?s=_t:void 0!==l[1]?s=xt:void 0!==l[2]?(Et.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Ct):void 0!==l[3]&&(s=Ct):s===Ct?">"===l[0]?(s=n??wt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Ct:'"'===l[3]?St:kt):s===St||s===kt?s=Ct:s===_t||s===xt?s=wt:(s=Ct,n=void 0);const u=s===Ct&&t[e+1].startsWith("/>")?" ":"";i+=s===wt?r+ft:c>=0?(o.push(a),r.slice(0,c)+ut+r.slice(c)+pt+u):r+pt+(-2===c?e:u)}return[jt(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]};class Rt{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]=Lt(t,e);if(this.el=Rt.createElement(l,r),Dt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Dt.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(ut)){const e=c[i++],r=o.getAttribute(t).split(pt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qt:"?"===s[1]?Ht:"@"===s[1]?Vt:zt}),o.removeAttribute(t)}else t.startsWith(pt)&&(a.push({type:6,index:n}),o.removeAttribute(t));if(Et.test(o.tagName)){const t=o.textContent.split(pt),e=t.length-1;if(e>0){o.textContent=ct?ct.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],gt()),Dt.nextNode(),a.push({type:2,index:++n});o.append(t[e],gt())}}}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(pt,t+1));)a.push({type:7,index:n}),t+=pt.length-1}n++}}static createElement(t,e){const r=ht.createElement("template");return r.innerHTML=t,r}}function Pt(t,e,r=t,o){if(e===$t)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=vt(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=Pt(t,n._$AS(t,e.values),n,o)),e}class Mt{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??ht).importNode(e,!0);Dt.currentNode=o;let n=Dt.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Ut(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=Dt.nextNode(),i++)}return Dt.currentNode=ht,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 Nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=Ot,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=Pt(this,t,e),vt(t)?t===Ot||null==t||""===t?(this._$AH!==Ot&&this._$AR(),this._$AH=Ot):t!==this._$AH&&t!==$t&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>mt(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!==Ot&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(ht.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=Rt.createElement(jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=It.get(t.strings);return void 0===e&&It.set(t.strings,e=new Rt(t)),e}k(t){mt(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 Nt(this.S(gt()),this.S(gt()),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 zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=Ot,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=Ot}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Pt(this,t,e,0),i=!vt(t)||t!==this._$AH&&t!==$t,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Pt(this,o[r+s],e,s),a===$t&&(a=this._$AH[s]),i||=!vt(a)||a!==this._$AH[s],a===Ot?t=Ot:t!==Ot&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===Ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ot?void 0:t}}class Ht extends zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ot)}}class Vt extends zt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Pt(this,t,e,0)??Ot)===$t)return;const r=this._$AH,o=t===Ot&&r!==Ot||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==Ot&&(r===Ot||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 Ut{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){Pt(this,t)}}const Ft=lt.litHtmlPolyfillSupport;Ft?.(Rt,Nt),(lt.litHtmlVersions??=[]).push("3.1.3");class Bt extends at{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 Nt(e.insertBefore(gt(),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 $t}}Bt._$litElement$=!0,Bt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Bt});const Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:Bt}),(globalThis.litElementVersions??=[]).push("4.0.5");const Kt=t=>(e,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},Xt={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it},Gt=(t=Xt,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 Jt(t){return(e,r)=>"object"==typeof r?Gt(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)}class Qt extends Bt{static get formAssociated(){return!0}static{this.styles=B`
|
|
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 V(Object.create(null))}:a?function(){return V({__proto__:null})}:function(){return V({})},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]}},d=Object.getPrototypeOf(Function),u="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--,L(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(!L(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(L(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 u}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}(),b="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,h=function(){var t;return!S(f)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[f]),S(t)&&(t=function(){var t,r,o,n;S(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 b;return{isProviderFor:function(t,e){var r=s.get(t);return!(S(r)||!r.has(e))||!!n(t,e).length&&(S(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 b,s={registerProvider:a,getProvider:c,setProvider:h};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 S(r):r=e;break;case r===e:break;case S(o):o=e;break;case o===e:break;default:void 0===n&&(n=new p),n.add(e)}}function l(e,i){if(!S(r)){if(r.isProviderFor(e,i))return r;if(!S(o)){if(o.isProviderFor(e,i))return r;if(!S(n))for(var s=P(n);;){var a=N(s);if(!a)return;var l=M(a);if(l.isProviderFor(e,i))return z(s),l}}}if(!S(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,o=i.get(t);return S(o)||(r=o.get(e)),S(r)?(S(r=l(t,e))||(S(o)&&(o=new u,i.set(t,o)),o.set(e,r)),r):r}function d(t){if(S(t))throw new TypeError;return r===t||o===t||!S(n)&&n.has(t)}function h(t,e,r){if(!d(r))throw new Error("Metadata provider not registered.");var o=c(t,e);if(o!==r){if(!S(o))return!1;var n=i.get(t);S(n)&&(n=new u,i.set(t,n)),n.set(e,r)}return!0}}()),!S(f)&&T(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 b,r={isProviderFor:function(t,r){var o=e.get(t);return!S(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!S(n)&&$(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var n=o(e,r,!1);if(!S(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],n=o(t,e,!1);if(S(n))return r;for(var i=P(n.keys()),s=0;;){var a=N(i);if(!a)return r.length=s,r;var l=M(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(S(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);S(s)||(s.delete(n),0===s.size&&e.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=e.get(o),a=!1;if(S(s)){if(!i)return;s=new u,e.set(o,s),a=!0}var l=s.get(n);if(S(l)){if(!i)return;if(l=new u,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}}(h);function v(t,e,r){if(m(t,e,r))return!0;var o=q(e);return!E(o)&&v(t,o,r)}function m(t,e,r){var o=H(e,r,!1);return!S(o)&&$(o.OrdinaryHasOwnMetadata(t,e,r))}function y(t,e,r){if(m(t,e,r))return w(t,e,r);var o=q(e);return E(o)?void 0:y(t,o,r)}function w(t,e,r){var o=H(e,r,!1);if(!S(o))return o.OrdinaryGetOwnMetadata(t,e,r)}function _(t,e,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(t,e,r,o)}function x(t,e){var r=C(t,e),o=q(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 d=0,u=n;d<u.length;d++)c=u[d],i.has(c)||(i.add(c),s.push(c));return s}function C(t,e){var r=H(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function k(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 S(t){return void 0===t}function E(t){return null===t}function T(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(k(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=R(t,n);if(void 0!==o){var i=o.call(t,r);if(T(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(D(r)&&!T(n=r.call(t)))return n;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n}else{var o;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n;var n,i=t.toString;if(D(i)&&!T(n=i.call(t)))return n}throw new TypeError}(t,"default"===r?"number":r)}function $(t){return!!t}function O(t){var e=A(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 D(t){return"function"==typeof t}function j(t){return"function"==typeof t}function L(t,e){return t===e||t!=t&&e!=e}function R(t,e){var r=t[e];if(null!=r){if(!D(r))throw new TypeError;return r}}function P(t){var e=R(t,i);if(!D(e))throw new TypeError;var r=e.call(t);if(!T(r))throw new TypeError;return r}function M(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 q(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)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 H(t,e,r){var o=h.getProvider(t,e);if(!S(o))return o;if(r){if(h.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,o){if(S(r)){if(!I(t))throw new TypeError;if(!j(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e);if(!S(o)&&!E(o)){if(!j(o))throw new TypeError;e=o}}return e}(t,e)}if(!I(t))throw new TypeError;if(!T(e))throw new TypeError;if(!T(o)&&!S(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(!S(i)&&!E(i)){if(!T(i))throw new TypeError;o=i}}return o}(t,e,r=O(r),o)})),t("metadata",(function(t,e){return function(r,o){if(!T(r))throw new TypeError;if(!S(o)&&!function(t){switch(k(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(!T(r))throw new TypeError;return S(o)||(o=O(o)),_(t,e,r,o)})),t("hasMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),m(t,e,r)})),t("getMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),y(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=O(e)),x(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=O(e)),C(t,e)})),t("deleteMetadata",(function(t,e,r){if(!T(e))throw new TypeError;if(S(r)||(r=O(r)),!T(e))throw new TypeError;S(r)||(r=O(r));var o=H(e,r,!1);return!S(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,{Dependency:()=>fw,DependencyValidator:()=>yw,DependencyValidatorOptions:()=>hw,DependencyValidatorOptionsToken:()=>gw,EmailValidator:()=>pw,ExistsValidator:()=>bw,IApiServiceToken:()=>lw,QboApiElement:()=>xw,QboBadge:()=>Aw,QboContact:()=>Iw,QboDataList:()=>Lw,QboDocViewer:()=>Mw,QboFormElement:()=>Hw,QboMainMenu:()=>tT,QboMarkdown:()=>oT,QboMicrophone:()=>aT,QboPopover:()=>dT,QboPopup:()=>vT,QboPopupListener:()=>wT,QboSelect:()=>CT,QboSideBar:()=>ET,QboTable:()=>$T,QboValidate:()=>DT,RestApiService:()=>sw,ValidateToken:()=>cw,ZipCodeValidator:()=>uw,elementClearValue:()=>PT,elementData:()=>NT,elementOptions:()=>jT,elementResetValue:()=>RT,elementSelectorAll:()=>LT,getApiService:()=>zT,getArray:()=>ow,matches:()=>MT,registerRestApi:()=>aw,replicate:()=>iw,services:()=>I,substitute:()=>nw});var t,e={};r.r(e),r.d(e,{afterMain:()=>a_,afterRead:()=>n_,afterWrite:()=>d_,applyStyles:()=>v_,arrow:()=>M_,auto:()=>Ww,basePlacements:()=>Kw,beforeMain:()=>i_,beforeRead:()=>r_,beforeWrite:()=>l_,bottom:()=>Uw,clippingParents:()=>Jw,computeStyles:()=>H_,createPopper:()=>gx,createPopperBase:()=>hx,createPopperLite:()=>vx,detectOverflow:()=>rx,end:()=>Gw,eventListeners:()=>U_,flip:()=>ox,hide:()=>sx,left:()=>Bw,main:()=>s_,modifierPhases:()=>u_,offset:()=>ax,placements:()=>e_,popper:()=>Yw,popperGenerator:()=>fx,popperOffsets:()=>lx,preventOverflow:()=>cx,read:()=>o_,reference:()=>Zw,right:()=>Fw,start:()=>Xw,top:()=>Vw,variationPlacements:()=>t_,viewport:()=>Qw,write:()=>c_}),r(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const n=t;var i=function(t,e){return i=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])},i(t,e)};function s(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(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 l(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 c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(t){return!!t.useClass}function u(t){return!!t.useFactory}var p=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,c(e))}})),e},t}();function b(t){return"string"==typeof t||"symbol"==typeof t}function f(t){return"object"==typeof t&&"token"in t&&"transform"in t}function h(t){return!!t.useToken}function g(t){return null!=t.useValue}const v=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}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),y=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var C=new Map,k=function(){function t(t){this.parent=t,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(t){return d(t)||g(t)||h(t)||u(t)}(e)?e:{useClass:e},h(o))for(var i=[t],s=o;null!=s;){var a=s.useToken;if(i.includes(a))throw new Error("Token registration cycle detected! "+c(i,[a]).join(" -> "));i.push(a);var l=this._registry.get(a);s=l&&h(l.provider)?l.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(g(o)||u(o)))throw new Error('Cannot use lifecycle "'+n[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(),b(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(),b(t)){if(b(e))return this.register(t,{useToken:e},{lifecycle:n.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=t;return e&&!b(e)&&(r=e),this.register(t,{useClass:r},{lifecycle:n.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getRegistration(t);if(!r&&b(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 p}(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=a(this.interceptors.preResolution.getAll(t)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.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=a(this.interceptors.postResolution.getAll(t)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(t,e,r)}}catch(t){o={error:t}}finally{try{l&&!l.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===n.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var r,o=t.options.lifecycle===n.Singleton,i=t.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(t.provider)?t.provider.useValue:h(t.provider)?s?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?s?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):u(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.set(t,r),r},t.prototype.resolveAll=function(t,e){var r=this;void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&b(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=a(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=l(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(t){return!g(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 i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),d=c[0],u=c[1];u.some((function(t){return t.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(d,u.map((function(t){return t.options.lifecycle===n.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}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 p)return t.createProxy((function(t){return r.resolve(t,e)}));var o,n=function(){var o=C.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,c([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,d;try{return"object"==typeof(d=o)&&"token"in d&&"multiple"in d?f(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,c([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,c([r.resolve(o.token,t)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,t):f(o)?(a=r.resolve(o.transform,t)).transform.apply(a,c([r.resolve(o.token,t)],o.transformArgs)):r.resolve(o,t)}catch(t){throw new Error(function(t,e,r){var o,n,i=l(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,r){return void 0===r&&(r=" "),c([t],e.message.split("\n").map((function(t){return r+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',r)}(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}(),S=new k,E="injectionTokens";function T(t,e){return function(r,o,n){var i=Reflect.getOwnMetadata(E,r)||{};i[n]=e?{token:t,transform:e.transformToken,transformArgs:e.args||[]}:t,Reflect.defineMetadata(E,i,r)}}const A=function(t){return T(t)},$=function(){return function(t){C.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],r=Reflect.getOwnMetadata(E,t)||{};return Object.keys(r).forEach((function(t){e[+t]=r[t]})),e}(t))}},O=function(t){return T({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)}}(S.createChildContainer(),{});const I=window.qbo4.services,D="IConfigurationSourceToken",j="IConfigurationToken";function*L(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*L(r,`${t}:${e}`):yield{key:`${t}:${e}`,value:r}}else"object"==typeof o&&null!==o?yield*L(o,t):yield{key:t,value:o}}}class R{constructor(t){this.jsonConfig=t}getData(){return this.jsonConfig}*getValues(){yield*L(this.jsonConfig)}}class P{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 P({});r=r[t]}return new P(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*L(this.data)}}let M=class extends P{constructor(t){super({}),this.sources=t,this.mergeConfigurations(t)}mergeConfigurations(t){t.forEach((t=>{const e=t.getData();this.data={...this.data,...e}}))}};var N,z;M=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}([$(),(N=0,z=O(D),function(t,e){z(t,e,N)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array])],M),I.container.register(j,{useClass:M},{lifecycle:n.Singleton}),I.container.register(D,{useClass:class{getData(){return{}}*getValues(){yield*L({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),U=new WeakMap;class F{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(H&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=U.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&U.set(e,t))}return t}toString(){return this.cssText}}const B=(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 F(r,t,V)},W=H?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new F("string"==typeof t?t:t+"",void 0,V))(e)})(t):t,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,tt=Z.trustedTypes,et=tt?tt.emptyScript:"",rt=Z.reactiveElementPolyfillSupport,ot=(t,e)=>t,nt={toAttribute(t,e){switch(e){case Boolean:t=t?et: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}},it=(t,e)=>!K(t,e),st={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class at 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=st){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&&X(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=G(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)??st}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const t=Y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const t=this.properties,e=[...J(t),...Q(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(W(t))}else void 0!==t&&e.push(W(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(H)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=q.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:nt).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:nt;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??it)(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){}}at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[ot("elementProperties")]=new Map,at[ot("finalized")]=new Map,rt?.({ReactiveElement:at}),(Z.reactiveElementVersions??=[]).push("2.0.4");const lt=globalThis,ct=lt.trustedTypes,dt=ct?ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,ut="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,bt="?"+pt,ft=`<${bt}>`,ht=document,gt=()=>ht.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,mt=Array.isArray,yt="[ \t\n\f\r]",wt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,xt=/>/g,Ct=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,St=/"/g,Et=/^(?:script|style|textarea|title)$/i,Tt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),At=Tt(1),$t=(Tt(2),Symbol.for("lit-noChange")),Ot=Symbol.for("lit-nothing"),It=new WeakMap,Dt=ht.createTreeWalker(ht,129);function jt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==dt?dt.createHTML(e):e}const Lt=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=wt;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,d=0;for(;d<r.length&&(s.lastIndex=d,l=s.exec(r),null!==l);)d=s.lastIndex,s===wt?"!--"===l[1]?s=_t:void 0!==l[1]?s=xt:void 0!==l[2]?(Et.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Ct):void 0!==l[3]&&(s=Ct):s===Ct?">"===l[0]?(s=n??wt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Ct:'"'===l[3]?St:kt):s===St||s===kt?s=Ct:s===_t||s===xt?s=wt:(s=Ct,n=void 0);const u=s===Ct&&t[e+1].startsWith("/>")?" ":"";i+=s===wt?r+ft:c>=0?(o.push(a),r.slice(0,c)+ut+r.slice(c)+pt+u):r+pt+(-2===c?e:u)}return[jt(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]};class Rt{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]=Lt(t,e);if(this.el=Rt.createElement(l,r),Dt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Dt.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(ut)){const e=c[i++],r=o.getAttribute(t).split(pt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qt:"?"===s[1]?Ht:"@"===s[1]?Vt:zt}),o.removeAttribute(t)}else t.startsWith(pt)&&(a.push({type:6,index:n}),o.removeAttribute(t));if(Et.test(o.tagName)){const t=o.textContent.split(pt),e=t.length-1;if(e>0){o.textContent=ct?ct.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],gt()),Dt.nextNode(),a.push({type:2,index:++n});o.append(t[e],gt())}}}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(pt,t+1));)a.push({type:7,index:n}),t+=pt.length-1}n++}}static createElement(t,e){const r=ht.createElement("template");return r.innerHTML=t,r}}function Pt(t,e,r=t,o){if(e===$t)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=vt(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=Pt(t,n._$AS(t,e.values),n,o)),e}class Mt{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??ht).importNode(e,!0);Dt.currentNode=o;let n=Dt.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Ut(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=Dt.nextNode(),i++)}return Dt.currentNode=ht,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 Nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=Ot,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=Pt(this,t,e),vt(t)?t===Ot||null==t||""===t?(this._$AH!==Ot&&this._$AR(),this._$AH=Ot):t!==this._$AH&&t!==$t&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>mt(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!==Ot&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(ht.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=Rt.createElement(jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=It.get(t.strings);return void 0===e&&It.set(t.strings,e=new Rt(t)),e}k(t){mt(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 Nt(this.S(gt()),this.S(gt()),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 zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=Ot,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=Ot}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Pt(this,t,e,0),i=!vt(t)||t!==this._$AH&&t!==$t,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Pt(this,o[r+s],e,s),a===$t&&(a=this._$AH[s]),i||=!vt(a)||a!==this._$AH[s],a===Ot?t=Ot:t!==Ot&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===Ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ot?void 0:t}}class Ht extends zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ot)}}class Vt extends zt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Pt(this,t,e,0)??Ot)===$t)return;const r=this._$AH,o=t===Ot&&r!==Ot||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==Ot&&(r===Ot||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 Ut{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){Pt(this,t)}}const Ft=lt.litHtmlPolyfillSupport;Ft?.(Rt,Nt),(lt.litHtmlVersions??=[]).push("3.1.3");class Bt extends at{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 Nt(e.insertBefore(gt(),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 $t}}Bt._$litElement$=!0,Bt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Bt});const Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:Bt}),(globalThis.litElementVersions??=[]).push("4.0.5");const Kt=t=>(e,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},Xt={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it},Gt=(t=Xt,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 Jt(t){return(e,r)=>"object"==typeof r?Gt(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)}class Qt extends Bt{static get formAssociated(){return!0}static{this.styles=B`
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
5
|
padding: 16px;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
`}};Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"debug",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"info",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"warning",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"error",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"critial",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"window",void 0),Jy([Jt({type:Array}),Qy("design:type",Array)],Yy.prototype,"logs",void 0),Jy([Jt({type:Object}),Qy("design:type",Object)],Yy.prototype,"logCounts",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"showModal",void 0),Yy=Gy=Jy([Kt("qbo-logging"),Qy("design:paramtypes",[])],Yy);var Zy=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},tw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ew extends Bt{constructor(){super(...arguments),this.selector="",this.cssClass="",this.selectorRoot=""}static{this.styles=[Xy]}render(){return At`<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")}))}}Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selector",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"cssClass",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selectorRoot",void 0),customElements.define("qbo-find",ew);const rw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},ow="ApiServiceToken";function nw(t){return I.container.resolve(t)}const iw="ValidateToken";function sw(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=sw(o,e);if(t)return t}}return null}function aw(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 lw(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=aw(n.firstElementChild?.innerHTML??"",r)),t.appendChild(n)}))}}class cw{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=aw(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 dw(t,e,r={"Content-Type":"application/json"},o){I.container.registerInstance(t,new cw(e,r,o))}I.container.registerInstance("default",new cw(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var uw=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 pw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};pw=uw([$()],pw),I.container.register(iw,{useClass:pw});let bw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};bw=uw([$()],bw),I.container.register(iw,{useClass:bw});let fw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(t){}disconnect(){}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var r=t.getAttribute("data-exists-path");const o=I.container.isRegistered(e)?I.container.resolve(e):new cw(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=sw(await o.fetch(r,{value:t.value}));return null!=e&&e.length>0}return!1}};fw=uw([$()],fw),I.container.register(iw,{useClass:fw});class hw{constructor(){this.operator="=",this.value=null}}class gw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const vw="DependencyValidatorOptions",mw=new Map([["!=",(t,e)=>!NT(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>NT(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),yw=Array.from(mw.keys());let ww=class{constructor(t,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async t=>{console.log("checking dependencies",this.optionsCache);for(const[t,e]of this.optionsCache)await this.validate(t)},this.form=t,this.options=e,this.currentOptions=e}connect(t){this.form.querySelectorAll(this.selector).forEach((t=>{t instanceof HTMLElement&&this.getOptions(t)})),this.optionsCache.forEach(((t,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(t){const e=this.getOptions(t);if(null==e)return Promise.resolve(!0);let r;r="or"===e.condition?e.evaluators.some((t=>!0===t())):e.evaluators.every((t=>!0===t())),(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&(t.disabled=!r),t.classList.toggle(e.disabledClass,!r);const o=RT(t,"input,select,textarea");return r?e.disableChildren&&o.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&o.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?o.forEach((t=>PT(t))):e.emptyOnDisable&&o.forEach((t=>MT(t)))),Promise.resolve(r)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,LT(t,"data-depend-"))}catch(t){console.error("Error parsing data-depend-options attribute:",t)}if(!e)return null;e.evaluators=e.depends.split(",").map((t=>{t=t.trim();let e=yw.find((e=>t.includes(e)))??"!=",r=null,o="";if(e){const n=t.split(e);r=n[0],o=n[1]??""}else t.startsWith("!")?(e="=",r=t.substring(1)):r=t;const n=this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>mw.get(e)(n,o):n instanceof HTMLSelectElement?()=>mw.get(e)(n,o):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((t=>void 0!==t)),this.optionsCache.set(t,e)}return e}getElement(t){return this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`)}};ww=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}([$(),function(t,e){return function(r,o){e(r,o,t)}}(1,A(vw)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,gw])],ww),I.container.register(vw,{useValue:new gw}),I.container.register(iw,{useClass:ww});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},xw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Cw=class extends Bt{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}connectedCallback(){super.connectedCallback();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),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),dw(this.name,this.apiEndpoint,t,this.method)}render(){return At``}};_w([Jt({type:String}),xw("design:type",Object)],Cw.prototype,"name",void 0),_w([Jt({type:String}),xw("design:type",Object)],Cw.prototype,"apiEndpoint",void 0),_w([Jt({type:String}),xw("design:type",String)],Cw.prototype,"method",void 0),Cw=_w([Kt("qbo-api")],Cw);var kw=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},Sw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Ew=(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 kw([Jt({type:URL}),Sw("design:type",Object)],e.prototype,"apiEndpoint",void 0),kw([Jt({type:String}),Sw("design:type",Object)],e.prototype,"method",void 0),kw([Jt({type:Boolean}),Sw("design:type",Object)],e.prototype,"error",void 0),kw([Jt({type:Object}),Sw("design:type",Object)],e.prototype,"jsonData",void 0),kw([Jt({type:String}),Sw("design:type",Object)],e.prototype,"accept",void 0),kw([Jt({type:String}),Sw("design:type",Object)],e.prototype,"headerTag",void 0),kw([Jt({type:String}),Sw("design:type",Object)],e.prototype,"html",void 0),kw([Jt({type:Boolean}),Sw("design:type",Object)],e.prototype,"fetchOnLoad",void 0),e})(Bt);var Tw=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},Aw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let $w=class extends Ew{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")??""}))}};Tw([Jt({type:Boolean}),Aw("design:type",Object)],$w.prototype,"loading",void 0),Tw([Jt(),Aw("design:type",Object)],$w.prototype,"target",void 0),Tw([Jt(),Aw("design:type",Array)],$w.prototype,"values",void 0),Tw([Jt(),Aw("design:type",Object)],$w.prototype,"selector",void 0),$w=Tw([Kt("qbo-badge")],$w);var Ow=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},Iw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Dw=class extends Bt{constructor(){super(...arguments),this.apiEndpoint="qbo",this.colFourClass="qbo-col-4",this.colSixClass="qbo-col-6",this.colThreeClass="qbo-col-3",this.colTwelveClass="qbo-col-12",this.contactId=null,this.contactLabel="Contact",this.contactName="Contact",this.disabled=!0,this.divSectionHeaderClass="qbo-header",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0,this.jsonData={}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const t=I.container.isRegistered(this.apiEndpoint)?I.container.resolve(this.apiEndpoint):new cw(this.apiEndpoint);this.jsonData=await t.fetch("contact/summary.json",{ID:`${this.contactId}`})}render(){return null==this.jsonData||null==this.jsonData.ContactItem&&null!=this.contactId?At`<p>Loading...</p>`:At`<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")}))}}Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selector",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"cssClass",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selectorRoot",void 0),customElements.define("qbo-find",ew);const rw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"};function ow(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=ow(o,e);if(t)return t}}return null}function nw(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 iw(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=nw(n.firstElementChild?.innerHTML??"",r)),t.appendChild(n)}))}}class sw{constructor(t,e={"Content-Type":"application/json"},r=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=r}async fetch(t,e=null){const r=nw(new URL(t??this.relativePath,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 aw(t,e,r={"Content-Type":"application/json"},o){I.container.registerInstance(t,new sw(e,r,o))}I.container.registerInstance("default",new sw(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));const lw="ApiServiceToken",cw="ValidateToken";var dw=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 uw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};uw=dw([$()],uw),I.container.register(cw,{useClass:uw});let pw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};pw=dw([$()],pw),I.container.register(cw,{useClass:pw});let bw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(t){}disconnect(){}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var r=t.getAttribute("data-exists-path");const o=I.container.isRegistered(e)?I.container.resolve(e):new sw(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=ow(await o.fetch(r,{value:t.value}));return null!=e&&e.length>0}return!1}};bw=dw([$()],bw),I.container.register(cw,{useClass:bw});class fw{constructor(){this.operator="=",this.value=null}}class hw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const gw="DependencyValidatorOptions",vw=new Map([["!=",(t,e)=>!MT(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>MT(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),mw=Array.from(vw.keys());let yw=class{constructor(t,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async t=>{console.log("checking dependencies",this.optionsCache);for(const[t,e]of this.optionsCache)await this.validate(t)},this.form=t,this.options=e,this.currentOptions=e}connect(t){this.form.querySelectorAll(this.selector).forEach((t=>{t instanceof HTMLElement&&this.getOptions(t)})),this.optionsCache.forEach(((t,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(t){const e=this.getOptions(t);if(null==e)return Promise.resolve(!0);let r;r="or"===e.condition?e.evaluators.some((t=>!0===t())):e.evaluators.every((t=>!0===t())),(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&(t.disabled=!r),t.classList.toggle(e.disabledClass,!r);const o=LT(t,"input,select,textarea");return r?e.disableChildren&&o.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&o.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?o.forEach((t=>RT(t))):e.emptyOnDisable&&o.forEach((t=>PT(t)))),Promise.resolve(r)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,jT(t,"data-depend-"))}catch(t){console.error("Error parsing data-depend-options attribute:",t)}if(!e)return null;e.evaluators=e.depends.split(",").map((t=>{t=t.trim();let e=mw.find((e=>t.includes(e)))??"!=",r=null,o="";if(e){const n=t.split(e);r=n[0],o=n[1]??""}else t.startsWith("!")?(e="=",r=t.substring(1)):r=t;const n=this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>vw.get(e)(n,o):n instanceof HTMLSelectElement?()=>vw.get(e)(n,o):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((t=>void 0!==t)),this.optionsCache.set(t,e)}return e}getElement(t){return this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`)}};yw=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}([$(),function(t,e){return function(r,o){e(r,o,t)}}(1,A(gw)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,hw])],yw),I.container.register(gw,{useValue:new hw}),I.container.register(cw,{useClass:yw});var ww=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},_w=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let xw=class extends Bt{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}connectedCallback(){super.connectedCallback();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),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),aw(this.name,this.apiEndpoint,t,this.method)}render(){return At``}};ww([Jt({type:String}),_w("design:type",Object)],xw.prototype,"name",void 0),ww([Jt({type:String}),_w("design:type",Object)],xw.prototype,"apiEndpoint",void 0),ww([Jt({type:String}),_w("design:type",String)],xw.prototype,"method",void 0),xw=ww([Kt("qbo-api")],xw);var Cw=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},kw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Sw=(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 Cw([Jt({type:URL}),kw("design:type",Object)],e.prototype,"apiEndpoint",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"method",void 0),Cw([Jt({type:Boolean}),kw("design:type",Object)],e.prototype,"error",void 0),Cw([Jt({type:Object}),kw("design:type",Object)],e.prototype,"jsonData",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"accept",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"headerTag",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"html",void 0),Cw([Jt({type:Boolean}),kw("design:type",Object)],e.prototype,"fetchOnLoad",void 0),e})(Bt);var Ew=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},Tw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Aw=class extends Sw{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")??""}))}};Ew([Jt({type:Boolean}),Tw("design:type",Object)],Aw.prototype,"loading",void 0),Ew([Jt(),Tw("design:type",Object)],Aw.prototype,"target",void 0),Ew([Jt(),Tw("design:type",Array)],Aw.prototype,"values",void 0),Ew([Jt(),Tw("design:type",Object)],Aw.prototype,"selector",void 0),Aw=Ew([Kt("qbo-badge")],Aw);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},Ow=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Iw=class extends Bt{constructor(){super(...arguments),this.apiEndpoint="qbo",this.colFourClass="qbo-col-4",this.colSixClass="qbo-col-6",this.colThreeClass="qbo-col-3",this.colTwelveClass="qbo-col-12",this.contactId=null,this.contactLabel="Contact",this.contactName="Contact",this.disabled=!0,this.divSectionHeaderClass="qbo-header",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0,this.jsonData={}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const t=I.container.isRegistered(this.apiEndpoint)?I.container.resolve(this.apiEndpoint):new sw(this.apiEndpoint);this.jsonData=await t.fetch("contact/summary.json",{ID:`${this.contactId}`})}render(){return null==this.jsonData||null==this.jsonData.ContactItem&&null!=this.contactId?At`<p>Loading...</p>`:At`<slot>
|
|
56
56
|
<div class="${this.colSixClass}">
|
|
57
57
|
<label for="${this.contactName}" class="${this.formLabelSmallClass}">${this.contactLabel}</label>
|
|
58
58
|
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="${this.contactName}" value="${this.jsonData?.ContactItem?.Contact}"/>
|
|
@@ -198,13 +198,13 @@
|
|
|
198
198
|
<label for="SCRAID" class="${this.formLabelSmallClass}">SCRA ID</label>
|
|
199
199
|
<input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAID" value="${this.jsonData?.ContactItem?.SCRAID}"/>
|
|
200
200
|
</div>
|
|
201
|
-
</slot>`}}
|
|
201
|
+
</slot>`}};$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"apiEndpoint",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colFourClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colSixClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colThreeClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colTwelveClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"contactId",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"contactLabel",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"contactName",void 0),$w([Jt({type:Boolean}),Ow("design:type",Object)],Iw.prototype,"disabled",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"divSectionHeaderClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"formControlSmallClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"formLabelSmallClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"formSelectSmallClass",void 0),$w([Jt({type:Boolean}),Ow("design:type",Object)],Iw.prototype,"renderInHost",void 0),$w([Jt({type:Object}),Ow("design:type",Object)],Iw.prototype,"jsonData",void 0),Iw=$w([Kt("qbo-contact")],Iw);var Dw=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},jw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Lw=class extends Sw{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=ow(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),At`
|
|
202
202
|
<datalist id=${this.listId}>
|
|
203
203
|
${this.options.map((t=>At`<option value="${t[this.text]}" data-value="${t[this.value]}"/>`))}
|
|
204
|
-
</datalist>`):At``}};
|
|
204
|
+
</datalist>`):At``}};Dw([Jt({type:String}),jw("design:type",Object)],Lw.prototype,"listId",void 0),Dw([Jt({type:Number}),jw("design:type",Object)],Lw.prototype,"min",void 0),Dw([Jt({type:Array}),jw("design:type",Object)],Lw.prototype,"options",void 0),Dw([Jt({type:Boolean}),jw("design:type",Object)],Lw.prototype,"renderInHost",void 0),Dw([Jt({type:String}),jw("design:type",Object)],Lw.prototype,"text",void 0),Dw([Jt({type:String}),jw("design:type",Object)],Lw.prototype,"value",void 0),Dw([Jt({type:Boolean}),jw("design:type",Object)],Lw.prototype,"fetchOnLoad",void 0),Lw=Dw([Kt("qbo-datalist")],Lw);var Rw=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},Pw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Mw=class extends Sw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
|
|
205
205
|
/* Add any custom styles here */
|
|
206
206
|
.foo { color: red; }
|
|
207
|
-
`]}async connectedCallback(){super.connectedCallback()}render(){return At`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Pw([Jt({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"open",void 0),Pw([Jt({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"loading",void 0),Pw([Jt({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"renderInHost",void 0),Nw=Pw([Kt("qbo-docviewer")],Nw);var zw,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},Hw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Vw=class extends Bt{static{zw=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=I.container.resolve(ee)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=aw(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 At`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea"),e=Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof zw)&&t.name));e.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 zw)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)}};qw([Jt({type:FormData}),Hw("design:type",FormData)],Vw.prototype,"value",void 0),qw([Jt({type:String}),Hw("design:type",Object)],Vw.prototype,"template",void 0),qw([Jt({type:String}),Hw("design:type",Object)],Vw.prototype,"name",void 0),qw([Jt({type:Object}),Hw("design:type",Object)],Vw.prototype,"data",void 0),Vw=zw=qw([Kt("qbo-form-element"),Hw("design:paramtypes",[])],Vw);var Uw="top",Fw="bottom",Bw="right",Ww="left",Kw="auto",Xw=[Uw,Fw,Bw,Ww],Gw="start",Jw="end",Qw="clippingParents",Yw="viewport",Zw="popper",t_="reference",e_=Xw.reduce((function(t,e){return t.concat([e+"-"+Gw,e+"-"+Jw])}),[]),r_=[].concat(Xw,[Kw]).reduce((function(t,e){return t.concat([e,e+"-"+Gw,e+"-"+Jw])}),[]),o_="beforeRead",n_="read",i_="afterRead",s_="beforeMain",a_="main",l_="afterMain",c_="beforeWrite",d_="write",u_="afterWrite",p_=[o_,n_,i_,s_,a_,l_,c_,d_,u_];function b_(t){return t?(t.nodeName||"").toLowerCase():null}function f_(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function h_(t){return t instanceof f_(t).Element||t instanceof Element}function g_(t){return t instanceof f_(t).HTMLElement||t instanceof HTMLElement}function v_(t){return"undefined"!=typeof ShadowRoot&&(t instanceof f_(t).ShadowRoot||t instanceof ShadowRoot)}const m_={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];g_(n)&&b_(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}),{});g_(o)&&b_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function y_(t){return t.split("-")[0]}var w_=Math.max,__=Math.min,x_=Math.round;function C_(){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(C_())}function S_(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&g_(t)&&(n=t.offsetWidth>0&&x_(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&x_(o.height)/t.offsetHeight||1);var s=(h_(t)?f_(t):window).visualViewport,a=!k_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,d=o.width/n,u=o.height/i;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function E_(t){var e=S_(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 T_(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&v_(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function A_(t){return f_(t).getComputedStyle(t)}function $_(t){return["table","td","th"].indexOf(b_(t))>=0}function O_(t){return((h_(t)?t.ownerDocument:t.document)||window.document).documentElement}function I_(t){return"html"===b_(t)?t:t.assignedSlot||t.parentNode||(v_(t)?t.host:null)||O_(t)}function D_(t){return g_(t)&&"fixed"!==A_(t).position?t.offsetParent:null}function j_(t){for(var e=f_(t),r=D_(t);r&&$_(r)&&"static"===A_(r).position;)r=D_(r);return r&&("html"===b_(r)||"body"===b_(r)&&"static"===A_(r).position)?e:r||function(t){var e=/firefox/i.test(C_());if(/Trident/i.test(C_())&&g_(t)&&"fixed"===A_(t).position)return null;var r=I_(t);for(v_(r)&&(r=r.host);g_(r)&&["html","body"].indexOf(b_(r))<0;){var o=A_(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 L_(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function R_(t,e,r){return w_(t,__(e,r))}function P_(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function M_(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const N_={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=y_(r.placement),l=L_(a),c=[Ww,Bw].indexOf(a)>=0?"height":"width";if(i&&s){var d=function(t,e){return P_("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:M_(t,Xw))}(n.padding,r),u=E_(i),p="y"===l?Uw:Ww,b="y"===l?Fw:Bw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=j_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=d[p],w=v-u[c]-d[b],_=v/2-u[c]/2+m,x=R_(y,_,w),C=l;r.modifiersData[o]=((e={})[C]=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)))&&T_(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function z_(t){return t.split("-")[1]}var q_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H_(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,d=t.roundOffsets,u=t.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof d?d({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Ww,w=Uw,_=window;if(c){var x=j_(r),C="clientHeight",k="clientWidth";x===f_(r)&&"static"!==A_(x=O_(r)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(n===Uw||(n===Ww||n===Bw)&&i===Jw)&&(w=Fw,h-=(u&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-o.height,h*=l?1:-1),n!==Ww&&(n!==Uw&&n!==Fw||i!==Jw)||(y=Bw,b-=(u&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&q_),T=!0===d?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:x_(r*n)/n||0,y:x_(o*n)/n||0}}({x:b,y:h},f_(r)):{x:b,y:h};return b=T.x,h=T.y,l?Object.assign({},E,((S={})[w]=m?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",S)):Object.assign({},E,((e={})[w]=m?h+"px":"",e[y]=v?b+"px":"",e.transform="",e))}const V_={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:y_(e.placement),variation:z_(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,H_(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,H_(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 U_={passive:!0};const F_={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=f_(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,U_)})),a&&l.addEventListener("resize",r.update,U_),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,U_)})),a&&l.removeEventListener("resize",r.update,U_)}},data:{}};var B_={left:"right",right:"left",bottom:"top",top:"bottom"};function W_(t){return t.replace(/left|right|bottom|top/g,(function(t){return B_[t]}))}var K_={start:"end",end:"start"};function X_(t){return t.replace(/start|end/g,(function(t){return K_[t]}))}function G_(t){var e=f_(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function J_(t){return S_(O_(t)).left+G_(t).scrollLeft}function Q_(t){var e=A_(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Y_(t){return["html","body","#document"].indexOf(b_(t))>=0?t.ownerDocument.body:g_(t)&&Q_(t)?t:Y_(I_(t))}function Z_(t,e){var r;void 0===e&&(e=[]);var o=Y_(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=f_(o),s=n?[i].concat(i.visualViewport||[],Q_(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(Z_(I_(s)))}function tx(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ex(t,e,r){return e===Yw?tx(function(t,e){var r=f_(t),o=O_(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+J_(t),y:l}}(t,r)):h_(e)?function(t,e){var r=S_(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):tx(function(t){var e,r=O_(t),o=G_(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=w_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=w_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+J_(t),l=-o.scrollTop;return"rtl"===A_(n||r).direction&&(a+=w_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(O_(t)))}function rx(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?y_(n):null,s=n?z_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Uw:e={x:a,y:r.y-o.height};break;case Fw:e={x:a,y:r.y+r.height};break;case Bw:e={x:r.x+r.width,y:l};break;case Ww:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?L_(i):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Gw:e[c]=e[c]-(r[d]/2-o[d]/2);break;case Jw:e[c]=e[c]+(r[d]/2-o[d]/2)}}return e}function ox(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?Qw:a,c=r.rootBoundary,d=void 0===c?Yw:c,u=r.elementContext,p=void 0===u?Zw:u,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=P_("number"!=typeof g?g:M_(g,Xw)),m=p===Zw?t_:Zw,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=Z_(I_(t)),r=["absolute","fixed"].indexOf(A_(t).position)>=0&&g_(t)?j_(t):t;return h_(r)?e.filter((function(t){return h_(t)&&T_(t,r)&&"body"!==b_(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=ex(t,r,o);return e.top=w_(n.top,e.top),e.right=__(n.right,e.right),e.bottom=__(n.bottom,e.bottom),e.left=w_(n.left,e.left),e}),ex(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}(h_(w)?w:w.contextElement||O_(t.elements.popper),l,d,s),x=S_(t.elements.reference),C=rx({reference:x,element:y,strategy:"absolute",placement:n}),k=tx(Object.assign({},y,C)),S=p===Zw?k:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=t.modifiersData.offset;if(p===Zw&&T){var A=T[n];Object.keys(E).forEach((function(t){var e=[Bw,Fw].indexOf(t)>=0?1:-1,r=[Uw,Fw].indexOf(t)>=0?"y":"x";E[t]+=A[r]*e}))}return E}const nx={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,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=e.options.placement,v=y_(g),m=l||(v!==g&&f?function(t){if(y_(t)===Kw)return[];var e=W_(t);return[X_(t),e,X_(e)]}(g):[W_(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(y_(r)===Kw?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?r_:l,d=z_(o),u=d?a?e_:e_.filter((function(t){return z_(t)===d})):Xw,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var b=p.reduce((function(e,r){return e[r]=ox(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[y_(r)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],T=y_(E),A=z_(E)===Gw,$=[Uw,Fw].indexOf(T)>=0,O=$?"width":"height",I=ox(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),D=$?A?Bw:Ww:A?Fw:Uw;w[O]>_[O]&&(D=W_(D));var j=W_(D),L=[];if(i&&L.push(I[T]<=0),a&&L.push(I[D]<=0,I[j]<=0),L.every((function(t){return t}))){k=E,C=!1;break}x.set(E,L)}if(C)for(var R=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 k=e,"break"},P=f?3:1;P>0&&"break"!==R(P);P--);e.placement!==k&&(e.modifiersData[o]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ix(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 sx(t){return[Uw,Bw,Fw,Ww].some((function(e){return t[e]>=0}))}const ax={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=ox(e,{elementContext:"reference"}),a=ox(e,{altBoundary:!0}),l=ix(s,o),c=ix(a,n,i),d=sx(l),u=sx(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},lx={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=r_.reduce((function(t,r){return t[r]=function(t,e,r){var o=y_(t),n=[Ww,Uw].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,[Ww,Bw].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}},cx={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=rx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},dx={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,d=r.altBoundary,u=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=ox(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=y_(e.placement),m=z_(e.placement),y=!m,w=L_(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(i){var $,O="y"===w?Uw:Ww,I="y"===w?Fw:Bw,D="y"===w?"height":"width",j=x[w],L=j+g[O],R=j-g[I],P=b?-k[D]/2:0,M=m===Gw?C[D]:k[D],N=m===Gw?-k[D]:-C[D],z=e.elements.arrow,q=b&&z?E_(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[O],U=H[I],F=R_(0,C[D],q[D]),B=y?C[D]/2-P-F-V-E.mainAxis:M-F-V-E.mainAxis,W=y?-C[D]/2+P+F+U+E.mainAxis:N+F+U+E.mainAxis,K=e.elements.arrow&&j_(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=($=null==T?void 0:T[w])?$:0,J=j+W-G,Q=R_(b?__(L,j+B-G-X):L,j,b?w_(R,J):R);x[w]=Q,A[w]=Q-j}if(a){var Y,Z="x"===w?Uw:Ww,tt="x"===w?Fw:Bw,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Uw,Ww].indexOf(v),st=null!=(Y=null==T?void 0:T[_])?Y:0,at=it?ot:et-C[rt]-k[rt]-st+E.altAxis,lt=it?et+C[rt]+k[rt]-st-E.altAxis:nt,ct=b&&it?function(t,e,r){var o=R_(t,e,r);return o>r?r:o}(at,et,lt):R_(b?at:ot,et,b?lt:nt);x[_]=ct,A[_]=ct-et}e.modifiersData[o]=A}},requiresIfExists:["offset"]};function ux(t,e,r){void 0===r&&(r=!1);var o,n,i=g_(e),s=g_(e)&&function(t){var e=t.getBoundingClientRect(),r=x_(e.width)/t.offsetWidth||1,o=x_(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=O_(e),l=S_(t,s,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==b_(e)||Q_(a))&&(c=(o=e)!==f_(o)&&g_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:G_(o)),g_(e)?((d=S_(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=J_(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function px(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 bx={placement:"bottom",modifiers:[],strategy:"absolute"};function fx(){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 hx(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?bx:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bx,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:h_(t)?Z_(t):t.contextElement?Z_(t.contextElement):[],popper:Z_(e)};var s,c,p=function(t){var e=px(t);return p_.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:d,options:o});l.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(fx(e,r)){a.rects={reference:ux(e,j_(r),"fixed"===a.options.strategy),popper:E_(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,u=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){u(),c=!0}};if(!fx(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var gx=hx(),vx=hx({defaultModifiers:[F_,cx,V_,m_,lx,nx,dx,N_,ax]}),mx=hx({defaultModifiers:[F_,cx,V_,m_]});const yx=new Map,wx={set(t,e,r){yx.has(t)||yx.set(t,new Map);const o=yx.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)=>yx.has(t)&&yx.get(t).get(e)||null,remove(t,e){if(!yx.has(t))return;const r=yx.get(t);r.delete(e),0===r.size&&yx.delete(t)}},_x="transitionend",xx=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Cx=t=>{t.dispatchEvent(new Event(_x))},kx=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Sx=t=>kx(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(xx(t)):null,Ex=t=>{if(!kx(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},Tx=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Ax=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?Ax(t.parentNode):null},$x=()=>{},Ox=t=>{t.offsetHeight},Ix=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Dx=[],jx=()=>"rtl"===document.documentElement.dir,Lx=t=>{var e;e=()=>{const e=Ix();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?(Dx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Dx)t()})),Dx.push(e)):e()},Rx=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,Px=(t,e,r=!0)=>{if(!r)return void Rx(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(_x,i),Rx(t))};e.addEventListener(_x,i),setTimeout((()=>{n||Cx(e)}),o)},Mx=(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))])},Nx=/[^.]*(?=\..*)\.|.*/,zx=/\..*/,qx=/::\d+$/,Hx={};let Vx=1;const Ux={mouseenter:"mouseover",mouseleave:"mouseout"},Fx=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 Bx(t,e){return e&&`${e}::${Vx++}`||t.uidEvent||Vx++}function Wx(t){const e=Bx(t);return t.uidEvent=e,Hx[e]=Hx[e]||{},Hx[e]}function Kx(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function Xx(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=Yx(t);return Fx.has(i)||(i=t),[o,n,i]}function Gx(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=Xx(e,r,o);if(e in Ux){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=Wx(t),c=l[a]||(l[a]={}),d=Kx(c,s,i?r:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=Bx(s,e.replace(Nx,"")),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 tC(n,{delegateTarget:s}),o.oneOff&&Zx.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return tC(o,{delegateTarget:t}),r.oneOff&&Zx.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,i)}function Jx(t,e,r,o,n){const i=Kx(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function Qx(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Jx(t,e,r,s.callable,s.delegationSelector)}function Yx(t){return t=t.replace(zx,""),Ux[t]||t}const Zx={on(t,e,r,o){Gx(t,e,r,o,!1)},one(t,e,r,o){Gx(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=Xx(e,r,o),a=s!==e,l=Wx(t),c=l[s]||{},d=e.startsWith(".");if(void 0===i){if(d)for(const r of Object.keys(l))Qx(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(qx,"");a&&!e.includes(n)||Jx(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Jx(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=Ix();let n=null,i=!0,s=!0,a=!1;e!==Yx(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=tC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function tC(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 eC(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 rC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const oC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${rC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${rC(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]=eC(t.dataset[o])}return e},getDataAttribute:(t,e)=>eC(t.getAttribute(`data-bs-${rC(e)}`))};class nC{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=kx(e)?oC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...kx(e)?oC.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=kx(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 iC extends nC{constructor(t,e){super(),(t=Sx(t))&&(this._element=t,this._config=this._getConfig(e),wx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){wx.remove(this._element,this.constructor.DATA_KEY),Zx.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){Px(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return wx.get(Sx(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 sC=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=>xx(t))).join(","):null},aC={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=>!Tx(t)&&Ex(t)))},getSelectorFromElement(t){const e=sC(t);return e&&aC.findOne(e)?e:null},getElementFromSelector(t){const e=sC(t);return e?aC.findOne(e):null},getMultipleElementsFromSelector(t){const e=sC(t);return e?aC.find(e):[]}},lC=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;Zx.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Tx(this))return;const n=aC.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},cC=".bs.alert",dC=`close${cC}`,uC=`closed${cC}`;class pC extends iC{static get NAME(){return"alert"}close(){if(Zx.trigger(this._element,dC).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(),Zx.trigger(this._element,uC),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=pC.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)}}))}}lC(pC,"close"),Lx(pC);const bC='[data-bs-toggle="button"]';class fC extends iC{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=fC.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}Zx.on(document,"click.bs.button.data-api",bC,(t=>{t.preventDefault();const e=t.target.closest(bC);fC.getOrCreateInstance(e).toggle()})),Lx(fC);const hC=".bs.swipe",gC=`touchstart${hC}`,vC=`touchmove${hC}`,mC=`touchend${hC}`,yC=`pointerdown${hC}`,wC=`pointerup${hC}`,_C={endCallback:null,leftCallback:null,rightCallback:null},xC={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class CC extends nC{constructor(t,e){super(),this._element=t,t&&CC.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return _C}static get DefaultType(){return xC}static get NAME(){return"swipe"}dispose(){Zx.off(this._element,hC)}_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(),Rx(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&&Rx(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Zx.on(this._element,yC,(t=>this._start(t))),Zx.on(this._element,wC,(t=>this._end(t))),this._element.classList.add("pointer-event")):(Zx.on(this._element,gC,(t=>this._start(t))),Zx.on(this._element,vC,(t=>this._move(t))),Zx.on(this._element,mC,(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 kC=".bs.carousel",SC=".data-api",EC="ArrowLeft",TC="ArrowRight",AC="next",$C="prev",OC="left",IC="right",DC=`slide${kC}`,jC=`slid${kC}`,LC=`keydown${kC}`,RC=`mouseenter${kC}`,PC=`mouseleave${kC}`,MC=`dragstart${kC}`,NC=`load${kC}${SC}`,zC=`click${kC}${SC}`,qC="carousel",HC="active",VC=".active",UC=".carousel-item",FC=VC+UC,BC={[EC]:IC,[TC]:OC},WC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},KC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class XC extends iC{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=aC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===qC&&this.cycle()}static get Default(){return WC}static get DefaultType(){return KC}static get NAME(){return"carousel"}next(){this._slide(AC)}nextWhenVisible(){!document.hidden&&Ex(this._element)&&this.next()}prev(){this._slide($C)}pause(){this._isSliding&&Cx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Zx.one(this._element,jC,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void Zx.one(this._element,jC,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?AC:$C;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&&Zx.on(this._element,LC,(t=>this._keydown(t))),"hover"===this._config.pause&&(Zx.on(this._element,RC,(()=>this.pause())),Zx.on(this._element,PC,(()=>this._maybeEnableCycle()))),this._config.touch&&CC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of aC.find(".carousel-item img",this._element))Zx.on(t,MC,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(OC)),rightCallback:()=>this._slide(this._directionToOrder(IC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new CC(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=BC[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=aC.findOne(VC,this._indicatorsElement);e.classList.remove(HC),e.removeAttribute("aria-current");const r=aC.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(HC),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===AC,n=e||Mx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>Zx.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(DC).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),Ox(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(HC),r.classList.remove(HC,c,l),this._isSliding=!1,s(jC)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return aC.findOne(FC,this._element)}_getItems(){return aC.find(UC,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return jx()?t===OC?$C:AC:t===OC?AC:$C}_orderToDirection(t){return jx()?t===$C?OC:IC:t===$C?IC:OC}static jQueryInterface(t){return this.each((function(){const e=XC.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)}))}}Zx.on(document,zC,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=aC.getElementFromSelector(this);if(!e||!e.classList.contains(qC))return;t.preventDefault();const r=XC.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===oC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),Zx.on(window,NC,(()=>{const t=aC.find('[data-bs-ride="carousel"]');for(const e of t)XC.getOrCreateInstance(e)})),Lx(XC);const GC=".bs.collapse",JC=`show${GC}`,QC=`shown${GC}`,YC=`hide${GC}`,ZC=`hidden${GC}`,tk=`click${GC}.data-api`,ek="show",rk="collapse",ok="collapsing",nk=`:scope .${rk} .${rk}`,ik='[data-bs-toggle="collapse"]',sk={parent:null,toggle:!0},ak={parent:"(null|element)",toggle:"boolean"};class lk extends iC{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=aC.find(ik);for(const t of r){const e=aC.getSelectorFromElement(t),r=aC.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 sk}static get DefaultType(){return ak}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=>lk.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(Zx.trigger(this._element,JC).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(rk),this._element.classList.add(ok),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(ok),this._element.classList.add(rk,ek),this._element.style[e]="",Zx.trigger(this._element,QC)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Zx.trigger(this._element,YC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Ox(this._element),this._element.classList.add(ok),this._element.classList.remove(rk,ek);for(const t of this._triggerArray){const e=aC.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(ok),this._element.classList.add(rk),Zx.trigger(this._element,ZC)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ek)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Sx(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ik);for(const e of t){const t=aC.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=aC.find(nk,this._config.parent);return aC.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=lk.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}Zx.on(document,tk,ik,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of aC.getMultipleElementsFromSelector(this))lk.getOrCreateInstance(t,{toggle:!1}).toggle()})),Lx(lk);const ck="dropdown",dk=".bs.dropdown",uk=".data-api",pk="ArrowUp",bk="ArrowDown",fk=`hide${dk}`,hk=`hidden${dk}`,gk=`show${dk}`,vk=`shown${dk}`,mk=`click${dk}${uk}`,yk=`keydown${dk}${uk}`,wk=`keyup${dk}${uk}`,_k="show",xk='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ck=`${xk}.${_k}`,kk=".dropdown-menu",Sk=jx()?"top-end":"top-start",Ek=jx()?"top-start":"top-end",Tk=jx()?"bottom-end":"bottom-start",Ak=jx()?"bottom-start":"bottom-end",$k=jx()?"left-start":"right-start",Ok=jx()?"right-start":"left-start",Ik={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Dk={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class jk extends iC{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=aC.next(this._element,kk)[0]||aC.prev(this._element,kk)[0]||aC.findOne(kk,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ik}static get DefaultType(){return Dk}static get NAME(){return ck}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Tx(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!Zx.trigger(this._element,gk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))Zx.on(t,"mouseover",$x);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_k),this._element.classList.add(_k),Zx.trigger(this._element,vk,t)}}hide(){if(Tx(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(!Zx.trigger(this._element,fk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Zx.off(t,"mouseover",$x);this._popper&&this._popper.destroy(),this._menu.classList.remove(_k),this._element.classList.remove(_k),this._element.setAttribute("aria-expanded","false"),oC.removeDataAttribute(this._menu,"popper"),Zx.trigger(this._element,hk,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!kx(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${ck.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:kx(this._config.reference)?t=Sx(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=vx(t,this._menu,r)}_isShown(){return this._menu.classList.contains(_k)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return $k;if(t.classList.contains("dropstart"))return Ok;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?Ek:Sk:e?Ak:Tk}_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)&&(oC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Rx(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=aC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ex(t)));r.length&&Mx(r,e,t===bk,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=jk.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=aC.find(Ck);for(const r of e){const e=jk.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=[pk,bk].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(xk)?this:aC.prev(this,xk)[0]||aC.next(this,xk)[0]||aC.findOne(xk,t.delegateTarget.parentNode),i=jk.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}Zx.on(document,yk,xk,jk.dataApiKeydownHandler),Zx.on(document,yk,kk,jk.dataApiKeydownHandler),Zx.on(document,mk,jk.clearMenus),Zx.on(document,wk,jk.clearMenus),Zx.on(document,mk,xk,(function(t){t.preventDefault(),jk.getOrCreateInstance(this).toggle()})),Lx(jk);const Lk="backdrop",Rk="show",Pk=`mousedown.bs.${Lk}`,Mk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Nk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class zk extends nC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Mk}static get DefaultType(){return Nk}static get NAME(){return Lk}show(t){if(!this._config.isVisible)return void Rx(t);this._append();const e=this._getElement();this._config.isAnimated&&Ox(e),e.classList.add(Rk),this._emulateAnimation((()=>{Rx(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Rk),this._emulateAnimation((()=>{this.dispose(),Rx(t)}))):Rx(t)}dispose(){this._isAppended&&(Zx.off(this._element,Pk),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=Sx(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),Zx.on(t,Pk,(()=>{Rx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Px(t,this._getElement(),this._config.isAnimated)}}const qk=".bs.focustrap",Hk=`focusin${qk}`,Vk=`keydown.tab${qk}`,Uk="backward",Fk={autofocus:!0,trapElement:null},Bk={autofocus:"boolean",trapElement:"element"};class Wk extends nC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Fk}static get DefaultType(){return Bk}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Zx.off(document,qk),Zx.on(document,Hk,(t=>this._handleFocusin(t))),Zx.on(document,Vk,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Zx.off(document,qk))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=aC.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===Uk?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Uk:"forward")}}const Kk=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Xk=".sticky-top",Gk="padding-right",Jk="margin-right";class Qk{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,Gk,(e=>e+t)),this._setElementAttributes(Kk,Gk,(e=>e+t)),this._setElementAttributes(Xk,Jk,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Gk),this._resetElementAttributes(Kk,Gk),this._resetElementAttributes(Xk,Jk)}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&&oC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=oC.getDataAttribute(t,e);null!==r?(oC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(kx(t))e(t);else for(const r of aC.find(t,this._element))e(r)}}const Yk=".bs.modal",Zk=`hide${Yk}`,tS=`hidePrevented${Yk}`,eS=`hidden${Yk}`,rS=`show${Yk}`,oS=`shown${Yk}`,nS=`resize${Yk}`,iS=`click.dismiss${Yk}`,sS=`mousedown.dismiss${Yk}`,aS=`keydown.dismiss${Yk}`,lS=`click${Yk}.data-api`,cS="modal-open",dS="show",uS="modal-static",pS={backdrop:!0,focus:!0,keyboard:!0},bS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class fS extends iC{constructor(t,e){super(t,e),this._dialog=aC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Qk,this._addEventListeners()}static get Default(){return pS}static get DefaultType(){return bS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||Zx.trigger(this._element,rS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(cS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(Zx.trigger(this._element,Zk).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(dS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){Zx.off(window,Yk),Zx.off(this._dialog,Yk),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new zk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Wk({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=aC.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Ox(this._element),this._element.classList.add(dS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Zx.trigger(this._element,oS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){Zx.on(this._element,aS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),Zx.on(window,nS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),Zx.on(this._element,sS,(t=>{Zx.one(this._element,iS,(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(cS),this._resetAdjustments(),this._scrollBar.reset(),Zx.trigger(this._element,eS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Zx.trigger(this._element,tS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(uS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(uS),this._queueCallback((()=>{this._element.classList.remove(uS),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=jx()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=jx()?"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=fS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}Zx.on(document,lS,'[data-bs-toggle="modal"]',(function(t){const e=aC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Zx.one(e,rS,(t=>{t.defaultPrevented||Zx.one(e,eS,(()=>{Ex(this)&&this.focus()}))}));const r=aC.findOne(".modal.show");r&&fS.getInstance(r).hide(),fS.getOrCreateInstance(e).toggle(this)})),lC(fS),Lx(fS);const hS=".bs.offcanvas",gS=".data-api",vS=`load${hS}${gS}`,mS="show",yS="showing",wS="hiding",_S=".offcanvas.show",xS=`show${hS}`,CS=`shown${hS}`,kS=`hide${hS}`,SS=`hidePrevented${hS}`,ES=`hidden${hS}`,TS=`resize${hS}`,AS=`click${hS}${gS}`,$S=`keydown.dismiss${hS}`,OS={backdrop:!0,keyboard:!0,scroll:!1},IS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class DS extends iC{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return OS}static get DefaultType(){return IS}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||Zx.trigger(this._element,xS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Qk).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(yS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(mS),this._element.classList.remove(yS),Zx.trigger(this._element,CS,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(Zx.trigger(this._element,kS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(wS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(mS,wS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Qk).reset(),Zx.trigger(this._element,ES)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new zk({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():Zx.trigger(this._element,SS)}:null})}_initializeFocusTrap(){return new Wk({trapElement:this._element})}_addEventListeners(){Zx.on(this._element,$S,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():Zx.trigger(this._element,SS))}))}static jQueryInterface(t){return this.each((function(){const e=DS.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)}}))}}Zx.on(document,AS,'[data-bs-toggle="offcanvas"]',(function(t){const e=aC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Tx(this))return;Zx.one(e,ES,(()=>{Ex(this)&&this.focus()}));const r=aC.findOne(_S);r&&r!==e&&DS.getInstance(r).hide(),DS.getOrCreateInstance(e).toggle(this)})),Zx.on(window,vS,(()=>{for(const t of aC.find(_S))DS.getOrCreateInstance(t).show()})),Zx.on(window,TS,(()=>{for(const t of aC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&DS.getOrCreateInstance(t).hide()})),lC(DS),Lx(DS);const jS={"*":["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:[]},LS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),RS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,PS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!LS.has(r)||Boolean(RS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},MS={allowList:jS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},NS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},zS={entry:"(string|element|function|null)",selector:"(string|element)"};class qS extends nC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return MS}static get DefaultType(){return NS}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},zS)}_setContent(t,e,r){const o=aC.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?kx(e)?this._putElementInTemplate(Sx(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)PS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Rx(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const HS=new Set(["sanitize","allowList","sanitizeFn"]),VS="fade",US="show",FS=".tooltip-inner",BS=".modal",WS="hide.bs.modal",KS="hover",XS="focus",GS={AUTO:"auto",TOP:"top",RIGHT:jx()?"left":"right",BOTTOM:"bottom",LEFT:jx()?"right":"left"},JS={allowList:jS,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"},QS={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 YS extends iC{constructor(t,r){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,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 JS}static get DefaultType(){return QS}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),Zx.off(this._element.closest(BS),WS,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=Zx.trigger(this._element,this.constructor.eventName("show")),e=(Ax(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),Zx.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(US),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Zx.on(t,"mouseover",$x);this._queueCallback((()=>{Zx.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!Zx.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(US),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Zx.off(t,"mouseover",$x);this._activeTrigger.click=!1,this._activeTrigger[XS]=!1,this._activeTrigger[KS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Zx.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(VS,US),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(VS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new qS({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[FS]: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(VS)}_isShown(){return this.tip&&this.tip.classList.contains(US)}_createPopper(t){const e=Rx(this._config.placement,[this,t,this._element]),r=GS[e.toUpperCase()];return vx(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 Rx(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,...Rx(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)Zx.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===KS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===KS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Zx.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?XS:KS]=!0,e._enter()})),Zx.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?XS:KS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},Zx.on(this._element.closest(BS),WS,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=oC.getDataAttributes(this._element);for(const t of Object.keys(e))HS.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:Sx(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=YS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Lx(YS);const ZS=".popover-header",tE=".popover-body",eE={...YS.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"},rE={...YS.DefaultType,content:"(null|string|element|function)"};class oE extends YS{static get Default(){return eE}static get DefaultType(){return rE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ZS]:this._getTitle(),[tE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}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]()}}))}}Lx(oE);const nE=".bs.scrollspy",iE=`activate${nE}`,sE=`click${nE}`,aE=`load${nE}.data-api`,lE="active",cE="[href]",dE=".nav-link",uE=`${dE}, .nav-item > ${dE}, .list-group-item`,pE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},bE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class fE extends iC{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 pE}static get DefaultType(){return bE}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=Sx(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&&(Zx.off(this._config.target,sE),Zx.on(this._config.target,sE,cE,(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=aC.find(cE,this._config.target);for(const e of t){if(!e.hash||Tx(e))continue;const t=aC.findOne(decodeURI(e.hash),this._element);Ex(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(lE),this._activateParents(t),Zx.trigger(this._element,iE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))aC.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(lE);else for(const e of aC.parents(t,".nav, .list-group"))for(const t of aC.prev(e,uE))t.classList.add(lE)}_clearActiveClass(t){t.classList.remove(lE);const e=aC.find(`${cE}.${lE}`,t);for(const t of e)t.classList.remove(lE)}static jQueryInterface(t){return this.each((function(){const e=fE.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]()}}))}}Zx.on(window,aE,(()=>{for(const t of aC.find('[data-bs-spy="scroll"]'))fE.getOrCreateInstance(t)})),Lx(fE);const hE=".bs.tab",gE=`hide${hE}`,vE=`hidden${hE}`,mE=`show${hE}`,yE=`shown${hE}`,wE=`click${hE}`,_E=`keydown${hE}`,xE=`load${hE}`,CE="ArrowLeft",kE="ArrowRight",SE="ArrowUp",EE="ArrowDown",TE="Home",AE="End",$E="active",OE="fade",IE="show",DE=".dropdown-toggle",jE=`:not(${DE})`,LE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',RE=`.nav-link${jE}, .list-group-item${jE}, [role="tab"]${jE}, ${LE}`,PE=`.${$E}[data-bs-toggle="tab"], .${$E}[data-bs-toggle="pill"], .${$E}[data-bs-toggle="list"]`;class ME extends iC{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Zx.on(this._element,_E,(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?Zx.trigger(e,gE,{relatedTarget:t}):null;Zx.trigger(t,mE,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add($E),this._activate(aC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),Zx.trigger(t,yE,{relatedTarget:e})):t.classList.add(IE)}),t,t.classList.contains(OE)))}_deactivate(t,e){t&&(t.classList.remove($E),t.blur(),this._deactivate(aC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),Zx.trigger(t,vE,{relatedTarget:e})):t.classList.remove(IE)}),t,t.classList.contains(OE)))}_keydown(t){if(![CE,kE,SE,EE,TE,AE].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Tx(t)));let r;if([TE,AE].includes(t.key))r=e[t.key===TE?0:e.length-1];else{const o=[kE,EE].includes(t.key);r=Mx(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),ME.getOrCreateInstance(r).show())}_getChildren(){return aC.find(RE,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=aC.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=aC.findOne(t,r);n&&n.classList.toggle(o,e)};o(DE,$E),o(".dropdown-menu",IE),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(RE)?t:aC.findOne(RE,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=ME.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Zx.on(document,wE,LE,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Tx(this)||ME.getOrCreateInstance(this).show()})),Zx.on(window,xE,(()=>{for(const t of aC.find(PE))ME.getOrCreateInstance(t)})),Lx(ME);const NE=".bs.toast",zE=`mouseover${NE}`,qE=`mouseout${NE}`,HE=`focusin${NE}`,VE=`focusout${NE}`,UE=`hide${NE}`,FE=`hidden${NE}`,BE=`show${NE}`,WE=`shown${NE}`,KE="hide",XE="show",GE="showing",JE={animation:"boolean",autohide:"boolean",delay:"number"},QE={animation:!0,autohide:!0,delay:5e3};class YE extends iC{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return QE}static get DefaultType(){return JE}static get NAME(){return"toast"}show(){Zx.trigger(this._element,BE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(KE),Ox(this._element),this._element.classList.add(XE,GE),this._queueCallback((()=>{this._element.classList.remove(GE),Zx.trigger(this._element,WE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(Zx.trigger(this._element,UE).defaultPrevented||(this._element.classList.add(GE),this._queueCallback((()=>{this._element.classList.add(KE),this._element.classList.remove(GE,XE),Zx.trigger(this._element,FE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(XE),super.dispose()}isShown(){return this._element.classList.contains(XE)}_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(){Zx.on(this._element,zE,(t=>this._onInteraction(t,!0))),Zx.on(this._element,qE,(t=>this._onInteraction(t,!1))),Zx.on(this._element,HE,(t=>this._onInteraction(t,!0))),Zx.on(this._element,VE,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=YE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}lC(YE),Lx(YE);var ZE=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 eT=class extends Ew{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 oE(t)}))}}renderImage(t){return null!=t?At`<img src="${t}"/><span/>`:At``}renderMenu(t,e,r){let o=At``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?At`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:At`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?At`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:At`${o}${this.renderMenuLink(n)}`),At`${o}`}renderMenuDivider(){return At`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?At`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?At`<li>
|
|
207
|
+
`]}async connectedCallback(){super.connectedCallback()}render(){return At`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Rw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"open",void 0),Rw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"loading",void 0),Rw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"renderInHost",void 0),Mw=Rw([Kt("qbo-docviewer")],Mw);var Nw,zw=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},qw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Hw=class extends Bt{static{Nw=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=I.container.resolve(ee)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=nw(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 At`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea"),e=Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof Nw)&&t.name));e.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 Nw)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)}};zw([Jt({type:FormData}),qw("design:type",FormData)],Hw.prototype,"value",void 0),zw([Jt({type:String}),qw("design:type",Object)],Hw.prototype,"template",void 0),zw([Jt({type:String}),qw("design:type",Object)],Hw.prototype,"name",void 0),zw([Jt({type:Object}),qw("design:type",Object)],Hw.prototype,"data",void 0),Hw=Nw=zw([Kt("qbo-form-element"),qw("design:paramtypes",[])],Hw);var Vw="top",Uw="bottom",Fw="right",Bw="left",Ww="auto",Kw=[Vw,Uw,Fw,Bw],Xw="start",Gw="end",Jw="clippingParents",Qw="viewport",Yw="popper",Zw="reference",t_=Kw.reduce((function(t,e){return t.concat([e+"-"+Xw,e+"-"+Gw])}),[]),e_=[].concat(Kw,[Ww]).reduce((function(t,e){return t.concat([e,e+"-"+Xw,e+"-"+Gw])}),[]),r_="beforeRead",o_="read",n_="afterRead",i_="beforeMain",s_="main",a_="afterMain",l_="beforeWrite",c_="write",d_="afterWrite",u_=[r_,o_,n_,i_,s_,a_,l_,c_,d_];function p_(t){return t?(t.nodeName||"").toLowerCase():null}function b_(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function f_(t){return t instanceof b_(t).Element||t instanceof Element}function h_(t){return t instanceof b_(t).HTMLElement||t instanceof HTMLElement}function g_(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b_(t).ShadowRoot||t instanceof ShadowRoot)}const v_={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];h_(n)&&p_(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}),{});h_(o)&&p_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function m_(t){return t.split("-")[0]}var y_=Math.max,w_=Math.min,__=Math.round;function x_(){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 C_(){return!/^((?!chrome|android).)*safari/i.test(x_())}function k_(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&h_(t)&&(n=t.offsetWidth>0&&__(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&__(o.height)/t.offsetHeight||1);var s=(f_(t)?b_(t):window).visualViewport,a=!C_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,d=o.width/n,u=o.height/i;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function S_(t){var e=k_(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 E_(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&g_(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function T_(t){return b_(t).getComputedStyle(t)}function A_(t){return["table","td","th"].indexOf(p_(t))>=0}function $_(t){return((f_(t)?t.ownerDocument:t.document)||window.document).documentElement}function O_(t){return"html"===p_(t)?t:t.assignedSlot||t.parentNode||(g_(t)?t.host:null)||$_(t)}function I_(t){return h_(t)&&"fixed"!==T_(t).position?t.offsetParent:null}function D_(t){for(var e=b_(t),r=I_(t);r&&A_(r)&&"static"===T_(r).position;)r=I_(r);return r&&("html"===p_(r)||"body"===p_(r)&&"static"===T_(r).position)?e:r||function(t){var e=/firefox/i.test(x_());if(/Trident/i.test(x_())&&h_(t)&&"fixed"===T_(t).position)return null;var r=O_(t);for(g_(r)&&(r=r.host);h_(r)&&["html","body"].indexOf(p_(r))<0;){var o=T_(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 j_(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function L_(t,e,r){return y_(t,w_(e,r))}function R_(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function P_(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const M_={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=m_(r.placement),l=j_(a),c=[Bw,Fw].indexOf(a)>=0?"height":"width";if(i&&s){var d=function(t,e){return R_("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:P_(t,Kw))}(n.padding,r),u=S_(i),p="y"===l?Vw:Bw,b="y"===l?Uw:Fw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=D_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=d[p],w=v-u[c]-d[b],_=v/2-u[c]/2+m,x=L_(y,_,w),C=l;r.modifiersData[o]=((e={})[C]=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)))&&E_(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function N_(t){return t.split("-")[1]}var z_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q_(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,d=t.roundOffsets,u=t.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof d?d({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Bw,w=Vw,_=window;if(c){var x=D_(r),C="clientHeight",k="clientWidth";x===b_(r)&&"static"!==T_(x=$_(r)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(n===Vw||(n===Bw||n===Fw)&&i===Gw)&&(w=Uw,h-=(u&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-o.height,h*=l?1:-1),n!==Bw&&(n!==Vw&&n!==Uw||i!==Gw)||(y=Fw,b-=(u&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&z_),T=!0===d?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:__(r*n)/n||0,y:__(o*n)/n||0}}({x:b,y:h},b_(r)):{x:b,y:h};return b=T.x,h=T.y,l?Object.assign({},E,((S={})[w]=m?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",S)):Object.assign({},E,((e={})[w]=m?h+"px":"",e[y]=v?b+"px":"",e.transform="",e))}const H_={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:m_(e.placement),variation:N_(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,q_(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,q_(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 V_={passive:!0};const U_={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=b_(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,V_)})),a&&l.addEventListener("resize",r.update,V_),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,V_)})),a&&l.removeEventListener("resize",r.update,V_)}},data:{}};var F_={left:"right",right:"left",bottom:"top",top:"bottom"};function B_(t){return t.replace(/left|right|bottom|top/g,(function(t){return F_[t]}))}var W_={start:"end",end:"start"};function K_(t){return t.replace(/start|end/g,(function(t){return W_[t]}))}function X_(t){var e=b_(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function G_(t){return k_($_(t)).left+X_(t).scrollLeft}function J_(t){var e=T_(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Q_(t){return["html","body","#document"].indexOf(p_(t))>=0?t.ownerDocument.body:h_(t)&&J_(t)?t:Q_(O_(t))}function Y_(t,e){var r;void 0===e&&(e=[]);var o=Q_(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=b_(o),s=n?[i].concat(i.visualViewport||[],J_(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(Y_(O_(s)))}function Z_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tx(t,e,r){return e===Qw?Z_(function(t,e){var r=b_(t),o=$_(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=C_();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+G_(t),y:l}}(t,r)):f_(e)?function(t,e){var r=k_(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):Z_(function(t){var e,r=$_(t),o=X_(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=y_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=y_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+G_(t),l=-o.scrollTop;return"rtl"===T_(n||r).direction&&(a+=y_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}($_(t)))}function ex(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?m_(n):null,s=n?N_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Vw:e={x:a,y:r.y-o.height};break;case Uw:e={x:a,y:r.y+r.height};break;case Fw:e={x:r.x+r.width,y:l};break;case Bw:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?j_(i):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Xw:e[c]=e[c]-(r[d]/2-o[d]/2);break;case Gw:e[c]=e[c]+(r[d]/2-o[d]/2)}}return e}function rx(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?Jw:a,c=r.rootBoundary,d=void 0===c?Qw:c,u=r.elementContext,p=void 0===u?Yw:u,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=R_("number"!=typeof g?g:P_(g,Kw)),m=p===Yw?Zw:Yw,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=Y_(O_(t)),r=["absolute","fixed"].indexOf(T_(t).position)>=0&&h_(t)?D_(t):t;return f_(r)?e.filter((function(t){return f_(t)&&E_(t,r)&&"body"!==p_(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=tx(t,r,o);return e.top=y_(n.top,e.top),e.right=w_(n.right,e.right),e.bottom=w_(n.bottom,e.bottom),e.left=y_(n.left,e.left),e}),tx(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}(f_(w)?w:w.contextElement||$_(t.elements.popper),l,d,s),x=k_(t.elements.reference),C=ex({reference:x,element:y,strategy:"absolute",placement:n}),k=Z_(Object.assign({},y,C)),S=p===Yw?k:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=t.modifiersData.offset;if(p===Yw&&T){var A=T[n];Object.keys(E).forEach((function(t){var e=[Fw,Uw].indexOf(t)>=0?1:-1,r=[Vw,Uw].indexOf(t)>=0?"y":"x";E[t]+=A[r]*e}))}return E}const ox={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,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=e.options.placement,v=m_(g),m=l||(v!==g&&f?function(t){if(m_(t)===Ww)return[];var e=B_(t);return[K_(t),e,K_(e)]}(g):[B_(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(m_(r)===Ww?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?e_:l,d=N_(o),u=d?a?t_:t_.filter((function(t){return N_(t)===d})):Kw,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var b=p.reduce((function(e,r){return e[r]=rx(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[m_(r)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],T=m_(E),A=N_(E)===Xw,$=[Vw,Uw].indexOf(T)>=0,O=$?"width":"height",I=rx(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),D=$?A?Fw:Bw:A?Uw:Vw;w[O]>_[O]&&(D=B_(D));var j=B_(D),L=[];if(i&&L.push(I[T]<=0),a&&L.push(I[D]<=0,I[j]<=0),L.every((function(t){return t}))){k=E,C=!1;break}x.set(E,L)}if(C)for(var R=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 k=e,"break"},P=f?3:1;P>0&&"break"!==R(P);P--);e.placement!==k&&(e.modifiersData[o]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function nx(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 ix(t){return[Vw,Fw,Uw,Bw].some((function(e){return t[e]>=0}))}const sx={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=rx(e,{elementContext:"reference"}),a=rx(e,{altBoundary:!0}),l=nx(s,o),c=nx(a,n,i),d=ix(l),u=ix(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},ax={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=e_.reduce((function(t,r){return t[r]=function(t,e,r){var o=m_(t),n=[Bw,Vw].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,[Bw,Fw].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}},lx={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=ex({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},cx={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,d=r.altBoundary,u=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=rx(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=m_(e.placement),m=N_(e.placement),y=!m,w=j_(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(i){var $,O="y"===w?Vw:Bw,I="y"===w?Uw:Fw,D="y"===w?"height":"width",j=x[w],L=j+g[O],R=j-g[I],P=b?-k[D]/2:0,M=m===Xw?C[D]:k[D],N=m===Xw?-k[D]:-C[D],z=e.elements.arrow,q=b&&z?S_(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[O],U=H[I],F=L_(0,C[D],q[D]),B=y?C[D]/2-P-F-V-E.mainAxis:M-F-V-E.mainAxis,W=y?-C[D]/2+P+F+U+E.mainAxis:N+F+U+E.mainAxis,K=e.elements.arrow&&D_(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=($=null==T?void 0:T[w])?$:0,J=j+W-G,Q=L_(b?w_(L,j+B-G-X):L,j,b?y_(R,J):R);x[w]=Q,A[w]=Q-j}if(a){var Y,Z="x"===w?Vw:Bw,tt="x"===w?Uw:Fw,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Vw,Bw].indexOf(v),st=null!=(Y=null==T?void 0:T[_])?Y:0,at=it?ot:et-C[rt]-k[rt]-st+E.altAxis,lt=it?et+C[rt]+k[rt]-st-E.altAxis:nt,ct=b&&it?function(t,e,r){var o=L_(t,e,r);return o>r?r:o}(at,et,lt):L_(b?at:ot,et,b?lt:nt);x[_]=ct,A[_]=ct-et}e.modifiersData[o]=A}},requiresIfExists:["offset"]};function dx(t,e,r){void 0===r&&(r=!1);var o,n,i=h_(e),s=h_(e)&&function(t){var e=t.getBoundingClientRect(),r=__(e.width)/t.offsetWidth||1,o=__(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=$_(e),l=k_(t,s,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==p_(e)||J_(a))&&(c=(o=e)!==b_(o)&&h_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:X_(o)),h_(e)?((d=k_(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=G_(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ux(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 px={placement:"bottom",modifiers:[],strategy:"absolute"};function bx(){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 fx(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?px:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},px,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:f_(t)?Y_(t):t.contextElement?Y_(t.contextElement):[],popper:Y_(e)};var s,c,p=function(t){var e=ux(t);return u_.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:d,options:o});l.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(bx(e,r)){a.rects={reference:dx(e,D_(r),"fixed"===a.options.strategy),popper:S_(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,u=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){u(),c=!0}};if(!bx(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var hx=fx(),gx=fx({defaultModifiers:[U_,lx,H_,v_,ax,ox,cx,M_,sx]}),vx=fx({defaultModifiers:[U_,lx,H_,v_]});const mx=new Map,yx={set(t,e,r){mx.has(t)||mx.set(t,new Map);const o=mx.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)=>mx.has(t)&&mx.get(t).get(e)||null,remove(t,e){if(!mx.has(t))return;const r=mx.get(t);r.delete(e),0===r.size&&mx.delete(t)}},wx="transitionend",_x=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),xx=t=>{t.dispatchEvent(new Event(wx))},Cx=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),kx=t=>Cx(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(_x(t)):null,Sx=t=>{if(!Cx(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},Ex=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Tx=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?Tx(t.parentNode):null},Ax=()=>{},$x=t=>{t.offsetHeight},Ox=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ix=[],Dx=()=>"rtl"===document.documentElement.dir,jx=t=>{var e;e=()=>{const e=Ox();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?(Ix.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Ix)t()})),Ix.push(e)):e()},Lx=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,Rx=(t,e,r=!0)=>{if(!r)return void Lx(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(wx,i),Lx(t))};e.addEventListener(wx,i),setTimeout((()=>{n||xx(e)}),o)},Px=(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))])},Mx=/[^.]*(?=\..*)\.|.*/,Nx=/\..*/,zx=/::\d+$/,qx={};let Hx=1;const Vx={mouseenter:"mouseover",mouseleave:"mouseout"},Ux=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 Fx(t,e){return e&&`${e}::${Hx++}`||t.uidEvent||Hx++}function Bx(t){const e=Fx(t);return t.uidEvent=e,qx[e]=qx[e]||{},qx[e]}function Wx(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function Kx(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=Qx(t);return Ux.has(i)||(i=t),[o,n,i]}function Xx(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=Kx(e,r,o);if(e in Vx){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=Bx(t),c=l[a]||(l[a]={}),d=Wx(c,s,i?r:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=Fx(s,e.replace(Mx,"")),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 Zx(n,{delegateTarget:s}),o.oneOff&&Yx.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return Zx(o,{delegateTarget:t}),r.oneOff&&Yx.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,i)}function Gx(t,e,r,o,n){const i=Wx(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function Jx(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Gx(t,e,r,s.callable,s.delegationSelector)}function Qx(t){return t=t.replace(Nx,""),Vx[t]||t}const Yx={on(t,e,r,o){Xx(t,e,r,o,!1)},one(t,e,r,o){Xx(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=Kx(e,r,o),a=s!==e,l=Bx(t),c=l[s]||{},d=e.startsWith(".");if(void 0===i){if(d)for(const r of Object.keys(l))Jx(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(zx,"");a&&!e.includes(n)||Gx(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Gx(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=Ox();let n=null,i=!0,s=!0,a=!1;e!==Qx(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=Zx(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function Zx(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 tC(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 eC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const rC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${eC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${eC(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]=tC(t.dataset[o])}return e},getDataAttribute:(t,e)=>tC(t.getAttribute(`data-bs-${eC(e)}`))};class oC{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=Cx(e)?rC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Cx(e)?rC.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=Cx(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 nC extends oC{constructor(t,e){super(),(t=kx(t))&&(this._element=t,this._config=this._getConfig(e),yx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){yx.remove(this._element,this.constructor.DATA_KEY),Yx.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){Rx(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return yx.get(kx(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 iC=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=>_x(t))).join(","):null},sC={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=>!Ex(t)&&Sx(t)))},getSelectorFromElement(t){const e=iC(t);return e&&sC.findOne(e)?e:null},getElementFromSelector(t){const e=iC(t);return e?sC.findOne(e):null},getMultipleElementsFromSelector(t){const e=iC(t);return e?sC.find(e):[]}},aC=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;Yx.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Ex(this))return;const n=sC.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},lC=".bs.alert",cC=`close${lC}`,dC=`closed${lC}`;class uC extends nC{static get NAME(){return"alert"}close(){if(Yx.trigger(this._element,cC).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(),Yx.trigger(this._element,dC),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=uC.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)}}))}}aC(uC,"close"),jx(uC);const pC='[data-bs-toggle="button"]';class bC extends nC{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=bC.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}Yx.on(document,"click.bs.button.data-api",pC,(t=>{t.preventDefault();const e=t.target.closest(pC);bC.getOrCreateInstance(e).toggle()})),jx(bC);const fC=".bs.swipe",hC=`touchstart${fC}`,gC=`touchmove${fC}`,vC=`touchend${fC}`,mC=`pointerdown${fC}`,yC=`pointerup${fC}`,wC={endCallback:null,leftCallback:null,rightCallback:null},_C={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class xC extends oC{constructor(t,e){super(),this._element=t,t&&xC.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return wC}static get DefaultType(){return _C}static get NAME(){return"swipe"}dispose(){Yx.off(this._element,fC)}_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(),Lx(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&&Lx(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Yx.on(this._element,mC,(t=>this._start(t))),Yx.on(this._element,yC,(t=>this._end(t))),this._element.classList.add("pointer-event")):(Yx.on(this._element,hC,(t=>this._start(t))),Yx.on(this._element,gC,(t=>this._move(t))),Yx.on(this._element,vC,(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 CC=".bs.carousel",kC=".data-api",SC="ArrowLeft",EC="ArrowRight",TC="next",AC="prev",$C="left",OC="right",IC=`slide${CC}`,DC=`slid${CC}`,jC=`keydown${CC}`,LC=`mouseenter${CC}`,RC=`mouseleave${CC}`,PC=`dragstart${CC}`,MC=`load${CC}${kC}`,NC=`click${CC}${kC}`,zC="carousel",qC="active",HC=".active",VC=".carousel-item",UC=HC+VC,FC={[SC]:OC,[EC]:$C},BC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},WC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class KC extends nC{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=sC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===zC&&this.cycle()}static get Default(){return BC}static get DefaultType(){return WC}static get NAME(){return"carousel"}next(){this._slide(TC)}nextWhenVisible(){!document.hidden&&Sx(this._element)&&this.next()}prev(){this._slide(AC)}pause(){this._isSliding&&xx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Yx.one(this._element,DC,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void Yx.one(this._element,DC,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?TC:AC;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&&Yx.on(this._element,jC,(t=>this._keydown(t))),"hover"===this._config.pause&&(Yx.on(this._element,LC,(()=>this.pause())),Yx.on(this._element,RC,(()=>this._maybeEnableCycle()))),this._config.touch&&xC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of sC.find(".carousel-item img",this._element))Yx.on(t,PC,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder($C)),rightCallback:()=>this._slide(this._directionToOrder(OC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new xC(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=FC[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=sC.findOne(HC,this._indicatorsElement);e.classList.remove(qC),e.removeAttribute("aria-current");const r=sC.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(qC),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===TC,n=e||Px(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>Yx.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(IC).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),$x(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(qC),r.classList.remove(qC,c,l),this._isSliding=!1,s(DC)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return sC.findOne(UC,this._element)}_getItems(){return sC.find(VC,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Dx()?t===$C?AC:TC:t===$C?TC:AC}_orderToDirection(t){return Dx()?t===AC?$C:OC:t===AC?OC:$C}static jQueryInterface(t){return this.each((function(){const e=KC.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)}))}}Yx.on(document,NC,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=sC.getElementFromSelector(this);if(!e||!e.classList.contains(zC))return;t.preventDefault();const r=KC.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===rC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),Yx.on(window,MC,(()=>{const t=sC.find('[data-bs-ride="carousel"]');for(const e of t)KC.getOrCreateInstance(e)})),jx(KC);const XC=".bs.collapse",GC=`show${XC}`,JC=`shown${XC}`,QC=`hide${XC}`,YC=`hidden${XC}`,ZC=`click${XC}.data-api`,tk="show",ek="collapse",rk="collapsing",ok=`:scope .${ek} .${ek}`,nk='[data-bs-toggle="collapse"]',ik={parent:null,toggle:!0},sk={parent:"(null|element)",toggle:"boolean"};class ak extends nC{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=sC.find(nk);for(const t of r){const e=sC.getSelectorFromElement(t),r=sC.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 ik}static get DefaultType(){return sk}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=>ak.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(Yx.trigger(this._element,GC).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(ek),this._element.classList.add(rk),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(rk),this._element.classList.add(ek,tk),this._element.style[e]="",Yx.trigger(this._element,JC)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Yx.trigger(this._element,QC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,$x(this._element),this._element.classList.add(rk),this._element.classList.remove(ek,tk);for(const t of this._triggerArray){const e=sC.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(rk),this._element.classList.add(ek),Yx.trigger(this._element,YC)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(tk)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=kx(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(nk);for(const e of t){const t=sC.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=sC.find(ok,this._config.parent);return sC.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=ak.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}Yx.on(document,ZC,nk,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of sC.getMultipleElementsFromSelector(this))ak.getOrCreateInstance(t,{toggle:!1}).toggle()})),jx(ak);const lk="dropdown",ck=".bs.dropdown",dk=".data-api",uk="ArrowUp",pk="ArrowDown",bk=`hide${ck}`,fk=`hidden${ck}`,hk=`show${ck}`,gk=`shown${ck}`,vk=`click${ck}${dk}`,mk=`keydown${ck}${dk}`,yk=`keyup${ck}${dk}`,wk="show",_k='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',xk=`${_k}.${wk}`,Ck=".dropdown-menu",kk=Dx()?"top-end":"top-start",Sk=Dx()?"top-start":"top-end",Ek=Dx()?"bottom-end":"bottom-start",Tk=Dx()?"bottom-start":"bottom-end",Ak=Dx()?"left-start":"right-start",$k=Dx()?"right-start":"left-start",Ok={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ik={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dk extends nC{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=sC.next(this._element,Ck)[0]||sC.prev(this._element,Ck)[0]||sC.findOne(Ck,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ok}static get DefaultType(){return Ik}static get NAME(){return lk}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ex(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!Yx.trigger(this._element,hk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))Yx.on(t,"mouseover",Ax);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wk),this._element.classList.add(wk),Yx.trigger(this._element,gk,t)}}hide(){if(Ex(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(!Yx.trigger(this._element,bk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Yx.off(t,"mouseover",Ax);this._popper&&this._popper.destroy(),this._menu.classList.remove(wk),this._element.classList.remove(wk),this._element.setAttribute("aria-expanded","false"),rC.removeDataAttribute(this._menu,"popper"),Yx.trigger(this._element,fk,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Cx(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${lk.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Cx(this._config.reference)?t=kx(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=gx(t,this._menu,r)}_isShown(){return this._menu.classList.contains(wk)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ak;if(t.classList.contains("dropstart"))return $k;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?Sk:kk:e?Tk:Ek}_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)&&(rC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Lx(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=sC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Sx(t)));r.length&&Px(r,e,t===pk,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Dk.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=sC.find(xk);for(const r of e){const e=Dk.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=[uk,pk].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(_k)?this:sC.prev(this,_k)[0]||sC.next(this,_k)[0]||sC.findOne(_k,t.delegateTarget.parentNode),i=Dk.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}Yx.on(document,mk,_k,Dk.dataApiKeydownHandler),Yx.on(document,mk,Ck,Dk.dataApiKeydownHandler),Yx.on(document,vk,Dk.clearMenus),Yx.on(document,yk,Dk.clearMenus),Yx.on(document,vk,_k,(function(t){t.preventDefault(),Dk.getOrCreateInstance(this).toggle()})),jx(Dk);const jk="backdrop",Lk="show",Rk=`mousedown.bs.${jk}`,Pk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Mk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nk extends oC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Pk}static get DefaultType(){return Mk}static get NAME(){return jk}show(t){if(!this._config.isVisible)return void Lx(t);this._append();const e=this._getElement();this._config.isAnimated&&$x(e),e.classList.add(Lk),this._emulateAnimation((()=>{Lx(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Lk),this._emulateAnimation((()=>{this.dispose(),Lx(t)}))):Lx(t)}dispose(){this._isAppended&&(Yx.off(this._element,Rk),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=kx(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),Yx.on(t,Rk,(()=>{Lx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Rx(t,this._getElement(),this._config.isAnimated)}}const zk=".bs.focustrap",qk=`focusin${zk}`,Hk=`keydown.tab${zk}`,Vk="backward",Uk={autofocus:!0,trapElement:null},Fk={autofocus:"boolean",trapElement:"element"};class Bk extends oC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Uk}static get DefaultType(){return Fk}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Yx.off(document,zk),Yx.on(document,qk,(t=>this._handleFocusin(t))),Yx.on(document,Hk,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Yx.off(document,zk))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=sC.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===Vk?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Vk:"forward")}}const Wk=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Kk=".sticky-top",Xk="padding-right",Gk="margin-right";class Jk{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,Xk,(e=>e+t)),this._setElementAttributes(Wk,Xk,(e=>e+t)),this._setElementAttributes(Kk,Gk,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Xk),this._resetElementAttributes(Wk,Xk),this._resetElementAttributes(Kk,Gk)}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&&rC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=rC.getDataAttribute(t,e);null!==r?(rC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Cx(t))e(t);else for(const r of sC.find(t,this._element))e(r)}}const Qk=".bs.modal",Yk=`hide${Qk}`,Zk=`hidePrevented${Qk}`,tS=`hidden${Qk}`,eS=`show${Qk}`,rS=`shown${Qk}`,oS=`resize${Qk}`,nS=`click.dismiss${Qk}`,iS=`mousedown.dismiss${Qk}`,sS=`keydown.dismiss${Qk}`,aS=`click${Qk}.data-api`,lS="modal-open",cS="show",dS="modal-static",uS={backdrop:!0,focus:!0,keyboard:!0},pS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class bS extends nC{constructor(t,e){super(t,e),this._dialog=sC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Jk,this._addEventListeners()}static get Default(){return uS}static get DefaultType(){return pS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||Yx.trigger(this._element,eS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(lS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(Yx.trigger(this._element,Yk).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(cS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){Yx.off(window,Qk),Yx.off(this._dialog,Qk),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Bk({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=sC.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),$x(this._element),this._element.classList.add(cS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Yx.trigger(this._element,rS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){Yx.on(this._element,sS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),Yx.on(window,oS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),Yx.on(this._element,iS,(t=>{Yx.one(this._element,nS,(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(lS),this._resetAdjustments(),this._scrollBar.reset(),Yx.trigger(this._element,tS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Yx.trigger(this._element,Zk).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(dS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(dS),this._queueCallback((()=>{this._element.classList.remove(dS),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=Dx()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=Dx()?"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=bS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}Yx.on(document,aS,'[data-bs-toggle="modal"]',(function(t){const e=sC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Yx.one(e,eS,(t=>{t.defaultPrevented||Yx.one(e,tS,(()=>{Sx(this)&&this.focus()}))}));const r=sC.findOne(".modal.show");r&&bS.getInstance(r).hide(),bS.getOrCreateInstance(e).toggle(this)})),aC(bS),jx(bS);const fS=".bs.offcanvas",hS=".data-api",gS=`load${fS}${hS}`,vS="show",mS="showing",yS="hiding",wS=".offcanvas.show",_S=`show${fS}`,xS=`shown${fS}`,CS=`hide${fS}`,kS=`hidePrevented${fS}`,SS=`hidden${fS}`,ES=`resize${fS}`,TS=`click${fS}${hS}`,AS=`keydown.dismiss${fS}`,$S={backdrop:!0,keyboard:!0,scroll:!1},OS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class IS extends nC{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return $S}static get DefaultType(){return OS}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||Yx.trigger(this._element,_S,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Jk).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(mS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(vS),this._element.classList.remove(mS),Yx.trigger(this._element,xS,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(Yx.trigger(this._element,CS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(yS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(vS,yS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Jk).reset(),Yx.trigger(this._element,SS)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Nk({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():Yx.trigger(this._element,kS)}:null})}_initializeFocusTrap(){return new Bk({trapElement:this._element})}_addEventListeners(){Yx.on(this._element,AS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():Yx.trigger(this._element,kS))}))}static jQueryInterface(t){return this.each((function(){const e=IS.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)}}))}}Yx.on(document,TS,'[data-bs-toggle="offcanvas"]',(function(t){const e=sC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ex(this))return;Yx.one(e,SS,(()=>{Sx(this)&&this.focus()}));const r=sC.findOne(wS);r&&r!==e&&IS.getInstance(r).hide(),IS.getOrCreateInstance(e).toggle(this)})),Yx.on(window,gS,(()=>{for(const t of sC.find(wS))IS.getOrCreateInstance(t).show()})),Yx.on(window,ES,(()=>{for(const t of sC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&IS.getOrCreateInstance(t).hide()})),aC(IS),jx(IS);const DS={"*":["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:[]},jS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),LS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,RS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!jS.has(r)||Boolean(LS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},PS={allowList:DS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},MS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},NS={entry:"(string|element|function|null)",selector:"(string|element)"};class zS extends oC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return PS}static get DefaultType(){return MS}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},NS)}_setContent(t,e,r){const o=sC.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?Cx(e)?this._putElementInTemplate(kx(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 Lx(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const qS=new Set(["sanitize","allowList","sanitizeFn"]),HS="fade",VS="show",US=".tooltip-inner",FS=".modal",BS="hide.bs.modal",WS="hover",KS="focus",XS={AUTO:"auto",TOP:"top",RIGHT:Dx()?"left":"right",BOTTOM:"bottom",LEFT:Dx()?"right":"left"},GS={allowList:DS,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"},JS={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 QS extends nC{constructor(t,r){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,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 GS}static get DefaultType(){return JS}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),Yx.off(this._element.closest(FS),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=Yx.trigger(this._element,this.constructor.eventName("show")),e=(Tx(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),Yx.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(VS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Yx.on(t,"mouseover",Ax);this._queueCallback((()=>{Yx.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!Yx.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(VS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Yx.off(t,"mouseover",Ax);this._activeTrigger.click=!1,this._activeTrigger[KS]=!1,this._activeTrigger[WS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Yx.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(HS,VS),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(HS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new zS({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[US]: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(HS)}_isShown(){return this.tip&&this.tip.classList.contains(VS)}_createPopper(t){const e=Lx(this._config.placement,[this,t,this._element]),r=XS[e.toUpperCase()];return gx(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 Lx(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,...Lx(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)Yx.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===WS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===WS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Yx.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?KS:WS]=!0,e._enter()})),Yx.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?KS:WS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},Yx.on(this._element.closest(FS),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=rC.getDataAttributes(this._element);for(const t of Object.keys(e))qS.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:kx(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=QS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}jx(QS);const YS=".popover-header",ZS=".popover-body",tE={...QS.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"},eE={...QS.DefaultType,content:"(null|string|element|function)"};class rE extends QS{static get Default(){return tE}static get DefaultType(){return eE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[YS]:this._getTitle(),[ZS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=rE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}jx(rE);const oE=".bs.scrollspy",nE=`activate${oE}`,iE=`click${oE}`,sE=`load${oE}.data-api`,aE="active",lE="[href]",cE=".nav-link",dE=`${cE}, .nav-item > ${cE}, .list-group-item`,uE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},pE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class bE extends nC{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 uE}static get DefaultType(){return pE}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=kx(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&&(Yx.off(this._config.target,iE),Yx.on(this._config.target,iE,lE,(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=sC.find(lE,this._config.target);for(const e of t){if(!e.hash||Ex(e))continue;const t=sC.findOne(decodeURI(e.hash),this._element);Sx(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(aE),this._activateParents(t),Yx.trigger(this._element,nE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))sC.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(aE);else for(const e of sC.parents(t,".nav, .list-group"))for(const t of sC.prev(e,dE))t.classList.add(aE)}_clearActiveClass(t){t.classList.remove(aE);const e=sC.find(`${lE}.${aE}`,t);for(const t of e)t.classList.remove(aE)}static jQueryInterface(t){return this.each((function(){const e=bE.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]()}}))}}Yx.on(window,sE,(()=>{for(const t of sC.find('[data-bs-spy="scroll"]'))bE.getOrCreateInstance(t)})),jx(bE);const fE=".bs.tab",hE=`hide${fE}`,gE=`hidden${fE}`,vE=`show${fE}`,mE=`shown${fE}`,yE=`click${fE}`,wE=`keydown${fE}`,_E=`load${fE}`,xE="ArrowLeft",CE="ArrowRight",kE="ArrowUp",SE="ArrowDown",EE="Home",TE="End",AE="active",$E="fade",OE="show",IE=".dropdown-toggle",DE=`:not(${IE})`,jE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',LE=`.nav-link${DE}, .list-group-item${DE}, [role="tab"]${DE}, ${jE}`,RE=`.${AE}[data-bs-toggle="tab"], .${AE}[data-bs-toggle="pill"], .${AE}[data-bs-toggle="list"]`;class PE extends nC{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Yx.on(this._element,wE,(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?Yx.trigger(e,hE,{relatedTarget:t}):null;Yx.trigger(t,vE,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(AE),this._activate(sC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),Yx.trigger(t,mE,{relatedTarget:e})):t.classList.add(OE)}),t,t.classList.contains($E)))}_deactivate(t,e){t&&(t.classList.remove(AE),t.blur(),this._deactivate(sC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),Yx.trigger(t,gE,{relatedTarget:e})):t.classList.remove(OE)}),t,t.classList.contains($E)))}_keydown(t){if(![xE,CE,kE,SE,EE,TE].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Ex(t)));let r;if([EE,TE].includes(t.key))r=e[t.key===EE?0:e.length-1];else{const o=[CE,SE].includes(t.key);r=Px(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),PE.getOrCreateInstance(r).show())}_getChildren(){return sC.find(LE,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=sC.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=sC.findOne(t,r);n&&n.classList.toggle(o,e)};o(IE,AE),o(".dropdown-menu",OE),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(AE)}_getInnerElement(t){return t.matches(LE)?t:sC.findOne(LE,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=PE.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Yx.on(document,yE,jE,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ex(this)||PE.getOrCreateInstance(this).show()})),Yx.on(window,_E,(()=>{for(const t of sC.find(RE))PE.getOrCreateInstance(t)})),jx(PE);const ME=".bs.toast",NE=`mouseover${ME}`,zE=`mouseout${ME}`,qE=`focusin${ME}`,HE=`focusout${ME}`,VE=`hide${ME}`,UE=`hidden${ME}`,FE=`show${ME}`,BE=`shown${ME}`,WE="hide",KE="show",XE="showing",GE={animation:"boolean",autohide:"boolean",delay:"number"},JE={animation:!0,autohide:!0,delay:5e3};class QE extends nC{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return JE}static get DefaultType(){return GE}static get NAME(){return"toast"}show(){Yx.trigger(this._element,FE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(WE),$x(this._element),this._element.classList.add(KE,XE),this._queueCallback((()=>{this._element.classList.remove(XE),Yx.trigger(this._element,BE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(Yx.trigger(this._element,VE).defaultPrevented||(this._element.classList.add(XE),this._queueCallback((()=>{this._element.classList.add(WE),this._element.classList.remove(XE,KE),Yx.trigger(this._element,UE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(KE),super.dispose()}isShown(){return this._element.classList.contains(KE)}_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(){Yx.on(this._element,NE,(t=>this._onInteraction(t,!0))),Yx.on(this._element,zE,(t=>this._onInteraction(t,!1))),Yx.on(this._element,qE,(t=>this._onInteraction(t,!0))),Yx.on(this._element,HE,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=QE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}aC(QE),jx(QE);var YE=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},ZE=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let tT=class extends Sw{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 rE(t)}))}}renderImage(t){return null!=t?At`<img src="${t}"/><span/>`:At``}renderMenu(t,e,r){let o=At``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?At`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:At`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?At`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:At`${o}${this.renderMenuLink(n)}`),At`${o}`}renderMenuDivider(){return At`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?At`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?At`<li>
|
|
208
208
|
<a class="${this.liAMenuClass}" href="${t.URL}">
|
|
209
209
|
${r}<span>${t.Text}</span>
|
|
210
210
|
<span class="${this.spanMenuClass}">${this.spanMenuValue}</span>
|
|
@@ -243,15 +243,15 @@
|
|
|
243
243
|
</ul>
|
|
244
244
|
</div>
|
|
245
245
|
</div>
|
|
246
|
-
</nav>`:At``}};ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"ariaExpanded",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"ariaLabel",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"buttonType",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"collapseToggle",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"dblClickClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"dropdownId",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"dropdownToggle",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"iconClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"liLinkToggleClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"liLinkClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"liAMenuClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"navClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"popoverContainer",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"popoverHtml",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"popoverPlacement",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"popoverToggle",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"popoverTrigger",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"spanMenuClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"spanMenuValue",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"ulMainMenuToggleClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"ulSubMenuClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"ulSubMenuToggleClass",void 0),ZE([Jt({type:String}),tT("design:type",Object)],eT.prototype,"apiEndpoint",void 0),ZE([Jt({type:Boolean}),tT("design:type",Object)],eT.prototype,"renderInHost",void 0),eT=ZE([Kt("qbo-mainmenu")],eT);class rT 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",rT);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};let nT=class extends Bt{async connectedCallback(){super.connectedCallback()}render(){return At`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};oT([Jt(),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],nT.prototype,"src",void 0),nT=oT([Kt("qbo-markdown")],nT);var iT,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 Bt{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{iT=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,iT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,iT.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 At`<slot></slot>`}};sT([Jt({type:Boolean}),aT("design:type",Object)],lT.prototype,"renderInHost",void 0),sT([Jt({type:Boolean}),aT("design:type",Object)],lT.prototype,"continuous",void 0),sT([Jt({type:Boolean}),aT("design:type",Object)],lT.prototype,"interimResults",void 0),sT([Jt({type:Number}),aT("design:type",Object)],lT.prototype,"maxAlternatives",void 0),sT([Jt({type:String}),aT("design:type",Object)],lT.prototype,"for",void 0),sT([Jt({type:String}),aT("design:type",Object)],lT.prototype,"class",void 0),sT([Jt({type:String}),aT("design:type",Object)],lT.prototype,"activeClass",void 0),lT=iT=sT([Kt("qbo-microphone")],lT);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},dT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let uT=class extends Bt{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 oE(t)}))}render(){return At`<slot></slot>`}};cT([Jt({type:String}),dT("design:type",Object)],uT.prototype,"selector",void 0),cT([Jt({type:Boolean}),dT("design:type",Object)],uT.prototype,"renderInHost",void 0),uT=cT([Kt("qbo-popover")],uT);class pT{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 bT extends pT{constructor(t){if(super(t),this.it=Ot,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ot||null==t)return this._t=void 0,this.it=t;if(t===$t)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}bT.directiveName="unsafeHTML",bT.resultType=1;const fT=(hT=bT,(...t)=>({_$litDirective$:hT,values:t}));var hT,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 Ew{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
|
|
246
|
+
</nav>`:At``}};YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"ariaExpanded",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"ariaLabel",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"buttonType",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"collapseToggle",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"dblClickClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"dropdownId",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"dropdownToggle",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"iconClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"liLinkToggleClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"liLinkClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"liAMenuClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"navClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"popoverContainer",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"popoverHtml",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"popoverPlacement",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"popoverToggle",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"popoverTrigger",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"spanMenuClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"spanMenuValue",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"ulMainMenuToggleClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"ulSubMenuClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"ulSubMenuToggleClass",void 0),YE([Jt({type:String}),ZE("design:type",Object)],tT.prototype,"apiEndpoint",void 0),YE([Jt({type:Boolean}),ZE("design:type",Object)],tT.prototype,"renderInHost",void 0),tT=YE([Kt("qbo-mainmenu")],tT);class eT 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",eT);var rT=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 oT=class extends Bt{async connectedCallback(){super.connectedCallback()}render(){return At`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};rT([Jt(),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],oT.prototype,"src",void 0),oT=rT([Kt("qbo-markdown")],oT);var nT,iT=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},sT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let aT=class extends Bt{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{nT=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,nT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,nT.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 At`<slot></slot>`}};iT([Jt({type:Boolean}),sT("design:type",Object)],aT.prototype,"renderInHost",void 0),iT([Jt({type:Boolean}),sT("design:type",Object)],aT.prototype,"continuous",void 0),iT([Jt({type:Boolean}),sT("design:type",Object)],aT.prototype,"interimResults",void 0),iT([Jt({type:Number}),sT("design:type",Object)],aT.prototype,"maxAlternatives",void 0),iT([Jt({type:String}),sT("design:type",Object)],aT.prototype,"for",void 0),iT([Jt({type:String}),sT("design:type",Object)],aT.prototype,"class",void 0),iT([Jt({type:String}),sT("design:type",Object)],aT.prototype,"activeClass",void 0),aT=nT=iT([Kt("qbo-microphone")],aT);var lT=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},cT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let dT=class extends Bt{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 rE(t)}))}render(){return At`<slot></slot>`}};lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"selector",void 0),lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"renderInHost",void 0),dT=lT([Kt("qbo-popover")],dT);class uT{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 pT extends uT{constructor(t){if(super(t),this.it=Ot,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ot||null==t)return this._t=void 0,this.it=t;if(t===$t)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pT.directiveName="unsafeHTML",pT.resultType=1;const bT=(fT=pT,(...t)=>({_$litDirective$:fT,values:t}));var fT,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},gT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let vT=class extends Sw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
|
|
247
247
|
/* Add any custom styles here */
|
|
248
248
|
.foo { color: red; }
|
|
249
249
|
`]}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 At`
|
|
250
250
|
<slot name="button" @click="${this.toggle}">
|
|
251
251
|
<button class="btn">Popup</button>
|
|
252
252
|
</slot>
|
|
253
|
-
<slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">${
|
|
254
|
-
`}};
|
|
253
|
+
<slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">${bT(this.html)}</slot>
|
|
254
|
+
`}};hT([Jt({type:Boolean}),gT("design:type",Object)],vT.prototype,"open",void 0),hT([Jt({type:Boolean}),gT("design:type",Object)],vT.prototype,"loading",void 0),hT([Jt({type:Boolean}),gT("design:type",Object)],vT.prototype,"renderInHost",void 0),vT=hT([Kt("qbo-popup")],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 Bt{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 At`
|
|
255
255
|
<slot name="button" @click="${this.toggle}"></slot>
|
|
256
256
|
<slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">
|
|
257
257
|
<link href="scripts/qbo4.css" rel="stylesheet">
|
|
@@ -268,13 +268,13 @@
|
|
|
268
268
|
</div>
|
|
269
269
|
</div>
|
|
270
270
|
</slot>
|
|
271
|
-
`}};
|
|
271
|
+
`}};mT([Jt({type:Boolean}),yT("design:type",Object)],wT.prototype,"open",void 0),mT([Jt({type:Boolean}),yT("design:type",Object)],wT.prototype,"loading",void 0),mT([Jt({type:Boolean}),yT("design:type",Object)],wT.prototype,"renderInHost",void 0),mT([Jt({type:String}),yT("design:type",Object)],wT.prototype,"src",void 0),mT([Jt({type:String}),yT("design:type",Object)],wT.prototype,"title",void 0),mT([Jt(),yT("design:type",Object)],wT.prototype,"clickSelector",void 0),mT([Jt(),yT("design:type",Object)],wT.prototype,"eventName",void 0),mT([Jt(),yT("design:type",Object)],wT.prototype,"target",void 0),mT([Jt({type:Boolean}),yT("design:type",Object)],wT.prototype,"listen",void 0),wT=mT([Kt("qbo-popup-listener")],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 CT=class extends Sw{constructor(){super(...arguments),this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.emptyOptionText="--",this.emptyOptionValue="",this.options=[],this.renderInHost=!0}static{this.styles=[B`
|
|
272
272
|
/* Add any custom styles here */
|
|
273
273
|
.foo { color: red; }
|
|
274
|
-
`]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=
|
|
274
|
+
`]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=ow(this.jsonData),this.options?(this.optionValue??=Object.keys(this.options[0])[0],this.optionText??=Object.keys(this.options[0])[1]??this.optionValue,At`<select ?disabled=${this.hasAttribute("disabled")} class=${this.getAttribute("class")}>
|
|
275
275
|
<option value="${this.emptyOptionValue}">${this.emptyOptionText}</option>
|
|
276
276
|
${this.options.map((t=>At`<option value="${t[this.optionValue]}" ?selected="${t[this.optionValue]==this.defaultValue}">${t[this.optionText]}</option>`))}
|
|
277
|
-
</select>`):At`<p>Loading...</p>`}};
|
|
277
|
+
</select>`):At`<p>Loading...</p>`}};_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"loading",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"optionText",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"optionValue",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"defaultValue",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"emptyOptionText",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"emptyOptionValue",void 0),_T([Jt({type:Array}),xT("design:type",Object)],CT.prototype,"options",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"renderInHost",void 0),CT=_T([Kt("qbo-select")],CT);var kT=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},ST=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ET=class extends Bt{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 At`<slot></slot>`}};kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"collapseAttribute",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"collapseSelector",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"menuCollapsed",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"menuExpanded",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"menuShow",void 0),ET=kT([Kt("qbo-sidebar")],ET);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},AT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let $T=class extends Sw{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=ow(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),iw(this.querySelector("tbody"),this.querySelector("template"),this.options);const t=Object.keys(this.options[0]);return At`<slot>
|
|
278
278
|
<table class=${this.qboClass}>
|
|
279
279
|
<thead>
|
|
280
280
|
${null!=this.querySelector("*[slot=header]")?At`<tr><th colspan="${t.length}"><slot name="header"></slot></th></tr>`:null}
|
|
@@ -283,5 +283,5 @@
|
|
|
283
283
|
<tbody>${this.options.map(((e,r)=>At`<tr data-index="${r}">${t.map((t=>At`<td>${e[t]}</td>`))}</tr>`))}</tbody>
|
|
284
284
|
<tfoot><tr><td colspan="${t.length}"><slot name="footer">${t.length} rows rendered.</slot></td></tr></tfoot>
|
|
285
285
|
</table>
|
|
286
|
-
</slot>`}loadData(){if(null!=this.dataSelector){const t=document.querySelector(this.dataSelector);if(null!=t)return
|
|
286
|
+
</slot>`}loadData(){if(null!=this.dataSelector){const t=document.querySelector(this.dataSelector);if(null!=t)return ow(t.text)}return null}};TT([Jt({type:Boolean}),AT("design:type",Object)],$T.prototype,"loading",void 0),TT([Jt({type:Boolean}),AT("design:type",Object)],$T.prototype,"renderInHost",void 0),TT([Jt({attribute:"qbo-class"}),AT("design:type",Object)],$T.prototype,"qboClass",void 0),TT([Jt(),AT("design:type",Object)],$T.prototype,"dataSelector",void 0),TT([Jt(),AT("design:type",Object)],$T.prototype,"options",void 0),$T=TT([Kt("qbo-table")],$T);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 DT=class extends Bt{constructor(){super(),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.trace("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.trace("validating element ",t),await this.validateElement(t)):console.trace("ignoring element ",t);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("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.trace("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.trace("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.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=I.container.createChildContainer()}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.childContainer.registerInstance(HTMLFormElement,this.form),this.validators=this.childContainer.resolveAll(cw),this.validators.forEach((t=>t.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((t=>t.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return At``}};function jT(t,e,r="options"){const o={},n=`${e}${r}`,i=t.getAttributeNames();for(const s of i)if(s.startsWith(e)){const i=s.slice(e.length);if(null!=r&&s===n)try{const e=JSON.parse(t.getAttribute(s));Object.assign(o,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(s)}):`,t,e)}else o[i]=t.getAttribute(s)}return o}function LT(t,e){const r=Array.from(t.querySelectorAll(e));return t.matches(e)&&r.unshift(t),r}function RT(t){if(t instanceof HTMLInputElement)"checkbox"===t.type||"radio"===t.type?t.checked=t.defaultChecked:t.value=t.defaultValue;else if(t instanceof HTMLSelectElement){var e=t.querySelectorAll("option[selected]");0==e.length?t.selectedIndex=0:e.forEach((t=>{t instanceof HTMLOptionElement&&(t.selected=!0)}))}}function PT(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}function MT(t,e,r="*",o=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+r,"g"),".*"),new RegExp("^"+e+"$",o?"i":"").test(t)}function NT(t){const e=t.dataset,r={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(r[t]=e[t]);return r}function zT(t){const e=t.match(/api:\/\/([^/]+)/),r=e?e[1]:t,o=e?t.substring(`api://${r}`.length):"",n=I.container.isRegistered(r)?I.container.resolve(r):new sw(t);if(o){const t=structuredClone(n);return t.relativePath=o,t}return n}OT([Jt({type:Boolean}),IT("design:type",Object)],DT.prototype,"renderInHost",void 0),OT([Jt({type:String}),IT("design:type",Object)],DT.prototype,"autoComplete",void 0),OT([Jt({type:String}),IT("design:type",Object)],DT.prototype,"validatedClass",void 0),OT([Jt({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),IT("design:type",Object)],DT.prototype,"workingClass",void 0),DT=OT([Kt("qbo-validate"),IT("design:paramtypes",[])],DT)})(),o})()));
|
|
287
287
|
//# sourceMappingURL=qbo4.ui.min.js.map
|