@quandis/qbo4.ui 4.0.1-CI-20241115-180638 → 4.0.1-CI-20241116-001926

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see qbo4.ui.min.js.LICENSE.txt */
2
- var o={630:(o,e,t)=>{var r;!function(o){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof t.g?t.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(o){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(o){}}(),r=n(o);function n(o,e){return function(t,r){Object.defineProperty(o,t,{configurable:!0,writable:!0,value:r}),e&&e(t,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(o,e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,b={__proto__:[]}instanceof Array,l=!a&&!b,d={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(o,e){return t.call(o,e)}:function(o,e){return e in o},get:l?function(o,e){return t.call(o,e)?o[e]:void 0}:function(o,e){return o[e]}},s=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var o={},e=[],t=function(){function o(o,e,t){this._index=0,this._keys=o,this._values=e,this._selector=t}return o.prototype["@@iterator"]=function(){return this},o.prototype[i]=function(){return this},o.prototype.next=function(){var o=this._index;if(o>=0&&o<this._keys.length){var t=this._selector(this._keys[o],this._values[o]);return o+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},o.prototype.throw=function(o){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),o},o.prototype.return=function(o){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:o,done:!0}},o}(),r=function(){function e(){this._keys=[],this._values=[],this._cacheKey=o,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(o){return this._find(o,!1)>=0},e.prototype.get=function(o){var e=this._find(o,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(o,e){var t=this._find(o,!0);return this._values[t]=e,this},e.prototype.delete=function(e){var t=this._find(e,!1);if(t>=0){for(var r=this._keys.length,n=t+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,P(e,this._cacheKey)&&(this._cacheKey=o,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=o,this._cacheIndex=-2},e.prototype.keys=function(){return new t(this._keys,this._values,n)},e.prototype.values=function(){return new t(this._keys,this._values,a)},e.prototype.entries=function(){return new t(this._keys,this._values,b)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(o,e){if(!P(this._cacheKey,o)){this._cacheIndex=-1;for(var t=0;t<this._keys.length;t++)if(P(this._keys[t],o)){this._cacheIndex=t;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(o),this._values.push(void 0)),this._cacheIndex},e}();return r;function n(o,e){return o}function a(o,e){return e}function b(o,e){return[o,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function o(){this._map=new c}return Object.defineProperty(o.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),o.prototype.has=function(o){return this._map.has(o)},o.prototype.add=function(o){return this._map.set(o,o),this},o.prototype.delete=function(o){return this._map.delete(o)},o.prototype.clear=function(){this._map.clear()},o.prototype.keys=function(){return this._map.keys()},o.prototype.values=function(){return this._map.keys()},o.prototype.entries=function(){return this._map.entries()},o.prototype["@@iterator"]=function(){return this.keys()},o.prototype[i]=function(){return this.keys()},o}(),m="function"==typeof WeakMap?WeakMap:function(){var o=d.create(),e=r();return function(){function o(){this._key=r()}return o.prototype.has=function(o){var e=n(o,!1);return void 0!==e&&d.has(e,this._key)},o.prototype.get=function(o){var e=n(o,!1);return void 0!==e?d.get(e,this._key):void 0},o.prototype.set=function(o,e){return n(o,!0)[this._key]=e,this},o.prototype.delete=function(o){var e=n(o,!1);return void 0!==e&&delete e[this._key]},o.prototype.clear=function(){this._key=r()},o}();function r(){var e;do{e="@@WeakMap@@"+a()}while(d.has(o,e));return o[e]=!0,e}function n(o,r){if(!t.call(o,e)){if(!r)return;Object.defineProperty(o,e,{value:d.create()})}return o[e]}function i(o,e){for(var t=0;t<e;++t)o[t]=255*Math.random()|0;return o}function a(){var o=function(o){if("function"==typeof Uint8Array){var e=new Uint8Array(o);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,o),e}return i(new Array(o),o)}(16);o[6]=79&o[6]|64,o[8]=191&o[8]|128;for(var e="",t=0;t<16;++t){var r=o[t];4!==t&&6!==t&&8!==t||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),p=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var o;return!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&(o=e.Reflect[p]),j(o)&&(o=function(){var o,t,r,n;j(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(o=function(o){var e=o.defineMetadata,t=o.hasOwnMetadata,r=o.getOwnMetadata,n=o.getOwnMetadataKeys,i=o.deleteMetadata,a=new m,b={isProviderFor:function(o,e){var t=a.get(o);return!(j(t)||!t.has(e))||!!n(o,e).length&&(j(t)&&(t=new f,a.set(o,t)),t.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:t,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i};return b}(e.Reflect));var i=new m,a={registerProvider:b,getProvider:d,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case o===e:break;case j(t):t=e;break;case t===e:break;case j(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!j(t)){if(t.isProviderFor(e,i))return t;if(!j(r)){if(r.isProviderFor(e,i))return t;if(!j(n))for(var a=B(n);;){var b=T(a);if(!b)return;var l=L(b);if(l.isProviderFor(e,i))return I(a),l}}}if(!j(o)&&o.isProviderFor(e,i))return o}function d(o,e){var t,r=i.get(o);return j(r)||(t=r.get(e)),j(t)?(j(t=l(o,e))||(j(r)&&(r=new c,i.set(o,r)),r.set(e,t)),t):t}function s(o){if(j(o))throw new TypeError;return t===o||r===o||!j(n)&&n.has(o)}function g(o,e,t){if(!s(t))throw new Error("Metadata provider not registered.");var r=d(o,e);if(r!==t){if(!j(r))return!1;var n=i.get(o);j(n)&&(n=new c,i.set(o,n)),n.set(e,t)}return!0}}()),!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:o}),o}(),u=function(o){var e=new m,t={isProviderFor:function(o,t){var r=e.get(o);return!j(r)&&r.has(t)},OrdinaryDefineOwnMetadata:function(o,e,t,n){r(t,n,!0).set(o,e)},OrdinaryHasOwnMetadata:function(o,e,t){var n=r(e,t,!1);return!j(n)&&O(n.has(o))},OrdinaryGetOwnMetadata:function(o,e,t){var n=r(e,t,!1);if(!j(n))return n.get(o)},OrdinaryOwnMetadataKeys:function(o,e){var t=[],n=r(o,e,!1);if(j(n))return t;for(var i=B(n.keys()),a=0;;){var b=T(i);if(!b)return t.length=a,t;var l=L(b);try{t[a]=l}catch(o){try{I(i)}finally{throw o}}a++}},OrdinaryDeleteMetadata:function(o,t,n){var i=r(t,n,!1);if(j(i))return!1;if(!i.delete(o))return!1;if(0===i.size){var a=e.get(t);j(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(t),t;function r(r,n,i){var a=e.get(r),b=!1;if(j(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(j(l)){if(!i)return;if(l=new c,a.set(n,l),!o.setProvider(r,n,t))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(o,e,t){if(h(o,e,t))return!0;var r=D(e);return!S(r)&&v(o,r,t)}function h(o,e,t){var r=H(e,t,!1);return!j(r)&&O(r.OrdinaryHasOwnMetadata(o,e,t))}function x(o,e,t){if(h(o,e,t))return w(o,e,t);var r=D(e);return S(r)?void 0:x(o,r,t)}function w(o,e,t){var r=H(e,t,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(o,e,t)}function q(o,e,t,r){H(t,r,!0).OrdinaryDefineOwnMetadata(o,e,t,r)}function y(o,e){var t=k(o,e),r=D(o);if(null===r)return t;var n=y(r,e);if(n.length<=0)return t;if(t.length<=0)return n;for(var i=new f,a=[],b=0,l=t;b<l.length;b++){var d=l[b];i.has(d)||(i.add(d),a.push(d))}for(var s=0,c=n;s<c.length;s++)d=c[s],i.has(d)||(i.add(d),a.push(d));return a}function k(o,e){var t=H(o,e,!1);return t?t.OrdinaryOwnMetadataKeys(o,e):[]}function z(o){if(null===o)return 1;switch(typeof o){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===o?1:6;default:return 6}}function j(o){return void 0===o}function S(o){return null===o}function R(o){return"object"==typeof o?null!==o:"function"==typeof o}function $(o,e){switch(z(o)){case 0:case 1:case 2:case 3:case 4:case 5:return o}var t=3===e?"string":5===e?"number":"default",r=M(o,n);if(void 0!==r){var i=r.call(o,t);if(R(i))throw new TypeError;return i}return function(o,e){if("string"===e){var t=o.toString;if(C(t)&&!R(n=t.call(o)))return n;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n}else{var r;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n;var n,i=o.toString;if(C(i)&&!R(n=i.call(o)))return n}throw new TypeError}(o,"default"===t?"number":t)}function O(o){return!!o}function A(o){var e=$(o,3);return function(o){return"symbol"==typeof o}(e)?e:function(o){return""+o}(e)}function E(o){return Array.isArray?Array.isArray(o):o instanceof Object?o instanceof Array:"[object Array]"===Object.prototype.toString.call(o)}function C(o){return"function"==typeof o}function _(o){return"function"==typeof o}function P(o,e){return o===e||o!=o&&e!=e}function M(o,e){var t=o[e];if(null!=t){if(!C(t))throw new TypeError;return t}}function B(o){var e=M(o,i);if(!C(e))throw new TypeError;var t=e.call(o);if(!R(t))throw new TypeError;return t}function L(o){return o.value}function T(o){var e=o.next();return!e.done&&e}function I(o){var e=o.return;e&&e.call(o)}function D(o){var e=Object.getPrototypeOf(o);if("function"!=typeof o||o===s)return e;if(e!==s)return e;var t=o.prototype,r=t&&Object.getPrototypeOf(t);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===o?e:n}function H(o,e,t){var r=g.getProvider(o,e);if(!j(r))return r;if(t){if(g.setProvider(o,e,u))return u;throw new Error("Illegal state.")}}function N(o){return o.__=void 0,delete o.__,o}o("decorate",(function(o,e,t,r){if(j(t)){if(!E(o))throw new TypeError;if(!_(e))throw new TypeError;return function(o,e){for(var t=o.length-1;t>=0;--t){var r=(0,o[t])(e);if(!j(r)&&!S(r)){if(!_(r))throw new TypeError;e=r}}return e}(o,e)}if(!E(o))throw new TypeError;if(!R(e))throw new TypeError;if(!R(r)&&!j(r)&&!S(r))throw new TypeError;return S(r)&&(r=void 0),function(o,e,t,r){for(var n=o.length-1;n>=0;--n){var i=(0,o[n])(e,t,r);if(!j(i)&&!S(i)){if(!R(i))throw new TypeError;r=i}}return r}(o,e,t=A(t),r)})),o("metadata",(function(o,e){return function(t,r){if(!R(t))throw new TypeError;if(!j(r)&&!function(o){switch(z(o)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;q(o,e,t,r)}})),o("defineMetadata",(function(o,e,t,r){if(!R(t))throw new TypeError;return j(r)||(r=A(r)),q(o,e,t,r)})),o("hasMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),v(o,e,t)})),o("hasOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),h(o,e,t)})),o("getMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),x(o,e,t)})),o("getOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),w(o,e,t)})),o("getMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),y(o,e)})),o("getOwnMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),k(o,e)})),o("deleteMetadata",(function(o,e,t){if(!R(e))throw new TypeError;if(j(t)||(t=A(t)),!R(e))throw new TypeError;j(t)||(t=A(t));var r=H(e,t,!1);return!j(r)&&r.OrdinaryDeleteMetadata(o,e,t)}))}(r,e),void 0===e.Reflect&&(e.Reflect=o)}()}(r||(r={}))}},e={};function t(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return o[r](i,i.exports,t),i.exports}t.d=(o,e)=>{for(var r in e)t.o(e,r)&&!t.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e);var r,n={};t.d(n,{tz:()=>Ee,O2:()=>G,m$:()=>Y,Il:()=>U,P7:()=>V,Dg:()=>H,ho:()=>N,OU:()=>E,Kt:()=>Xr,$4:()=>qe,Je:()=>ze,ZF:()=>Te,dm:()=>He,No:()=>Me,SD:()=>Pe,RK:()=>Ve,R$:()=>Ke,kq:()=>gt,EB:()=>qr,bA:()=>jr,U6:()=>$r,OK:()=>Er,hX:()=>Br,V9:()=>Ir,FX:()=>Gr,j_:()=>Fr,PK:()=>Wr,N6:()=>Zr,Cv:()=>tn,vn:()=>sn,zZ:()=>Dr,k$:()=>B,xC:()=>O,G8:()=>C,bj:()=>D,Nw:()=>Se,Tt:()=>Re,Ng:()=>J,Ty:()=>fn,f_:()=>mn,Qg:()=>pn,BL:()=>K,BV:()=>Q,bX:()=>W,Yq:()=>bn,c7:()=>T,_e:()=>_,Tj:()=>nn,fj:()=>an,cK:()=>cn,On:()=>je,B_:()=>$e,I6:()=>L,aA:()=>M,$p:()=>A,$7:()=>rn,V2:()=>P}),t(630),function(o){o[o.Transient=0]="Transient",o[o.Singleton=1]="Singleton",o[o.ResolutionScoped=2]="ResolutionScoped",o[o.ContainerScoped=3]="ContainerScoped"}(r||(r={}));const i=r;var a=function(o,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])},a(o,e)};function b(o,e){function t(){this.constructor=o}a(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}function l(o){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&o[e],r=0;if(t)return t.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&r>=o.length&&(o=void 0),{value:o&&o[r++],done:!o}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(o,e){var t="function"==typeof Symbol&&o[Symbol.iterator];if(!t)return o;var r,n,i=t.call(o),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return a}function s(){for(var o=[],e=0;e<arguments.length;e++)o=o.concat(d(arguments[e]));return o}function c(o){return!!o.useClass}function f(o){return!!o.useFactory}var m=function(){function o(o){this.wrap=o,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return o.prototype.createProxy=function(o){var e,t=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=o(t.wrap()),r=!0),e})))},o.prototype.createHandler=function(o){var e={};return this.reflectMethods.forEach((function(t){e[t]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=o(),Reflect[t].apply(void 0,s(e))}})),e},o}();function p(o){return"string"==typeof o||"symbol"==typeof o}function g(o){return"object"==typeof o&&"token"in o&&"transform"in o}function u(o){return!!o.useToken}function v(o){return null!=o.useValue}const h=function(){function o(){this._registryMap=new Map}return o.prototype.entries=function(){return this._registryMap.entries()},o.prototype.getAll=function(o){return this.ensure(o),this._registryMap.get(o)},o.prototype.get=function(o){this.ensure(o);var e=this._registryMap.get(o);return e[e.length-1]||null},o.prototype.set=function(o,e){this.ensure(o),this._registryMap.get(o).push(e)},o.prototype.setAll=function(o,e){this._registryMap.set(o,e)},o.prototype.has=function(o){return this.ensure(o),this._registryMap.get(o).length>0},o.prototype.clear=function(){this._registryMap.clear()},o.prototype.ensure=function(o){this._registryMap.has(o)||this._registryMap.set(o,[])},o}(),x=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return b(e,o),e}(h),w=function(){this.scopedResolutions=new Map};var q=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return b(e,o),e}(h),y=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return b(e,o),e}(h);const k=function(){this.preResolution=new q,this.postResolution=new y};var z=new Map,j=function(){function o(o){this.parent=o,this._registry=new x,this.interceptors=new k,this.disposed=!1,this.disposables=new Set}return o.prototype.register=function(o,e,t){var r;if(void 0===t&&(t={lifecycle:i.Transient}),this.ensureNotDisposed(),r=function(o){return c(o)||v(o)||u(o)||f(o)}(e)?e:{useClass:e},u(r))for(var n=[o],a=r;null!=a;){var b=a.useToken;if(n.includes(b))throw new Error("Token registration cycle detected! "+s(n,[b]).join(" -> "));n.push(b);var l=this._registry.get(b);a=l&&u(l.provider)?l.provider:null}if((t.lifecycle===i.Singleton||t.lifecycle==i.ContainerScoped||t.lifecycle==i.ResolutionScoped)&&(v(r)||f(r)))throw new Error('Cannot use lifecycle "'+i[t.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(o,{provider:r,options:t}),this},o.prototype.registerType=function(o,e){return this.ensureNotDisposed(),p(e)?this.register(o,{useToken:e}):this.register(o,{useClass:e})},o.prototype.registerInstance=function(o,e){return this.ensureNotDisposed(),this.register(o,{useValue:e})},o.prototype.registerSingleton=function(o,e){if(this.ensureNotDisposed(),p(o)){if(p(e))return this.register(o,{useToken:e},{lifecycle:i.Singleton});if(e)return this.register(o,{useClass:e},{lifecycle:i.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var t=o;return e&&!p(e)&&(t=e),this.register(o,{useClass:t},{lifecycle:i.Singleton})},o.prototype.resolve=function(o,e){void 0===e&&(e=new w),this.ensureNotDisposed();var t=this.getRegistration(o);if(!t&&p(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"Single"),t){var r=this.resolveRegistration(t,e);return this.executePostResolutionInterceptor(o,r,"Single"),r}if(function(o){return"function"==typeof o||o instanceof m}(o))return r=this.construct(o,e),this.executePostResolutionInterceptor(o,r,"Single"),r;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},o.prototype.executePreResolutionInterceptor=function(o,e){var t,r;if(this.interceptors.preResolution.has(o)){var n=[];try{for(var i=l(this.interceptors.preResolution.getAll(o)),a=i.next();!a.done;a=i.next()){var b=a.value;"Once"!=b.options.frequency&&n.push(b),b.callback(o,e)}}catch(o){t={error:o}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.interceptors.preResolution.setAll(o,n)}},o.prototype.executePostResolutionInterceptor=function(o,e,t){var r,n;if(this.interceptors.postResolution.has(o)){var i=[];try{for(var a=l(this.interceptors.postResolution.getAll(o)),b=a.next();!b.done;b=a.next()){var d=b.value;"Once"!=d.options.frequency&&i.push(d),d.callback(o,e,t)}}catch(o){r={error:o}}finally{try{b&&!b.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(o,i)}},o.prototype.resolveRegistration=function(o,e){if(this.ensureNotDisposed(),o.options.lifecycle===i.ResolutionScoped&&e.scopedResolutions.has(o))return e.scopedResolutions.get(o);var t,r=o.options.lifecycle===i.Singleton,n=o.options.lifecycle===i.ContainerScoped,a=r||n;return t=v(o.provider)?o.provider.useValue:u(o.provider)?a?o.instance||(o.instance=this.resolve(o.provider.useToken,e)):this.resolve(o.provider.useToken,e):c(o.provider)?a?o.instance||(o.instance=this.construct(o.provider.useClass,e)):this.construct(o.provider.useClass,e):f(o.provider)?o.provider.useFactory(this):this.construct(o.provider,e),o.options.lifecycle===i.ResolutionScoped&&e.scopedResolutions.set(o,t),t},o.prototype.resolveAll=function(o,e){var t=this;void 0===e&&(e=new w),this.ensureNotDisposed();var r=this.getAllRegistrations(o);if(!r&&p(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"All"),r){var n=r.map((function(o){return t.resolveRegistration(o,e)}));return this.executePostResolutionInterceptor(o,n,"All"),n}var i=[this.construct(o,e)];return this.executePostResolutionInterceptor(o,i,"All"),i},o.prototype.isRegistered=function(o,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(o)||e&&(this.parent||!1)&&this.parent.isRegistered(o,!0)},o.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},o.prototype.clearInstances=function(){var o,e;this.ensureNotDisposed();try{for(var t=l(this._registry.entries()),r=t.next();!r.done;r=t.next()){var n=d(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(o){return!v(o.provider)})).map((function(o){return o.instance=void 0,o})))}}catch(e){o={error:e}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(o)throw o.error}}},o.prototype.createChildContainer=function(){var e,t;this.ensureNotDisposed();var r=new o(this);try{for(var n=l(this._registry.entries()),a=n.next();!a.done;a=n.next()){var b=d(a.value,2),s=b[0],c=b[1];c.some((function(o){return o.options.lifecycle===i.ContainerScoped}))&&r._registry.setAll(s,c.map((function(o){return o.options.lifecycle===i.ContainerScoped?{provider:o.provider,options:o.options}:o})))}}catch(o){e={error:o}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},o.prototype.beforeResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.preResolution.set(o,{callback:e,options:t})},o.prototype.afterResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.postResolution.set(o,{callback:e,options:t})},o.prototype.dispose=function(){return function(o,e,t,r){return new(t||(t=Promise))((function(n,i){function a(o){try{l(r.next(o))}catch(o){i(o)}}function b(o){try{l(r.throw(o))}catch(o){i(o)}}function l(o){var e;o.done?n(o.value):(e=o.value,e instanceof t?e:new t((function(o){o(e)}))).then(a,b)}l((r=r.apply(o,e||[])).next())}))}(this,void 0,void 0,(function(){var o;return function(o,e){var t,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function b(i){return function(b){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(o,a)}catch(o){i=[6,o],r=0}finally{t=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,b])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,o=[],this.disposables.forEach((function(e){var t=e.dispose();t&&o.push(t)})),[4,Promise.all(o)];case 1:return e.sent(),[2]}}))}))},o.prototype.getRegistration=function(o){return this.isRegistered(o)?this._registry.get(o):this.parent?this.parent.getRegistration(o):null},o.prototype.getAllRegistrations=function(o){return this.isRegistered(o)?this._registry.getAll(o):this.parent?this.parent.getAllRegistrations(o):null},o.prototype.construct=function(o,e){var t=this;if(o instanceof m)return o.createProxy((function(o){return t.resolve(o,e)}));var r,n=function(){var r=z.get(o);if(!r||0===r.length){if(0===o.length)return new o;throw new Error('TypeInfo not known for "'+o.name+'"')}var n=r.map(t.resolveParams(e,o));return new(o.bind.apply(o,s([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},o.prototype.resolveParams=function(o,e){var t=this;return function(r,n){var i,a,b,l;try{return"object"==typeof(l=r)&&"token"in l&&"multiple"in l?g(r)?r.multiple?(i=t.resolve(r.transform)).transform.apply(i,s([t.resolveAll(r.token)],r.transformArgs)):(a=t.resolve(r.transform)).transform.apply(a,s([t.resolve(r.token,o)],r.transformArgs)):r.multiple?t.resolveAll(r.token):t.resolve(r.token,o):g(r)?(b=t.resolve(r.transform,o)).transform.apply(b,s([t.resolve(r.token,o)],r.transformArgs)):t.resolve(r,o)}catch(o){throw new Error(function(o,e,t){var r,n,i=d(o.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(o,e,t){return void 0===t&&(t=" "),s([o],e.message.split("\n").map((function(o){return t+o}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(r=void 0===i?null:i)?"at position #"+n:'"'+r.split(",")[n].trim()+'" at position #'+n)+' of "')+o.name+'" constructor. Reason:',t)}(e,n,o))}}},o.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},o}(),S=new j,R="injectionTokens";const $=function(){return function(o){z.set(o,function(o){var e=Reflect.getMetadata("design:paramtypes",o)||[],t=Reflect.getOwnMetadata(R,o)||{};return Object.keys(t).forEach((function(o){e[+o]=t[o]})),e}(o))}};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.");class O{constructor(o,e){this.container=o,this.options=e}getService(o){return this.container.resolve(o)}}const A=window?.qbo4?.services||new O(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new O(S.createChildContainer(),{}),window.qbo4.services);const E="ApiServiceToken",C="ValidateToken";function _(o,e){if("string"==typeof o)try{o=JSON.parse(o)}catch(o){return console.error("Error parsing JSON string:",o),null}if(Array.isArray(o))return o;if("object"==typeof o&&null!==o)for(const t in o){const r=o[t];if(Array.isArray(r))return r;if("object"==typeof r){const o=_(r,e);if(o)return o}}return null}function P(o,...e){const t=/\${(.*?)}/g;let r=o;for(let o=0;o<e.length;o++){const n=e[o];r=r.replace(t,((o,e)=>{const t=e.split(/\.|\[|\]/).filter((o=>""!==o));let r=n;for(let e of t){if(void 0===r[e])return o;r=r[e]}return r}))}return r=r.replace(t,(()=>"")),r}function M(o,e,t,r=!0){if(null!=o&&null!=e){for(;r&&o.firstChild;)o.removeChild(o.firstChild);t.map(((t,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=P(n.firstElementChild?.innerHTML??"",t)),o.appendChild(n)}))}}class B{constructor(o,e={},t=null){this.relativePath="",this.apiEndpoint=o,this.headers=e,this.method=t}async fetch(o,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const t=P(new URL(o??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),n=new Headers(this.headers||{});e&&!n.has("Content-Type")&&n.append("Content-Type","application/json");const i=await fetch(t,{method:r,headers:n,body:"POST"===r&&e?JSON.stringify(e):null}),a=n.get("Accept")??"";return i.ok?"application/json"===a?await i.json():await i.text():(console.error(`API request failed with status ${i.status}`),null)}clone(o){const e=new B(this.apiEndpoint,this.headers,this.method);return e.relativePath=o??"",e}}function L(o,e,t={"Content-Type":"application/json"},r){A.container.registerInstance(o,new B(e,t,r))}function T(o){"string"!=typeof o&&(o=o.href);const e=o.match(/api:\/\/([^/]+)/),t=e?e[1]:o,r=e?o.substring(`api://${t}`.length+1):"",n=A.container.isRegistered(t)?A.container.resolve(t):new B(o);return r?n.clone(r):n}A.container.registerInstance("default",new B(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var I=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};let D=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};D=I([$()],D),A.container.register(C,{useClass:D});let H=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};H=I([$()],H),A.container.register(C,{useClass:H});let N=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(o){}disconnect(){}async validate(o){var e=o.getAttribute("data-exists");if(!e)return!1;var t=o.getAttribute("data-exists-path");const r=A.container.isRegistered(e)?A.container.resolve(e):new B(e);if(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement){const e=_(await r.fetch(t,{value:o.value}));return null!=e&&e.length>0}return!1}};N=I([$()],N),A.container.register(C,{useClass:N});class G{constructor(){this.operator="=",this.value=null}}class U{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const V="DependencyValidatorOptions",F=new Map([["!=",(o,e)=>!cn(o.value,e)],[">=",(o,e)=>o.value>=e],["<=",(o,e)=>o.value<=e],["=",(o,e)=>cn(o.value,e)],[">",(o,e)=>o.value>e],["<",(o,e)=>o.value<e]]),X=Array.from(F.keys());let Y=class{constructor(o,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async o=>{console.log("checking dependencies",this.optionsCache);for(const[o,e]of this.optionsCache)await this.validate(o)},this.form=o,this.options=e,this.currentOptions=e}connect(o){this.form.querySelectorAll(this.selector).forEach((o=>{o instanceof HTMLElement&&this.getOptions(o)})),this.optionsCache.forEach(((o,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(o){const e=this.getOptions(o);if(null==e)return Promise.resolve(!0);let t;t="or"===e.condition?e.evaluators.some((o=>!0===o())):e.evaluators.every((o=>!0===o())),(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)&&(o.disabled=!t),o.classList.toggle(e.disabledClass,!t);const r=W(o,"input,select,textarea");return t?e.disableChildren&&r.forEach((o=>o.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((o=>o.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((o=>Q(o))):e.emptyOnDisable&&r.forEach((o=>J(o)))),Promise.resolve(t)}getOptions(o){let e=this.optionsCache.get(o);if(!e){try{e=Object.assign({},this.options,K(o,"data-depend-"))}catch(o){console.error("Error parsing data-depend-options attribute:",o)}if(!e)return null;e.evaluators=e.depends.split(",").map((o=>{o=o.trim();let e=X.find((e=>o.includes(e)))??"!=",t=null,r="";if(e){const n=o.split(e);t=n[0],r=n[1]??""}else o.startsWith("!")?(e="=",t=o.substring(1)):t=o;const n=this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>F.get(e)(n,r):n instanceof HTMLSelectElement?()=>F.get(e)(n,r):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((o=>void 0!==o)),this.optionsCache.set(o,e)}return e}getElement(o){return this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`)}};function K(o,e,t="options"){const r={},n=`${e}${t}`,i=o.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=t&&a===n)try{const e=JSON.parse(o.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${o.name} attribute ${n} (${o.getAttribute(a)}):`,o,e)}else r[i]=o.getAttribute(a)}return r}function W(o,e){const t=Array.from(o.querySelectorAll(e));return o.matches(e)&&t.unshift(o),t}function Q(o){if(o instanceof HTMLInputElement)"checkbox"===o.type||"radio"===o.type?o.checked=o.defaultChecked:o.value=o.defaultValue;else if(o instanceof HTMLSelectElement){var e=o.querySelectorAll("option[selected]");0==e.length?o.selectedIndex=0:e.forEach((o=>{o instanceof HTMLOptionElement&&(o.selected=!0)}))}}function J(o){o instanceof HTMLInputElement?"checkbox"===o.type||"radio"===o.type?o.checked=!1:o.value="":o instanceof HTMLSelectElement&&(o.options.selectedIndex=0)}var Z,oo,eo,to;Y=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([$(),(Z=1,eo=V,to=eo,oo=function(o,e,t){var r=Reflect.getOwnMetadata(R,o)||{};r[t]=to,Reflect.defineMetadata(R,r,o)},function(o,e){oo(o,e,Z)}),function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)}("design:paramtypes",[HTMLFormElement,U])],Y),A.container.register(V,{useValue:new U}),A.container.register(C,{useClass:Y});const ro=globalThis,no=ro.ShadowRoot&&(void 0===ro.ShadyCSS||ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,io=Symbol(),ao=new WeakMap;class bo{constructor(o,e,t){if(this._$cssResult$=!0,t!==io)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(no&&void 0===o){const t=void 0!==e&&1===e.length;t&&(o=ao.get(e)),void 0===o&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&ao.set(e,o))}return o}toString(){return this.cssText}}const lo=(o,...e)=>{const t=1===o.length?o[0]:e.reduce(((e,t,r)=>e+(o=>{if(!0===o._$cssResult$)return o.cssText;if("number"==typeof o)return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+o[r+1]),o[0]);return new bo(t,o,io)},so=(o,e)=>{if(no)o.adoptedStyleSheets=e.map((o=>o instanceof CSSStyleSheet?o:o.styleSheet));else for(const t of e){const e=document.createElement("style"),r=ro.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,o.appendChild(e)}},co=no?o=>o:o=>o instanceof CSSStyleSheet?(o=>{let e="";for(const t of o.cssRules)e+=t.cssText;return(o=>new bo("string"==typeof o?o:o+"",void 0,io))(e)})(o):o,{is:fo,defineProperty:mo,getOwnPropertyDescriptor:po,getOwnPropertyNames:go,getOwnPropertySymbols:uo,getPrototypeOf:vo}=Object,ho=globalThis,xo=ho.trustedTypes,wo=xo?xo.emptyScript:"",qo=ho.reactiveElementPolyfillSupport,yo=(o,e)=>o,ko={toAttribute(o,e){switch(e){case Boolean:o=o?wo:null;break;case Object:case Array:o=null==o?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=null!==o;break;case Number:t=null===o?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(o){t=null}}return t}},zo=(o,e)=>!fo(o,e),jo={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:zo};Symbol.metadata??=Symbol("metadata"),ho.litPropertyMetadata??=new WeakMap;class So extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=jo){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(o,t,e);void 0!==r&&mo(this.prototype,o,r)}}static getPropertyDescriptor(o,e,t){const{get:r,set:n}=po(this.prototype,o)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(o,i,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??jo}static _$Ei(){if(this.hasOwnProperty(yo("elementProperties")))return;const o=vo(this);o.finalize(),void 0!==o.l&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(yo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yo("properties"))){const o=this.properties,e=[...go(o),...uo(o)];for(const t of e)this.createProperty(t,o[t])}const o=this[Symbol.metadata];if(null!==o){const e=litPropertyMetadata.get(o);if(void 0!==e)for(const[o,t]of e)this.elementProperties.set(o,t)}this._$Eh=new Map;for(const[o,e]of this.elementProperties){const t=this._$Eu(o,e);void 0!==t&&this._$Eh.set(t,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){const e=[];if(Array.isArray(o)){const t=new Set(o.flat(1/0).reverse());for(const o of t)e.unshift(co(o))}else void 0!==o&&e.push(co(o));return e}static _$Eu(o,e){const t=e.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof o?o.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((o=>this.enableUpdating=o)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o=>o(this)))}addController(o){(this._$EO??=new Set).add(o),void 0!==this.renderRoot&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){const o=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(o.set(t,this[t]),delete this[t]);o.size>0&&(this._$Ep=o)}createRenderRoot(){const o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return so(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o=>o.hostConnected?.()))}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o=>o.hostDisconnected?.()))}attributeChangedCallback(o,e,t){this._$AK(o,t)}_$EC(o,e){const t=this.constructor.elementProperties.get(o),r=this.constructor._$Eu(o,t);if(void 0!==r&&!0===t.reflect){const n=(void 0!==t.converter?.toAttribute?t.converter:ko).toAttribute(e,t.type);this._$Em=o,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(o,e){const t=this.constructor,r=t._$Eh.get(o);if(void 0!==r&&this._$Em!==r){const o=t.getPropertyOptions(r),n="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==o.converter?.fromAttribute?o.converter:ko;this._$Em=r,this[r]=n.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(o,e,t){if(void 0!==o){if(t??=this.constructor.getPropertyOptions(o),!(t.hasChanged??zo)(this[o],e))return;this.P(o,e,t)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(o,e,t){this._$AL.has(o)||this._$AL.set(o,e),!0===t.reflect&&this._$Em!==o&&(this._$Ej??=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const o=this.scheduleUpdate();return null!=o&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,e]of this._$Ep)this[o]=e;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[e,t]of o)!0!==t.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],t)}let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw o=!1,this._$EU(),e}o&&this._$AE(e)}willUpdate(o){}_$AE(o){this._$EO?.forEach((o=>o.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&=this._$Ej.forEach((o=>this._$EC(o,this[o]))),this._$EU()}updated(o){}firstUpdated(o){}}So.elementStyles=[],So.shadowRootOptions={mode:"open"},So[yo("elementProperties")]=new Map,So[yo("finalized")]=new Map,qo?.({ReactiveElement:So}),(ho.reactiveElementVersions??=[]).push("2.0.4");const Ro=globalThis,$o=Ro.trustedTypes,Oo=$o?$o.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ao="$lit$",Eo=`lit$${Math.random().toFixed(9).slice(2)}$`,Co="?"+Eo,_o=`<${Co}>`,Po=document,Mo=()=>Po.createComment(""),Bo=o=>null===o||"object"!=typeof o&&"function"!=typeof o,Lo=Array.isArray,To=o=>Lo(o)||"function"==typeof o?.[Symbol.iterator],Io="[ \t\n\f\r]",Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ho=/-->/g,No=/>/g,Go=RegExp(`>|${Io}(?:([^\\s"'>=/]+)(${Io}*=${Io}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Uo=/'/g,Vo=/"/g,Fo=/^(?:script|style|textarea|title)$/i,Xo=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Yo=Xo(1),Ko=(Xo(2),Xo(3),Symbol.for("lit-noChange")),Wo=Symbol.for("lit-nothing"),Qo=new WeakMap,Jo=Po.createTreeWalker(Po,129);function Zo(o,e){if(!Lo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Oo?Oo.createHTML(e):e}const oe=(o,e)=>{const t=o.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Do;for(let e=0;e<t;e++){const t=o[e];let b,l,d=-1,s=0;for(;s<t.length&&(a.lastIndex=s,l=a.exec(t),null!==l);)s=a.lastIndex,a===Do?"!--"===l[1]?a=Ho:void 0!==l[1]?a=No:void 0!==l[2]?(Fo.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Go):void 0!==l[3]&&(a=Go):a===Go?">"===l[0]?(a=n??Do,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Go:'"'===l[3]?Vo:Uo):a===Vo||a===Uo?a=Go:a===Ho||a===No?a=Do:(a=Go,n=void 0);const c=a===Go&&o[e+1].startsWith("/>")?" ":"";i+=a===Do?t+_o:d>=0?(r.push(b),t.slice(0,d)+Ao+t.slice(d)+Eo+c):t+Eo+(-2===d?e:c)}return[Zo(o,i+(o[t]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:o,_$litType$:e},t){let r;this.parts=[];let n=0,i=0;const a=o.length-1,b=this.parts,[l,d]=oe(o,e);if(this.el=ee.createElement(l,t),Jo.currentNode=this.el.content,2===e||3===e){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;null!==(r=Jo.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const o of r.getAttributeNames())if(o.endsWith(Ao)){const e=d[i++],t=r.getAttribute(o).split(Eo),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:t,ctor:"."===a[1]?ae:"?"===a[1]?be:"@"===a[1]?le:ie}),r.removeAttribute(o)}else o.startsWith(Eo)&&(b.push({type:6,index:n}),r.removeAttribute(o));if(Fo.test(r.tagName)){const o=r.textContent.split(Eo),e=o.length-1;if(e>0){r.textContent=$o?$o.emptyScript:"";for(let t=0;t<e;t++)r.append(o[t],Mo()),Jo.nextNode(),b.push({type:2,index:++n});r.append(o[e],Mo())}}}else if(8===r.nodeType)if(r.data===Co)b.push({type:2,index:n});else{let o=-1;for(;-1!==(o=r.data.indexOf(Eo,o+1));)b.push({type:7,index:n}),o+=Eo.length-1}n++}}static createElement(o,e){const t=Po.createElement("template");return t.innerHTML=o,t}}function te(o,e,t=o,r){if(e===Ko)return e;let n=void 0!==r?t._$Co?.[r]:t._$Cl;const i=Bo(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(o),n._$AT(o,t,r)),void 0!==r?(t._$Co??=[])[r]=n:t._$Cl=n),void 0!==n&&(e=te(o,n._$AS(o,e.values),n,r)),e}class re{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:e},parts:t}=this._$AD,r=(o?.creationScope??Po).importNode(e,!0);Jo.currentNode=r;let n=Jo.nextNode(),i=0,a=0,b=t[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new ne(n,n.nextSibling,this,o):1===b.type?e=new b.ctor(n,b.name,b.strings,this,o):6===b.type&&(e=new de(n,this,o)),this._$AV.push(e),b=t[++a]}i!==b?.index&&(n=Jo.nextNode(),i++)}return Jo.currentNode=Po,r}p(o){let e=0;for(const t of this._$AV)void 0!==t&&(void 0!==t.strings?(t._$AI(o,t,e),e+=t.strings.length-2):t._$AI(o[e])),e++}}class ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,e,t,r){this.type=2,this._$AH=Wo,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=t,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===o?.nodeType&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=te(this,o,e),Bo(o)?o===Wo||null==o||""===o?(this._$AH!==Wo&&this._$AR(),this._$AH=Wo):o!==this._$AH&&o!==Ko&&this._(o):void 0!==o._$litType$?this.$(o):void 0!==o.nodeType?this.T(o):To(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==Wo&&Bo(this._$AH)?this._$AA.nextSibling.data=o:this.T(Po.createTextNode(o)),this._$AH=o}$(o){const{values:e,_$litType$:t}=o,r="number"==typeof t?this._$AC(o):(void 0===t.el&&(t.el=ee.createElement(Zo(t.h,t.h[0]),this.options)),t);if(this._$AH?._$AD===r)this._$AH.p(e);else{const o=new re(r,this),t=o.u(this.options);o.p(e),this.T(t),this._$AH=o}}_$AC(o){let e=Qo.get(o.strings);return void 0===e&&Qo.set(o.strings,e=new ee(o)),e}k(o){Lo(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let t,r=0;for(const n of o)r===e.length?e.push(t=new ne(this.O(Mo()),this.O(Mo()),this,this.options)):t=e[r],t._$AI(n),r++;r<e.length&&(this._$AR(t&&t._$AB.nextSibling,r),e.length=r)}_$AR(o=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);o&&o!==this._$AB;){const e=o.nextSibling;o.remove(),o=e}}setConnected(o){void 0===this._$AM&&(this._$Cv=o,this._$AP?.(o))}}class ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,t,r,n){this.type=1,this._$AH=Wo,this._$AN=void 0,this.element=o,this.name=e,this._$AM=r,this.options=n,t.length>2||""!==t[0]||""!==t[1]?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=Wo}_$AI(o,e=this,t,r){const n=this.strings;let i=!1;if(void 0===n)o=te(this,o,e,0),i=!Bo(o)||o!==this._$AH&&o!==Ko,i&&(this._$AH=o);else{const r=o;let a,b;for(o=n[0],a=0;a<n.length-1;a++)b=te(this,r[t+a],e,a),b===Ko&&(b=this._$AH[a]),i||=!Bo(b)||b!==this._$AH[a],b===Wo?o=Wo:o!==Wo&&(o+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(o)}j(o){o===Wo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class ae extends ie{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Wo?void 0:o}}class be extends ie{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Wo)}}class le extends ie{constructor(o,e,t,r,n){super(o,e,t,r,n),this.type=5}_$AI(o,e=this){if((o=te(this,o,e,0)??Wo)===Ko)return;const t=this._$AH,r=o===Wo&&t!==Wo||o.capture!==t.capture||o.once!==t.once||o.passive!==t.passive,n=o!==Wo&&(t===Wo||r);r&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class de{constructor(o,e,t){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(o){te(this,o)}}const se={M:Ao,P:Eo,A:Co,C:1,L:oe,R:re,D:To,V:te,I:ne,H:ie,N:be,U:le,B:ae,F:de},ce=Ro.litHtmlPolyfillSupport;ce?.(ee,ne),(Ro.litHtmlVersions??=[]).push("3.2.1");class fe extends So{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=((o,e,t)=>{const r=t?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const o=t?.renderBefore??null;r._$litPart$=n=new ne(e.insertBefore(Mo(),o),o,void 0,t??{})}return n._$AI(o),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}fe._$litElement$=!0,fe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:fe});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:fe}),(globalThis.litElementVersions??=[]).push("4.1.1");const pe=o=>(e,t)=>{void 0!==t?t.addInitializer((()=>{customElements.define(o,e)})):customElements.define(o,e)},ge={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:zo},ue=(o=ge,e,t)=>{const{kind:r,metadata:n}=t;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(t.name,o),"accessor"===r){const{name:r}=t;return{set(t){const n=e.get.call(this);e.set.call(this,t),this.requestUpdate(r,n,o)},init(e){return void 0!==e&&this.P(r,void 0,o),e}}}if("setter"===r){const{name:r}=t;return function(t){const n=this[r];e.call(this,t),this.requestUpdate(r,n,o)}}throw Error("Unsupported decorator location: "+r)};function ve(o){return(e,t)=>"object"==typeof t?ue(o,e,t):((o,e,t)=>{const r=e.hasOwnProperty(t);return e.constructor.createProperty(t,r?{...o,wrapped:!0}:o),r?Object.getOwnPropertyDescriptor(e,t):void 0})(o,e,t)}function he(o){return ve({...o,state:!0,attribute:!1})}var xe=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},we=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let qe=class extends fe{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}connectedCallback(){super.connectedCallback();const o={};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 t=e.getAttribute("name"),r=e.textContent;t&&r&&(o[t]=r)})),o.ContentType&&(o["Content-Type"]=o.ContentType,delete o.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),L(this.name,this.apiEndpoint,o,this.method)}render(){return Yo``}};xe([ve({type:String}),we("design:type",Object)],qe.prototype,"name",void 0),xe([ve({type:String}),we("design:type",Object)],qe.prototype,"apiEndpoint",void 0),xe([ve(),we("design:type",Object)],qe.prototype,"method",void 0),qe=xe([pe("qbo-api")],qe);var ye=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ke=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let ze=class extends fe{constructor(){super(...arguments),this.display="normal",this.trigger="header",this.renderInHost=!0,this.hasExpandedContent=!1,this.minimize=o=>{this.display="minimize"},this.normal=o=>{this.display="normal"},this.maximize=o=>{this.display="maximize"}}static{this.styles=[lo``]}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),document.addEventListener("qbo-card-minimize",this.minimize),document.addEventListener("qbo-card-normal",this.normal),document.addEventListener("qbo-card-maximize",this.maximize),this.hasExpandedContent=null!=this.querySelector(".expanded"),"normal"!==this.display||this.hasExpandedContent||(this.display="maximize")}disconnectedCallback(){this.removeEventListener("click",this.handleClick),document.removeEventListener("qbo-card-minimize",this.minimize),document.removeEventListener("qbo-card-normal",this.normal),document.removeEventListener("qbo-card-maximize",this.maximize),super.disconnectedCallback()}attributeChangedCallback(o,e,t){super.attributeChangedCallback(o,e,t),"display"===o&&(this.classList.remove("normal","minimize","maximize"),t&&this.classList.add(t))}handleClick(o){o.composedPath()[0]===this.querySelector(this.trigger)&&(o.ctrlKey?this.shrink():this.grow())}shrink(){switch(this.display){case"minimize":return void(this.display="maximize");case"maximize":return void(this.display=this.hasExpandedContent?"normal":"minimize");default:return void(this.display="minimize")}}grow(){switch(this.display){case"minimize":return void(this.display=this.hasExpandedContent?"normal":"maximize");case"maximize":return void(this.display="minimize");default:return void(this.display="maximize")}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return Yo`<slot></slot>`}};ye([ve({reflect:!0}),ke("design:type",String)],ze.prototype,"display",void 0),ye([ve(),ke("design:type",String)],ze.prototype,"trigger",void 0),ye([ve(),ke("design:type",Boolean)],ze.prototype,"renderInHost",void 0),ye([ve(),ke("design:type",Object)],ze.prototype,"columns",void 0),ze=ye([pe("qbo-card")],ze);const je=lo`:root{--qbo-font:Arial,sans-serif;--qbo-color:#333;--qbo-border-color:#999;--qbo-border-radius:4px;--qbo-background-color:#ffffff;--qbo-padding-horizontal:0.75rem;--qbo-padding-vertical:0.375rem;--qbo-padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);--qbo-margin:0.5rem;--qbo-margin-horizontal:0.5rem;--qbo-margin-vertical:0.5rem;--qbo-focus-border-color:#80bdff;--qbo-focus-box-shadow:rgba(0, 123, 255, 0.25);--qbo-line-height:var(--qbo-line-height);--qbo-button-bg:#007bff;--qbo-button-border:#007bff;--qbo-button-bg-hover:#0056b3;--qbo-button-border-hover:#004085;--qbo-button-color:#ffffff;--qbo-button-padding:var(--qbo-padding);--qbo-button-border-radius:var(--qbo-border-radius);--qbo-nav-color:#333;--qbo-nav-background-color:#999;--qbo-nav-background-hover:#81181d;--qbo-nav-background-hover-color:#999;--qbo-primary-bg:#007bff;--qbo-primary-color:#ffffff;--qbo-primary-border:#007bff;--qbo-primary-hover-bg:#0056b3;--qbo-primary-hover-border:#004085;--qbo-secondary-bg:#6c757d;--qbo-secondary-color:#ffffff;--qbo-secondary-border:#6c757d;--qbo-secondary-hover-bg:#5a6268;--qbo-secondary-hover-border:#545b62;--qbo-success-bg:#28a745;--qbo-success-color:#ffffff;--qbo-success-border:#28a745;--qbo-success-hover-bg:#218838;--qbo-success-hover-border:#1e7e34;--qbo-danger-bg:#dc3545;--qbo-danger-color:#ffffff;--qbo-danger-border:#dc3545;--qbo-danger-hover-bg:#c82333;--qbo-danger-hover-border:#bd2130;--qbo-info-bg:#17a2b8;--qbo-info-color:#ffffff;--qbo-info-border:#17a2b8;--qbo-info-hover-bg:#138496;--qbo-info-hover-border:#117a8b;--qbo-light-bg:#f8f9fa;--qbo-light-color:#212529;--qbo-light-border:#f8f9fa;--qbo-light-hover-bg:#e2e6ea;--qbo-light-hover-border:#dae0e5;--qbo-dark-bg:#343a40;--qbo-dark-color:#ffffff;--qbo-dark-border:#343a40;--qbo-dark-hover-bg:#23272b;--qbo-dark-hover-border:#1d2124}.qbo-theme-dark{--qbo-color:#e0e0e0;--qbo-border-color:grey;--qbo-background-color:#121212;--qbo-nav-color:#000;--qbo-nav-background-color:#fff;--qbo-svg-filter:brightness(0) invert(1)}.qbo-theme-light{font-family:var(--qbo-font);color:var(--qbo-color);margin:0;background-color:var(--qbo-background-color)}.qbo-row{display:flex;flex-wrap:wrap;gap:var(--qbo-margin)}.qbo-card,.qbo-col{flex:1 0 0;max-width:100%;box-sizing:border-box}.qbo-col-1{flex:0 0 calc(8.33% - var(--qbo-margin)/ 2);max-width:calc(8.33% - var(--qbo-margin)/ 2)}.qbo-col-2{flex:0 0 calc(16.66% - var(--qbo-margin)/ 2);max-width:calc(16.66% - var(--qbo-margin)/ 2)}.qbo-col-3{flex:0 0 calc(25% - var(--qbo-margin)/ 2);max-width:calc(25% - var(--qbo-margin)/ 2)}.qbo-col-4{flex:0 0 calc(33.33% - var(--qbo-margin)/ 2);max-width:calc(33.33% - var(--qbo-margin)/ 2)}.qbo-col-5{flex:0 0 calc(41.66% - var(--qbo-margin)/ 2);max-width:calc(41.66% - var(--qbo-margin)/ 2)}.qbo-col-6{flex:0 0 calc(50% - var(--qbo-margin)/ 2);max-width:calc(50% - var(--qbo-margin)/ 2)}.qbo-col-7{flex:0 0 calc(58.33% - var(--qbo-margin)/ 2);max-width:calc(58.33% - var(--qbo-margin)/ 2)}.qbo-col-8{flex:0 0 calc(66.66% - var(--qbo-margin)/ 2);max-width:calc(66.66% - var(--qbo-margin)/ 2)}.qbo-col-9{flex:0 0 calc(75% - var(--qbo-margin)/ 2);max-width:calc(75% - var(--qbo-margin)/ 2)}.qbo-col-10{flex:0 0 calc(83.33% - var(--qbo-margin)/ 2);max-width:calc(83.33% - var(--qbo-margin)/ 2)}.qbo-col-11{flex:0 0 calc(91.66% - var(--qbo-margin)/ 2);max-width:calc(91.66% - var(--qbo-margin)/ 2)}.qbo-col-12{flex:0 0 calc(100% - var(--qbo-margin)/ 2);max-width:calc(100% - var(--qbo-margin)/ 2)}.qbo-card{border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-shadow:2px 2px 3px var(--qbo-border-color);padding:.5em;overflow:auto}.qbo-card-left{margin-left:.5em}.qbo-card-right{margin-right:.5em}svg{height:1rem;width:1rem}.qbo-form{margin:0 auto;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal)}.qbo-form label{display:flex;flex-direction:column;font-size:.9rem;font-weight:100;color:var(--qbo-color);font-family:var(--qbo-font);margin-top:calc(var(--qbo-margin) * 1.5);margin-bottom:calc(var(--qbo-margin) * .25)}.qbo-form small{display:block;font-size:.8rem;color:color-mix(in srgb,var(--qbo-color) 60%,transparent)}.qbo-form input,.qbo-form select,.qbo-form textarea{width:100%;box-sizing:border-box;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:1;color:var(--qbo-color);background-color:var(--qbo-background-color);background-clip:padding-box;border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-family:var(--qbo-font);margin-top:.1rem;margin-right:1rem}.qbo-form input[type=color]{width:3rem;height:calc(1.5em + .75rem + 0px);padding:.375rem;background-color:transparent;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none}.qbo-form input:focus,.qbo-form select:focus,.qbo-form textarea:focus{color:var(--qbo-color);border-color:var(--qbo-focus-border-color);outline:0;box-shadow:0 0 0 .2rem var(--qbo-focus-box-shadow)}.qbo-form input[disabled],.qbo-form select[disabled],.qbo-form textarea[disabled]{color:color-mix(in oklab,var(--qbo-color) 50%,var(--qbo-background-color));cursor:not-allowed;opacity:1}.qbo-form div{display:flex;align-items:center}.qbo-form div span{display:inline-flex;font-weight:100;align-items:center;padding:.375rem .75rem;font-size:1rem;text-align:center;white-space:nowrap;border-right:none;border-radius:.25rem 0 0 .25rem}.qbo-form div input,.qbo-form div select,.qbo-form div textarea{flex:1 1 auto;padding:.375rem .75rem;font-size:1rem;background-clip:padding-box;margin:0}.qbo-form .form-check{display:flex;align-items:center;margin-bottom:1rem}.qbo-form .form-check input[type=checkbox],.qbo-form .form-check input[type=radio]{width:auto;margin-right:.5rem}.qbo-form .form-check label{margin-bottom:0;font-weight:400;color:var(--qbo-color)}.qbo-button,button{display:inline-block;font-weight:400;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:var(--qbo-line-height);text-align:center;vertical-align:middle;cursor:pointer;margin-right:var(--qbo-margin);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.qbo-button:focus,.qbo-button:hover,button:focus,button:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);border-radius:var(--qbo-border-radius);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}.qbo-button:disabled,button:disabled{opacity:.65;cursor:not-allowed;background-color:var(--qbo-button-bg);border-color:var(--qbo-button-border);color:var(--qbo-button-color)}.primary{background-color:var(--qbo-primary-bg);border:1px solid var(--qbo-primary-border);color:var(--qbo-primary-color)}.primary:focus,.primary:hover{background-color:var(--qbo-primary-hover-bg);border:1px solid var(--qbo-primary-hover-border)}.secondary{background-color:var(--qbo-secondary-bg);border:1px solid var(--qbo-secondary-border);color:var(--qbo-secondary-color)}.secondary:focus,.secondary:hover{background-color:var(--qbo-secondary-hover-bg);border:1px solid var(--qbo-secondary-hover-border)}.icon{height:1rem;width:1rem;filter:var(--qbo-svg-filter)}.icon use{display:block}.icon.right{position:relative;padding-left:1.25rem;background-image:url("https://devqmp.quandis.io/core/ui/images/qbo-icons.svg#i-arrow-down-circle");background-repeat:no-repeat;background-position:left center}nav{--qbo-background-color:var(--qbo-nav-background-color, black);--qbo-color:var(--qbo-nav-color, white);--qbo-svg-filter:brightness(0) invert(1);display:flex;flex-direction:row;color:var(--qbo-nav-color,#fff);background-color:var(--qbo-nav-background-color,#000)}nav menu{list-style-type:none;padding-inline-start:20px;margin-block-start:0.5em;margin-block-end:0.5em}nav menu li{border:1px solid var(--qbo-nav-background-color,#000);cursor:pointer;display:inline-block;line-height:var(--qbo-line-height);padding:5px}nav menu li svg{filter:invert(0)!important}nav menu li:focus,nav menu li:hover{background-color:var(--qbo-nav-background-hover,grey);border:1px solid var(--qbo-nav-background-hover);border-radius:.5em;color:#fff;text-decoration:none}nav menu li:focus span>svg,nav menu li:focus>svg,nav menu li:hover span>svg,nav menu li:hover>svg{filter:var(--qbo-svg-filter)!important}nav>img{padding-inline-start:8px}nav>span{font-weight:700;margin-top:17px;padding-inline-start:10px}nav a{color:var(--qbo-color)}nav svg.label{vertical-align:text-top}nav svg.toggle{vertical-align:text-bottom}menu.qbo-toolbar{list-style-type:none;padding-left:0;display:flex;flex-direction:row;margin-right:var(--qbo-margin)}menu.qbo-toolbar>li{display:inline-block;margin-right:0;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);cursor:pointer;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;text-decoration:none}menu.qbo-toolbar>li:first-child{border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:last-child{border-top-right-radius:var(--qbo-border-radius);border-bottom-right-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:focus,menu.qbo-toolbar>li:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}menu.qbo-toolbar.vertical{flex-direction:column;align-items:flex-start}menu.qbo-toolbar.vertical li:first-child{border-top-right-radius:var(--qbo-border-radius);border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:0}menu.qbo-toolbar.vertical li:last-child{border-bottom-right-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius);border-top-right-radius:0}qbo-menu aside,qbo-menu menu{background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-sizing:border-box;height:auto;list-style-type:none;margin:0;padding-left:0;position:absolute;visibility:hidden}qbo-menu aside.open,qbo-menu menu.open{visibility:visible}qbo-menu aside{width:0;margin:var(--qbo-margin);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);padding-bottom:.6em;overflow-y:scroll;top:53px!important;width:100%;background-color:#f0f0f0;border:0;border-radius:0;border-bottom-left-radius:.7em;border-bottom-right-radius:.7em;color:var(--qbo-nav-color,#fff);height:auto;left:0;margin:0;overflow-y:auto}qbo-menu aside>h1{color:var(--qbo-color);margin-block-end:0;margin-left:1em}qbo-menu aside>p{color:var(--qbo-color);margin-block-start:0;margin-left:1.2em}qbo-menu li{display:list-item!important;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);text-align:left;white-space:nowrap;cursor:pointer;text-decoration:none}qbo-menu li:hover{background-color:var(--qbo-border-color)}qbo-menu menu li.disabled{color:#6c757d;pointer-events:none;background-color:transparent}qbo-menu menu .dropdown-divider{height:1px;margin:.5rem 0;overflow:hidden;background-color:#e9ecef}qbo-menu menu .dropdown-header{padding:.5rem 1rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}qbo-popover{background-color:#f0f0f0;border:1px solid #81181d;border-radius:var(--qbo-border-radius);color:var(--qbo-color);margin:.6em 0 0 0;padding:0 1em 0 1em;position:absolute;visibility:hidden}qbo-popover h3{margin-block-end:0.5em;margin-block-start:0.5em}qbo-popover p{margin-block-start:0}qbo-popover.open{visibility:visible}details>a{margin-left:1.5em}div.qbo-row-subsequent{margin-top:.5em}h3.title{margin-block-end:0;margin-block-start:0.5em;margin-left:.5em}p.detail{margin-block-end:0.5em;margin-block-start:0;margin-left:.5em}div.qbo-col-noborder{border:0!important;box-shadow:initial}`,Se=lo`
2
+ var o={630:(o,e,t)=>{var r;!function(o){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof t.g?t.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(o){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(o){}}(),r=n(o);function n(o,e){return function(t,r){Object.defineProperty(o,t,{configurable:!0,writable:!0,value:r}),e&&e(t,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(o,e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,b={__proto__:[]}instanceof Array,l=!a&&!b,s={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(o,e){return t.call(o,e)}:function(o,e){return e in o},get:l?function(o,e){return t.call(o,e)?o[e]:void 0}:function(o,e){return o[e]}},d=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var o={},e=[],t=function(){function o(o,e,t){this._index=0,this._keys=o,this._values=e,this._selector=t}return o.prototype["@@iterator"]=function(){return this},o.prototype[i]=function(){return this},o.prototype.next=function(){var o=this._index;if(o>=0&&o<this._keys.length){var t=this._selector(this._keys[o],this._values[o]);return o+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},o.prototype.throw=function(o){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),o},o.prototype.return=function(o){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:o,done:!0}},o}(),r=function(){function e(){this._keys=[],this._values=[],this._cacheKey=o,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(o){return this._find(o,!1)>=0},e.prototype.get=function(o){var e=this._find(o,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(o,e){var t=this._find(o,!0);return this._values[t]=e,this},e.prototype.delete=function(e){var t=this._find(e,!1);if(t>=0){for(var r=this._keys.length,n=t+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,P(e,this._cacheKey)&&(this._cacheKey=o,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=o,this._cacheIndex=-2},e.prototype.keys=function(){return new t(this._keys,this._values,n)},e.prototype.values=function(){return new t(this._keys,this._values,a)},e.prototype.entries=function(){return new t(this._keys,this._values,b)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(o,e){if(!P(this._cacheKey,o)){this._cacheIndex=-1;for(var t=0;t<this._keys.length;t++)if(P(this._keys[t],o)){this._cacheIndex=t;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(o),this._values.push(void 0)),this._cacheIndex},e}();return r;function n(o,e){return o}function a(o,e){return e}function b(o,e){return[o,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function o(){this._map=new c}return Object.defineProperty(o.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),o.prototype.has=function(o){return this._map.has(o)},o.prototype.add=function(o){return this._map.set(o,o),this},o.prototype.delete=function(o){return this._map.delete(o)},o.prototype.clear=function(){this._map.clear()},o.prototype.keys=function(){return this._map.keys()},o.prototype.values=function(){return this._map.keys()},o.prototype.entries=function(){return this._map.entries()},o.prototype["@@iterator"]=function(){return this.keys()},o.prototype[i]=function(){return this.keys()},o}(),m="function"==typeof WeakMap?WeakMap:function(){var o=s.create(),e=r();return function(){function o(){this._key=r()}return o.prototype.has=function(o){var e=n(o,!1);return void 0!==e&&s.has(e,this._key)},o.prototype.get=function(o){var e=n(o,!1);return void 0!==e?s.get(e,this._key):void 0},o.prototype.set=function(o,e){return n(o,!0)[this._key]=e,this},o.prototype.delete=function(o){var e=n(o,!1);return void 0!==e&&delete e[this._key]},o.prototype.clear=function(){this._key=r()},o}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(o,e));return o[e]=!0,e}function n(o,r){if(!t.call(o,e)){if(!r)return;Object.defineProperty(o,e,{value:s.create()})}return o[e]}function i(o,e){for(var t=0;t<e;++t)o[t]=255*Math.random()|0;return o}function a(){var o=function(o){if("function"==typeof Uint8Array){var e=new Uint8Array(o);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,o),e}return i(new Array(o),o)}(16);o[6]=79&o[6]|64,o[8]=191&o[8]|128;for(var e="",t=0;t<16;++t){var r=o[t];4!==t&&6!==t&&8!==t||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),p=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var o;return!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&(o=e.Reflect[p]),j(o)&&(o=function(){var o,t,r,n;j(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(o=function(o){var e=o.defineMetadata,t=o.hasOwnMetadata,r=o.getOwnMetadata,n=o.getOwnMetadataKeys,i=o.deleteMetadata,a=new m,b={isProviderFor:function(o,e){var t=a.get(o);return!(j(t)||!t.has(e))||!!n(o,e).length&&(j(t)&&(t=new f,a.set(o,t)),t.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:t,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i};return b}(e.Reflect));var i=new m,a={registerProvider:b,getProvider:s,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case o===e:break;case j(t):t=e;break;case t===e:break;case j(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!j(t)){if(t.isProviderFor(e,i))return t;if(!j(r)){if(r.isProviderFor(e,i))return t;if(!j(n))for(var a=B(n);;){var b=T(a);if(!b)return;var l=L(b);if(l.isProviderFor(e,i))return I(a),l}}}if(!j(o)&&o.isProviderFor(e,i))return o}function s(o,e){var t,r=i.get(o);return j(r)||(t=r.get(e)),j(t)?(j(t=l(o,e))||(j(r)&&(r=new c,i.set(o,r)),r.set(e,t)),t):t}function d(o){if(j(o))throw new TypeError;return t===o||r===o||!j(n)&&n.has(o)}function g(o,e,t){if(!d(t))throw new Error("Metadata provider not registered.");var r=s(o,e);if(r!==t){if(!j(r))return!1;var n=i.get(o);j(n)&&(n=new c,i.set(o,n)),n.set(e,t)}return!0}}()),!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:o}),o}(),u=function(o){var e=new m,t={isProviderFor:function(o,t){var r=e.get(o);return!j(r)&&r.has(t)},OrdinaryDefineOwnMetadata:function(o,e,t,n){r(t,n,!0).set(o,e)},OrdinaryHasOwnMetadata:function(o,e,t){var n=r(e,t,!1);return!j(n)&&O(n.has(o))},OrdinaryGetOwnMetadata:function(o,e,t){var n=r(e,t,!1);if(!j(n))return n.get(o)},OrdinaryOwnMetadataKeys:function(o,e){var t=[],n=r(o,e,!1);if(j(n))return t;for(var i=B(n.keys()),a=0;;){var b=T(i);if(!b)return t.length=a,t;var l=L(b);try{t[a]=l}catch(o){try{I(i)}finally{throw o}}a++}},OrdinaryDeleteMetadata:function(o,t,n){var i=r(t,n,!1);if(j(i))return!1;if(!i.delete(o))return!1;if(0===i.size){var a=e.get(t);j(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(t),t;function r(r,n,i){var a=e.get(r),b=!1;if(j(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(j(l)){if(!i)return;if(l=new c,a.set(n,l),!o.setProvider(r,n,t))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(o,e,t){if(h(o,e,t))return!0;var r=D(e);return!S(r)&&v(o,r,t)}function h(o,e,t){var r=H(e,t,!1);return!j(r)&&O(r.OrdinaryHasOwnMetadata(o,e,t))}function x(o,e,t){if(h(o,e,t))return w(o,e,t);var r=D(e);return S(r)?void 0:x(o,r,t)}function w(o,e,t){var r=H(e,t,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(o,e,t)}function q(o,e,t,r){H(t,r,!0).OrdinaryDefineOwnMetadata(o,e,t,r)}function y(o,e){var t=k(o,e),r=D(o);if(null===r)return t;var n=y(r,e);if(n.length<=0)return t;if(t.length<=0)return n;for(var i=new f,a=[],b=0,l=t;b<l.length;b++){var s=l[b];i.has(s)||(i.add(s),a.push(s))}for(var d=0,c=n;d<c.length;d++)s=c[d],i.has(s)||(i.add(s),a.push(s));return a}function k(o,e){var t=H(o,e,!1);return t?t.OrdinaryOwnMetadataKeys(o,e):[]}function z(o){if(null===o)return 1;switch(typeof o){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===o?1:6;default:return 6}}function j(o){return void 0===o}function S(o){return null===o}function R(o){return"object"==typeof o?null!==o:"function"==typeof o}function $(o,e){switch(z(o)){case 0:case 1:case 2:case 3:case 4:case 5:return o}var t=3===e?"string":5===e?"number":"default",r=M(o,n);if(void 0!==r){var i=r.call(o,t);if(R(i))throw new TypeError;return i}return function(o,e){if("string"===e){var t=o.toString;if(C(t)&&!R(n=t.call(o)))return n;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n}else{var r;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n;var n,i=o.toString;if(C(i)&&!R(n=i.call(o)))return n}throw new TypeError}(o,"default"===t?"number":t)}function O(o){return!!o}function A(o){var e=$(o,3);return function(o){return"symbol"==typeof o}(e)?e:function(o){return""+o}(e)}function E(o){return Array.isArray?Array.isArray(o):o instanceof Object?o instanceof Array:"[object Array]"===Object.prototype.toString.call(o)}function C(o){return"function"==typeof o}function _(o){return"function"==typeof o}function P(o,e){return o===e||o!=o&&e!=e}function M(o,e){var t=o[e];if(null!=t){if(!C(t))throw new TypeError;return t}}function B(o){var e=M(o,i);if(!C(e))throw new TypeError;var t=e.call(o);if(!R(t))throw new TypeError;return t}function L(o){return o.value}function T(o){var e=o.next();return!e.done&&e}function I(o){var e=o.return;e&&e.call(o)}function D(o){var e=Object.getPrototypeOf(o);if("function"!=typeof o||o===d)return e;if(e!==d)return e;var t=o.prototype,r=t&&Object.getPrototypeOf(t);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===o?e:n}function H(o,e,t){var r=g.getProvider(o,e);if(!j(r))return r;if(t){if(g.setProvider(o,e,u))return u;throw new Error("Illegal state.")}}function N(o){return o.__=void 0,delete o.__,o}o("decorate",(function(o,e,t,r){if(j(t)){if(!E(o))throw new TypeError;if(!_(e))throw new TypeError;return function(o,e){for(var t=o.length-1;t>=0;--t){var r=(0,o[t])(e);if(!j(r)&&!S(r)){if(!_(r))throw new TypeError;e=r}}return e}(o,e)}if(!E(o))throw new TypeError;if(!R(e))throw new TypeError;if(!R(r)&&!j(r)&&!S(r))throw new TypeError;return S(r)&&(r=void 0),function(o,e,t,r){for(var n=o.length-1;n>=0;--n){var i=(0,o[n])(e,t,r);if(!j(i)&&!S(i)){if(!R(i))throw new TypeError;r=i}}return r}(o,e,t=A(t),r)})),o("metadata",(function(o,e){return function(t,r){if(!R(t))throw new TypeError;if(!j(r)&&!function(o){switch(z(o)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;q(o,e,t,r)}})),o("defineMetadata",(function(o,e,t,r){if(!R(t))throw new TypeError;return j(r)||(r=A(r)),q(o,e,t,r)})),o("hasMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),v(o,e,t)})),o("hasOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),h(o,e,t)})),o("getMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),x(o,e,t)})),o("getOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),w(o,e,t)})),o("getMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),y(o,e)})),o("getOwnMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),k(o,e)})),o("deleteMetadata",(function(o,e,t){if(!R(e))throw new TypeError;if(j(t)||(t=A(t)),!R(e))throw new TypeError;j(t)||(t=A(t));var r=H(e,t,!1);return!j(r)&&r.OrdinaryDeleteMetadata(o,e,t)}))}(r,e),void 0===e.Reflect&&(e.Reflect=o)}()}(r||(r={}))}},e={};function t(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return o[r](i,i.exports,t),i.exports}t.d=(o,e)=>{for(var r in e)t.o(e,r)&&!t.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e);var r,n={};t.d(n,{tz:()=>Ee,O2:()=>G,m$:()=>Y,Il:()=>U,P7:()=>V,Dg:()=>H,ho:()=>N,OU:()=>E,Kt:()=>Xr,$4:()=>qe,Je:()=>ze,ZF:()=>Te,dm:()=>He,No:()=>Me,SD:()=>Pe,RK:()=>Ve,R$:()=>Ke,kq:()=>gt,EB:()=>qr,bA:()=>jr,U6:()=>$r,OK:()=>Er,hX:()=>Br,V9:()=>Ir,FX:()=>Gr,j_:()=>Fr,PK:()=>Wr,N6:()=>Zr,Cv:()=>tn,vn:()=>dn,zZ:()=>Dr,k$:()=>B,xC:()=>O,G8:()=>C,bj:()=>D,Nw:()=>Se,Tt:()=>Re,Ng:()=>J,Ty:()=>fn,f_:()=>mn,Qg:()=>pn,fZ:()=>gn,BL:()=>K,tx:()=>un,BV:()=>Q,bX:()=>W,Yq:()=>bn,c7:()=>T,_e:()=>_,Tj:()=>nn,fj:()=>an,cK:()=>cn,On:()=>je,B_:()=>$e,I6:()=>L,aA:()=>M,$p:()=>A,$7:()=>rn,V2:()=>P}),t(630),function(o){o[o.Transient=0]="Transient",o[o.Singleton=1]="Singleton",o[o.ResolutionScoped=2]="ResolutionScoped",o[o.ContainerScoped=3]="ContainerScoped"}(r||(r={}));const i=r;var a=function(o,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])},a(o,e)};function b(o,e){function t(){this.constructor=o}a(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}function l(o){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&o[e],r=0;if(t)return t.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&r>=o.length&&(o=void 0),{value:o&&o[r++],done:!o}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(o,e){var t="function"==typeof Symbol&&o[Symbol.iterator];if(!t)return o;var r,n,i=t.call(o),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return a}function d(){for(var o=[],e=0;e<arguments.length;e++)o=o.concat(s(arguments[e]));return o}function c(o){return!!o.useClass}function f(o){return!!o.useFactory}var m=function(){function o(o){this.wrap=o,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return o.prototype.createProxy=function(o){var e,t=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=o(t.wrap()),r=!0),e})))},o.prototype.createHandler=function(o){var e={};return this.reflectMethods.forEach((function(t){e[t]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=o(),Reflect[t].apply(void 0,d(e))}})),e},o}();function p(o){return"string"==typeof o||"symbol"==typeof o}function g(o){return"object"==typeof o&&"token"in o&&"transform"in o}function u(o){return!!o.useToken}function v(o){return null!=o.useValue}const h=function(){function o(){this._registryMap=new Map}return o.prototype.entries=function(){return this._registryMap.entries()},o.prototype.getAll=function(o){return this.ensure(o),this._registryMap.get(o)},o.prototype.get=function(o){this.ensure(o);var e=this._registryMap.get(o);return e[e.length-1]||null},o.prototype.set=function(o,e){this.ensure(o),this._registryMap.get(o).push(e)},o.prototype.setAll=function(o,e){this._registryMap.set(o,e)},o.prototype.has=function(o){return this.ensure(o),this._registryMap.get(o).length>0},o.prototype.clear=function(){this._registryMap.clear()},o.prototype.ensure=function(o){this._registryMap.has(o)||this._registryMap.set(o,[])},o}(),x=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return b(e,o),e}(h),w=function(){this.scopedResolutions=new Map};var q=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return b(e,o),e}(h),y=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return b(e,o),e}(h);const k=function(){this.preResolution=new q,this.postResolution=new y};var z=new Map,j=function(){function o(o){this.parent=o,this._registry=new x,this.interceptors=new k,this.disposed=!1,this.disposables=new Set}return o.prototype.register=function(o,e,t){var r;if(void 0===t&&(t={lifecycle:i.Transient}),this.ensureNotDisposed(),r=function(o){return c(o)||v(o)||u(o)||f(o)}(e)?e:{useClass:e},u(r))for(var n=[o],a=r;null!=a;){var b=a.useToken;if(n.includes(b))throw new Error("Token registration cycle detected! "+d(n,[b]).join(" -> "));n.push(b);var l=this._registry.get(b);a=l&&u(l.provider)?l.provider:null}if((t.lifecycle===i.Singleton||t.lifecycle==i.ContainerScoped||t.lifecycle==i.ResolutionScoped)&&(v(r)||f(r)))throw new Error('Cannot use lifecycle "'+i[t.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(o,{provider:r,options:t}),this},o.prototype.registerType=function(o,e){return this.ensureNotDisposed(),p(e)?this.register(o,{useToken:e}):this.register(o,{useClass:e})},o.prototype.registerInstance=function(o,e){return this.ensureNotDisposed(),this.register(o,{useValue:e})},o.prototype.registerSingleton=function(o,e){if(this.ensureNotDisposed(),p(o)){if(p(e))return this.register(o,{useToken:e},{lifecycle:i.Singleton});if(e)return this.register(o,{useClass:e},{lifecycle:i.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var t=o;return e&&!p(e)&&(t=e),this.register(o,{useClass:t},{lifecycle:i.Singleton})},o.prototype.resolve=function(o,e){void 0===e&&(e=new w),this.ensureNotDisposed();var t=this.getRegistration(o);if(!t&&p(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"Single"),t){var r=this.resolveRegistration(t,e);return this.executePostResolutionInterceptor(o,r,"Single"),r}if(function(o){return"function"==typeof o||o instanceof m}(o))return r=this.construct(o,e),this.executePostResolutionInterceptor(o,r,"Single"),r;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},o.prototype.executePreResolutionInterceptor=function(o,e){var t,r;if(this.interceptors.preResolution.has(o)){var n=[];try{for(var i=l(this.interceptors.preResolution.getAll(o)),a=i.next();!a.done;a=i.next()){var b=a.value;"Once"!=b.options.frequency&&n.push(b),b.callback(o,e)}}catch(o){t={error:o}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.interceptors.preResolution.setAll(o,n)}},o.prototype.executePostResolutionInterceptor=function(o,e,t){var r,n;if(this.interceptors.postResolution.has(o)){var i=[];try{for(var a=l(this.interceptors.postResolution.getAll(o)),b=a.next();!b.done;b=a.next()){var s=b.value;"Once"!=s.options.frequency&&i.push(s),s.callback(o,e,t)}}catch(o){r={error:o}}finally{try{b&&!b.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(o,i)}},o.prototype.resolveRegistration=function(o,e){if(this.ensureNotDisposed(),o.options.lifecycle===i.ResolutionScoped&&e.scopedResolutions.has(o))return e.scopedResolutions.get(o);var t,r=o.options.lifecycle===i.Singleton,n=o.options.lifecycle===i.ContainerScoped,a=r||n;return t=v(o.provider)?o.provider.useValue:u(o.provider)?a?o.instance||(o.instance=this.resolve(o.provider.useToken,e)):this.resolve(o.provider.useToken,e):c(o.provider)?a?o.instance||(o.instance=this.construct(o.provider.useClass,e)):this.construct(o.provider.useClass,e):f(o.provider)?o.provider.useFactory(this):this.construct(o.provider,e),o.options.lifecycle===i.ResolutionScoped&&e.scopedResolutions.set(o,t),t},o.prototype.resolveAll=function(o,e){var t=this;void 0===e&&(e=new w),this.ensureNotDisposed();var r=this.getAllRegistrations(o);if(!r&&p(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"All"),r){var n=r.map((function(o){return t.resolveRegistration(o,e)}));return this.executePostResolutionInterceptor(o,n,"All"),n}var i=[this.construct(o,e)];return this.executePostResolutionInterceptor(o,i,"All"),i},o.prototype.isRegistered=function(o,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(o)||e&&(this.parent||!1)&&this.parent.isRegistered(o,!0)},o.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},o.prototype.clearInstances=function(){var o,e;this.ensureNotDisposed();try{for(var t=l(this._registry.entries()),r=t.next();!r.done;r=t.next()){var n=s(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(o){return!v(o.provider)})).map((function(o){return o.instance=void 0,o})))}}catch(e){o={error:e}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(o)throw o.error}}},o.prototype.createChildContainer=function(){var e,t;this.ensureNotDisposed();var r=new o(this);try{for(var n=l(this._registry.entries()),a=n.next();!a.done;a=n.next()){var b=s(a.value,2),d=b[0],c=b[1];c.some((function(o){return o.options.lifecycle===i.ContainerScoped}))&&r._registry.setAll(d,c.map((function(o){return o.options.lifecycle===i.ContainerScoped?{provider:o.provider,options:o.options}:o})))}}catch(o){e={error:o}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},o.prototype.beforeResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.preResolution.set(o,{callback:e,options:t})},o.prototype.afterResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.postResolution.set(o,{callback:e,options:t})},o.prototype.dispose=function(){return function(o,e,t,r){return new(t||(t=Promise))((function(n,i){function a(o){try{l(r.next(o))}catch(o){i(o)}}function b(o){try{l(r.throw(o))}catch(o){i(o)}}function l(o){var e;o.done?n(o.value):(e=o.value,e instanceof t?e:new t((function(o){o(e)}))).then(a,b)}l((r=r.apply(o,e||[])).next())}))}(this,void 0,void 0,(function(){var o;return function(o,e){var t,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function b(i){return function(b){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(o,a)}catch(o){i=[6,o],r=0}finally{t=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,b])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,o=[],this.disposables.forEach((function(e){var t=e.dispose();t&&o.push(t)})),[4,Promise.all(o)];case 1:return e.sent(),[2]}}))}))},o.prototype.getRegistration=function(o){return this.isRegistered(o)?this._registry.get(o):this.parent?this.parent.getRegistration(o):null},o.prototype.getAllRegistrations=function(o){return this.isRegistered(o)?this._registry.getAll(o):this.parent?this.parent.getAllRegistrations(o):null},o.prototype.construct=function(o,e){var t=this;if(o instanceof m)return o.createProxy((function(o){return t.resolve(o,e)}));var r,n=function(){var r=z.get(o);if(!r||0===r.length){if(0===o.length)return new o;throw new Error('TypeInfo not known for "'+o.name+'"')}var n=r.map(t.resolveParams(e,o));return new(o.bind.apply(o,d([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},o.prototype.resolveParams=function(o,e){var t=this;return function(r,n){var i,a,b,l;try{return"object"==typeof(l=r)&&"token"in l&&"multiple"in l?g(r)?r.multiple?(i=t.resolve(r.transform)).transform.apply(i,d([t.resolveAll(r.token)],r.transformArgs)):(a=t.resolve(r.transform)).transform.apply(a,d([t.resolve(r.token,o)],r.transformArgs)):r.multiple?t.resolveAll(r.token):t.resolve(r.token,o):g(r)?(b=t.resolve(r.transform,o)).transform.apply(b,d([t.resolve(r.token,o)],r.transformArgs)):t.resolve(r,o)}catch(o){throw new Error(function(o,e,t){var r,n,i=s(o.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(o,e,t){return void 0===t&&(t=" "),d([o],e.message.split("\n").map((function(o){return t+o}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(r=void 0===i?null:i)?"at position #"+n:'"'+r.split(",")[n].trim()+'" at position #'+n)+' of "')+o.name+'" constructor. Reason:',t)}(e,n,o))}}},o.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},o}(),S=new j,R="injectionTokens";const $=function(){return function(o){z.set(o,function(o){var e=Reflect.getMetadata("design:paramtypes",o)||[],t=Reflect.getOwnMetadata(R,o)||{};return Object.keys(t).forEach((function(o){e[+o]=t[o]})),e}(o))}};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.");class O{constructor(o,e){this.container=o,this.options=e}getService(o){return this.container.resolve(o)}}const A=window?.qbo4?.services||new O(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new O(S.createChildContainer(),{}),window.qbo4.services);const E="ApiServiceToken",C="ValidateToken";function _(o,e){if("string"==typeof o)try{o=JSON.parse(o)}catch(o){return console.error("Error parsing JSON string:",o),null}if(Array.isArray(o))return o;if("object"==typeof o&&null!==o)for(const t in o){const r=o[t];if(Array.isArray(r))return r;if("object"==typeof r){const o=_(r,e);if(o)return o}}return null}function P(o,...e){const t=/\${(.*?)}/g;let r=o;for(let o=0;o<e.length;o++){const n=e[o];r=r.replace(t,((o,e)=>{const t=e.split(/\.|\[|\]/).filter((o=>""!==o));let r=n;for(let e of t){if(void 0===r[e])return o;r=r[e]}return r}))}return r=r.replace(t,(()=>"")),r}function M(o,e,t,r=!0){if(null!=o&&null!=e){for(;r&&o.firstChild;)o.removeChild(o.firstChild);t.map(((t,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=P(n.firstElementChild?.innerHTML??"",t)),o.appendChild(n)}))}}class B{constructor(o,e={},t=null){this.relativePath="",this.apiEndpoint=o,this.headers=e,this.method=t}async fetch(o,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const t=P(new URL(o??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),n=new Headers(this.headers||{});e&&!n.has("Content-Type")&&n.append("Content-Type","application/json");const i=await fetch(t,{method:r,headers:n,credentials:"include",body:"POST"===r&&e?JSON.stringify(e):null}),a=n.get("Accept")??"";return i.ok?"application/json"===a?await i.json():await i.text():(console.error(`API request failed with status ${i.status}`),null)}clone(o){const e=new B(this.apiEndpoint,this.headers,this.method);return e.relativePath=o??"",e}}function L(o,e,t={"Content-Type":"application/json"},r){A.container.registerInstance(o,new B(e,t,r))}function T(o){"string"!=typeof o&&(o=o.href);const e=o.match(/api:\/\/([^/]+)/),t=e?e[1]:o,r=e?o.substring(`api://${t}`.length+1):"",n=A.container.isRegistered(t)?A.container.resolve(t):new B(o);return r?n.clone(r):n}A.container.registerInstance("default",new B(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var I=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};let D=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};D=I([$()],D),A.container.register(C,{useClass:D});let H=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};H=I([$()],H),A.container.register(C,{useClass:H});let N=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(o){}disconnect(){}async validate(o){var e=o.getAttribute("data-exists");if(!e)return!1;var t=o.getAttribute("data-exists-path");const r=A.container.isRegistered(e)?A.container.resolve(e):new B(e);if(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement){const e=_(await r.fetch(t,{value:o.value}));return null!=e&&e.length>0}return!1}};N=I([$()],N),A.container.register(C,{useClass:N});class G{constructor(){this.operator="=",this.value=null}}class U{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const V="DependencyValidatorOptions",F=new Map([["!=",(o,e)=>!cn(o.value,e)],[">=",(o,e)=>o.value>=e],["<=",(o,e)=>o.value<=e],["=",(o,e)=>cn(o.value,e)],[">",(o,e)=>o.value>e],["<",(o,e)=>o.value<e]]),X=Array.from(F.keys());let Y=class{constructor(o,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async o=>{console.log("checking dependencies",this.optionsCache);for(const[o,e]of this.optionsCache)await this.validate(o)},this.form=o,this.options=e,this.currentOptions=e}connect(o){this.form.querySelectorAll(this.selector).forEach((o=>{o instanceof HTMLElement&&this.getOptions(o)})),this.optionsCache.forEach(((o,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(o){const e=this.getOptions(o);if(null==e)return Promise.resolve(!0);let t;t="or"===e.condition?e.evaluators.some((o=>!0===o())):e.evaluators.every((o=>!0===o())),(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)&&(o.disabled=!t),o.classList.toggle(e.disabledClass,!t);const r=W(o,"input,select,textarea");return t?e.disableChildren&&r.forEach((o=>o.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((o=>o.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((o=>Q(o))):e.emptyOnDisable&&r.forEach((o=>J(o)))),Promise.resolve(t)}getOptions(o){let e=this.optionsCache.get(o);if(!e){try{e=Object.assign({},this.options,K(o,"data-depend-"))}catch(o){console.error("Error parsing data-depend-options attribute:",o)}if(!e)return null;e.evaluators=e.depends.split(",").map((o=>{o=o.trim();let e=X.find((e=>o.includes(e)))??"!=",t=null,r="";if(e){const n=o.split(e);t=n[0],r=n[1]??""}else o.startsWith("!")?(e="=",t=o.substring(1)):t=o;const n=this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>F.get(e)(n,r):n instanceof HTMLSelectElement?()=>F.get(e)(n,r):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((o=>void 0!==o)),this.optionsCache.set(o,e)}return e}getElement(o){return this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`)}};function K(o,e,t="options"){const r={},n=`${e}${t}`,i=o.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=t&&a===n)try{const e=JSON.parse(o.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${o.name} attribute ${n} (${o.getAttribute(a)}):`,o,e)}else r[i]=o.getAttribute(a)}return r}function W(o,e){const t=Array.from(o.querySelectorAll(e));return o.matches(e)&&t.unshift(o),t}function Q(o){if(o instanceof HTMLInputElement)"checkbox"===o.type||"radio"===o.type?o.checked=o.defaultChecked:o.value=o.defaultValue;else if(o instanceof HTMLSelectElement){var e=o.querySelectorAll("option[selected]");0==e.length?o.selectedIndex=0:e.forEach((o=>{o instanceof HTMLOptionElement&&(o.selected=!0)}))}}function J(o){o instanceof HTMLInputElement?"checkbox"===o.type||"radio"===o.type?o.checked=!1:o.value="":o instanceof HTMLSelectElement&&(o.options.selectedIndex=0)}var Z,oo,eo,to;Y=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([$(),(Z=1,eo=V,to=eo,oo=function(o,e,t){var r=Reflect.getOwnMetadata(R,o)||{};r[t]=to,Reflect.defineMetadata(R,r,o)},function(o,e){oo(o,e,Z)}),function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)}("design:paramtypes",[HTMLFormElement,U])],Y),A.container.register(V,{useValue:new U}),A.container.register(C,{useClass:Y});const ro=globalThis,no=ro.ShadowRoot&&(void 0===ro.ShadyCSS||ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,io=Symbol(),ao=new WeakMap;class bo{constructor(o,e,t){if(this._$cssResult$=!0,t!==io)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(no&&void 0===o){const t=void 0!==e&&1===e.length;t&&(o=ao.get(e)),void 0===o&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&ao.set(e,o))}return o}toString(){return this.cssText}}const lo=(o,...e)=>{const t=1===o.length?o[0]:e.reduce(((e,t,r)=>e+(o=>{if(!0===o._$cssResult$)return o.cssText;if("number"==typeof o)return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+o[r+1]),o[0]);return new bo(t,o,io)},so=(o,e)=>{if(no)o.adoptedStyleSheets=e.map((o=>o instanceof CSSStyleSheet?o:o.styleSheet));else for(const t of e){const e=document.createElement("style"),r=ro.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,o.appendChild(e)}},co=no?o=>o:o=>o instanceof CSSStyleSheet?(o=>{let e="";for(const t of o.cssRules)e+=t.cssText;return(o=>new bo("string"==typeof o?o:o+"",void 0,io))(e)})(o):o,{is:fo,defineProperty:mo,getOwnPropertyDescriptor:po,getOwnPropertyNames:go,getOwnPropertySymbols:uo,getPrototypeOf:vo}=Object,ho=globalThis,xo=ho.trustedTypes,wo=xo?xo.emptyScript:"",qo=ho.reactiveElementPolyfillSupport,yo=(o,e)=>o,ko={toAttribute(o,e){switch(e){case Boolean:o=o?wo:null;break;case Object:case Array:o=null==o?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=null!==o;break;case Number:t=null===o?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(o){t=null}}return t}},zo=(o,e)=>!fo(o,e),jo={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:zo};Symbol.metadata??=Symbol("metadata"),ho.litPropertyMetadata??=new WeakMap;class So extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=jo){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(o,t,e);void 0!==r&&mo(this.prototype,o,r)}}static getPropertyDescriptor(o,e,t){const{get:r,set:n}=po(this.prototype,o)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(o,i,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??jo}static _$Ei(){if(this.hasOwnProperty(yo("elementProperties")))return;const o=vo(this);o.finalize(),void 0!==o.l&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(yo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yo("properties"))){const o=this.properties,e=[...go(o),...uo(o)];for(const t of e)this.createProperty(t,o[t])}const o=this[Symbol.metadata];if(null!==o){const e=litPropertyMetadata.get(o);if(void 0!==e)for(const[o,t]of e)this.elementProperties.set(o,t)}this._$Eh=new Map;for(const[o,e]of this.elementProperties){const t=this._$Eu(o,e);void 0!==t&&this._$Eh.set(t,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){const e=[];if(Array.isArray(o)){const t=new Set(o.flat(1/0).reverse());for(const o of t)e.unshift(co(o))}else void 0!==o&&e.push(co(o));return e}static _$Eu(o,e){const t=e.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof o?o.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((o=>this.enableUpdating=o)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o=>o(this)))}addController(o){(this._$EO??=new Set).add(o),void 0!==this.renderRoot&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){const o=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(o.set(t,this[t]),delete this[t]);o.size>0&&(this._$Ep=o)}createRenderRoot(){const o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return so(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o=>o.hostConnected?.()))}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o=>o.hostDisconnected?.()))}attributeChangedCallback(o,e,t){this._$AK(o,t)}_$EC(o,e){const t=this.constructor.elementProperties.get(o),r=this.constructor._$Eu(o,t);if(void 0!==r&&!0===t.reflect){const n=(void 0!==t.converter?.toAttribute?t.converter:ko).toAttribute(e,t.type);this._$Em=o,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(o,e){const t=this.constructor,r=t._$Eh.get(o);if(void 0!==r&&this._$Em!==r){const o=t.getPropertyOptions(r),n="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==o.converter?.fromAttribute?o.converter:ko;this._$Em=r,this[r]=n.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(o,e,t){if(void 0!==o){if(t??=this.constructor.getPropertyOptions(o),!(t.hasChanged??zo)(this[o],e))return;this.P(o,e,t)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(o,e,t){this._$AL.has(o)||this._$AL.set(o,e),!0===t.reflect&&this._$Em!==o&&(this._$Ej??=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const o=this.scheduleUpdate();return null!=o&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,e]of this._$Ep)this[o]=e;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[e,t]of o)!0!==t.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],t)}let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw o=!1,this._$EU(),e}o&&this._$AE(e)}willUpdate(o){}_$AE(o){this._$EO?.forEach((o=>o.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&=this._$Ej.forEach((o=>this._$EC(o,this[o]))),this._$EU()}updated(o){}firstUpdated(o){}}So.elementStyles=[],So.shadowRootOptions={mode:"open"},So[yo("elementProperties")]=new Map,So[yo("finalized")]=new Map,qo?.({ReactiveElement:So}),(ho.reactiveElementVersions??=[]).push("2.0.4");const Ro=globalThis,$o=Ro.trustedTypes,Oo=$o?$o.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ao="$lit$",Eo=`lit$${Math.random().toFixed(9).slice(2)}$`,Co="?"+Eo,_o=`<${Co}>`,Po=document,Mo=()=>Po.createComment(""),Bo=o=>null===o||"object"!=typeof o&&"function"!=typeof o,Lo=Array.isArray,To=o=>Lo(o)||"function"==typeof o?.[Symbol.iterator],Io="[ \t\n\f\r]",Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ho=/-->/g,No=/>/g,Go=RegExp(`>|${Io}(?:([^\\s"'>=/]+)(${Io}*=${Io}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Uo=/'/g,Vo=/"/g,Fo=/^(?:script|style|textarea|title)$/i,Xo=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Yo=Xo(1),Ko=(Xo(2),Xo(3),Symbol.for("lit-noChange")),Wo=Symbol.for("lit-nothing"),Qo=new WeakMap,Jo=Po.createTreeWalker(Po,129);function Zo(o,e){if(!Lo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Oo?Oo.createHTML(e):e}const oe=(o,e)=>{const t=o.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Do;for(let e=0;e<t;e++){const t=o[e];let b,l,s=-1,d=0;for(;d<t.length&&(a.lastIndex=d,l=a.exec(t),null!==l);)d=a.lastIndex,a===Do?"!--"===l[1]?a=Ho:void 0!==l[1]?a=No:void 0!==l[2]?(Fo.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Go):void 0!==l[3]&&(a=Go):a===Go?">"===l[0]?(a=n??Do,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Go:'"'===l[3]?Vo:Uo):a===Vo||a===Uo?a=Go:a===Ho||a===No?a=Do:(a=Go,n=void 0);const c=a===Go&&o[e+1].startsWith("/>")?" ":"";i+=a===Do?t+_o:s>=0?(r.push(b),t.slice(0,s)+Ao+t.slice(s)+Eo+c):t+Eo+(-2===s?e:c)}return[Zo(o,i+(o[t]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:o,_$litType$:e},t){let r;this.parts=[];let n=0,i=0;const a=o.length-1,b=this.parts,[l,s]=oe(o,e);if(this.el=ee.createElement(l,t),Jo.currentNode=this.el.content,2===e||3===e){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;null!==(r=Jo.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const o of r.getAttributeNames())if(o.endsWith(Ao)){const e=s[i++],t=r.getAttribute(o).split(Eo),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:t,ctor:"."===a[1]?ae:"?"===a[1]?be:"@"===a[1]?le:ie}),r.removeAttribute(o)}else o.startsWith(Eo)&&(b.push({type:6,index:n}),r.removeAttribute(o));if(Fo.test(r.tagName)){const o=r.textContent.split(Eo),e=o.length-1;if(e>0){r.textContent=$o?$o.emptyScript:"";for(let t=0;t<e;t++)r.append(o[t],Mo()),Jo.nextNode(),b.push({type:2,index:++n});r.append(o[e],Mo())}}}else if(8===r.nodeType)if(r.data===Co)b.push({type:2,index:n});else{let o=-1;for(;-1!==(o=r.data.indexOf(Eo,o+1));)b.push({type:7,index:n}),o+=Eo.length-1}n++}}static createElement(o,e){const t=Po.createElement("template");return t.innerHTML=o,t}}function te(o,e,t=o,r){if(e===Ko)return e;let n=void 0!==r?t._$Co?.[r]:t._$Cl;const i=Bo(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(o),n._$AT(o,t,r)),void 0!==r?(t._$Co??=[])[r]=n:t._$Cl=n),void 0!==n&&(e=te(o,n._$AS(o,e.values),n,r)),e}class re{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:e},parts:t}=this._$AD,r=(o?.creationScope??Po).importNode(e,!0);Jo.currentNode=r;let n=Jo.nextNode(),i=0,a=0,b=t[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new ne(n,n.nextSibling,this,o):1===b.type?e=new b.ctor(n,b.name,b.strings,this,o):6===b.type&&(e=new se(n,this,o)),this._$AV.push(e),b=t[++a]}i!==b?.index&&(n=Jo.nextNode(),i++)}return Jo.currentNode=Po,r}p(o){let e=0;for(const t of this._$AV)void 0!==t&&(void 0!==t.strings?(t._$AI(o,t,e),e+=t.strings.length-2):t._$AI(o[e])),e++}}class ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,e,t,r){this.type=2,this._$AH=Wo,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=t,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===o?.nodeType&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=te(this,o,e),Bo(o)?o===Wo||null==o||""===o?(this._$AH!==Wo&&this._$AR(),this._$AH=Wo):o!==this._$AH&&o!==Ko&&this._(o):void 0!==o._$litType$?this.$(o):void 0!==o.nodeType?this.T(o):To(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==Wo&&Bo(this._$AH)?this._$AA.nextSibling.data=o:this.T(Po.createTextNode(o)),this._$AH=o}$(o){const{values:e,_$litType$:t}=o,r="number"==typeof t?this._$AC(o):(void 0===t.el&&(t.el=ee.createElement(Zo(t.h,t.h[0]),this.options)),t);if(this._$AH?._$AD===r)this._$AH.p(e);else{const o=new re(r,this),t=o.u(this.options);o.p(e),this.T(t),this._$AH=o}}_$AC(o){let e=Qo.get(o.strings);return void 0===e&&Qo.set(o.strings,e=new ee(o)),e}k(o){Lo(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let t,r=0;for(const n of o)r===e.length?e.push(t=new ne(this.O(Mo()),this.O(Mo()),this,this.options)):t=e[r],t._$AI(n),r++;r<e.length&&(this._$AR(t&&t._$AB.nextSibling,r),e.length=r)}_$AR(o=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);o&&o!==this._$AB;){const e=o.nextSibling;o.remove(),o=e}}setConnected(o){void 0===this._$AM&&(this._$Cv=o,this._$AP?.(o))}}class ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,t,r,n){this.type=1,this._$AH=Wo,this._$AN=void 0,this.element=o,this.name=e,this._$AM=r,this.options=n,t.length>2||""!==t[0]||""!==t[1]?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=Wo}_$AI(o,e=this,t,r){const n=this.strings;let i=!1;if(void 0===n)o=te(this,o,e,0),i=!Bo(o)||o!==this._$AH&&o!==Ko,i&&(this._$AH=o);else{const r=o;let a,b;for(o=n[0],a=0;a<n.length-1;a++)b=te(this,r[t+a],e,a),b===Ko&&(b=this._$AH[a]),i||=!Bo(b)||b!==this._$AH[a],b===Wo?o=Wo:o!==Wo&&(o+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(o)}j(o){o===Wo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class ae extends ie{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Wo?void 0:o}}class be extends ie{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Wo)}}class le extends ie{constructor(o,e,t,r,n){super(o,e,t,r,n),this.type=5}_$AI(o,e=this){if((o=te(this,o,e,0)??Wo)===Ko)return;const t=this._$AH,r=o===Wo&&t!==Wo||o.capture!==t.capture||o.once!==t.once||o.passive!==t.passive,n=o!==Wo&&(t===Wo||r);r&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class se{constructor(o,e,t){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(o){te(this,o)}}const de={M:Ao,P:Eo,A:Co,C:1,L:oe,R:re,D:To,V:te,I:ne,H:ie,N:be,U:le,B:ae,F:se},ce=Ro.litHtmlPolyfillSupport;ce?.(ee,ne),(Ro.litHtmlVersions??=[]).push("3.2.1");class fe extends So{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=((o,e,t)=>{const r=t?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const o=t?.renderBefore??null;r._$litPart$=n=new ne(e.insertBefore(Mo(),o),o,void 0,t??{})}return n._$AI(o),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}fe._$litElement$=!0,fe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:fe});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:fe}),(globalThis.litElementVersions??=[]).push("4.1.1");const pe=o=>(e,t)=>{void 0!==t?t.addInitializer((()=>{customElements.define(o,e)})):customElements.define(o,e)},ge={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:zo},ue=(o=ge,e,t)=>{const{kind:r,metadata:n}=t;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(t.name,o),"accessor"===r){const{name:r}=t;return{set(t){const n=e.get.call(this);e.set.call(this,t),this.requestUpdate(r,n,o)},init(e){return void 0!==e&&this.P(r,void 0,o),e}}}if("setter"===r){const{name:r}=t;return function(t){const n=this[r];e.call(this,t),this.requestUpdate(r,n,o)}}throw Error("Unsupported decorator location: "+r)};function ve(o){return(e,t)=>"object"==typeof t?ue(o,e,t):((o,e,t)=>{const r=e.hasOwnProperty(t);return e.constructor.createProperty(t,r?{...o,wrapped:!0}:o),r?Object.getOwnPropertyDescriptor(e,t):void 0})(o,e,t)}function he(o){return ve({...o,state:!0,attribute:!1})}var xe=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},we=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let qe=class extends fe{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}connectedCallback(){super.connectedCallback();const o={};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 t=e.getAttribute("name"),r=e.textContent;t&&r&&(o[t]=r)})),o.ContentType&&(o["Content-Type"]=o.ContentType,delete o.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),L(this.name,this.apiEndpoint,o,this.method)}render(){return Yo``}};xe([ve({type:String}),we("design:type",Object)],qe.prototype,"name",void 0),xe([ve({type:String}),we("design:type",Object)],qe.prototype,"apiEndpoint",void 0),xe([ve(),we("design:type",Object)],qe.prototype,"method",void 0),qe=xe([pe("qbo-api")],qe);var ye=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ke=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let ze=class extends fe{constructor(){super(...arguments),this.display="normal",this.trigger="header",this.renderInHost=!0,this.hasExpandedContent=!1,this.minimize=o=>{this.display="minimize"},this.normal=o=>{this.display="normal"},this.maximize=o=>{this.display="maximize"}}static{this.styles=[lo``]}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),document.addEventListener("qbo-card-minimize",this.minimize),document.addEventListener("qbo-card-normal",this.normal),document.addEventListener("qbo-card-maximize",this.maximize),this.hasExpandedContent=null!=this.querySelector(".expanded"),"normal"!==this.display||this.hasExpandedContent||(this.display="maximize")}disconnectedCallback(){this.removeEventListener("click",this.handleClick),document.removeEventListener("qbo-card-minimize",this.minimize),document.removeEventListener("qbo-card-normal",this.normal),document.removeEventListener("qbo-card-maximize",this.maximize),super.disconnectedCallback()}attributeChangedCallback(o,e,t){super.attributeChangedCallback(o,e,t),"display"===o&&(this.classList.remove("normal","minimize","maximize"),t&&this.classList.add(t))}handleClick(o){o.composedPath()[0]===this.querySelector(this.trigger)&&(o.ctrlKey?this.shrink():this.grow())}shrink(){switch(this.display){case"minimize":return void(this.display="maximize");case"maximize":return void(this.display=this.hasExpandedContent?"normal":"minimize");default:return void(this.display="minimize")}}grow(){switch(this.display){case"minimize":return void(this.display=this.hasExpandedContent?"normal":"maximize");case"maximize":return void(this.display="minimize");default:return void(this.display="maximize")}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return Yo`<slot></slot>`}};ye([ve({reflect:!0}),ke("design:type",String)],ze.prototype,"display",void 0),ye([ve(),ke("design:type",String)],ze.prototype,"trigger",void 0),ye([ve(),ke("design:type",Boolean)],ze.prototype,"renderInHost",void 0),ye([ve(),ke("design:type",Object)],ze.prototype,"columns",void 0),ze=ye([pe("qbo-card")],ze);const je=lo`:root{--qbo-font:Arial,sans-serif;--qbo-color:#333;--qbo-border-color:#999;--qbo-border-radius:4px;--qbo-background-color:#ffffff;--qbo-padding-horizontal:0.75rem;--qbo-padding-vertical:0.375rem;--qbo-padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);--qbo-margin:0.5rem;--qbo-margin-horizontal:0.5rem;--qbo-margin-vertical:0.5rem;--qbo-focus-border-color:#80bdff;--qbo-focus-box-shadow:rgba(0, 123, 255, 0.25);--qbo-line-height:var(--qbo-line-height);--qbo-button-bg:#007bff;--qbo-button-border:#007bff;--qbo-button-bg-hover:#0056b3;--qbo-button-border-hover:#004085;--qbo-button-color:#ffffff;--qbo-button-padding:var(--qbo-padding);--qbo-button-border-radius:var(--qbo-border-radius);--qbo-nav-color:#333;--qbo-nav-background-color:#999;--qbo-nav-background-hover:#81181d;--qbo-nav-background-hover-color:#999;--qbo-primary-bg:#007bff;--qbo-primary-color:#ffffff;--qbo-primary-border:#007bff;--qbo-primary-hover-bg:#0056b3;--qbo-primary-hover-border:#004085;--qbo-secondary-bg:#6c757d;--qbo-secondary-color:#ffffff;--qbo-secondary-border:#6c757d;--qbo-secondary-hover-bg:#5a6268;--qbo-secondary-hover-border:#545b62;--qbo-success-bg:#28a745;--qbo-success-color:#ffffff;--qbo-success-border:#28a745;--qbo-success-hover-bg:#218838;--qbo-success-hover-border:#1e7e34;--qbo-danger-bg:#dc3545;--qbo-danger-color:#ffffff;--qbo-danger-border:#dc3545;--qbo-danger-hover-bg:#c82333;--qbo-danger-hover-border:#bd2130;--qbo-info-bg:#17a2b8;--qbo-info-color:#ffffff;--qbo-info-border:#17a2b8;--qbo-info-hover-bg:#138496;--qbo-info-hover-border:#117a8b;--qbo-light-bg:#f8f9fa;--qbo-light-color:#212529;--qbo-light-border:#f8f9fa;--qbo-light-hover-bg:#e2e6ea;--qbo-light-hover-border:#dae0e5;--qbo-dark-bg:#343a40;--qbo-dark-color:#ffffff;--qbo-dark-border:#343a40;--qbo-dark-hover-bg:#23272b;--qbo-dark-hover-border:#1d2124}.qbo-theme-dark{--qbo-color:#e0e0e0;--qbo-border-color:grey;--qbo-background-color:#121212;--qbo-nav-color:#000;--qbo-nav-background-color:#fff;--qbo-svg-filter:brightness(0) invert(1)}.qbo-theme-light{font-family:var(--qbo-font);color:var(--qbo-color);margin:0;background-color:var(--qbo-background-color)}.qbo-row{display:flex;flex-wrap:wrap;gap:var(--qbo-margin)}.qbo-card,.qbo-col{flex:1 0 0;max-width:100%;box-sizing:border-box}.qbo-col-1{flex:0 0 calc(8.33% - var(--qbo-margin)/ 2);max-width:calc(8.33% - var(--qbo-margin)/ 2)}.qbo-col-2{flex:0 0 calc(16.66% - var(--qbo-margin)/ 2);max-width:calc(16.66% - var(--qbo-margin)/ 2)}.qbo-col-3{flex:0 0 calc(25% - var(--qbo-margin)/ 2);max-width:calc(25% - var(--qbo-margin)/ 2)}.qbo-col-4{flex:0 0 calc(33.33% - var(--qbo-margin)/ 2);max-width:calc(33.33% - var(--qbo-margin)/ 2)}.qbo-col-5{flex:0 0 calc(41.66% - var(--qbo-margin)/ 2);max-width:calc(41.66% - var(--qbo-margin)/ 2)}.qbo-col-6{flex:0 0 calc(50% - var(--qbo-margin)/ 2);max-width:calc(50% - var(--qbo-margin)/ 2)}.qbo-col-7{flex:0 0 calc(58.33% - var(--qbo-margin)/ 2);max-width:calc(58.33% - var(--qbo-margin)/ 2)}.qbo-col-8{flex:0 0 calc(66.66% - var(--qbo-margin)/ 2);max-width:calc(66.66% - var(--qbo-margin)/ 2)}.qbo-col-9{flex:0 0 calc(75% - var(--qbo-margin)/ 2);max-width:calc(75% - var(--qbo-margin)/ 2)}.qbo-col-10{flex:0 0 calc(83.33% - var(--qbo-margin)/ 2);max-width:calc(83.33% - var(--qbo-margin)/ 2)}.qbo-col-11{flex:0 0 calc(91.66% - var(--qbo-margin)/ 2);max-width:calc(91.66% - var(--qbo-margin)/ 2)}.qbo-col-12{flex:0 0 calc(100% - var(--qbo-margin)/ 2);max-width:calc(100% - var(--qbo-margin)/ 2)}.qbo-card{border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-shadow:2px 2px 3px var(--qbo-border-color);padding:.5em;overflow:auto}.qbo-card-left{margin-left:.5em}.qbo-card-right{margin-right:.5em}svg{height:1rem;width:1rem}.qbo-form{margin:0 auto;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal)}.qbo-form label{display:flex;flex-direction:column;font-size:.9rem;font-weight:100;color:var(--qbo-color);font-family:var(--qbo-font);margin-top:calc(var(--qbo-margin) * 1.5);margin-bottom:calc(var(--qbo-margin) * .25)}.qbo-form small{display:block;font-size:.8rem;color:color-mix(in srgb,var(--qbo-color) 60%,transparent)}.qbo-form input,.qbo-form select,.qbo-form textarea{width:100%;box-sizing:border-box;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:1;color:var(--qbo-color);background-color:var(--qbo-background-color);background-clip:padding-box;border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-family:var(--qbo-font);margin-top:.1rem;margin-right:1rem}.qbo-form input[type=color]{width:3rem;height:calc(1.5em + .75rem + 0px);padding:.375rem;background-color:transparent;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none}.qbo-form input:focus,.qbo-form select:focus,.qbo-form textarea:focus{color:var(--qbo-color);border-color:var(--qbo-focus-border-color);outline:0;box-shadow:0 0 0 .2rem var(--qbo-focus-box-shadow)}.qbo-form input[disabled],.qbo-form select[disabled],.qbo-form textarea[disabled]{color:color-mix(in oklab,var(--qbo-color) 50%,var(--qbo-background-color));cursor:not-allowed;opacity:1}.qbo-form div{display:flex;align-items:center}.qbo-form div span{display:inline-flex;font-weight:100;align-items:center;padding:.375rem .75rem;font-size:1rem;text-align:center;white-space:nowrap;border-right:none;border-radius:.25rem 0 0 .25rem}.qbo-form div input,.qbo-form div select,.qbo-form div textarea{flex:1 1 auto;padding:.375rem .75rem;font-size:1rem;background-clip:padding-box;margin:0}.qbo-form .form-check{display:flex;align-items:center;margin-bottom:1rem}.qbo-form .form-check input[type=checkbox],.qbo-form .form-check input[type=radio]{width:auto;margin-right:.5rem}.qbo-form .form-check label{margin-bottom:0;font-weight:400;color:var(--qbo-color)}.qbo-button,button{display:inline-block;font-weight:400;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:var(--qbo-line-height);text-align:center;vertical-align:middle;cursor:pointer;margin-right:var(--qbo-margin);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.qbo-button:focus,.qbo-button:hover,button:focus,button:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);border-radius:var(--qbo-border-radius);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}.qbo-button:disabled,button:disabled{opacity:.65;cursor:not-allowed;background-color:var(--qbo-button-bg);border-color:var(--qbo-button-border);color:var(--qbo-button-color)}.primary{background-color:var(--qbo-primary-bg);border:1px solid var(--qbo-primary-border);color:var(--qbo-primary-color)}.primary:focus,.primary:hover{background-color:var(--qbo-primary-hover-bg);border:1px solid var(--qbo-primary-hover-border)}.secondary{background-color:var(--qbo-secondary-bg);border:1px solid var(--qbo-secondary-border);color:var(--qbo-secondary-color)}.secondary:focus,.secondary:hover{background-color:var(--qbo-secondary-hover-bg);border:1px solid var(--qbo-secondary-hover-border)}.icon{height:1rem;width:1rem;filter:var(--qbo-svg-filter)}.icon use{display:block}.icon.right{position:relative;padding-left:1.25rem;background-image:url("https://devqmp.quandis.io/core/ui/images/qbo-icons.svg#i-arrow-down-circle");background-repeat:no-repeat;background-position:left center}nav{--qbo-background-color:var(--qbo-nav-background-color, black);--qbo-color:var(--qbo-nav-color, white);--qbo-svg-filter:brightness(0) invert(1);display:flex;flex-direction:row;color:var(--qbo-nav-color,#fff);background-color:var(--qbo-nav-background-color,#000)}nav menu{list-style-type:none;padding-inline-start:20px;margin-block-start:0.5em;margin-block-end:0.5em}nav menu li{border:1px solid var(--qbo-nav-background-color,#000);cursor:pointer;display:inline-block;line-height:var(--qbo-line-height);padding:5px}nav menu li svg{filter:invert(0)!important}nav menu li:focus,nav menu li:hover{background-color:var(--qbo-nav-background-hover,grey);border:1px solid var(--qbo-nav-background-hover);border-radius:.5em;color:#fff;text-decoration:none}nav menu li:focus span>svg,nav menu li:focus>svg,nav menu li:hover span>svg,nav menu li:hover>svg{filter:var(--qbo-svg-filter)!important}nav>img{padding-inline-start:8px}nav>span{font-weight:700;margin-top:17px;padding-inline-start:10px}nav a{color:var(--qbo-color)}nav svg.label{vertical-align:text-top}nav svg.toggle{vertical-align:text-bottom}menu.qbo-toolbar{list-style-type:none;padding-left:0;display:flex;flex-direction:row;margin-right:var(--qbo-margin)}menu.qbo-toolbar>li{display:inline-block;margin-right:0;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);cursor:pointer;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;text-decoration:none}menu.qbo-toolbar>li:first-child{border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:last-child{border-top-right-radius:var(--qbo-border-radius);border-bottom-right-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:focus,menu.qbo-toolbar>li:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}menu.qbo-toolbar.vertical{flex-direction:column;align-items:flex-start}menu.qbo-toolbar.vertical li:first-child{border-top-right-radius:var(--qbo-border-radius);border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:0}menu.qbo-toolbar.vertical li:last-child{border-bottom-right-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius);border-top-right-radius:0}qbo-menu aside,qbo-menu menu{background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-sizing:border-box;height:auto;list-style-type:none;margin:0;padding-left:0;position:absolute;visibility:hidden}qbo-menu aside.open,qbo-menu menu.open{visibility:visible}qbo-menu aside{width:0;margin:var(--qbo-margin);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);padding-bottom:.6em;overflow-y:scroll;top:53px!important;width:100%;background-color:#f0f0f0;border:0;border-radius:0;border-bottom-left-radius:.7em;border-bottom-right-radius:.7em;color:var(--qbo-nav-color,#fff);height:auto;left:0;margin:0;overflow-y:auto}qbo-menu aside>h1{color:var(--qbo-color);margin-block-end:0;margin-left:1em}qbo-menu aside>p{color:var(--qbo-color);margin-block-start:0;margin-left:1.2em}qbo-menu li{display:list-item!important;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);text-align:left;white-space:nowrap;cursor:pointer;text-decoration:none}qbo-menu li:hover{background-color:var(--qbo-border-color)}qbo-menu menu li.disabled{color:#6c757d;pointer-events:none;background-color:transparent}qbo-menu menu .dropdown-divider{height:1px;margin:.5rem 0;overflow:hidden;background-color:#e9ecef}qbo-menu menu .dropdown-header{padding:.5rem 1rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}qbo-popover{background-color:#f0f0f0;border:1px solid #81181d;border-radius:var(--qbo-border-radius);color:var(--qbo-color);margin:.6em 0 0 0;padding:0 1em 0 1em;position:absolute;visibility:hidden}qbo-popover h3{margin-block-end:0.5em;margin-block-start:0.5em}qbo-popover p{margin-block-start:0}qbo-popover.open{visibility:visible}details>a{margin-left:1.5em}div.qbo-row-subsequent{margin-top:.5em}h3.title{margin-block-end:0;margin-block-start:0.5em;margin-left:.5em}p.detail{margin-block-end:0.5em;margin-block-start:0;margin-left:.5em}div.qbo-col-noborder{border:0!important;box-shadow:initial}`,Se=lo`
3
3
  @charset "UTF-8";/*!
4
4
  * Bootstrap v5.3.1 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2023 The Bootstrap Authors
@@ -88,7 +88,7 @@ var o={630:(o,e,t)=>{var r;!function(o){!function(){var e="object"==typeof globa
88
88
  ${o}
89
89
  </qbo-popover>
90
90
  </div>
91
- </slot>`}};Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"aDropdownClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"buttonPrimaryClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"buttonPrimaryDropdownClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"buttonType",void 0),Ne([ve({type:Object,attribute:!1}),Ge("design:type",Object)],Ve.prototype,"data",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"divButtonGroupClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"divFormActionClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"divSectionHeaderClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"dropdownToggle",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"editLabel",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"helpIcon",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"helpText",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"historyIcon",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"historyText",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"infoButtonClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"infoIconClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"infoTitle",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"popoverClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"spanEditClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"ulDropdownClass",void 0),Ne([ve(),Ge("design:type",Object)],Ve.prototype,"type",void 0),Ne([ve({type:Boolean}),Ge("design:type",Object)],Ve.prototype,"renderInHost",void 0),Ve=Ne([pe("qbo-form-edit")],Ve);var Fe,Xe=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ye=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let Ke=class extends fe{static{Fe=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=o=>{const e=o.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),console.trace(`${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=o=>{if(o.stopPropagation(),console.log(o),o instanceof CustomEvent&&o.detail.formData instanceof FormData)for(let[e,t]of o.detail.formData.entries())this.value.set(e,t),console.log(`Added ${e}=${t} 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()}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=P(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(o){super.updated(o),this.establishFormData()}render(){return Yo`<slot></slot>`}establishFormData(){const o=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!o||0===o?.length)return;const e=Array.from(o).filter((o=>!o.assignedSlot&&(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement||o instanceof Fe)&&o.name));e.forEach((o=>{const e=o;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 Fe)for(let[o,t]of e.value.entries())this.value.set(`${this.name}${o}`,t);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),console.trace(`Set ${this.name} values to `,this.value)}};Xe([ve({type:FormData}),Ye("design:type",FormData)],Ke.prototype,"value",void 0),Xe([ve({type:String}),Ye("design:type",Object)],Ke.prototype,"template",void 0),Xe([ve({type:String}),Ye("design:type",Object)],Ke.prototype,"name",void 0),Xe([ve({type:Object}),Ye("design:type",Object)],Ke.prototype,"data",void 0),Ke=Fe=Xe([pe("qbo-form-element"),Ye("design:paramtypes",[])],Ke);const{I:We}=se,Qe=o=>(...e)=>({_$litDirective$:o,values:e});class Je{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,e,t){this._$Ct=o,this._$AM=e,this._$Ci=t}_$AS(o,e){return this.update(o,e)}update(o,e){return this.render(...e)}}const Ze=(o,e)=>{const t=o._$AN;if(void 0===t)return!1;for(const o of t)o._$AO?.(e,!1),Ze(o,e);return!0},ot=o=>{let e,t;do{if(void 0===(e=o._$AM))break;t=e._$AN,t.delete(o),o=e}while(0===t?.size)},et=o=>{for(let e;e=o._$AM;o=e){let t=e._$AN;if(void 0===t)e._$AN=t=new Set;else if(t.has(o))break;t.add(o),nt(e)}};function tt(o){void 0!==this._$AN?(ot(this),this._$AM=o,et(this)):this._$AM=o}function rt(o,e=!1,t=0){const r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(r))for(let o=t;o<r.length;o++)Ze(r[o],!1),ot(r[o]);else null!=r&&(Ze(r,!1),ot(r));else Ze(this,o)}const nt=o=>{2==o.type&&(o._$AP??=rt,o._$AQ??=tt)};class it extends Je{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,t){super._$AT(o,e,t),et(this),this.isConnected=o._$AU}_$AO(o,e=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),e&&(Ze(this,o),ot(this))}setValue(o){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(o,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=o,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class at{constructor(o){this.Y=o}disconnect(){this.Y=void 0}reconnect(o){this.Y=o}deref(){return this.Y}}class bt{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise((o=>this.q=o))}resume(){this.q?.(),this.Z=this.q=void 0}}const lt=o=>!(o=>null===o||"object"!=typeof o&&"function"!=typeof o)(o)&&"function"==typeof o.then,dt=1073741823,st=Qe(class extends it{constructor(){super(...arguments),this._$Cwt=dt,this._$Cbt=[],this._$CK=new at(this),this._$CX=new bt}render(...o){return o.find((o=>!lt(o)))??Ko}update(o,e){const t=this._$Cbt;let r=t.length;this._$Cbt=e;const n=this._$CK,i=this._$CX;this.isConnected||this.disconnected();for(let o=0;o<e.length&&!(o>this._$Cwt);o++){const a=e[o];if(!lt(a))return this._$Cwt=o,a;o<r&&a===t[o]||(this._$Cwt=dt,r=0,Promise.resolve(a).then((async o=>{for(;i.get();)await i.get();const e=n.deref();if(void 0!==e){const t=e._$Cbt.indexOf(a);t>-1&&t<e._$Cwt&&(e._$Cwt=t,e.setValue(o))}})))}return Ko}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var ct,ft=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},mt=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};const pt=new Map;pt.set("accounting","currency-dollar"),pt.set("collection","tag"),pt.set("document","file-earmark"),pt.set("export","database-down"),pt.set("import","database-up"),pt.set("message","envelope"),pt.set("process","building-gear"),pt.set("score","file-spreadsheet"),pt.set("task","list-check"),pt.set("workflow","diagram-2"),pt.set("security","lock"),pt.set("refresh","arrow-repeat"),pt.set("cut","scissors"),pt.set("copy","copy"),pt.set("paste","clipboard"),pt.set("delete","trash"),pt.set("up","arrow-up-circle"),pt.set("down","arrow-down-circle"),pt.set("left","arrow-left-circle"),pt.set("right","arrow-right-circle"),pt.set("copy","trash"),pt.set("maximize","arrow-down-circle"),pt.set("minimize","arrow-right-circle"),pt.set("normal","arrow-down-right-circle"),pt.set("upload","upload"),pt.set("download","download"),pt.set("folder","folder2"),pt.set("folder-open","folder2-open"),pt.set("pdf","filetype-pdf"),pt.set("audio","headphones"),pt.set("video","camera-video"),pt.set("headset","headphones"),pt.set("warning","exclamation-triangle");let gt=class extends fe{constructor(){super(...arguments),this.type="icon",this.icon=null,this.height="1rem",this.width="1rem",this.viewbox="0 0 1em 1em",this.fill="currentColor",this.backgroundColor=null,this.disabled=!1,this.renderInHost=!0,this.selected=!1,this.allIcons=void 0}static{ct=this}static{this.map=pt}static get spriteUrl(){const o=document.querySelector('meta[name="qbo4-basepath"]');return`${o?.getAttribute("value")||""}/ui/images/qbo-icons.svg`}connectedCallback(){this.type??="icon",super.connectedCallback(),"toggle"===this.type&&this.addEventListener("click",this.toggle)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.toggle)}toggle(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent(this.selected?"selected":"delected",{bubbles:!0,composed:!0}))}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(o){super.updated(o),o.has("selected")&&"toggle"===this.type&&this.setAttribute("aria-pressed",this.selected?"true":"false")}async loadIcons(){if(this.allIcons)return this.allIcons;try{const o=await fetch(this.sprite??ct.spriteUrl),e=await o.text(),t=(new DOMParser).parseFromString(e,"image/svg+xml").querySelectorAll("symbol");this.allIcons=Array.from(t).map((o=>o.id))}catch(o){console.error("Error loading icons:",o)}return this.allIcons}renderStandard(o){return Yo`<div class="row">
91
+ </slot>`}};Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"aDropdownClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"buttonPrimaryClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"buttonPrimaryDropdownClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"buttonType",void 0),Ne([ve({type:Object,attribute:!1}),Ge("design:type",Object)],Ve.prototype,"data",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"divButtonGroupClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"divFormActionClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"divSectionHeaderClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"dropdownToggle",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"editLabel",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"helpIcon",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"helpText",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"historyIcon",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"historyText",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"infoButtonClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"infoIconClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"infoTitle",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"popoverClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"spanEditClass",void 0),Ne([ve({type:String}),Ge("design:type",Object)],Ve.prototype,"ulDropdownClass",void 0),Ne([ve(),Ge("design:type",Object)],Ve.prototype,"type",void 0),Ne([ve({type:Boolean}),Ge("design:type",Object)],Ve.prototype,"renderInHost",void 0),Ve=Ne([pe("qbo-form-edit")],Ve);var Fe,Xe=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ye=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let Ke=class extends fe{static{Fe=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=o=>{const e=o.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),console.trace(`${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=o=>{if(o.stopPropagation(),console.log(o),o instanceof CustomEvent&&o.detail.formData instanceof FormData)for(let[e,t]of o.detail.formData.entries())this.value.set(e,t),console.log(`Added ${e}=${t} 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()}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=P(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(o){super.updated(o),this.establishFormData()}render(){return Yo`<slot></slot>`}establishFormData(){const o=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!o||0===o?.length)return;const e=Array.from(o).filter((o=>!o.assignedSlot&&(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement||o instanceof Fe)&&o.name));e.forEach((o=>{const e=o;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 Fe)for(let[o,t]of e.value.entries())this.value.set(`${this.name}${o}`,t);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),console.trace(`Set ${this.name} values to `,this.value)}};Xe([ve({type:FormData}),Ye("design:type",FormData)],Ke.prototype,"value",void 0),Xe([ve({type:String}),Ye("design:type",Object)],Ke.prototype,"template",void 0),Xe([ve({type:String}),Ye("design:type",Object)],Ke.prototype,"name",void 0),Xe([ve({type:Object}),Ye("design:type",Object)],Ke.prototype,"data",void 0),Ke=Fe=Xe([pe("qbo-form-element"),Ye("design:paramtypes",[])],Ke);const{I:We}=de,Qe=o=>(...e)=>({_$litDirective$:o,values:e});class Je{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,e,t){this._$Ct=o,this._$AM=e,this._$Ci=t}_$AS(o,e){return this.update(o,e)}update(o,e){return this.render(...e)}}const Ze=(o,e)=>{const t=o._$AN;if(void 0===t)return!1;for(const o of t)o._$AO?.(e,!1),Ze(o,e);return!0},ot=o=>{let e,t;do{if(void 0===(e=o._$AM))break;t=e._$AN,t.delete(o),o=e}while(0===t?.size)},et=o=>{for(let e;e=o._$AM;o=e){let t=e._$AN;if(void 0===t)e._$AN=t=new Set;else if(t.has(o))break;t.add(o),nt(e)}};function tt(o){void 0!==this._$AN?(ot(this),this._$AM=o,et(this)):this._$AM=o}function rt(o,e=!1,t=0){const r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(r))for(let o=t;o<r.length;o++)Ze(r[o],!1),ot(r[o]);else null!=r&&(Ze(r,!1),ot(r));else Ze(this,o)}const nt=o=>{2==o.type&&(o._$AP??=rt,o._$AQ??=tt)};class it extends Je{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,t){super._$AT(o,e,t),et(this),this.isConnected=o._$AU}_$AO(o,e=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),e&&(Ze(this,o),ot(this))}setValue(o){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(o,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=o,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class at{constructor(o){this.Y=o}disconnect(){this.Y=void 0}reconnect(o){this.Y=o}deref(){return this.Y}}class bt{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise((o=>this.q=o))}resume(){this.q?.(),this.Z=this.q=void 0}}const lt=o=>!(o=>null===o||"object"!=typeof o&&"function"!=typeof o)(o)&&"function"==typeof o.then,st=1073741823,dt=Qe(class extends it{constructor(){super(...arguments),this._$Cwt=st,this._$Cbt=[],this._$CK=new at(this),this._$CX=new bt}render(...o){return o.find((o=>!lt(o)))??Ko}update(o,e){const t=this._$Cbt;let r=t.length;this._$Cbt=e;const n=this._$CK,i=this._$CX;this.isConnected||this.disconnected();for(let o=0;o<e.length&&!(o>this._$Cwt);o++){const a=e[o];if(!lt(a))return this._$Cwt=o,a;o<r&&a===t[o]||(this._$Cwt=st,r=0,Promise.resolve(a).then((async o=>{for(;i.get();)await i.get();const e=n.deref();if(void 0!==e){const t=e._$Cbt.indexOf(a);t>-1&&t<e._$Cwt&&(e._$Cwt=t,e.setValue(o))}})))}return Ko}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var ct,ft=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},mt=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};const pt=new Map;pt.set("accounting","currency-dollar"),pt.set("collection","tag"),pt.set("document","file-earmark"),pt.set("export","database-down"),pt.set("import","database-up"),pt.set("message","envelope"),pt.set("process","building-gear"),pt.set("score","file-spreadsheet"),pt.set("task","list-check"),pt.set("workflow","diagram-2"),pt.set("security","lock"),pt.set("refresh","arrow-repeat"),pt.set("cut","scissors"),pt.set("copy","copy"),pt.set("paste","clipboard"),pt.set("delete","trash"),pt.set("up","arrow-up-circle"),pt.set("down","arrow-down-circle"),pt.set("left","arrow-left-circle"),pt.set("right","arrow-right-circle"),pt.set("copy","trash"),pt.set("maximize","arrow-down-circle"),pt.set("minimize","arrow-right-circle"),pt.set("normal","arrow-down-right-circle"),pt.set("upload","upload"),pt.set("download","download"),pt.set("folder","folder2"),pt.set("folder-open","folder2-open"),pt.set("pdf","filetype-pdf"),pt.set("audio","headphones"),pt.set("video","camera-video"),pt.set("headset","headphones"),pt.set("warning","exclamation-triangle");let gt=class extends fe{constructor(){super(...arguments),this.type="icon",this.icon=null,this.height="1rem",this.width="1rem",this.viewbox="0 0 1em 1em",this.fill="currentColor",this.backgroundColor=null,this.disabled=!1,this.renderInHost=!0,this.selected=!1,this.allIcons=void 0}static{ct=this}static{this.map=pt}static get spriteUrl(){const o=document.querySelector('meta[name="qbo4-basepath"]');return`${o?.getAttribute("value")||""}/ui/images/qbo-icons.svg`}connectedCallback(){this.type??="icon",super.connectedCallback(),"toggle"===this.type&&this.addEventListener("click",this.toggle)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.toggle)}toggle(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent(this.selected?"selected":"delected",{bubbles:!0,composed:!0}))}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(o){super.updated(o),o.has("selected")&&"toggle"===this.type&&this.setAttribute("aria-pressed",this.selected?"true":"false")}async loadIcons(){if(this.allIcons)return this.allIcons;try{const o=await fetch(this.sprite??ct.spriteUrl),e=await o.text(),t=(new DOMParser).parseFromString(e,"image/svg+xml").querySelectorAll("symbol");this.allIcons=Array.from(t).map((o=>o.id))}catch(o){console.error("Error loading icons:",o)}return this.allIcons}renderStandard(o){return Yo`<div class="row">
92
92
  ${Array.from(pt.keys()).map((e=>Yo`<div class="col-3">
93
93
  <li class="list-unstyled">
94
94
  <qbo-icon
@@ -116,7 +116,7 @@ ${Array.from(pt.keys()).map((e=>Yo`<div class="col-3">
116
116
  </li>
117
117
  </div>
118
118
  `))}
119
- </div>`}renderIcon(o){null!=o.icon&&void 0!==o.icon||(console.warn("qbo-icon: icon attribute is required"),o.icon="warning");const e=pt.has(o.icon)?pt.get(o.icon):o.icon;return Yo`<svg width="${o.width}" height="${o.width}" fill="${o.fill}" ?class=${o.getAttribute("class")}><use href="${o.sprite??ct.spriteUrl}#${e}"></use></svg>`}render(){switch(this.type){case"icon":case"button":case"toggle":default:return this.renderIcon(this);case"standard":return this.renderStandard(this);case"all":return Yo`${st(this.renderAll(this),Yo`Loading...`)}`}}};ft([ve(),mt("design:type",String)],gt.prototype,"type",void 0),ft([ve(),mt("design:type",Object)],gt.prototype,"sprite",void 0),ft([ve(),mt("design:type",Object)],gt.prototype,"icon",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"height",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"width",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"viewbox",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"fill",void 0),ft([ve(),mt("design:type",Object)],gt.prototype,"backgroundColor",void 0),ft([ve(),mt("design:type",Boolean)],gt.prototype,"disabled",void 0),ft([ve({type:Boolean,reflect:!0}),mt("design:type",Object)],gt.prototype,"renderInHost",void 0),ft([ve({type:Boolean,reflect:!0}),mt("design:type",Boolean)],gt.prototype,"selected",void 0),gt=ct=ft([pe("qbo-icon")],gt);const ut=Math.min,vt=Math.max,ht=Math.round,xt=(Math.floor,o=>({x:o,y:o})),wt={left:"right",right:"left",bottom:"top",top:"bottom"},qt={start:"end",end:"start"};function yt(o,e,t){return vt(o,ut(e,t))}function kt(o,e){return"function"==typeof o?o(e):o}function zt(o){return o.split("-")[0]}function jt(o){return o.split("-")[1]}function St(o){return"x"===o?"y":"x"}function Rt(o){return"y"===o?"height":"width"}function $t(o){return["top","bottom"].includes(zt(o))?"y":"x"}function Ot(o){return St($t(o))}function At(o){return o.replace(/start|end/g,(o=>qt[o]))}function Et(o){return o.replace(/left|right|bottom|top/g,(o=>wt[o]))}function Ct(o){const{x:e,y:t,width:r,height:n}=o;return{width:r,height:n,top:t,left:e,right:e+r,bottom:t+n,x:e,y:t}}function _t(o,e,t){let{reference:r,floating:n}=o;const i=$t(e),a=Ot(e),b=Rt(a),l=zt(e),d="y"===i,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2,f=r[b]/2-n[b]/2;let m;switch(l){case"top":m={x:s,y:r.y-n.height};break;case"bottom":m={x:s,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:c};break;case"left":m={x:r.x-n.width,y:c};break;default:m={x:r.x,y:r.y}}switch(jt(e)){case"start":m[a]-=f*(t&&d?-1:1);break;case"end":m[a]+=f*(t&&d?-1:1)}return m}async function Pt(o,e){var t;void 0===e&&(e={});const{x:r,y:n,platform:i,rects:a,elements:b,strategy:l}=o,{boundary:d="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:f=!1,padding:m=0}=kt(e,o),p=function(o){return"number"!=typeof o?function(o){return{top:0,right:0,bottom:0,left:0,...o}}(o):{top:o,right:o,bottom:o,left:o}}(m),g=b[f?"floating"===c?"reference":"floating":c],u=Ct(await i.getClippingRect({element:null==(t=await(null==i.isElement?void 0:i.isElement(g)))||t?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(b.floating)),boundary:d,rootBoundary:s,strategy:l})),v="floating"===c?{x:r,y:n,width:a.floating.width,height:a.floating.height}:a.reference,h=await(null==i.getOffsetParent?void 0:i.getOffsetParent(b.floating)),x=await(null==i.isElement?void 0:i.isElement(h))&&await(null==i.getScale?void 0:i.getScale(h))||{x:1,y:1},w=Ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:v,offsetParent:h,strategy:l}):v);return{top:(u.top-w.top+p.top)/x.y,bottom:(w.bottom-u.bottom+p.bottom)/x.y,left:(u.left-w.left+p.left)/x.x,right:(w.right-u.right+p.right)/x.x}}function Mt(){return"undefined"!=typeof window}function Bt(o){return It(o)?(o.nodeName||"").toLowerCase():"#document"}function Lt(o){var e;return(null==o||null==(e=o.ownerDocument)?void 0:e.defaultView)||window}function Tt(o){var e;return null==(e=(It(o)?o.ownerDocument:o.document)||window.document)?void 0:e.documentElement}function It(o){return!!Mt()&&(o instanceof Node||o instanceof Lt(o).Node)}function Dt(o){return!!Mt()&&(o instanceof Element||o instanceof Lt(o).Element)}function Ht(o){return!!Mt()&&(o instanceof HTMLElement||o instanceof Lt(o).HTMLElement)}function Nt(o){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(o instanceof ShadowRoot||o instanceof Lt(o).ShadowRoot)}function Gt(o){const{overflow:e,overflowX:t,overflowY:r,display:n}=Kt(o);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(n)}function Ut(o){return["table","td","th"].includes(Bt(o))}function Vt(o){return[":popover-open",":modal"].some((e=>{try{return o.matches(e)}catch(o){return!1}}))}function Ft(o){const e=Xt(),t=Dt(o)?Kt(o):o;return"none"!==t.transform||"none"!==t.perspective||!!t.containerType&&"normal"!==t.containerType||!e&&!!t.backdropFilter&&"none"!==t.backdropFilter||!e&&!!t.filter&&"none"!==t.filter||["transform","perspective","filter"].some((o=>(t.willChange||"").includes(o)))||["paint","layout","strict","content"].some((o=>(t.contain||"").includes(o)))}function Xt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yt(o){return["html","body","#document"].includes(Bt(o))}function Kt(o){return Lt(o).getComputedStyle(o)}function Wt(o){return Dt(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Qt(o){if("html"===Bt(o))return o;const e=o.assignedSlot||o.parentNode||Nt(o)&&o.host||Tt(o);return Nt(e)?e.host:e}function Jt(o){const e=Qt(o);return Yt(e)?o.ownerDocument?o.ownerDocument.body:o.body:Ht(e)&&Gt(e)?e:Jt(e)}function Zt(o,e,t){var r;void 0===e&&(e=[]),void 0===t&&(t=!0);const n=Jt(o),i=n===(null==(r=o.ownerDocument)?void 0:r.body),a=Lt(n);if(i){const o=or(a);return e.concat(a,a.visualViewport||[],Gt(n)?n:[],o&&t?Zt(o):[])}return e.concat(n,Zt(n,[],t))}function or(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function er(o){const e=Kt(o);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=Ht(o),i=n?o.offsetWidth:t,a=n?o.offsetHeight:r,b=ht(t)!==i||ht(r)!==a;return b&&(t=i,r=a),{width:t,height:r,$:b}}function tr(o){return Dt(o)?o:o.contextElement}function rr(o){const e=tr(o);if(!Ht(e))return xt(1);const t=e.getBoundingClientRect(),{width:r,height:n,$:i}=er(e);let a=(i?ht(t.width):t.width)/r,b=(i?ht(t.height):t.height)/n;return a&&Number.isFinite(a)||(a=1),b&&Number.isFinite(b)||(b=1),{x:a,y:b}}const nr=xt(0);function ir(o){const e=Lt(o);return Xt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:nr}function ar(o,e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1);const n=o.getBoundingClientRect(),i=tr(o);let a=xt(1);e&&(r?Dt(r)&&(a=rr(r)):a=rr(o));const b=function(o,e,t){return void 0===e&&(e=!1),!(!t||e&&t!==Lt(o))&&e}(i,t,r)?ir(i):xt(0);let l=(n.left+b.x)/a.x,d=(n.top+b.y)/a.y,s=n.width/a.x,c=n.height/a.y;if(i){const o=Lt(i),e=r&&Dt(r)?Lt(r):r;let t=o,n=or(t);for(;n&&r&&e!==t;){const o=rr(n),e=n.getBoundingClientRect(),r=Kt(n),i=e.left+(n.clientLeft+parseFloat(r.paddingLeft))*o.x,a=e.top+(n.clientTop+parseFloat(r.paddingTop))*o.y;l*=o.x,d*=o.y,s*=o.x,c*=o.y,l+=i,d+=a,t=Lt(n),n=or(t)}}return Ct({width:s,height:c,x:l,y:d})}function br(o,e){const t=Wt(o).scrollLeft;return e?e.left+t:ar(Tt(o)).left+t}function lr(o,e,t){void 0===t&&(t=!1);const r=o.getBoundingClientRect();return{x:r.left+e.scrollLeft-(t?0:br(o,r)),y:r.top+e.scrollTop}}function dr(o,e,t){let r;if("viewport"===e)r=function(o,e){const t=Lt(o),r=Tt(o),n=t.visualViewport;let i=r.clientWidth,a=r.clientHeight,b=0,l=0;if(n){i=n.width,a=n.height;const o=Xt();(!o||o&&"fixed"===e)&&(b=n.offsetLeft,l=n.offsetTop)}return{width:i,height:a,x:b,y:l}}(o,t);else if("document"===e)r=function(o){const e=Tt(o),t=Wt(o),r=o.ownerDocument.body,n=vt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=vt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-t.scrollLeft+br(o);const b=-t.scrollTop;return"rtl"===Kt(r).direction&&(a+=vt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:b}}(Tt(o));else if(Dt(e))r=function(o,e){const t=ar(o,!0,"fixed"===e),r=t.top+o.clientTop,n=t.left+o.clientLeft,i=Ht(o)?rr(o):xt(1);return{width:o.clientWidth*i.x,height:o.clientHeight*i.y,x:n*i.x,y:r*i.y}}(e,t);else{const t=ir(o);r={x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}return Ct(r)}function sr(o,e){const t=Qt(o);return!(t===e||!Dt(t)||Yt(t))&&("fixed"===Kt(t).position||sr(t,e))}function cr(o,e,t){const r=Ht(e),n=Tt(e),i="fixed"===t,a=ar(o,!0,i,e);let b={scrollLeft:0,scrollTop:0};const l=xt(0);if(r||!r&&!i)if(("body"!==Bt(e)||Gt(n))&&(b=Wt(e)),r){const o=ar(e,!0,i,e);l.x=o.x+e.clientLeft,l.y=o.y+e.clientTop}else n&&(l.x=br(n));const d=!n||r||i?xt(0):lr(n,b);return{x:a.left+b.scrollLeft-l.x-d.x,y:a.top+b.scrollTop-l.y-d.y,width:a.width,height:a.height}}function fr(o){return"static"===Kt(o).position}function mr(o,e){if(!Ht(o)||"fixed"===Kt(o).position)return null;if(e)return e(o);let t=o.offsetParent;return Tt(o)===t&&(t=t.ownerDocument.body),t}function pr(o,e){const t=Lt(o);if(Vt(o))return t;if(!Ht(o)){let e=Qt(o);for(;e&&!Yt(e);){if(Dt(e)&&!fr(e))return e;e=Qt(e)}return t}let r=mr(o,e);for(;r&&Ut(r)&&fr(r);)r=mr(r,e);return r&&Yt(r)&&fr(r)&&!Ft(r)?t:r||function(o){let e=Qt(o);for(;Ht(e)&&!Yt(e);){if(Ft(e))return e;if(Vt(e))return null;e=Qt(e)}return null}(o)||t}const gr={convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{elements:e,rect:t,offsetParent:r,strategy:n}=o;const i="fixed"===n,a=Tt(r),b=!!e&&Vt(e.floating);if(r===a||b&&i)return t;let l={scrollLeft:0,scrollTop:0},d=xt(1);const s=xt(0),c=Ht(r);if((c||!c&&!i)&&(("body"!==Bt(r)||Gt(a))&&(l=Wt(r)),Ht(r))){const o=ar(r);d=rr(r),s.x=o.x+r.clientLeft,s.y=o.y+r.clientTop}const f=!a||c||i?xt(0):lr(a,l,!0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+s.x+f.x,y:t.y*d.y-l.scrollTop*d.y+s.y+f.y}},getDocumentElement:Tt,getClippingRect:function(o){let{element:e,boundary:t,rootBoundary:r,strategy:n}=o;const i=[..."clippingAncestors"===t?Vt(e)?[]:function(o,e){const t=e.get(o);if(t)return t;let r=Zt(o,[],!1).filter((o=>Dt(o)&&"body"!==Bt(o))),n=null;const i="fixed"===Kt(o).position;let a=i?Qt(o):o;for(;Dt(a)&&!Yt(a);){const e=Kt(a),t=Ft(a);t||"fixed"!==e.position||(n=null),(i?!t&&!n:!t&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||Gt(a)&&!t&&sr(o,a))?r=r.filter((o=>o!==a)):n=e,a=Qt(a)}return e.set(o,r),r}(e,this._c):[].concat(t),r],a=i[0],b=i.reduce(((o,t)=>{const r=dr(e,t,n);return o.top=vt(r.top,o.top),o.right=ut(r.right,o.right),o.bottom=ut(r.bottom,o.bottom),o.left=vt(r.left,o.left),o}),dr(e,a,n));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}},getOffsetParent:pr,getElementRects:async function(o){const e=this.getOffsetParent||pr,t=this.getDimensions,r=await t(o.floating);return{reference:cr(o.reference,await e(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(o){return Array.from(o.getClientRects())},getDimensions:function(o){const{width:e,height:t}=er(o);return{width:e,height:t}},getScale:rr,isElement:Dt,isRTL:function(o){return"rtl"===Kt(o).direction}},ur=function(o){return void 0===o&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:b={fn:o=>{let{x:e,y:t}=o;return{x:e,y:t}}},...l}=kt(o,e),d={x:t,y:r},s=await Pt(e,l),c=$t(zt(n)),f=St(c);let m=d[f],p=d[c];if(i){const o="y"===f?"bottom":"right";m=yt(m+s["y"===f?"top":"left"],m,m-s[o])}if(a){const o="y"===c?"bottom":"right";p=yt(p+s["y"===c?"top":"left"],p,p-s[o])}const g=b.fn({...e,[f]:m,[c]:p});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[f]:i,[c]:a}}}}}},vr=function(o){return void 0===o&&(o={}),{name:"flip",options:o,async fn(e){var t,r;const{placement:n,middlewareData:i,rects:a,initialPlacement:b,platform:l,elements:d}=e,{mainAxis:s=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...u}=kt(o,e);if(null!=(t=i.arrow)&&t.alignmentOffset)return{};const v=zt(n),h=$t(b),x=zt(b)===b,w=await(null==l.isRTL?void 0:l.isRTL(d.floating)),q=f||(x||!g?[Et(b)]:function(o){const e=Et(o);return[At(o),e,At(e)]}(b)),y="none"!==p;!f&&y&&q.push(...function(o,e,t,r){const n=jt(o);let i=function(o,e,t){const r=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return t?e?n:r:e?r:n;case"left":case"right":return e?i:a;default:return[]}}(zt(o),"start"===t,r);return n&&(i=i.map((o=>o+"-"+n)),e&&(i=i.concat(i.map(At)))),i}(b,g,p,w));const k=[b,...q],z=await Pt(e,u),j=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(s&&j.push(z[v]),c){const o=function(o,e,t){void 0===t&&(t=!1);const r=jt(o),n=Ot(o),i=Rt(n);let a="x"===n?r===(t?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Et(a)),[a,Et(a)]}(n,a,w);j.push(z[o[0]],z[o[1]])}if(S=[...S,{placement:n,overflows:j}],!j.every((o=>o<=0))){var R,$;const o=((null==(R=i.flip)?void 0:R.index)||0)+1,e=k[o];if(e)return{data:{index:o,overflows:S},reset:{placement:e}};let t=null==($=S.filter((o=>o.overflows[0]<=0)).sort(((o,e)=>o.overflows[1]-e.overflows[1]))[0])?void 0:$.placement;if(!t)switch(m){case"bestFit":{var O;const o=null==(O=S.filter((o=>{if(y){const e=$t(o.placement);return e===h||"y"===e}return!0})).map((o=>[o.placement,o.overflows.filter((o=>o>0)).reduce(((o,e)=>o+e),0)])).sort(((o,e)=>o[1]-e[1]))[0])?void 0:O[0];o&&(t=o);break}case"initialPlacement":t=b}if(n!==t)return{reset:{placement:t}}}return{}}}},hr=(o,e,t)=>{const r=new Map,n={platform:gr,...t},i={...n.platform,_c:r};return(async(o,e,t)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:a}=t,b=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:o,floating:e,strategy:n}),{x:s,y:c}=_t(d,r,l),f=r,m={},p=0;for(let t=0;t<b.length;t++){const{name:i,fn:g}=b[t],{x:u,y:v,data:h,reset:x}=await g({x:s,y:c,initialPlacement:r,placement:f,strategy:n,middlewareData:m,rects:d,platform:a,elements:{reference:o,floating:e}});s=null!=u?u:s,c=null!=v?v:c,m={...m,[i]:{...m[i],...h}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(d=!0===x.rects?await a.getElementRects({reference:o,floating:e,strategy:n}):x.rects),({x:s,y:c}=_t(d,f,l))),t=-1)}return{x:s,y:c,placement:f,strategy:n,middlewareData:m}})(o,e,{...n,platform:i})};var xr=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},wr=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};class qr extends fe{constructor(){super(...arguments),this.placement="bottom-start",this.type="dropdown",this.target=null,this.isOpen=!1,this.middleware=[vr(),ur()],this.handleMenuOpen=o=>{o.preventDefault(),o.stopPropagation(),o.detail.menu!==this&&this.isOpen&&this.closeMenu()},this.handleOutsideClick=o=>{o.target,o.composedPath().includes(this)||this.closeMenu()},this.showContextMenu=o=>{const e=o;o.preventDefault(),o.stopPropagation(),this.isOpen=!0,this.menuContainer.classList.toggle("open",this.isOpen);const t={getBoundingClientRect:()=>({x:e.clientX,y:e.clientY,width:0,height:0,top:e.clientY,left:e.clientX,right:e.clientX,bottom:e.clientY})};this.updateMenuPosition(t)},this.toggleMenu=o=>{o.target;const e=o.composedPath();e.includes(this.triggerButton)&&!e.includes(this.menuContainer)&&(this.isOpen=!this.isOpen,this.menuContainer.classList.toggle("open",this.isOpen),this.isOpen&&(this.updateMenuPosition(this.triggerButton),document.dispatchEvent(new CustomEvent("qbo-menu-open",{bubbles:!0,composed:!0,detail:{menu:this}}))))}}static{this.styles=lo``}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),"context"===this.type?this.triggerButton.removeEventListener("contextmenu",this.showContextMenu):this.triggerButton.removeEventListener("click",this.toggleMenu)}firstUpdated(o){super.firstUpdated(o),this.triggerButton=this.querySelector("*[data-trigger]")||this.querySelector("button")||this.parentElement,this.menuContainer=this.querySelector("*[data-content]")||this.querySelector("aside")||this.querySelector("menu"),"context"===this.type?(this.target&&(this.triggerButton=this.closest(this.target)||(()=>{const o=this.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o.querySelector(this.target):null})()||document.querySelector(this.target)||document),this.triggerButton.addEventListener("contextmenu",this.showContextMenu)):null!=this.triggerButton&&this.triggerButton.addEventListener("click",this.toggleMenu)}closeMenu(){this.isOpen=!1,this.menuContainer.classList.remove("open")}async updateMenuPosition(o){console.log(o,typeof o);const{x:e,y:t}=await hr(o,this.menuContainer,{placement:this.placement,middleware:this.middleware,strategy:"fixed"});Object.assign(this.menuContainer.style,{left:`${e}px`,top:`${t}px`})}render(){return Yo`<slot></slot>`}}xr([ve({type:String}),wr("design:type",String)],qr.prototype,"placement",void 0),xr([ve(),wr("design:type",String)],qr.prototype,"type",void 0),xr([ve(),wr("design:type",Object)],qr.prototype,"target",void 0),xr([he(),wr("design:type",Object)],qr.prototype,"isOpen",void 0),customElements.get("qbo-menu")||customElements.define("qbo-menu",qr);var yr,kr=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},zr=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let jr=class extends fe{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{yr=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const o=new(window.SpeechRecognition||window.webkitSpeechRecognition);o.continuous=this.continuous,o.interimResults=this.interimResults,o.maxAlternatives=this.maxAlternatives,o.onresult=o=>{this.onResult(o)},o.onspeechend=o=>{this.stop(o)},o.onerror=o=>{this.error(o)},this._recognition=o,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(o){const e=o.results[o.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const t=this.target;if(t instanceof HTMLInputElement)"radio"===t.type?t.value===e&&(t.checked=!0):this.continuous?t.value+=e:t.value=e;else if(t instanceof HTMLTextAreaElement)this.continuous?t.value+=e:t.value=e;else if(t instanceof HTMLSelectElement)for(let o=0;o<t.options.length;o++)if(t.options[o].value===e||t.options[o].text===e){t.selectedIndex=o;break}}listen(o){this.listening?this.stop(o):this.start()}start(){this.listening=!0,yr.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(o){this.listening=!1,yr.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(o){console.log("Error during speech recognition:",o)}render(){return Yo`<slot></slot>`}};kr([ve({type:Boolean}),zr("design:type",Object)],jr.prototype,"renderInHost",void 0),kr([ve({type:Boolean}),zr("design:type",Object)],jr.prototype,"continuous",void 0),kr([ve({type:Boolean}),zr("design:type",Object)],jr.prototype,"interimResults",void 0),kr([ve({type:Number}),zr("design:type",Object)],jr.prototype,"maxAlternatives",void 0),kr([ve({type:String}),zr("design:type",Object)],jr.prototype,"for",void 0),kr([ve({type:String}),zr("design:type",Object)],jr.prototype,"class",void 0),kr([ve({type:String}),zr("design:type",Object)],jr.prototype,"activeClass",void 0),jr=yr=kr([pe("qbo-microphone")],jr);var Sr=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Rr=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let $r=class extends fe{constructor(){super(...arguments),this.display=25,this.start=0,this.count=0,this.pageLimit=10,this.currentPage=1,this.rollingView=!0,this.editSize=!0}get maxPage(){return Math.floor(this.count/this.display)+(this.count%this.display==0?0:1)}static{this.styles=[$e,lo``]}goToPage(o){this.currentPage=o,this.dispatchEvent(new CustomEvent("change",{detail:{start:(o-1)*this.display,display:this.display,page:o},bubbles:!0,composed:!0}))}renderPage(o){return Yo`<li class="${this.currentPage===o?"active":""}">
119
+ </div>`}renderIcon(o){null!=o.icon&&void 0!==o.icon||(console.warn("qbo-icon: icon attribute is required"),o.icon="warning");const e=pt.has(o.icon)?pt.get(o.icon):o.icon;return Yo`<svg width="${o.width}" height="${o.width}" fill="${o.fill}" ?class=${o.getAttribute("class")}><use href="${o.sprite??ct.spriteUrl}#${e}"></use></svg>`}render(){switch(this.type){case"icon":case"button":case"toggle":default:return this.renderIcon(this);case"standard":return this.renderStandard(this);case"all":return Yo`${dt(this.renderAll(this),Yo`Loading...`)}`}}};ft([ve(),mt("design:type",String)],gt.prototype,"type",void 0),ft([ve(),mt("design:type",Object)],gt.prototype,"sprite",void 0),ft([ve(),mt("design:type",Object)],gt.prototype,"icon",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"height",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"width",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"viewbox",void 0),ft([ve(),mt("design:type",String)],gt.prototype,"fill",void 0),ft([ve(),mt("design:type",Object)],gt.prototype,"backgroundColor",void 0),ft([ve(),mt("design:type",Boolean)],gt.prototype,"disabled",void 0),ft([ve({type:Boolean,reflect:!0}),mt("design:type",Object)],gt.prototype,"renderInHost",void 0),ft([ve({type:Boolean,reflect:!0}),mt("design:type",Boolean)],gt.prototype,"selected",void 0),gt=ct=ft([pe("qbo-icon")],gt);const ut=Math.min,vt=Math.max,ht=Math.round,xt=(Math.floor,o=>({x:o,y:o})),wt={left:"right",right:"left",bottom:"top",top:"bottom"},qt={start:"end",end:"start"};function yt(o,e,t){return vt(o,ut(e,t))}function kt(o,e){return"function"==typeof o?o(e):o}function zt(o){return o.split("-")[0]}function jt(o){return o.split("-")[1]}function St(o){return"x"===o?"y":"x"}function Rt(o){return"y"===o?"height":"width"}function $t(o){return["top","bottom"].includes(zt(o))?"y":"x"}function Ot(o){return St($t(o))}function At(o){return o.replace(/start|end/g,(o=>qt[o]))}function Et(o){return o.replace(/left|right|bottom|top/g,(o=>wt[o]))}function Ct(o){const{x:e,y:t,width:r,height:n}=o;return{width:r,height:n,top:t,left:e,right:e+r,bottom:t+n,x:e,y:t}}function _t(o,e,t){let{reference:r,floating:n}=o;const i=$t(e),a=Ot(e),b=Rt(a),l=zt(e),s="y"===i,d=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2,f=r[b]/2-n[b]/2;let m;switch(l){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:c};break;case"left":m={x:r.x-n.width,y:c};break;default:m={x:r.x,y:r.y}}switch(jt(e)){case"start":m[a]-=f*(t&&s?-1:1);break;case"end":m[a]+=f*(t&&s?-1:1)}return m}async function Pt(o,e){var t;void 0===e&&(e={});const{x:r,y:n,platform:i,rects:a,elements:b,strategy:l}=o,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:m=0}=kt(e,o),p=function(o){return"number"!=typeof o?function(o){return{top:0,right:0,bottom:0,left:0,...o}}(o):{top:o,right:o,bottom:o,left:o}}(m),g=b[f?"floating"===c?"reference":"floating":c],u=Ct(await i.getClippingRect({element:null==(t=await(null==i.isElement?void 0:i.isElement(g)))||t?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(b.floating)),boundary:s,rootBoundary:d,strategy:l})),v="floating"===c?{x:r,y:n,width:a.floating.width,height:a.floating.height}:a.reference,h=await(null==i.getOffsetParent?void 0:i.getOffsetParent(b.floating)),x=await(null==i.isElement?void 0:i.isElement(h))&&await(null==i.getScale?void 0:i.getScale(h))||{x:1,y:1},w=Ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:v,offsetParent:h,strategy:l}):v);return{top:(u.top-w.top+p.top)/x.y,bottom:(w.bottom-u.bottom+p.bottom)/x.y,left:(u.left-w.left+p.left)/x.x,right:(w.right-u.right+p.right)/x.x}}function Mt(){return"undefined"!=typeof window}function Bt(o){return It(o)?(o.nodeName||"").toLowerCase():"#document"}function Lt(o){var e;return(null==o||null==(e=o.ownerDocument)?void 0:e.defaultView)||window}function Tt(o){var e;return null==(e=(It(o)?o.ownerDocument:o.document)||window.document)?void 0:e.documentElement}function It(o){return!!Mt()&&(o instanceof Node||o instanceof Lt(o).Node)}function Dt(o){return!!Mt()&&(o instanceof Element||o instanceof Lt(o).Element)}function Ht(o){return!!Mt()&&(o instanceof HTMLElement||o instanceof Lt(o).HTMLElement)}function Nt(o){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(o instanceof ShadowRoot||o instanceof Lt(o).ShadowRoot)}function Gt(o){const{overflow:e,overflowX:t,overflowY:r,display:n}=Kt(o);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(n)}function Ut(o){return["table","td","th"].includes(Bt(o))}function Vt(o){return[":popover-open",":modal"].some((e=>{try{return o.matches(e)}catch(o){return!1}}))}function Ft(o){const e=Xt(),t=Dt(o)?Kt(o):o;return"none"!==t.transform||"none"!==t.perspective||!!t.containerType&&"normal"!==t.containerType||!e&&!!t.backdropFilter&&"none"!==t.backdropFilter||!e&&!!t.filter&&"none"!==t.filter||["transform","perspective","filter"].some((o=>(t.willChange||"").includes(o)))||["paint","layout","strict","content"].some((o=>(t.contain||"").includes(o)))}function Xt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yt(o){return["html","body","#document"].includes(Bt(o))}function Kt(o){return Lt(o).getComputedStyle(o)}function Wt(o){return Dt(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Qt(o){if("html"===Bt(o))return o;const e=o.assignedSlot||o.parentNode||Nt(o)&&o.host||Tt(o);return Nt(e)?e.host:e}function Jt(o){const e=Qt(o);return Yt(e)?o.ownerDocument?o.ownerDocument.body:o.body:Ht(e)&&Gt(e)?e:Jt(e)}function Zt(o,e,t){var r;void 0===e&&(e=[]),void 0===t&&(t=!0);const n=Jt(o),i=n===(null==(r=o.ownerDocument)?void 0:r.body),a=Lt(n);if(i){const o=or(a);return e.concat(a,a.visualViewport||[],Gt(n)?n:[],o&&t?Zt(o):[])}return e.concat(n,Zt(n,[],t))}function or(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function er(o){const e=Kt(o);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=Ht(o),i=n?o.offsetWidth:t,a=n?o.offsetHeight:r,b=ht(t)!==i||ht(r)!==a;return b&&(t=i,r=a),{width:t,height:r,$:b}}function tr(o){return Dt(o)?o:o.contextElement}function rr(o){const e=tr(o);if(!Ht(e))return xt(1);const t=e.getBoundingClientRect(),{width:r,height:n,$:i}=er(e);let a=(i?ht(t.width):t.width)/r,b=(i?ht(t.height):t.height)/n;return a&&Number.isFinite(a)||(a=1),b&&Number.isFinite(b)||(b=1),{x:a,y:b}}const nr=xt(0);function ir(o){const e=Lt(o);return Xt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:nr}function ar(o,e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1);const n=o.getBoundingClientRect(),i=tr(o);let a=xt(1);e&&(r?Dt(r)&&(a=rr(r)):a=rr(o));const b=function(o,e,t){return void 0===e&&(e=!1),!(!t||e&&t!==Lt(o))&&e}(i,t,r)?ir(i):xt(0);let l=(n.left+b.x)/a.x,s=(n.top+b.y)/a.y,d=n.width/a.x,c=n.height/a.y;if(i){const o=Lt(i),e=r&&Dt(r)?Lt(r):r;let t=o,n=or(t);for(;n&&r&&e!==t;){const o=rr(n),e=n.getBoundingClientRect(),r=Kt(n),i=e.left+(n.clientLeft+parseFloat(r.paddingLeft))*o.x,a=e.top+(n.clientTop+parseFloat(r.paddingTop))*o.y;l*=o.x,s*=o.y,d*=o.x,c*=o.y,l+=i,s+=a,t=Lt(n),n=or(t)}}return Ct({width:d,height:c,x:l,y:s})}function br(o,e){const t=Wt(o).scrollLeft;return e?e.left+t:ar(Tt(o)).left+t}function lr(o,e,t){void 0===t&&(t=!1);const r=o.getBoundingClientRect();return{x:r.left+e.scrollLeft-(t?0:br(o,r)),y:r.top+e.scrollTop}}function sr(o,e,t){let r;if("viewport"===e)r=function(o,e){const t=Lt(o),r=Tt(o),n=t.visualViewport;let i=r.clientWidth,a=r.clientHeight,b=0,l=0;if(n){i=n.width,a=n.height;const o=Xt();(!o||o&&"fixed"===e)&&(b=n.offsetLeft,l=n.offsetTop)}return{width:i,height:a,x:b,y:l}}(o,t);else if("document"===e)r=function(o){const e=Tt(o),t=Wt(o),r=o.ownerDocument.body,n=vt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=vt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-t.scrollLeft+br(o);const b=-t.scrollTop;return"rtl"===Kt(r).direction&&(a+=vt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:b}}(Tt(o));else if(Dt(e))r=function(o,e){const t=ar(o,!0,"fixed"===e),r=t.top+o.clientTop,n=t.left+o.clientLeft,i=Ht(o)?rr(o):xt(1);return{width:o.clientWidth*i.x,height:o.clientHeight*i.y,x:n*i.x,y:r*i.y}}(e,t);else{const t=ir(o);r={x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}return Ct(r)}function dr(o,e){const t=Qt(o);return!(t===e||!Dt(t)||Yt(t))&&("fixed"===Kt(t).position||dr(t,e))}function cr(o,e,t){const r=Ht(e),n=Tt(e),i="fixed"===t,a=ar(o,!0,i,e);let b={scrollLeft:0,scrollTop:0};const l=xt(0);if(r||!r&&!i)if(("body"!==Bt(e)||Gt(n))&&(b=Wt(e)),r){const o=ar(e,!0,i,e);l.x=o.x+e.clientLeft,l.y=o.y+e.clientTop}else n&&(l.x=br(n));const s=!n||r||i?xt(0):lr(n,b);return{x:a.left+b.scrollLeft-l.x-s.x,y:a.top+b.scrollTop-l.y-s.y,width:a.width,height:a.height}}function fr(o){return"static"===Kt(o).position}function mr(o,e){if(!Ht(o)||"fixed"===Kt(o).position)return null;if(e)return e(o);let t=o.offsetParent;return Tt(o)===t&&(t=t.ownerDocument.body),t}function pr(o,e){const t=Lt(o);if(Vt(o))return t;if(!Ht(o)){let e=Qt(o);for(;e&&!Yt(e);){if(Dt(e)&&!fr(e))return e;e=Qt(e)}return t}let r=mr(o,e);for(;r&&Ut(r)&&fr(r);)r=mr(r,e);return r&&Yt(r)&&fr(r)&&!Ft(r)?t:r||function(o){let e=Qt(o);for(;Ht(e)&&!Yt(e);){if(Ft(e))return e;if(Vt(e))return null;e=Qt(e)}return null}(o)||t}const gr={convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{elements:e,rect:t,offsetParent:r,strategy:n}=o;const i="fixed"===n,a=Tt(r),b=!!e&&Vt(e.floating);if(r===a||b&&i)return t;let l={scrollLeft:0,scrollTop:0},s=xt(1);const d=xt(0),c=Ht(r);if((c||!c&&!i)&&(("body"!==Bt(r)||Gt(a))&&(l=Wt(r)),Ht(r))){const o=ar(r);s=rr(r),d.x=o.x+r.clientLeft,d.y=o.y+r.clientTop}const f=!a||c||i?xt(0):lr(a,l,!0);return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+d.x+f.x,y:t.y*s.y-l.scrollTop*s.y+d.y+f.y}},getDocumentElement:Tt,getClippingRect:function(o){let{element:e,boundary:t,rootBoundary:r,strategy:n}=o;const i=[..."clippingAncestors"===t?Vt(e)?[]:function(o,e){const t=e.get(o);if(t)return t;let r=Zt(o,[],!1).filter((o=>Dt(o)&&"body"!==Bt(o))),n=null;const i="fixed"===Kt(o).position;let a=i?Qt(o):o;for(;Dt(a)&&!Yt(a);){const e=Kt(a),t=Ft(a);t||"fixed"!==e.position||(n=null),(i?!t&&!n:!t&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||Gt(a)&&!t&&dr(o,a))?r=r.filter((o=>o!==a)):n=e,a=Qt(a)}return e.set(o,r),r}(e,this._c):[].concat(t),r],a=i[0],b=i.reduce(((o,t)=>{const r=sr(e,t,n);return o.top=vt(r.top,o.top),o.right=ut(r.right,o.right),o.bottom=ut(r.bottom,o.bottom),o.left=vt(r.left,o.left),o}),sr(e,a,n));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}},getOffsetParent:pr,getElementRects:async function(o){const e=this.getOffsetParent||pr,t=this.getDimensions,r=await t(o.floating);return{reference:cr(o.reference,await e(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(o){return Array.from(o.getClientRects())},getDimensions:function(o){const{width:e,height:t}=er(o);return{width:e,height:t}},getScale:rr,isElement:Dt,isRTL:function(o){return"rtl"===Kt(o).direction}},ur=function(o){return void 0===o&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:b={fn:o=>{let{x:e,y:t}=o;return{x:e,y:t}}},...l}=kt(o,e),s={x:t,y:r},d=await Pt(e,l),c=$t(zt(n)),f=St(c);let m=s[f],p=s[c];if(i){const o="y"===f?"bottom":"right";m=yt(m+d["y"===f?"top":"left"],m,m-d[o])}if(a){const o="y"===c?"bottom":"right";p=yt(p+d["y"===c?"top":"left"],p,p-d[o])}const g=b.fn({...e,[f]:m,[c]:p});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[f]:i,[c]:a}}}}}},vr=function(o){return void 0===o&&(o={}),{name:"flip",options:o,async fn(e){var t,r;const{placement:n,middlewareData:i,rects:a,initialPlacement:b,platform:l,elements:s}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...u}=kt(o,e);if(null!=(t=i.arrow)&&t.alignmentOffset)return{};const v=zt(n),h=$t(b),x=zt(b)===b,w=await(null==l.isRTL?void 0:l.isRTL(s.floating)),q=f||(x||!g?[Et(b)]:function(o){const e=Et(o);return[At(o),e,At(e)]}(b)),y="none"!==p;!f&&y&&q.push(...function(o,e,t,r){const n=jt(o);let i=function(o,e,t){const r=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return t?e?n:r:e?r:n;case"left":case"right":return e?i:a;default:return[]}}(zt(o),"start"===t,r);return n&&(i=i.map((o=>o+"-"+n)),e&&(i=i.concat(i.map(At)))),i}(b,g,p,w));const k=[b,...q],z=await Pt(e,u),j=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&j.push(z[v]),c){const o=function(o,e,t){void 0===t&&(t=!1);const r=jt(o),n=Ot(o),i=Rt(n);let a="x"===n?r===(t?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Et(a)),[a,Et(a)]}(n,a,w);j.push(z[o[0]],z[o[1]])}if(S=[...S,{placement:n,overflows:j}],!j.every((o=>o<=0))){var R,$;const o=((null==(R=i.flip)?void 0:R.index)||0)+1,e=k[o];if(e)return{data:{index:o,overflows:S},reset:{placement:e}};let t=null==($=S.filter((o=>o.overflows[0]<=0)).sort(((o,e)=>o.overflows[1]-e.overflows[1]))[0])?void 0:$.placement;if(!t)switch(m){case"bestFit":{var O;const o=null==(O=S.filter((o=>{if(y){const e=$t(o.placement);return e===h||"y"===e}return!0})).map((o=>[o.placement,o.overflows.filter((o=>o>0)).reduce(((o,e)=>o+e),0)])).sort(((o,e)=>o[1]-e[1]))[0])?void 0:O[0];o&&(t=o);break}case"initialPlacement":t=b}if(n!==t)return{reset:{placement:t}}}return{}}}},hr=(o,e,t)=>{const r=new Map,n={platform:gr,...t},i={...n.platform,_c:r};return(async(o,e,t)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:a}=t,b=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let s=await a.getElementRects({reference:o,floating:e,strategy:n}),{x:d,y:c}=_t(s,r,l),f=r,m={},p=0;for(let t=0;t<b.length;t++){const{name:i,fn:g}=b[t],{x:u,y:v,data:h,reset:x}=await g({x:d,y:c,initialPlacement:r,placement:f,strategy:n,middlewareData:m,rects:s,platform:a,elements:{reference:o,floating:e}});d=null!=u?u:d,c=null!=v?v:c,m={...m,[i]:{...m[i],...h}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:o,floating:e,strategy:n}):x.rects),({x:d,y:c}=_t(s,f,l))),t=-1)}return{x:d,y:c,placement:f,strategy:n,middlewareData:m}})(o,e,{...n,platform:i})};var xr=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},wr=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};class qr extends fe{constructor(){super(...arguments),this.placement="bottom-start",this.type="dropdown",this.target=null,this.isOpen=!1,this.middleware=[vr(),ur()],this.handleMenuOpen=o=>{o.preventDefault(),o.stopPropagation(),o.detail.menu!==this&&this.isOpen&&this.closeMenu()},this.handleOutsideClick=o=>{o.target,o.composedPath().includes(this)||this.closeMenu()},this.showContextMenu=o=>{const e=o;o.preventDefault(),o.stopPropagation(),this.isOpen=!0,this.menuContainer.classList.toggle("open",this.isOpen);const t={getBoundingClientRect:()=>({x:e.clientX,y:e.clientY,width:0,height:0,top:e.clientY,left:e.clientX,right:e.clientX,bottom:e.clientY})};this.updateMenuPosition(t)},this.toggleMenu=o=>{o.target;const e=o.composedPath();e.includes(this.triggerButton)&&!e.includes(this.menuContainer)&&(this.isOpen=!this.isOpen,this.menuContainer.classList.toggle("open",this.isOpen),this.isOpen&&(this.updateMenuPosition(this.triggerButton),document.dispatchEvent(new CustomEvent("qbo-menu-open",{bubbles:!0,composed:!0,detail:{menu:this}}))))}}static{this.styles=lo``}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),"context"===this.type?this.triggerButton.removeEventListener("contextmenu",this.showContextMenu):this.triggerButton.removeEventListener("click",this.toggleMenu)}firstUpdated(o){super.firstUpdated(o),this.triggerButton=this.querySelector("*[data-trigger]")||this.querySelector("button")||this.parentElement,this.menuContainer=this.querySelector("*[data-content]")||this.querySelector("aside")||this.querySelector("menu"),"context"===this.type?(this.target&&(this.triggerButton=this.closest(this.target)||(()=>{const o=this.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o.querySelector(this.target):null})()||document.querySelector(this.target)||document),this.triggerButton.addEventListener("contextmenu",this.showContextMenu)):null!=this.triggerButton&&this.triggerButton.addEventListener("click",this.toggleMenu)}closeMenu(){this.isOpen=!1,this.menuContainer.classList.remove("open")}async updateMenuPosition(o){console.log(o,typeof o);const{x:e,y:t}=await hr(o,this.menuContainer,{placement:this.placement,middleware:this.middleware,strategy:"fixed"});Object.assign(this.menuContainer.style,{left:`${e}px`,top:`${t}px`})}render(){return Yo`<slot></slot>`}}xr([ve({type:String}),wr("design:type",String)],qr.prototype,"placement",void 0),xr([ve(),wr("design:type",String)],qr.prototype,"type",void 0),xr([ve(),wr("design:type",Object)],qr.prototype,"target",void 0),xr([he(),wr("design:type",Object)],qr.prototype,"isOpen",void 0),customElements.get("qbo-menu")||customElements.define("qbo-menu",qr);var yr,kr=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},zr=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let jr=class extends fe{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{yr=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const o=new(window.SpeechRecognition||window.webkitSpeechRecognition);o.continuous=this.continuous,o.interimResults=this.interimResults,o.maxAlternatives=this.maxAlternatives,o.onresult=o=>{this.onResult(o)},o.onspeechend=o=>{this.stop(o)},o.onerror=o=>{this.error(o)},this._recognition=o,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(o){const e=o.results[o.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const t=this.target;if(t instanceof HTMLInputElement)"radio"===t.type?t.value===e&&(t.checked=!0):this.continuous?t.value+=e:t.value=e;else if(t instanceof HTMLTextAreaElement)this.continuous?t.value+=e:t.value=e;else if(t instanceof HTMLSelectElement)for(let o=0;o<t.options.length;o++)if(t.options[o].value===e||t.options[o].text===e){t.selectedIndex=o;break}}listen(o){this.listening?this.stop(o):this.start()}start(){this.listening=!0,yr.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(o){this.listening=!1,yr.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(o){console.log("Error during speech recognition:",o)}render(){return Yo`<slot></slot>`}};kr([ve({type:Boolean}),zr("design:type",Object)],jr.prototype,"renderInHost",void 0),kr([ve({type:Boolean}),zr("design:type",Object)],jr.prototype,"continuous",void 0),kr([ve({type:Boolean}),zr("design:type",Object)],jr.prototype,"interimResults",void 0),kr([ve({type:Number}),zr("design:type",Object)],jr.prototype,"maxAlternatives",void 0),kr([ve({type:String}),zr("design:type",Object)],jr.prototype,"for",void 0),kr([ve({type:String}),zr("design:type",Object)],jr.prototype,"class",void 0),kr([ve({type:String}),zr("design:type",Object)],jr.prototype,"activeClass",void 0),jr=yr=kr([pe("qbo-microphone")],jr);var Sr=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Rr=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let $r=class extends fe{constructor(){super(...arguments),this.display=25,this.start=0,this.count=0,this.pageLimit=10,this.currentPage=1,this.rollingView=!0,this.editSize=!0}get maxPage(){return Math.floor(this.count/this.display)+(this.count%this.display==0?0:1)}static{this.styles=[$e,lo``]}goToPage(o){this.currentPage=o,this.dispatchEvent(new CustomEvent("change",{detail:{start:(o-1)*this.display,display:this.display,page:o},bubbles:!0,composed:!0}))}renderPage(o){return Yo`<li class="${this.currentPage===o?"active":""}">
120
120
  <a @click="${e=>this.goToPage(o)}">${o}</a>
121
121
  </li>`}renderSpacer(){return Yo`<li class="disabled"><a>...</a></li>`}renderPageNumbers(){const o=[];let e=this.maxPage>this.pageLimit?this.currentPage-Math.floor(this.pageLimit/2):1;e<1&&(e=1);let t=this.maxPage>this.pageLimit?e+this.pageLimit-1:this.maxPage;t<=1&&(t=1),e>1&&(o.push(this.renderPage(1)),o.push(this.renderSpacer()));for(let r=e;r<=t;r++)o.push(this.renderPage(r));return t<this.maxPage&&(o.push(this.renderSpacer()),o.push(this.renderPage(this.maxPage))),o}setDisplaySize(o){const e=o.target,t=parseInt(e.value);isNaN(t)||(this.display=t,this.start=0,this.goToPage(1))}renderPageSize(){return Yo`<li class="pageSize">
122
122
  <input type="number" min="5" value="${this.display}" title="Display Size" @change=${o=>this.setDisplaySize(o)}>
@@ -211,5 +211,5 @@ ${Array.from(pt.keys()).map((e=>Yo`<div class="col-3">
211
211
  </div>
212
212
  </footer>
213
213
  </dialog>
214
- `:Yo``}`}};function rn(o,e,t="qbo4.ui.preferences"){const r=localStorage.getItem(t);let n={};if(r)try{n=JSON.parse(r)}catch(o){console.error(`Error parsing ${t} from localStorage:`,o,r)}n[o]=e;try{localStorage.setItem(t,JSON.stringify(n))}catch(o){console.error(`Error saving ${t} to localStorage:`,o)}}function nn(o,e="qbo4.ui.preferences"){const t=localStorage.getItem(e);if(t)try{return JSON.parse(t)[o]}catch(o){console.error(`Error parsing ${e} from localStorage:`,o,t)}}function an(o,e=" "){return o.filter(Boolean).join(e)}function bn(o,e=null){if(null==o||isNaN(new Date(o).getTime()))return null;const t=e??nn("dateFormat")??"MM/dd/yyyy",r={};return t.includes("yyyy")&&(r.year="numeric"),t.includes("MM")&&(r.month=t.includes("MMM")?"short":"2-digit"),t.includes("dd")&&(r.day="2-digit"),t.includes("HH")&&(r.hour="2-digit"),t.includes("mm")&&(r.minute="2-digit"),t.includes("ss")&&(r.second="2-digit"),t.includes("tt")&&(r.hour12=!0),t.includes("dddd")&&(r.weekday="long"),t.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(o))}on([ve({type:Object}),en("design:type",Object)],tn.prototype,"preferences",void 0),on([ve(),en("design:type",String)],tn.prototype,"key",void 0),on([he(),en("design:type",Object)],tn.prototype,"isEditing",void 0),tn=on([pe("qbo-user-preferences"),en("design:paramtypes",[])],tn);var ln=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},dn=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let sn=class extends fe{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 o=>{console.trace("validating form"),o.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const o of e)o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement?(console.trace("validating element ",o),await this.validateElement(o)):console.trace("ignoring element ",o);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),o.preventDefault(),o.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async o=>{const e=o instanceof Event?o.target:o;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const o of this.validators)if(e.matches(o.selector)){if(console.trace("element matches selector ",o.selector," for ",e.matches(o.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((o=>e.classList.add(o)));const t=await o.validate(e);this.workingClass.forEach((o=>e.classList.remove(o))),e.setCustomValidity(t?"":o.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",o.selector," for ",e.matches(o.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=A.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(C),this.validators.forEach((o=>o.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((o=>o.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return Yo``}};function cn(o,e,t="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+t,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(o)}function fn(o){const e=o.dataset,t={};for(const o in e)e.hasOwnProperty(o)&&void 0!==e[o]&&(t[o]=e[o]);return t}function mn(o){return o&&""!=o.trim()?new Date(o).toISOString().slice(0,10):""}function pn(o){return o&&""!=o.trim()?new Date(o).toLocaleString().replace(",",""):""}ln([ve({type:Boolean}),dn("design:type",Object)],sn.prototype,"renderInHost",void 0),ln([ve({type:String}),dn("design:type",Object)],sn.prototype,"autoComplete",void 0),ln([ve({type:String}),dn("design:type",Object)],sn.prototype,"validatedClass",void 0),ln([ve({converter:{fromAttribute:(o,e)=>o?.split(" "),toAttribute:(o,e)=>o.join(" ")}}),dn("design:type",Object)],sn.prototype,"workingClass",void 0),sn=ln([pe("qbo-validate"),dn("design:paramtypes",[])],sn);var gn=n.tz,un=n.O2,vn=n.m$,hn=n.Il,xn=n.P7,wn=n.Dg,qn=n.ho,yn=n.OU,kn=n.Kt,zn=n.$4,jn=n.Je,Sn=n.ZF,Rn=n.dm,$n=n.No,On=n.SD,An=n.RK,En=n.R$,Cn=n.kq,_n=n.EB,Pn=n.bA,Mn=n.U6,Bn=n.OK,Ln=n.hX,Tn=n.V9,In=n.FX,Dn=n.j_,Hn=n.PK,Nn=n.N6,Gn=n.Cv,Un=n.vn,Vn=n.zZ,Fn=n.k$,Xn=n.xC,Yn=n.G8,Kn=n.bj,Wn=n.Nw,Qn=n.Tt,Jn=n.Ng,Zn=n.Ty,oi=n.f_,ei=n.Qg,ti=n.BL,ri=n.BV,ni=n.bX,ii=n.Yq,ai=n.c7,bi=n._e,li=n.Tj,di=n.fj,si=n.cK,ci=n.On,fi=n.B_,mi=n.I6,pi=n.aA,gi=n.$p,ui=n.$7,vi=n.V2;export{gn as ContextMenu,un as Dependency,vn as DependencyValidator,hn as DependencyValidatorOptions,xn as DependencyValidatorOptionsToken,wn as EmailValidator,qn as ExistsValidator,yn as IApiServiceToken,kn as Mode,zn as QboApiElement,jn as QboCard,Sn as QboDataList,Rn as QboDocViewer,$n as QboFetch,On as QboFetchMixin,An as QboFormEdit,En as QboFormElement,Cn as QboIcon,_n as QboMenu,Pn as QboMicrophone,Mn as QboPaginate,Bn as QboPopover,Ln as QboPopup,Tn as QboPopupListener,In as QboResize,Dn as QboSelect,Hn as QboSelectable,Nn as QboTable,Gn as QboUserPreferences,Un as QboValidate,Vn as ResizeType,Fn as RestApiService,Xn as Services,Yn as ValidateToken,Kn as ZipCodeValidator,Wn as bootstrap,Qn as bootstrapicons,Jn as elementClearValue,Zn as elementData,oi as elementDate,ei as elementDateTime,ti as elementOptions,ri as elementResetValue,ni as elementSelectorAll,ii as formatDate,ai as getApiService,bi as getArray,li as getUserPreference,di as join,si as matches,ci as qbocss,fi as qboui,mi as registerRestApi,pi as replicate,gi as services,ui as setUserPreference,vi as substitute};
214
+ `:Yo``}`}};function rn(o,e,t="qbo4.ui.preferences"){const r=localStorage.getItem(t);let n={};if(r)try{n=JSON.parse(r)}catch(o){console.error(`Error parsing ${t} from localStorage:`,o,r)}n[o]=e;try{localStorage.setItem(t,JSON.stringify(n))}catch(o){console.error(`Error saving ${t} to localStorage:`,o)}}function nn(o,e="qbo4.ui.preferences"){const t=localStorage.getItem(e);if(t)try{return JSON.parse(t)[o]}catch(o){console.error(`Error parsing ${e} from localStorage:`,o,t)}}function an(o,e=" "){return o.filter(Boolean).join(e)}function bn(o,e=null){if(null==o||isNaN(new Date(o).getTime()))return null;const t=e??nn("dateFormat")??"MM/dd/yyyy",r={};return t.includes("yyyy")&&(r.year="numeric"),t.includes("MM")&&(r.month=t.includes("MMM")?"short":"2-digit"),t.includes("dd")&&(r.day="2-digit"),t.includes("HH")&&(r.hour="2-digit"),t.includes("mm")&&(r.minute="2-digit"),t.includes("ss")&&(r.second="2-digit"),t.includes("tt")&&(r.hour12=!0),t.includes("dddd")&&(r.weekday="long"),t.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(o))}on([ve({type:Object}),en("design:type",Object)],tn.prototype,"preferences",void 0),on([ve(),en("design:type",String)],tn.prototype,"key",void 0),on([he(),en("design:type",Object)],tn.prototype,"isEditing",void 0),tn=on([pe("qbo-user-preferences"),en("design:paramtypes",[])],tn);var ln=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},sn=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let dn=class extends fe{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 o=>{console.trace("validating form"),o.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const o of e)o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement?(console.trace("validating element ",o),await this.validateElement(o)):console.trace("ignoring element ",o);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),o.preventDefault(),o.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async o=>{const e=o instanceof Event?o.target:o;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const o of this.validators)if(e.matches(o.selector)){if(console.trace("element matches selector ",o.selector," for ",e.matches(o.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((o=>e.classList.add(o)));const t=await o.validate(e);this.workingClass.forEach((o=>e.classList.remove(o))),e.setCustomValidity(t?"":o.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",o.selector," for ",e.matches(o.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=A.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(C),this.validators.forEach((o=>o.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((o=>o.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return Yo``}};function cn(o,e,t="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+t,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(o)}function fn(o){const e=o.dataset,t={};for(const o in e)e.hasOwnProperty(o)&&void 0!==e[o]&&(t[o]=e[o]);return t}function mn(o){return o&&""!=o.trim()?new Date(o).toISOString().slice(0,10):""}function pn(o){return o&&""!=o.trim()?new Date(o).toLocaleString().replace(",",""):""}function gn(o,e="USD",t="en-US"){return o?new Intl.NumberFormat(t,{style:"currency",currency:e}).format(Number(o)):""}function un(o,e=2,t="en-US"){return o?new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:e}).format(Number(o)):""}ln([ve({type:Boolean}),sn("design:type",Object)],dn.prototype,"renderInHost",void 0),ln([ve({type:String}),sn("design:type",Object)],dn.prototype,"autoComplete",void 0),ln([ve({type:String}),sn("design:type",Object)],dn.prototype,"validatedClass",void 0),ln([ve({converter:{fromAttribute:(o,e)=>o?.split(" "),toAttribute:(o,e)=>o.join(" ")}}),sn("design:type",Object)],dn.prototype,"workingClass",void 0),dn=ln([pe("qbo-validate"),sn("design:paramtypes",[])],dn);var vn=n.tz,hn=n.O2,xn=n.m$,wn=n.Il,qn=n.P7,yn=n.Dg,kn=n.ho,zn=n.OU,jn=n.Kt,Sn=n.$4,Rn=n.Je,$n=n.ZF,On=n.dm,An=n.No,En=n.SD,Cn=n.RK,_n=n.R$,Pn=n.kq,Mn=n.EB,Bn=n.bA,Ln=n.U6,Tn=n.OK,In=n.hX,Dn=n.V9,Hn=n.FX,Nn=n.j_,Gn=n.PK,Un=n.N6,Vn=n.Cv,Fn=n.vn,Xn=n.zZ,Yn=n.k$,Kn=n.xC,Wn=n.G8,Qn=n.bj,Jn=n.Nw,Zn=n.Tt,oi=n.Ng,ei=n.Ty,ti=n.f_,ri=n.Qg,ni=n.fZ,ii=n.BL,ai=n.tx,bi=n.BV,li=n.bX,si=n.Yq,di=n.c7,ci=n._e,fi=n.Tj,mi=n.fj,pi=n.cK,gi=n.On,ui=n.B_,vi=n.I6,hi=n.aA,xi=n.$p,wi=n.$7,qi=n.V2;export{vn as ContextMenu,hn as Dependency,xn as DependencyValidator,wn as DependencyValidatorOptions,qn as DependencyValidatorOptionsToken,yn as EmailValidator,kn as ExistsValidator,zn as IApiServiceToken,jn as Mode,Sn as QboApiElement,Rn as QboCard,$n as QboDataList,On as QboDocViewer,An as QboFetch,En as QboFetchMixin,Cn as QboFormEdit,_n as QboFormElement,Pn as QboIcon,Mn as QboMenu,Bn as QboMicrophone,Ln as QboPaginate,Tn as QboPopover,In as QboPopup,Dn as QboPopupListener,Hn as QboResize,Nn as QboSelect,Gn as QboSelectable,Un as QboTable,Vn as QboUserPreferences,Fn as QboValidate,Xn as ResizeType,Yn as RestApiService,Kn as Services,Wn as ValidateToken,Qn as ZipCodeValidator,Jn as bootstrap,Zn as bootstrapicons,oi as elementClearValue,ei as elementData,ti as elementDate,ri as elementDateTime,ni as elementMoney,ii as elementOptions,ai as elementPercentage,bi as elementResetValue,li as elementSelectorAll,si as formatDate,di as getApiService,ci as getArray,fi as getUserPreference,mi as join,pi as matches,gi as qbocss,ui as qboui,vi as registerRestApi,hi as replicate,xi as services,wi as setUserPreference,qi as substitute};
215
215
  //# sourceMappingURL=qbo4.ui.min.js.map