!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VueMdb={},e.Vue)}(this,(function(e,t){"use strict";var n=Object.defineProperty,i=(e,t,i)=>((e,t,i)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i)
/*!
 * Vue MDBootstrap v2.1.7
 * Released under the BSD-3 License.
 * Copyright Ahmad Fajar <https://ahmadfajar.github.io>.
 */;function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,s=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>s(t)===e),u=e=>t=>typeof t===e,{isArray:c}=Array,d=u("undefined");const h=l("ArrayBuffer");const f=u("string"),p=u("function"),m=u("number"),v=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==s(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=l("Date"),b=l("File"),w=l("Blob"),x=l("FileList"),S=l("URLSearchParams"),[E,k,_,C]=["ReadableStream","Request","Response","Headers"].map(l);function T(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),c(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let a;for(i=0;i<o;i++)a=r[i],t.call(null,e[a],a,e)}}function O(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,$=e=>!d(e)&&e!==N;const I=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&a(Uint8Array)),A=l("HTMLFormElement"),P=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),M=l("RegExp"),D=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};T(n,((n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)})),Object.defineProperties(e,i)},V="abcdefghijklmnopqrstuvwxyz",L="0123456789",B={DIGIT:L,ALPHA:V,ALPHA_DIGIT:V+V.toUpperCase()+L};const F=l("AsyncFunction"),j=(R="function"==typeof setImmediate,z=p(N.postMessage),R?setImmediate:z?(U=`axios@${Math.random()}`,W=[],N.addEventListener("message",(({source:e,data:t})=>{e===N&&t===U&&W.length&&W.shift()()}),!1),e=>{W.push(e),N.postMessage(U,"*")}):e=>setTimeout(e));var R,z,U,W;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||j,q={isArray:c,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=s(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:g,isReadableStream:E,isRequest:k,isResponse:_,isHeaders:C,isUndefined:d,isDate:y,isFile:b,isBlob:w,isRegExp:M,isFunction:p,isStream:e=>v(e)&&p(e.pipe),isURLSearchParams:S,isTypedArray:I,isFileList:x,forEach:T,merge:function e(){const{caseless:t}=$(this)&&this||{},n={},i=(i,r)=>{const o=t&&O(n,r)||r;g(n[o])&&g(i)?n[o]=e(n[o],i):g(i)?n[o]=e({},i):c(i)?n[o]=i.slice():n[o]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&T(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(T(t,((t,i)=>{n&&p(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,o,s;const l={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)s=r[o],i&&!i(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:A,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:D,freezeMethods:e=>{D(e,((t,n)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];p(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:O,global:N,isContextDefined:$,ALPHABET:B,generateString:(e=16,t=B.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=c(e)?[]:{};return T(e,((e,t)=>{const o=n(e,i+1);!d(o)&&(r[t]=o)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(v(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:j,asap:H};function Z(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}q.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}});const Y=Z.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{X[e]={value:e}})),Object.defineProperties(Z,X),Object.defineProperty(Y,"isAxiosError",{value:!0}),Z.from=(e,t,n,i,r,o)=>{const a=Object.create(Y);return q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Z.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function G(e){return q.isPlainObject(e)||q.isArray(e)}function J(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function K(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Q=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ee(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,r=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!s&&q.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(q.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(G)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=J(n),s.forEach((function(e,i){!q.isUndefined(e)&&null!==e&&t.append(!0===a?K([n],i,o):null===a?n:n+"[]",l(e))})),!1;return!!G(e)||(t.append(K(r,n,o),l(e)),!1)}const c=[],d=Object.assign(Q,{defaultVisitor:u,convertValue:l,isVisitable:G});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!q.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+i.join("."));c.push(n),q.forEach(n,(function(n,o){!0===(!(q.isUndefined(n)||null===n)&&r.call(t,n,q.isString(o)?o.trim():o,i,d))&&e(n,i?i.concat(o):[o])})),c.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&ee(e,this,t)}const ie=ne.prototype;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,n){if(!t)return e;const i=n&&n.encode||re;q.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(o=r?r(t,n):q.isURLSearchParams(t)?t.toString():new ne(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ae{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ue="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,de=ue&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ue&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,navigator:ce,origin:fe},Symbol.toStringTag,{value:"Module"})),...le};function me(e){function t(e,n,i,r){let o=e[r++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=r>=e.length;if(o=!o&&q.isArray(i)?i.length:o,s)return q.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&q.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],r)&&q.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],t[o]=e[o];return t}(i[o])),!a}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,((e,i)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const ve={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=q.isObject(e);r&&q.isHTMLForm(e)&&(e=new FormData(e));if(q.isFormData(e))return i?JSON.stringify(me(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new pe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return pe.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(0,JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ve.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(e=>{ve.headers[e]={}}));const ge=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ye=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:q.isArray(e)?e.map(we):String(e)}function xe(e,t,n,i,r){return q.isFunction(i)?i.call(this,t,n):(r&&(t=n),q.isString(t)?q.isString(i)?-1!==t.indexOf(i):q.isRegExp(i)?i.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=be(t);if(!r)throw new Error("header name must be a non-empty string");const o=q.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=we(e))}const o=(e,t)=>q.forEach(e,((e,n)=>r(e,n,t)));if(q.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&ge[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(q.isHeaders(e))for(const[t,i]of e.entries())r(i,t,n);else null!=e&&r(t,e,n);return this}get(e,t){if(e=be(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!xe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=be(e)){const r=q.findKey(n,e);!r||t&&!xe(0,n[r],r,t)||(delete n[r],i=!0)}}return q.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!xe(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return q.forEach(this,((i,r)=>{const o=q.findKey(n,r);if(o)return t[o]=we(i),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete t[r],t[a]=we(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ye]=this[ye]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=be(e);t[i]||(!function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return q.isArray(e)?e.forEach(i):i(e),this}}function Ee(e,t){const n=this||ve,i=t||n,r=Se.from(i.headers);let o=i.data;return q.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function ke(e){return!(!e||!e.__CANCEL__)}function _e(e,t,n){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,n),this.name="CanceledError"}function Ce(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(Se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),q.freezeMethods(Se),q.inherits(_e,Z,{__CANCEL__:!0});const Te=(e,t,n=3)=>{let i=0;const r=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-r<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,i,r=0,o=1e3/t;const a=(t,o=Date.now())=>{r=o,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=o?a(e,t):(n=e,i||(i=setTimeout((()=>{i=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-i,l=r(s);i=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Oe=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Ne=e=>(...t)=>q.asap((()=>e(...t))),$e=pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Ie=pe.hasStandardBrowserEnv?{write(e,t,n,i,r,o){const a=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),q.isString(i)&&a.push("path="+i),q.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ae(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Pe=e=>e instanceof Se?{...e}:e;function Me(e,t){t=t||{};const n={};function i(e,t,n,i){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:i},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function r(e,t,n,r){return q.isUndefined(t)?q.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function o(e,t){if(!q.isUndefined(t))return i(void 0,t)}function a(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>r(Pe(e),Pe(t),0,!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=l[i]||r,a=o(e[i],t[i],i);q.isUndefined(a)&&o!==s||(n[i]=a)})),n}const De=e=>{const t=Me({},e);let n,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Se.from(s),t.url=oe(Ae(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),q.isFormData(i))if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pe.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(t)),r||!1!==r&&$e(t.url))){const e=o&&a&&Ie.read(a);e&&s.set(o,e)}return t},Ve="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=De(e);let r=i.data;const o=Se.from(i.headers).normalize();let a,s,l,u,c,{responseType:d,onUploadProgress:h,onDownloadProgress:f}=i;function p(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function v(){if(!m)return;const i=Se.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ce((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new Z("Request aborted",Z.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||se;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new Z(t,r.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&q.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),q.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),d&&"json"!==d&&(m.responseType=i.responseType),f&&([l,c]=Te(f,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,u]=Te(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(a=t=>{m&&(n(!t||t.type?new _e(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);g&&-1===pe.protocols.indexOf(g)?n(new Z("Unsupported protocol "+g+":",Z.ERR_BAD_REQUEST,e)):m.send(r||null)}))},Le=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;i.abort(t instanceof Z?t:new _e(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,r(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:s}=i;return s.unsubscribe=()=>q.asap(a),s}},Be=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Fe=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},je=(e,t,n,i)=>{const r=async function*(e,t){for await(const n of Fe(e))yield*Be(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return s(),void e.close();let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},Re="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=Re&&"function"==typeof ReadableStream,Ue=Re&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),We=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},He=ze&&We((()=>{let e=!1;const t=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),qe=ze&&We((()=>q.isReadableStream(new Response("").body))),Ze={stream:qe&&(e=>e.body)};var Ye;Re&&(Ye=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ze[e]&&(Ze[e]=q.isFunction(Ye[e])?t=>t[e]():(t,n)=>{throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})));const Xe=async(e,t)=>{const n=q.toFiniteNumber(e.getContentLength());return n??(async e=>{if(null==e)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e)){const t=new Request(pe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return q.isArrayBufferView(e)||q.isArrayBuffer(e)?e.byteLength:(q.isURLSearchParams(e)&&(e+=""),q.isString(e)?(await Ue(e)).byteLength:void 0)})(t)},Ge={http:null,xhr:Ve,fetch:Re&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=De(e);u=u?(u+"").toLowerCase():"text";let f,p=Le([r,o&&o.toAbortSignal()],a);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&He&&"get"!==n&&"head"!==n&&0!==(v=await Xe(c,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(q.isFormData(i)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Oe(v,Te(Ne(l)));i=je(n.body,65536,e,t)}}q.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;f=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:i,duplex:"half",credentials:r?d:void 0});let o=await fetch(f);const a=qe&&("stream"===u||"response"===u);if(qe&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=q.toFiniteNumber(o.headers.get("content-length")),[n,i]=s&&Oe(t,Te(Ne(s),!0))||[];o=new Response(je(o.body,65536,n,(()=>{i&&i(),m&&m()})),e)}u=u||"text";let g=await Ze[q.findKey(Ze,u)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ce(t,n,{data:g,headers:Se.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,f),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,f)}})};q.forEach(Ge,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Je=e=>`- ${e}`,Ke=e=>q.isFunction(e)||null===e||!1===e,Qe=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let o=0;o<t;o++){let t;if(n=e[o],i=n,!Ke(n)&&(i=Ge[(t=String(n)).toLowerCase()],void 0===i))throw new Z(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+o]=i}if(!i){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Z("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Je).join("\n"):" "+Je(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function et(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _e(null,e)}function tt(e){et(e),e.headers=Se.from(e.headers),e.data=Ee.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Qe(e.adapter||ve.adapter)(e).then((function(t){return et(e),t.data=Ee.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return ke(t)||(et(e),t&&t.response&&(t.response.data=Ee.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const nt="1.7.9",it={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{it[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const rt={};it.transitional=function(e,t,n){function i(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new Z(i(r," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!rt[r]&&(rt[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},it.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ot={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const o=i[r],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Z("option "+o+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}},validators:it},at=ot.validators;class st{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Me(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&ot.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=i&&(q.isFunction(i)?t.paramsSerializer={serialize:i}:ot.assertOptions(i,{encode:at.function,serialize:at.function},!0)),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&q.merge(r.common,r[t.method]);r&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=Se.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,d=0;if(!s){const e=[tt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=a.length;let h=t;for(d=0;d<c;){const e=a[d++],t=a[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=tt.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return oe(Ae((e=Me(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){st.prototype[e]=function(t,n){return this.request(Me(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Me(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)}));class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new _e(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}const ut={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ut).forEach((([e,t])=>{ut[t]=e}));const ct=function e(t){const n=new st(t),i=r(st.prototype.request,n);return q.extend(i,st.prototype,n,{allOwnKeys:!0}),q.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Me(t,n))},i}(ve);ct.Axios=st,ct.CanceledError=_e,ct.CancelToken=lt,ct.isCancel=ke,ct.VERSION=nt,ct.toFormData=ee,ct.AxiosError=Z,ct.Cancel=ct.CanceledError,ct.all=function(e){return Promise.all(e)},ct.spread=function(e){return function(t){return e.apply(null,t)}},ct.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},ct.mergeConfig=Me,ct.AxiosHeaders=Se,ct.formToJSON=e=>me(q.isHTMLForm(e)?new FormData(e):e),ct.getAdapter=Qe,ct.HttpStatusCode=ut,ct.default=ct;const dt={install:(e,t)=>{const{service:n,http:i}=function(e){const t={requestHandler:e=>e,requestErrorHandler:e=>Promise.reject(e),responseHandler:e=>e,responseErrorHandler:e=>Promise.reject(e),...e},n=ct.create(t);if(e&&Object.keys(e).length>0){const i=Object.keys(e);(i.includes("baseURL")&&i.length>1||!i.includes("baseURL")&&i.length>0)&&(n.interceptors.request.use((e=>t.requestHandler(e)),(e=>t.requestErrorHandler(e))),n.interceptors.response.use((e=>t.responseHandler(e)),(e=>t.responseErrorHandler(e))))}const i={get:(e,t,i)=>{const r={...i,params:t};return n.get(e,r)},patch:(e,t,i)=>t instanceof FormData?n.patchForm(e,t,i):n.patch(e,t,i),post:(e,t,i)=>t instanceof FormData?n.postForm(e,t,i):n.post(e,t,i),put:(e,t,i)=>t instanceof FormData?n.putForm(e,t,i):n.put(e,t,i),delete:(e,t,i)=>{const r={...i,data:t};return n.delete(e,r)}};return{service:n,http:i}}(t);e.config.globalProperties.$axios=n,e.config.globalProperties.$http=i}};class ht{static listen(e,t,n,i){return e.addEventListener?(e.addEventListener(t,n,i),{remove(){e.removeEventListener(t,n,i)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove(){e.detachEvent("on"+t,n)}}):void 0}}function ft(e){e.preventDefault(),e.stopPropagation()}function pt(e){if(!e)return!1;return e.constructor.toString().search(/SVG.+Element/)>-1}function mt(e,t){if(!t||!e)return!1;if(e.contains(t))return!0;let n=!1;const i=e.children;for(let e=0;e<i.length;e++){const r=i.item(e);if((null==r?void 0:r.id)&&t.id&&(null==r?void 0:r.id)===t.id||r===t||mt(r,t))return n=!0,n}return n}class vt{static createRange(e){return Array.from({length:e},((e,t)=>t))}static defer(e,t,...n){return setTimeout(e,t,...n)}static getNestedValue(e,t,n){if(!Array.isArray(t))return n;const i=t.length-1;let r=e;if(i<0)return e??n;for(let e=0;e<i;e++){if(null==r)return n;r=r[t[e]]}return null==r?n:r[t[i]]??n}static getObjectValueByPath(e,t,n){return t?(t=(t=t.replace(/\[(\w+)]/g,".$1")).replace(/^\./,""),vt.getNestedValue(e,t.split("."),n)):n}static isEmpty(e,t=!1){return null==e||void 0===e||!t&&""===e||Array.isArray(e)&&0===e.length}static isEmptyObject(e){return null==e||void 0===e||vt.isObject(e)&&0===Object.entries(e).length}static isArray(e){return null!=e&&Array.isArray(e)}static isFunction(e){return null!=e&&"function"==typeof e}static isNumber(e){return null!=e&&"number"==typeof e}static isObject(e){return null!=e&&"object"==typeof e}static isPrimitive(e){return null!=e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e)}static isString(e){return null!=e&&"string"==typeof e}static roundNumber(e,t){return Number(Math.round(Number(e+"e"+t))+"e-"+t)}static parseFloatLoose(e){const t=parseFloat(e);return isNaN(t)?void 0:t}static parseIntLoose(e){const t=parseInt(e);return isNaN(t)?void 0:t}static cssUnit(e,t){const n=t||"px";return vt.isString(e)?"auto"===e.toLowerCase()||e.endsWith("px")||e.endsWith("em")||e.endsWith("rem")||e.endsWith("%")?e:e+n:vt.isNumber(e)?e+n:void 0}static sortArrayObj(e,t,n=!1){return null==t?e:e.sort(((e,i)=>{let r=vt.getObjectValueByPath(e,t),o=vt.getObjectValueByPath(i,t);return n&&([r,o]=[o,r]),isNaN(r)||isNaN(o)?null==r&&null==o?0:([r,o]=[r,o].map((e=>(e||"").toString().toLocaleLowerCase())),r>o?1:r<o?-1:0):r-o}))}static uuid(e=!1){if(e){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();{let e=Date.now();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}}return Math.random().toString(36).slice(4)}}const gt={mounted:function(e,t){const n=vt.isFunction(t.value)?t.value:t.value.handler;let i=null;if(!vt.isFunction(t.value)){const e=t.value;i=vt.isString(e.target)?document.querySelector(e.target):e.target}const r=function(t){if(e.contains(t.target))return;let r=t.target;if(pt(r))for(r=null==r?void 0:r.parentElement;pt(r);)r=null==i?void 0:i.parentElement;mt(e,r)||n(t)};e.__clickOutsideListener={handler:r,target:i},i?i.addEventListener("click",r):document.addEventListener("click",r)},unmounted:function(e){if(e.__clickOutsideListener){const{handler:t,target:n}=e.__clickOutsideListener;n?n.removeEventListener("click",t):document.removeEventListener("click",t),delete e.__clickOutsideListener}}};const yt={mounted:function(e,t){var n,i,r;const o=vt.isFunction(t.value)?t.value:t.value.handler,a=vt.isFunction(t.value)?50:(null==(n=t.value)?void 0:n.debounce)||50,s={passive:!(null==(i=t.modifiers)?void 0:i.active)};let l;const u=t=>{l&&clearTimeout(l),l=window.setTimeout((()=>o(e,t)),a)};window.addEventListener("resize",u,s),e.__resizeListener=u,(null==(r=t.modifiers)?void 0:r.quiet)||u()},unmounted:function(e){if(e.__resizeListener){const t=e.__resizeListener;window.removeEventListener("resize",t),delete e.__resizeListener}}};function bt(e,t){var n,i;const r=vt.isFunction(t.value)?t.value:t.value.handler,o={passive:(null==(n=t.modifiers)?void 0:n.passive)??!0},a=(null==(i=t.modifiers)?void 0:i.self)??!1;let s;if(a)s=e;else if(vt.isFunction(t.value))s=window;else{const e=t.value;s=vt.isString(e.target)?document.querySelector(e.target):window}if(s){const t=e=>{r(s,e)};s.addEventListener("scroll",t,o),e.__scrollListener={handler:t,target:a?void 0:s,options:o}}}function wt(e){if(e.__scrollListener){const{handler:t,options:n,target:i}=e.__scrollListener;i?i.removeEventListener("scroll",t,n):e.removeEventListener("scroll",t,n),delete e.__scrollListener}}const xt={mounted:bt,unmounted:wt,updated:function(e,t){t.value!==t.oldValue&&(wt(e),bt(e,t))}};function St(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end&&t.end(Object.assign(e,t)),function(e){const{touchstartX:t,touchendX:n,touchstartY:i,touchendY:r}=e;e.deltaX=n-t,e.deltaY=r-i,Math.abs(e.deltaY)<.5*Math.abs(e.deltaX)&&(e.left&&n<t-16&&e.left(e),e.right&&n>t+16&&e.right(e)),Math.abs(e.deltaX)<.5*Math.abs(e.deltaY)&&(e.up&&r<i-16&&e.up(e),e.down&&r>i+16&&e.down(e))}(t)}function Et(e){const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,deltaX:0,deltaY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>function(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start&&t.start(Object.assign(e,t))}(e,t),touchend:e=>St(e,t),touchmove:e=>function(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move&&t.move(Object.assign(e,t))}(e,t)}}const kt={mounted:function(e,t){var n,i;const r=(null==(n=t.modifiers)?void 0:n.parent)?e.parentElement:e,o={passive:(null==(i=t.modifiers)?void 0:i.passive)||!0};if(!r)return;const a=Et(t.value);r.__touchEvents=a,Object.keys(a).forEach((e=>{r.addEventListener(e,a[e],o)}))},unmounted:function(e,t){var n,i;const r=(null==(n=t.modifiers)?void 0:n.parent)?e.parentElement:e,o={passive:(null==(i=t.modifiers)?void 0:i.passive)||!0};if(!r||!r.__touchEvents)return;const a=r.__touchEvents;Object.keys(a).forEach((e=>{r.removeEventListener(e,a[e],o)})),r.__touchEvents=void 0}},_t=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:gt,Resize:yt,Scroll:xt,Touch:kt},Symbol.toStringTag,{value:"Module"}));function Ct(e){if(!e)return 0;const t=e.indexOf("px");return-1===t?0:Number(e.substring(0,t))}function Tt(e){const t=e;t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.paddingTop="0",t.style.paddingBottom="0",t.style.height="0"}function Ot(e){const t=e;t.style.display="block",t.style.overflow="hidden",t.style.height=t.scrollHeight+Ct(t.dataset.oldPaddingTop)+Ct(t.dataset.oldPaddingBottom)+"px",t.style.paddingTop=t.dataset.oldPaddingTop||"0",t.style.paddingBottom=t.dataset.oldPaddingBottom||"0"}function Nt(e){const t=e;t.style.display="",t.style.height="",t.style.overflow=t.dataset.oldOverflow||"auto",t.style.paddingTop=t.dataset.oldPaddingTop||"0",t.style.paddingBottom=t.dataset.oldPaddingBottom||"0"}function $t(e){const t=e;t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.display="block",0!==t.scrollHeight&&(t.style.height=t.scrollHeight+"px"),t.style.overflow="hidden"}function It(e){const t=e;0!==t.scrollHeight&&setTimeout((()=>{t.style.height="0",t.style.paddingTop="0",t.style.paddingBottom="0"}))}function At(e){const t=e;t.style.display="none",t.style.height="",t.style.overflow=t.dataset.oldOverflow||"auto",t.style.paddingTop=t.dataset.oldPaddingTop||"0",t.style.paddingBottom=t.dataset.oldPaddingBottom||"0"}const Pt=t.defineComponent({name:"BsExpandTransition",setup:(e,{slots:n})=>()=>t.h(t.Transition,{name:"expand",onBeforeEnter:Tt,onEnter:Ot,onAfterEnter:Nt,onBeforeLeave:$t,onLeave:It,onAfterLeave:At},{default:()=>n.default&&n.default()})}),Mt="md-",Dt="undefined"==typeof window;function Vt(){return"bs-"+vt.uuid(!0)}function Lt(){return!Dt&&navigator.userAgent.toLowerCase().includes("trident")}function Bt(){return!Dt&&null!=navigator.userAgent.toLowerCase().match(/mobile/i)}function Ft(e,n,i={},r,o){const a={...o,...i},s=r?()=>Array.isArray(r)?r:[r]:void 0;return t.renderSlot(e,n,a,s)}function jt(e,n,i,r){return n?t.h(e,{class:i,style:r},t.renderSlot(n,"default")):t.h(e,{class:i,style:r})}function Rt(e,n,i,r={},o,a="div",s){return null!=e[n]||o?t.h(a,r,Ft(e,n,{key:i},o,s)):t.createCommentVNode(` v-if-${n} `)}function zt(e,n,i,r={},o,a){return i?t.h(o||"div",r,t.renderSlot(e,n,a)):void 0}function Ut(e={},n,i){return i?(t.openBlock(),t.createBlock(t.Transition,e,{default:t.withCtx((()=>Array.isArray(n)?n:[n]))})):t.h(t.Transition,e,{default:()=>n})}function Wt(e,n){const i=t.resolveComponent("RouterLink");return t.createVNode(i,e,{default:()=>n})}function Ht(e){const n=t.getCurrentInstance();return null!=n&&(!vt.isEmpty(e.path)||!vt.isEmpty(e.pathName)||vt.isObject(e.location))&&(null!=n.appContext.config.globalProperties.$router||null!=n.appContext.config.globalProperties.$route)}function qt(e){return!Ht(e)&&!vt.isEmpty(e.url)}function Zt(){var e;const n=t.getCurrentInstance();return null==(e=null==n?void 0:n.appContext.config.globalProperties.$router)?void 0:e.currentRoute}function Yt(e,t){var n;const i=null==(n=e.value)?void 0:n.appContext.config.globalProperties.$router,r=null==i?void 0:i.getRoutes(),o=e=>e.find((e=>e.name===t||!!(e.children&&e.children.length>0)&&!!o(e.children)));return null==r?void 0:r.find((e=>e.name===t||e.children.length>0&&!!o(e.children)))}function Xt(e,n,i){const r=t.unref(n);if(i.path===r.path||i.path&&(r.path.startsWith(`${i.path}/`)||r.path.startsWith(`${i.path}?`)))return!0;if(i.pathName){if(r.name===i.pathName)return!0;const t=Yt(e,i.pathName);if(t)return t.path===r.path||r.path.startsWith(`${t.path}/`)||r.path.startsWith(`${t.path}?`)}return function(e,t,n){if(!n)return!1;if(n.path===t.path||n.path&&(t.path.startsWith(`${n.path}/`)||t.path.startsWith(`${n.path}?`)))return!0;if(n.name){if(n.params){const e=Object.entries(t.params),i=Object.entries(n.params);if(e.every((e=>i.some((t=>e[0]==t[0]&&e[1]==t[1]))))&&t.name===n.name)return!0}if(t.name===n.name)return!0;const i=Yt(e,n.name.toString());if(i)return i.path===t.path||t.path.startsWith(`${i.path}/`)||t.path.startsWith(`${i.path}?`)}return!1}(e,r,i.location)}function Gt(e){switch(e){case"xs":return window.matchMedia("(max-width: 575.98px)").matches;case"sm":return window.matchMedia("(max-width: 767.98px)").matches;case"md":return window.matchMedia("(max-width: 991.98px)").matches;case"lg":return window.matchMedia("(max-width: 1199.98px)").matches;case"xl":return window.matchMedia("(max-width: 1399.98px)").matches;default:return!vt.isNumber(e)||window.matchMedia(`(max-width: ${e}px)`).matches}}function Jt(e){switch(e){case"sm":return window.matchMedia("(min-width: 576px)").matches;case"md":return window.matchMedia("(min-width: 768px)").matches;case"lg":return window.matchMedia("(min-width: 992px)").matches;default:return vt.isNumber(e)?window.matchMedia(`(min-width: ${e}px)`).matches:window.matchMedia("(min-width: 1200px)").matches}}function Kt(e,n=2,i){const r=i??t.getCurrentInstance();if(r){let t=0,i=r.parent;for(;i;){if(n>0&&t===n+1){i=null;break}if(e.includes(i.type.name))break;++t,i=i.parent}return i}return null}function Qt(...e){let n=[];for(let i=0;i<e.length;i++){const r=e[i];!vt.isEmpty(r)&&Array.isArray(r)?n=n.concat(r):vt.isString(r)&&!vt.isEmpty(r)?n.push(r):n.push(t.normalizeClass(r))}return n}function en(){const e=t.getCurrentInstance();return null==e?void 0:e.appContext.config.globalProperties.$axios}function tn(){const e=t.getCurrentInstance();return null==e?void 0:e.appContext.config.globalProperties.$http}function nn(){const e=t.getCurrentInstance();return null==e?void 0:e.appContext.config.globalProperties.$VueMdb}function rn(){const e=t.getCurrentInstance();return null==e?void 0:e.appContext.config.globalProperties.$VueMdb.notification}const on={type:Boolean,default:!1},an={type:Boolean,default:!0},sn={type:String,default:void 0},ln={type:Number,default:void 0},un={type:Date,default:void 0},cn={type:String,default:void 0,required:!0},dn={type:[String,Number],default:void 0},hn={type:[String,Array],default:void 0},fn={type:[String,Number],default:void 0,validator:e=>!isNaN(parseInt(e,10))},pn={type:[String,Number],default:void 0,validator:e=>!isNaN(parseFloat(e))},mn={type:[String,Number],default:void 0,validator:e=>parseInt(e,10)>0},vn={type:Object,default:void 0},gn={type:String,default:"div"},yn={type:String,default:"default"},bn={type:String,default:"primary"},wn={type:String,default:"white"},xn={type:String,default:"fade"},Sn={activeClass:sn,location:vn,path:sn,pathName:sn,url:sn},En=t.defineComponent({name:"BsOverlay",props:{color:sn,fixed:on,opacity:pn,show:on,zIndex:fn},emits:["click"],setup(e,{emit:n,slots:i}){const r=e,o=t.computed((()=>({opacity:r.opacity,"background-color":r.color,position:r.fixed?"fixed":null,"z-index":r.zIndex})));return()=>Ut({name:"fade"},r.show?t.h("div",{class:[`${Mt}overlay`],style:o.value,onClick:e=>n("click",e),onTouchmove:e=>ft(e)},i.default&&i.default()):t.createCommentVNode(" BsOverlay ",!0))}}),kn=t.createElementVNode("span",{class:`${Mt}ripple-wave`},null,-1),_n=t.defineComponent({__name:"BsWave",render:()=>(t.openBlock(),t.createBlock(t.Transition,{name:`${Mt}ripple`,appear:!0},{default:t.withCtx((()=>[kn])),_:1}))});function Cn(e,t){const n=vt.cssUnit(t);return{...e,width:n,height:n}}function Tn(e,t,n,i,r,o){window.requestAnimationFrame((()=>{if(!(i.value||n.value&&n.value!==o.type)){let i;const a=function(e){if(e.value){const{offsetWidth:t,offsetHeight:n}=e.value;return Math.round(Math.max(t,n))}return 0}(e);i=r.value?function(e){const t=-e/2+"px";return{marginTop:t,marginLeft:t}}(a):function(e,t,n){var i;const r=null==(i=e.value)?void 0:i.getBoundingClientRect();let o=t.pageY,a=t.pageX;return"touchstart"===t.type&&(o=t.changedTouches[0].pageY,a=t.changedTouches[0].pageX),{top:o-((null==r?void 0:r.top)??0)-n/2-document.documentElement.scrollTop+"px",left:a-((null==r?void 0:r.left)??0)-n/2-document.documentElement.scrollLeft+"px"}}(e,o,a),n.value=o.type,t.value=[{waveStyles:Cn(i,a),uuid:vt.uuid(!0)}]}}))}function On(e){vt.defer((()=>{vt.isArray(e.value)&&e.value.length>0&&e.value.shift()}),500)}function Nn(e,n,i,r,o,a,s,l,u,c){return t.h(c||"div",{ref:n,class:t.normalizeClass(r.value),onMousedownPassive:e=>Tn(n,i,a,s,l,e),onMouseleavePassive:()=>On(i),onMouseupPassive:()=>On(i),onTouchcancelPassive:()=>On(i),onTouchendPassive:()=>On(i),onTouchmovePassive:()=>function(e){window.clearTimeout(e.value)}(u),onTouchstartPassive:e=>function(e,t,n,i,r,o,a){o.value=vt.defer((()=>{Tn(e,t,n,i,r,a)}),100)}(n,i,a,s,l,u,e)},[t.renderSlot(e,"default"),t.unref(s)?t.createCommentVNode(" v-if "):t.h(t.Fragment,{key:0},t.renderList(i.value,(e=>t.createVNode(_n,{key:e.uuid,class:t.normalizeClass(o.value),style:t.normalizeStyle(e.waveStyles)},null,8,["class","style"]))))])}const $n={tag:gn},In={...$n,borderOff:on,roundedOff:on,shadow:on,imgTopSrc:sn,imgTopAlt:sn,imgBottomSrc:sn,imgBottomAlt:sn},An={tag:sn,type:{type:String,default:"text",validator:e=>["title","subtitle","text"].includes(e)}},Pn={title:cn,subtitle:sn,overlayTop:on},Mn=t.defineComponent({name:"BsRipple",props:{...$n,active:{type:[Boolean,Event],default:void 0},centered:on,disabled:on},emits:["update:active"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref([]),a=t.ref(null),s=t.ref(0),l=t.ref(""),u=t.ref(r.disabled??!1),c=t.ref(r.centered??!1),d=t.computed((()=>({[`${Mt}ripple`]:!0,"ripple-off":u.value}))),h=t.computed((()=>({[`${Mt}center`]:c.value})));return t.watch((()=>r.active),(e=>{const t="boolean"==typeof e,i="mouseevent"===(null==e?void 0:e.constructor.toString().match(/function (\w*)/)[1].toLowerCase());t&&!u.value&&e?Tn(a,o,l,u,c,{type:"mousedown"}):i&&Tn(a,o,l,u,c,e),n("update:active",!1)})),()=>Nn(i,a,o,d,h,l,u,c,s,r.tag)}}),Dn={install:e=>{e.component(Pt.name,Pt),e.component(En.name,En),e.component(Mn.name,Mn)}};function Vn(e){e.config.globalProperties.$VueMdb={app:{},notification:{}}}const Ln=t.defineComponent({name:"BsApp",props:{id:{type:String,default:()=>Vt()},viewportHeight:on},setup(e,{slots:n}){const i=e,r=t.ref(null),o=t.ref();return t.onMounted((()=>{var e,n;const a=t.getCurrentInstance();if(o.value=null==a?void 0:a.appContext.config.globalProperties.$VueMdb,a&&o.value){const t=(null==(e=a.ctx.$el)?void 0:e.getBoundingClientRect())??(null==(n=r.value)?void 0:n.getBoundingClientRect());o.value.app[i.id]={left:(null==t?void 0:t.left)??0,right:(null==t?void 0:t.right)??0,top:(null==t?void 0:t.top)??0,bottom:(null==t?void 0:t.bottom)??0,height:(null==t?void 0:t.height)??0,width:(null==t?void 0:t.width)??0,appbar:{height:0,fixedTop:!1,stickyTop:!1},sideDrawer:{left:{width:0,miniWidth:0,mini:!1,open:!1},right:{width:0,miniWidth:0,mini:!1,open:!1}}}}})),t.onUnmounted((()=>{o.value&&vt.isObject(o.value.app[i.id])&&delete o.value.app[i.id]})),()=>{var e;return t.h("div",{ref:r,class:{[`${Mt}application-wrap`]:!0,[`${Mt}viewport-height`]:i.viewportHeight,[`${Mt}appbar-fixed-top`]:!0===(null==(e=o.value)?void 0:e.app[i.id].appbar.fixedTop)},id:i.id},n.default&&n.default())}}}),Bn=t.defineComponent({name:"BsContainer",props:{app:on,...$n},emits:["resize"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(null),a=t.ref(),s=t.ref(),l=t.ref(!1),u=t.ref(!1),c=t.computed((()=>{if(r.app&&s.value&&a.value){const{sideDrawer:e,appbar:t}=a.value.app[s.value];return{paddingRight:l.value&&e.right.mini?`${e.right.miniWidth}px`:l.value?0:`${e.right.width}px`,paddingLeft:l.value&&e.left.mini?`${e.left.miniWidth}px`:l.value?0:`${e.left.width}px`,top:!0===t.fixedTop?vt.cssUnit(t.height):void 0,bottom:!0===t.fixedTop?0:void 0,position:!0===t.fixedTop?"fixed":void 0}}})),d=()=>{n("resize",o.value),l.value=Gt("md")};return t.onMounted((()=>{a.value=nn();const e=Kt(["bs-app","bs-app-container","BsApp","BsAppContainer"],3);e?s.value=e.props.id:console.warn("<BsContainer> must be used inside <BsApp>"),window&&window.requestAnimationFrame((()=>{u.value=!0}))})),()=>t.withDirectives(t.h(r.tag||"div",{ref:o,class:{[`${Mt}container-wrap`]:!0,"smooth-animation":u.value},style:c.value},i.default&&i.default()),[[yt,d]])}}),Fn=t.defineComponent({name:"BsContent",props:{app:on,tag:{type:String,default:"main"}},setup(e,{slots:n}){const i=e,r=()=>t.h(i.tag||"div",{class:`${Mt}content-wrap`},n.default&&n.default());return()=>i.app?t.h(Bn,{app:e.app,tag:e.tag},{default:()=>r()}):r()}}),jn={install:e=>{Vn(e),e.component(Ln.name,Ln),e.component(Bn.name,Bn),e.component(Fn.name,Fn),e.component("BsAppContainer",Ln)}};const Rn=t.defineComponent({name:"BsAppbar",props:{clippedLeft:on,clippedRight:on,fixedTop:on,stickyTop:on,shadow:on,tag:{type:String,default:"header"}},emits:["resize"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(),a=t.ref(null),s=t.ref(),l=t.ref(!1),u=t.ref(!1),c=t.computed((()=>function(e,t,n,i){var r,o;const a="0px";return{marginLeft:i.value?a:e.clippedLeft&&t.value?((null==(r=n.value)?void 0:r.app[t.value].sideDrawer.left.width)??0)+"px":a,marginRight:i.value?a:e.clippedRight&&t.value?((null==(o=n.value)?void 0:o.app[t.value].sideDrawer.right.width)??0)+"px":a}}(r,s,o,l))),d=e=>{l.value=Gt("md"),n("resize",e)};return t.onMounted((()=>function(e,n,i,r,o){const a=t.getCurrentInstance();i.value=nn();const s=Kt(["bs-app","bs-app-container","BsApp","BsAppContainer"],3,a);s?t.nextTick().then((()=>{var t;if(e.value=s.props.id,e.value&&i.value){const r=null==(t=n.value)?void 0:t.getBoundingClientRect();i.value.app[e.value].appbar.height=r.height,i.value.app[e.value].appbar.fixedTop=o.fixedTop??!1,i.value.app[e.value].appbar.stickyTop=o.stickyTop??!1}})):console.warn("<BsAppbar> must be used inside <BsApp>"),window&&window.requestAnimationFrame((()=>{r.value=!0}))}(s,a,o,u,r))),()=>function(e,n,i,r,o,a){return t.withDirectives(t.h(e.tag??"header",{ref:n,class:{[`${Mt}appbar`]:!0,[`${Mt}appbar-shadow`]:e.shadow,"smooth-animation":r.value,"fixed-top":e.fixedTop,"sticky-top":e.stickyTop&&!e.fixedTop},style:i.value},[jt("nav",o,`${Mt}appbar-content`)]),[[yt,a]])}(r,a,c,u,i,d)}}),zn=t.defineComponent({name:"BsAppbarItems",setup:(e,{slots:t})=>()=>jt("div",t,`${Mt}appbar-items`)}),Un=t.defineComponent({name:"BsAppbarTitle",props:{title:sn},setup(e,{slots:n}){const i=e;return()=>t.h("div",{class:`${Mt}appbar-title`},Ft(n,"default",{key:vt.uuid()},[t.createTextVNode(t.toDisplayString(i.title))]))}}),Wn={install:e=>{Vn(e),e.component(Rn.name,Rn),e.component(zn.name,zn),e.component(Un.name,Un)}},Hn=t.defineComponent({name:"BsDivider",props:{dark:on,leftIndent:fn,rightIndent:fn,thickness:fn},setup(e){const t=e;return()=>jt("hr",void 0,[`${Mt}divider`,t.dark?"divider--dark":"divider--light"],{marginLeft:t.leftIndent?vt.cssUnit(t.leftIndent):void 0,marginRight:t.rightIndent?vt.cssUnit(t.rightIndent):void 0,height:t.thickness?vt.cssUnit(t.thickness):void 0})}});function qn(e){return e.trim().toLowerCase().replaceAll(" ","_").replaceAll("-","_")}function Zn(e){if(e.size||e.height||e.width){const t=Yn(e)??Xn(e);return vt.isString(t)?t.endsWith("em")||t.endsWith("rem")?16*parseFloat(t):t.endsWith("px")?parseInt(t,10):parseFloat(t):t}return 0}function Yn(e){return e.size&&vt.isObject(e.size)?e.size.height:e.height||e.size}function Xn(e){return e.size&&vt.isObject(e.size)?e.size.width:e.width||e.size}function Gn(e){const t=Yn(e),n=Xn(e);return{height:vt.cssUnit(t),width:vt.cssUnit(n)}}var Jn,Kn,Qn,ei,ti,ni,ii,ri,oi,ai,si,li,ui,ci,di,hi,fi,pi,mi,vi,gi,yi,bi,wi,xi,Si,Ei,ki,_i,Ci,Ti,Oi,Ni,$i,Ii,Ai,Pi,Mi,Di,Vi,Li,Bi,Fi,ji,Ri,zi,Ui,Wi,Hi,qi,Zi,Yi,Xi,Gi,Ji,Ki,Qi,er,tr,nr,ir,rr,or="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sr(){if(Kn)return Jn;Kn=1;var e="object"==typeof or&&or&&or.Object===Object&&or;return Jn=e}function lr(){if(ei)return Qn;ei=1;var e=sr(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Qn=n}function ur(){if(ni)return ti;ni=1;var e=lr().Symbol;return ti=e}function cr(){if(ri)return ii;return ri=1,ii=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}}function dr(){if(ai)return oi;ai=1;var e=Array.isArray;return oi=e}function hr(){if(li)return si;li=1;var e=ur(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,r=e?e.toStringTag:void 0;return si=function(e){var t=n.call(e,r),o=e[r];try{e[r]=void 0;var a=!0}catch(e){}var s=i.call(e);return a&&(t?e[r]=o:delete e[r]),s}}function fr(){if(ci)return ui;ci=1;var e=Object.prototype.toString;return ui=function(t){return e.call(t)}}function pr(){if(hi)return di;hi=1;var e=ur(),t=hr(),n=fr(),i=e?e.toStringTag:void 0;return di=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?t(e):n(e)}}function mr(){if(pi)return fi;return pi=1,fi=function(e){return null!=e&&"object"==typeof e}}function vr(){if(vi)return mi;vi=1;var e=pr(),t=mr();return mi=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function gr(){if(yi)return gi;yi=1;var e=ur(),t=cr(),n=dr(),i=vr(),r=e?e.prototype:void 0,o=r?r.toString:void 0;return gi=function e(r){if("string"==typeof r)return r;if(n(r))return t(r,e)+"";if(i(r))return o?o.call(r):"";var a=r+"";return"0"==a&&1/r==-1/0?"-0":a},gi}function yr(){if(wi)return bi;wi=1;var e=gr();return bi=function(t){return null==t?"":e(t)}}function br(){if(Si)return xi;return Si=1,xi=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}}function wr(){if(ki)return Ei;ki=1;var e=br();return Ei=function(t,n,i){var r=t.length;return i=void 0===i?r:i,!n&&i>=r?t:e(t,n,i)}}function xr(){if(Ci)return _i;Ci=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return _i=function(t){return e.test(t)}}function Sr(){if(Oi)return Ti;return Oi=1,Ti=function(e){return e.split("")}}function Er(){if($i)return Ni;$i=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",r="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?",u=l+s+("(?:\\u200d(?:"+[r,o,a].join("|")+")"+l+s+")*"),c="(?:"+[r+n+"?",n,o,a,t].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+u,"g");return Ni=function(e){return e.match(d)||[]}}function kr(){if(Ai)return Ii;Ai=1;var e=Sr(),t=xr(),n=Er();return Ii=function(i){return t(i)?n(i):e(i)}}function _r(){if(Mi)return Pi;Mi=1;var e=wr(),t=xr(),n=kr(),i=yr();return Pi=function(r){return function(o){o=i(o);var a=t(o)?n(o):void 0,s=a?a[0]:o.charAt(0),l=a?e(a,1).join(""):o.slice(1);return s[r]()+l}}}function Cr(){if(Vi)return Di;Vi=1;var e=_r()("toUpperCase");return Di=e}function Tr(){if(Bi)return Li;Bi=1;var e=yr(),t=Cr();return Li=function(n){return t(e(n).toLowerCase())}}function Or(){if(ji)return Fi;return ji=1,Fi=function(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}}function Nr(){if(zi)return Ri;return zi=1,Ri=function(e){return function(t){return null==e?void 0:e[t]}}}function $r(){if(Wi)return Ui;Wi=1;var e=Nr()({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});return Ui=e}function Ir(){if(qi)return Hi;qi=1;var e=$r(),t=yr(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");return Hi=function(r){return(r=t(r))&&r.replace(n,e).replace(i,"")}}function Ar(){if(Yi)return Zi;Yi=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;return Zi=function(t){return t.match(e)||[]}}function Pr(){if(Gi)return Xi;Gi=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;return Xi=function(t){return e.test(t)}}function Mr(){if(Ki)return Ji;Ki=1;var e="\\ud800-\\udfff",t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="["+r+"]",a="\\d+",s="["+t+"]",l="["+n+"]",u="[^"+e+r+a+t+n+i+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+h+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",b=y+g+("(?:\\u200d(?:"+["[^"+e+"]",c,d].join("|")+")"+y+g+")*"),w="(?:"+[s,c,d].join("|")+")"+b,x=RegExp([h+"?"+l+"+"+m+"(?="+[o,h,"$"].join("|")+")",p+"+"+v+"(?="+[o,h+f,"$"].join("|")+")",h+"?"+f+"+"+m,h+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,w].join("|"),"g");return Ji=function(e){return e.match(x)||[]}}function Dr(){if(er)return Qi;er=1;var e=Ar(),t=Pr(),n=yr(),i=Mr();return Qi=function(r,o,a){return r=n(r),void 0===(o=a?void 0:o)?t(r)?i(r):e(r):r.match(o)||[]}}function Vr(){if(nr)return tr;nr=1;var e=Or(),t=Ir(),n=Dr(),i=RegExp("['’]","g");return tr=function(r){return function(o){return e(n(t(o).replace(i,"")),r,"")}}}function Lr(){if(rr)return ir;rr=1;var e=Tr(),t=Vr()((function(t,n,i){return n=n.toLowerCase(),t+(i?e(n):n)}));return ir=t}const Br=ar(Lr());var Fr,jr;function Rr(){if(jr)return Fr;jr=1;var e=Vr()((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));return Fr=e}const zr=ar(Rr());function Ur(e,t=1){const n=[];for(let i=0;i<e.length;i+=t)n.push(e.substring(i,t+i));return n}function Wr(e){return zr(e)}function Hr(e,t){return!(!e||!t)&&t.some((t=>e.endsWith(t)))}const qr=Object.freeze(Object.defineProperty({__proto__:null,camelCase:function(e){return Br(e)},chunk:Ur,encodeSpecialChars:function(e,t=!1,n,i){const r=Array.isArray(n)&&Array.isArray(i)&&n.length>0&&n.length===i.length,o=r?n:["#","!","$","%","&","<",">","?","@"],a=r?i:["23","21","24","25","26","3C","3E","3F","40"],s=e.length;let l="";for(let n=0;n<s;n++)if('"'!==e.at(n)||t)if(o.includes(e.charAt(n))){const t=o.indexOf(e.charAt(n));a[t].startsWith("%")?l+=a[t]:l+="%"+a[t]}else l+=e.charAt(n);else l+="&#"+e.codePointAt(n)+";";return l},isEndWith:Hr,kebabCase:Wr,padLeft:function(e,t=2,n="0"){const i=String(e);return i.length>=t?i:i.padStart(t,n)},padRight:function(e,t=2,n="0"){const i=String(e);return i.length>=t?i:i.padEnd(t,n)},titleCase:function(e){return(null==e?void 0:e.toLowerCase().split(/[-_\s]+/).map((function(e){var t;return null==e?void 0:e.replace(e[0],null==(t=e[0])?void 0:t.toUpperCase())})).join(" ").trim())??""}},Symbol.toStringTag,{value:"Module"}));function Zr(e){const t=Zn(e);return t>72?t-20:t>32?t-12:t-8}function Yr(e){const t=e.icon?qn(e.icon):void 0;return{icon:Hr(t,["_outlined_filled","_rounded_filled","_sharp_filled","_filled","_outlined","_rounded","_sharp"])&&t?t:t&&e.iconVariant?`${t}_${e.iconVariant}`:t,spin:e.iconSpin,pulse:e.iconPulse,flip:e.iconFlip,rotate:e.iconRotation}}function Xr(e,t){return{"rounded-circle":e&&!t,rounded:t}}function Gr(e){return t.h("img",{class:Xr(e.circle,e.rounded),style:Gn(e),src:e.imgSrc,alt:""})}const Jr={height:dn,width:dn,size:dn,circle:on,rounded:on,bgColor:{type:String,default:"#868e96"},textColor:{type:String,default:"#dee2e6"},placeHolder:sn,placeholderText:sn,xPos:{type:[String,Number],default:"50%"},yPos:{type:[String,Number],default:"50%"}},Kr=36e5,Qr={_cacheItems:new Map,_createItem(e,t,n,i){const r={key:e,value:t,hits:i??0,expiry:(n instanceof Date?n.valueOf():n)??Date.now()+Kr,getKey:()=>r.key,getValue:()=>r.value,setValue(e){r.value=e},getHits:()=>r.hits,isExpired:()=>r.expiry<Date.now(),setExpiry(e){r.expiry=e},expiredAt:()=>r.expiry};return r},clear(){this._cacheItems.clear()},deleteItem(e){return this._cacheItems.delete(e)},deleteItems(e){for(let t=e.length-1;t>=0;t--)this._cacheItems.delete(e[t])},getItem(e){const t=this._cacheItems.get(e);if(t&&t.expiry>Date.now())return this._createItem(e,t.value,t.expiry,t.hits+1);this.deleteItem(e)},getItems(e){const t=[];for(let n=e.length-1;n>=0;n--){const i=this.getItem(e[n]);i&&t.push(i)}return t},hasItem(e){const t=this._cacheItems.get(e);return!!(t&&t.expiry>Date.now())||(this.deleteItem(e),!1)},save(e){if(e)if(vt.isFunction("getKey"in e&&e.getKey)){const t=e;this._cacheItems.set(t.getKey(),{value:t.getValue(),expiry:t.expiredAt(),hits:t.getHits()})}else{const t=e;this._cacheItems.set(t.key,{value:t.value,expiry:t.expiry??Date.now()+Kr,hits:0})}},size(){return this._cacheItems.size}};var eo,to,no={},io={};function ro(){return eo||(eo=1,function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+t+"]["+(t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",i=new RegExp("^"+n+"$");e.isExist=function(e){return void 0!==e},e.isEmptyObject=function(e){return 0===Object.keys(e).length},e.merge=function(e,t,n){if(t){const i=Object.keys(t),r=i.length;for(let o=0;o<r;o++)e[i[o]]="strict"===n?[t[i[o]]]:t[i[o]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(e){const t=i.exec(e);return!(null==t)},e.getAllMatches=function(e,t){const n=[];let i=t.exec(e);for(;i;){const r=[];r.startIndex=t.lastIndex-i[0].length;const o=i.length;for(let e=0;e<o;e++)r.push(i[e]);n.push(r),i=t.exec(e)}return n},e.nameRegexp=n}(io)),io}function oo(){if(to)return no;to=1;const e=ro(),t={allowBooleanAttributes:!1,unpairedTags:[]};function n(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function i(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const i=e.substr(n,t-n);if(t>5&&"xml"===i)return d("InvalidXml","XML declaration allowed only at the start of the document.",f(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function r(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}no.validate=function(o,a){a=Object.assign({},t,a);const l=[];let h=!1,p=!1;"\ufeff"===o[0]&&(o=o.substr(1));for(let t=0;t<o.length;t++)if("<"===o[t]&&"?"===o[t+1]){if(t+=2,t=i(o,t),t.err)return t}else{if("<"!==o[t]){if(n(o[t]))continue;return d("InvalidChar","char '"+o[t]+"' is not expected.",f(o,t))}{let v=t;if(t++,"!"===o[t]){t=r(o,t);continue}{let g=!1;"/"===o[t]&&(g=!0,t++);let y="";for(;t<o.length&&">"!==o[t]&&" "!==o[t]&&"\t"!==o[t]&&"\n"!==o[t]&&"\r"!==o[t];t++)y+=o[t];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),t--),m=y,!e.isName(m)){let e;return e=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",d("InvalidTag",e,f(o,t))}const b=s(o,t);if(!1===b)return d("InvalidAttr","Attributes for '"+y+"' have open quote.",f(o,t));let w=b.value;if(t=b.index,"/"===w[w.length-1]){const e=t-w.length;w=w.substring(0,w.length-1);const n=u(w,a);if(!0!==n)return d(n.err.code,n.err.msg,f(o,e+n.err.line));h=!0}else if(g){if(!b.tagClosed)return d("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",f(o,t));if(w.trim().length>0)return d("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",f(o,v));if(0===l.length)return d("InvalidTag","Closing tag '"+y+"' has not been opened.",f(o,v));{const e=l.pop();if(y!==e.tagName){let t=f(o,e.tagStartPos);return d("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+t.line+", col "+t.col+") instead of closing tag '"+y+"'.",f(o,v))}0==l.length&&(p=!0)}}else{const e=u(w,a);if(!0!==e)return d(e.err.code,e.err.msg,f(o,t-w.length+e.err.line));if(!0===p)return d("InvalidXml","Multiple possible root nodes found.",f(o,t));-1!==a.unpairedTags.indexOf(y)||l.push({tagName:y,tagStartPos:v}),h=!0}for(t++;t<o.length;t++)if("<"===o[t]){if("!"===o[t+1]){t++,t=r(o,t);continue}if("?"!==o[t+1])break;if(t=i(o,++t),t.err)return t}else if("&"===o[t]){const e=c(o,t);if(-1==e)return d("InvalidChar","char '&' is not expected.",f(o,t));t=e}else if(!0===p&&!n(o[t]))return d("InvalidXml","Extra text at the end",f(o,t));"<"===o[t]&&t--}}}var m;return h?1==l.length?d("InvalidTag","Unclosed tag '"+l[0].tagName+"'.",f(o,l[0].tagStartPos)):!(l.length>0)||d("InvalidXml","Invalid '"+JSON.stringify(l.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};const o='"',a="'";function s(e,t){let n="",i="",r=!1;for(;t<e.length;t++){if(e[t]===o||e[t]===a)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){r=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:r}}const l=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function u(t,n){const i=e.getAllMatches(t,l),r={};for(let e=0;e<i.length;e++){if(0===i[e][1].length)return d("InvalidAttr","Attribute '"+i[e][2]+"' has no space in starting.",p(i[e]));if(void 0!==i[e][3]&&void 0===i[e][4])return d("InvalidAttr","Attribute '"+i[e][2]+"' is without value.",p(i[e]));if(void 0===i[e][3]&&!n.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+i[e][2]+"' is not allowed.",p(i[e]));const t=i[e][2];if(!h(t))return d("InvalidAttr","Attribute '"+t+"' is an invalid name.",p(i[e]));if(r.hasOwnProperty(t))return d("InvalidAttr","Attribute '"+t+"' is repeated.",p(i[e]));r[t]=1}return!0}function c(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function d(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function h(t){return e.isName(t)}function f(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function p(e){return e.startIndex+e[1].length}return no}var ao,so,lo,uo,co,ho,fo,po,mo,vo,go,yo={};function bo(){if(ao)return yo;ao=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};return yo.buildOptions=function(t){return Object.assign({},e,t)},yo.defaultOptions=e,yo}function wo(){if(lo)return so;lo=1;return so=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}}function xo(){if(co)return uo;co=1;const e=ro();function t(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const i=e[t++];let r="";for(;t<e.length&&e[t]!==i;t++)r+=e[t];return[n,r,t]}function n(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function i(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function r(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function o(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function a(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function s(t){if(e.isName(t))return t;throw new Error(`Invalid entity name ${t}`)}return uo=function(e,l){const u={};if("O"!==e[l+3]||"C"!==e[l+4]||"T"!==e[l+5]||"Y"!==e[l+6]||"P"!==e[l+7]||"E"!==e[l+8])throw new Error("Invalid Tag instead of DOCTYPE");{l+=9;let c=1,d=!1,h=!1;for(;l<e.length;l++)if("<"!==e[l]||h)if(">"===e[l]){if(h?"-"===e[l-1]&&"-"===e[l-2]&&(h=!1,c--):c--,0===c)break}else"["===e[l]&&(d=!0);else{if(d&&i(e,l)){let n,i;l+=7,[n,i,l]=t(e,l+1),-1===i.indexOf("&")&&(u[s(n)]={regx:RegExp(`&${n};`,"g"),val:i})}else if(d&&r(e,l))l+=8;else if(d&&o(e,l))l+=8;else if(d&&a(e,l))l+=9;else{if(!n)throw new Error("Invalid DOCTYPE");h=!0}c++}if(0!==c)throw new Error("Unclosed DOCTYPE")}return{entities:u,i:l}}}function So(){if(fo)return ho;fo=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};return ho=function(i,r={}){if(r=Object.assign({},n,r),!i||"string"!=typeof i)return i;let o=i.trim();if(void 0!==r.skipLike&&r.skipLike.test(o))return i;if(r.hex&&e.test(o))return Number.parseInt(o,16);{const e=t.exec(o);if(e){const t=e[1],n=e[2];let a=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(e[3]);const s=e[4]||e[6];if(!r.leadingZeros&&n.length>0&&t&&"."!==o[2])return i;if(!r.leadingZeros&&n.length>0&&!t&&"."!==o[1])return i;{const e=Number(o),l=""+e;return-1!==l.search(/[eE]/)||s?r.eNotation?e:i:-1!==o.indexOf(".")?"0"===l&&""===a||l===a||t&&l==="-"+a?e:i:n?a===l||t+a===l?e:i:o===l||o===t+l?e:i}}return i}}}function Eo(){if(mo)return po;return mo=1,po=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}}function ko(){if(go)return vo;go=1;const e=ro(),t=wo(),n=xo(),i=So(),r=Eo();function o(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function a(e,t,n,i,r,o,a){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const i=this.options.tagValueProcessor(t,e,n,r,o);if(null==i)return e;if(typeof i!=typeof e||i!==e)return i;if(this.options.trimValues)return y(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?y(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function s(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function u(t,n,i){if(!0!==this.options.ignoreAttributes&&"string"==typeof t){const i=e.getAllMatches(t,l),r=i.length,o={};for(let e=0;e<r;e++){const t=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(t,n))continue;let r=i[e][4],a=this.options.attributeNamePrefix+t;if(t.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==r){this.options.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r);const e=this.options.attributeValueProcessor(t,r,n);o[a]=null==e?r:typeof e!=typeof r||e!==r?e:y(r,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[a]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=o,e}return o}}const c=function(e){e=e.replace(/\r\n?/g,"\n");const i=new t("!xml");let r=i,o="",a="";for(let s=0;s<e.length;s++){if("<"===e[s])if("/"===e[s+1]){const t=m(e,">",s,"Closing Tag is not closed.");let n=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){const e=n.indexOf(":");-1!==e&&(n=n.substr(e+1))}this.options.transformTagName&&(n=this.options.transformTagName(n)),r&&(o=this.saveTextToParentTag(o,r,a));const i=a.substring(a.lastIndexOf(".")+1);if(n&&-1!==this.options.unpairedTags.indexOf(n))throw new Error(`Unpaired tag can not be used as closing tag: </${n}>`);let l=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),r=this.tagsNodeStack.pop(),o="",s=t}else if("?"===e[s+1]){let n=v(e,s,!1,"?>");if(!n)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,r,a),this.options.ignoreDeclaration&&"?xml"===n.tagName||this.options.ignorePiTags);else{const e=new t(n.tagName);e.add(this.options.textNodeName,""),n.tagName!==n.tagExp&&n.attrExpPresent&&(e[":@"]=this.buildAttributesMap(n.tagExp,a,n.tagName)),this.addChild(r,e,a)}s=n.closeIndex+1}else if("!--"===e.substr(s+1,3)){const t=m(e,"--\x3e",s+4,"Comment is not closed.");if(this.options.commentPropName){const n=e.substring(s+4,t-2);o=this.saveTextToParentTag(o,r,a),r.add(this.options.commentPropName,[{[this.options.textNodeName]:n}])}s=t}else if("!D"===e.substr(s+1,2)){const t=n(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){const t=m(e,"]]>",s,"CDATA is not closed.")-2,n=e.substring(s+9,t);o=this.saveTextToParentTag(o,r,a);let i=this.parseTextData(n,r.tagname,a,!0,!1,!0,!0);null==i&&(i=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:n}]):r.add(this.options.textNodeName,i),s=t+2}else{let n=v(e,s,this.options.removeNSPrefix),l=n.tagName;const u=n.rawTagName;let c=n.tagExp,d=n.attrExpPresent,h=n.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&o&&"!xml"!==r.tagname&&(o=this.saveTextToParentTag(o,r,a,!1));const f=r;if(f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(r=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),l!==i.tagname&&(a+=a?"."+l:l),this.isItStopNode(this.options.stopNodes,a,l)){let i="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),c=l):c=c.substr(0,c.length-1),s=n.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))s=n.closeIndex;else{const t=this.readStopNodeData(e,u,h+1);if(!t)throw new Error(`Unexpected end of ${u}`);s=t.i,i=t.tagContent}const o=new t(l);l!==c&&d&&(o[":@"]=this.buildAttributesMap(c,a,l)),i&&(i=this.parseTextData(i,l,a,!0,d,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),o.add(this.options.textNodeName,i),this.addChild(r,o,a)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const e=new t(l);l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,a,l)),this.addChild(r,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new t(l);this.tagsNodeStack.push(r),l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,a,l)),this.addChild(r,e,a),r=e}o="",s=h}}else o+=e[s]}return i.child};function d(e,t,n){const i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t)):e.addChild(t))}const h=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function f(e,t,n,i){return e&&(void 0===i&&(i=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function p(e,t,n){const i="*."+n;for(const n in e){const r=e[n];if(i===r||t===r)return!0}return!1}function m(e,t,n,i){const r=e.indexOf(t,n);if(-1===r)throw new Error(i);return r+t.length-1}function v(e,t,n,i=">"){const r=function(e,t,n=">"){let i,r="";for(let o=t;o<e.length;o++){let t=e[o];if(i)t===i&&(i="");else if('"'===t||"'"===t)i=t;else if(t===n[0]){if(!n[1])return{data:r,index:o};if(e[o+1]===n[1])return{data:r,index:o}}else"\t"===t&&(t=" ");r+=t}}(e,t+1,i);if(!r)return;let o=r.data;const a=r.index,s=o.search(/\s/);let l=o,u=!0;-1!==s&&(l=o.substring(0,s),o=o.substring(s+1).trimStart());const c=l;if(n){const e=l.indexOf(":");-1!==e&&(l=l.substr(e+1),u=l!==r.data.substr(e+1))}return{tagName:l,tagExp:o,closeIndex:a,attrExpPresent:u,rawTagName:c}}function g(e,t,n){const i=n;let r=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const o=m(e,">",n,`${t} is not closed`);if(e.substring(n+2,o).trim()===t&&(r--,0===r))return{tagContent:e.substring(i,n),i:o};n=o}else if("?"===e[n+1]){n=m(e,"?>",n+1,"StopNode is not closed.")}else if("!--"===e.substr(n+1,3)){n=m(e,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===e.substr(n+1,2)){n=m(e,"]]>",n,"StopNode is not closed.")-2}else{const i=v(e,n,">");if(i){(i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&r++,n=i.closeIndex}}}function y(t,n,r){if(n&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&i(t,r)}return e.isExist(t)?t:""}return vo=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=o,this.parseXml=c,this.parseTextData=a,this.resolveNameSpace=s,this.buildAttributesMap=u,this.isItStopNode=p,this.replaceEntitiesValue=h,this.readStopNodeData=g,this.saveTextToParentTag=f,this.addChild=d,this.ignoreAttributesFn=r(this.options.ignoreAttributes)}}}var _o,Co,To,Oo,No,$o,Io,Ao,Po,Mo={};function Do(){if(_o)return Mo;function e(r,o,a){let s;const l={};for(let u=0;u<r.length;u++){const c=r[u],d=t(c);let h="";if(h=void 0===a?d:a+"."+d,d===o.textNodeName)void 0===s?s=c[d]:s+=""+c[d];else{if(void 0===d)continue;if(c[d]){let t=e(c[d],o,h);const r=i(t,o);c[":@"]?n(t,c[":@"],h,o):1!==Object.keys(t).length||void 0===t[o.textNodeName]||o.alwaysCreateTextNode?0===Object.keys(t).length&&(o.alwaysCreateTextNode?t[o.textNodeName]="":t=""):t=t[o.textNodeName],void 0!==l[d]&&l.hasOwnProperty(d)?(Array.isArray(l[d])||(l[d]=[l[d]]),l[d].push(t)):o.isArray(d,h,r)?l[d]=[t]:l[d]=t}}}return"string"==typeof s?s.length>0&&(l[o.textNodeName]=s):void 0!==s&&(l[o.textNodeName]=s),l}function t(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function n(e,t,n,i){if(t){const r=Object.keys(t),o=r.length;for(let a=0;a<o;a++){const o=r[a];i.isArray(o,n+"."+o,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function i(e,t){const{textNodeName:n}=t,i=Object.keys(e).length;return 0===i||!(1!==i||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}return _o=1,Mo.prettify=function(t,n){return e(t,n)},Mo}function Vo(){if(To)return Co;To=1;const{buildOptions:e}=bo(),t=ko(),{prettify:n}=Do(),i=oo();return Co=class{constructor(t){this.externalEntities={},this.options=e(t)}parse(e,r){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(r){!0===r&&(r={});const t=i.validate(e,r);if(!0!==t)throw Error(`${t.err.msg}:${t.err.line}:${t.err.col}`)}const o=new t(this.options);o.addExternalEntities(this.externalEntities);const a=o.parseXml(e);return this.options.preserveOrder||void 0===a?a:n(a,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}}function Lo(){if(No)return Oo;No=1;function e(o,a,s,l){let u="",c=!1;for(let d=0;d<o.length;d++){const h=o[d],f=t(h);if(void 0===f)continue;let p="";if(p=0===s.length?f:`${s}.${f}`,f===a.textNodeName){let e=h[f];i(p,a)||(e=a.tagValueProcessor(f,e),e=r(e,a)),c&&(u+=l),u+=e,c=!1;continue}if(f===a.cdataPropName){c&&(u+=l),u+=`<![CDATA[${h[f][0][a.textNodeName]}]]>`,c=!1;continue}if(f===a.commentPropName){u+=l+`\x3c!--${h[f][0][a.textNodeName]}--\x3e`,c=!0;continue}if("?"===f[0]){const e=n(h[":@"],a),t="?xml"===f?"":l;let i=h[f][0][a.textNodeName];i=0!==i.length?" "+i:"",u+=t+`<${f}${i}${e}?>`,c=!0;continue}let m=l;""!==m&&(m+=a.indentBy);const v=l+`<${f}${n(h[":@"],a)}`,g=e(h[f],a,p,m);-1!==a.unpairedTags.indexOf(f)?a.suppressUnpairedNode?u+=v+">":u+=v+"/>":g&&0!==g.length||!a.suppressEmptyNode?g&&g.endsWith(">")?u+=v+`>${g}${l}</${f}>`:(u+=v+">",g&&""!==l&&(g.includes("/>")||g.includes("</"))?u+=l+a.indentBy+g+l:u+=g,u+=`</${f}>`):u+=v+"/>",c=!0}return u}function t(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n];if(e.hasOwnProperty(i)&&":@"!==i)return i}}function n(e,t){let n="";if(e&&!t.ignoreAttributes)for(let i in e){if(!e.hasOwnProperty(i))continue;let o=t.attributeValueProcessor(i,e[i]);o=r(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${i.substr(t.attributeNamePrefix.length)}`:n+=` ${i.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function i(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let i in t.stopNodes)if(t.stopNodes[i]===e||t.stopNodes[i]==="*."+n)return!0;return!1}function r(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const i=t.entities[n];e=e.replace(i.regex,i.val)}return e}return Oo=function(t,n){let i="";return n.format&&n.indentBy.length>0&&(i="\n"),e(t,n,"",i)}}function Bo(){if(Io)return $o;Io=1;const e=Lo(),t=Eo(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},n,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=r,this.options.format?(this.indentate=o,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function r(e,t,n,i){const r=this.j2x(e,n+1,i.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function o(e){return this.options.indentBy.repeat(e)}function a(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}return i.prototype.build=function(t){return this.options.preserveOrder?e(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)},i.prototype.j2x=function(e,t,n){let i="",r="";const o=n.join(".");for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(void 0===e[a])this.isAttribute(a)&&(r+="");else if(null===e[a])this.isAttribute(a)?r+="":"?"===a[0]?r+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)r+=this.buildTextValNode(e[a],a,"",t);else if("object"!=typeof e[a]){const n=this.isAttribute(a);if(n&&!this.ignoreAttributesFn(n,o))i+=this.buildAttrPairStr(n,""+e[a]);else if(!n)if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const i=e[a].length;let o="",s="";for(let l=0;l<i;l++){const i=e[a][l];if(void 0===i);else if(null===i)"?"===a[0]?r+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){const e=this.j2x(i,t+1,n.concat(a));o+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(s+=e.attrStr)}else o+=this.processTextOrObjNode(i,a,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(a,i);e=this.replaceEntitiesValue(e),o+=e}else o+=this.buildTextValNode(i,a,"",t)}this.options.oneListGroup&&(o=this.buildObjectNode(o,a,s,t)),r+=o}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const t=Object.keys(e[a]),n=t.length;for(let r=0;r<n;r++)i+=this.buildAttrPairStr(t[r],""+e[a][t[r]])}else r+=this.processTextOrObjNode(e[a],a,t,n);return{attrStr:i,val:r}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,n,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+n+"?"+this.tagEndChar:this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let r="</"+t+this.tagEndChar,o="";return"?"===t[0]&&(o="?",r=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(i)+"<"+t+n+o+this.tagEndChar+e+this.indentate(i)+r:this.indentate(i)+"<"+t+n+o+">"+e+r}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,n,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(t,e);return r=this.replaceEntitiesValue(r),""===r?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+r+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},$o=i}function Fo(){if(Po)return Ao;Po=1;const e=oo();return Ao={XMLParser:Vo(),XMLValidator:e,XMLBuilder:Bo()}}var jo=Fo();async function Ro(e,t){const n=function(e,t){if(!e)return;const n=qn(e),i=function(e){const t=e.replace(/(_filled)$/,"");return t.endsWith("_rounded")?"rounded":t.endsWith("_sharp")?"sharp":"outlined"}(n),r=function(e){return e.replace(/(_outlined_filled|_rounded_filled|_sharp_filled|_filled|_outlined|_rounded|_sharp)$/,"")}(n),o=function(e){return e.endsWith("_filled")}(n)||t;return{name:r,icon:n,theme:i,variant:o?"fill1":"default"}}(e,t);if(!n)return n;const i=function(e,t,n){return`https://fonts.gstatic.com/s/i/short-term/release/materialsymbols${e}/${t}/${n}/24px.svg`}(n.theme,n.name,n.variant),r=Qr.getItem(i);if(r)return{name:n.name,icon:n.icon,theme:n.theme,variant:n.variant,data:r.getValue()};{const e=await ct.get(i);if(200===e.status){const t={key:i,value:e.data};return Qr.save(t),{name:n.name,icon:n.icon,theme:n.theme,variant:n.variant,data:e.data}}return}}async function zo(e,t="regular",n="6.7.1"){if(!e)return;const i=function(e,t,n){return`https://site-assets.fontawesome.com/releases/v${n}/svgs/${t}/${e}.svg`}(e,t,n),r=Qr.getItem(i);if(r)return{name:e,icon:e,theme:t,variant:t,data:r.getValue()};{const n=await ct.get(i);if(200===n.status){const r={key:i,value:n.data};return Qr.save(r),{name:e,icon:e,theme:t,variant:t,data:n.data}}return}}function Uo(e){const t={};return e.filter((e=>e[0].startsWith("@_"))).map((e=>[e[0].replace("@_",""),e[1]])).forEach((e=>t[e[0]]=e[1])),t}function Wo(e){const n=[];return e.forEach((e=>{if(vt.isArray(e[1]))e[1].forEach((i=>{const r=Object.entries(i),o=r.filter((e=>!e[0].startsWith("@_"))),a=t.h(e[0],Uo(r),Wo(o));n.push(a)}));else if(vt.isObject(e[1])){const i=Object.entries(e[1]),r=i.filter((e=>!e[0].startsWith("@_"))),o=t.h(e[0],Uo(i),Wo(r));n.push(o)}})),n}function Ho(e,n,i,r){if(!e)return t.h("span");const o=new jo.XMLParser({ignoreAttributes:!1}).parse(e),a=Object.entries(o.svg),s=Uo(a),l=s.viewBox.split(" "),u=parseFloat(l[2]),c=parseFloat(l[3]);let d,h,f;u>c?(d=c/u,h=n?parseInt(n,10):void 0,f=n&&i&&n===i?d*h:i):u<c?(d=u/c,f=i?parseInt(i,10):void 0,h=n&&i&&n===i?d*f:n):(h=n,f=i),s.width=h,s.height=f,s.class=r,s.fill="currentColor",s.xmlns="http://www.w3.org/2000/svg";const p=a.filter((e=>!e[0].startsWith("@_")));return t.h("svg",s,Wo(p))}function qo(e){return{"mx-auto":!0,[`${Mt}svg-inline`]:!0,[`${Mt}spin`]:e.spin,[`${Mt}pulse`]:e.pulse,[`${Mt}flip-both`]:"both"===e.flip,[`${Mt}flip-vertical`]:"vertical"===e.flip,[`${Mt}flip-horizontal`]:"horizontal"===e.flip,[`${Mt}rotate-90`]:e.rotate&&90===parseInt(e.rotate,10),[`${Mt}rotate-180`]:e.rotate&&180===parseInt(e.rotate,10),[`${Mt}rotate-270`]:e.rotate&&270===parseInt(e.rotate,10)}}const Zo="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z";function Yo(e,n,i,r,o,a,s){const l={xmlns:"http://www.w3.org/2000/svg",class:e,style:n,focusable:"false",preserveAspectRatio:r,viewBox:o,...a};return t.h("svg",l,s)}function Xo(e){const t=`${e}px`;return{width:t,height:t}}const Go=t.defineComponent({name:"BsImageHolder",props:Jr,setup(e){const n=e,i=t.computed((()=>!vt.isEmpty(n.placeHolder)||!vt.isEmpty(n.placeholderText))),r=Yn(n),o=Xn(n);return()=>Yo({[`${Mt}img-holder`]:!0,[`${Mt}anchor-center`]:"50%"===n.xPos,...Xr(n.circle,n.rounded)},[],0,"xMidYMid slice",null,{height:!r||r<2?"100%":vt.cssUnit(r),width:!o||o<2?"100%":vt.cssUnit(o),role:"img"},[i.value?t.h("title",t.toDisplayString(n.placeHolder||n.placeholderText)):void 0,t.h("rect",{width:"100%",height:"100%",fill:n.bgColor}),i.value?t.h("text",{fill:n.textColor,x:vt.cssUnit(n.xPos),y:vt.cssUnit(n.yPos)},t.toDisplayString(n.placeHolder||n.placeholderText)):void 0])}}),Jo=t.defineComponent({name:"BsSpacer",props:{fill:an,width:fn},setup(e){const t=e;return()=>jt("div",void 0,{"flex-grow-1":t.fill&&!t.width},{width:t.width?vt.cssUnit(t.width):void 0})}}),Ko=t.defineComponent({name:"BsSubheader",props:{dark:on},setup:(e,{slots:t})=>()=>jt("div",t,[`${Mt}subheader`,e.dark?"subheader--dark":"subheader--light"])}),Qo={install:e=>{e.component(Hn.name,Hn),e.component(Go.name,Go),e.component(Jo.name,Jo),e.component(Ko.name,Ko)}};function ea(e,n,i){return t.h("img",{class:i,src:e,alt:n})}const ta=t.defineComponent({name:"BsCard",props:In,setup(e,{slots:n}){const i=e;return()=>t.h(i.tag||"div",{class:{card:!0,[`${Mt}shadow`]:i.shadow},style:{"--bs-card-border-radius":!0===i.roundedOff?0:void 0,"--bs-card-border-width":!0===i.borderOff?0:void 0}},[i.imgTopSrc?ea(i.imgTopSrc,i.imgTopAlt,"card-img-top"):t.createCommentVNode(" v-if-imgTop "),n.default&&n.default(),i.imgBottomSrc?ea(i.imgBottomSrc,i.imgBottomAlt,"card-img-bottom"):t.createCommentVNode(" v-if-imgBottom ")])}}),na=t.defineComponent({name:"BsCardBody",props:$n,setup:(e,{slots:t})=>()=>jt(e.tag,t,"card-body")}),ia=t.defineComponent({name:"BsCardContent",props:An,setup(e,{slots:n}){const i=e,r=t.computed((()=>{return e=i.type,i.tag||("title"===e?"h4":"subtitle"===e?"h5":"p");var e}));return()=>jt(r.value,n,{[`card-${e.type}`]:r.value})}}),ra=t.defineComponent({name:"BsCardFooter",props:$n,setup:(e,{slots:t})=>()=>jt(e.tag,t,"card-footer")}),oa=t.defineComponent({name:"BsCardHeader",props:$n,setup:(e,{slots:t})=>()=>jt(e.tag,t,"card-header")}),aa=t.defineComponent({name:"BsCardMedia",props:Pn,setup(e,{slots:n}){const i=e;return()=>t.h("div",{class:[`${Mt}card-media`]},[n.default&&n.default(),t.h("div",{class:{[`${Mt}card-media-overlay`]:!0,[`${Mt}overlay-top`]:i.overlayTop,[`${Mt}overlay-bottom`]:!i.overlayTop},style:{top:i.overlayTop?0:null,bottom:i.overlayTop?null:0}},[t.h("div",{class:[`${Mt}card-media-title`]},t.toDisplayString(i.title)),i.subtitle?t.h("div",{class:[`${Mt}card-media-subtitle`]},t.toDisplayString(i.subtitle)):null])])}}),sa={install:e=>{e.component(ta.name,ta),e.component(na.name,na),e.component(ia.name,ia),e.component(ra.name,ra),e.component(oa.name,oa),e.component(aa.name,aa)}},la={type:[String,Number],default:24,validator:e=>!isNaN(parseInt(e,10))},ua={type:[String,Number,Object],default:void 0},ca={type:String,required:!0},da={type:String,default:"outlined",validator:e=>["outlined","rounded","sharp","filled","outlined_filled","rounded_filled","sharp_filled"].includes(e)},ha={type:String,default:void 0,validator:e=>["horizontal","vertical","both"].includes(e)},fa={type:[String,Number],default:void 0,validator:e=>[90,180,270].includes(parseInt(String(e),10))},pa={icon:ca,height:fn,width:fn,pulse:on,spin:on,flip:ha,rotate:fa},ma={color:sn,size:la,pulse:on,spin:on},va={icon:ca,toggleIcon:ca,filled:on,modelValue:on,size:la},ga=t.defineComponent({name:"BsIconSvg",props:{filled:on,...pa},setup(e){const n=e,i=t.ref(),r=t.computed((()=>qo(n)));return t.watch((()=>n.icon),(async e=>{i.value=await Ro(e,n.filled)})),t.onBeforeMount((async()=>{i.value=await Ro(n.icon,n.filled)})),()=>{var e;return function(e,n,i,r){if(!e)return t.h("span");const o=new jo.XMLParser({ignoreAttributes:!1}).parse(e),a=Object.entries(o.svg),s=Uo(a),l=a.filter((e=>!e[0].startsWith("@_")));return s.width=n,s.height=i,s.class=r,s.fill="currentColor",s.xmlns="http://www.w3.org/2000/svg",t.h("svg",s,Wo(l))}(null==(e=i.value)?void 0:e.data,Xn(n)||24,Yn(n)||24,r.value)}}}),ya=t.defineComponent({name:"BsIcon",props:{size:ua,filled:on,...pa},setup(e){const n=e,i=Yn(n),r=Xn(n),o=t.computed((()=>({width:vt.cssUnit(r),height:vt.cssUnit(i)})));return()=>t.h("span",{class:[`${Mt}icon`],style:o.value},t.h(ga,{icon:e.icon,filled:e.filled,height:i,width:r,spin:e.spin,pulse:e.pulse,flip:e.flip,rotate:e.rotate}))}}),ba=t.defineComponent({name:"BsIconSpinner",props:ma,setup:e=>()=>Yo([`${Mt}svg-inline`,"align-self-center",e.spin?`${Mt}spin`:e.pulse?`${Mt}pulse`:"",e.color?`text-${e.color}`:""],Xo(e.size),0,null,"0 0 512 512",{role:"img"},[t.h("path",{d:Zo,fill:"currentColor"})])}),wa=t.defineComponent({name:"BsToggleIcon",props:va,emits:["update:model-value"],setup(e,{emit:n}){const i=e;return()=>t.h("span",{class:[`${Mt}toggle-icon`],onClick:()=>n("update:model-value",!i.modelValue)},t.h(ga,{icon:e.modelValue?e.toggleIcon:e.icon,filled:e.filled,height:e.size,width:e.size}))}}),xa=t.defineComponent({name:"BsIconFontawesome",props:{size:ua,variant:{type:String,default:"solid",validator:e=>["regular","solid","light"].includes(e)},version:{type:String,default:"6.7.1"},...pa},setup(e){const n=e,i=Xn(n)||24,r=Yn(n)||24,o=t.ref(),a=t.computed((()=>qo(n))),s=t.computed((()=>({width:vt.cssUnit(i),height:vt.cssUnit(r)})));return t.watch((()=>n.icon),(async e=>{o.value=await zo(e,n.variant,n.version)})),t.watch((()=>n.variant),(async e=>{o.value=await zo(n.icon,e,n.version)})),t.onBeforeMount((async()=>{o.value=await zo(n.icon,n.variant,n.version)})),()=>{var e;return t.h("span",{class:[`${Mt}icon`,"align-items-center","justify-content-center"],style:s.value},Ho(null==(e=o.value)?void 0:e.data,i,r,a.value))}}}),Sa={install:e=>{e.component(ya.name,ya),e.component(ga.name,ga),e.component(ba.name,ba),e.component(wa.name,wa),e.component(xa.name,xa),e.component("BsIconToggle",wa)}},Ea={icon:sn,iconFlip:ha,iconRotation:fa,iconSpin:on,iconPulse:on,iconVariant:da},ka={circle:on,rounded:on,imgSrc:sn,size:{type:[Number,String,Object],default:48}},_a={border:dn,borderColor:sn,height:fn,width:fn,text:sn,...Ea,...ka},Ca={type:Object,validator:e=>Object.hasOwn(e,"validators")&&Object.hasOwn(e,"messages")&&Object.hasOwn(e,"hasError")},Ta={helpText:sn,persistentHelpText:an,validator:Ca,externalValidator:Ca},Oa={type:String,default:"bottom-left",validator:e=>["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-top","left-bottom","right","right-top","right-bottom"].includes(e)},Na={type:String,default:"scale"},$a={open:on,escClose:an,overlay:on,overlayClickClose:an,overlayColor:sn,overlayOpacity:pn},Ia={...$a,cover:on,color:wn,space:fn,placement:Oa,transition:Na,trigger:{type:[String,Object],default:void 0}},Aa={name:dn,disabled:on,readonly:on,required:on},Pa={id:{type:String,default:()=>Vt()},...Aa},Ma={flat:on,filled:on,floatingLabel:on,outlined:on,clearButton:on,validationIcon:on,appendIcon:sn,appendIconOuter:sn,prependIcon:sn,prependIconOuter:sn,actionIconVariant:da},Da={...Pa,...Ma,...Ta,autocomplete:{type:[String,Boolean],default:!1},autofocus:on,modelValue:ln,placeholder:sn,locale:sn,rounded:on,useGrouping:an,spinButton:an,spinButtonPlacement:{type:String,default:"right",validator:e=>["left","right"].includes(e)},actionButton:on,actionButtonPlacement:{type:String,default:"right",validator:e=>["left","right","both"].includes(e)},maxFraction:{type:[Number,String],default:3,validator:e=>!isNaN(parseInt(e,10))},maxValue:pn,minValue:pn,step:{type:[Number,String],default:1,validator:e=>!isNaN(parseFloat(e))},prefix:sn,suffix:sn},Va={id:{type:String,default:()=>Vt()},name:sn,disabled:on,readonly:on,autofocus:on,advanceSearch:on,modelValue:sn,darkMode:on,placeholder:{type:String,default:"Search..."},minlength:{type:[String,Number],default:4,validator:e=>parseInt(e,10)>0},popoverCls:{type:[String,Array],default:"bg-white rounded shadow"},popoverMinWidth:{type:[Number,String],default:480,validator:e=>parseInt(e,10)>0},popoverPlacement:Oa,popoverTransition:Na},La={type:String,default:void 0,validator:e=>["xs","sm","lg"].includes(e)},Ba={type:String,default:"left",validator:e=>["left","right"].includes(e)},Fa={dropdownToggle:on,iconMode:on,hasIcon:on,rippleOff:on,tagName:{type:String,default:"span"}},ja={active:on,color:yn,disabled:on,readonly:on,mode:{type:String,default:"default",validator:e=>["default","icon","fab","floating"].includes(e)},dropdownToggle:on,flat:on,outlined:on,raised:on,rounded:on,pill:an,href:sn,size:La,iconSize:la,rippleOff:on,tonal:on,type:{type:String,default:"button",validator:e=>["button","submit","reset","div"].includes(e)},iconPosition:Ba,...Ea},Ra={...Pa,items:{type:Array,default:void 0,required:!0},multiple:on,modelValue:{type:[String,Number,Boolean,Array],default:void 0},flat:on,outlined:on,raised:on,rounded:on,pill:an,size:La,color:yn,tonal:on,toggleColor:sn,iconPosition:Ba},za=t.defineComponent({name:"BsButtonInner",props:Fa,setup(e,{slots:n}){const i=e;return()=>t.h(Mn,{class:{"dropdown-toggle":i.dropdownToggle&&!i.iconMode},disabled:e.rippleOff,tag:e.tagName},{default:()=>jt("span",n,[`${Mt}btn-inner`,i.hasIcon?"has-icon":""])})}});function Ua(e){return t.unref(e.validator||e.externalValidator)}function Wa(e){const t=Ua(e);return null!=t&&t.hasError}function Ha(e){const t=Ua(e);return!(!t||null==t.dirty)&&t.dirty}function qa(e){const t=Ua(e);return null!=t&&t.hasError&&null!=t.messages&&null!=t.validators}function Za(e,t){return!vt.isEmpty(e.helpText)&&(!0===e.persistentHelpText||!0===t)}function Ya(e){const n=Ua(e);if(n){const e=t.unref(n.validators);return Object.keys(e).filter((n=>t.unref(e[n])))}return[]}function Xa(e,n){return{hasError:t.computed((()=>Wa(e))),hasValidated:t.computed((()=>Ha(e))),showValidationError:t.computed((()=>qa(e))),showHelpText:t.computed((()=>Za(e,n.value))),errorItems:t.computed((()=>Ya(e)))}}function Ga(e,n,i){return n?t.h(t.Fragment,{key:vt.uuid()},i.map((n=>t.h("small",{key:`bs-${n}`,class:"text-danger d-block"},function(e,n){const i=Ua(e);return i?t.unref(i.messages[n]):""}(e,n))))):t.createCommentVNode(" v-if-field-error ")}function Ja(e,n,i,r,o,a,s){return n.helpText||r?t.h("div",{class:`${Mt}field-feedback`,onClick:s},[o?Ga(n,o,a):Ut({name:"field-feedback"},Ft(e,"help-text",{key:"feedback-help-text"},i?t.h("small",{class:`${Mt}help-text d-block`},n.helpText):t.createCommentVNode(" v-if-help-text ")))]):t.createCommentVNode(" v-if-field-feedback ")}function Ka(e,t,n){return{class:{btn:"icon"!==e.mode,[`${Mt}btn-${e.mode}`]:"icon"===e.mode,[`btn-outline-${e.color}`]:e.outlined&&e.color&&!e.tonal,[`btn-flat-${e.color}`]:e.flat&&e.color&&!e.outlined&&!e.tonal,[`btn-${e.color}`]:!e.outlined&&!e.flat&&e.color,[`btn-${e.size}`]:!vt.isEmpty(e.size),[`${Mt}btn-raised`]:e.raised,[`${Mt}btn-tonal`]:e.tonal,[`${Mt}btn-fab`]:["fab","floating"].includes(e.mode),[`${Mt}rounded-pill`]:e.pill&&!["icon","fab","floating"].includes(e.mode),[`${Mt}rounded-sm`]:!e.pill&&!e.rounded&&!["icon","fab","floating"].includes(e.mode),disabled:t,readonly:e.readonly,active:e.active},role:"button",href:vt.isEmpty(e.href)||e.disabled||e.readonly?void 0:e.href,type:"div"===n?void 0:n,disabled:"div"===n?void 0:t,"aria-disabled":"div"===n?void 0:t}}function Qa(e,t){if(t.multiple&&Array.isArray(t.modelValue)&&!Array.isArray(e.value)){return null!=t.modelValue.find((t=>t===e.value))}return t.modelValue===e.value}function es(e,t){const n=Qa(e,t);return{btn:!0,[`btn-${t.toggleColor}`]:n&&t.toggleColor&&!t.disabled&&!e.disabled,[`btn-outline-${t.color}`]:t.outlined&&!t.tonal&&(!n||!t.toggleColor),[`btn-flat-${t.color}`]:t.flat&&!t.outlined&&!t.tonal&&(!n||!t.toggleColor),[`btn-${t.color}`]:!(t.outlined||t.flat||n&&t.toggleColor),[`btn-${t.size}`]:!vt.isEmpty(t.size),[`${Mt}btn-raised`]:t.raised,[`${Mt}btn-tonal`]:t.tonal,[`${Mt}rounded-pill`]:t.pill,[`${Mt}rounded-sm`]:!t.pill&&!t.rounded,active:n&&!t.toggleColor&&!t.disabled&&!e.disabled,disabled:t.disabled||e.disabled,readonly:t.readonly||e.readonly}}function ts(e,t){const n={id:e.id||Vt(),role:t.multiple?"checkbox":"radio",type:t.multiple?"checkbox":"radio",name:t.multiple?e.name:t.name,required:t.required,disabled:t.disabled||e.disabled,readonly:t.readonly||e.readonly,"aria-disabled":t.disabled||e.disabled,"aria-checked":Qa(e,t)};return t.multiple?{...n,"true-value":!0,"false-value":!1}:n}function ns(e,n,i,r){return t.withDirectives(t.h("input",{class:"d-none",value:n.value,...ts(n,i),"onUpdate:modelValue":t=>{i.disabled||i.readonly||n.disabled||n.readonly||(e.value=t,r("update:model-value",e.value))}}),[i.multiple?[t.vModelCheckbox,e.value]:[t.vModelRadio,e.value]])}function is(e,n,i,r,o,a,s,l){var u;return e&&e[n]?Rt(e,n,o,{class:{"d-inline-flex":!0,[`${Mt}icon-${a}`]:"default"===i||["fab","floating"].includes(i)&&e.default,[`${Mt}empty-icon`]:vt.isEmpty(e[n])||!vt.isFunction(e[n])},style:s&&null!=(null==(u=e[n])?void 0:u.call(void 0))?{height:vt.cssUnit(s),width:vt.cssUnit(s)}:void 0},void 0,"span",l):Ft(e,n,{key:o},vt.isEmpty(r.icon)?[]:t.h(ya,{class:{[`${Mt}icon-${a}`]:"default"===i||["fab","floating"].includes(i)&&e.default},size:s,...Yr(r)}),l)}const rs=t.defineComponent({name:"BsButton",props:ja,setup(e,{slots:n}){const i=e,r=t.computed((()=>{if(vt.isEmpty(e.href))return["icon","fab","floating"].includes(i.mode)?"div":i.type})),o=t.computed((()=>!vt.isEmpty(e.icon)||null!=n.icon)),a=t.computed((()=>!0===i.disabled&&vt.isEmpty(e.href))),s=t.computed((()=>!0===i.rippleOff||a.value||!0===i.readonly)),l=t.computed((()=>vt.isEmpty(i.href)||i.disabled||i.readonly?"div"===r.value?"div":"button":"a")),u=Vt();return()=>t.h(l.value,{...Ka(i,a.value,r.value)},[t.h(za,{class:{"empty-text":!n.default&&i.dropdownToggle},dropdownToggle:e.dropdownToggle,iconMode:"icon"===i.mode,hasIcon:o.value,rippleOff:s.value},{default:()=>function(e,t,n){return["left"===t.iconPosition?is(e,"icon",t.mode,t,n,t.iconPosition,t.iconSize):"",e.default&&e.default(),"right"===t.iconPosition?is(e,"icon",t.mode,t,n,t.iconPosition,t.iconSize):""]}(n,i,u)})])}}),os=t.defineComponent({name:"BsToggleButton",props:Ra,emits:["update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(e.modelValue),a=t=>e.disabled||e.readonly||t.disabled||t.readonly;return()=>{var s;return t.h("div",{class:["btn-group",r.disabled?`${Mt}disabled`:"",r.readonly?`${Mt}readonly`:"",r.required?`${Mt}required`:""],id:e.id,role:"group"},null==(s=r.items)?void 0:s.map(((e,s)=>(e.id??(e.id=Vt()),t.h("label",{key:`btn-${s}`,tabIndex:0,class:es(e,r),onKeydown:t=>{["Space","Enter"].includes(t.code)&&(t.target.focus(),r.disabled||r.readonly||e.disabled||e.readonly||(r.multiple?o.value.includes(e.value)?o.value=o.value.filter((t=>t!==e.value)):o.value.push(e.value):o.value=e.value,n("update:model-value",o.value)),t.preventDefault())}},[ns(o,e,r,n),t.h(za,{rippleOff:a(e)},{default:()=>function(e,n,i){return["left"===i.iconPosition?is(e,"icon","default",n,`icon-${n.id||Wr(n.label)||Vt()}`,i.iconPosition,n.iconSize,n):"",Ft(e,"label",{key:Wr(n.label)},[t.h("span",{class:`${Mt}btn-text`},t.toDisplayString(n.label))],n),"right"===i.iconPosition?is(e,"icon","default",n,`icon-${n.id||Wr(n.label)||Vt()}`,i.iconPosition,n.iconSize,n):""]}(i,e,r)})])))))}}}),as=t.defineComponent({name:"BsToggleField",props:{...Ra,...Ta},emits:["update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(!1),a=t.computed((()=>Wa(r))),s=t.computed((()=>Ha(r))),l=t.computed((()=>qa(r))),u=t.computed((()=>Za(r,o.value))),c=t.computed((()=>Ya(r))),d=t.computed((()=>({[`${Mt}field`]:!0,[`${Mt}toggle-field row`]:!0,required:r.required,readonly:r.readonly,disabled:r.disabled,"has-error":a.value,"has-success":s.value&&!a.value})));return()=>function(e,n,i,r,o,a,s,l,u){const c=i;return t.h("div",{class:r.value},[e.default&&e.default(),t.h("div",{class:"col-md"},[t.h("div",{class:[`${Mt}field-inner`]},[t.h(os,{id:i.id,name:i.name,disabled:i.disabled,readonly:i.readonly,required:i.required,items:c.items,multiple:i.multiple,modelValue:i.modelValue,flat:i.flat,outlined:i.outlined,tonal:i.tonal,raised:i.raised,rounded:i.rounded,pill:i.pill,size:i.size,color:i.color,toggleColor:i.toggleColor,iconPosition:i.iconPosition,onMouseenter:()=>!vt.isEmpty(c.helpText)&&!c.persistentHelpText&&(o.value=!0),onMouseleave:()=>!vt.isEmpty(c.helpText)&&!c.persistentHelpText&&(o.value=!1),"onUpdate:model-value":e=>{n("update:model-value",e)}},{label:e.label?t=>Ft(e,"label",t):void 0,icon:e.icon?t=>Ft(e,"icon",t):void 0})]),Ja(e,c,a.value,s.value,l.value,u.value)])])}(i,n,e,d,o,u,l,a,c)}}),ss={install:e=>{e.component(rs.name,rs),e.component(os.name,os),e.component(as.name,as),e.component("BsButtonToggle",os),e.component("BsButtonToggleField",as)}},ls=t.defineComponent({name:"BsAvatar",props:_a,setup(e,{slots:n}){const i=e;return()=>t.h("div",{class:{[`${Mt}avatar`]:!0,[`border-${i.borderColor}`]:i.borderColor,"overflow-hidden":i.circle||i.rounded,"p-2":Zn(i)>72,...Xr(i.circle,i.rounded)},style:{...Gn(i),borderStyle:i.border?"solid":void 0,borderWidth:i.border?vt.cssUnit(i.border)+" !important":void 0}},Ft(n,"default",{key:vt.uuid()},[vt.isEmpty(i.imgSrc)?vt.isEmpty(i.icon)?t.h("span",{class:[`${Mt}avatar-text`]},i.text||"?"):t.h(ya,{size:Zr(i),...Yr(i)}):Gr(i)]))}}),us={install:e=>{e.component(ls.name,ls)}};function cs(e,n,i,r,o,a,s){return Ut({name:n.transition},i.value?function(e,n,i,r,o,a){return t.h("div",{class:i.value,role:"alert"},[Rt(e,"icon",vt.uuid(),{class:"d-flex alert-icon me-3"},o.value?t.h(ya,{...Yr(n),icon:o.value,size:32}):void 0),jt("div",e,"flex-fill"),n.dismissible?t.h(rs,{class:"ms-auto",color:n.solidFill||n.filled?["light","light-grey"].includes(n.color)?"dark":"light text-white":r.value,icon:"close",mode:"icon",flat:!0,onClick:a}):t.createCommentVNode(" v-if-alert-dismissible ")])}(e,n,r,o,a,s):t.createCommentVNode(" BsAlert "))}const ds={color:sn,dismissible:on,iconType:{type:String,default:void 0,validator:e=>["success","info","warning","danger","help"].includes(e)},variant:{type:String,default:void 0,validator:e=>["success","info","warning","danger","help"].includes(e)},outlined:on,filled:on,solidFill:on,transition:xn,modelValue:an,...Ea},hs=t.defineComponent({name:"BsAlert",props:ds,emits:["close","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(!1),a=t.computed((()=>function(e){const t=e.iconType||e.variant;return t?"help"===t?vt.isEmpty(e.color)?"mdb-color":e.color:vt.isEmpty(e.color)?t:e.color:vt.isEmpty(e.color)?"primary":e.color}(r))),s=t.computed((()=>function(e){let t;const n=e.iconType||e.variant;if(n){switch(n){case"help":t=`help_${e.iconVariant}`;break;case"danger":t=`report_${e.iconVariant}`;break;case"warning":t=`warning_${e.iconVariant}`;break;case"info":t=`info_${e.iconVariant}`;break;default:t=`check_circle_${e.iconVariant}`}return t}if(e.icon)return t=qn(e.icon),Hr(t,["_outlined_filled","_rounded_filled","_sharp_filled","_filled","_outlined","_rounded","_sharp"])?t:`${t}_${e.iconVariant}`}(r))),l=t.computed((()=>function(e,t){const n=e.solidFill||e.filled;return{"alert d-flex":!0,"align-items-center":!0,"alert-dismissible":e.dismissible,[`alert-${t.value}`]:!vt.isEmpty(t.value)&&!e.outlined&&!n,[`${Mt}alert-solid-${t.value}`]:!vt.isEmpty(t.value)&&n&&!e.outlined,[`${Mt}alert-outline-${t.value}`]:e.outlined}}(r,a))),u=t.computed((()=>!o.value&&r.modelValue)),c=()=>{o.value=!0,n("update:model-value",!1),t.nextTick().then((()=>n("close")))};return t.watch((()=>r.modelValue),(e=>{r.dismissible&&(o.value=!(!0===e))})),()=>cs(i,r,u,l,a,s,c)}}),fs={install:e=>{e.component(hs.name,hs)}},ps={color:yn,outlined:on,tag:{type:String,default:"span"},type:{type:String,default:void 0,validator:e=>["label","pill"].includes(e)},variant:{type:String,default:void 0,validator:e=>["primary","secondary","success","warning","danger","info","light","dark"].includes(e)}},ms=t.defineComponent({name:"BsBadge",props:ps,setup(e,{slots:t}){const n=e;return()=>jt(n.tag||"span",t,{badge:!0,[`badge-${n.type}`]:n.type,[`text-bg-${n.variant}`]:!n.outlined&&n.variant,[`bg-${n.color}`]:!n.outlined&&!n.variant&&n.color,[`${Mt}border text-${n.variant||n.color}`]:n.outlined})}}),vs={install:e=>{e.component(ms.name,ms)}};function gs(e,t){let n;return n="sm"===e?t?"1.56rem":"1.125rem":"lg"===e?t?"3rem":"2.375rem":t?"2rem":"1.5rem",{height:n,width:n}}function ys(e){const n=!1===e.imgPadding||e.imgPaddingOff;return t.h("div",{class:[`${Mt}chip-avatar`,n?`${Mt}chip-avatar-bounded`:""]},[t.h("img",{src:e.imgSrc,alt:"Chip Avatar",class:e.imgCircle||e.pill?"rounded-circle":void 0,style:gs(e.size,n)})])}function bs(e,t){return{flat:!0,mode:"icon",icon:"close",iconSize:"sm"===e.size?14:"lg"===e.size?22:20,size:"sm"===e.size?"xs":"sm",color:["light","light-grey"].includes(e.color)?"dark":e.color,onClick:t}}const ws={type:String,default:"grey"},xs={active:on,activeClass:sn,color:ws,disabled:on,readonly:on,dismissible:on,href:sn,imgSrc:sn,imgCircle:on,imgPadding:an,imgPaddingOff:on,modelValue:an,outlined:on,pill:on,rippleOff:on,size:{type:String,default:void 0,validator:e=>["sm","lg"].includes(e)},iconPosition:Ba,...Ea},Ss={activeClass:sn,color:ws,checkedIcon:on,column:on,imgCircle:on,imgPadding:an,imgPaddingOff:on,pill:on,multiple:on,outlined:on,size:{type:String,default:void 0,validator:e=>["sm","lg"].includes(e)},sliderButton:on,sliderButtonColor:{type:String,default:"secondary"},items:{type:Array,default:void 0,required:!0},modelValue:{type:[Object,Array],default:void 0}},Es=t.defineComponent({name:"BsChip",props:xs,emits:["close","update:active","update:model-value"],setup(e,{emit:n,attrs:i,slots:r}){const o=e,a=t.ref(!1),s=t.computed((()=>function(e,t){return{[`${Mt}chip`]:!0,[`${Mt}chip-sm`]:"sm"===e.size,[`${Mt}chip-lg`]:"lg"===e.size,[`${Mt}chip-pill`]:e.pill,[`${Mt}chip-clickable`]:(e.href||t.click||t.onclick||t.onClick)&&!e.disabled&&!e.readonly,[`${Mt}chip-${e.color}`]:e.color&&!e.outlined&&(!e.activeClass||!1===e.active),[`${Mt}chip-outline-${e.color}`]:e.color&&e.outlined&&(!e.activeClass||!1===e.active),[e.activeClass]:e.activeClass&&!0===e.active&&!e.disabled,active:!0===e.active&&!e.disabled&&!e.activeClass,disabled:!0===e.disabled,readonly:!0===e.readonly&&!e.disabled}}(o,i))),l=t.computed((()=>vt.isEmpty(o.href)||o.disabled||o.readonly?"div":"a")),u=t.computed((()=>o.rippleOff||o.disabled||o.readonly||!i.click&&!i.onclick&&!i.onClick&&!e.href)),c=t.computed((()=>!a.value&&e.modelValue)),d=()=>{a.value=!0,n("update:active",!1),n("update:model-value",!1),t.nextTick().then((()=>n("close")))};return t.watch((()=>o.modelValue),(t=>{e.dismissible&&(a.value=!(!0===t))})),()=>Ut({name:"fade"},c.value?function(e,n,i,r,o,a){return t.h(r,{class:i.value,href:vt.isEmpty(n.href)||n.disabled||n.readonly?void 0:n.href},[t.h(Mn,{disabled:o,class:`${Mt}chip-content`},{default:()=>[Rt(e,"icon",vt.isEmpty(n.icon)?vt.uuid(!0):`key-${n.icon}`,{class:[`${Mt}chip-icon`,vt.isEmpty(n.icon)&&!e.icon?`${Mt}empty-icon`:"","right"===n.iconPosition?"order-1":""],style:{width:n.size||vt.isEmpty(n.icon)?void 0:"18px",height:n.size||vt.isEmpty(n.icon)?void 0:"18px"}},vt.isEmpty(n.icon)?void 0:t.h(ya,{...Yr(n),size:"sm"===n.size?18:"lg"===n.size?40:22})),n.imgSrc?ys(n):t.createCommentVNode(" v-if-chip-avatar "),jt("div",e,[`${Mt}chip-text`,"d-flex align-items-center"]),n.dismissible?t.h(rs,bs(n,a)):t.createCommentVNode(" v-if-chip-dismissible ")]})])}(r,o,s,l.value,u.value,d):t.createCommentVNode(" BsChip "))}});function ks(e){const t=document.getElementById(e.contentId),n=document.getElementById(e.wrapperId);e.wrapperWidth=(null==n?void 0:n.clientWidth)||0,e.contentWidth=(null==t?void 0:t.clientWidth)||0}function _s(e,t){return t&&Array.isArray(t)?null!=t.find((t=>t.text===e.text)):!!t&&t.text===e.text}function Cs(e,t,n){ks(n),t.value=function(e,t,n){const i=n+("prev"===t?-1:1)*e.wrapperWidth;return Math.max(Math.min(i,e.contentWidth-e.wrapperWidth),0)}(n,e,t.value)}function Ts(e,n,i,r,o){return t.h("div",{class:[`${Mt}chip-slide-${e}`]},[t.h(rs,{mode:"icon",flat:!0,color:i.sliderButtonColor,icon:"prev"===e?"chevron_backward":"chevron_forward",iconSize:24,disabled:!n,onClick:()=>Cs(e,r,o)})])}function Os(e,n,i,r,o,a){const s=function(e,t){const n=_s(t,e.modelValue),i={...t,active:n,color:e.color,size:e.size,pill:e.pill,outlined:e.outlined,activeClass:e.activeClass,imgCircle:e.imgCircle,imgPadding:e.imgPadding,imgPaddingOff:e.imgPaddingOff};return delete i.value,delete i.text,e.checkedIcon&&n&&(i.icon="done"),i}(n,i);return t.h(Es,{key:`chip-${r}`,...s,onClick:()=>o(i),onClose:()=>a(i)},{icon:e.icon?()=>t.renderSlot(e,"icon",i):void 0,default:()=>t.renderSlot(e,"text",i,(()=>[t.createTextVNode(t.toDisplayString(i.text))]))})}const Ns=t.defineComponent({name:"BsChipGroup",props:Ss,emits:["change","update:model-value","item:close"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(0),a=t.reactive({contentId:Vt(),contentWidth:0,wrapperId:Vt(),wrapperWidth:0}),s=t.computed((()=>r.sliderButton&&!r.column)),l=t.computed((()=>a.contentWidth>Math.abs(o.value)+a.wrapperWidth)),u=t.computed((()=>0!==o.value)),c=e=>{n("item:close",e)},d=e=>{if(e.disabled)return;const i={id:e.id,value:e.value,text:e.text};if(r.multiple){let o=r.modelValue?Array.isArray(r.modelValue)?r.modelValue:[r.modelValue]:[];o.length>0&&_s(e,o)?o=o.filter((t=>e.text!==t.text)):o.push(i),n("change",o),t.nextTick().then((()=>n("update:model-value",o)))}else{const o=_s(e,r.modelValue);n("change",o?null:i),t.nextTick().then((()=>n("update:model-value",o?null:i)))}};return t.watch((()=>o.value),(e=>{const t=document.getElementById(a.contentId);t&&(t.style.transform=`translateX(${-e}px)`)})),t.onMounted((()=>ks(a))),()=>function(e,n,i,r,o,a,s,l,u){return t.h("div",{class:[`${Mt}chip-group`,n.column?`${Mt}chip-group-column`:""]},[o?Ts("prev",a,n,i,r):t.createCommentVNode(" v-if-chip-group-arrow "),t.h("div",{id:r.wrapperId,class:[`${Mt}chip-group-slider`]},[t.h("div",{id:r.contentId,class:[`${Mt}chip-group-content`]},n.items.map(((t,i)=>Os(e,n,t,i,l,u))))]),o?Ts("next",s,n,i,r):t.createCommentVNode(" v-if-chip-group-arrow ")])}(i,r,o,a,s.value,u.value,l.value,d,c)}}),$s={install:e=>{e.component(Es.name,Es),e.component(Ns.name,Ns)}};function Is(e,t,n,i){i?t.preventDefault():(n.value=!1,e("blur",t))}function As(e,t,n,i){i?t.preventDefault():(n.value=!0,e("focus",t))}function Ps(e,n){n.value=null,e("update:model-value",null),t.nextTick().then((()=>e("clear")))}function Ms(e,t,n){t.value=n,e("update:model-value",t.value)}function Ds(e,t){const n=t.el,i=n.querySelector(".md-field-label");let r;if(e.floatingLabel){const e=null==i?void 0:i.children;e&&e.length>0&&(r=i.children[0],vt.isEmpty(r.classList)||vt.isEmpty(r.className)||(r.className=`${Mt}empty-class`))}if(e.outlined){const e=n.querySelector(".md-field-outline-label");e&&i&&(e.innerHTML=i.innerHTML)}r=n.querySelector("label"),r&&!r.hasAttribute("for")&&r.setAttribute("for",e.id)}function Vs(e,n){Ds(e,n);const i=n.el;e.autofocus&&t.nextTick().then((()=>{const e=i.querySelector("input");null==e||e.focus()}))}function Ls(e,t,n){return{[`${Mt}field row`]:!0,[`${Mt}field-filled`]:e.filled,[`${Mt}field-outlined`]:e.outlined&&!e.filled,[`${Mt}field-flat`]:e.flat&&!e.filled&&!e.outlined,required:e.required,readonly:e.readonly,disabled:e.disabled,"has-error":n,"has-success":t&&!n}}function Bs(e,t){const n=!vt.isEmpty(e.placeholder);return{autocomplete:t,placeholder:n?e.placeholder:void 0,"aria-disabled":e.disabled,"aria-required":e.required,"aria-readonly":e.readonly,"aria-placeholder":n?e.placeholder:void 0}}function Fs(e,n,i,r,o,a){return Rt(e,n,r?`${n}-${r}`:vt.uuid(),{class:i,onClick:a},r?t.h(ya,{icon:r,size:o}):void 0)}function js(e,n,i,r,o,a,s){return t.h("div",{id:s,class:i.value,onVnodeMounted:a,onVnodeUpdated:e=>Ds(r,e)},[!r.floatingLabel&&e.default&&e.default({id:r.id}),t.h("div",{class:`${Mt}field-wrapper col`},[Fs(e,"prepend-outer",`${Mt}prepend-outer`,r.prependIconOuter,n),o,Fs(e,"append-outer",`${Mt}append-outer`,r.appendIconOuter,n)])])}function Rs(e){return e.outlined&&!e.filled?t.h("div",{class:`${Mt}field-outline-control`,"aria-hidden":"true"},[t.h("div",{class:`${Mt}field-outline-start`}),t.h("div",{class:`${Mt}field-outline-label`}),t.h("div",{class:`${Mt}field-outline-end`})]):t.createCommentVNode(" v-if-outlined ")}function zs(e,n,i,r,o,a,s,l,u,c,d,h,f){const p=[zt(e,"default",!0===n.floatingLabel,{class:`${Mt}field-label`},"div",{id:n.id})].concat(Array.isArray(i)?i:[i]);return t.h("div",{class:`${Mt}field-inner`,...c},[t.h("div",{class:`${Mt}field-overlay`}),Fs(e,"prepend-inner",`${Mt}prepend-inner`,a,r,f),u,t.h("div",{class:`${Mt}field-activator`,...d},p),l,Fs(e,"append-inner",`${Mt}append-inner`,o,r,h),s,Rs(n)])}function Us(e,n,i,r,o,a,s){return Ut({name:"fade"},e||o?t.h("div",{class:`${Mt}action-icon`},[e?t.h(ya,{class:"icon-clear",icon:`cancel_${n}`,size:i,onClick:r}):void 0,o?t.h(wa,{icon:`visibility_${n}`,toggleIcon:`visibility_off_${n}`,size:i,modelValue:null==a?void 0:a.value,"onUpdate:model-value":s}):void 0]):t.createCommentVNode(" v-if-action-icon "))}function Ws(e,n,i,r,o){return r?Ut({name:"fade"},n||i?t.h("div",{class:`${Mt}validation-icon`},[n&&i?t.h(ya,{class:"icon-error text-danger",icon:`error_${e}`,size:o}):n&&!i?t.h(ya,{class:"icon-success text-success",icon:`check_${e}`,size:o}):void 0]):t.createCommentVNode(" v-if-validation-icon ")):t.createCommentVNode(" v-if-validation-icon ")}function Hs(e,t){return!0===e.clearButton&&!vt.isEmpty(t.value)&&!e.readonly&&!e.disabled}function qs(e,t,n,i,r,o){return{[`${Mt}field-control`]:!0,[`${Mt}field-filled`]:t.filled,[`${Mt}field-outlined`]:t.outlined&&!t.filled,[`${Mt}field-flat`]:t.flat&&!t.filled&&!t.outlined,[`${Mt}floating-label`]:t.floatingLabel,"append-icon":r,"prepend-icon":t.prependIcon||o||e["prepend-inner"],active:!vt.isEmpty(n.value)||!vt.isEmpty(t.placeholder),focused:i.value,readonly:t.readonly,disabled:t.disabled}}function Zs(e){return{id:e.id,name:e.name,disabled:e.disabled,required:e.required,readonly:e.readonly}}function Ys(e,n,i,r,o,a){return[e.prefix&&(a.value||o.value)?t.h("div",{class:`${Mt}field-prefix`},t.toDisplayString(e.prefix)):t.createCommentVNode(" v-if-prefix "),t.withDirectives(t.h("input",{...Zs(e),...Bs(e,i),role:"textbox",type:n,list:e.datalist,maxlength:e.maxlength,minlength:e.minlength,"onUpdate:modelValue":e=>Ms(r,o,e),onBlur:t=>Is(r,t,a,e.disabled),onFocus:t=>As(r,t,a,e.disabled),onKeydown:e=>r("keydown",e)}),[[t.vModelText,o.value]]),e.suffix&&(a.value||o.value)?t.h("div",{class:`${Mt}field-suffix`},t.toDisplayString(e.suffix)):t.createCommentVNode(" v-if-suffix ")]}function Xs(e,n,i,r,o,a,s){const l=e.autoGrow&&!e.noResize;return t.withDirectives(t.h("textarea",{...Zs(e),...Bs(e,s),ref:i,role:"textbox",rows:l?2:e.rows&&!e.rowHeight?e.rows:void 0,style:o.value&&{height:vt.cssUnit(o.value)},"onUpdate:modelValue":e=>Ms(n,r,e),onBlur:t=>Is(n,t,a,e.disabled),onFocus:t=>As(n,t,a,e.disabled),onKeydown:e=>n("keydown",e),onInput:e=>{if(l){const t=e.target;t.parentElement&&(t.parentElement.dataset.clone=t.value)}}}),[[t.vModelText,r.value,"",{lazy:!0}]])}function Gs(e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v){return js(e,24,r,i,t.h("div",{class:o.value},[zs(e,i,Xs(i,n,a,s,l,u,c),24,i.appendIcon,i.prependIcon,Ws(i.actionIconVariant,p.value,m.value,i.validationIcon,24),Us(d.value,i.actionIconVariant,24,(()=>Ps(n,s)))),Ja(e,i,h.value,f.value,m.value,v.value)]),(e=>function(e,n){Ds(e,n);const i=n.el;e.autofocus&&t.nextTick().then((()=>{const e=i.querySelector("textarea");null==e||e.focus()}))}(i,e)))}const Js=t.defineComponent({name:"BsTextField",props:{...Pa,...Ma,...Ta,autocomplete:{type:[String,Boolean],default:!1},autofocus:on,type:{type:String,default:"text",validator:e=>["text","email","password","tel","url"].includes(e)},datalist:sn,modelValue:dn,passwordToggle:an,placeholder:sn,maxlength:fn,minlength:fn,rounded:on,prefix:sn,suffix:sn},emits:["blur","focus","clear","keydown","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=r.autocomplete&&vt.isString(r.autocomplete)?r.autocomplete:r.autocomplete?"on":vt.uuid(),a=t.ref(r.modelValue),s=t.ref(!1),l=t.ref(!1),u=Xa(r,l),c=t.computed((()=>Hs(r,a))),d=t.computed((()=>"password"===r.type&&!0===r.passwordToggle)),h=t.computed((()=>null!=i["append-inner"]||!vt.isEmpty(r.appendIcon)||c.value||d.value)),f=t.computed((()=>Ls(r,u.hasValidated.value,u.hasError.value))),p=t.computed((()=>({...qs(i,r,a,l,h.value),[`${Mt}field-rounded`]:(r.outlined||r.filled)&&r.rounded,[`${Mt}text-field`]:!0}))),m=t.computed((()=>d.value?s.value?"text":"password":r.type)),v=e=>{s.value=e};return t.watch((()=>r.modelValue),(e=>{a.value=e})),()=>function(e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y){return js(e,24,r,i,t.h("div",{class:o.value},[zs(e,i,Ys(i,a,c,n,s,l),24,i.appendIcon,i.prependIcon,Ws(i.actionIconVariant,m.value,v.value,i.validationIcon,24),Us(d.value,i.actionIconVariant,24,(()=>Ps(n,s)),h.value,u,y)),Ja(e,i,f.value,p.value,v.value,g.value)]),(e=>Vs(i,e)))}(i,n,r,f,p,m.value,a,l,s,o,c,d,u.showHelpText,u.showValidationError,u.hasValidated,u.hasError,u.errorItems,v)}}),Ks=t.defineComponent({name:"BsTextArea",props:{...Pa,...Ma,...Ta,autocomplete:{type:[String,Boolean],default:!1},autofocus:on,autoGrow:on,modelValue:sn,noResize:on,placeholder:sn,rows:{type:[String,Number],default:2,validator:e=>!isNaN(parseInt(e,10))},rowHeight:fn},emits:["blur","focus","clear","keydown","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=r.autocomplete&&vt.isString(r.autocomplete)?r.autocomplete:r.autocomplete?"on":vt.uuid(),a=t.ref(r.modelValue),s=t.ref(r.rowHeight),l=t.ref(),u=t.ref(!1),c=Xa(r,u),d=t.computed((()=>Hs(r,a))),h=t.computed((()=>null!=i["append-inner"]||!vt.isEmpty(r.appendIcon)||d.value)),f=t.computed((()=>Ls(r,c.hasValidated.value,c.hasError.value))),p=t.computed((()=>({...qs(i,r,a,u,h.value),[`${Mt}textarea`]:!0,[`${Mt}textarea-autogrow`]:r.autoGrow&&!r.noResize,[`${Mt}textarea-noresize`]:r.noResize||r.autoGrow&&!r.noResize})));return t.watchEffect((()=>{a.value=r.modelValue,r.autoGrow&&!r.noResize&&l.value&&l.value.parentElement&&(l.value.parentElement.dataset.clone=a.value)})),()=>Gs(i,n,r,f,p,l,a,s,u,o,d,c.showHelpText,c.showValidationError,c.hasValidated,c.hasError,c.errorItems)}});function Qs(e,t,n,i){e.disabled||e.readonly||(""!==n.value&&i.value.push(n.value),Array.isArray(e.modelValue)?t("update:model-value",i.value):t("update:model-value",i.value.join(", ")),n.value="")}function el(e,n,i,r,o,a){return t.h("input",{...Zs(e),...Bs(e,a),role:"textbox",type:"text",value:i.value,onChange:t=>{i.value=t.target.value,Qs(e,n,i,r)},onBlur:a=>{Qs(e,n,i,r),t.nextTick().then((()=>Is(n,a,o,e.disabled)))},onFocus:t=>As(n,t,o,e.disabled),onKeydown:o=>{"Backspace"===o.key&&""===o.target.value?(r.value.length>0&&r.value.pop(),n("keydown",o),t.nextTick().then((()=>Qs(e,n,i,r)))):"Enter"===o.key?(n("keydown",o),t.nextTick().then((()=>Qs(e,n,i,r)))):n("keydown",o)}})}function tl(e,n,i){if(0===i.value.length)return t.createCommentVNode(" v-if-chips ");const r=e;return t.h(t.Fragment,null,i.value.map((o=>t.h(Es,{key:o,color:e.chipColor,disabled:e.disabled,pill:e.chipPill,outlined:e.chipOutlined,dismissible:r.chipDeletable&&!r.readonly&&!r.disabled,onClose:()=>{n("delete-item",o),t.nextTick().then((()=>{const t=i.value.filter((e=>e!==o));Array.isArray(e.modelValue)?n("update:model-value",t):n("update:model-value",t.join(", "))}))}},{default:()=>t.toDisplayString(o)}))))}const nl=t.defineComponent({name:"BsChipField",props:{...Pa,...Ma,...Ta,autocomplete:{type:[String,Boolean],default:!1},autofocus:on,chipColor:sn,chipDeletable:on,chipPill:on,chipOutlined:on,modelValue:hn,placeholder:sn},emits:["blur","focus","clear","keydown","delete-item","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=r.autocomplete&&vt.isString(r.autocomplete)?r.autocomplete:r.autocomplete?"on":vt.uuid(),a=t.ref(""),s=t.ref(Array.isArray(r.modelValue)?r.modelValue:vt.isEmpty(r.modelValue)?[]:[r.modelValue]),l=t.ref(!1),u=Xa(r,l),c=t.computed((()=>Hs(r,s))),d=t.computed((()=>null!=i["append-inner"]||!vt.isEmpty(r.appendIcon)||c.value)),h=t.computed((()=>Ls(r,u.hasValidated.value,u.hasError.value))),f=t.computed((()=>({...qs(i,r,s,l,d.value),[`${Mt}chip-field`]:!0})));return t.watch((()=>r.modelValue),(e=>{s.value=Array.isArray(e)?e:vt.isEmpty(e)?[]:e.split(",").map((e=>e.trim()))})),()=>function(e,n,i,r,o,a,s,l,u,c,d,h,f,p,m){const v=i,g=Array.isArray(i.modelValue);return js(e,24,r,v,t.h("div",{class:o.value},[zs(e,v,[tl(i,n,s),el(v,n,a,s,l,u)],24,v.appendIcon,v.prependIcon,Ws(v.actionIconVariant,f.value,p.value,v.validationIcon,24),Us(c.value,v.actionIconVariant,24,(()=>{a.value="",s.value=[],n("update:model-value",g?[]:""),t.nextTick().then((()=>n("clear")))}))),Ja(e,v,d.value,h.value,p.value,m.value)]),(e=>Vs(v,e)))}(i,n,e,h,f,a,s,l,o,c,u.showHelpText,u.showValidationError,u.hasValidated,u.hasError,u.errorItems)}});function il(e,n){return t.h("div",{class:[`${Mt}btn-icon`,"btn-sm"],onClick:n},[t.h(Mn,{disabled:e.disabled,tag:"span"},{default:()=>t.h(ya,{icon:`do_not_disturb_on_${e.actionIconVariant}`,size:24})})])}function rl(e,n){return t.h("div",{class:[`${Mt}btn-icon`,"btn-sm"],onClick:n},[t.h(Mn,{disabled:e.disabled,tag:"span"},{default:()=>t.h(ya,{icon:`add_circle_${e.actionIconVariant}`,size:24})})])}function ol(e,n,i,r){const o=[];return"left"===n&&"both"===e.actionButtonPlacement?o.push(il(e,r)):"right"===n&&"both"===e.actionButtonPlacement?o.push(rl(e,i)):o.push(il(e,r),rl(e,i)),t.h("div",{class:[`${Mt}action-button-${n}`]},o)}function al(e,n,i){return t.h("div",{class:[`${Mt}spin-button-${e.spinButtonPlacement}`]},[t.h("div",{class:["btn",`${Mt}spin-up`],onClick:n},[t.h(Mn,{disabled:e.disabled,tag:"span"},{default:()=>t.h("div",{class:"triangle-up"})})]),t.h("div",{class:["btn",`${Mt}spin-down`],onClick:i},[t.h(Mn,{disabled:e.disabled,tag:"span"},{default:()=>t.h("div",{class:"triangle-down"})})])])}function sl(e,n,i,r,o,a,s,l){return Ut({name:"fade"},n||i||r||e.spinButton&&"right"===e.spinButtonPlacement||e.actionButton&&["right","both"].includes(e.actionButtonPlacement)?t.h("div",{class:`${Mt}action-icon`},[n?t.h(ya,{class:"icon-clear",icon:`cancel_${e.actionIconVariant}`,size:o,onClick:a}):void 0,e.disabled||e.readonly||!e.spinButton||"right"!==e.spinButtonPlacement?!e.disabled&&!e.readonly&&e.actionButton&&["right","both"].includes(e.actionButtonPlacement)?ol(e,"right",s,l):"":al(e,s,l)]):t.createCommentVNode(" v-if-action-icon "))}function ll(e,n,i){return e.disabled||e.readonly||!e.spinButton||"left"!==e.spinButtonPlacement?e.disabled||e.readonly||e.spinButton||!e.actionButton||!["left","both"].includes(e.actionButtonPlacement)?t.createCommentVNode(" v-if-action-button "):t.h("div",{class:[`${Mt}action-icon`,`${Mt}button-wrapper-${e.actionButtonPlacement}`]},[ol(e,"left",n,i)]):t.h("div",{class:`${Mt}action-icon`},[al(e,n,i)])}function ul(e,n,i,r,o,a,s,l){var u,c;let d=!a.value||e.disabled||e.readonly?null==(c=o.value)?void 0:c.toLocaleString(n.locale,i):null==(u=o.value)?void 0:u.toString(10);return[e.prefix&&(a.value||o.value)?t.h("div",{class:`${Mt}field-prefix`},t.toDisplayString(e.prefix)):t.createCommentVNode(" v-if-prefix "),t.h("input",{...Zs(e),...Bs(e,s),ref:r,role:"textbox",type:"text",value:d,onBlur:t=>Is(l,t,a,e.disabled),onChange:()=>{const e=r.value;if(null==e.value||""===e.value)Ms(l,o,null),d="";else{const t=parseFloat(e.value);fl(t,n)&&hl(t,n)&&(Ms(l,o,t),d=t.toLocaleString(n.locale,i))}},onFocus:t=>{var n;e.disabled||e.readonly||(d=null==(n=o.value)?void 0:n.toString()),As(l,t,a,e.disabled)},onKeydown:t=>{["Left","ArrowLeft","Right","ArrowRight","Esc","Escape","End","Tab","Enter","Home","PageDown","PageUp","Backspace","Clear","Delete","Copy","Cut","EraseEof"].includes(t.key)||/^-?\d*[.]?\d*$/.test(t.key)?l("keydown",t):!["Up","ArrowUp"].includes(t.key)||e.disabled||e.readonly?!["Down","ArrowDown"].includes(t.key)||e.disabled||e.readonly?t.preventDefault():cl(e,n,o,l):dl(e,n,o,l)}}),e.suffix&&(a.value||o.value)?t.h("div",{class:`${Mt}field-suffix`},t.toDisplayString(e.suffix)):t.createCommentVNode(" v-if-suffix ")]}function cl(e,t,n,i){if(!e.disabled&&!e.readonly){let r=(n.value||0)-t.step;0===parseInt(e.maxFraction)&&(r=Math.round(r)),fl(r,t)&&hl(r,t)&&Ms(i,n,r)}}function dl(e,t,n,i){if(!e.disabled&&!e.readonly){let r=(n.value??0)+t.step;0===parseInt(e.maxFraction)&&(r=Math.round(r)),fl(r,t)&&hl(r,t)&&Ms(i,n,r)}}function hl(e,t){return!vt.isNumber(t.maxValue)||e<=t.maxValue}function fl(e,t){return!vt.isNumber(t.minValue)||e>=t.minValue}const pl=t.defineComponent({name:"BsNumericField",props:Da,emits:["blur","focus","clear","keydown","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=r.autocomplete&&vt.isString(r.autocomplete)?r.autocomplete:r.autocomplete?"on":vt.uuid(),a=t.ref(r.modelValue),s=t.ref(null),l=t.ref(!1),u=Xa(r,l),c=t.computed((()=>Hs(r,a))),d=t.computed((()=>null!=i["append-inner"]||!vt.isEmpty(r.appendIcon)||c.value||!0===r.actionButton&&"right"===r.actionButtonPlacement&&!r.disabled&&!r.readonly||!0===r.spinButton&&"right"===r.spinButtonPlacement&&!r.disabled&&!r.readonly)),h=t.computed((()=>null!=i["prepend-inner"]||!vt.isEmpty(r.prependIcon)||!r.disabled&&!r.readonly&&!0===r.actionButton&&"left"===r.actionButtonPlacement||!r.disabled&&!r.readonly&&!0===r.actionButton&&"both"===r.actionButtonPlacement||!0===r.spinButton&&"left"===r.spinButtonPlacement&&!r.disabled&&!r.readonly)),f=t.computed((()=>Ls(r,u.hasValidated.value,u.hasError.value))),p=t.computed((()=>({...qs(i,r,a,l,d.value,h.value),[`${Mt}field-rounded`]:(r.outlined||r.filled)&&r.rounded,[`${Mt}numeric-field`]:!0}))),m={locale:r.locale||(Dt?"en-US":window.navigator.language),maxValue:vt.parseFloatLoose(r.maxValue),minValue:vt.parseFloatLoose(r.minValue),step:vt.parseFloatLoose(r.step)||1},v={maximumFractionDigits:vt.parseIntLoose(r.maxFraction)??3,useGrouping:r.useGrouping};return t.watch((()=>r.modelValue),(e=>{a.value=e??null})),()=>function(e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g){return js(e,24,a,i,t.h("div",{class:s.value},[zs(e,i,ul(i,r,o,u,l,c,d,n),24,i.appendIcon,i.prependIcon,Ws(i.actionIconVariant,m.value,v.value,i.validationIcon,24),sl(i,h.value,m.value,v.value,24,(()=>Ps(n,l)),(()=>dl(i,r,l,n)),(()=>cl(i,r,l,n))),ll(i,(()=>dl(i,r,l,n)),(()=>cl(i,r,l,n)))),Ja(e,i,f.value,p.value,v.value,g.value)]),(e=>Vs(i,e)))}(i,n,r,m,v,f,p,a,s,l,o,c,u.showHelpText,u.showValidationError,u.hasValidated,u.hasError,u.errorItems)}});var ml=!1;if("undefined"!=typeof window){var vl={get passive(){ml=!0}};window.addEventListener("testPassive",null,vl),window.removeEventListener("testPassive",null,vl)}var gl="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),yl=[],bl=!1,wl=-1,xl=void 0,Sl=void 0,El=void 0,kl=function(e){return yl.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},_l=function(e){var t=e||window.event;return!!kl(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Cl=function(){void 0!==El&&(document.body.style.paddingRight=El,El=void 0),void 0!==xl&&(document.body.style.overflow=xl,xl=void 0)},Tl=function(){if(void 0!==Sl){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=Sl.position,document.body.style.top=Sl.top,document.body.style.left=Sl.left,window.scrollTo(t,e),Sl=void 0}},Ol=function(e,t){if(e){if(!yl.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};yl=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(yl),[n]),gl?window.requestAnimationFrame((function(){if(void 0===Sl){Sl={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,n=e.scrollX,i=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-n,setTimeout((function(){return window.requestAnimationFrame((function(){var e=i-window.innerHeight;e&&t>=i&&(document.body.style.top=-(t+e))}))}),300)}})):function(e){if(void 0===El){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);El=document.body.style.paddingRight,document.body.style.paddingRight=i+n+"px"}}void 0===xl&&(xl=document.body.style.overflow,document.body.style.overflow="hidden")}(t),gl&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(wl=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-wl;!kl(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?_l(e):e.stopPropagation())}(t,e)},bl||(document.addEventListener("touchmove",_l,ml?{passive:!1}:void 0),bl=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")};const Nl={items:[],locked:!1,allowScrolling(){const e=document.getElementsByTagName("body")[0];var t;(t=e)?(yl=yl.filter((function(e){return e.targetElement!==t})),gl&&(t.ontouchstart=null,t.ontouchmove=null,bl&&0===yl.length&&(document.removeEventListener("touchmove",_l,ml?{passive:!1}:void 0),bl=!1)),gl?Tl():Cl()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),gl&&(yl.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),bl&&(document.removeEventListener("touchmove",_l,ml?{passive:!1}:void 0),bl=!1),wl=-1),gl?Tl():Cl(),yl=[],this.locked=!1},preventScrolling(){if(this.locked)return;const e=document.getElementsByTagName("body")[0];Ol(e,{reserveScrollBarGap:!0}),this.locked=!0},findItem(e){return this.items.findIndex((t=>t.target===e))},add(e,t,n){!e||this.findItem(e)>-1||(t.overlay&&this.preventScrolling(),this.items.push({target:e,props:t,active:n}))},remove(e){const t=this.findItem(e);if(-1===t)return;this.items[t].props.overlay&&this.allowScrolling(),this.items.splice(t,1)},closePopover(e,t,n){e&&t.value&&(t.value=!1,e.emit("update:open",!1),e.emit("close",n),this.remove(e))}};Dt||document.addEventListener("keydown",(e=>{if(0===Nl.items.length||e.key&&"escape"!==e.key.toLowerCase())return;const t=Nl.items[Nl.items.length-1];t.props.escClose&&Nl.closePopover(t.target,t.active,"Esc pressed.")}));function $l(e,t,n,i,r){var o,a,s;if(!(n.value&&e&&r.value&&t.trigger))return;const l=n.value,u=vt.isString(t.trigger)?document.querySelector(t.trigger):t.trigger;if(u){const n=u.getBoundingClientRect();(n.top<-n.height||n.top>window.innerHeight)&&Il(e,r,"Activator overflow.");const d=(c=t.space,vt.isNumber(c)?c:!c||isNaN(parseInt(c,10))?0:parseInt(c,10)),h=n.top-l.offsetHeight-d,f=window.innerHeight-(n.top+l.offsetHeight+d);(null==(o=t.placement)?void 0:o.startsWith("bottom"))&&f<h?i.value=t.placement.replace("bottom","top"):(null==(a=t.placement)?void 0:a.startsWith("top"))&&h<f?i.value=t.placement.replace("top","bottom"):i.value=t.placement,(null==(s=i.value)?void 0:s.startsWith("top"))?(l.style.top="",l.style.bottom=function(e,t,n,i){let r=window.innerHeight-e.top-n+4;return i&&(r+=e.height/2-t/2),window.innerHeight<r+t&&(r-=Math.abs(window.innerHeight-r-t)),r}(n,l.offsetHeight,d,t.cover)+"px",l.style.height="fit-content"):(l.style.bottom="",l.style.height="",l.style.top=function(e,t,n,i,r){const o=e.top+e.height+i;let a=0;const s=window.innerHeight-8-n;switch(t){case"top":case"top-left":case"top-right":a=e.top-n-i,r?a+=e.height:a<8&&(a=e.top+e.height-i);break;case"bottom":case"bottom-left":case"bottom-right":a=r?e.top:o>s?o-Math.abs(window.innerHeight-o-n):o;break;case"left":case"right":a=e.top+e.height/2-n/2;break;case"left-top":case"right-top":a=e.top;break;case"left-bottom":case"right-bottom":a=e.top+e.height-n}return a=Math.min(s,a),a=Math.max(8,a),a}(n,t.placement,l.offsetHeight,d,t.cover)+"px"),l.style.left=function(e,t,n,i,r){let o=0;const a=window.innerWidth-8-n;switch(t){case"left":case"left-top":case"left-bottom":o=e.left-n-i,r?o+=e.width:o<8&&(o=e.left+e.width+i);break;case"right":case"right-top":case"right-bottom":o=r?e.left:e.left+e.width>a?e.left-n-i:e.left+e.width+i;break;case"top":case"bottom":o=e.left+e.width/2-n/2;break;case"bottom-left":case"top-left":o=e.left;break;case"bottom-right":case"top-right":o=e.left+e.width-n}return["top","top-left","bottom","bottom-left"].includes(t)&&o+n>=a+n&&(o=a),Math.max(8,o)}(n,t.placement,l.offsetWidth,d,t.cover)+"px",Nl.add(e,t,r)}var c}function Il(e,t,n){Nl.closePopover(e,t,n)}function Al(e,n,i,r,o,a,s,l){const u=i,c=()=>{t.nextTick().then((()=>$l(r.value,u,a,s,l)))};return t.h(t.Teleport,{to:"body"},[t.h(En,{show:i.overlay&&l.value,opacity:i.overlayOpacity,color:i.overlayColor,onClick:()=>{u.overlayClickClose&&Il(r.value,l,"Overlay clicked.")}}),Ut({name:u.transition},[t.withDirectives(t.h("div",t.mergeProps({class:o.value,ref:a},n),e.default&&e.default()),[[t.vShow,l.value],[gt,e=>{!function(e,t,n,i){if(e.overlay&&!e.overlayClickClose||!n.value)return;const r=vt.isString(e.trigger)?document.querySelector(e.trigger):e.trigger;let o=i.target;if(r&&r.contains(o))return;if(r&&pt(o))for(o=null==o?void 0:o.parentElement;pt(o);)o=null==o?void 0:o.parentElement;if(mt(r,o))return;Il(t,n,"Clicked outside.")}(u,r.value,l,e)}],[yt,c],[xt,c]])])])}const Pl=t.defineComponent({name:"BsPopover",props:Ia,inheritAttrs:!1,emits:["update:open","close"],setup(e,{slots:n,attrs:i}){const r=e,o=t.ref(r.open),a=t.ref(r.placement),s=t.ref(null),l=t.shallowRef(null),u=t.computed((()=>[`${Mt}popover`,`transition-${a.value}`,r.color?`bg-${r.color}`:""]));return t.watch((()=>r.open),(e=>{o.value=e,e&&t.nextTick().then((()=>$l(l.value,r,s,a,o)))})),t.onMounted((()=>{l.value=t.getCurrentInstance(),$l(l.value,r,s,a,o)})),()=>Al(n,i,e,l,u,s,a,o)}}),Ml={install:e=>{e.component(Pl.name,Pl)}};function Dl(e,t){var n,i;const r=vt.parseIntLoose(e.popoverMinWidth)??0;return t.value&&r<(null==(n=t.value)?void 0:n.offsetWidth)?null==(i=t.value)?void 0:i.offsetWidth:r}function Vl(e,t){vt.isEmpty(e.value)?t("clear"):t("search",e.value)}const Ll=t.defineComponent({name:"BsSearchField",props:Va,inheritAttrs:!1,emits:["blur","focus","clear","search","open","close","update:model-value"],setup(e,{attrs:n,emit:i,slots:r}){const o=e,a=t.ref(o.modelValue),s=t.ref(!1),l=t.ref(!1),u=t.ref(null),c=t.computed((()=>function(e,t){return{[`${Mt}searchbox-inner`]:!0,[`${Mt}searchbox-dark`]:!0===e.darkMode,disabled:!0===e.disabled,readonly:!0===e.readonly,focused:t.value}}(o,s)));return t.watch((()=>o.modelValue),(e=>a.value=e)),()=>function(e,n,i,r,o,a,s,l,u){const c=i;return t.h("div",{class:[`${Mt}field-searchbox`]},[t.h("div",t.mergeProps({ref:a,class:o.value},r),[t.h(rs,{color:c.darkMode?"grey":"secondary",icon:"search",mode:"icon",size:"sm",flat:!0,onClick:()=>{!c.readonly&&!c.disabled&&Vl(s,n)}}),t.h("label",t.withDirectives(t.h("input",{type:"text",role:"searchbox",spellcheck:"false",autocomplete:"false",id:c.id,name:c.name,value:s.value,disabled:c.disabled,readonly:c.readonly,autofocus:c.autofocus,placeholder:c.placeholder,minlength:c.minlength,"aria-disabled":c.disabled,"aria-readonly":c.readonly,"aria-placeholder":c.placeholder,"onUpdate:modelValue":e=>{Ms(n,s,e),e.length>=c.minlength?Vl(s,n):0===e.length&&n("clear")},onBlur:e=>Is(n,e,l,c.disabled),onFocus:e=>As(n,e,l,c.disabled)}),[[t.vModelText,s.value]])),vt.isEmpty(s.value)?"":t.h(rs,{color:c.darkMode?"grey":"secondary",icon:"clear",mode:"icon",size:"sm",flat:!0,onClick:()=>{!c.readonly&&!c.disabled&&Ps(n,s)}}),c.advanceSearch?t.h(rs,{color:c.darkMode?"grey":"secondary",icon:"arrow_drop_down",mode:"icon",size:"sm",flat:!0,onClick:()=>{if(!c.readonly&&!c.disabled){const e=u.value;u.value=!e,n(u.value?"open":"close")}}}):""]),!0===c.advanceSearch&&a.value?t.h(Pl,{space:2,color:null,class:i.popoverCls,placement:i.popoverPlacement,transition:i.popoverTransition,open:u.value,trigger:a.value,style:{minWidth:vt.cssUnit(Dl(c,a))},"onUpdate:open":e=>{u.value=e,n(e?"open":"close")}},{default:()=>e.popover&&e.popover()}):t.createCommentVNode(" v-if-advanceSearch ")])}(r,i,e,n,c,u,a,s,l)}}),Bl={install:e=>{e.component(Js.name,Js),e.component(Ks.name,Ks),e.component(nl.name,nl),e.component(pl.name,pl),e.component(Ll.name,Ll)}},Fl={...Pa,color:yn,value:{type:[String,Number,Boolean,Object],default:"on"},modelValue:{type:[String,Number,Boolean,Object],default:void 0}},jl={color:yn,column:{type:[String,Number],default:void 0,validator:e=>{const t=parseInt(e,10);return t>0&&t<7}},items:{type:Array,default:void 0,required:!0},modelValue:{type:[String,Number,Boolean,Object],default:void 0}},Rl=t.defineComponent({name:"BsRadio",props:Fl,emits:["checked","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(!1),a=t.computed((()=>function(e){return{[`${Mt}radio`]:!0,[`${Mt}radio-${e.color}`]:null!=e.color,checked:e.value===e.modelValue,required:e.required,readonly:e.readonly,disabled:e.disabled}}(r))),s=()=>{if(!r.disabled&&!r.readonly){const e=r.value===r.modelValue;o.value=!0,n("update:model-value",e?null:r.value),t.nextTick().then((()=>{n("checked",!e)}))}};return()=>ql(i,r,a,o,"radio",Hl(r,"radio"),s)}}),zl=t.defineComponent({name:"BsRadioGroup",props:{...Aa,...jl,...Ta},emits:["update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.computed((()=>Wa(r))),a=t.computed((()=>Ha(r))),s=t.computed((()=>qa(r))),l=t.computed((()=>Ya(r))),u=t.computed((()=>({...Zl(r,a.value,o.value),[`${Mt}radio-group`]:!0}))),c=e=>{r.disabled||r.readonly||e.disabled||e.readonly||n("update:model-value",e.value)};return()=>Yl(i,r,u,function(e,n){return e.items.map(((i,r)=>t.h("div",{class:"col",key:`radio-${r}`},[t.h(Rl,{color:i.color||e.color,disabled:i.disabled||e.disabled,readonly:i.readonly||e.readonly,value:i.value,name:i.name?i.name:e.name?e.name:void 0,modelValue:e.modelValue,"onUpdate:model-value":()=>n(i)},{default:()=>i.label})])))}(r,c),s.value,!vt.isEmpty(r.helpText)&&!0===r.persistentHelpText,o.value,l.value)}}),Ul={install:e=>{e.component(Rl.name,Rl),e.component(zl.name,zl)}};function Wl(e){return e.modelValue&&Array.isArray(e.modelValue)?e.modelValue.includes(e.value):e.value===e.modelValue}function Hl(e,n,i){const r=vt.isEmpty(e.value)?"":vt.isObject(e.value)?JSON.stringify(e.value):String(e.value);let o={...Zs(e),type:n,role:n,value:r,"aria-disabled":e.disabled,"aria-checked":Wl(e)};return vt.isEmptyObject(i)||(o={...o,...i}),t.h("input",o)}function ql(e,n,i,r,o,a,s){return t.h("div",{class:i.value},[t.h("div",{class:`${Mt}${o}-inner`,onClick:s},[t.h("div",{class:`${Mt}${o}-overlay`}),t.h(Mn,{centered:!0,active:r.value,disabled:n.disabled||n.readonly,"onUpdate:active":e=>{r.value=e}},{default:()=>a})]),Rt(e,"default",vt.uuid(),{for:n.id,tabIndex:0,class:`${Mt}${o}-label`,onClickPrevent:s,onKeydown:e=>{["Space","Enter"].includes(e.code)&&(s(),e.preventDefault())}},void 0,"label")])}function Zl(e,t,n){return{[`${Mt}field row`]:!0,required:e.required,readonly:e.readonly,disabled:e.disabled,"has-error":n,"has-success":t&&!n}}function Yl(e,n,i,r,o,a,s,l){const u=n.column?parseInt(n.column,10):void 0;return t.h("div",{class:i.value},[t.renderSlot(e,"default"),t.h("div",{class:"col"},[t.h("div",{class:{"row g-2":!0,"row-cols-1":!n.column||n.column&&n.items.length>0,"row-cols-sm-auto":!n.column&&n.items.length<4,"row-cols-sm-2":!n.column&&n.items.length>3,"row-cols-lg-3 row-cols-xl-4":!n.column,"row-cols-md-2":u&&u>1&&n.items.length>3,"row-cols-lg-4":u&&u>4&&n.items.length>3,[`row-cols-lg-${n.column}`]:u&&u>1&&u<5,[`row-cols-xl-${n.column}`]:u&&u>1}},r),Ja(e,n,a,o,s,l)])])}function Xl(e,n,i){if(!e.disabled&&!e.readonly){const r=Wl(e);if(i.value=!0,Array.isArray(e.modelValue)){const t=e.modelValue.indexOf(e.value);r?e.modelValue.splice(t,1):e.modelValue.push(e.value),n("update:model-value",e.modelValue)}else n("update:model-value",r?null:e.value);t.nextTick().then((()=>{n("checked",!r)}))}}const Gl={...Pa,color:yn,indeterminate:on,value:{type:[String,Number,Boolean,Object],default:void 0,required:!0},modelValue:{type:[String,Number,Boolean,Object],default:void 0}},Jl={color:yn,column:{type:[String,Number],default:void 0,validator:e=>parseInt(e,10)>0&&parseInt(e,10)<7},indeterminate:on,items:{type:Array,default:void 0,required:!0},modelValue:{type:Array,default:void 0}},Kl=t.defineComponent({name:"BsCheckbox",props:Gl,emits:["checked","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(!1),a=t.computed((()=>function(e){const t=Wl(e);return{[`${Mt}checkbox`]:!0,[`${Mt}checkbox-${e.color}`]:null!=e.color,[`${Mt}indeterminate`]:e.indeterminate&&!t,checked:t,required:e.required,readonly:e.readonly,disabled:e.disabled}}(r))),s=()=>Xl(r,n,o);return()=>ql(i,r,a,o,"checkbox",Hl(r,"checkbox",{indeterminate:e.indeterminate,"true-value":!0,"false-value":!1}),s)}}),Ql=t.defineComponent({name:"BsCheckboxGroup",props:{...Aa,...Jl,...Ta},emits:["update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.computed((()=>Wa(r))),a=t.computed((()=>Ha(r))),s=t.computed((()=>qa(r))),l=t.computed((()=>Ya(r))),u=t.computed((()=>({...Zl(r,a.value,o.value),[`${Mt}checkbox-group`]:!0}))),c=(e,t)=>{r.disabled||r.readonly||t.disabled||t.readonly||n("update:model-value",Array.isArray(e)?e:[e])};return()=>Yl(i,r,u,function(e,n){return e.items.map(((i,r)=>t.h("div",{class:"col",key:`checkbox-${r}`},[t.h(Kl,{color:i.color||e.color,disabled:i.disabled||e.disabled,readonly:i.readonly||e.readonly,indeterminate:i.indeterminate||e.indeterminate,value:i.value,name:i.name?i.name:e.name?`${e.name}[${r}]`:void 0,modelValue:e.modelValue,"onUpdate:model-value":e=>n(e,i)},{default:()=>i.label})])))}(r,c),s.value,!vt.isEmpty(r.helpText)&&!0===r.persistentHelpText,o.value,l.value)}}),eu={install:e=>{e.component(Kl.name,Kl),e.component(Ql.name,Ql)}};function tu(e){if((e.insetMode||e.insetOutlined)&&(e.checkedIcon||e.checkoffIcon)){const n=Wl(e);if(n&&e.checkedIcon)return t.h(ga,{icon:"check",height:16,width:16});if(!n&&e.checkoffIcon&&e.insetMode)return t.h(ga,{icon:"close",height:16,width:16})}return t.createCommentVNode(" v-if-thumb-icon ",!0)}function nu(e,n,i){return t.h("div",{class:[`${Mt}switch-wrapper`]},[t.h("div",{class:[`${Mt}switch-track`],onClick:i},[t.h("div",{class:[`${Mt}switch-thumb`]},[t.h("div",{class:`${Mt}switch-ripple`}),t.h(Mn,{centered:!0,active:n.value,disabled:e.disabled||e.readonly,"onUpdate:active":e=>{n.value=e}},{default:()=>[tu(e),Hl(e,"checkbox")]})])])])}function iu(e,t){return Qt([`${Mt}switch-label`,`${Mt}label-${t}`],e.labelClass)}const ru={...Pa,color:yn,labelClass:hn,labelPosition:{type:String,default:"right",validator:e=>["left","right"].includes(e)},insetMode:on,insetOutlined:on,checkoffIcon:on,checkedIcon:on,value:{type:[String,Number,Boolean,Object],default:void 0,required:!0},modelValue:{type:[String,Number,Boolean,Object],default:void 0}},ou=t.defineComponent({name:"BsSwitch",props:ru,emits:["checked","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(!1),a=t.computed((()=>function(e){const t=Wl(e);return{[`${Mt}switch`]:!0,[`${Mt}switch-${e.color}`]:null!=e.color,[`${Mt}switch-inset`]:e.insetMode||e.insetOutlined,[`${Mt}switch-outlined`]:!0===e.insetOutlined&&!t,checked:t,required:e.required,readonly:e.readonly,disabled:e.disabled}}(r))),s=()=>Xl(r,n,o);return()=>function(e,n,i,r,o){const a=n;return t.h("div",{class:i.value},[zt(e,"default",null!=e.default&&"left"===a.labelPosition,{for:a.id,class:iu(a,"left"),onClickPrevent:o},"label"),nu(a,r,o),zt(e,"default",null!=e.default&&"right"===a.labelPosition,{for:a.id,class:iu(a,"right"),onClickPrevent:o},"label")])}(i,e,a,o,s)}}),au={install:e=>{e.component(ou.name,ou)}};function su(e,t,n,i,r){const o="right"===e.position?"right":"left";t.app[n].sideDrawer[o].open=r,t.app[n].sideDrawer[o].mini=e.mini,t.app[n].sideDrawer[o].miniWidth=parseInt(e.miniWidth,10),t.app[n].sideDrawer[o].width=r?!i||e.mini?parseInt(e.width,10):0:e.mini?parseInt(e.miniWidth,10):0}function lu(e,n,i,r){return t.h(En,{color:e.overlayColor,fixed:!0,show:i.value,zIndex:n.value,onClick:()=>{i.value=!1,r("update:open",!1)}})}function uu(e,n,i,r,o,a,s){return t.withDirectives(t.h(n.tag||"aside",t.mergeProps({class:{[`${Mt}side-drawer`]:!0,[`${Mt}drawer-mini`]:n.mini&&!a.value,"smooth-animation":o.value||n.mini,"drawer-closed":!n.mini&&!a.value,"drawer-opened":a.value,[`bg-${n.color}`]:n.color,shadow:n.shadow},style:{...r.value,marginTop:null,height:n.mini||!o.value?null:r.value.height,width:n.mini||!o.value?null:r.value.width,position:n.mini||!o.value?null:r.value.position,left:n.mini||!o.value?null:r.value.left,right:n.mini||!o.value?null:r.value.right}},i),jt("div",e,`${Mt}side-drawer-inner`)),[[yt,s]])}const cu={color:wn,clipped:on,mini:on,fixedLayout:on,miniWidth:{type:[Number,String],default:56,validator:e=>!isNaN(parseInt(e,10))},modalWidth:{type:[Number,String],default:300,validator:e=>!isNaN(parseInt(e,10))},open:an,overlayColor:{type:String,default:"#000"},position:{type:String,default:"left",validator:e=>["left","right"].includes(e)},shadow:on,tag:{type:String,default:"aside"},width:{type:[Number,String],default:250,validator:e=>!isNaN(parseInt(e,10))}},du=t.defineComponent({name:"BsSideDrawer",props:cu,inheritAttrs:!1,emits:["resize","update:open"],setup(e,{attrs:n,emit:i,slots:r}){const o=e,a=t.ref(1020),s=t.ref(),l=t.ref(),u=t.ref(!1),c=t.ref(o.open),d=o.open,h=t.computed((()=>o.clipped&&l.value&&s.value?s.value.app[l.value].appbar.height:0)),f=t.computed((()=>function(e,t,n,i,r){const o="0px",a=-1*(parseInt(e.width,10)+1),s={height:e.clipped?`calc(100% - ${i.value}px)`:void 0,width:vt.cssUnit(e.width),marginTop:vt.cssUnit(i.value),left:"left"===e.position?n.value?o:vt.cssUnit(a):void 0,right:"right"===e.position?n.value?o:vt.cssUnit(a):void 0,position:e.fixedLayout?"fixed":"absolute","z-index":i.value>0?r.value-1:void 0};if(t.value&&!e.mini){const t=-2*(parseInt(e.modalWidth,10)+1);return{...s,height:"100%",width:vt.cssUnit(e.modalWidth),marginTop:o,position:"fixed",top:o,"z-index":r.value+1,left:"left"===e.position?n.value?o:vt.cssUnit(t):void 0,right:"right"===e.position?n.value?o:vt.cssUnit(t):void 0}}return e.mini&&e.miniWidth?{...s,width:n.value?vt.cssUnit(e.width):vt.cssUnit(e.miniWidth),left:"left"===e.position?o:void 0,right:"right"===e.position?o:void 0}:s}(o,u,c,h,a))),p=e=>{i("resize",e),u.value=Gt("md"),u.value?(c.value=!1,i("update:open",!1)):(c.value=d,i("update:open",c.value))};return t.watch((()=>o.open),(e=>{c.value=e,l.value&&s.value&&su(o,s.value,l.value,u.value,e)})),t.onMounted((()=>{!function(e,n,i){n.value=nn();const r=Kt(["bs-app","bs-app-container","BsApp","BsAppContainer"],3);r?t.nextTick().then((()=>{e.value=r.props.id,e.value&&n.value&&Object.keys(n.value.app).forEach((e=>{var t;(null==(t=n.value)?void 0:t.app[e].appbar.fixedTop)&&(i.value=1030)}))})):console.warn("<BsSideDrawer> must be used inside <BsApp>")}(l,s,a),t.nextTick().then((()=>{l.value&&s.value&&su(o,s.value,l.value,u.value,o.open)}))})),()=>function(e,n,i,r,o,a,s,l,u){return t.h("div",{class:`${Mt}drawer-host`,style:{...o.value,height:!a.value&&i.clipped?o.value.height:null,width:a.value&&!i.mini?"0":o.value.width}},[a.value&&!i.mini&&t.h(t.Teleport,{to:"body"},[uu(e,i,r,o,a,s,u),lu(i,l,s,n)]),(!a.value||i.mini)&&uu(e,i,r,o,a,s,u)])}(r,i,o,n,f,u,c,a,p)}}),hu={install:e=>{Vn(e),e.component(du.name,du)}},fu={color:wn,overflowHidden:on,itemRounded:on,itemRoundedPill:on,itemBorderVariant:{type:String,default:void 0,validator:e=>["left","right","left-right","top","bottom","top-bottom"].includes(e)},modelValue:{type:Object,default:void 0},singleExpand:an,individualState:on,spaceAround:{type:String,default:void 0,validator:e=>["none","both","left","right"].includes(e)}},pu={...Ea,...Sn,id:{type:String,default:()=>Vt()},active:on,disabled:on,depth:fn,indent:dn,iconSize:la,label:cn,badge:sn,badgeColor:sn,badgeType:sn,badgeVariant:sn,borderOff:on,pillOff:on,rippleOff:on,roundedOff:on},mu={...Sn,id:{type:String,default:()=>Vt()},active:on,disabled:on,navigable:on,borderOff:on,pillOff:on,rippleOff:on,roundedOff:on};class vu{constructor(e,t){i(this,"_emit"),i(this,"_config"),i(this,"_items"),i(this,"_activeItem"),this._config=e,this._items=[],this._emit=t}destroy(){for(const e of this._items)e.destroy();this._items=[]}get config(){return this._config}get itemBorderVariant(){return this._config.itemBorderVariant}get itemRounded(){return this._config.itemRounded||!1}get itemRoundedPill(){return this._config.itemRoundedPill||!1}get spaceAround(){return this._config.spaceAround}get singleExpand(){return this._config.singleExpand||!1}get items(){return this._items}get activeItem(){return this._activeItem}set activeItem(e){this.setActiveItem(e).then()}addItem(e){return-1===this._items.findIndex((t=>t.uid===e.uid))?this._items.push(e):-1}findItem(e,t=!1){let n;for(const i of this.items){if(e(i,this.items)){n=i;break}if(t){const r=this.iterateChildren(e,i,t,!0);if(null!=r){n=r;break}}}return n}iterateChildren(e,t,n,i){let r;if(t.hasChild())for(const o of t.children){if(e(o,t.children)){if(r=o,i)return r}else if(n){const t=this.iterateChildren(e,o,n,i);if(null!=t&&(r=t,i))return r}}return r}execAction(e,t=!1,n=!1){return new Promise((i=>{for(const i of this.items){if(e(i,this.items)&&n)break;if(t){if(null!=this.iterateChildren(e,i,t,n)&&n)break}}i()}))}removeItem(e){const t=this._items.findIndex((t=>t.uid===e.uid));t>-1&&(this._items[t].destroy(),this._items.splice(t,1))}async setActiveItem(e){if(null==e)return this._activeItem=void 0,void this._emit("update:modelValue",void 0);!0===this.config.individualState&&"BsListTile"===e.tag||await this.execAction((t=>{t.setActive(t.uid===e.uid),t.uid===e.uid&&this.triggerEvent(t)}),!0,!1)}triggerEvent(e){this._emit("change",e,this.activeItem),this._activeItem=e,this._emit("update:modelValue",e)}collapse(e){for(const t of e.children)this.collapse(t);"BsListNav"===e.tag?vt.defer((()=>{this.setExposedValue(e.component,"collapsing",!0),vt.defer((()=>{this.setExposedValue(e.component,"collapsing",!1),this.setExposedValue(e.component,"expanded",!1)}),200)}),100):"BsListNavItem"===e.tag&&(this.setExposedValue(e.component,"expanded",!1),e.hasChild()||e.setRippleOff(!0))}setExposedValue(e,n,i){t.isRef(e.exposed[n])?e.exposed[n].value=i:e.exposed[n]=i}expandItem(e){this.setExposedValue(e.component,"expanded",!0),e.setRippleOff(!1),e.hasChild()&&(this.setExposedValue(e.children[0].component,"expanded",!0),e.children[0].children.forEach((e=>e.setRippleOff(!1))))}expand(e){const n=e.component;e.hasChild()&&["BsListNav","BsListNavItem"].includes(e.tag)&&!t.unref(n.exposed.expanded)&&(this.singleExpand&&e.parent&&e.parent.children.forEach((t=>{t.uid!==e.uid&&this.collapse(t)})),this.expandItem(e))}}const gu=t.defineComponent({name:"BsListView",props:fu,emits:["change","update:modelValue"],setup(e,{slots:n,emit:i}){const r=e,o=t.computed((()=>({[`${Mt}list`]:!0,[`${Mt}list-${e.color}`]:e.color,[`${Mt}list-space-${e.spaceAround}`]:["both","left","right"].includes(e.spaceAround),"overflow-hidden":e.overflowHidden}))),a=new vu(r,i);return t.provide("ListView",a),()=>t.h("div",{class:o.value,onVnodeBeforeUnmount:()=>a.destroy()},n.default&&n.default())}});class yu{constructor(e,t,n,r){i(this,"uid"),i(this,"tag"),i(this,"_component"),i(this,"_emit"),i(this,"_children"),i(this,"_parent"),this.uid=e,this.tag=t,this._component=n,this._emit=r,this._children=[]}destroy(){for(const e of this.children)e.destroy();this._children=[]}get component(){return this._component}get parent(){return this._parent}set parent(e){this._parent=e}get children(){return this._children}addChild(e){return-1===this._children.findIndex((t=>t.uid===e.uid))?this._children.push(e):-1}removeChild(e){const t=this._children.findIndex((t=>t.uid===e));t>-1&&(this._children[t].destroy(),this._children.splice(t,1))}hasChild(){return this.children.length>0}fireEvent(e,...t){this._emit(e,...t)}setActive(e){this.component.props.active=e,vt.isEmpty(this.component.exposed)||(t.isRef(this.component.exposed.isActive)?this.component.exposed.isActive.value=e:this.component.exposed.isActive=e),this.fireEvent("update:active",e)}setRippleOff(e){this.component.props.rippleOff=e}}function bu(e,n,i,r){const o=e;return t.h(Mn,{class:["d-flex",!0!==(null==r?void 0:r.itemRounded)||o.roundedOff?"":"rounded",!0!==(null==r?void 0:r.itemRoundedPill)||o.pillOff?"":"rounded-pill"],style:n.value,disabled:e.rippleOff||e.disabled},{default:()=>[vt.isEmpty(o.icon)?t.createCommentVNode(" v-if-BsIcon "):t.h(ya,{size:o.iconSize??24,...Yr(o)}),t.h("span",{class:[`${Mt}nav-text`]},t.createTextVNode(t.toDisplayString(o.label))),vt.isEmpty(o.badge)?t.createCommentVNode(" v-if-BsBadge "):t.h(ms,{class:[i.value?"me-3":""],color:e.badgeColor,type:e.badgeType,variant:e.badgeVariant},{default:()=>t.createTextVNode(t.toDisplayString(o.badge))}),i.value?t.h(ya,{icon:"expand_more",class:"expand-more"}):t.createCommentVNode(" v-if-arrow ")]})}function wu(e,n,i,r,o,a,s,l){const u=e;return t.h(u.disabled?"div":"a",{class:n.value,href:u.disabled?void 0:u.url,onClick:e=>Su(u,r,o,s,e,l)},[bu(e,i,a,l)])}function xu(e,t,n,i,r,o,a,s){const l=e;return Wt({class:t.value,activeClass:l.activeClass||"active",to:l.location??(l.pathName?{name:l.pathName}:l.path),onClick:e=>Su(l,i,r,a,e,s)},bu(e,n,o,s))}function Su(e,t,n,i,r,o){if(!e.disabled&&i.value){if(o)if(i.value.hasChild()||t.value)i.value.hasChild()&&(n.value?o.collapse(i.value):o.expand(i.value));else{o.activeItem=i.value;let e=i.value.parent;for(;e;)e.setActive(!0),e=e.parent}i.value.fireEvent("click",r,i.value.component.vnode.el)}}async function Eu(e,t,n){await e.execAction((e=>{if(t&&n&&e.uid===t.props.id)return n.parent=e,e.addChild(n),e}),!0,!0)}const ku=t.defineComponent({name:"BsListNav",props:{id:{type:String,default:()=>Vt()},child:on},setup(e,{emit:n,expose:i,slots:r}){const o=e,a=t.shallowRef(),s=t.ref(!1),l=t.ref(!1),u=t.ref(!1);i({isActive:s,collapsing:l,expanded:u});const c=t.inject("ListView"),d=t.computed((()=>({[`${Mt}list-nav`]:!0,[`${Mt}nav-child`]:!0===o.child,collapse:!0===o.child&&!u.value,collapsing:!0===o.child&&l.value})));return t.onBeforeMount((()=>{const e=t.getCurrentInstance();e&&(a.value=new yu(o.id,"BsListNav",e,n),c&&(!0===o.child?t.nextTick().then((()=>Eu(c,e.parent,a.value))):c.addItem(a.value)))})),()=>t.h("ul",{id:e.id,class:d.value,onVnodeBeforeUnmount:()=>{var e;return null==(e=a.value)?void 0:e.destroy()}},r.default&&r.default())}}),_u=t.defineComponent({name:"BsListNavItem",props:pu,emits:["click","update:active"],setup(e,{emit:n,expose:i,slots:r}){const o=e,a=t.shallowRef(t.getCurrentInstance()),s=t.shallowRef(),l=t.ref(o.active),u=t.ref(!1),c=t.ref(!1),d=t.ref(!1);i({isActive:l,expanded:u});const h=t.inject("ListView"),f=t.computed((()=>function(e,t,n,i){return{[`${Mt}nav-item`]:!0,[`${Mt}nav-parent`]:i.value,[`${Mt}expanded`]:i.value&&n.value,[`${Mt}has-icon`]:!vt.isEmpty(e.icon),active:!e.disabled&&t.value,disabled:!0===e.disabled}}(o,l,u,c))),p=t.computed((()=>function(e,t,n,i){return{[`${Mt}nav-item-inner`]:!0,[`${Mt}tile-border-${null==i?void 0:i.itemBorderVariant}`]:(null==i?void 0:i.itemBorderVariant)&&!e.borderOff&&["left","right","left-right","top","bottom","top-bottom"].includes(i.itemBorderVariant),[`${Mt}tile-space-${null==i?void 0:i.spaceAround}`]:(null==i?void 0:i.spaceAround)&&["both","left","right"].includes(i.spaceAround),[`${e.activeClass}`]:n.value&&e.activeClass&&!e.disabled&&t.value,active:!n.value&&!e.disabled&&t.value,rounded:!0===(null==i?void 0:i.itemRounded)&&!e.roundedOff,"rounded-pill":!0===(null==i?void 0:i.itemRoundedPill)&&!e.pillOff,disabled:!0===e.disabled}}(o,l,d,h))),m=t.computed((()=>function(e){const t=16+(e.depth?20*parseInt(e.depth,10):0),n=e.indent?vt.cssUnit(e.indent):e.depth?vt.cssUnit(t,"px"):void 0;return n?[`padding-left: ${n}`]:[]}(o)));if(Ht(o)){const e=Zt();t.watchEffect((()=>{var t;if(h&&e&&Xt(a,e,o)){h.activeItem=s.value;let e=null==(t=s.value)?void 0:t.parent;for(;e;)e.setActive(!0),e=e.parent}}))}return t.onBeforeMount((()=>{a.value=t.getCurrentInstance(),a&&(s.value=new yu(e.id,"BsListNavItem",a.value,n),h&&t.nextTick().then((()=>{var e;return Eu(h,null==(e=a.value)?void 0:e.parent,s.value)})))})),t.onMounted((()=>{var e;if(d.value=Ht(o),d.value){const t=Zt();t&&Xt(a,t,o)&&(null==(e=s.value)||e.setActive(!0))}t.nextTick().then((()=>{var e,t;if(c.value=(null==(e=s.value)?void 0:e.hasChild())??!1,d.value&&!c.value&&l.value){let e=null==(t=s.value)?void 0:t.parent;for(;e;)e.setActive(!0),null==h||h.expand(e),e=e.parent}}))})),()=>function(e,n,i,r,o,a,s,l,u,c){const d=n;return t.h("li",{id:n.id,class:i.value},[Ht(d)&&!n.disabled?xu(n,r,o,a,s,l,u,c):wu(n,r,o,a,s,l,u,c),e.default&&e.default()])}(r,e,f,p,m,l,u,c,s,h)}});function Cu(e,n,i,r,o,a,s){return Ht(r)&&!r.disabled?function(e,n,i,r,o,a){return Wt({id:i.id,class:r.value,activeClass:i.activeClass||"active",to:i.location??(i.pathName?{name:i.pathName}:i.path),onVnodeMounted:e=>{o.value=new yu(i.id,"BsListTile",e.ctx,n),null==a||a.addItem(o.value)},onVnodeBeforeUnmount:()=>o.value&&(null==a?void 0:a.removeItem(o.value)),onClick:e=>{var t;a&&(a.activeItem=o.value),a&&!0!==a.config.individualState||n("update:active",!i.active),n("click",e,null==(t=o.value)?void 0:t.component.vnode.el)}},[t.h(Mn,{class:["d-flex",!0!==(null==a?void 0:a.itemRounded)||i.roundedOff?"":"rounded",!0!==(null==a?void 0:a.itemRoundedPill)||i.pillOff?"":"rounded-pill"],disabled:i.rippleOff||i.disabled},{default:()=>e.default&&e.default()})])}(n,i,r,o,a,s):function(e,n,i,r,o,a,s){return t.h(e,{id:r.id,class:o.value,href:"a"===e?r.url:void 0,onVnodeMounted:e=>{a.value=new yu(r.id,"BsListTile",e.ctx,i),null==s||s.addItem(a.value)},onVnodeBeforeUnmount:()=>a.value&&(null==s?void 0:s.removeItem(a.value)),onClick:t=>{("a"===e||r.navigable)&&(s&&(s.activeItem=a.value),s&&!0!==s.config.individualState||i("update:active",!r.active)),i("click",t,a.value?a.value.component.vnode.el:void 0)}},[t.h(Mn,{class:[!0!==(null==s?void 0:s.itemRounded)||r.roundedOff?"":"rounded",!0!==(null==s?void 0:s.itemRoundedPill)||r.pillOff?"":"rounded-pill"],disabled:r.rippleOff||r.disabled||!("a"===e||r.navigable)},{default:()=>jt("div",n,"d-flex")})])}(e,n,i,r,o,a,s)}const Tu=t.defineComponent({name:"BsListTile",props:mu,emits:["click","update:active"],setup(e,{emit:n,expose:i,slots:r}){const o=e,a=t.shallowRef(t.getCurrentInstance()),s=t.shallowRef(),l=t.ref(o.active),u=t.ref(Ht(o)),c=t.ref(qt(o));i({isActive:l});const d=t.inject("ListView"),h=t.computed((()=>u.value||c.value?"a":"div")),f=t.computed((()=>function(e,t,n,i,r){return{[`${Mt}list-tile`]:!0,[`${Mt}link`]:("a"===e||t.navigable)&&!t.disabled,[`${Mt}tile-border-${null==r?void 0:r.itemBorderVariant}`]:(null==r?void 0:r.itemBorderVariant)&&!t.borderOff&&["left","right","left-right","top","bottom","top-bottom"].includes(r.itemBorderVariant),[`${Mt}tile-space-${null==r?void 0:r.spaceAround}`]:(null==r?void 0:r.spaceAround)&&["both","left","right"].includes(r.spaceAround),[`${t.activeClass}`]:(i.value||t.navigable)&&t.activeClass&&!t.disabled&&!0===n.value,active:(i.value||t.navigable)&&!t.disabled&&!0===n.value,rounded:!0===(null==r?void 0:r.itemRounded)&&!t.roundedOff,"rounded-pill":!0===(null==r?void 0:r.itemRoundedPill)&&!t.pillOff,disabled:!0===t.disabled}}(h.value,o,l,c,d)));return t.watch((()=>o.active),(e=>{d&&!0===d.config.individualState&&(l.value=e)})),t.onBeforeUpdate((()=>{if(u.value){const e=Zt();e&&Xt(a,e,o)&&(l.value=!0,t.nextTick().then((()=>{n("update:active",!0)})))}})),t.onMounted((()=>{a.value=t.getCurrentInstance(),u.value=Ht(o),c.value=qt(o)})),()=>Cu(h.value,r,n,o,f,s,d)}}),Ou=t.defineComponent({name:"BsListTileAction",props:{...$n,center:on,stack:on},setup(e,{slots:t}){const n=e;return()=>jt(n.tag,t,{[`${Mt}list-tile-action`]:!0,[`${Mt}action-stack`]:!0===n.stack,"d-flex":!n.stack&&!0===n.center,"align-self-center":!0===n.center})}}),Nu=t.defineComponent({name:"BsListTileContent",props:{...$n,multiLine:on},setup(e,{slots:t}){const n=e;return()=>jt(n.tag,t,{[`${Mt}list-tile-content`]:!0,[`${Mt}multiline`]:!0===n.multiLine})}}),$u=t.defineComponent({name:"BsListTileSubtitle",props:{rawHtml:sn},setup:(e,{slots:n})=>()=>vt.isEmpty(e.rawHtml)?t.h("div",{class:[`${Mt}list-tile-subtitle`]},n.default&&n.default()):t.h("div",{class:[`${Mt}list-tile-subtitle`],innerHTML:e.rawHtml})}),Iu=t.defineComponent({name:"BsListTileTitle",props:{rawHtml:sn},setup:(e,{slots:n})=>()=>vt.isEmpty(e.rawHtml)?t.h("div",{class:[`${Mt}list-tile-title`]},n.default&&n.default()):t.h("div",{class:[`${Mt}list-tile-title`],innerHTML:e.rawHtml})}),Au=t.defineComponent({name:"BsListTileLeading",props:{...Ea,...ka,center:on},setup(e,{slots:n}){const i=e,r=t.computed((()=>!i.icon||i.size&&48!==Zn(i)?Gn(i):{height:"24px",width:"24px"}));return()=>t.h("div",{class:[`${Mt}list-tile-leading`,!0===i.center?"d-flex align-self-center":"",vt.isEmpty(i.icon)?"":`${Mt}has-icon`],style:r.value},Ft(n,"default",{key:vt.uuid(!0)},vt.isEmpty(i.imgSrc)?vt.isEmpty(i.icon)?t.createCommentVNode(" v-if-BsIcon "):t.h(ya,{size:i.size&&48!==Zn(i)?Zn(i):24,...Yr(i)}):t.h(ls,{imgSrc:e.imgSrc,size:e.size,rounded:e.rounded,circle:e.circle})))}}),Pu={install:e=>{e.component(gu.name,gu),e.component(ku.name,ku),e.component(_u.name,_u),e.component(Tu.name,Tu),e.component(Ou.name,Ou),e.component(Nu.name,Nu),e.component(Au.name,Au),e.component($u.name,$u),e.component(Iu.name,Iu)}};function Mu(e,t,n){t.value&&window.clearTimeout(t.value),t.value=window.setTimeout((()=>{e.value=!1,n("update:open",!1),n("close")}),100)}function Du(e,t,n,i){e.disabled||(n.value&&window.clearTimeout(n.value),t.value=!0,i("update:open",!0))}const Vu=t.defineComponent({name:"BsDropdownMenu",props:{cover:on,disabled:on,open:on,openOnHover:on,contentClickClose:an,color:wn,space:fn,placement:Oa,transition:Na},emits:["update:open","close"],setup(e,{emit:n,slots:i}){const r=e,o=t.ref(null),a=t.ref(null),s=t.ref(r.open),l=t.ref();return t.watch((()=>r.open),(e=>{s.value=e})),()=>function(e,n,i,r,o,a,s){const l=e,u=()=>{l.openOnHover&&Du(l,s,a,i)},c=()=>{l.openOnHover&&Mu(s,a,i)};return t.h("div",{class:[`${Mt}dropdown-menu`]},[t.h("div",{ref:r,class:[`${Mt}dropdown-menu-activator`],onClick:()=>{l.openOnHover||(s.value?Mu(s,a,i):Du(l,s,a,i))},onMouseenter:u,onMouseleave:c},n.default&&n.default()),t.h(Pl,{ref:o,class:[`${Mt}popover-dropdown-menu`,`${Mt}shadow-1`],color:e.color,cover:e.cover,open:s.value,placement:e.placement,space:e.space,transition:e.transition,trigger:r.value,onClick:()=>{l.contentClickClose&&Mu(s,a,i)},onMouseenter:u,onMouseleave:c,"onUpdate:open":e=>{s.value=e,i("update:open",e)}},{default:()=>n.content&&n.content()})])}(e,i,n,o,a,l,s)}}),Lu={install:e=>{e.component(Vu.name,Vu),e.component("BsMenu",Vu)}},Bu={fixedPosition:on,show:on,overlayOpacity:{type:[String,Number],default:.5,validator:e=>!isNaN(parseFloat(e))},overlayColor:sn,spinnerColor:bn,spinnerDiameter:{type:[String,Number],default:36,validator:e=>!isNaN(parseInt(e,10))},spinnerThickness:{type:[String,Number],default:5,validator:e=>!isNaN(parseInt(e,10))},spinnerType:sn,type:{type:String,default:"linear",validator:e=>["linear","linear-alt","progress","spinner","grow"].includes(e)},transition:xn,zIndex:{type:[String,Number],default:100,validator:e=>!isNaN(parseInt(e,10))}},Fu=t.defineComponent({name:"BsMaskLoader",props:Bu,setup(e){const n=e,i=t.computed((()=>n.spinnerType||n.type));return()=>Ut({name:n.transition},n.show?t.h("div",{class:[`${Mt}mask-loader`],style:{position:n.fixedPosition?"fixed":null,"z-index":n.zIndex}},[["linear-alt","progress"].includes(i.value)?t.h(Yu,{class:"align-self-center",color:e.spinnerColor,diameter:e.spinnerDiameter,stroke:e.spinnerThickness,type:"spinner"}):"spinner"===i.value?t.h(ba,{color:e.spinnerColor,size:e.spinnerDiameter,spin:!0}):t.h("div",{class:{"spinner-grow":"grow"===i.value,"spinner-border":"linear"===i.value,[`text-${n.spinnerColor}`]:n.spinnerColor},style:{"border-width":"linear"===i.value?vt.cssUnit(n.spinnerThickness):null,height:vt.cssUnit(n.spinnerDiameter),width:vt.cssUnit(n.spinnerDiameter)}}),t.h(En,{color:e.overlayColor,opacity:e.overlayOpacity,show:e.show,zIndex:e.zIndex-1})]):t.createCommentVNode(" BsMaskLoader ",!0))}}),ju="\n  @keyframes md-progress-spinner-stroke-rotate-DIAMETER {\n    0% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotate(0);\n    }\n\n    12.5% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotate(0);\n    }\n\n    12.51% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotateX(180deg) rotate(72.5deg);\n    }\n\n    25% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotateX(180deg) rotate(72.5deg);\n    }\n\n    25.1% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotate(270deg);\n    }\n\n    37.5% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotate(270deg);\n    }\n\n    37.51% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotateX(180deg) rotate(161.5deg);\n    }\n\n    50% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotateX(180deg) rotate(161.5deg);\n    }\n\n    50.01% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotate(180deg);\n    }\n\n    62.5% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotate(180deg);\n    }\n\n    62.51% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotateX(180deg) rotate(251.5deg);\n    }\n\n    75% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotateX(180deg) rotate(251.5deg);\n    }\n\n    75.01% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotate(90deg);\n    }\n\n    87.5% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotate(90deg);\n    }\n\n    87.51% {\n      stroke-dashoffset: END_VALUE;\n      transform: rotateX(180deg) rotate(341.5deg);\n    }\n\n    100% {\n      stroke-dashoffset: START_VALUE;\n      transform: rotateX(180deg) rotate(341.5deg);\n    }\n  }\n",Ru={styleTag:void 0,diameters:new Set};function zu(e){var t;return"determinate"===(null==(t=e.mode)?void 0:t.toLowerCase())}function Uu(e,t){let n=Ru.styleTag;n||(n=document.getElementById("bs-progress-spinner-styles")),n||(n=document.createElement("style"),n.id="bs-progress-spinner-styles",document.head.appendChild(n),Ru.styleTag=n),n&&n.sheet&&n.sheet.insertRule(function(e,t){return ju.replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,`${t}`)}(e,t),0),Ru.diameters.add(t)}function Wu(e){return t.h("div",{class:["progress flex-grow-1",e.roundedOff?"rounded-0":""],style:{height:vt.cssUnit(e.height)}},[t.h("div",{class:["progress-bar",e.striped?"progress-bar-striped":"",e.stripedAnimation?"progress-bar-animated":"",e.color?`bg-${e.color}`:"",e.innerCls??""],style:{width:`${e.modelValue}%`},role:"progressbar","aria-label":e.label??"progressbar","aria-valuenow":e.modelValue,"aria-valuemin":0,"aria-valuemax":100},e.showValue&&"inside"===e.valuePosition?`${e.modelValue}%`:"")])}function Hu(e,n){return t.h("div",{class:[`${Mt}progress-label`,"start"===e.labelPosition||"start"===e.valuePosition?"me-2":"","end"===e.labelPosition||"end"===e.valuePosition&&e.valuePosition===n?"ms-2":"","start"===e.labelAlignment&&e.labelPosition===n&&["top","bottom"].includes(e.labelPosition)?"text-start":"","end"===e.labelAlignment&&e.labelPosition===n&&["top","bottom"].includes(e.labelPosition)?"text-end":""]},[e.label&&e.labelPosition===n?t.h("span",{class:["text-label"]},e.label):void 0,e.valuePosition===n&&e.label&&e.labelPosition===n?t.h("span",{class:"ms-1"},":"):void 0,e.valuePosition===n?t.h("span",{class:e.label&&e.labelPosition===n?"ms-2":null},`${e.modelValue}%`):void 0])}const qu={buffer:{type:[String,Number],default:0,validator:e=>!isNaN(parseInt(e,10))},color:bn,diameter:{type:[String,Number],default:60,validator:e=>!isNaN(parseInt(e,10))},height:{type:[String,Number],default:5,validator:e=>!isNaN(parseInt(e,10))},stroke:{type:[String,Number],default:6,validator:e=>!isNaN(parseInt(e,10))},modelValue:{type:Number,default:0,validator:e=>e>=0&&e<=100},mode:{type:String,default:"indeterminate",validator:e=>["determinate","indeterminate","buffer"].includes(e)},type:{type:String,default:"bar",validator:e=>["spinner","bar"].includes(e)}},Zu={color:sn,height:dn,innerCls:sn,label:sn,labelAlignment:{type:String,default:"center",validator:e=>["start","end","center"].includes(e)},labelPosition:{type:String,default:"top",validator:e=>["start","end","top","bottom"].includes(e)},roundedOff:on,striped:on,stripedAnimation:on,showValue:on,modelValue:{type:Number,default:0,validator:e=>e>=0&&e<=100},valuePosition:{type:String,default:"inside",validator:e=>["start","end","top","bottom","inside"].includes(e)}},Yu=t.defineComponent({name:"BsProgress",props:qu,setup(e){const n=e,i=t.computed((()=>function(e){var t;return"buffer"===(null==(t=e.mode)?void 0:t.toLowerCase())}(n)||zu(n))),r=t.computed((()=>{var e;return"bar"===(null==(e=n.type)?void 0:e.toLowerCase())})),o=t.computed((()=>(n.diameter-n.stroke)/2)),a=t.computed((()=>2*Math.PI*o.value)),s=t.computed((()=>function(e){var t;return"indeterminate"===(null==(t=e.mode)?void 0:t.toLowerCase())}(n)&&Lt()?.2*a.value+"px":zu(n)?a.value*(100-n.modelValue)/100+"px":void 0)),l=t.computed((()=>{if(i.value)return`width: ${n.buffer}%`})),u=t.computed((()=>{if(i.value)return`width: ${n.modelValue}%`})),c=t.computed((()=>{if(i.value)return`left: calc(${n.buffer}% + 8px)`}));return t.watch((()=>e.diameter),(e=>{Uu(a.value,e)})),t.onMounted((()=>{Uu(a.value,e.diameter)})),()=>r.value?function(e,n,i,r){return t.h(t.Transition,{name:`${Mt}progress-bar`,appear:!0},{default:()=>{var o;return t.h("div",{class:[`${Mt}progress-bar`,`progress-bar-${e.color}`,`${Mt}${null==(o=e.mode)?void 0:o.toLowerCase()}`],style:{height:`${e.height}px`}},[t.h("div",{class:[`${Mt}progress-bar-track`],style:n.value}),t.h("div",{class:[`${Mt}progress-bar-fill`],style:i.value}),t.h("div",{class:[`${Mt}progress-bar-buffer`],style:r.value})])}})}(n,l,u,c):function(e,n,i,r){return t.h(t.Transition,{name:`${Mt}progress-spinner`,appear:!0},{default:()=>{return t.h("div",{class:[`${Mt}progress-spinner`,`spinner-${e.color}`,Lt()?`${Mt}indeterminate-fallback`:"",zu(e)?`${Mt}determinate`:`${Mt}indeterminate`]},[Yo([`${Mt}progress-spinner-draw`],Xo(e.diameter),0,"xMidYMid meet",`0 0 ${e.diameter} ${e.diameter}`,{},[(o=[`${Mt}progress-spinner-circle`],a={"stroke-dashoffset":n.value,"stroke-dasharray":`${i.value}px`,"stroke-width":`${e.stroke}px`,"animation-name":`${Mt}progress-spinner-stroke-rotate-${e.diameter}`},s=r.value,t.h("circle",{class:o,style:a,cx:"50%",cy:"50%",r:s}))])]);var o,a,s}})}(n,s,a,o)}}),Xu=t.defineComponent({name:"BsProgressBar",props:Zu,setup(e){const n=e;return()=>function(e){return e.label||e.showValue&&"inside"!==e.valuePosition?t.h("div",{class:`${Mt}progress-wrapper`},["top"===e.labelPosition||"top"===e.valuePosition?Hu(e,"top"):void 0,t.h("div",{class:"d-flex"},["start"===e.labelPosition||"start"===e.valuePosition?Hu(e,"start"):void 0,Wu(e),"end"===e.labelPosition||"end"===e.valuePosition?Hu(e,"end"):void 0]),"bottom"===e.labelPosition||"bottom"===e.valuePosition?Hu(e,"bottom"):void 0]):Wu(e)}(n)}}),Gu={install:e=>{e.component(Fu.name,Fu),e.component(Yu.name,Yu),e.component(Xu.name,Xu)}},Ju={...Sn,...Ea,id:sn,label:sn,ariaLabel:sn,disabled:on},Ku={...Sn,...Ea,id:sn,label:sn,active:on,ariaLabel:sn,disabled:on},Qu={variant:{type:String,default:"tabs"},alignment:{type:String,default:"start",validator:e=>["left","start","right","end","center","justified"].includes(e)},color:sn,flex:on,iconSize:la,iconPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},tabPosition:{type:String,default:"top",validator:e=>["left","right","top","bottom"].includes(e)},tabClass:hn,activeClass:{type:String,default:"active"},innerClass:hn,contentClass:hn,contentTransition:{type:String,default:"fade"},modelValue:dn};class ec{constructor(e,n,r){i(this,"_activeTab"),i(this,"_activeTabIndex"),i(this,"_props"),i(this,"_emit"),i(this,"tabItems"),i(this,"tabPanels"),this._props=e,this._activeTab=void 0,this._activeTabIndex=r,this._emit=n,this.tabItems=t.shallowReactive([]),this.tabPanels=t.shallowReactive([])}get activeTab(){return this._activeTab}get activeTabIndex(){return this._activeTabIndex}get alignment(){return this._props.alignment||"start"}get contentTransition(){return this._props.contentTransition||"fade"}get iconPosition(){return this._props.iconPosition||"left"}get iconSize(){return this._props.iconSize||24}get tabClass(){return this._props.tabClass}get tabPosition(){return this._props.tabPosition}get variant(){return this._props.variant}registerTabItem(e){return this.tabItems.push(e)}registerTabPanel(e){return this.tabPanels.push(e)}unRegisterAll(){this.tabItems=[],this.tabPanels=[]}unRegisterTab(e){if(vt.isNumber(e))this.tabItems.splice(e,1),this.tabPanels.splice(e,1);else{let t=this.tabPanels.findIndex((t=>t.props.id===e));-1===t&&(t=this.tabItems.findIndex((t=>t.props.id===e))),this.tabItems.splice(t,1),this.tabPanels.splice(t,1)}}setActiveTab(e){if(null==e)return this._activeTab=void 0,void(this._activeTabIndex=void 0);this.tabItems.forEach(((t,n)=>{const i=t.props.id;vt.isNumber(e)&&e===n?t.props.active=!0:t.props.active=vt.isString(e)&&i===`tabItem-${e}`})),this.tabPanels.forEach(((n,i)=>{const r=n.props.id;vt.isNumber(e)&&e===i||vt.isString(e)&&e===r?(n.props.active=!0,t.isRef(n.exposed.isActive)?n.exposed.isActive.value=!0:n.exposed.isActive=!0,this.triggerEvent(n,i)):(n.props.active=!1,t.isRef(n.exposed.isActive)?n.exposed.isActive.value=!1:n.exposed.isActive=!1)}))}triggerEvent(e,t){this._emit("change",e,this.activeTab,t,this.activeTabIndex),this._activeTab=e,this._activeTabIndex=t,this._emit("update:model-value",t)}}const tc=t.defineComponent({name:"BsTabItem",props:Ku,setup(e){const n=e,i=t.inject("tabs"),r=t.ref(),o=t.computed((()=>"pills"===(null==i?void 0:i.variant)?"li":"a")),a=t.computed((()=>function(e,n,i){return{"nav-item":!0,"nav-link":"li"!==n.value,"text-center":"li"!==n.value,"flex-fill":"justified"===(null==i?void 0:i.alignment),disabled:!0===e.disabled,[`${e.activeClass}`]:e.activeClass&&!0===e.active&&"li"!==n.value&&!Ht(e),[t.normalizeClass(null==i?void 0:i.tabClass)]:!vt.isEmpty(null==i?void 0:i.tabClass)&&!e.active}}(n,o,i))),s=t.computed((()=>function(e,n){return{"nav-link":!0,"text-center":!0,"flex-fill":"justified"===(null==n?void 0:n.alignment),disabled:!0===e.disabled,[`${e.activeClass}`]:e.activeClass&&!0===e.active,[t.normalizeClass(null==n?void 0:n.tabClass)]:!vt.isEmpty(null==n?void 0:n.tabClass)&&!e.active}}(n,i)));return()=>function(e,n,i,r,o,a){return"li"===r.value?t.h("li",{class:n.value,role:"presentation",onVnodeBeforeMount:e=>{const t=e.ctx;t&&a&&(o.value=a.registerTabItem(t)-1)}},[Ht(e)?sc(e,i,o,a):ac(e,i,o,a)]):Ht(e)?sc(e,n,o,a,!0):ac(e,n,o,a,!0)}(n,a,s,o,r,i)}}),nc=t.defineComponent({name:"BsTabLabel",props:{...Ea,iconPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},iconSize:fn,label:sn,tabPosition:{type:String,default:"top",validator:e=>["left","right","top","bottom"].includes(e)},rippleOff:on},setup(e){const n=e,i=t.computed((()=>["left","right"].includes(n.tabPosition)?"vertical":"horizontal"));return()=>t.h(Mn,{class:{"d-flex":!0,"align-items-center":!0,"justify-content-center":!0,"flex-column":["top","bottom"].includes(n.iconPosition)},disabled:e.rippleOff},{default:()=>!vt.isEmpty(n.icon)&&["left","right"].includes(n.iconPosition)?t.h("div",{class:{"d-flex":!0,"text-nowrap":!0,"flex-fill":"vertical"===i.value}},lc(n,i)):!vt.isEmpty(n.icon)&&["top","bottom"].includes(n.iconPosition)?lc(n,i):t.h("span",t.toDisplayString(e.label))})}});function ic(e,n,i,r){return e?t.h(ya,{size:i,...Yr(n)}):r??t.createCommentVNode(" v-if-Icon ")}function rc(e){return{id:e.id,role:"tab","aria-controls":e.ariaLabel,"aria-selected":!0===e.active}}function oc(e,t){return{label:e.label,icon:e.icon,iconFlip:e.iconFlip,iconPulse:e.iconPulse,iconSpin:e.iconSpin,iconRotation:e.iconRotation,iconVariant:e.iconVariant,iconSize:null==t?void 0:t.iconSize,iconPosition:null==t?void 0:t.iconPosition,tabPosition:null==t?void 0:t.tabPosition,rippleOff:e.disabled}}function ac(e,n,i,r,o=!1){const a={...rc(e),class:n.value,href:e.disabled?void 0:e.url};return o&&(a.onVnodeBeforeMount=e=>{const t=e.ctx;t&&r&&(i.value=r.registerTabItem(t)-1)}),t.h("a",a,[t.h(nc,{...oc(e,r)})])}function sc(e,n,i,r,o=!1){const a={...rc(e),class:n.value,activeClass:e.activeClass,to:e.disabled?void 0:e.location??(e.pathName?{name:e.pathName}:e.path)};return o&&(a.onVnodeBeforeMount=e=>{const t=e.ctx;t&&r&&(i.value=r.registerTabItem(t)-1)}),Wt(a,[t.h(nc,{...oc(e,r)})])}function lc(e,n){return[ic(!vt.isEmpty(e.icon)&&["left","top"].includes(e.iconPosition),e,e.iconSize),e.label?t.h(["left","right"].includes(e.iconPosition)?"span":"div",{class:{"ms-2":"left"===e.iconPosition&&"horizontal"===n.value,"me-2":"right"===e.iconPosition&&"horizontal"===n.value,"ms-3":"left"===e.iconPosition&&"vertical"===n.value,"me-3":"right"===e.iconPosition&&"vertical"===n.value,"d-flex":"vertical"===n.value,"flex-fill":"vertical"===n.value,"mt-1":"top"===e.iconPosition,"mb-1":"bottom"===e.iconPosition}},t.toDisplayString(e.label)):t.createCommentVNode(" v-if-TabLabel "),ic(!vt.isEmpty(e.icon)&&["right","bottom"].includes(e.iconPosition),e,e.iconSize)]}function uc(e,t,n,i){return{id:t.id?`tabItem-${t.id}`:void 0,icon:t.icon,iconFlip:t.iconFlip,iconRotation:t.iconRotation,iconPulse:t.iconPulse,iconSpin:t.iconSpin,iconVariant:t.iconVariant,label:t.label,path:t.path,url:t.url,disabled:t.disabled,ariaLabel:t.ariaLabel,active:t.active||e.modelValue===t.id||e.modelValue===i,activeClass:t.activeClass||e.activeClass,onClick:r=>!t.disabled&&function(e,t,n,i){var r;qt(e)&&(null==(r=e.url)?void 0:r.startsWith("#"))&&i&&i.preventDefault(),e.active||e.disabled||null==t||t.setActiveTab(n)}(e,n,i,r)}}function cc(e,t,n){const i=null==n?void 0:n.parentElement;if(n&&i){const r=getComputedStyle(i),o=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),a=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=i.clientWidth-a-o,l=n.clientWidth??i.clientWidth;if(l>s){const i=e.value+t,o=l-s+parseFloat(r.paddingRight)/2,a=o+200;e.value=i>200?200:Math.abs(i)>a?-a:i,n.style.transform=`translateX(${e.value}px)`,(e.value>0||e.value<-o)&&window.requestAnimationFrame((()=>{e.value>0?(e.value=0,n.style.transform=`translateX(${e.value}px)`):e.value<-o&&(e.value=-o,n.style.transform=`translateX(${e.value}px)`)}))}}}function dc(e,n,i,r,o,a,s){return t.h("div",{class:[`${Mt}tabs`,"d-flex","flex-column","flex-fill"],onVnodeBeforeUnmount:()=>s.unRegisterAll()},[t.withDirectives(t.h(i.value,{class:r.value,role:"tablist","aria-orientation":"horizontal",onWheel:e=>function(e,t,n){(t.deltaX<0||t.deltaX>0)&&t.preventDefault(),window.requestAnimationFrame((()=>cc(e,-1*t.deltaX,n)))}(a,e,o.value)},[t.h("div",{ref:o,class:["tab-sliding","center"===n.alignment?"justify-content-center":["right","end"].includes(n.alignment)?"justify-content-end":""]},s.tabPanels.map(((e,i)=>t.h(tc,{key:`tab-item-${i}`,...uc(n,e.props,s,i)}))))]),[[kt,{left:e=>cc(a,e.deltaX,o.value),right:e=>cc(a,e.deltaX,o.value)}]]),t.h("div",{class:Qt(["tab-content"],n.contentClass)},e.default&&e.default())])}function hc(e,n,i,r,o,a,s,l){return"vertical"===i.value?function(e,n,i,r,o){return t.h("div",{class:[`${Mt}tabs`,"row","mx-0 px-0","flex-fill"],onVnodeBeforeUnmount:()=>o.unRegisterAll()},[t.h("div",{class:{"col-auto px-0":!0,"order-last":"right"===n.tabPosition}},[t.h(i.value,{class:r.value,role:"tablist","aria-orientation":"vertical"},o.tabPanels.map(((e,i)=>t.h(tc,{key:`tab-item-${i}`,...uc(n,e.props,o,i)}))))]),t.h("div",{class:Qt("col tab-content",n.contentClass)},e.default&&e.default())])}(e,n,r,o,l):dc(e,n,r,o,a,s,l)}const fc=t.defineComponent({name:"BsTabs",props:Qu,emits:["change","update:model-value"],setup(e,{emit:n,slots:i}){const r=e,o=new ec(r,n,r.modelValue),a=t.ref(),s=t.ref(0);t.provide("tabs",o);const l=t.computed((()=>["left","right"].includes(r.tabPosition)?"vertical":"horizontal")),u=t.computed((()=>"pills"===r.variant?"ul":"div")),c=t.computed((()=>function(e,t){let n=["nav",`nav-${e.variant}`,"justified"===e.alignment&&"horizontal"===t.value?e.flex?"flex-column flex-lg-row":"nav-fill":"vertical"===t.value?"flex-column h-100":"","center"===e.alignment&&["left","right"].includes(e.tabPosition)?"justify-content-center":["right","end"].includes(e.alignment)&&["left","right"].includes(e.tabPosition)?"justify-content-end":"","top"===e.tabPosition?`${Mt}tab-top`:"bottom"===e.tabPosition?`${Mt}tab-bottom order-last`:"right"===e.tabPosition?`${Mt}tab-right`:`${Mt}tab-left`,["material","modern"].includes(e.variant)&&e.color?`bg-${e.color}`:""];return vt.isString(e.innerClass)&&!vt.isEmpty(e.innerClass)?n.push(e.innerClass):vt.isEmpty(e.innerClass)||(n=n.concat(e.innerClass)),n}(r,l)));return t.watch((()=>r.modelValue),(e=>{(vt.isNumber(e)||vt.isString(e))&&o.setActiveTab(e)})),t.onMounted((()=>{t.nextTick().then((()=>{o.setActiveTab(r.modelValue)}))})),()=>hc(i,r,l,u,c,a,s,o)}}),pc=t.defineComponent({name:"BsTab",props:{...Ju,id:{type:String,default:()=>vt.uuid(!0)}},setup(e,{slots:n,expose:i}){const r=e,o=t.inject("tabs"),a=t.ref(!1);i({isActive:a});const s=t.computed((()=>["tab-pane",!0===a.value?"active":""]));return t.onBeforeMount((()=>{const e=t.getCurrentInstance();e&&o&&o.registerTabPanel(e)})),()=>Ut({name:null==o?void 0:o.contentTransition},t.withDirectives(t.h("div",{class:s.value,id:e.id,role:"tabpanel","aria-labelledby":e.ariaLabel,onVnodeUnmounted:()=>{o&&r.id&&o.unRegisterTab(r.id)}},n.default&&n.default()),[[t.vShow,a.value]]))}}),mc={install:e=>{e.component(pc.name,pc),e.component(fc.name,fc)}};function vc(e,n,i,r){const o=t.unref(e),a=t.unref(n),s=t.unref(i);if(o&&a&&a&&vt.isFunction(a.getBoundingClientRect)){const e=a.getBoundingClientRect();if(a.style.top=function(e,t,n){const i=t.getBoundingClientRect(),r=i.top-n-4,o=i.top+i.height+4;switch(e.value){case"top":return r>=4?r:(e.value="bottom",o);case"bottom":return o+n<=i.bottom+n+4?o:(e.value="top",r);default:return i.top+i.height/2-n/2}}(r,o,e.height)+"px",a.style.left=function(e,t,n){var i;const r=t.getBoundingClientRect(),o=null==(i=t.parentElement)?void 0:i.getBoundingClientRect(),a=window.innerWidth-4-n,s=r.left-n-4,l=r.left+r.width+4;switch(e.value){case"left":return s>=4?s:(e.value="right",l);case"right":return l<=a?l:(e.value="left",s);default:const t=r.left+Math.min(r.width/2,((null==o?void 0:o.width)??r.width)/2)-n/2;return Math.min(a,t)}}(r,o,e.width)+"px",s){const e=function(e,t,n){const i=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=i.width/2;return("top"===n||"bottom"===n)&&i.width<r.width?i.left-r.left+o-6.5:0}(o,a,r.value);s.style.left=e>0?`${e}px`:""}}}function gc(e,n,i,r,o,a,s,l){if(!s)return;const u=()=>{t.unref(a)||window.requestAnimationFrame((()=>{vc(i,e,n,r),s.emit("update:show",!0),vt.defer((()=>{o.value=!0}),60)}))},c=()=>{vt.defer((()=>{o.value=!1}),60),s.emit("update:show",!1)},d=function(e,t){if(t){if(t instanceof Element)return t;if(vt.isObject(t)&&"$el"in t)return t.$el;if(vt.isString(t)){const e=document.getElementById(t);if(e)return e}}const n=e.vnode.el.nextElementSibling;if(n&&!n.classList.contains(`${Mt}tooltip`))return n;let i=e.subTree.children;return i&&Array.isArray(i)&&i.length>0&&(i=i[1].children,i&&Array.isArray(i)&&i.length>0)?i[0].el:null}(s,l);i.value=d,d&&(d.__mouseEvents={mouseEnter:ht.listen(d,"mouseenter",u),mouseLeave:ht.listen(d,"mouseleave",c),focus:ht.listen(d,"focus",u),blur:ht.listen(d,"blur",c)})}const yc=t.defineComponent({name:"BsTooltip",props:{activator:{type:[String,Object],default:void 0},arrowOff:on,content:sn,disabled:on,show:on,placement:{type:String,default:"bottom",validator:e=>["top","bottom","left","right"].includes(e)},width:dn,maxWidth:fn,zIndex:{type:[String,Number],default:2e3,validator:e=>!isNaN(parseInt(e,10))}},emits:["update:show"],setup(e,{slots:n}){const i=e,r=t.ref(null),o=t.ref(null),a=t.ref(null),s=t.ref(!1),l=t.ref(i.disabled??!1),u=t.computed((()=>s.value||i.show)),c=t.ref(i.placement??"bottom"),d=t.computed((()=>`${Mt}tooltip-${c.value}`)),h=t.computed((()=>[`${Mt}tooltip`,d.value])),f=t.computed((()=>({width:"auto"===i.width?void 0:vt.cssUnit(i.width),"max-width":vt.cssUnit(i.maxWidth),"z-index":i.zIndex,[`--${Mt}tooltip-arrow-height`]:i.arrowOff?0:void 0,[`--${Mt}tooltip-arrow-width`]:i.arrowOff?0:void 0}))),p=()=>{t.nextTick().then((()=>vc(a,r,o,c)))};let m;return t.watch((()=>i.disabled),(e=>l.value=e)),t.onMounted((()=>{m=t.getCurrentInstance(),gc(r,o,a,c,s,l,m,i.activator)})),t.onBeforeUnmount((()=>function(e){const n=t.unref(e);if(n){const{mouseEnter:e,mouseLeave:t,focus:i,blur:r}=n.__mouseEvents;e.remove(),t.remove(),i.remove(),r.remove(),n.__mouseEvents=void 0}}(a))),()=>t.h(t.Fragment,null,[t.h(t.Teleport,{to:"body"},Ut({name:d.value},[u.value?t.withDirectives(t.h("div",{class:h.value,style:f.value,ref:r},[!i.arrowOff&&t.h("div",{ref:o,class:"tooltip-arrow"}),t.h("div",{class:`${Mt}tooltip-inner`,role:"tooltip"},t.toDisplayString(i.content))]),[[yt,p],[xt,p]]):t.createCommentVNode(" BsTooltip ",!0)])),n.default&&n.default()])}}),bc={install:e=>{e.component(yc.name,yc)}};function wc(e){const t=e.s>=0&&e.s<=1?e.s:e.s/100,n=e.l>=0&&e.l<=1?e.l:e.l/100,i=n+t*Math.min(n,1-n),r=0===i?0:2-2*n/i;return{h:e.h,s:100*r,v:100*i,a:e.a}}function xc(e){const t=e.v/100,n=t*(1-e.s/100/2);let i;return n>0&&n<1&&(i=Math.round((t-n)/Math.min(n,1-n)*100)),{h:e.h,s:i||0,l:Math.round(100*n),a:e.a}}function Sc(e){const t=e.s/100,n=e.v/100,i=e.h/60;let r=t*n,o=r*(1-Math.abs(i%2-1));const a=n-r;r+=a,o+=a;const s=Math.floor(i)%6,l=[r,o,a,a,o,r][s],u=[o,r,r,o,a,a][s],c=[a,a,o,r,r,o][s];return{r:Math.round(255*l),g:Math.round(255*u),b:Math.round(255*c),a:e.a}}function Ec(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=r-Math.min(t,n,i),a=r;let s=0,l=0;return o&&(r===t&&(s=(n-i)/o),r===n&&(s=2+(i-t)/o),r===i&&(s=4+(t-n)/o),r&&(l=o/r)),s=Math.floor(60*s),{h:s<0?s+360:s,s:Math.round(100*l),v:Math.round(100*a),a:e.a}}function kc(e,t){var n;let i={r:0,g:0,b:0,a:1};e.fillStyle="#000",e.fillStyle=t;const r=/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i.exec(e.fillStyle);if(r)i={r:parseInt(r[3]),g:parseInt(r[4]),b:parseInt(r[5]),a:parseFloat(r[6])},i.a=+i.a.toFixed(2);else{const t=null==(n=e.fillStyle.replace("#","").match(/.{2}/g))?void 0:n.map((e=>parseInt(e,16)));t&&(i={r:t[0],g:t[1],b:t[2],a:1})}return i}function _c(e){let t=e.r.toString(16),n=e.g.toString(16),i=e.b.toString(16),r="";if(e.r<16&&(t="0"+t),e.g<16&&(n="0"+n),e.b<16&&(i="0"+i),e.a<1){const t=255*e.a|0;r=t.toString(16),t<16&&(r="0"+r)}return"#"+(t+n+i+r).toUpperCase()}function Cc(e){return e.a<1?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:`rgb(${e.r}, ${e.g}, ${e.b})`}function Tc(e){return e.a<1?`hsla(${e.h}, ${e.s}%, ${e.l}%, ${e.a})`:`hsl(${e.h}, ${e.s}%, ${e.l}%)`}const Oc=Object.freeze(Object.defineProperty({__proto__:null,brightnessLevel:function(e){return(299*e.r+587*e.g+114*e.b)/1e3},hexToRgba:function(e){const t=e.replace("#",""),[n,i,r,o]=Ur(t,2).map((e=>parseInt(e,16)));return{r:n,g:i,b:r,a:null==o?1:Math.round(o/255*100)/100}},hslaToHsva:wc,hslaToString:Tc,hsvaToHsla:xc,hsvaToRgba:Sc,rgbaFromString:kc,rgbaToHex:_c,rgbaToHsva:Ec,rgbaToString:Cc,shadeColor:function(e,t){let n;if("string"==typeof e&&e.length>=6)n=e.replace("#","");else{if(!("object"==typeof e&&Object.keys(e).length>2&&Object.keys(e).every((e=>["r","g","b","a"].includes(e)))))return e.toString();n=_c(e).replace("#","")}const i=parseInt(n,16);let r=(i>>16)+t;r>255&&(r=255),r<0&&(r=0);let o=(255&i)+t;o>255&&(o=255),o<0&&(o=0);let a=(i>>8&255)+t;return a>255&&(a=255),a<0&&(a=0),`#${(o|a<<8|r<<16).toString(16).padStart(6,"0")}`}},Symbol.toStringTag,{value:"Module"}));function Nc(e,n,i,r,o,a){const s=[t.h("div",{ref:n.hueSlider,class:[`${Mt}hue-slider`]},[t.h("div",{class:[`${Mt}slider-track`],onClick:e=>{var t;null==(t=n.hueSliderThumb.value)||t.classList.add("move-transition",`${Mt}focused`),zc(e,r,n),vt.defer((()=>{var e;null==(e=n.hueSliderThumb.value)||e.classList.remove("move-transition")}),100)}},[t.h("div",{tabIndex:0,ref:n.hueSliderThumb,class:[`${Mt}slider-thumb`],onBlur:e=>{e.target.classList.remove(`${Mt}focused`)},onKeydown:e=>{var t;const i={ArrowLeft:-1,ArrowRight:1};Object.keys(i).includes(e.key)&&(null==(t=n.hueSliderThumb.value)||t.classList.add(`${Mt}focused`),Uc(n.hueSliderThumb.value,i[e.key],n,r,Wc),e.preventDefault())},onMousedown:()=>{var e;null==(e=n.hueSliderThumb.value)||e.classList.add(`${Mt}pressed`),document.addEventListener("mousemove",o)},onTouchstart:()=>{var e;null==(e=n.hueSliderThumb.value)||e.classList.add(`${Mt}pressed`),document.addEventListener("touchmove",o,{passive:!1})}},[t.h("div",{class:[`${Mt}slider-thumb-surface`]}),t.h("div",{class:[`${Mt}slider-thumb-ripple`]})])])])];return e.hideAlpha||s.push(t.h("div",{ref:n.alphaSlider,class:[`${Mt}alpha-slider`]},[t.h("div",{class:[`${Mt}slider-track`],onClick:e=>{var t;null==(t=n.alphaSliderThumb.value)||t.classList.add("move-transition",`${Mt}focused`),Hc(e,r,n),vt.defer((()=>{var e;null==(e=n.alphaSliderThumb.value)||e.classList.remove("move-transition")}),100)}},[t.h("div",{class:[`${Mt}slider-track-alpha`]}),t.h("div",{tabIndex:0,ref:n.alphaSliderThumb,class:[`${Mt}slider-thumb`],onBlur:e=>{e.target.classList.remove(`${Mt}focused`)},onKeydown:e=>{var t;const i={ArrowLeft:-1,ArrowRight:1};Object.keys(i).includes(e.key)&&(null==(t=n.alphaSliderThumb.value)||t.classList.add(`${Mt}focused`),Uc(n.alphaSliderThumb.value,i[e.key],n,r,qc),e.preventDefault())},onMousedown:()=>{var e;null==(e=n.alphaSliderThumb.value)||e.classList.add(`${Mt}pressed`),document.addEventListener("mousemove",a)},onTouchstart:()=>{var e;null==(e=n.alphaSliderThumb.value)||e.classList.add(`${Mt}pressed`),document.addEventListener("touchmove",a,{passive:!1})}},[t.h("div",{class:[`${Mt}slider-thumb-surface`]}),t.h("div",{class:[`${Mt}slider-thumb-ripple`]})])])])),t.h("div",{class:[`${i}controls`]},[t.h("div",{ref:n.colorPreview,class:[`${i}preview`]},[t.h("div",{class:[`${i}selected-color`]},[t.h("div",{class:[`${i}selected-color-alpha`]})])]),t.h("div",{class:[`${i}sliders`]},s)])}function $c(e,n,i,r){return t.h("label",{class:Qt(`${n}input-label`,e.inputLabelClass),for:i},r)}function Ic(e,n,i,r,o,a=255,s,l){const u=e.config.mode;let c;return c="RGB"===u&&"R"===o?e.colorRGB.r:"RGB"===u&&"G"===o?e.colorRGB.g:"RGB"===u&&"B"===o?e.colorRGB.b:"HSL"===u&&"H"===o?e.colorHSL.h:"HSL"===u&&"S"===o?e.colorHSL.s:"HSL"===u&&"L"===o?e.colorHSL.l:e.colorRGB.a,t.h("div",{class:[`${i}input-col`]},[t.h("input",{class:["form-control","form-input-number","form-control-sm"],type:"number",id:r,min:0,max:a,maxlength:l,step:s,value:c,placeholder:o,onChange:t=>{!function(e,t,n,i){const r=n.config.mode;let o,a,s,l="RGB"===r&&"A"!==t?Number.parseInt(e.trim()):Number.parseFloat(e.trim());l<0?l=0:["S","L","A"].includes(t)&&l>1?l=1:["R","G","B"].includes(t)&&l>255?l=255:"H"===t&&l>360&&(l=360);"RGB"===r?(o=n.colorRGB,"R"===t?o.r=l:"G"===t?o.g=l:"B"===t?o.b=l:o.a=l,s=Ec(o)):(a=n.colorHSL,"H"===t?a.h=l:"S"===t?a.s=l:"L"===t?a.l=l:a.a=l,s=wc(a),o=Sc(s));Zc(n,o,s),Jc(n,s),Yc(n,i)}(t.target.value,o,e,n)}})])}function Ac(e,n,i,r,o){const a=[$c(e,i,r.H,"H"),Ic(n,o,i,r.H,"H",360),$c(e,i,r.S,"S"),Ic(n,o,i,r.S,"S",1,.01),$c(e,i,r.L,"L"),Ic(n,o,i,r.L,"L",1,.01)];return e.hideAlpha||a.push($c(e,i,r.A1,"A"),Ic(n,o,i,r.A1,"A",1,.01)),t.h("div",{class:[`${i}input-row`]},a)}function Pc(e,n,i,r,o){const a=[$c(e,i,r.R,"R"),Ic(n,o,i,r.R,"R"),$c(e,i,r.G,"G"),Ic(n,o,i,r.G,"G"),$c(e,i,r.B,"B"),Ic(n,o,i,r.B,"B")];return e.hideAlpha||a.push($c(e,i,r.A2,"A"),Ic(n,o,i,r.A2,"A",1,.01)),t.h("div",{class:[`${i}input-row`]},a)}function Mc(e,n,i,r,o){return t.h("div",{class:[`${i}input-row`]},[$c(e,i,r.HEX,"HEX"),t.h("div",{class:[`${i}input-col`]},[t.h("input",{class:["form-control","form-input-text","form-control-sm"],type:"text",id:r.HEX,maxlength:9,value:n.config.value,placeholder:"HEX color",onChange:e=>{!function(e,t,n){if(e&&t.config.value!==e&&[6,7,9].includes(e.length)){let i=e.trim();e.startsWith("#")||(i="#"+e.trim());const r=kc(t.canvasCtx,i),o=Ec(r);Zc(t,r,o),Jc(t,o),Yc(t,n)}}(e.target.value,n,o)}})])])}function Dc(e,n,i,r,o){return!0===e.hideInputs?t.createCommentVNode(" v-if-inputs ",!0):t.h("div",{class:[`${i}inputs`,"pt-2"]},["HSL"===n.config.mode?Ac(e,n,i,r,o):"RGB"===n.config.mode?Pc(e,n,i,r,o):Mc(e,n,i,r,o)])}function Vc(e,n,i){return!0===e.hideModeButton?t.createCommentVNode(" v-if-mode-buttons ",!0):t.h("div",{class:["py-2","text-center"]},[t.h(os,{size:"sm",color:e.modeButtonColor,toggleColor:e.modeButtonToggleColor,outlined:e.modeButtonOutlined,items:[{value:"HEX",label:"HEX"},{value:"RGB",label:"RGB"},{value:"HSL",label:"HSL"}],modelValue:n.config.mode,"onUpdate:model-value":e=>{n.config.mode=e,Xc(i,n),t.nextTick().then((()=>i("update:mode",e)))}})])}function Lc(e,n,i,r){var o;return vt.isEmpty(e.swatches)?t.createCommentVNode(" v-if-swatches ",!0):t.h("div",{class:[`${i}swatches`],style:{"max-height":vt.cssUnit(e.swatchesMaxHeight)}},[t.h("div",{class:[`${i}swatches-content`,"d-flex","flex-wrap","justify-content-center"]},null==(o=e.swatches)?void 0:o.map((e=>t.h("button",{type:"button",key:e,title:e,class:[`${Mt}swatch-button`],style:{color:e},onClick:e=>{n.config.value=e.target.title,Gc(n,r)}}))))])}function Bc(e,n,i,r,o,a,s,l,u){const c=`${Mt}color-picker-`,d=vt.isEmpty(e.activator)?t.mergeProps({ref:i.pickerEl,class:n.value,style:e.hideAlpha?{width:"250px"}:void 0},o):{ref:i.pickerEl,class:n.value,style:e.hideAlpha?{width:"250px"}:void 0};return t.h("div",d,[t.h("div",{ref:i.colorArea,class:[`${c}canvas`],onClick:e=>jc(e,a,i)},[t.h("div",{tabIndex:0,ref:i.colorMarker,class:[`${c}canvas-marker`],onKeydown:e=>{const t={ArrowUp:[0,-1],ArrowDown:[0,1],ArrowLeft:[-1,0],ArrowRight:[1,0]};Object.keys(t).includes(e.key)&&(!function(e,t,n,i){const r=t.colorMarker.value,o=parseInt(r.style.left.replace("px",""))+n,a=parseInt(r.style.top.replace("px",""))+i;Rc(e,t,o,a)}(a,i,t[e.key][0],t[e.key][1]),e.preventDefault())},onMousedown:()=>document.addEventListener("mousemove",s),onTouchstart:()=>document.addEventListener("touchmove",s,{passive:!1})})]),t.h("div",{class:[`${c}body`]},[Nc(e,i,c,a,l,u),Dc(e,i,c,r,a),Vc(e,i,a)]),Lc(e,i,c,a)])}function Fc(e){return{clientX:e.changedTouches?e.changedTouches[0].clientX:e.clientX,clientY:e.changedTouches?e.changedTouches[0].clientY:e.clientY}}function jc(e,t,n){var i;n.colorArea.value&&(n.colorAreaRect=null==(i=n.colorArea.value)?void 0:i.getBoundingClientRect());const r=Fc(e);Rc(t,n,r.clientX-n.colorAreaRect.left,r.clientY-n.colorAreaRect.top),ft(e)}function Rc(e,t,n,i){const r=t.colorMarker.value,o=t.colorAreaRect,a=n<0?0:n>o.width?o.width:n,s=i<0?0:i>o.height?o.height:i;r.style.left=`${a}px`,r.style.top=`${s}px`,function(e,t,n,i){const r={h:t.config.hueSlider,s:n/t.colorAreaRect.width*100,v:100-i/t.colorAreaRect.height*100,a:t.config.alphaSlider/100},o=Sc(r);Zc(t,o,r),Yc(t,e)}(e,t,a,s),r.focus()}function zc(e,t,n){var i;if(!n.hueSlider.value)return;const r=null==(i=n.hueSlider.value)?void 0:i.firstElementChild;if(!r)return;const o=r.getBoundingClientRect(),a=Fc(e).clientX-o.left;Wc(t,n,(a<0?0:a>o.width?o.width:a)/o.width*100),ft(e)}function Uc(e,t,n,i,r){let o=parseFloat(e.style.left.replace("%",""))+t;o<0?o=0:o>100&&(o=100),r(i,n,o)}function Wc(e,t,n){const i={h:Math.round(n/100*360),s:t.config.currentColor.s,v:t.config.currentColor.v,a:t.config.currentColor.a},r=Sc(i);t.colorArea.value.style.color=`hsl(${i.h}, 100%, 50%)`,t.hueSliderThumb.value.style.left=`${n}%`,Zc(t,r,i),Yc(t,e),t.hueSliderThumb.value.focus()}function Hc(e,t,n){var i;if(!n.alphaSlider.value)return;const r=null==(i=n.alphaSlider.value)?void 0:i.lastElementChild;if(!r)return;const o=r.getBoundingClientRect(),a=Fc(e).clientX-o.left,s=a<0?0:a>o.width?o.width:a;qc(t,n,Math.round(s/o.width*100)),ft(e)}function qc(e,t,n){t.alphaSliderThumb.value.style.left=`${n}%`,t.config.alphaSlider=n,t.config.currentColor.a=n/100,t.colorHSL.a=n/100,t.colorRGB.a=n/100,Yc(t,e),t.alphaSliderThumb.value.focus()}function Zc(e,t,n){for(const n in t)Object.hasOwn(t,n)&&(e.config.currentColor[n]=t[n]);for(const t in n)Object.hasOwn(n,t)&&(e.config.currentColor[t]=n[t]);e.config.hueSlider=n.h,e.config.alphaSlider=100*n.a,e.colorRGB=t;const i=xc(n);e.colorHSL={h:i.h,s:i.s/100,l:i.l/100,a:n.a}}function Yc(e,t){const n=_c(e.config.currentColor);e.colorMarker.value.style.color=n.substring(0,7),e.colorPreview.value.style.color=n,e.alphaSlider.value&&(e.alphaSlider.value.style.color=n.substring(0,7)),t&&Xc(t,e,n)}function Xc(e,t,n){switch(t.config.mode){case"HSL":t.config.value=Tc(xc(t.config.currentColor));break;case"RGB":t.config.value=Cc(t.config.currentColor);break;default:t.config.value=n||_c(t.config.currentColor)}e("update:model-value",t.config.value)}function Gc(e,t){let n,i;if(vt.isEmpty(e.config.value)){n=wc({h:0,s:100,l:50,a:1}),i=Sc(n)}else i=kc(e.canvasCtx,e.config.value),n=Ec(i);Zc(e,i,n),Jc(e,n),Yc(e,t)}function Jc(e,t){const n=t||{h:e.config.currentColor.h,s:e.config.currentColor.s,v:e.config.currentColor.v,a:e.config.currentColor.a};e.colorArea.value.style.color=`hsl(${n.h}, 100%, 50%)`,e.colorMarker.value.style.left=e.colorAreaRect.width*n.s/100+"px",e.colorMarker.value.style.top=e.colorAreaRect.height-e.colorAreaRect.height*n.v/100+"px",e.hueSliderThumb.value.style.left=n.h/360*100+"%",e.alphaSliderThumb.value&&(e.alphaSliderThumb.value.style.left=100*n.a+"%")}const Kc={activator:{type:[String,Object],default:void 0},containerColor:wn,cover:on,open:on,hideAlpha:on,hideInputs:on,hideModeButton:on,modeButtonOutlined:on,modeButtonColor:{type:String,default:"grey"},modeButtonToggleColor:sn,inputLabelClass:hn,mode:{type:String,default:"HEX",validator:e=>["RGB","HSL","HEX"].includes(e)},modelValue:sn,placement:Oa,space:fn,transition:Na,swatches:{type:Array,default:void 0},swatchesMaxHeight:{type:[String,Number],default:80}},Qc=t.defineComponent({name:"BsColorPicker",inheritAttrs:!1,props:Kc,emits:["update:mode","update:model-value","update:open"],setup(e,{emit:n,attrs:i,expose:r}){const o=e,a=function(e){return{config:t.reactive({currentColor:{r:0,g:0,b:0,h:0,s:0,v:0,a:1},hueSlider:0,alphaSlider:100,value:e.modelValue,mode:e.mode}),colorRGB:{r:0,g:0,b:0,a:1},colorHSL:{h:0,s:0,l:0,a:1},pickerEl:t.ref(null),colorArea:t.ref(null),colorAreaRect:DOMRect.fromRect({width:0,height:0,x:0,y:0}),colorMarker:t.ref(null),colorPreview:t.ref(null),hueSlider:t.ref(null),hueSliderThumb:t.ref(null),alphaSlider:t.ref(null),alphaSliderThumb:t.ref(null),canvasCtx:document.createElement("canvas").getContext("2d")}}(o),s=t.computed((()=>[`${Mt}color-picker`,`bg-${o.containerColor}`])),l={H:Vt(),S:Vt(),L:Vt(),A1:Vt(),R:Vt(),G:Vt(),B:Vt(),A2:Vt(),HEX:Vt()},u=e=>{jc(e,n,a)},c=e=>{zc(e,n,a)},d=e=>{Hc(e,n,a)};return r({hexColor:()=>_c(a.config.currentColor),rgbColor:()=>a.colorRGB,hslColor:()=>a.colorHSL}),t.watch((()=>o.mode),(e=>{a.config.mode=e})),t.watch((()=>o.modelValue),(e=>{a.config.value!==e&&(a.config.value=e,Gc(a),"HSL"===a.config.mode?a.config.value=Tc(xc(a.config.currentColor)):"RGB"===a.config.mode?a.config.value=Cc(a.config.currentColor):a.config.value=_c(a.config.currentColor))})),t.onMounted((()=>{var e,t,i,r;a.colorArea.value&&(a.colorAreaRect=a.colorArea.value.getBoundingClientRect()),e=a,t=u,i=c,r=d,document.addEventListener("mouseup",(()=>document.removeEventListener("mousemove",t))),document.addEventListener("mouseup",(()=>{document.removeEventListener("mousemove",i),vt.defer((()=>{var t;null==(t=e.hueSliderThumb.value)||t.classList.remove(`${Mt}pressed`)}),75)})),document.addEventListener("mouseup",(()=>{document.removeEventListener("mousemove",r),vt.defer((()=>{var t;null==(t=e.alphaSliderThumb.value)||t.classList.remove(`${Mt}pressed`)}),75)})),document.addEventListener("touchend",(()=>document.removeEventListener("touchmove",t,{passive:!1}))),document.addEventListener("touchend",(()=>{document.removeEventListener("touchmove",i,{passive:!1}),vt.defer((()=>{var t;null==(t=e.hueSliderThumb.value)||t.classList.remove(`${Mt}pressed`)}),75)})),document.addEventListener("touchend",(()=>{document.removeEventListener("touchmove",r,{passive:!1}),vt.defer((()=>{var t;null==(t=e.alphaSliderThumb.value)||t.classList.remove(`${Mt}pressed`)}),75)})),vt.defer((()=>{n("update:mode",a.config.mode),Gc(a,n)}),100)})),()=>vt.isEmpty(o.activator)?Bc(o,s,a,l,i,n,u,c,d):t.h(Pl,t.mergeProps({class:[`${Mt}popover-color-picker`],color:e.containerColor,cover:e.cover,open:e.open,placement:e.placement,space:e.space||4,transition:e.transition,trigger:e.activator,"onUpdate:open":e=>n("update:open",e)},i),{default:()=>Bc(o,s,a,l,i,n,u,c,d)})}}),ed={install:e=>{e.component(Qc.name,Qc)}},td={type:String,default:"date",validator:e=>Om.viewModes.includes(e)},nd={type:[Number,String],default:300,validator:e=>parseInt(e,10)>0},id={color:bn,displayMode:td,pickerMode:td,enableTime:an,landscape:on,locale:sn,readonly:on,modelValue:un},rd={buttonColor:sn,displayMode:td,disabled:on,locale:sn,modelValue:un},od={backButton:an,disabled:on,locale:sn,modelValue:un,selectedColor:sn},ad={disabled:on,locale:sn,modelValue:un,calendarDate:un,selectedColor:sn},sd={fullWidth:on,surfaceColor:wn,headerColor:bn,headerPanel:an,landscape:on,readonly:on,locale:sn,mode:td,viewMode:{type:String,default:void 0,validator:e=>Om.viewModes.includes(e)},modelValue:{type:[String,Number,Date],default:void 0},width:nd},ld={...Pa,...Ma,...Ta,autofocus:on,modelValue:dn,placeholder:sn,locale:sn,displayFormat:sn,valueFormat:{type:String,default:"yyyy-MM-dd"},headerColor:bn,headerPanel:an,landscapeMode:on,openOnHover:on,viewMode:{type:String,default:void 0,validator:e=>Om.viewModes.includes(e)},transition:sn,pickerCls:{type:[String,Array],default:"rounded shadow"},pickerColor:wn,pickerMode:td,pickerPlacement:Oa,pickerTransition:Na,pickerWidth:nd},ud=t.defineComponent({name:"BsDatePickerDays",props:ad,emits:["change:calendar","update:model-value"],setup(e,{emit:n}){const i=e,{localValue:r,calendarDate:o,transitionName:a}=Lm(i),s=t.computed((()=>function(e){const t=Intl.NumberFormat(e.locale??void 0),n=[],i=(e.daysInMonth??30)+1,r=xm.local(e.year,e.month,1).weekday%7;let o=[];for(let e=0;e<r;e++)o.push({text:"0",value:void 0});for(let r=1;r<i;r++)o.push({text:t.format(r),value:e.set({day:r})}),o.length%7==0&&(n.push(o),o=[]);if(o.length>0){for(let e=o.length;e<7;e++)o.push({text:"0",value:void 0});n.push(o)}return n}(o.value))),l=t.reactive({timerId:void 0,lastExec:void 0});return()=>function(e,n,i,r,o,a,s){const l=function(e){const t=new Intl.DateTimeFormat(e,{weekday:"narrow"});return vt.createRange(7).map((e=>t.format(new Date(2017,0,e+15))))}(e.locale),u=xm.now();return t.withDirectives(t.h("div",{class:[`${Mt}datepicker-days`],onWheel:e=>{e.preventDefault(),Fm(s,Om.DATE,a,n,300,e.deltaY||e.deltaX)}},[Ut({name:i.value},[t.h("table",{key:a.value.toFormat(Om.yearMonthISO)},[t.h("thead",[t.h("tr",l.map((e=>t.h("th",{key:`th-${e}`},t.toDisplayString(e)))))]),t.h("tbody",r.value.map(((i,r)=>t.h("tr",{key:`tr-${r}`},i.map(((i,a)=>t.h("td",{key:`td-${r}-${a}`},[i.value?jm(e,o,i,u,(()=>Pm(n,i.value,e.disabled))):""])))))))])])]),[[kt,{left:e=>{(e.deltaX<-10||e.deltaX>10)&&Bm(Om.DATE,a.value,n,-1*e.deltaX)},right:e=>{(e.deltaX<-10||e.deltaX>10)&&Bm(Om.DATE,a.value,n,-1*e.deltaX)}}]])}(i,n,a,s,r,o,l)}});class cd extends Error{}class dd extends cd{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class hd extends cd{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class fd extends cd{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class pd extends cd{}class md extends cd{constructor(e){super(`Invalid unit ${e}`)}}class vd extends cd{}class gd extends cd{constructor(){super("Zone is an abstract class")}}const yd="numeric",bd="short",wd="long",xd={year:yd,month:yd,day:yd},Sd={year:yd,month:bd,day:yd},Ed={year:yd,month:bd,day:yd,weekday:bd},kd={year:yd,month:wd,day:yd},_d={year:yd,month:wd,day:yd,weekday:wd},Cd={hour:yd,minute:yd},Td={hour:yd,minute:yd,second:yd},Od={hour:yd,minute:yd,second:yd,timeZoneName:bd},Nd={hour:yd,minute:yd,second:yd,timeZoneName:wd},$d={hour:yd,minute:yd,hourCycle:"h23"},Id={hour:yd,minute:yd,second:yd,hourCycle:"h23"},Ad={hour:yd,minute:yd,second:yd,hourCycle:"h23",timeZoneName:bd},Pd={hour:yd,minute:yd,second:yd,hourCycle:"h23",timeZoneName:wd},Md={year:yd,month:yd,day:yd,hour:yd,minute:yd},Dd={year:yd,month:yd,day:yd,hour:yd,minute:yd,second:yd},Vd={year:yd,month:bd,day:yd,hour:yd,minute:yd},Ld={year:yd,month:bd,day:yd,hour:yd,minute:yd,second:yd},Bd={year:yd,month:bd,day:yd,weekday:bd,hour:yd,minute:yd},Fd={year:yd,month:wd,day:yd,hour:yd,minute:yd,timeZoneName:bd},jd={year:yd,month:wd,day:yd,hour:yd,minute:yd,second:yd,timeZoneName:bd},Rd={year:yd,month:wd,day:yd,weekday:wd,hour:yd,minute:yd,timeZoneName:wd},zd={year:yd,month:wd,day:yd,weekday:wd,hour:yd,minute:yd,second:yd,timeZoneName:wd};class Ud{get type(){throw new gd}get name(){throw new gd}get ianaName(){return this.name}get isUniversal(){throw new gd}offsetName(e,t){throw new gd}formatOffset(e,t){throw new gd}offset(e){throw new gd}equals(e){throw new gd}get isValid(){throw new gd}}let Wd=null;class Hd extends Ud{static get instance(){return null===Wd&&(Wd=new Hd),Wd}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return cf(e,t,n)}formatOffset(e,t){return pf(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let qd={};const Zd={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Yd={};class Xd extends Ud{static create(e){return Yd[e]||(Yd[e]=new Xd(e)),Yd[e]}static resetCache(){Yd={},qd={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Xd.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return cf(e,t,n,this.name)}formatOffset(e,t){return pf(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(i=this.name,qd[i]||(qd[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qd[i]);var i;let[r,o,a,s,l,u,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){const{type:t,value:r}=n[e],o=Zd[t];"era"===t?i[o]=r:zh(o)||(i[o]=parseInt(r,10))}return i}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,o,a,s,l,u,c]=i;return[a,r,o,s,l,u,c]}(n,t);"BC"===s&&(r=1-Math.abs(r));let d=+t;const h=d%1e3;return d-=h>=0?h:1e3+h,(af({year:r,month:o,day:a,hour:24===l?0:l,minute:u,second:c,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Gd={};let Jd={};function Kd(e,t={}){const n=JSON.stringify([e,t]);let i=Jd[n];return i||(i=new Intl.DateTimeFormat(e,t),Jd[n]=i),i}let Qd={};let eh={};let th=null;let nh={};function ih(e,t,n,i){const r=e.listingMode();return"error"===r?null:"en"===r?n(t):i(t)}class rh{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let i=Qd[n];return i||(i=new Intl.NumberFormat(e,t),Qd[n]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Jh(this.floor?Math.floor(e):tf(e,3),this.padTo)}}class oh{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Xd.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=Kd(t,r)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ah{constructor(e,t,n){this.opts={style:"long",...n},!t&&Hh()&&(this.rtf=function(e,t={}){const{...n}=t,i=JSON.stringify([e,n]);let r=eh[i];return r||(r=new Intl.RelativeTimeFormat(e,t),eh[i]=r),r}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${r[e][0]}`;case-1:return n?"yesterday":`last ${r[e][0]}`;case 0:return n?"today":`this ${r[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=r[e],c=i?l?u[1]:u[2]||u[1]:l?r[e][0]:e;return a?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const sh={firstDay:1,minimalDays:4,weekend:[6,7]};class lh{static fromOpts(e){return lh.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,r=!1){const o=e||Ch.defaultLocale,a=o||(r?"en-US":th||(th=(new Intl.DateTimeFormat).resolvedOptions().locale,th)),s=t||Ch.defaultNumberingSystem,l=n||Ch.defaultOutputCalendar,u=Xh(i)||Ch.defaultWeekSettings;return new lh(a,s,l,u,o)}static resetCache(){th=null,Jd={},Qd={},eh={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return lh.create(e,t,n,i)}constructor(e,t,n,i,r){const[o,a,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=Kd(e).resolvedOptions(),i=e}catch(r){const o=e.substring(0,n);t=Kd(o).resolvedOptions(),i=o}const{numberingSystem:r,calendar:o}=t;return[i,r,o]}}(e);this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.weekSettings=i,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?lh.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Xh(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ih(this,e,bf,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const i=xm.utc(2009,n,1);t.push(e(i))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[i][e]}))}weekdays(e,t=!1){return ih(this,e,Ef,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=function(e){const t=[];for(let n=1;n<=7;n++){const i=xm.utc(2016,11,13+n);t.push(e(i))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return ih(this,void 0,(()=>kf),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[xm.utc(2016,11,13,9),xm.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return ih(this,e,Of,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[xm.utc(-40,1,1),xm.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const i=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return i?i.value:null}numberFormatter(e={}){return new rh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new oh(e,this.intl,t)}relFormatter(e={}){return new ah(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let i=Gd[n];return i||(i=new Intl.ListFormat(e,t),Gd[n]=i),i}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:qh()?function(e){let t=nh[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,nh[e]=t}return t}(this.locale):sh}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let uh=null;class ch extends Ud{static get utcInstance(){return null===uh&&(uh=new ch(0)),uh}static instance(e){return 0===e?ch.utcInstance:new ch(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ch(df(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${pf(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${pf(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return pf(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class dh extends Ud{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function hh(e,t){if(zh(e)||null===e)return t;if(e instanceof Ud)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Hd.instance:"utc"===n||"gmt"===n?ch.utcInstance:ch.parseSpecifier(n)||Xd.create(e)}return Uh(e)?ch.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new dh(e)}const fh={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ph={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mh=fh.hanidec.replace(/[\[|\]]/g,"").split("");let vh={};function gh({numberingSystem:e},t=""){const n=e||"latn";return vh[n]||(vh[n]={}),vh[n][t]||(vh[n][t]=new RegExp(`${fh[n]}${t}`)),vh[n][t]}let yh,bh=()=>Date.now(),wh="system",xh=null,Sh=null,Eh=null,kh=60,_h=null;class Ch{static get now(){return bh}static set now(e){bh=e}static set defaultZone(e){wh=e}static get defaultZone(){return hh(wh,Hd.instance)}static get defaultLocale(){return xh}static set defaultLocale(e){xh=e}static get defaultNumberingSystem(){return Sh}static set defaultNumberingSystem(e){Sh=e}static get defaultOutputCalendar(){return Eh}static set defaultOutputCalendar(e){Eh=e}static get defaultWeekSettings(){return _h}static set defaultWeekSettings(e){_h=Xh(e)}static get twoDigitCutoffYear(){return kh}static set twoDigitCutoffYear(e){kh=e%100}static get throwOnInvalid(){return yh}static set throwOnInvalid(e){yh=e}static resetCaches(){lh.resetCache(),Xd.resetCache(),xm.resetCache(),vh={}}}class Th{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Oh=[0,31,59,90,120,151,181,212,243,273,304,334],Nh=[0,31,60,91,121,152,182,213,244,274,305,335];function $h(e,t){return new Th("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Ih(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return 0===r?7:r}function Ah(e,t,n){return n+(nf(e)?Nh:Oh)[t-1]}function Ph(e,t){const n=nf(e)?Nh:Oh,i=n.findIndex((e=>e<t));return{month:i+1,day:t-n[i]}}function Mh(e,t){return(e-t+7)%7+1}function Dh(e,t=4,n=1){const{year:i,month:r,day:o}=e,a=Ah(i,r,o),s=Mh(Ih(i,r,o),n);let l,u=Math.floor((a-s+14-t)/7);return u<1?(l=i-1,u=lf(l,t,n)):u>lf(i,t,n)?(l=i+1,u=1):l=i,{weekYear:l,weekNumber:u,weekday:s,...mf(e)}}function Vh(e,t=4,n=1){const{weekYear:i,weekNumber:r,weekday:o}=e,a=Mh(Ih(i,1,t),n),s=rf(i);let l,u=7*r+o-a-7+t;u<1?(l=i-1,u+=rf(l)):u>s?(l=i+1,u-=rf(i)):l=i;const{month:c,day:d}=Ph(l,u);return{year:l,month:c,day:d,...mf(e)}}function Lh(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:Ah(t,n,i),...mf(e)}}function Bh(e){const{year:t,ordinal:n}=e,{month:i,day:r}=Ph(t,n);return{year:t,month:i,day:r,...mf(e)}}function Fh(e,t){if(!zh(e.localWeekday)||!zh(e.localWeekNumber)||!zh(e.localWeekYear)){if(!zh(e.weekday)||!zh(e.weekNumber)||!zh(e.weekYear))throw new pd("Cannot mix locale-based week fields with ISO-based week fields");return zh(e.localWeekday)||(e.weekday=e.localWeekday),zh(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),zh(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function jh(e){const t=Wh(e.year),n=Gh(e.month,1,12),i=Gh(e.day,1,of(e.year,e.month));return t?n?!i&&$h("day",e.day):$h("month",e.month):$h("year",e.year)}function Rh(e){const{hour:t,minute:n,second:i,millisecond:r}=e,o=Gh(t,0,23)||24===t&&0===n&&0===i&&0===r,a=Gh(n,0,59),s=Gh(i,0,59),l=Gh(r,0,999);return o?a?s?!l&&$h("millisecond",r):$h("second",i):$h("minute",n):$h("hour",t)}function zh(e){return void 0===e}function Uh(e){return"number"==typeof e}function Wh(e){return"number"==typeof e&&e%1==0}function Hh(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function qh(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Zh(e,t,n){if(0!==e.length)return e.reduce(((e,i)=>{const r=[t(i),i];return e&&n(e[0],r[0])===e[0]?e:r}),null)[1]}function Yh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xh(e){if(null==e)return null;if("object"!=typeof e)throw new vd("Week settings must be an object");if(!Gh(e.firstDay,1,7)||!Gh(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Gh(e,1,7))))throw new vd("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Gh(e,t,n){return Wh(e)&&e>=t&&e<=n}function Jh(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function Kh(e){return zh(e)||null===e||""===e?void 0:parseInt(e,10)}function Qh(e){return zh(e)||null===e||""===e?void 0:parseFloat(e)}function ef(e){if(!zh(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function tf(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function nf(e){return e%4==0&&(e%100!=0||e%400==0)}function rf(e){return nf(e)?366:365}function of(e,t){const n=(i=t-1)-(r=12)*Math.floor(i/r)+1;var i,r;return 2===n?nf(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function af(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function sf(e,t,n){return-Mh(Ih(e,1,t),n)+t-1}function lf(e,t=4,n=1){const i=sf(e,t,n),r=sf(e+1,t,n);return(rf(e)-i+r)/7}function uf(e){return e>99?e:e>Ch.twoDigitCutoffYear?1900+e:2e3+e}function cf(e,t,n,i=null){const r=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(r).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function df(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function hf(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new vd(`Invalid unit value ${e}`);return t}function ff(e,t){const n={};for(const i in e)if(Yh(e,i)){const r=e[i];if(null==r)continue;n[t(i)]=hf(r)}return n}function pf(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${Jh(n,2)}:${Jh(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${Jh(n,2)}${Jh(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function mf(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const vf=["January","February","March","April","May","June","July","August","September","October","November","December"],gf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yf=["J","F","M","A","M","J","J","A","S","O","N","D"];function bf(e){switch(e){case"narrow":return[...yf];case"short":return[...gf];case"long":return[...vf];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const wf=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xf=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Sf=["M","T","W","T","F","S","S"];function Ef(e){switch(e){case"narrow":return[...Sf];case"short":return[...xf];case"long":return[...wf];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const kf=["AM","PM"],_f=["Before Christ","Anno Domini"],Cf=["BC","AD"],Tf=["B","A"];function Of(e){switch(e){case"narrow":return[...Tf];case"short":return[...Cf];case"long":return[..._f];default:return null}}function Nf(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const $f={D:xd,DD:Sd,DDD:kd,DDDD:_d,t:Cd,tt:Td,ttt:Od,tttt:Nd,T:$d,TT:Id,TTT:Ad,TTTT:Pd,f:Md,ff:Vd,fff:Fd,ffff:Rd,F:Dd,FF:Ld,FFF:jd,FFFF:zd};class If{static create(e,t={}){return new If(e,t)}static parseFormat(e){let t=null,n="",i=!1;const r=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);"'"===a?(n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||a===t?n+=a:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(e){return $f[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Jh(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>n?function(e){return kf[e.hour<12?0:1]}(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,i)=>n?function(e,t){return bf(t)[e.month-1]}(e,t):r(i?{month:t}:{month:t,day:"numeric"},"month"),l=(t,i)=>n?function(e,t){return Ef(t)[e.weekday-1]}(e,t):r(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{const n=If.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Of(t)[e.year<0?0:1]}(e,t):r({era:t},"era");return Nf(If.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return i?r({day:"numeric"},"day"):this.num(e.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(e.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(e.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=If.parseFormat(t),r=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return Nf(i,(e=>t=>{const i=n(t);return i?this.num(e.get(i),t.length):t})(e.shiftTo(...r.map(n).filter((e=>e)))))}}const Af=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Pf(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Mf(...e){return t=>e.reduce((([e,n,i],r)=>{const[o,a,s]=r(t,i);return[{...e,...o},a||n,s]}),[{},null,1]).slice(0,2)}function Df(e,...t){if(null==e)return[null,null];for(const[n,i]of t){const t=n.exec(e);if(t)return i(t)}return[null,null]}function Vf(...e){return(t,n)=>{const i={};let r;for(r=0;r<e.length;r++)i[e[r]]=Kh(t[n+r]);return[i,null,n+r]}}const Lf=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Bf=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ff=RegExp(`${Bf.source}${`(?:${Lf.source}?(?:\\[(${Af.source})\\])?)?`}`),jf=RegExp(`(?:T${Ff.source})?`),Rf=Vf("weekYear","weekNumber","weekDay"),zf=Vf("year","ordinal"),Uf=RegExp(`${Bf.source} ?(?:${Lf.source}|(${Af.source}))?`),Wf=RegExp(`(?: ${Uf.source})?`);function Hf(e,t,n){const i=e[t];return zh(i)?n:Kh(i)}function qf(e,t){return[{hours:Hf(e,t,0),minutes:Hf(e,t+1,0),seconds:Hf(e,t+2,0),milliseconds:ef(e[t+3])},null,t+4]}function Zf(e,t){const n=!e[t]&&!e[t+1],i=df(e[t+1],e[t+2]);return[{},n?null:ch.instance(i),t+3]}function Yf(e,t){return[{},e[t]?Xd.create(e[t]):null,t+1]}const Xf=RegExp(`^T?${Bf.source}$`),Gf=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Jf(e){const[t,n,i,r,o,a,s,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:h(Qh(n)),months:h(Qh(i)),weeks:h(Qh(r)),days:h(Qh(o)),hours:h(Qh(a)),minutes:h(Qh(s)),seconds:h(Qh(l),"-0"===l),milliseconds:h(ef(u),d)}]}const Kf={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Qf(e,t,n,i,r,o,a){const s={year:2===t.length?uf(Kh(t)):Kh(t),month:gf.indexOf(n)+1,day:Kh(i),hour:Kh(r),minute:Kh(o)};return a&&(s.second=Kh(a)),e&&(s.weekday=e.length>3?wf.indexOf(e)+1:xf.indexOf(e)+1),s}const ep=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tp(e){const[,t,n,i,r,o,a,s,l,u,c,d]=e,h=Qf(t,r,i,n,o,a,s);let f;return f=l?Kf[l]:u?0:df(c,d),[h,new ch(f)]}const np=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ip=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,rp=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function op(e){const[,t,n,i,r,o,a,s]=e;return[Qf(t,r,i,n,o,a,s),ch.utcInstance]}function ap(e){const[,t,n,i,r,o,a,s]=e;return[Qf(t,s,n,i,r,o,a),ch.utcInstance]}const sp=Pf(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,jf),lp=Pf(/(\d{4})-?W(\d\d)(?:-?(\d))?/,jf),up=Pf(/(\d{4})-?(\d{3})/,jf),cp=Pf(Ff),dp=Mf((function(e,t){return[{year:Hf(e,t),month:Hf(e,t+1,1),day:Hf(e,t+2,1)},null,t+3]}),qf,Zf,Yf),hp=Mf(Rf,qf,Zf,Yf),fp=Mf(zf,qf,Zf,Yf),pp=Mf(qf,Zf,Yf);const mp=Mf(qf);const vp=Pf(/(\d{4})-(\d\d)-(\d\d)/,Wf),gp=Pf(Uf),yp=Mf(qf,Zf,Yf);const bp="Invalid Duration",wp={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},xp={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...wp},Sp=365.2425,Ep=30.436875,kp={years:{quarters:4,months:12,weeks:52.1775,days:Sp,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:Ep,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...wp},_p=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Cp=_p.slice(0).reverse();function Tp(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new $p(i)}function Op(e,t){let n=t.milliseconds??0;for(const i of Cp.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function Np(e,t){const n=Op(e,t)<0?-1:1;_p.reduceRight(((i,r)=>{if(zh(t[r]))return i;if(i){const o=t[i]*n,a=e[r][i],s=Math.floor(o/a);t[r]+=s*n,t[i]-=s*a*n}return r}),null),_p.reduce(((n,i)=>{if(zh(t[i]))return n;if(n){const r=t[n]%1;t[n]-=r,t[i]+=r*e[n][i]}return i}),null)}class $p{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?kp:xp;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||lh.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return $p.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new vd("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new $p({values:ff(e,$p.normalizeUnit),loc:lh.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Uh(e))return $p.fromMillis(e);if($p.isDuration(e))return e;if("object"==typeof e)return $p.fromObject(e);throw new vd(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=Df(e,[Gf,Jf]);return n?$p.fromObject(n,t):$p.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=Df(e,[Xf,mp]);return n?$p.fromObject(n,t):$p.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new vd("need to specify a reason the Duration is invalid");const n=e instanceof Th?e:new Th(e,t);if(Ch.throwOnInvalid)throw new fd(n);return new $p({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new md(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?If.create(this.loc,n).formatDurationFromString(this,e):bp}toHuman(e={}){if(!this.isValid)return bp;const t=_p.map((t=>{const n=this.values[t];return zh(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=tf(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return xm.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Op(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=$p.fromDurationLike(e),n={};for(const e of _p)(Yh(t.values,e)||Yh(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Tp(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=$p.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=hf(e(this.values[n],n));return Tp(this,{values:t},!0)}get(e){return this[$p.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Tp(this,{values:{...this.values,...ff(e,$p.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return Tp(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Np(this.matrix,e),Tp(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Tp(this,{values:function(e){const t={};for(const[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>$p.normalizeUnit(e)));const t={},n={},i=this.toObject();let r;for(const o of _p)if(e.indexOf(o)>=0){r=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;Uh(i[o])&&(e+=i[o]);const a=Math.trunc(e);t[o]=a,n[o]=(1e3*e-1e3*a)/1e3}else Uh(i[o])&&(n[o]=i[o]);for(const e in n)0!==n[e]&&(t[r]+=e===r?n[e]:n[e]/this.matrix[r][e]);return Np(this.matrix,t),Tp(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Tp(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const i of _p)if(t=this.values[i],n=e.values[i],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Ip="Invalid Interval";class Ap{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new vd("need to specify a reason the Interval is invalid");const n=e instanceof Th?e:new Th(e,t);if(Ch.throwOnInvalid)throw new hd(n);return new Ap({invalid:n})}static fromDateTimes(e,t){const n=Sm(e),i=Sm(t),r=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Ap.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Ap.invalid("missing or invalid end"):Ap.invalid("missing or invalid start")}(n,i);return r??new Ap({start:n,end:i})}static after(e,t){const n=$p.fromDurationLike(t),i=Sm(e);return Ap.fromDateTimes(i,i.plus(n))}static before(e,t){const n=$p.fromDurationLike(t),i=Sm(e);return Ap.fromDateTimes(i.minus(n),i)}static fromISO(e,t){const[n,i]=(e||"").split("/",2);if(n&&i){let e,r,o,a;try{e=xm.fromISO(n,t),r=e.isValid}catch(e){r=!1}try{o=xm.fromISO(i,t),a=o.isValid}catch(e){a=!1}if(r&&a)return Ap.fromDateTimes(e,o);if(r){const n=$p.fromISO(i,t);if(n.isValid)return Ap.after(e,n)}else if(a){const e=$p.fromISO(n,t);if(e.isValid)return Ap.before(o,e)}}return Ap.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return i=(null==t?void 0:t.useLocaleWeeks)?this.end.reconfigure({locale:n.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Ap.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Sm).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:i}=this,r=0;for(;i<this.e;){const e=t[r]||this.e,o=+e>+this.e?this.e:e;n.push(Ap.fromDateTimes(i,o)),i=o,r+=1}return n}splitBy(e){const t=$p.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:i}=this,r=1;const o=[];for(;i<this.e;){const e=this.start.plus(t.mapUnits((e=>e*r)));n=+e>+this.e?this.e:e,o.push(Ap.fromDateTimes(i,n)),i=n,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Ap.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Ap.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const i=[],r=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...r).sort(((e,t)=>e.time-t.time));for(const e of o)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&i.push(Ap.fromDateTimes(t,e.time)),t=null);return Ap.merge(i)}difference(...e){return Ap.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ip}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=xd,t={}){return this.isValid?If.create(this.s.loc.clone(t),e).formatInterval(this):Ip}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ip}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ip}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ip}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Ip}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):$p.invalid(this.invalidReason)}mapEndpoints(e){return Ap.fromDateTimes(e(this.s),e(this.e))}}class Pp{static hasDST(e=Ch.defaultZone){const t=xm.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Xd.isValidZone(e)}static normalizeZone(e){return hh(e,Ch.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||lh.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||lh.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||lh.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||lh.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||lh.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||lh.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||lh.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return lh.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return lh.create(t,null,"gregory").eras(e)}static features(){return{relative:Hh(),localeWeek:qh()}}}function Mp(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor($p.fromMillis(i).as("days"))}function Dp(e,t,n,i){let[r,o,a,s]=function(e,t,n){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Mp(e,t);return(n-n%7)/7}],["days",Mp]],r={},o=e;let a,s;for(const[l,u]of i)n.indexOf(l)>=0&&(a=l,r[l]=u(e,t),s=o.plus(r),s>t?(r[l]--,(e=o.plus(r))>t&&(s=e,r[l]--,e=o.plus(r))):e=s);return[e,r,s,a]}(e,t,n);const l=t-r,u=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(a<t&&(a=r.plus({[s]:1})),a!==r&&(o[s]=(o[s]||0)+l/(a-r)));const c=$p.fromObject(o,i);return u.length>0?$p.fromMillis(l,i).shiftTo(...u).plus(c):c}function Vp(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(-1!==e[n].search(fh.hanidec))t+=mh.indexOf(e[n]);else for(const e in ph){const[n,r]=ph[e];i>=n&&i<=r&&(t+=i-n)}}return parseInt(t,10)}return t}(e))}}const Lp=`[ ${String.fromCharCode(160)}]`,Bp=new RegExp(Lp,"g");function Fp(e){return e.replace(/\./g,"\\.?").replace(Bp,Lp)}function jp(e){return e.replace(/\./g,"").replace(Bp," ").toLowerCase()}function Rp(e,t){return null===e?null:{regex:RegExp(e.map(Fp).join("|")),deser:([n])=>e.findIndex((e=>jp(n)===jp(e)))+t}}function zp(e,t){return{regex:e,deser:([,e,t])=>df(e,t),groups:t}}function Up(e){return{regex:e,deser:([e])=>e}}const Wp={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Hp=null;function qp(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=Xp(If.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}class Zp{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=qp(If.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const n=gh(t),i=gh(t,"{2}"),r=gh(t,"{3}"),o=gh(t,"{4}"),a=gh(t,"{6}"),s=gh(t,"{1,2}"),l=gh(t,"{1,3}"),u=gh(t,"{1,6}"),c=gh(t,"{1,9}"),d=gh(t,"{2,4}"),h=gh(t,"{4,6}"),f=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return f(p);switch(p.val){case"G":return Rp(t.eras("short"),0);case"GG":return Rp(t.eras("long"),0);case"y":return Vp(u);case"yy":case"kk":return Vp(d,uf);case"yyyy":case"kkkk":return Vp(o);case"yyyyy":return Vp(h);case"yyyyyy":return Vp(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Vp(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Vp(i);case"MMM":return Rp(t.months("short",!0),1);case"MMMM":return Rp(t.months("long",!0),1);case"LLL":return Rp(t.months("short",!1),1);case"LLLL":return Rp(t.months("long",!1),1);case"o":case"S":return Vp(l);case"ooo":case"SSS":return Vp(r);case"u":return Up(c);case"uu":return Up(s);case"uuu":case"E":case"c":return Vp(n);case"a":return Rp(t.meridiems(),0);case"EEE":return Rp(t.weekdays("short",!1),1);case"EEEE":return Rp(t.weekdays("long",!1),1);case"ccc":return Rp(t.weekdays("short",!0),1);case"cccc":return Rp(t.weekdays("long",!0),1);case"Z":case"ZZ":return zp(new RegExp(`([+-]${s.source})(?::(${i.source}))?`),2);case"ZZZ":return zp(new RegExp(`([+-]${s.source})(${i.source})?`),2);case"z":return Up(/[a-z_+-/]{1,256}?/i);case" ":return Up(/[^\S\n\r]/);default:return f(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),this.disqualifyingUnit=this.units.find((e=>e.invalidReason)),!this.disqualifyingUnit){const[e,t]=[`^${(n=this.units).map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,n];this.regex=RegExp(e,"i"),this.handlers=t}var n}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const i=e.match(t);if(i){const e={};let t=1;for(const r in n)if(Yh(n,r)){const o=n[r],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(i.slice(t,t+a))),t+=a}return[i,e]}return[i,{}]}(e,this.regex,this.handlers),[i,r,o]=n?function(e){let t,n=null;zh(e.z)||(n=Xd.create(e.z)),zh(e.Z)||(n||(n=new ch(e.Z)),t=e.Z),zh(e.q)||(e.M=3*(e.q-1)+1),zh(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),zh(e.u)||(e.S=ef(e.u));const i=Object.keys(e).reduce(((t,n)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return i&&(t[i]=e[n]),t}),{});return[i,n,t]}(n):[null,null,void 0];if(Yh(n,"a")&&Yh(n,"H"))throw new pd("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:r,specificOffset:o}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Yp(e,t,n){return new Zp(e,n).explainFromTokens(t)}function Xp(e,t){if(!e)return null;const n=If.create(t,e).dtFormatter((Hp||(Hp=xm.fromMillis(1555555555555)),Hp)),i=n.formatToParts(),r=n.resolvedOptions();return i.map((t=>function(e,t,n){const{type:i,value:r}=e;if("literal"===i){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const o=t[i];let a=i;"hour"===i&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Wp[a];if("object"==typeof s&&(s=s[o]),s)return{literal:!1,val:s}}(t,e,r)))}const Gp="Invalid DateTime";function Jp(e){return new Th("unsupported zone",`the zone "${e.name}" is not supported`)}function Kp(e){return null===e.weekData&&(e.weekData=Dh(e.c)),e.weekData}function Qp(e){return null===e.localWeekData&&(e.localWeekData=Dh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function em(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new xm({...n,...t,old:n})}function tm(e,t,n){let i=e-60*t*1e3;const r=n.offset(i);if(t===r)return[i,t];i-=60*(r-t)*1e3;const o=n.offset(i);return r===o?[i,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}function nm(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function im(e,t,n){return tm(af(e),t,n)}function rm(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:i,month:r,day:Math.min(e.c.day,of(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=$p.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=af(o);let[l,u]=tm(s,n,e.zone);return 0!==a&&(l+=a,u=e.zone.offset(l)),{ts:l,o:u}}function om(e,t,n,i,r,o){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const i=t||s,r=xm.fromObject(e,{...n,zone:i,specificOffset:o});return a?r:r.setZone(s)}return xm.invalid(new Th("unparsable",`the input "${r}" can't be parsed as ${i}`))}function am(e,t,n=!0){return e.isValid?If.create(lh.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function sm(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=Jh(e.c.year,n?6:4),t?(i+="-",i+=Jh(e.c.month),i+="-",i+=Jh(e.c.day)):(i+=Jh(e.c.month),i+=Jh(e.c.day)),i}function lm(e,t,n,i,r,o){let a=Jh(e.c.hour);return t?(a+=":",a+=Jh(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=Jh(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=Jh(e.c.second),0===e.c.millisecond&&i||(a+=".",a+=Jh(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!o?a+="Z":e.o<0?(a+="-",a+=Jh(Math.trunc(-e.o/60)),a+=":",a+=Jh(Math.trunc(-e.o%60))):(a+="+",a+=Jh(Math.trunc(e.o/60)),a+=":",a+=Jh(Math.trunc(e.o%60)))),o&&(a+="["+e.zone.ianaName+"]"),a}const um={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},cm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dm={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hm=["year","month","day","hour","minute","second","millisecond"],fm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pm=["year","ordinal","hour","minute","second","millisecond"];function mm(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new md(e);return t}(e)}}function vm(e,t){const n=hh(t.zone,Ch.defaultZone);if(!n.isValid)return xm.invalid(Jp(n));const i=lh.fromObject(t);let r,o;if(zh(e.year))r=Ch.now();else{for(const t of hm)zh(e[t])&&(e[t]=um[t]);const t=jh(e)||Rh(e);if(t)return xm.invalid(t);const i=function(e){return wm[e]||(void 0===bm&&(bm=Ch.now()),wm[e]=e.offset(bm)),wm[e]}(n);[r,o]=im(e,i,n)}return new xm({ts:r,zone:n,loc:i,o})}function gm(e,t,n){const i=!!zh(n.round)||n.round,r=(e,r)=>{e=tf(e,i||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,r)},o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(o(n.unit),n.unit);for(const e of n.units){const t=o(e);if(Math.abs(t)>=1)return r(t,e)}return r(e>t?-0:0,n.units[n.units.length-1])}function ym(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let bm,wm={};class xm{constructor(e){const t=e.zone||Ch.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Th("invalid input"):null)||(t.isValid?null:Jp(t));this.ts=zh(e.ts)?Ch.now():e.ts;let i=null,r=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,r]=[e.old.c,e.old.o];else{const o=Uh(e.o)&&!e.old?e.o:t.offset(this.ts);i=nm(this.ts,o),n=Number.isNaN(i.year)?new Th("invalid input"):null,i=n?null:i,r=n?null:o}}this._zone=t,this.loc=e.loc||lh.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new xm({})}static local(){const[e,t]=ym(arguments),[n,i,r,o,a,s,l]=t;return vm({year:n,month:i,day:r,hour:o,minute:a,second:s,millisecond:l},e)}static utc(){const[e,t]=ym(arguments),[n,i,r,o,a,s,l]=t;return e.zone=ch.utcInstance,vm({year:n,month:i,day:r,hour:o,minute:a,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const n=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);var i;if(Number.isNaN(n))return xm.invalid("invalid input");const r=hh(t.zone,Ch.defaultZone);return r.isValid?new xm({ts:n,zone:r,loc:lh.fromObject(t)}):xm.invalid(Jp(r))}static fromMillis(e,t={}){if(Uh(e))return e<-864e13||e>864e13?xm.invalid("Timestamp out of range"):new xm({ts:e,zone:hh(t.zone,Ch.defaultZone),loc:lh.fromObject(t)});throw new vd(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Uh(e))return new xm({ts:1e3*e,zone:hh(t.zone,Ch.defaultZone),loc:lh.fromObject(t)});throw new vd("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=hh(t.zone,Ch.defaultZone);if(!n.isValid)return xm.invalid(Jp(n));const i=lh.fromObject(t),r=ff(e,mm),{minDaysInFirstWeek:o,startOfWeek:a}=Fh(r,i),s=Ch.now(),l=zh(t.specificOffset)?n.offset(s):t.specificOffset,u=!zh(r.ordinal),c=!zh(r.year),d=!zh(r.month)||!zh(r.day),h=c||d,f=r.weekYear||r.weekNumber;if((h||u)&&f)throw new pd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new pd("Can't mix ordinal dates with month/day");const p=f||r.weekday&&!h;let m,v,g=nm(s,l);p?(m=fm,v=cm,g=Dh(g,o,a)):u?(m=pm,v=dm,g=Lh(g)):(m=hm,v=um);let y=!1;for(const e of m){zh(r[e])?r[e]=y?v[e]:g[e]:y=!0}const b=p?function(e,t=4,n=1){const i=Wh(e.weekYear),r=Gh(e.weekNumber,1,lf(e.weekYear,t,n)),o=Gh(e.weekday,1,7);return i?r?!o&&$h("weekday",e.weekday):$h("week",e.weekNumber):$h("weekYear",e.weekYear)}(r,o,a):u?function(e){const t=Wh(e.year),n=Gh(e.ordinal,1,rf(e.year));return t?!n&&$h("ordinal",e.ordinal):$h("year",e.year)}(r):jh(r),w=b||Rh(r);if(w)return xm.invalid(w);const x=p?Vh(r,o,a):u?Bh(r):r,[S,E]=im(x,l,n),k=new xm({ts:S,zone:n,o:E,loc:i});return r.weekday&&h&&e.weekday!==k.weekday?xm.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${k.toISO()}`):k.isValid?k:xm.invalid(k.invalid)}static fromISO(e,t={}){const[n,i]=Df(e,[sp,dp],[lp,hp],[up,fp],[cp,pp]);return om(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=Df(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[ep,tp]);return om(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=Df(e,[np,op],[ip,op],[rp,ap]);return om(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(zh(e)||zh(t))throw new vd("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=n,o=lh.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[a,s,l,u]=function(e,t,n){const{result:i,zone:r,specificOffset:o,invalidReason:a}=Yp(e,t,n);return[i,r,o,a]}(o,e,t);return u?xm.invalid(u):om(a,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return xm.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=Df(e,[vp,dp],[gp,yp]);return om(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new vd("need to specify a reason the DateTime is invalid");const n=e instanceof Th?e:new Th(e,t);if(Ch.throwOnInvalid)throw new dd(n);return new xm({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Xp(e,lh.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return qp(If.parseFormat(e),lh.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){bm=void 0,wm={}}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Kp(this).weekYear:NaN}get weekNumber(){return this.isValid?Kp(this).weekNumber:NaN}get weekday(){return this.isValid?Kp(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qp(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qp(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qp(this).weekYear:NaN}get ordinal(){return this.isValid?Lh(this.c).ordinal:NaN}get monthShort(){return this.isValid?Pp.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Pp.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Pp.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Pp.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=af(this.c),i=this.zone.offset(n-e),r=this.zone.offset(n+e),o=this.zone.offset(n-i*t),a=this.zone.offset(n-r*t);if(o===a)return[this];const s=n-o*t,l=n-a*t,u=nm(s,o),c=nm(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[em(this,{ts:s}),em(this,{ts:l})]:[this]}get isInLeapYear(){return nf(this.year)}get daysInMonth(){return of(this.year,this.month)}get daysInYear(){return this.isValid?rf(this.year):NaN}get weeksInWeekYear(){return this.isValid?lf(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?lf(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=If.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(ch.instance(e),t)}toLocal(){return this.setZone(Ch.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=hh(e,Ch.defaultZone)).equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[i]=im(n,t,e)}return em(this,{ts:i,zone:e})}return xm.invalid(Jp(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return em(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ff(e,mm),{minDaysInFirstWeek:n,startOfWeek:i}=Fh(t,this.loc),r=!zh(t.weekYear)||!zh(t.weekNumber)||!zh(t.weekday),o=!zh(t.ordinal),a=!zh(t.year),s=!zh(t.month)||!zh(t.day),l=a||s,u=t.weekYear||t.weekNumber;if((l||o)&&u)throw new pd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new pd("Can't mix ordinal dates with month/day");let c;r?c=Vh({...Dh(this.c,n,i),...t},n,i):zh(t.ordinal)?(c={...this.toObject(),...t},zh(t.day)&&(c.day=Math.min(of(c.year,c.month),c.day))):c=Bh({...Lh(this.c),...t});const[d,h]=im(c,this.o,this.zone);return em(this,{ts:d,o:h})}plus(e){if(!this.isValid)return this;return em(this,rm(this,$p.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return em(this,rm(this,$p.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=$p.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?If.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Gp}toLocaleString(e=xd,t={}){return this.isValid?If.create(this.loc.clone(t),e).formatDateTime(this):Gp}toLocaleParts(e={}){return this.isValid?If.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const o="extended"===e;let a=sm(this,o);return a+="T",a+=lm(this,o,t,n,i,r),a}toISODate({format:e="extended"}={}){return this.isValid?sm(this,"extended"===e):null}toISOWeekDate(){return am(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:r=!1,format:o="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+lm(this,"extended"===o,t,e,n,r)}toRFC2822(){return am(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return am(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?sm(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),am(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Gp}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return $p.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=(s=t,Array.isArray(s)?s:[s]).map($p.normalizeUnit),o=e.valueOf()>this.valueOf(),a=Dp(o?this:e,o?e:this,r,i);var s;return o?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(xm.now(),e,t)}until(e){return this.isValid?Ap.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,n)<=i&&i<=r.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||xm.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(i=e.unit,r=void 0),gm(t,this.plus(n),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?gm(e.base||xm.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(xm.isDateTime))throw new vd("min requires all arguments be DateTimes");return Zh(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(xm.isDateTime))throw new vd("max requires all arguments be DateTimes");return Zh(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:r=null}=n;return Yp(lh.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return xm.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:i=null}=t,r=lh.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Zp(r,e)}static fromFormatParser(e,t,n={}){if(zh(e)||zh(t))throw new vd("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:r=null}=n,o=lh.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!o.equals(t.locale))throw new vd(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${t.locale}`);const{result:a,zone:s,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?xm.invalid(u):om(a,s,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return xd}static get DATE_MED(){return Sd}static get DATE_MED_WITH_WEEKDAY(){return Ed}static get DATE_FULL(){return kd}static get DATE_HUGE(){return _d}static get TIME_SIMPLE(){return Cd}static get TIME_WITH_SECONDS(){return Td}static get TIME_WITH_SHORT_OFFSET(){return Od}static get TIME_WITH_LONG_OFFSET(){return Nd}static get TIME_24_SIMPLE(){return $d}static get TIME_24_WITH_SECONDS(){return Id}static get TIME_24_WITH_SHORT_OFFSET(){return Ad}static get TIME_24_WITH_LONG_OFFSET(){return Pd}static get DATETIME_SHORT(){return Md}static get DATETIME_SHORT_WITH_SECONDS(){return Dd}static get DATETIME_MED(){return Vd}static get DATETIME_MED_WITH_SECONDS(){return Ld}static get DATETIME_MED_WITH_WEEKDAY(){return Bd}static get DATETIME_FULL(){return Fd}static get DATETIME_FULL_WITH_SECONDS(){return jd}static get DATETIME_HUGE(){return Rd}static get DATETIME_HUGE_WITH_SECONDS(){return zd}}function Sm(e){if(xm.isDateTime(e))return e;if(e&&e.valueOf&&Uh(e.valueOf()))return xm.fromJSDate(e);if(e&&"object"==typeof e)return xm.fromObject(e);throw new vd(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Em=t.defineComponent({name:"BsDatePickerHeader",props:id,emits:["change-view"],setup(e,{emit:n}){const i=e,r=t.ref(!1),o=t.ref($m(i.pickerMode)),a=t.ref(i.modelValue?xm.fromJSDate(i.modelValue):xm.now()),s=t.computed((()=>i.displayMode===Om.TIME&&!i.readonly)),l=t.computed((()=>i.displayMode===Om.YEAR&&!i.readonly)),u=t.computed((()=>(i.displayMode===Om.DATE&&[Om.DATE,Om.DATETIME].includes(i.pickerMode)||i.displayMode===Om.MONTH&&i.pickerMode===Om.MONTH)&&!i.readonly)),c=t.computed((()=>!0===r.value?"slide-top-bottom":"slide-bottom-top")),d=t.computed((()=>function(e,t,n,i){const r={"pointer-events":e.readonly?"none":void 0},o={...r,cursor:[Om.DATE,Om.DATETIME,Om.MONTH].includes(e.pickerMode)&&!t.value?"pointer":void 0},a={...r,cursor:[Om.DATE,Om.DATETIME].includes(e.pickerMode)&&!n.value?"pointer":void 0},s={...r,cursor:[Om.DATE,Om.DATETIME,Om.MONTH].includes(e.pickerMode)&&!i.value?"pointer":void 0};return{year:o,time:a,title:s}}(i,l,s,u)));return i.locale&&(a.value=a.value.setLocale(i.locale)),function(e,n,i,r){Nm(e,i,r),t.watch((()=>e.pickerMode),(e=>{n.value=$m(e)}))}(i,o,a,r),()=>function(e,n,i,r,o,a,s,l,u){return t.h("div",{class:{[`${Mt}datepicker-header`]:!0,[`bg-${e.color}`]:e.color}},[t.h("div",{class:[`${Mt}datepicker-subtitle`,"d-flex justify-content-between"]},[t.h("div",{class:[`${Mt}datepicker-year`,"d-inline-block",r.value?"active":""],style:i.value.year,onClick:()=>{!r.value&&["date","datetime","month"].includes(e.pickerMode)&&n("change-view",Om.YEAR)}},[[Om.MONTH,Om.YEAR,Om.TIME].includes(e.pickerMode)?"":u.value.toLocaleString({year:"numeric"})]),e.enableTime?t.h("div",{class:[`${Mt}datepicker-time`,"d-inline-block",o.value?"active":""],style:i.value.time,onClick:()=>{o.value||n("change-view",Om.TIME)}},u.value.toLocaleString(xm.TIME_SIMPLE)):t.createCommentVNode(" v-if-time ")]),t.h("div",{class:[`${Mt}datepicker-title`,a.value?"active":""],style:i.value.title,onClick:()=>{!a.value&&["date","datetime","month"].includes(e.pickerMode)&&n("change-view",e.pickerMode===Om.MONTH?Om.MONTH:Om.DATE)}},[Ut({name:s.value},[t.h("div",{key:u.value.toISODate()},[!0===e.landscape&&Jt("lg")?t.h("span",{innerHTML:u.value.toLocaleString(l.value).replace(", ",",<br/>")}):u.value.toLocaleString(l.value)])])])])}(i,n,d,l,s,u,c,o,a)}}),km=t.defineComponent({name:"BsDatePickerMonths",props:ad,emits:["change:calendar","update:model-value"],setup(e,{emit:n}){const i=e,{localValue:r,calendarDate:o,transitionName:a}=Lm(i),s=t.computed((()=>function(e){const t={month:"short"},n=12,i=[];let r=[];for(let o=0;o<n;o++){const n=e.set({month:o+1});r.push({value:n,text:n.toLocaleString(t)}),r.length%3==0&&(i.push(r),r=[])}r.length>0&&i.push(r);return i}(o.value))),l=t.reactive({timerId:void 0,lastExec:void 0});return()=>function(e,n,i,r,o,a,s){const l=xm.now();return t.withDirectives(t.h("div",{class:[`${Mt}datepicker-months`],onWheel:e=>{e.preventDefault(),Fm(s,Om.MONTH,a,n,300,e.deltaY||e.deltaX)}},[Ut({name:i.value},[t.h("table",{key:a.value.toFormat(Om.yearISO)},[t.h("tbody",r.value.map(((i,r)=>t.h("tr",{key:`tr-${r}`},i.map(((i,a)=>t.h("td",{key:`td-${r}-${a}`},[Rm(e,o,i,l,"month",(()=>Pm(n,i.value,e.disabled)))])))))))])])]),[[kt,{left:e=>{(e.deltaX<-10||e.deltaX>10)&&Bm(Om.MONTH,a.value,n,-1*e.deltaX)},right:e=>{(e.deltaX<-10||e.deltaX>10)&&Bm(Om.MONTH,a.value,n,-1*e.deltaX)}}]])}(i,n,a,s,r,o,l)}}),_m=t.defineComponent({name:"BsDatePickerNav",props:rd,emits:["toggle","update:model-value"],setup(e,{emit:n}){const i=e,r=t.ref(!1),o=t.ref({month:"long",year:"numeric"}),a=t.ref(i.modelValue?xm.fromJSDate(i.modelValue):xm.now()),s=t.computed((()=>!0===r.value?Om.transitionReverse:Om.transition));return i.locale&&(a.value=a.value.setLocale(i.locale)),function(e,n,i,r){Nm(e,i,r),t.watch((()=>e.displayMode),(e=>{e===Om.YEAR||e===Om.MONTH?n.value={year:"numeric"}:n.value={month:"long",year:"numeric"}}))}(i,o,a,r),()=>function(e,n,i,r,o){const a=function(e,t,n){return e.displayMode===Om.DATE?n.value.toLocaleString(t.value):e.displayMode===Om.MONTH?n.value.toLocaleString({year:"numeric"}):function(e){const t=Intl.NumberFormat(e.locale??void 0,{useGrouping:!1}),n=e.year,i=t.format(n-4),r=t.format(n+7);return`${i} - ${r}`}(n.value)}(e,r,o);return t.h("div",{class:[`${Mt}datepicker-nav`]},[Im(e.buttonColor||"dark","chevron_left",30,e.disabled,(()=>Am(e,o,n,-1))),t.h("div",{class:[`${Mt}datepicker-nav-title`,e.disabled?"disabled":""],onClick:()=>{!e.disabled&&n("toggle",e.displayMode)}},[Ut({name:i.value},[t.h("div",{key:a,class:[`${Mt}fw-bold`]},a)])]),Im(e.buttonColor||"dark","chevron_right",30,e.disabled,(()=>Am(e,o,n,1)))])}(i,n,s,o,a)}}),Cm=t.defineComponent({name:"BsDatePickerTimes",props:od,emits:["close","update:model-value"],setup(e,{emit:n}){const i=e,r=t.ref(i.modelValue?xm.fromJSDate(i.modelValue):xm.now()),o=t.ref(Om.TIME),a=t.computed((()=>function(e){const t=24,n=Intl.NumberFormat(e.locale??void 0,{minimumIntegerDigits:2}),i=[];let r=[];for(let o=0;o<t;o++){const t=e.set({hour:o});r.push({value:t,text:n.format(o)}),r.length%4==0&&(i.push(r),r=[])}r.length>0&&i.push(r);return i}(r.value))),s=t.computed((()=>function(e){const t=60,n=Intl.NumberFormat(e.locale??void 0,{minimumIntegerDigits:2}),i=[];let r=[];for(let o=0;o<t;o++)if(0===o||o%5==0){const t=e.set({minute:o});r.push({value:t,text:n.format(o)}),r.length%3==0&&(i.push(r),r=[])}r.length>0&&i.push(r);return i}(r.value))),l=t.computed((()=>function(e){const t=60,n=Intl.NumberFormat(e.locale??void 0,{minimumIntegerDigits:2}),i=[];let r=[];for(let o=0;o<t;o++)if(0===o||o%5==0){const t=e.set({second:o});r.push({value:t,text:n.format(o)}),r.length%3==0&&(i.push(r),r=[])}r.length>0&&i.push(r);return i}(r.value)));return i.locale&&(r.value=r.value.setLocale(i.locale)),Nm(i,r),()=>function(e,n,i,r,o,a,s){return t.h("div",{class:[`${Mt}datepicker-times`]},[e.backButton?t.h("div",{class:[`${Mt}datepicker-toolbar`]},[Im("dark","arrow_back",24,!1,(()=>{a.value===Om.TIME?n("close"):a.value=Om.TIME}))]):void 0,Ut({name:"fade",mode:"out-in"},[a.value===Om.TIME?zm(e,n,a,s):void 0,a.value===Om.HOUR?Um(e,n,[`${Mt}picker-hours`],i,a,s,"hour"):void 0,a.value===Om.MINUTE?Um(e,n,[`${Mt}picker-minutes`],r,a,s,"minute"):void 0,a.value===Om.SECOND?Um(e,n,[`${Mt}picker-seconds`],o,a,s,"second"):void 0])])}(i,n,a,s,l,o,r)}}),Tm=t.defineComponent({name:"BsDatePickerYears",props:ad,emits:["change:calendar","update:model-value"],setup(e,{emit:n}){const i=e,{localValue:r,calendarDate:o,transitionName:a}=Lm(i),s=t.computed((()=>function(e){const t=e.year-4,n=e.year+7,i=[];let r=[];for(let o=t;o<=n;o++){const t=e.set({year:o});r.push({value:t,text:t.toLocaleString({year:"numeric"})}),r.length%3==0&&(i.push(r),r=[])}r.length>0&&i.push(r);return i}(o.value))),l=t.reactive({timerId:void 0,lastExec:void 0});return()=>function(e,n,i,r,o,a,s){const l=xm.now();return t.withDirectives(t.h("div",{class:[`${Mt}datepicker-years`],onWheel:e=>{e.preventDefault(),Fm(s,Om.YEAR,a,n,300,e.deltaY||e.deltaX)}},[Ut({name:i.value},[t.h("table",{key:a.value.toISODate()},[t.h("tbody",r.value.map(((i,r)=>t.h("tr",{key:`tr-${r}`},i.map(((i,a)=>t.h("td",{key:`td-${r}-${a}`},[Rm(e,o,i,l,"year",(()=>Pm(n,i.value,e.disabled)))])))))))])])]),[[kt,{left:e=>{(e.deltaX<-10||e.deltaX>10)&&Bm(Om.YEAR,a.value,n,-1*e.deltaX)},right:e=>{(e.deltaX<-10||e.deltaX>10)&&Bm(Om.YEAR,a.value,n,-1*e.deltaX)}}]])}(i,n,a,s,r,o,l)}}),Om={viewModes:["datetime","date","month","year","time"],defaultLocale:"en-US",yearISO:"yyyy",yearMonthISO:"yyyy-MM",DATE:"date",DATETIME:"datetime",MONTH:"month",YEAR:"year",TIME:"time",HOUR:"hour",MINUTE:"minute",SECOND:"second",transition:"tab-transition",transitionReverse:"tab-transition-reverse"};function Nm(e,n,i,r){t.watch((()=>e.modelValue),((t,r)=>{i&&(i.value=t&&r&&t<r||!1),t&&(n.value=xm.fromJSDate(t),e.locale&&(n.value=n.value.setLocale(e.locale)))})),t.watch((()=>e.locale),(e=>{e&&(n.value=n.value.setLocale(e)),e&&r&&(r.value=r.value.setLocale(e))}))}function $m(e){return e===Om.YEAR?{year:"numeric"}:e===Om.MONTH?{month:"long",year:"numeric"}:e===Om.TIME?xm.DATE_SHORT:{weekday:"long",month:"short",day:"numeric"}}function Im(e,n,i,r,o){return t.h(rs,{color:e,icon:n,iconSize:i,mode:"icon",readonly:r,flat:!0,onClick:e=>{ft(e),null==o||o.call(void 0,e)}})}function Am(e,t,n,i){e.disabled||(e.displayMode===Om.YEAR?t.value=Dm(t.value,i>0?12:i<0?-12:0):e.displayMode===Om.MONTH?t.value=Dm(t.value,i):t.value=Mm(t.value,i),Pm(n,t.value))}function Pm(e,t,n){n||e("update:model-value",t.toJSDate())}function Mm(e,t){return 0!==t?e.plus({months:t}):e}function Dm(e,t){return 0!==t?e.plus({years:t}):e}function Vm(e,t,n,i,r){if(!r){const o=function(e,t,n){return 0!==n?e.plus({[`${t}`]:n}):e}(t,n,i);Pm(e,o,r)}}function Lm(e){const n=t.ref(!1),i=t.ref(e.modelValue?xm.fromJSDate(e.modelValue):xm.now()),r=t.ref(e.calendarDate?xm.fromJSDate(e.calendarDate):xm.now()),o=t.computed((()=>!0===n.value?Om.transitionReverse:Om.transition));return e.locale&&(i.value=i.value.setLocale(e.locale)),e.locale&&(r.value=r.value.setLocale(e.locale)),Nm(e,i,void 0,r),t.watch((()=>e.calendarDate),((t,i)=>{n.value=t&&i&&t<i||!1,t&&(r.value=xm.fromJSDate(t),e.locale&&(r.value=r.value.setLocale(e.locale)))})),{reverse:n,localValue:i,calendarDate:r,transitionName:o}}function Bm(e,t,n,i){let r;const o=i>0?1:i<0?-1:0;e===Om.DATE&&0!==o?r=Mm(t,o):e===Om.MONTH&&0!==o?r=Dm(t,o):e===Om.YEAR&&0!==o&&(r=Dm(t,12*o)),r&&n("change:calendar",r.toJSDate())}function Fm(e,t,n,i,r,o){(!e.lastExec||Date.now()-e.lastExec>r)&&(clearTimeout(e.timerId),e.lastExec=Date.now(),e.timerId=vt.defer(Bm,r,t,n.value,i,o))}function jm(e,n,i,r,o){const a=n.value.hasSame(i.value,"day"),s=r.hasSame(i.value,"day")&&!a;return t.h(rs,{size:"sm",mode:"icon",readonly:e.disabled,color:r.hasSame(i.value,"day")||a?e.selectedColor:"dark",class:s?`${Mt}btn-today`:void 0,flat:!r.hasSame(i.value,"day")&&!a,outlined:s,onClick:o},{default:()=>t.toDisplayString(i.text)})}function Rm(e,n,i,r,o,a){const s=n.value.hasSame(i.value,o),l=r.hasSame(i.value,o)&&!s;return t.h(rs,{readonly:e.disabled,class:l?`${Mt}btn-today`:void 0,color:r.hasSame(i.value,o)||s?e.selectedColor:"dark",flat:!r.hasSame(i.value,o)&&!s,outlined:l,pill:!1,rounded:!0,onClick:e=>{ft(e),a()}},{default:()=>t.toDisplayString(i.text)})}function zm(e,n,i,r){return t.h("table",{class:[`${Mt}picker-times`,e.backButton?"":"mt-0"]},[t.h("colgroup",[t.h("col"),t.h("col",{class:[`${Mt}picker-times-sep`]}),t.h("col"),t.h("col",{class:[`${Mt}picker-times-sep`]}),t.h("col")]),t.h("tbody",[t.h("tr",[t.h("td",[Im("dark","arrow_drop_up",32,e.disabled,(()=>Vm(n,r.value,"hours",1,e.disabled)))]),t.h("td"," "),t.h("td",[Im("dark","arrow_drop_up",32,e.disabled,(()=>Vm(n,r.value,"minutes",1,e.disabled)))]),t.h("td"," "),t.h("td",[Im("dark","arrow_drop_up",32,e.disabled,(()=>Vm(n,r.value,"seconds",1,e.disabled)))])]),t.h("tr",[t.h("td",[Wm(r.value,"HH",e.disabled,(()=>{e.disabled||(i.value=Om.HOUR)}))]),t.h("td",{class:[`${Mt}picker-times-sep`]},":"),t.h("td",[Wm(r.value,"mm",e.disabled,(()=>{e.disabled||(i.value=Om.MINUTE)}))]),t.h("td",{class:[`${Mt}picker-times-sep`]},":"),t.h("td",[Wm(r.value,"ss",e.disabled,(()=>{e.disabled||(i.value=Om.SECOND)}))])]),t.h("tr",[t.h("td",[Im("dark","arrow_drop_down",32,e.disabled,(()=>Vm(n,r.value,"hours",-1,e.disabled)))]),t.h("td"," "),t.h("td",[Im("dark","arrow_drop_down",32,e.disabled,(()=>Vm(n,r.value,"minutes",-1,e.disabled)))]),t.h("td"," "),t.h("td",[Im("dark","arrow_drop_down",32,e.disabled,(()=>Vm(n,r.value,"seconds",-1,e.disabled)))])])])])}function Um(e,n,i,r,o,a,s){return t.h("table",{class:i},[t.h("tbody",r.value.map(((i,r)=>t.h("tr",{key:`tr-${r}`},i.map(((i,l)=>t.h("td",{key:`td-${r}-${l}`},[Rm(e,a,i,a.value,s,(()=>{Pm(n,i.value),o.value=Om.TIME}))])))))))])}function Wm(e,n,i,r){return t.h(rs,{readonly:i,color:"dark",flat:!0,pill:!1,rounded:!0,onClick:e=>{ft(e),r()}},{default:()=>t.toDisplayString(e.toFormat(n))})}function Hm(e){if(e)if(vt.isString(e))try{return xm.fromISO(e)}catch(t){try{return xm.fromSQL(e)}catch(e){return xm.now().set({millisecond:0})}}else{if(vt.isNumber(e))return xm.fromSeconds(e);if(e instanceof Date)return xm.fromJSDate(e)}return xm.now().set({millisecond:0})}function qm(e,n,i,r,o,a,s,l){const u=e,c=s.value.toJSDate();return t.h("div",{class:{[`${Mt}datepicker`]:!0,[`${Mt}landscape`]:!0===u.landscape&&Jt("md")&&!u.fullWidth,"d-inline-flex":!0===u.landscape&&Jt("md")&&!u.fullWidth,"d-flex":!0===u.fullWidth},style:{width:!u.landscape&&!u.fullWidth||!0===u.landscape&&!Jt("md")&&!u.fullWidth?vt.cssUnit(u.width):void 0}},[t.h("div",{class:{[`${Mt}datepicker-inner`]:!0,"d-flex":!0===u.landscape&&Jt("md")}},[!0===u.headerPanel?t.h(Em,{color:e.headerColor,enableTime:i.value,displayMode:o.value,pickerMode:r.value,landscape:e.landscape,locale:a.value,modelValue:c,"onChange-view":e=>{o.value=e}}):void 0,t.h("div",{class:{[`${Mt}datepicker-body`]:!0,[`bg-${u.surfaceColor}`]:u.surfaceColor,"d-flex align-items-center":r.value===Om.TIME},style:{width:u.landscape&&Jt("md")&&!u.fullWidth?vt.cssUnit(u.width):void 0}},[Ut({name:"fade"},[o.value!==Om.TIME?t.h(_m,{displayMode:o.value,locale:a.value,modelValue:l.value,onToggle:e=>{o.value=function(e,t){if("time"===e)return"time";let n=Om.viewModes.filter((e=>"datetime"!==e&&"time"!==e));"month"===e?n=n.filter((e=>"date"!==e)):"year"===e?n=n.filter((e=>"date"!==e&&"month"!==e)):"datetime"===e&&n.push("time");const i=n.indexOf(t)+1;return i>=n.length?n[0]:n[i]}(r.value,e)},"onUpdate:model-value":e=>{l.value=e}}):void 0]),Ut({name:"fade",mode:"out-in"},[o.value===Om.DATE?t.h(ud,{locale:a.value,modelValue:c,disabled:e.readonly,calendarDate:l.value,selectedColor:e.headerColor,"onUpdate:model-value":e=>{Zm(n,r.value,e)},"onChange:calendar":e=>{l.value=e}}):void 0,o.value===Om.MONTH?t.h(km,{locale:a.value,modelValue:c,disabled:e.readonly,calendarDate:l.value,selectedColor:e.headerColor,"onUpdate:model-value":e=>{l.value=e,Zm(n,r.value,e),[Om.DATE,Om.DATETIME].includes(r.value)&&(o.value=Om.DATE)},"onChange:calendar":e=>{l.value=e}}):void 0,o.value===Om.YEAR?t.h(Tm,{locale:a.value,modelValue:c,disabled:e.readonly,calendarDate:l.value,selectedColor:e.headerColor,"onUpdate:model-value":e=>{Zm(n,r.value,e),[Om.DATE,Om.DATETIME,Om.MONTH].includes(r.value)&&(o.value=Om.MONTH)},"onChange:calendar":e=>{l.value=e}}):void 0,o.value===Om.TIME?t.h(Cm,{locale:a.value,modelValue:c,disabled:e.readonly,selectedColor:e.headerColor,backButton:r.value!==Om.TIME,onClose:()=>{o.value=Om.DATE},"onUpdate:model-value":e=>{l.value=e,Zm(n,r.value,e),r.value===Om.DATETIME&&(o.value=Om.TIME)}}):void 0])])])])}function Zm(e,t,n){t===Om.YEAR?e("update:model-value",n.getFullYear().toString(10)):t===Om.MONTH?e("update:model-value",xm.fromJSDate(n).toFormat("yyyy-MM")):t===Om.DATE?e("update:model-value",xm.fromJSDate(n).toISODate()):t===Om.TIME?e("update:model-value",xm.fromJSDate(n).toISOTime({suppressMilliseconds:!0})):e("update:model-value",xm.fromJSDate(n).toISO({suppressMilliseconds:!0}))}const Ym=t.defineComponent({name:"BsDatePicker",props:sd,emits:["update:model-value"],setup(e,{emit:n}){const i=e,r=t.ref(i.locale||(Dt?Om.defaultLocale:window.navigator.language)),o=t.ref(Hm(i.modelValue).setLocale(r.value)),a=t.ref(o.value.toJSDate()),s=t.ref(i.viewMode||i.mode||Om.DATE),l=t.computed((()=>i.viewMode||i.mode||Om.DATE)),u=t.computed((()=>[Om.DATETIME,Om.TIME].includes(l.value))),c=()=>{s.value===Om.DATETIME&&(s.value=Om.DATE)};return c(),t.watch((()=>i.viewMode||i.mode),(e=>{e&&(s.value=e),c()})),t.watch((()=>i.modelValue),(e=>{o.value=Hm(e).setLocale(r.value),l.value!==Om.YEAR&&(a.value=o.value.toJSDate())})),t.watch((()=>i.locale),(e=>{e&&(r.value=e,o.value=o.value.setLocale(e))})),()=>qm(e,n,u,l,s,r,o,a)}});function Xm(e){for(let t=e;t;t=Object.getPrototypeOf(t)){if("Object"===t.constructor.name)return;const n=Object.getOwnPropertyNames(t);for(let i=0;i<n.length;i++){const r=n[i];Object.getOwnPropertyDescriptor(t,r).get||"function"==typeof t[r]&&"constructor"!==r&&Object.defineProperty(e,r,{value:e[r].bind(e),enumerable:!1,configurable:!0,writable:!0})}}}var Gm,Jm,Km,Qm,ev,tv,nv,iv,rv,ov,av,sv,lv,uv,cv,dv,hv,fv,pv,mv,vv,gv,yv,bv,wv,xv,Sv,Ev,kv,_v,Cv,Tv,Ov,Nv,$v,Iv,Av,Pv,Mv,Dv,Vv,Lv,Bv,Fv,jv,Rv,zv,Uv,Wv,Hv,qv,Zv,Yv,Xv,Gv,Jv,Kv,Qv,eg,tg,ng,ig,rg,og,ag,sg,lg,ug,cg,dg,hg,fg,pg,mg,vg,gg,yg,bg,wg,xg,Sg,Eg,kg,_g,Cg,Tg,Og,Ng,$g,Ig,Ag,Pg,Mg,Dg,Vg,Lg,Bg,Fg,jg,Rg,zg,Ug,Wg,Hg,qg,Zg,Yg,Xg,Gg,Jg,Kg,Qg,ey,ty,ny,iy,ry,oy,ay,sy,ly,uy,cy,dy,hy,fy;function py(){if(Jm)return Gm;Jm=1;var e=dr(),t=vr(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;return Gm=function(r,o){if(e(r))return!1;var a=typeof r;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=r&&!t(r))||(i.test(r)||!n.test(r)||null!=o&&r in Object(o))}}function my(){if(Qm)return Km;return Qm=1,Km=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function vy(){if(tv)return ev;tv=1;var e=pr(),t=my();return ev=function(n){if(!t(n))return!1;var i=e(n);return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i}}function gy(){if(iv)return nv;iv=1;var e=lr()["__core-js_shared__"];return nv=e}function yy(){if(ov)return rv;ov=1;var e,t=gy(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return rv=function(e){return!!n&&n in e}}function by(){if(sv)return av;sv=1;var e=Function.prototype.toString;return av=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function wy(){if(uv)return lv;uv=1;var e=vy(),t=yy(),n=my(),i=by(),r=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return lv=function(o){return!(!n(o)||t(o))&&(e(o)?u:r).test(i(o))}}function xy(){if(dv)return cv;return dv=1,cv=function(e,t){return null==e?void 0:e[t]}}function Sy(){if(fv)return hv;fv=1;var e=wy(),t=xy();return hv=function(n,i){var r=t(n,i);return e(r)?r:void 0}}function Ey(){if(mv)return pv;mv=1;var e=Sy()(Object,"create");return pv=e}function ky(){if(gv)return vv;gv=1;var e=Ey();return vv=function(){this.__data__=e?e(null):{},this.size=0}}function _y(){if(bv)return yv;return bv=1,yv=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function Cy(){if(xv)return wv;xv=1;var e=Ey(),t=Object.prototype.hasOwnProperty;return wv=function(n){var i=this.__data__;if(e){var r=i[n];return"__lodash_hash_undefined__"===r?void 0:r}return t.call(i,n)?i[n]:void 0}}function Ty(){if(Ev)return Sv;Ev=1;var e=Ey(),t=Object.prototype.hasOwnProperty;return Sv=function(n){var i=this.__data__;return e?void 0!==i[n]:t.call(i,n)}}function Oy(){if(_v)return kv;_v=1;var e=Ey();return kv=function(t,n){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function Ny(){if(Tv)return Cv;Tv=1;var e=ky(),t=_y(),n=Cy(),i=Ty(),r=Oy();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Cv=o}function $y(){if(Nv)return Ov;return Nv=1,Ov=function(){this.__data__=[],this.size=0}}function Iy(){if(Iv)return $v;return Iv=1,$v=function(e,t){return e===t||e!=e&&t!=t}}function Ay(){if(Pv)return Av;Pv=1;var e=Iy();return Av=function(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}}function Py(){if(Dv)return Mv;Dv=1;var e=Ay(),t=Array.prototype.splice;return Mv=function(n){var i=this.__data__,r=e(i,n);return!(r<0)&&(r==i.length-1?i.pop():t.call(i,r,1),--this.size,!0)}}function My(){if(Lv)return Vv;Lv=1;var e=Ay();return Vv=function(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}}function Dy(){if(Fv)return Bv;Fv=1;var e=Ay();return Bv=function(t){return e(this.__data__,t)>-1}}function Vy(){if(Rv)return jv;Rv=1;var e=Ay();return jv=function(t,n){var i=this.__data__,r=e(i,t);return r<0?(++this.size,i.push([t,n])):i[r][1]=n,this}}function Ly(){if(Uv)return zv;Uv=1;var e=$y(),t=Py(),n=My(),i=Dy(),r=Vy();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,zv=o}function By(){if(Hv)return Wv;Hv=1;var e=Sy()(lr(),"Map");return Wv=e}function Fy(){if(Zv)return qv;Zv=1;var e=Ny(),t=Ly(),n=By();return qv=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function jy(){if(Xv)return Yv;return Xv=1,Yv=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function Ry(){if(Jv)return Gv;Jv=1;var e=jy();return Gv=function(t,n){var i=t.__data__;return e(n)?i["string"==typeof n?"string":"hash"]:i.map}}function zy(){if(Qv)return Kv;Qv=1;var e=Ry();return Kv=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function Uy(){if(tg)return eg;tg=1;var e=Ry();return eg=function(t){return e(this,t).get(t)}}function Wy(){if(ig)return ng;ig=1;var e=Ry();return ng=function(t){return e(this,t).has(t)}}function Hy(){if(og)return rg;og=1;var e=Ry();return rg=function(t,n){var i=e(this,t),r=i.size;return i.set(t,n),this.size+=i.size==r?0:1,this}}function qy(){if(sg)return ag;sg=1;var e=Fy(),t=zy(),n=Uy(),i=Wy(),r=Hy();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,ag=o}function Zy(){if(ug)return lg;ug=1;var e=qy();function t(n,i){if("function"!=typeof n||null!=i&&"function"!=typeof i)throw new TypeError("Expected a function");var r=function(){var e=arguments,t=i?i.apply(this,e):e[0],o=r.cache;if(o.has(t))return o.get(t);var a=n.apply(this,e);return r.cache=o.set(t,a)||o,a};return r.cache=new(t.Cache||e),r}return t.Cache=e,lg=t}function Yy(){if(dg)return cg;dg=1;var e=Zy();return cg=function(t){var n=e(t,(function(e){return 500===i.size&&i.clear(),e})),i=n.cache;return n}}function Xy(){if(fg)return hg;fg=1;var e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=Yy()((function(n){var i=[];return 46===n.charCodeAt(0)&&i.push(""),n.replace(e,(function(e,n,r,o){i.push(r?o.replace(t,"$1"):n||e)})),i}));return hg=n}function Gy(){if(mg)return pg;mg=1;var e=dr(),t=py(),n=Xy(),i=yr();return pg=function(r,o){return e(r)?r:t(r,o)?[r]:n(i(r))}}function Jy(){if(gg)return vg;gg=1;var e=vr();return vg=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function Ky(){if(bg)return yg;bg=1;var e=Gy(),t=Jy();return yg=function(n,i){for(var r=0,o=(i=e(i,n)).length;null!=n&&r<o;)n=n[t(i[r++])];return r&&r==o?n:void 0}}function Qy(){if(xg)return wg;xg=1;var e=Ly();return wg=function(){this.__data__=new e,this.size=0}}function eb(){if(Eg)return Sg;return Eg=1,Sg=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function tb(){if(_g)return kg;return _g=1,kg=function(e){return this.__data__.get(e)}}function nb(){if(Tg)return Cg;return Tg=1,Cg=function(e){return this.__data__.has(e)}}function ib(){if(Ng)return Og;Ng=1;var e=Ly(),t=By(),n=qy();return Og=function(i,r){var o=this.__data__;if(o instanceof e){var a=o.__data__;if(!t||a.length<199)return a.push([i,r]),this.size=++o.size,this;o=this.__data__=new n(a)}return o.set(i,r),this.size=o.size,this}}function rb(){if(Ig)return $g;Ig=1;var e=Ly(),t=Qy(),n=eb(),i=tb(),r=nb(),o=ib();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=r,a.prototype.set=o,$g=a}function ob(){if(Pg)return Ag;Pg=1;return Ag=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function ab(){if(Dg)return Mg;return Dg=1,Mg=function(e){return this.__data__.has(e)}}function sb(){if(Lg)return Vg;Lg=1;var e=qy(),t=ob(),n=ab();function i(t){var n=-1,i=null==t?0:t.length;for(this.__data__=new e;++n<i;)this.add(t[n])}return i.prototype.add=i.prototype.push=t,i.prototype.has=n,Vg=i}function lb(){if(Fg)return Bg;return Fg=1,Bg=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}}function ub(){if(Rg)return jg;return Rg=1,jg=function(e,t){return e.has(t)}}function cb(){if(Ug)return zg;Ug=1;var e=sb(),t=lb(),n=ub();return zg=function(i,r,o,a,s,l){var u=1&o,c=i.length,d=r.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(i),f=l.get(r);if(h&&f)return h==r&&f==i;var p=-1,m=!0,v=2&o?new e:void 0;for(l.set(i,r),l.set(r,i);++p<c;){var g=i[p],y=r[p];if(a)var b=u?a(y,g,p,r,i,l):a(g,y,p,i,r,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!t(r,(function(e,t){if(!n(v,t)&&(g===e||s(g,e,o,a,l)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,o,a,l)){m=!1;break}}return l.delete(i),l.delete(r),m}}function db(){if(Hg)return Wg;Hg=1;var e=lr().Uint8Array;return Wg=e}function hb(){if(Zg)return qg;return Zg=1,qg=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}}function fb(){if(Xg)return Yg;return Xg=1,Yg=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function pb(){if(Jg)return Gg;Jg=1;var e=ur(),t=db(),n=Iy(),i=cb(),r=hb(),o=fb(),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return Gg=function(e,a,l,u,c,d,h){switch(l){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var f=r;case"[object Set]":var p=1&u;if(f||(f=o),e.size!=a.size&&!p)return!1;var m=h.get(e);if(m)return m==a;u|=2,h.set(e,a);var v=i(f(e),f(a),u,c,d,h);return h.delete(e),v;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function mb(){if(Qg)return Kg;return Qg=1,Kg=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}}function vb(){if(ty)return ey;ty=1;var e=mb(),t=dr();return ey=function(n,i,r){var o=i(n);return t(n)?o:e(o,r(n))}}function gb(){if(iy)return ny;return iy=1,ny=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}}function yb(){if(oy)return ry;return oy=1,ry=function(){return[]}}function bb(){if(sy)return ay;sy=1;var e=gb(),t=yb(),n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;return ay=i?function(t){return null==t?[]:(t=Object(t),e(i(t),(function(e){return n.call(t,e)})))}:t}function wb(){if(uy)return ly;return uy=1,ly=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}}function xb(){if(dy)return cy;dy=1;var e=pr(),t=mr();return cy=function(n){return t(n)&&"[object Arguments]"==e(n)}}function Sb(){if(fy)return hy;fy=1;var e=xb(),t=mr(),n=Object.prototype,i=n.hasOwnProperty,r=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&i.call(e,"callee")&&!r.call(e,"callee")};return hy=o}var Eb,kb,_b,Cb,Tb,Ob,Nb,$b,Ib,Ab,Pb,Mb={exports:{}};function Db(){if(kb)return Eb;return kb=1,Eb=function(){return!1}}function Vb(){return _b||(_b=1,e=Mb,t=Mb.exports,n=lr(),i=Db(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i,e.exports=s),Mb.exports;var e,t,n,i,r,o,a,s}function Lb(){if(Tb)return Cb;Tb=1;var e=/^(?:0|[1-9]\d*)$/;return Cb=function(t,n){var i=typeof t;return!!(n=n??9007199254740991)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<n}}function Bb(){if(Nb)return Ob;Nb=1;return Ob=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Fb(){if(Ib)return $b;Ib=1;var e=pr(),t=Bb(),n=mr(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,$b=function(r){return n(r)&&t(r.length)&&!!i[e(r)]}}function jb(){if(Pb)return Ab;return Pb=1,Ab=function(e){return function(t){return e(t)}}}var Rb,zb,Ub,Wb,Hb,qb,Zb,Yb,Xb,Gb,Jb,Kb,Qb,ew,tw,nw,iw,rw,ow,aw,sw,lw,uw,cw,dw,hw,fw,pw,mw,vw,gw,yw,bw,ww,xw,Sw,Ew,kw,_w,Cw,Tw,Ow,Nw,$w,Iw,Aw,Pw,Mw,Dw,Vw,Lw,Bw,Fw,jw,Rw,zw,Uw,Ww,Hw,qw,Zw,Yw,Xw,Gw,Jw,Kw,Qw,ex,tx,nx,ix,rx,ox,ax,sx,lx,ux,cx,dx,hx,fx,px,mx,vx,gx,yx,bx,wx={exports:{}};function xx(){return Rb||(Rb=1,e=wx,t=wx.exports,n=sr(),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}(),e.exports=a),wx.exports;var e,t,n,i,r,o,a}function Sx(){if(Ub)return zb;Ub=1;var e=Fb(),t=jb(),n=xx(),i=n&&n.isTypedArray,r=i?t(i):e;return zb=r}function Ex(){if(Hb)return Wb;Hb=1;var e=wb(),t=Sb(),n=dr(),i=Vb(),r=Lb(),o=Sx(),a=Object.prototype.hasOwnProperty;return Wb=function(s,l){var u=n(s),c=!u&&t(s),d=!u&&!c&&i(s),h=!u&&!c&&!d&&o(s),f=u||c||d||h,p=f?e(s.length,String):[],m=p.length;for(var v in s)!l&&!a.call(s,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||r(v,m))||p.push(v);return p}}function kx(){if(Zb)return qb;Zb=1;var e=Object.prototype;return qb=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function _x(){if(Xb)return Yb;return Xb=1,Yb=function(e,t){return function(n){return e(t(n))}}}function Cx(){if(Jb)return Gb;Jb=1;var e=_x()(Object.keys,Object);return Gb=e}function Tx(){if(Qb)return Kb;Qb=1;var e=kx(),t=Cx(),n=Object.prototype.hasOwnProperty;return Kb=function(i){if(!e(i))return t(i);var r=[];for(var o in Object(i))n.call(i,o)&&"constructor"!=o&&r.push(o);return r}}function Ox(){if(tw)return ew;tw=1;var e=vy(),t=Bb();return ew=function(n){return null!=n&&t(n.length)&&!e(n)}}function Nx(){if(iw)return nw;iw=1;var e=Ex(),t=Tx(),n=Ox();return nw=function(i){return n(i)?e(i):t(i)}}function $x(){if(ow)return rw;ow=1;var e=vb(),t=bb(),n=Nx();return rw=function(i){return e(i,n,t)}}function Ix(){if(sw)return aw;sw=1;var e=$x(),t=Object.prototype.hasOwnProperty;return aw=function(n,i,r,o,a,s){var l=1&r,u=e(n),c=u.length;if(c!=e(i).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in i:t.call(i,h)))return!1}var f=s.get(n),p=s.get(i);if(f&&p)return f==i&&p==n;var m=!0;s.set(n,i),s.set(i,n);for(var v=l;++d<c;){var g=n[h=u[d]],y=i[h];if(o)var b=l?o(y,g,h,i,n,s):o(g,y,h,n,i,s);if(!(void 0===b?g===y||a(g,y,r,o,s):b)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var w=n.constructor,x=i.constructor;w==x||!("constructor"in n)||!("constructor"in i)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(n),s.delete(i),m}}function Ax(){if(uw)return lw;uw=1;var e=Sy()(lr(),"DataView");return lw=e}function Px(){if(dw)return cw;dw=1;var e=Sy()(lr(),"Promise");return cw=e}function Mx(){if(fw)return hw;fw=1;var e=Sy()(lr(),"Set");return hw=e}function Dx(){if(mw)return pw;mw=1;var e=Sy()(lr(),"WeakMap");return pw=e}function Vx(){if(gw)return vw;gw=1;var e=Ax(),t=By(),n=Px(),i=Mx(),r=Dx(),o=pr(),a=by(),s="[object Map]",l="[object Promise]",u="[object Set]",c="[object WeakMap]",d="[object DataView]",h=a(e),f=a(t),p=a(n),m=a(i),v=a(r),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=s||n&&g(n.resolve())!=l||i&&g(new i)!=u||r&&g(new r)!=c)&&(g=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,i=n?a(n):"";if(i)switch(i){case h:return d;case f:return s;case p:return l;case m:return u;case v:return c}return t}),vw=g}function Lx(){if(bw)return yw;bw=1;var e=rb(),t=cb(),n=pb(),i=Ix(),r=Vx(),o=dr(),a=Vb(),s=Sx(),l="[object Arguments]",u="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return yw=function(h,f,p,m,v,g){var y=o(h),b=o(f),w=y?u:r(h),x=b?u:r(f),S=(w=w==l?c:w)==c,E=(x=x==l?c:x)==c,k=w==x;if(k&&a(h)){if(!a(f))return!1;y=!0,S=!1}if(k&&!S)return g||(g=new e),y||s(h)?t(h,f,p,m,v,g):n(h,f,w,p,m,v,g);if(!(1&p)){var _=S&&d.call(h,"__wrapped__"),C=E&&d.call(f,"__wrapped__");if(_||C){var T=_?h.value():h,O=C?f.value():f;return g||(g=new e),v(T,O,p,m,g)}}return!!k&&(g||(g=new e),i(h,f,p,m,v,g))}}function Bx(){if(xw)return ww;xw=1;var e=Lx(),t=mr();return ww=function n(i,r,o,a,s){return i===r||(null==i||null==r||!t(i)&&!t(r)?i!=i&&r!=r:e(i,r,o,a,n,s))},ww}function Fx(){if(Ew)return Sw;Ew=1;var e=rb(),t=Bx();return Sw=function(n,i,r,o){var a=r.length,s=a,l=!o;if(null==n)return!s;for(n=Object(n);a--;){var u=r[a];if(l&&u[2]?u[1]!==n[u[0]]:!(u[0]in n))return!1}for(;++a<s;){var c=(u=r[a])[0],d=n[c],h=u[1];if(l&&u[2]){if(void 0===d&&!(c in n))return!1}else{var f=new e;if(o)var p=o(d,h,c,n,i,f);if(!(void 0===p?t(h,d,3,o,f):p))return!1}}return!0}}function jx(){if(_w)return kw;_w=1;var e=my();return kw=function(t){return t==t&&!e(t)}}function Rx(){if(Tw)return Cw;Tw=1;var e=jx(),t=Nx();return Cw=function(n){for(var i=t(n),r=i.length;r--;){var o=i[r],a=n[o];i[r]=[o,a,e(a)]}return i}}function zx(){if(Nw)return Ow;return Nw=1,Ow=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function Ux(){if(Iw)return $w;Iw=1;var e=Fx(),t=Rx(),n=zx();return $w=function(i){var r=t(i);return 1==r.length&&r[0][2]?n(r[0][0],r[0][1]):function(t){return t===i||e(t,i,r)}}}function Wx(){if(Pw)return Aw;Pw=1;var e=Ky();return Aw=function(t,n,i){var r=null==t?void 0:e(t,n);return void 0===r?i:r}}function Hx(){if(Dw)return Mw;return Dw=1,Mw=function(e,t){return null!=e&&t in Object(e)}}function qx(){if(Lw)return Vw;Lw=1;var e=Gy(),t=Sb(),n=dr(),i=Lb(),r=Bb(),o=Jy();return Vw=function(a,s,l){for(var u=-1,c=(s=e(s,a)).length,d=!1;++u<c;){var h=o(s[u]);if(!(d=null!=a&&l(a,h)))break;a=a[h]}return d||++u!=c?d:!!(c=null==a?0:a.length)&&r(c)&&i(h,c)&&(n(a)||t(a))}}function Zx(){if(Fw)return Bw;Fw=1;var e=Hx(),t=qx();return Bw=function(n,i){return null!=n&&t(n,i,e)}}function Yx(){if(Rw)return jw;Rw=1;var e=Bx(),t=Wx(),n=Zx(),i=py(),r=jx(),o=zx(),a=Jy();return jw=function(s,l){return i(s)&&r(l)?o(a(s),l):function(i){var r=t(i,s);return void 0===r&&r===l?n(i,s):e(l,r,3)}}}function Xx(){if(Uw)return zw;return Uw=1,zw=function(e){return e}}function Gx(){if(Hw)return Ww;return Hw=1,Ww=function(e){return function(t){return null==t?void 0:t[e]}}}function Jx(){if(Zw)return qw;Zw=1;var e=Ky();return qw=function(t){return function(n){return e(n,t)}}}function Kx(){if(Xw)return Yw;Xw=1;var e=Gx(),t=Jx(),n=py(),i=Jy();return Yw=function(r){return n(r)?e(i(r)):t(r)}}function Qx(){if(Jw)return Gw;Jw=1;var e=Ux(),t=Yx(),n=Xx(),i=dr(),r=Kx();return Gw=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?i(o)?t(o[0],o[1]):e(o):r(o)}}function eS(){if(Qw)return Kw;return Qw=1,Kw=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}}function tS(){if(tx)return ex;tx=1;var e=eS()();return ex=e}function nS(){if(ix)return nx;ix=1;var e=tS(),t=Nx();return nx=function(n,i){return n&&e(n,i,t)}}function iS(){if(ox)return rx;ox=1;var e=Ox();return rx=function(t,n){return function(i,r){if(null==i)return i;if(!e(i))return t(i,r);for(var o=i.length,a=n?o:-1,s=Object(i);(n?a--:++a<o)&&!1!==r(s[a],a,s););return i}}}function rS(){if(sx)return ax;sx=1;var e=nS(),t=iS()(e);return ax=t}function oS(){if(ux)return lx;ux=1;var e=rS(),t=Ox();return lx=function(n,i){var r=-1,o=t(n)?Array(n.length):[];return e(n,(function(e,t,n){o[++r]=i(e,t,n)})),o}}function aS(){if(dx)return cx;return dx=1,cx=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}}function sS(){if(fx)return hx;fx=1;var e=vr();return hx=function(t,n){if(t!==n){var i=void 0!==t,r=null===t,o=t==t,a=e(t),s=void 0!==n,l=null===n,u=n==n,c=e(n);if(!l&&!c&&!a&&t>n||a&&s&&u&&!l&&!c||r&&s&&u||!i&&u||!o)return 1;if(!r&&!a&&!c&&t<n||c&&i&&o&&!r&&!a||l&&i&&o||!s&&o||!u)return-1}return 0}}function lS(){if(mx)return px;mx=1;var e=sS();return px=function(t,n,i){for(var r=-1,o=t.criteria,a=n.criteria,s=o.length,l=i.length;++r<s;){var u=e(o[r],a[r]);if(u)return r>=l?u:u*("desc"==i[r]?-1:1)}return t.index-n.index}}function uS(){if(gx)return vx;gx=1;var e=cr(),t=Ky(),n=Qx(),i=oS(),r=aS(),o=jb(),a=lS(),s=Xx(),l=dr();return vx=function(u,c,d){c=c.length?e(c,(function(e){return l(e)?function(n){return t(n,1===e.length?e[0]:e)}:e})):[s];var h=-1;c=e(c,o(n));var f=i(u,(function(t,n,i){return{criteria:e(c,(function(e){return e(t)})),index:++h,value:t}}));return r(f,(function(e,t){return a(e,t,d)}))}}function cS(){if(bx)return yx;bx=1;var e=uS(),t=dr();return yx=function(n,i,r,o){return null==n?[]:(t(i)||(i=null==i?[]:[i]),t(r=o?void 0:r)||(r=null==r?[]:[r]),e(n,i,r))}}const dS=ar(cS()),hS="Can not assign primitive type to the dataset.",fS="Unable to send request to remote server if REST proxy is not defined.",pS="Server returns empty data.",mS="Unable to parse data coming from server.";class vS{constructor(e={}){i(this,"_eventMap"),i(this,"_config"),i(this,"_filters"),i(this,"_filteredItems"),i(this,"_items"),i(this,"_proxy"),i(this,"_state"),i(this,"storeState");const n={idProperty:void 0,dataProperty:void 0,totalProperty:void 0,filterLogic:"AND",filters:[],sortOptions:[],...e};if(n.pageSize=n.pageSize&&vt.isNumber(n.pageSize)?n.pageSize:-1,this._config=n,this._filteredItems=[],this._items=[],vt.isEmpty(n.filters))this._filters=[];else{const e=this.createFilters(n.filters);this._filters=e,this._config.filters=e}this._eventMap=new Map,this._eventMap.set("loaded",[]),this._eventMap.set("error",[]),this._state=t.reactive({loading:!1,updating:!1,deleting:!1,hasError:!1,currentPage:1,length:0,totalCount:0}),this.storeState=t.readonly(this._state),Xm(this)}static isModel(e){return e instanceof yS}static isCandidateForFilterOption(e){return Object.keys(e).every((e=>["property","value","operator","type","logic","expression"].includes(e)))}static isCandidateForSortOption(e){return Object.keys(e).every((e=>["property","direction"].includes(e)))}get $_class(){return Object.getPrototypeOf(this).constructor.name}destroy(){this.clear(),this._eventMap.clear(),this._filters=[],this._filteredItems=[],delete this._config}clear(){if(vt.isArray(this._items)&&this._items.length>0)for(const e of this._items)vS.isModel(e)&&e.destroy();this._items=[],this._state.totalCount=0,this._state.length=0,this.resetState()}clearData(){this.clear()}get loading(){return this._state.loading}get updating(){return this._state.updating}get deleting(){return this._state.deleting}get hasError(){return this._state.hasError}get adapterInstance(){var e;return null==(e=this._proxy)?void 0:e.adapterInstance}get proxy(){return this._proxy}get restUrl(){return this._config.restProxy??this._config.restUrl}set restUrl(e){this._config.restProxy=e}get currentPage(){return this._state.currentPage}get pageSize(){return this._config.pageSize}set pageSize(e){this._config.pageSize=e}get length(){return this._state.length}get totalCount(){return this._state.totalCount}get totalPages(){return this.pageSize>0?Math.ceil(this.totalCount/this.pageSize):1}get defaultFilters(){return vt.isArray(this._config.filters)?this._config.filters:[]}set defaultFilters(e){let t=vt.isEmpty(this._config.filters)?[]:[].concat(...this._config.filters);this._config.filters=Array.isArray(e)?e:vt.isObject(e)&&vS.isCandidateForFilterOption(e)?[e]:[],t=this._config.filters.length>0?t.concat(...this._config.filters):t;const n=this.filters.filter((e=>{let n=!1;for(const i of t)if(e.property===i.property){n=!0;break}return!n}));this.setFilters(n,!0)}get filters(){return this._filters}set filters(e){this._filters=this.createFilters(e),this._filteredItems=[]}addListener(e,t){let n=this._eventMap.get(e);n?n.push(t):n=[t],this._eventMap.set(e,n)}onError(e){this.addListener("error",e)}onLoaded(e){this.addListener("loaded",e)}addFilter(e,t,n,i,r){const o={property:e,value:t,operator:vt.isEmpty(n)?"eq":n.toLowerCase()};return i&&(o.type=i),r&&(o.logic=r),this.filters.push(o),this._filteredItems=[],this}setFilters(e,t=!1){return Array.isArray(e)?this.filters=t?e.concat(this.defaultFilters):e:vt.isObject(e)&&vS.isCandidateForFilterOption(e)?this.filters=t?[e].concat(this.defaultFilters):[e]:this.filters=t?this.defaultFilters:[],this}setFilterLogic(e){if(vt.isString(e)&&""!==e.trim()){const t=e.trim().toUpperCase();"AND"!==t&&"OR"!==t||(this._config.filterLogic=t)}return this}get sorters(){return this._config.sortOptions}set sorters(e){this._config.sortOptions=this.createSorters(e)}resetState(){this._state.loading=!1,this._state.updating=!1,this._state.deleting=!1,this._state.hasError=!1}find(e,t,n=0){return this._items.find(((i,r)=>i.get(e)===t&&r>=n))}findBy(e){return this._items.find(e)}findIndex(e,t,n=0){return this._items.findIndex(((i,r)=>i.get(e)===t&&r>=n))}localFilter(){return this.filters.length>0?this._items.filter((e=>{const t=[];for(const n of this.filters){const i=vt.getObjectValueByPath(e,n.property),r=n.operator.toLowerCase();"gt"===r?t.push(i>n.value):"gte"===r?t.push(i>=n.value):"lt"===r?t.push(i<n.value):"lte"===r?t.push(i<=n.value):"neq"===r?t.push(i!==n.value):"contains"===r||"fts"===n.operator?t.push(String(i).toLowerCase().includes(String(n.value).toLowerCase())):"startswith"===r||"startwith"===n.operator?t.push(String(i).toLowerCase().startsWith(String(n.value).toLowerCase())):"endswith"===r||"endwith"===n.operator?t.push(String(i).toLowerCase().endsWith(String(n.value).toLowerCase())):"notin"===r&&Array.isArray(n.value)?t.push(!n.value.includes(i)):"in"===r&&Array.isArray(n.value)?t.push(n.value.includes(i)):t.push(i===n.value)}return"OR"===this._config.filterLogic?t.some((e=>!0===e)):t.every((e=>!0===e))})):this._items}localSort(){const e=[],t=[];for(const n of this.sorters)e.push(n.property||n.field),t.push(n.direction.toLowerCase());return e.length>0&&t.length>0?dS(this._items,e,t):this._items}isEmpty(){return 0===this.length}page(e){return this._state.currentPage=e,this}previousPage(){return this.currentPage>1?this.page(this.currentPage-1):this.page(this.currentPage)}nextPage(){return this.currentPage<this.totalPages?this.page(this.currentPage+1):this.page(this.currentPage)}isCandidateForModel(e){return vt.isObject(e)&&!vt.isEmpty(this._config.idProperty)&&Object.hasOwn(e,this._config.idProperty)}remove(e){if(Array.isArray(e))for(const t of e)this.remove(t);else{if(!this.isCandidateForModel(e)&&!vS.isModel(e))throw Error("Item must be instance of BsModel.");{const t=this._config.idProperty,n=this.findIndex(t,e.get(t));n>-1&&this.removeAt(n)}}}removeAt(e,t=1){if(e<0)throw Error("Parameter 'index' is out of bound.");if(t<1)throw Error("Parameter 'count' must be greater than '0'.");const n=this._items.length,i=this._state.totalCount,r=t+1;this._state.deleting=!0;for(let t=0;t<r;t++){const n=this._items[e+t];vS.isModel(n)&&n.destroy(),this._items[e+t]=null}this._items.splice(e,t);const o=this._items.length;this._state.totalCount=i<=n?o:i-t,this._state.length=o,this._state.deleting=!1}setPageSize(e){return this.pageSize=e,this}setSorters(e){return this.sorters=e,this}createFilters(e){var t,n;const i=[];if(Array.isArray(e)){for(const n of e)if(vt.isObject(n)&&vS.isCandidateForFilterOption(n)){const e={...n,operator:(null==(t=n.operator)?void 0:t.toLowerCase())||"eq"};i.push(e)}}else if(vt.isObject(e)&&vS.isCandidateForFilterOption(e)){const t={...e,operator:(null==(n=e.operator)?void 0:n.toLowerCase())||"eq"};i.push(t)}return i}createSorters(e,t="asc",n=!1){const i=[],r=e=>({property:e.property??e.field,direction:e.direction&&!vt.isEmpty(e.direction)?e.direction.toLowerCase():t.toLowerCase()});if(Array.isArray(e))for(const n of e)vt.isObject(n)&&vS.isCandidateForSortOption(n)?i.push(r(n)):vt.isString(n)&&!vt.isEmpty(n)&&i.push({property:n,direction:t.toLowerCase()});else vt.isObject(e)&&vS.isCandidateForSortOption(e)?i.push(r(e)):vt.isString(e)&&!vt.isEmpty(e)&&i.push({property:e,direction:t.toLowerCase()});return n&&(this._config.sortOptions=i),i}createModel(e){const t={};if(this.restUrl&&(vt.isEmpty(this.restUrl.delete)||(t.delete=this.restUrl.delete),vt.isEmpty(this.restUrl.update)||(t.update=this.restUrl.update),vt.isEmpty(this.restUrl.save)||(t.save=this.restUrl.save)),vt.isEmptyObject(t))return new yS(e,this.adapterInstance,this._config.idProperty,this._config.dataProperty);{const n={schema:e,proxy:t};return vt.isEmptyObject(this._config.csrfConfig)||(n.csrfConfig=this._config.csrfConfig),new yS(n,this.adapterInstance,this._config.idProperty,this._config.dataProperty)}}queryParams(){const e={logic:this._config.filterLogic};this.currentPage>0&&(e.page=this.currentPage),this.pageSize>0&&(e.limit=this.pageSize);let t=this.filters;if(!vt.isEmpty(this._config.filters)){const e=this._config.filters.filter((e=>{let t=!1;for(const n of this.filters)if(e.property===n.property){t=!0;break}return!t}));e.length>0&&(t=t.concat(e))}return t.length>0&&(e.filters=t),vt.isEmpty(this.sorters)||(e.sorts=this.sorters),e}_append(e,t=!0,n=!1){this.isCandidateForModel(e)?(this._items.push(this.createModel(e)),n||(this._state.totalCount++,this._state.length++)):t&&!vt.isPrimitive(e)?(vt.isObject(e)?this._items.push(this.createModel(e).seal()):this._items.push(Object.seal(e)),n||(this._state.totalCount++,this._state.length++)):console.error(hS)}_assignData(e,t=!1){if(!Array.isArray(e)||!vt.isObject(e))throw this._state.loading=!1,this._state.hasError=!0,Error("The input 'source' must be an Object or an Array.");this._state.loading=!0;const n=Array.isArray(e)?e:[e];t?this._items=n:(this._items=[],n.forEach((e=>{this._append(e,!0,!0)}))),this._state.length=this._items.length,this._state.totalCount=this._items.length}_checkBeforeLoading(){return!this._state.loading&&(this._state.loading=!0,!0)}_onLoadingFailure(e){this._state.loading=!1,this._state.hasError=!0,this._fireEvent("error",e),gS.warnResponseError(e)}_onLoadingSuccess(){this._state.loading=!1,this._state.hasError=!1,this._fireEvent("loaded",this.dataItems)}_fireEvent(e,t){const n=this._eventMap.get(e);if(n)for(let e=0;e<n.length;e++)n[e](t)}}class gS{constructor(e,t={}){i(this,"_adapter"),i(this,"_httpMethods"),this._adapter=e??en()??ct,this._httpMethods=t}static checkAxios(e){if(!e)throw Error('Parameter "appConfig" must be an "AxiosInstance" or "Vue AppConfig".');if("globalProperties"in e&&e.globalProperties&&!e.globalProperties.$http&&!e.globalProperties.$axios)throw Error("Vue Application doesn't have AxiosPlugin installed. Please define it some where in the application before using RestProxyAdapter.");if("get"in e&&!vt.isFunction(e.get)&&"post"in e&&!vt.isFunction(e.post))throw Error("Axios is not defined. Please define it in the constructor before using RestProxyAdapter.")}static checkRestUrl(e){if(vt.isEmptyObject(e))throw new URIError("REST URL is not defined yet.")}static warnResponseError(e){e.response?console.warn("Request failed with status code: ",e.response.status):e.request?console.warn(e.request):console.warn(e.message?e.message:e)}static get defaultHttpMethods(){return{browse:"get",fetch:"get",save:"post",update:"post",delete:"delete"}}get adapterInstance(){if(this._adapter)return this._adapter;throw Error("Vue Application doesn't have AxiosPlugin installed. Please define it some where in the application before using RestProxyAdapter.")}request(e,t,n,i){return gS.checkAxios(this._adapter),new Promise(((r,o)=>{if(!vt.isEmpty(e)&&!vt.isEmpty(e.url))if(vt.isFunction(t)&&t())this.adapterInstance(e).then((e=>{vt.isFunction(n)&&n(e),r(e)})).catch((e=>{vt.isFunction(i)&&i(e),o(e)}));else{const e="Client is busy handling previous request.";console.warn(e),o(new Error(e))}else o(new Error("Not enough information to send request to remote service."))}))}requestMethods(){return{...gS.defaultHttpMethods,...this._httpMethods}}}class yS{constructor(e,n,r="id",o="data"){if(i(this,"_idProperty"),i(this,"_dataProperty"),i(this,"_csrfConfig"),i(this,"_data"),i(this,"_proxy"),i(this,"_restUrl"),i(this,"_schema"),i(this,"_state"),i(this,"state"),this._restUrl={},this._idProperty=r,this._dataProperty=o,this._state=t.reactive({loading:!1,updating:!1,deleting:!1,hasError:!1}),this._schema=new Map,this._data=t.reactive(new Map),this.state=t.readonly(this._state),Object.hasOwn(e,"schema")&&Object.hasOwn(e,"proxy")&&!vt.isEmptyObject(e.schema)&&!vt.isEmptyObject(e.proxy)){const t={};for(const[n,i]of Object.entries(e.proxy))vt.isObject(i)&&(t[n]=i.method),this._restUrl[n]=vt.isObject(i)?i.url:i;this._proxy=new gS(n,t),this._initSchema(e.schema),vt.isEmptyObject(e.csrfConfig)||(this._csrfConfig=Object.freeze(e.csrfConfig))}else this._proxy=new gS(n),this._initSchema(e);Xm(this)}_initSchema(e){Object.keys(e).forEach((t=>{this._schema.set(t,null),this._data.set(t,e[t])}));for(const e of this._schema.keys())Object.defineProperty(this,e,{get(){return this._data.get(e)},set(t){this._data.set(e,t)}})}get $_class(){return Object.getPrototypeOf(this).constructor.name}get csrfConfig(){return this._csrfConfig}get proxy(){return this._proxy}get restUrl(){return this._restUrl}set restUrl(e){this._restUrl=e}get loading(){return this._state.loading}get updating(){return this._state.updating}get deleting(){return this._state.deleting}get hasError(){return this._state.hasError}destroy(){this._schema.clear(),this._data.clear()}assignValue(e,t){this._data.has(e)?this.set(e,t):console.error("The given field does not exists in this {1}.".replace("{1}",this.$_class))}assignValues(e){vt.isObject(e)?Object.keys(e).forEach((t=>{this._schema.has(t)&&this.set(t,e[t])})):console.error("The given values can not be assigned to {1}.".replace("{1}",this.$_class))}delete(){if(!this.proxy)throw Error(fS);gS.checkRestUrl(this.restUrl);let e={};const t=this.restUrl.delete??"",n=this.proxy.requestMethods(),i=this.get(this.idProperty);return"delete"===n.delete.toLowerCase()?e={url:t.replace("{id}",i),method:n.delete}:this._updateRequestConfig(e,i,t,"delete"),this._requestWithToken(e,this._checkBeforeDelete,this._onDeleteSuccess,this._onDeleteFailure,"-delete")}fetch(e){if(!this.proxy)throw Error(fS);gS.checkRestUrl(this.restUrl);const t={},n=this.restUrl.fetch??"",i=e??this.get(this.idProperty);return this._updateRequestConfig(t,i,n,"fetch"),this.proxy.request(t,this._checkBeforeLoading,this._onLoadingSuccess,this._onLoadingFailure)}freeze(){return Object.freeze(this)}get(e){return this._data.get(e)}set(e,t){if(Object.isFrozen(this))throw Error("This {1} is frozen to prevent any modification.".replace("{1}",this.$_class));if(this._data.has(e)||Object.isSealed(this)){if(!this._data||!this._data.has(e))throw Error("This {1} is sealed to prevent adding new properties.".replace("{1}",this.$_class));this._data.set(e,t)}else this._data.set(e,t),Object.defineProperty(this,e,{get(){return this._data.get(e)},set(t){this._data.set(e,t)}})}getFields(){return this._schema.keys()}get idProperty(){return this._idProperty}getIdProperty(){return this._idProperty}request(e,t,n,i,r,o){gS.checkRestUrl(this.restUrl);let a=this.restUrl[e]??"";const s={},l={},u=n&&Object.hasOwn(n,this.idProperty)?n[this.idProperty]:this.get(this.idProperty);return a.includes("{id}")&&!vt.isEmpty(u)?(a=a.replace("{id}",u),n&&Object.hasOwn(n,this.idProperty)&&delete n[this.idProperty]):vt.isEmpty(u)||(l[this.idProperty]=u),s.url=a,s.method=(null==t?void 0:t.toLowerCase())??this.proxy.requestMethods()[e],vt.isEmptyObject(n)||vt.isEmptyObject(l)?vt.isEmptyObject(n)||(s.params=n):s.params={...l,...n},vt.isEmptyObject(i)||(s.data=i),this._requestWithToken(s,["post","put","patch"].includes(s.method)?this._checkBeforeSave:this._checkBeforeLoading,vt.isFunction(r)?r:["post","put","patch"].includes(s.method)?this._onSaveSuccess:this._onLoadingSuccess,vt.isFunction(o)?o:["post","put","patch"].includes(s.method)?this._onSaveFailure:this._onLoadingFailure)}reset(){for(const e of this._data.keys())this._data.set(e,this._schema.get(e))}resetState(){this._state.loading=!1,this._state.updating=!1,this._state.deleting=!1,this._state.hasError=!1}save(){if(!this.proxy)throw Error(fS);gS.checkRestUrl(this.restUrl);const e=this.restUrl.save??"",t=this.toObject(),n=this.proxy.requestMethods(),i=t[this.idProperty]||this.get(this.idProperty);(e.includes("{id}")||vt.isEmpty(i))&&Object.hasOwn(t,this.idProperty)&&delete t[this.idProperty];const r={url:e.replace("{id}",i),method:n.save,data:t};return this._requestWithToken(r,this._checkBeforeSave,this._onSaveSuccess,this._onSaveFailure,"-create")}seal(){return Object.seal(this)}toObject(){const e={};for(const t of this._schema.keys())e[t]=this.get(t);return e}update(){if(!this.proxy)throw Error(fS);gS.checkRestUrl(this.restUrl);const e=this.restUrl.update??"",t=this.toObject(),n=this.proxy.requestMethods(),i=t[this.idProperty]||this.get(this.idProperty);(e.includes("{id}")||vt.isEmpty(i))&&Object.hasOwn(t,this.idProperty)&&delete t[this.idProperty];const r={url:e.replace("{id}",i),method:n.update,data:t};return this._requestWithToken(r,this._checkBeforeSave,this._onSaveSuccess,this._onSaveFailure,"-update")}_assignFromResponse(e){const t=e.data,n=e=>{this.assignValues(e),Object.keys(e).forEach((t=>{this._schema.has(t)&&this._schema.set(t,e[t])})),vt.isFunction(this.onAfterFetch)&&this.onAfterFetch(e)};if(vt.isEmpty(t))console.warn(pS);else if(Object.hasOwn(t,this.idProperty))n(t);else if(Object.hasOwn(t,this._dataProperty)){const e=t[this._dataProperty];vt.isEmpty(e)?console.warn(pS):n(e)}else console.warn(mS)}_checkBeforeDelete(){return!this.deleting&&(this._state.deleting=!0)}_checkBeforeLoading(){return this._state.loading=!0}_checkBeforeSave(){return!this.updating&&(this._state.updating=!0)}_onDeleteFailure(e){this._state.deleting=!1,this._state.hasError=!0,gS.warnResponseError(e)}_onDeleteSuccess(){this.reset(),this._state.deleting=!1,this._state.hasError=!1}_onLoadingFailure(e){this._state.loading=!1,this._state.hasError=!0,gS.warnResponseError(e)}_onLoadingSuccess(e){this._assignFromResponse(e),this._state.loading=!1,this._state.hasError=!1}_onSaveFailure(e){this._state.updating=!1,this._state.hasError=!0,gS.warnResponseError(e)}_onSaveSuccess(e){this._assignFromResponse(e),this._state.updating=!1,this._state.hasError=!1}async _requestWithToken(e,t,n,i,r=""){var o,a,s,l,u,c;const d={"X-Requested-With":"XMLHttpRequest"};let h=(null==(o=this.csrfConfig)?void 0:o.url)??"";if(h.includes("{name}")&&!vt.isEmpty(null==(a=this.csrfConfig)?void 0:a.tokenName)&&(h=!0===(null==(s=this.csrfConfig)?void 0:s.suffix)?h.replace("{name}",this.csrfConfig.tokenName+r):h.replace("{name}",null==(l=this.csrfConfig)?void 0:l.tokenName)),""!==h){const r=await this.proxy.adapterInstance.get(h);return d["X-CSRF-TOKEN"]=r.data[null==(u=this.csrfConfig)?void 0:u.dataField]??r.data[null==(c=this.csrfConfig)?void 0:c.responseField],e.headers=d,this.proxy.request(e,t,n,i)}return this.proxy.request(e,t,n,i)}_updateRequestConfig(e,t,n,i){const r=this.proxy.requestMethods();if(n.includes("{id}")&&!vt.isEmpty(t))n=n.replace("{id}",t);else if(!vt.isEmpty(t)){const n={};n[this._idProperty]=t,e.params=n}e.url=n,e.method=r[i]}}var bS,wS,xS,SS,ES,kS;function _S(){if(wS)return bS;return wS=1,bS=function(e,t){for(var n,i=-1,r=e.length;++i<r;){var o=t(e[i]);void 0!==o&&(n=void 0===n?o:n+o)}return n}}function CS(){if(SS)return xS;SS=1;var e=_S();return xS=function(t,n){var i=null==t?0:t.length;return i?e(t,n)/i:NaN}}function TS(){if(kS)return ES;kS=1;var e=Qx(),t=CS();return ES=function(n,i){return t(n,e(i,2))}}const OS=ar(TS());var NS,$S;function IS(){if($S)return NS;$S=1;var e=Qx(),t=_S();return NS=function(n,i){return n&&n.length?t(n,e(i,2)):0}}const AS=ar(IS());class PS extends vS{constructor(e,t){var n;super({idProperty:"id",dataProperty:"data",totalProperty:"total",filterLogic:"AND",restProxy:{browse:"",delete:"",fetch:"",save:"",update:""},...e}),this._proxy=new gS(t),""!==(null==(n=this.restUrl)?void 0:n.browse)?(this._config.remoteFilter=this._config.remoteFilter??!0,this._config.remotePaging=this._config.remotePaging??!0,this._config.remoteSort=this._config.remoteSort??!0):(this._config.remoteFilter=this._config.remoteFilter??!1,this._config.remotePaging=this._config.remotePaging??!1,this._config.remoteSort=this._config.remoteSort??!1)}get dataItems(){const e=this.currentPage>0&&this.currentPage<=this.totalPages?this.currentPage-1:0,t=this.pageSize>0?e*this.pageSize:0;if(!this.remoteFilter&&this.filters.length>0){0===this._filteredItems.length&&(this._filteredItems=this.localFilter());const e=this._filteredItems.slice(t,this.pageSize>0?t+this.pageSize:void 0);return this._state.length=e.length,e}if(!this.remotePaging){const e=this._items.slice(t,this.pageSize>0?t+this.pageSize:void 0);return this._state.length=e.length,e}return this._items}get remoteFilter(){return this._config.remoteFilter}set remoteFilter(e){this._config.remoteFilter=e}get remotePaging(){return this._config.remotePaging}set remotePaging(e){this._config.remotePaging=e}get remoteSort(){return this._config.remoteSort}set remoteSort(e){this._config.remoteSort=e}aggregateAvg(e){return OS(this.remotePaging?this.dataItems:this._items,e)}aggregateCountBy(e,t){let n;return n=this.remotePaging?this.dataItems.filter((n=>t===vt.getObjectValueByPath(n,e))):this._items.filter((n=>t===vt.getObjectValueByPath(n,e))),n.length}aggregateSum(e){return AS(this.remotePaging?this.dataItems:this._items,e)}append(e){if(vt.isEmptyObject(e))return;const t=()=>{this._state.totalCount++,this._state.length=this._items.length,this._state.totalCount<this._state.length&&(this._state.totalCount=this._items.length),this._state.updating=!1};if(this._state.hasError=!1,this.isCandidateForModel(e)){this._state.updating=!0;const n=this.createModel(e);n.save().catch((e=>{this._state.hasError=!0,gS.warnResponseError(e)})).finally((()=>{this._items.push(n),t()}))}else vt.isObject(e)?(this._state.updating=!0,this._items.push(this.createModel(e).seal()),t()):console.error(hS)}assignData(e,t=!1){this._assignData(e,t),!this.remoteSort&&this.sorters.length>0&&(this._items=this.localSort()),this._onLoadingSuccess()}delete(e){var t;return this._state.deleting=!0,vS.isModel(e)&&!vt.isEmpty(null==(t=e.restUrl)?void 0:t.delete)?new Promise(((t,n)=>{e.delete().then((n=>{this.remove(e),this._state.deleting=!1,this._state.hasError=!1,t(n),this._fireEvent("loaded",this.dataItems)})).catch((e=>{this._state.deleting=!1,this._state.hasError=!0,n(e),this._fireEvent("error",e)}))})):new Promise(((t,n)=>{try{this.remove(e),this._state.deleting=!1,this._state.hasError=!1,t({success:!0,message:"Item has been removed from local store."}),this._fireEvent("loaded",this.dataItems)}catch(e){this._state.deleting=!1,this._state.hasError=!0,n(e)}}))}deletes(e){if(this._state.deleting=!0,this._state.hasError=!1,vt.isArray(e)&&e.length>0)return new Promise(((t,n)=>{var i;try{for(const t of e)vS.isModel(t)&&!vt.isEmpty(null==(i=t.restUrl)?void 0:i.delete)?t.delete().then((()=>this.remove(t))).catch((e=>{throw e})):this.remove(t);this._fireEvent("loaded",this.dataItems),t({success:!0,message:"Items have been successfully removed."})}catch(e){this._fireEvent("error",e),this._state.hasError=!0,n(e)}this._state.deleting=!1}));throw this._state.deleting=!1,Error('Parameter "items" must be an array of BsModel instances.')}fetch(e){if(!this.proxy||!this.restUrl)throw Error(fS);gS.checkRestUrl(this.restUrl);const t={},n=this.proxy.requestMethods(),i=this._config.idProperty;let r=this.restUrl.fetch??"";if(r.includes("{id}")&&!vt.isEmpty(e))r=r.replace("{id}",e.toString());else if(!vt.isEmpty(i)&&!vt.isEmpty(e)){const n={};n[i]=e,t.params=n}return t.url=r,t.method=n.fetch,this.proxy.request(t,this._checkBeforeLoading,this._assignFromResponse,this._onLoadingFailure)}load(e){if(e&&!vt.isEmpty(e))return this._state.loading=!0,new Promise((t=>{this.assignData(e,!1),this._items=this.localSort(),t(this._items)}));{if(!this.proxy||!this.restUrl)throw Error(fS);gS.checkRestUrl(this.restUrl);const e=this.proxy.requestMethods(),t={url:this.restUrl.browse??"",method:e.browse},n=this.queryParams();return vt.isEmpty(n)||(t.params=n),this.proxy.request(t,this._checkBeforeLoading,this._assignFromResponse,this._onLoadingFailure)}}query(){return this.load()}async sort(e,t="asc"){return this.createSorters(e,t,!0),this.remoteSort?(await this.load(),this._items):(this._items=this.localSort(),this._items)}_assignFromResponse(e){const t=e.data;vt.isEmpty(t)?console.warn(pS):Object.hasOwn(t,this._config.dataProperty)?(this.assignData(t[this._config.dataProperty]),this._config.totalProperty&&t[this._config.totalProperty]&&(this._state.totalCount=t[this._config.totalProperty])):console.warn(mS)}}function MS(e,t,n,i,r,o,a){if(!(n instanceof vS))throw Error("Operation not supported. 'DataSource.proxy' is not instance of AbstractStore");if(o.value=a,vt.isEmpty(a))n.setFilters([],!0),n.load().catch((t=>{e("data-error",t),console.warn(t)}));else{const o=n.createFilters([{property:t.displayField,value:a,operator:"contains"}]);n.setFilters(o,!0),n instanceof PS&&n.remoteFilter?n.load().then((()=>{e("data-filter",n.dataItems),e("update:search-text",a)})).catch((t=>{e("data-error",t),console.warn(t)})):(i.value=jS(n,r,t.valueField),e("data-filter",n.dataItems),e("update:search-text",a))}}function DS(e,n,i,r,o,a,s,l){var u;const c=null==(u=n.dataSource)?void 0:u.proxy;if(c&&a.value){const a=parseInt(n.minSearchChars,10);return t.h("label",{ref:s,class:[`${Mt}listbox-search`]},[t.withDirectives(t.h("input",{type:"text",role:"textbox",tabindex:"-1",autocomplete:"off",placeholder:n.searchLabel,"onUpdate:modelValue":t=>{(t.length>=a||vt.isEmpty(t))&&vt.defer((()=>{MS(e,i,c,r,o,l,t)}),75)}}),[[t.vModelText,l.value]])])}return t.createCommentVNode(" v-if-searchbox ")}function VS(e,n,i,r,o,a,s,l){var u;const c=null==(u=i.dataSource)?void 0:u.proxy;return t.h(gu,{color:i.color,style:a,individualState:!0},{default:()=>{var a;return 0===(null==c?void 0:c.length)?t.h(Tu,null,{default:()=>Ft(e,"empty-data-msg",{key:"emptyDataMessage"},[t.h(Iu,null,{default:()=>t.toDisplayString(i.emptyDataMessage)})])}):(null==c?void 0:c.filters.length)&&c.filters.length>0&&0===(null==(a=o.value)?void 0:a.length)?t.h(Tu,null,{default:()=>Ft(e,"not-found-msg",{key:"notFoundMessage"},[t.h(Iu,null,{default:()=>t.toDisplayString(i.notFoundMessage)})])}):function(e,n,i,r,o,a,s){return o.value.map(((l,u)=>t.h(t.Fragment,[t.h(Tu,{key:l.get("_oid"),navigable:!i.readonly&&!i.disabled,disabled:!0===i.disabled||!0===l.get(r.disableField),active:l.get("_selected"),"onUpdate:active":e=>function(e,n,i,r,o,a,s,l){l?(!0===n.multiple?r.value=r.value.concat(a):r.value=[a],e("select",a)):(r.value=r.value.filter((e=>e.get(s)!==a.get(s))),e("deselect",a));!0===n.multiple?o.value=r.value.map((e=>e.get(s))):o.value=r.value.length>0?r.value[0].get(s):void 0;i.value=i.value.map((e=>(e.set("_selected",null!=r.value.find((t=>t.get(s)===e.get(s)))),e))),t.nextTick().then((()=>{e("update:model-value",o.value),e("update:selected-value",r.value)}))}(n,i,o,a,s,l,r.valueField,e)},{default:()=>!0===i.multiple?function(e,t,n,i,r,o){const a=[];!0===t.useCheckbox&&"right"!==t.checkboxPosition&&a.push(LS(t,n,i,r));a.push(...BS(e,t,n,r,o)),!0===t.useCheckbox&&"right"===t.checkboxPosition&&a.push(LS(t,n,i,r));return a}(e,i,r,s,l,u):BS(e,i,r,l,u)}),i.itemSeparator&&u+1<o.value.length?t.h(Hn,{key:`divider-${u}`}):void 0])))}(e,n,i,r,o,s,l)}})}function LS(e,n,i,r){return t.h(Ou,{center:!0},{default:()=>t.h(Kl,{color:e.checkboxColor||"default-color",value:r.get(n.valueField),modelValue:i.value})})}function BS(e,n,i,r,o){const a=[];return!0!==n.showImage||!Object.hasOwn(r,i.imageField)&&null==r.get(i.imageField)||a.push(function(e,n,i){return t.h(Au,{imgSrc:i.get(n.imageField),circle:e.circleImage,rounded:e.roundedImage,size:e.imageSize})}(n,i,r)),a.push(function(e,n,i,r){return t.h(Nu,null,{default:()=>Ft(e,"option-item",{key:"list-tile-content"},t.h(Iu,null,{default:()=>t.toDisplayString(i.get(n.displayField))}),{item:i,index:r})})}(e,i,r,o)),a}function FS(e,t,n){return(null==n?void 0:n.dataItems.filter((n=>Array.isArray(e.value)?e.value.some((e=>e===n.get(t))):e.value===n.get(t))))||[]}function jS(e,t,n){return e.dataItems.map((i=>{const r=e.createModel(i.toObject());return r.get("_oid")||r.set("_oid",vt.uuid(!0)),r.set("_selected",null!=t.value.find((e=>e.get(n)===i.get(n)))),r}))}const RS={type:[String,Number],default:2,validator:e=>parseInt(e,10)>0},zS={type:[String,Number],default:15,validator:e=>parseInt(e,10)>0},US={type:[String,Number],default:300,validator:e=>parseInt(e,10)>0},WS={type:String,default:"No data to display."},HS={type:String,default:"Data not found."},qS={autoload:an,borderless:on,color:wn,disabled:on,readonly:on,itemSeparator:on,maxHeight:US,modelValue:{type:[String,Number,Array],default:void 0},multiple:on,searchLabel:{type:String,default:"Search..."},searchText:sn,dataSource:{type:Object,default:void 0},emptyDataMessage:WS,notFoundMessage:HS,minSearchChars:RS,minSearchLength:zS,useCheckbox:on,checkboxColor:sn,checkboxPosition:Ba,imageSize:mn,showImage:on,roundedImage:on,circleImage:on},ZS=t.defineComponent({name:"BsListbox",props:qS,emits:["select","deselect","data-bind","data-error","data-filter","update:model-value","update:search-text","update:selected-value"],setup(e,{emit:n,slots:i}){var r,o;const a=e,s={displayField:"text",valueField:"value",imageField:"image",disableField:"disabled",...null==(r=a.dataSource)?void 0:r.schema},l=parseInt(a.maxHeight,10),u=null==(o=a.dataSource)?void 0:o.proxy,c=t.shallowRef([]),d=t.ref(!1),h=t.ref(null),f=t.ref(a.searchText),p=t.ref(a.modelValue),m=t.shallowRef([]),v=t.reactive({maxHeight:l+"px"});return function(e,n,i,r,o,a,s,l,u,c,d){const h=parseInt(n.maxHeight,10),f=parseInt(n.minSearchLength,10);if(i){const t=t=>{0===t.length?o.value=[]:(a.value=FS(s,r.valueField,i),o.value=jS(i,a,r.valueField)),e("data-bind",t)};i.onLoaded(t)}t.watchEffect((()=>{u.value||(u.value=i&&i.storeState.length>=f||!vt.isEmpty(d.value)||!1),u.value&&c.value&&(l.maxHeight=h-(c.value.offsetHeight||63)+"px")})),t.watch((()=>n.searchText),(t=>{i&&(t&&t.length>=parseInt(n.minSearchChars,10)||vt.isEmpty(t))&&MS(e,r,i,o,a,d,t||"")})),t.watch((()=>n.modelValue),(e=>{s.value=e,vt.isEmpty(e)?a.value=[]:n.multiple||0!==(null==i?void 0:i.filters.length)&&(null==i?void 0:i.defaultFilters.length)!==(null==i?void 0:i.filters.length)||(a.value=FS(s,r.valueField,i)),o.value=o.value.map((e=>(e.set("_selected",null!=a.value.find((t=>t.get(r.valueField)===e.get(r.valueField)))),e)))})),t.onMounted((()=>{i&&n.autoload&&queueMicrotask((async()=>{try{0===i.storeState.length?await i.load():(a.value=FS(s,r.valueField,i),o.value=jS(i,a,r.valueField),e("data-bind",i.dataItems))}catch(t){e("data-error",t)}}))}))}(n,a,u,s,c,m,p,v,d,h,f),()=>function(e,n,i,r,o,a,s,l,u,c,d){return t.h("div",{class:[`${Mt}listbox`,i.color?`bg-${i.color}`:"",i.borderless?"":"border"]},[DS(n,i,r,o,a,l,u,d),VS(e,n,i,r,o,s,a,c)])}(i,n,a,s,c,m,v,d,h,p,f)}}),YS={install:e=>{e.component(ZS.name,ZS)}};function XS(e,n,i,r,o){return t.h("div",{class:`${Mt}action-icon`},[e?t.h(ya,{class:"icon-clear",icon:`cancel_${n}`,size:i,onClick:r}):"",t.h(ya,{class:"icon-expand",icon:`keyboard_arrow_down_${n}`,size:i,onClick:o})])}function GS(e,n,i){const r=e;if(r.chipEnabled&&r.multiple&&i.value.length>0)return t.h(t.Fragment,null,i.value.map((i=>t.h(Es,{key:Wr(i.get(n.displayField)),color:e.chipColor,disabled:e.disabled,pill:e.chipPill,outlined:e.chipOutlined},{default:()=>t.toDisplayString(i.get(n.displayField))}))));{const e=i.value.map((e=>e.get(n.displayField)));return t.h("span",{class:`${Mt}field-value`},t.toDisplayString(e.join(", ")))}}function JS(e,n,i,r){const o=e;return[vt.isEmpty(r.value)&&!vt.isEmpty(o.placeholder)?t.h("span",{class:`${Mt}field-placeholder`},t.toDisplayString(o.placeholder)):t.createCommentVNode(" v-if-placeholder "),GS(e,n,i),t.h("select",{...Zs(o),class:"d-none",tabindex:-1,"aria-hidden":!0,multiple:o.multiple,"aria-required":o.required,"aria-disabled":o.disabled},i.value.map((e=>t.h("option",{key:`item-${e.get(n.valueField)}`,value:e.get(n.valueField),selected:"selected"},t.toDisplayString(e.get(n.displayField))))))]}function KS(e,t,n,i){n||(t.value=!i,e(t.value?"open":"close"))}function QS(e,t,n){if(e)if(vt.isString(e))try{return vt.isEmpty(t)?xm.fromISO(e,{locale:n}):xm.fromFormat(e,t,{locale:n})}catch(t){try{return xm.fromSQL(e,{locale:n})}catch(e){return}}else{if(vt.isNumber(e))return xm.fromSeconds(e,{locale:n});if(e instanceof Date){const t=xm.fromJSDate(e);return vt.isEmpty(n)?t:t.setLocale(n)}}}function eE(e,n,i,r,o){return t.h("input",{...Zs(n),...Bs(n,!1),readonly:!0,role:"textbox",type:"text",value:i.value,style:{cursor:"default"},onBlur:t=>Is(e,t,r,n.disabled),onFocus:t=>As(e,t,r,n.disabled),onClick:()=>KS(e,o,n.disabled||n.readonly,o.value)})}const tE=t.defineComponent({name:"BsDateTimeField",props:ld,emits:["blur","focus","clear","close","open","update:model-value"],setup(e,{emit:n,slots:i}){var r;const o=e,a=t.ref(!1),s=t.ref(!1),l=t.ref(o.locale||(Dt?"en-US":window.navigator.language)),u=t.computed((()=>o.displayFormat||o.valueFormat)),c=t.ref(QS(o.modelValue,o.valueFormat,l.value)),d=t.ref(null==(r=c.value)?void 0:r.toFormat(u.value)),h=t.ref(null),f=t.computed((()=>o.viewMode||o.pickerMode||Om.DATE)),p=t.computed((()=>o.appendIcon||`calendar_month_${o.actionIconVariant}`)),m=Xa(o,a),v=t.computed((()=>Hs(o,d))),g=t.computed((()=>null!=i["append-inner"]||!vt.isEmpty(p.value)||v.value)),y=t.computed((()=>Ls(o,m.hasValidated.value,m.hasError.value))),b=t.computed((()=>({...qs(i,o,d,a,g.value),[`${Mt}datetime-field`]:!0})));return t.watch((()=>o.modelValue),(e=>{var t;c.value=QS(e,o.valueFormat,l.value),d.value=null==(t=c.value)?void 0:t.toFormat(u.value)})),()=>function(e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b){const w=i;return js(e,24,r,w,t.h(t.Fragment,[t.h("div",{class:o.value},[zs(e,w,eE(n,w,u,f,h),24,d.value,w.prependIcon,Ws(w.actionIconVariant,g.value,y.value,w.validationIcon,24),Us(p.value,w.actionIconVariant,24,(()=>Ps(n,l))),void 0,{ref:a,onMouseenter:()=>{w.openOnHover&&!h.value&&KS(n,h,w.disabled||w.readonly,!1)}},void 0,(()=>KS(n,h,w.disabled||w.readonly,h.value)),(()=>KS(n,h,w.disabled||w.readonly,h.value))),Ja(e,w,m.value,v.value,y.value,b.value)]),t.h(Pl,{color:null,space:w.outlined?2:1,class:i.pickerCls,placement:i.pickerPlacement,transition:i.transition||i.pickerTransition,open:h.value,trigger:a.value,onClose:()=>KS(n,h,!1,!0)},{default:()=>{var e;return t.h(Ym,{surfaceColor:i.pickerColor,headerColor:i.headerColor,headerPanel:i.headerPanel,landscape:i.landscapeMode,locale:c.value,readonly:i.readonly||i.disabled,mode:s.value,modelValue:null==(e=l.value)?void 0:e.toJSDate(),width:i.pickerWidth,"onUpdate:model-value":e=>{var t;l.value=Hm(e).setLocale(c.value),n("update:model-value",null==(t=l.value)?void 0:t.toFormat(w.valueFormat))}})}})]),(e=>Vs(w,e)))}(i,n,e,y,b,h,f,c,d,l,p,s,a,v,m.showHelpText,m.showValidationError,m.hasValidated,m.hasError,m.errorItems)}}),nE={install:e=>{e.component(Ym.name,Ym),e.component(tE.name,tE)}},iE={...Pa,...Ma,...Ta,autofocus:on,placeholder:sn,parentValue:{type:[String,Number],default:void 0},modelValue:{type:[String,Number,Array],default:void 0},dataSource:{type:Object,default:void 0},emptyDataMessage:WS,notFoundMessage:HS,minSearchChars:RS,minSearchLength:zS,minimumItemsForSearch:mn,multiple:on,listboxColor:sn,listboxMaxHeight:US,listboxMinWidth:mn,listboxSearchLabel:sn,popoverMaxHeight:mn,popoverMinWidth:mn,checkboxColor:sn,checkboxPosition:Ba,checkOptionColor:sn,checkOptionPosition:sn,chipEnabled:on,chipColor:sn,chipPill:on,chipOutlined:on,itemSeparator:on,imageSize:mn,showImage:on,roundedImage:on,circleImage:on,openOnHover:on,transition:Na},rE=t.defineComponent({name:"BsCombobox",props:iE,emits:["clear","close","open","select","deselect","data-bind","data-error","data-filter","update:model-value","update:selected-value"],setup(e,{emit:n,slots:i}){var r,o;const a=e,s={displayField:"text",valueField:"value",cascadeField:"parent",...null==(r=a.dataSource)?void 0:r.schema},l=null==(o=a.dataSource)?void 0:o.proxy,u=t.ref(Array.isArray(a.modelValue)?a.modelValue:vt.isEmpty(a.modelValue)?[]:[a.modelValue]),c=t.shallowRef([]),d=t.ref(!1),h=t.ref(!1),f=t.ref(null),p=Xa(a,d),m=t.computed((()=>Hs(a,u))),v=t.computed((()=>null!=i["append-inner"]||!vt.isEmpty(a.appendIcon)||m.value)),g=t.computed((()=>Ls(a,p.hasValidated.value,p.hasError.value))),y=t.computed((()=>({...qs(i,a,u,d,v.value),[`${Mt}combobox-field`]:!0,[`${Mt}open`]:h.value,[`${Mt}chip-enabled`]:a.multiple&&a.chipEnabled}))),b=t.ref();return t.watch((()=>a.parentValue),(e=>{b.value=window.setInterval((async()=>{!1===(null==l?void 0:l.storeState.loading)&&(await async function(e,t,n,i){if(i){let r=i.defaultFilters;if(r=r.filter((e=>e.property!==t.cascadeField)),vt.isEmpty(n))i.defaultFilters=r;else{const e=i.createFilters({property:t.cascadeField,value:n,operator:"eq"});0===r.length?i.defaultFilters=e:i.defaultFilters=e.concat(r)}i.setFilters([],!0);try{await i.load()}catch(t){e("data-error",t)}}}(n,s,e,l),window.clearInterval(b.value))}),100)})),t.watch((()=>a.modelValue),(e=>{vt.isEmpty(e)?(u.value=[],c.value=[]):(u.value=a.multiple&&Array.isArray(e)?e:[e],a.multiple||0!==(null==l?void 0:l.filters.length)&&(null==l?void 0:l.defaultFilters.length)!==(null==l?void 0:l.filters.length)||(c.value=(null==l?void 0:l.dataItems.filter((e=>u.value.some((t=>t===e.get(s.valueField))))))||[]))})),()=>function(e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g){const y=i;return t.withDirectives(js(e,24,r,y,t.h(t.Fragment,[t.h("div",{class:o.value},[zs(e,y,JS(i,a,u,l),24,y.appendIcon,y.prependIcon,Ws(y.actionIconVariant,m.value,v.value,y.validationIcon,24),XS(h.value,y.actionIconVariant,24,(()=>{l.value=[],u.value=[],n("update:model-value",y.multiple?[]:void 0),t.nextTick().then((()=>n("clear")))}),(()=>{d.value=!y.disabled,KS(n,c,y.readonly||y.disabled,c.value)})),void 0,{ref:s,onMouseenter:()=>{y.openOnHover&&!c.value&&KS(n,c,y.disabled,!1)}},{tabIndex:-1,onFocus:()=>{d.value=!y.disabled},onClick:()=>{d.value=!y.disabled,KS(n,c,y.readonly||y.disabled,c.value)}},(()=>KS(n,c,y.disabled,!0)),(()=>KS(n,c,y.disabled,!0))),Ja(e,y,f.value,p.value,v.value,g.value)]),t.h(Pl,{color:null,space:y.outlined?2:1,class:["overflow-y-hidden",`${Mt}shadow-1`],placement:"bottom",transition:i.transition,open:c.value,trigger:s.value,style:{minWidth:vt.cssUnit(Math.max((()=>{const e=y.popoverMinWidth||y.listboxMinWidth;return e?parseInt(e,10):0})(),s.value?s.value.offsetWidth:0))},onClose:()=>KS(n,c,!1,!0)},{default:()=>t.h(ZS,{autoload:vt.isEmpty(i.parentValue),borderless:!0,useCheckbox:!0,color:i.listboxColor,dataSource:i.dataSource,readonly:i.readonly,multiple:i.multiple,emptyDataMessage:i.emptyDataMessage,notFoundMessage:i.notFoundMessage,searchLabel:i.listboxSearchLabel,itemSeparator:i.itemSeparator,minSearchChars:i.minSearchChars,minSearchLength:i.minimumItemsForSearch||i.minSearchLength,maxHeight:i.popoverMaxHeight||i.listboxMaxHeight,checkboxColor:i.checkOptionColor||i.checkboxColor,checkboxPosition:i.checkOptionPosition||i.checkboxPosition,showImage:i.showImage,imageSize:i.imageSize,circleImage:i.circleImage,roundedImage:i.roundedImage,modelValue:y.multiple?l.value:l.value.length>0?l.value[0]:void 0,onDataBind:e=>{u.value=e.filter((e=>l.value.some((t=>t===e.get(a.valueField))))),n("data-bind",e)},onDataError:e=>n("data-error",e),onDataFilter:e=>n("data-filter",e),onSelect:e=>n("select",e),onDeselect:e=>n("deselect",e),"onUpdate:model-value":e=>{l.value=null==e?[]:Array.isArray(e)?e:[e],n("update:model-value",e)},"onUpdate:selected-value":e=>{u.value=e,n("update:selected-value",e),y.multiple||KS(n,c,!1,!0)}},{"option-item":n=>Ft(e,"option-item",{key:"list-tile-content"},[t.h(Iu,null,{default:()=>t.toDisplayString(n.item.get(a.displayField))})],{item:n.item,index:n.index}),"empty-data-msg":()=>Ft(e,"empty-data-msg",{key:"emptyDataMessage"},[t.h(Iu,null,{default:()=>t.toDisplayString(y.emptyDataMessage)})]),"not-found-msg":()=>Ft(e,"not-found-msg",{key:"notFoundMessage"},[t.h(Iu,null,{default:()=>t.toDisplayString(y.notFoundMessage)})])})})]),(e=>Vs(y,e))),[[gt,()=>{y.disabled||(d.value=!1)}]])}(i,n,e,g,y,s,f,u,c,h,d,m,p.showHelpText,p.showValidationError,p.hasValidated,p.hasError,p.errorItems)}}),oE={install:e=>{e.component(rE.name,rE)}};function aE(e,n,i,r,o,a,s,l,u){return Ut({name:"modal-dialog"},r.value?t.h("div",{class:[`${Mt}modal`],onClick:()=>{(i.overlayClose||i.overlayClickClose)&&Il(n.value,r,"Overlay clicked.")}},[t.h("div",{ref:a,class:o.value,style:{width:vt.cssUnit(i.width),maxWidth:vt.cssUnit(i.maxWidth)}},[!vt.isEmpty(i.title)||e.header?Rt(e,"header","modal-header",{ref:s,class:Qt(`${Mt}modal-title`,i.headerClass)},t.createTextVNode(i.title)):t.createCommentVNode(" v-if-modal-header "),t.h("div",{ref:l,class:Qt(`${Mt}modal-body`,i.bodyClass)},e.default&&e.default()),e.footer?Rt(e,"footer","modal-footer",{ref:u,class:Qt(`${Mt}modal-footer`,i.footerClass)}):t.createCommentVNode(" v-if-modal-footer ")])]):t.createCommentVNode(" BsModal "))}const sE={...$a,fullPage:on,scrollable:on,overlay:an,overlayClose:on,title:sn,width:fn,maxWidth:fn,bodyClass:hn,footerClass:hn,headerClass:hn,transition:{type:String,default:"scale",validator:e=>["slide-top","slide-bottom","slide-left","slide-right","fade","scale"].includes(e)}},lE=t.defineComponent({name:"BsModal",props:sE,emits:["close","update:open"],setup(e,{slots:n}){const i=e,r=t.shallowRef(null),o=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(null),u=t.ref(i.open),c=t.computed((()=>({[`${Mt}modal-inner`]:!0,[`${Mt}modal-fullscreen`]:i.fullPage,[`${Mt}modal-scrollable`]:i.scrollable,[`${Mt+i.transition}`]:!0})));return t.watch((()=>i.open),(e=>{e?(u.value=e,r.value&&Nl.add(r.value,i,u),t.nextTick().then((()=>function(e,t,n,i,r){if(!t.value)return;if(!e.scrollable)return void(t.value.style.maxHeight="");const o=Gt("sm")?window.innerHeight-64:window.innerHeight-128;if(i.value){let e=o;r.value&&(e-=r.value.offsetHeight),n.value&&(e-=n.value.offsetHeight),i.value.style.maxHeight=vt.cssUnit(e)}t.value.style.maxHeight=vt.cssUnit(o)}(i,o,a,s,l)))):r.value&&Nl.closePopover(r.value,u,"State changed.")})),t.onMounted((()=>{r.value=t.getCurrentInstance()})),()=>function(e,n,i,r,o,a,s,l,u){const c=i;return t.h(t.Teleport,{to:"body"},[t.h(En,{color:i.overlayColor,opacity:i.overlayOpacity,show:r.value&&c.overlay,fixed:!0,zIndex:1037}),aE(e,n,c,r,o,a,s,l,u)])}(n,r,e,u,c,o,a,s,l)}});function uE(e,n,i,r,o,a,s,l,u){var c,d,h,f,p,m,v,g,y,b;return r.showToolbar||r.showCounter?t.h("div",{class:[`${Mt}lightbox-toolbar`]},[!0===r.showCounter?t.h("div",{class:[`${Mt}counter`,"d-none","d-md-flex"]},[t.h("span",{class:[`${Mt}counter-current`]},t.toDisplayString(s.value+1)),"/",t.h("span",{class:[`${Mt}counter-all`]},t.toDisplayString((null==(c=r.items)?void 0:c.length)||0))]):"",!0===r.showToolbar?t.h(Jo):void 0,!0===r.showToolbar?t.h("div",{class:[`${Mt}toolbar-items`,"d-flex"]},[cE("download",null!=a.value&&!0===(null==(d=r.toolbar)?void 0:d.download),(()=>n("exec-download",a.value))),cE("zoom_in",null!=a.value&&!0===(null==(h=r.toolbar)?void 0:h.zoom),(()=>{u.value>=1&&u.value<4?u.value+=1:u.value>.6&&u.value<1?u.value+=.1:u.value=1,n("exec-zoomin",a.value,u.value)})),cE("zoom_out",null!=a.value&&!0===(null==(f=r.toolbar)?void 0:f.zoom),(()=>{u.value>1&&u.value<4?u.value-=1:u.value>.6&&u.value<=1?u.value-=.1:u.value=1,n("exec-zoomout",a.value,u.value)})),cE("rotate_left",null!=a.value&&!0===(null==(p=r.toolbar)?void 0:p.rotate),(()=>{l.value>-270&&l.value<361?l.value-=90:l.value=0,n("exec-rotate-left",a.value,l.value)})),cE("rotate_right",null!=a.value&&!0===(null==(m=r.toolbar)?void 0:m.rotate),(()=>{l.value>-361&&l.value<270?l.value+=90:l.value=0,n("exec-rotate-right",a.value,l.value)})),cE("info_outlined",null!=a.value&&!0===(null==(v=r.toolbar)?void 0:v.info),(()=>n("exec-info",a.value))),cE("delete_outlined",null!=a.value&&!0===(null==(g=r.toolbar)?void 0:g.delete),(()=>n("exec-delete",a.value))),a.value&&!0===(null==(y=r.toolbar)?void 0:y.menubar)?t.h(Vu,{color:"transparent",placement:"bottom-right"},{default:()=>t.h(rs,{color:"light-grey",mode:"icon",icon:"more_vert",flat:!0}),content:()=>e.menubar&&e.menubar()}):void 0,cE("close",!0===(null==(b=r.toolbar)?void 0:b.close),(()=>{Il(i.value,o,"Button close clicked.")}))]):""]):t.createCommentVNode(" v-if-toolbar ")}function cE(e,n,i){return n?t.h(rs,{color:"light-grey",mode:"icon",icon:e,flat:!0,onClick:()=>i()}):void 0}function dE(e,n,i,r,o,a,s,l,u,c){var d;return t.h("div",{class:`${Mt}lightbox-display`,style:{height:!0===i.showThumbnail?"calc(100% - "+(i.thumbnailHeight+2)+"px)":"100%"},onClick:()=>{(i.overlayClose||i.overlayClickClose)&&Il(n.value,o,"Overlay clicked.")}},[hE(e,i,a,s,l,u,c),Ut({name:c.value,mode:i.transitionMode,appear:!0},a.value?t.h("div",{key:a.value.imageSrc,class:`${Mt}lightbox-item`},[t.withDirectives(t.h("div",{class:`${Mt}lightbox-item-img`},[t.h("img",{class:i.imageClass,style:r.value,alt:a.value.title,src:a.value.imageSrc,rel:"preload",onClick:e=>e.stopPropagation()})]),[[kt,{left:()=>pE(e,i,a,s,l,u,c,!0),right:()=>fE(e,i,a,s,l,u,c,!0)}]]),!0===i.showItemTitle?t.h("div",{class:[`${Mt}lightbox-item-title`],onClick:e=>e.stopPropagation()},t.toDisplayString(null==(d=a.value)?void 0:d.title)):""]):t.createCommentVNode(" v-if-image "))])}function hE(e,n,i,r,o,a,s){var l;return n.showNavControl&&(null==(l=n.items)?void 0:l.length)?t.h("div",{class:`${Mt}lightbox-controls`},[t.h("div",{class:`${Mt}control-prev`},[t.h(rs,{color:"light-grey",mode:"icon",icon:"chevron_backward",size:"lg",flat:!0,iconSize:40,onClick:t=>{t.stopPropagation(),fE(e,n,i,r,o,a,s)}})]),t.h("div",{class:`${Mt}control-next`},[t.h(rs,{color:"light-grey",mode:"icon",icon:"chevron_forward",size:"lg",flat:!0,iconSize:40,onClick:t=>{t.stopPropagation(),pE(e,n,i,r,o,a,s)}})])]):t.createCommentVNode(" v-if-navigation ")}function fE(e,t,n,i,r,o,a,s){var l;a.value=s&&Bt()&&Gt("md")?"slide-left-right":t.transition,0===i.value?i.value=((null==(l=t.items)?void 0:l.length)??0)-1:i.value--,vE(e,t,n,i,r,o,i.value)}function pE(e,t,n,i,r,o,a,s=!1){var l;a.value=s&&Bt()&&Gt("md")?"slide-right-left":t.transition,i.value<((null==(l=t.items)?void 0:l.length)??0)-1?i.value++:i.value=0,vE(e,t,n,i,r,o,i.value)}function mE(e,n,i,r,o,a){var s;return n.showThumbnail&&(null==(s=n.items)?void 0:s.length)?t.h("div",{class:`${Mt}lightbox-thumbnail`},[t.h("div",{class:`${Mt}lightbox-thumbnail-row`},[t.h("div",{class:`${Mt}lightbox-thumbnails`},n.items.map(((s,l)=>t.h("div",{key:`item-${l}`,class:[`${Mt}thumbnail-item`,r.value===l?"active":""],onClick:()=>vE(e,n,i,r,o,a,l)},[t.h("img",{src:s.thumbnail,alt:s.title,style:{height:vt.cssUnit(n.thumbnailHeight),width:"auto"}})]))))])]):t.createCommentVNode(" v-if-thumbnail ")}function vE(e,t,n,i,r,o,a){var s;if(!(t.items&&a>-1&&a<(null==(s=t.items)?void 0:s.length)))throw Error("The given image index is out of bound.");!function(e,t){e.value=1,t.value=0}(r,o),i.value=a,n.value=t.items.length>0?t.items[a]:void 0,e("change",n.value,a)}const gE={imageClass:hn,imageStyles:{type:Object,default:void 0},items:{type:Array,default:void 0},open:on,escClose:an,overlay:an,overlayClose:on,overlayClickClose:an,overlayColor:{type:String,default:"#000"},overlayOpacity:{type:[Number,String],default:.94,validator:e=>!isNaN(parseFloat(e))},showCounter:an,showItemTitle:an,showThumbnail:an,showToolbar:an,showNavControl:an,thumbnailHeight:{type:Number,default:72,validator:e=>parseInt(e,10)>0},toolbar:{type:Object,default:()=>({download:!1,zoom:!0,rotate:!0,info:!0,delete:!1,menubar:!1,close:!0})},transition:{type:String,default:"slide-top-bottom"},transitionMode:{type:String,default:void 0,validator:e=>["out-in","in-out"].includes(e)},zIndex:{type:[String,Number],default:1990,validator:e=>!isNaN(parseInt(e,10))}},yE=t.defineComponent({name:"BsLightbox",props:gE,emits:["change","close","exec-delete","exec-download","exec-info","exec-rotate-left","exec-rotate-right","exec-zoomin","exec-zoomout","update:open"],setup(e,{emit:n,expose:i,slots:r}){const o=e,a=t.shallowRef(null),s=t.ref(o.items&&o.items.length>0?o.items[0]:void 0),l=t.ref(o.items&&o.items.length>0?0:-1),u=t.ref(0),c=t.ref(1),d=t.ref(!1),h=t.ref(o.transition),f=t.computed((()=>function(e,t,n){const i=1!==n.value&&(n.value<5||n.value>.4)?`scale(${n.value})`:"",r=[0,360,-360].includes(t.value)?"":`rotate(${t.value}deg)`;return""!==i&&""!==r?{...e.imageStyles,transform:`${i} ${r}`}:""!==i?{...e.imageStyles,transform:i}:""!==r?{...e.imageStyles,transform:r}:e.imageStyles}(o,u,c)));let p;return i({setActive:e=>vE(n,o,s,l,c,u,e),openAt:e=>{var t;if(!(o.items&&e>-1&&e<(null==(t=o.items)?void 0:t.length)))throw Error("The given image index is out of bound.");l.value=e,s.value=o.items.length>0?o.items[e]:void 0,d.value=!0,n("update:open",!0)},nextSlide:()=>{pE(n,o,s,l,c,u,h)},prevSlide:()=>{fE(n,o,s,l,c,u,h)}}),t.watch((()=>o.open),(e=>{e?(d.value=e,c.value=1,u.value=0,l.value=l.value>-1?l.value:0,s.value=o.items&&o.items.length>0?o.items[l.value]:void 0,a.value&&Nl.add(a.value,o,d)):a.value&&Nl.closePopover(a.value,d,"State changed.")})),t.onBeforeMount((()=>{var e,t=[];(null==(e=o.items)?void 0:e.length)&&o.items.forEach(((e,n)=>{t[n]=new Image,t[n].src=e.imageSrc}))})),t.onMounted((()=>{a.value=t.getCurrentInstance(),p=ht.listen(document.body,"keydown",(e=>{const t=e;t.key&&"ArrowLeft"===t.key?d.value&&fE(n,o,s,l,c,u,h):t.key&&"ArrowRight"===t.key&&d.value&&pE(n,o,s,l,c,u,h)}))})),t.onUnmounted((()=>null==p?void 0:p.remove())),()=>function(e,n,i,r,o,a,s,l,u,c,d){return t.h(t.Teleport,{to:"body"},[Ut({name:"fade"},[a.value?t.h("div",{class:[`${Mt}lightbox-wrap`,r.overlay?`${Mt}lightbox-overlay`:""],style:{"z-index":r.zIndex}},[uE(e,n,i,r,a,s,l,u,c),dE(n,i,r,o,a,s,l,c,u,d),mE(n,r,s,l,c,u)]):t.createCommentVNode(" BsLightbox ")])])}(r,n,a,o,f,d,s,l,u,c,h)}}),bE={install:e=>{e.component(lE.name,lE),e.component(yE.name,yE)}},wE=t.defineComponent({name:"BsNotificationBar",props:{timeout:{type:Number,default:void 0},pause:on},setup(e){const n=e,i=t.ref(),r=t.ref(),o=t.ref(100),a=()=>{let e;e=(r.value-Date.now())/n.timeout*100,e=Math.floor(e),o.value=e};return t.watch((()=>n.pause),(e=>{!0===e?(window.clearInterval(i.value),i.value=void 0):i.value||(r.value=Date.now()+n.timeout,i.value=window.setInterval((()=>{a()}),10))})),t.onMounted((()=>{r.value=Date.now()+n.timeout,i.value=window.setInterval((()=>{a()}),10)})),()=>t.h("div",{class:`${Mt}dialog-progressbar`,style:{width:o.value+"%"}})}}),xE=t.defineComponent({name:"BsNotificationItem",props:{message:cn,title:sn,timeout:ln,clickClose:on,closeButton:an,iconOff:on,progressBar:on,variant:cn},emits:["dismiss"],setup(e,{emit:n}){const i=e,r=t.ref();return t.onMounted((()=>{kE(n,r,i.timeout)})),()=>function(e,n,i){return t.h("div",{class:{[`${Mt}notification-dialog`]:!0,[`${Mt}dialog-${n.variant}`]:n.variant,[`${Mt}dialog-icon-off`]:!0===n.iconOff,"d-flex":!n.title&&!n.progressBar},role:"alert","aria-live":"assertive","aria-atomic":"true",onClick:()=>{!0===n.clickClose&&(EE(i),e("dismiss"))},onMouseover:()=>EE(i),onMouseout:()=>kE(e,i,n.timeout)},[n.progressBar?t.h(wE,{timeout:n.timeout,pause:!i.value}):void 0,n.closeButton?t.h("button",{class:`${Mt}btn-close`,role:"button",type:"button",onClick:()=>{EE(i),e("dismiss")}},"×"):void 0,n.title?t.h("div",{class:`${Mt}dialog-title`},t.toDisplayString(n.title)):void 0,t.h("div",{class:{[`${Mt}dialog-message`]:!0,"align-self-center flex-fill order-first":!n.title&&!n.progressBar},innerHTML:n.message})])}(n,i,r)}});function SE(e){const n=[];return e.value?(e.value.collection.forEach(((i,r)=>{const o=t.h("div",{key:r,class:[`${Mt}notification-container`,`${Mt}container-${r}`],"aria-live":"polite","aria-atomic":"true"},i.map((n=>t.h(xE,{key:n.oid,message:n.message,title:n.title,timeout:n.timeout,variant:n.variant,clickClose:n.clickClose,closeButton:n.closeButton,iconOff:n.iconOff,progressBar:n.progressBar,onDismiss:()=>{var t;return null==(t=e.value)?void 0:t.remove(n)}}))));n.push(o)})),n):n}function EE(e){clearTimeout(e.value),e.value=void 0}function kE(e,t,n){n&&n>0&&(t.value=vt.defer((()=>{EE(t),e("dismiss")}),n))}const _E=t.defineComponent({name:"BsNotification",setup(){const e=t.shallowRef();return t.onMounted((()=>{e.value=rn()})),()=>function(e){return t.h(t.Teleport,{to:"body"},[t.h("div",{class:`${Mt}notification`},SE(e))])}(e)}});class CE{constructor(){i(this,"_collection"),this._collection=t.reactive(new Map)}get collection(){return this._collection}add(e){const t=this._createOption(e),n=t.position,i=this._collection.get(n);if(i){if(t.preventDuplicates)for(const e of i)if(e.message===t.message&&e.title===t.title)return console.warn("Duplicate notification",t),null;i.push(t),this._collection.set(n,i)}else this._collection.set(n,[t]);return t}clearAll(){this._collection.clear()}close(e){this.remove(e)}_deleteIfEmpty(e,t){vt.isEmpty(t)?this._collection.delete(e):this._collection.set(e,t??[])}remove(e){const t=e.oid,n=e.position,i=this._collection.get(n),r=null==i?void 0:i.filter((e=>e.oid!==t));this._deleteIfEmpty(n,r)}removeByType(e){this._collection.forEach(((t,n)=>{const i=t.filter((t=>t.variant!==e));this._deleteIfEmpty(n,i)}))}error(e,t){return this._doAdd(e,"error",t)}info(e,t){return this._doAdd(e,"info",t)}success(e,t){return this._doAdd(e,"success",t)}warning(e,t){return this._doAdd(e,"warning",t)}_doAdd(e,t,n){const i=vt.isObject(e)?e:{message:e};return i.variant=t,i.title=n||i.title,this.add(i)}_createOption(e){const t={oid:vt.uuid(!0),clickClose:!1,closeButton:!0,iconOff:!1,progressBar:!1,preventDuplicates:!1,position:"bottom-right",variant:"default",timeout:6e3};return vt.isObject(e)&&!vt.isEmpty(e.message)?{...t,...e}:{...t,message:e.toString()}}}const TE={install:e=>{Vn(e),e.config.globalProperties.$VueMdb.notification=new CE,e.config.globalProperties.$notification=e.config.globalProperties.$VueMdb.notification,e.component(_E.name,_E)}},OE=t.defineComponent({name:"BsBreadcrumb",props:{items:{type:Array,default:void 0,required:!0},prependIcon:sn,iconSize:fn,separator:sn,sticky:on,tag:{type:String,default:"nav"}},setup(e,{slots:n}){const i=e;return()=>function(e,n){const i=e.items.length>0?e.items.length-1:0;let r;r=e.separator&&e.separator.startsWith("url")?decodeURI(e.separator).replaceAll("#","%23"):`'${e.separator}'`;return t.h(e.tag||"nav",{class:[`${Mt}breadcrumb`,e.sticky?"sticky-top":""],style:e.separator?{"--bs-breadcrumb-divider":r}:void 0,ariaLabel:"breadcrumb"},[Rt(n,"icon","breadcrumb-icon",{class:`${Mt}breadcrumb-icon`},vt.isEmpty(e.prependIcon)?void 0:t.h(ya,{icon:e.prependIcon,size:e.iconSize})),t.h("ol",{class:"breadcrumb"},e.items.map(((e,n)=>function(e,n,i){const r={location:e.location,path:e.path,pathName:e.pathName};if(n===i)return t.h("li",{class:["breadcrumb-item","active"],"aria-current":"page"},t.toDisplayString(e.label));if(vt.isFunction(e.handler))return t.h("li",{class:["breadcrumb-item",`${Mt}link`],onClick:e.handler()},t.toDisplayString(e.label));if(Ht(r)&&(e.location||e.pathName||e.path)){const n=e.location||{to:e.pathName?{name:e.pathName}:e.path};return t.h("li",{class:"breadcrumb-item"},[Wt(n,t.toDisplayString(e.label))])}return e.href?t.h("li",{class:"breadcrumb-item"},[t.h("a",{href:e.href},t.toDisplayString(e.label))]):t.h("li",{class:"breadcrumb-item"},t.toDisplayString(e.label))}(e,n,i))))])}(i,n)}});const NE={install:e=>{e.component(OE.name,OE)}};function $E(){return window.FileReader&&!!window.CanvasRenderingContext2D}function IE(){const e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!("ontouchstart"in window||navigator.msMaxTouchPoints)}function AE(e,n,i){const r=t.unref(n),o=t.unref(i);if(r&&o){r.width=o.clientWidth,r.height=o.clientHeight;const t=r.getContext("2d");if(t){PE(n);const i=r.width/e.width,o=r.height/e.height,a=Math.min(i,o),s=(r.width-e.width*a)/2,l=(r.height-e.height*a)/2;t.drawImage(e,0,0,e.width,e.height,s,l,e.width*a,e.height*a)}}}function PE(e){const n=t.unref(e);if(n){const e=n.getContext("2d");e&&(e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,n.width,n.height))}}function ME(e,t,n,i,r){n.file=t,n.name=t.name,n.size=t.size,n.type=t.type,n.lastModified=t.lastModified,$E()&&r.value&&function(e,t,n){const i=new FileReader;i.onload=r=>{const o=new Image;o.onload=n=>{AE(o,t,e)},o.src=i.result,n.image=o},i.readAsDataURL(n.file)}(i,r,n),e("change",t)}function DE(e,t,n,i,r,o,a){var s,l;ft(e);const u=(null==(s=e.target)?void 0:s.files)||(null==(l=e.dataTransfer)?void 0:l.files);if(u&&u.length){if(!function(e,t,n,i){if(t.size<=0||t.size>1024*parseFloat(e)*1024){const r=`File size "${vt.roundNumber(t.size/1048576,2)} MB" is too large and exceeds the limit of "${e} MB".`;return n("error",{size:t.size,type:t.type,name:t.name,message:r}),i&&alert(r),!1}return!0}(n.limit,u[0],t,n.alertOnError))return;if(!function(e,t,n,i){const r=t.type;if(!e.includes(r)){const o=`File type of "${r}" is not valid. The permitted types are: ${e.join(", ")}.`;return n("error",{size:t.size,type:t.type,name:t.name,message:o}),i&&alert(o),!1}return!0}(o.value,u[0],t,n.alertOnError))return;if(a.name===u[0].name&&a.size===u[0].size&&a.lastModified===u[0].lastModified)return;ME(t,u[0],a,i,r)}}function VE(e,t,n){e.clickedChange?t.value&&t.value.click():!n.file&&t.value&&t.value.click()}function LE(e){IE()&&(e.value=!1)}function BE(e){var n,i;return t.h("h4",{class:[`${Mt}link`,"text-center"]},[t.h(ya,{icon:"cloud_upload_outlined",size:e.iconSize||84}),t.h("span",{class:"d-block"},t.toDisplayString(IE()?(null==(n=e.customText)?void 0:n.dropImage)||"Drop image here":(null==(i=e.customText)?void 0:i.selectImage)||"Select image"))])}function FE(e,n,i,r,o){return t.h("div",{class:{"upload-toolbar":!0,"justify-content-between":!n.clickedChange,"justify-content-end":n.clickedChange}},[!n.clickedChange&&t.h(rs,{color:n.buttonColor||"primary",size:"sm",style:{zIndex:4},title:"Change image",onClick:e=>{!function(e,t){ft(e),t.value&&t.value.click()}(e,r)}},{default:()=>{var e;return t.toDisplayString((null==(e=n.customText)?void 0:e.changeImage)||"Change")}}),t.h(rs,{color:n.buttonColor||"primary",icon:"delete_outlined",mode:"icon",size:"sm",style:{zIndex:4},title:"Remove image",tonal:!0,onClick:()=>{!function(e,t,n,i){PE(t),i.file=null,i.image=null,i.name=null,i.size=null,i.lastModified=null,n.value&&(n.value.value="",n.value.type="",n.value.type="file"),e("clear")}(e,i,r,o)}})])}function jE(e,n,i,r,o,a,s,l){return t.h("div",{ref:i,class:"drop-image-container"},[t.h("canvas",{ref:r,class:{"image-preview":!0,"dragging-over":l.value},tabindex:0,onDrag:ft,onDragover:ft,onDragstart:ft,onDragend:ft,onDragenter:e=>{ft(e),function(e){IE()&&(e.value=!0)}(l)},onDragleave:e=>{ft(e),LE(l)},onDrop:t=>{!function(e,t,n,i,r,o,a,s){LE(s),DE(e,t,n,i,r,o,a)}(t,e,n,i,r,a,s,l)},onClick:e=>{VE(n,o,s)},onKeyup:e=>{VE(n,o,s)}}),!s.file&&BE(n),s.file&&FE(e,n,r,o,s)])}function RE(e,n,i,r,o,a,s){return t.h("div",{class:"d-none"},[t.h("input",{ref:o,id:n.id,name:n.name,type:"file",accept:a.value.join(","),capture:"environment",onChange:t=>{DE(t,e,n,i,r,a,s)}})])}function zE(e,n,i,r,o,a,s,l){return t.h("div",{class:`${Mt}image-uploader`},function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/))return!1;const e=document.createElement("input");return e.type="file",!e.disabled}()?function(e,t,n,i,r,o,a,s){return $E()?[jE(e,t,n,i,r,o,a,s),RE(e,t,n,i,r,o,a)]:[RE(e,t,n,i,r,o,a)]}(e,n,i,r,o,a,s,l):function(e){if(null==e?void 0:e.unsupportedMessage)return t.h("div",{class:"unsupported-text",innerHTML:e.unsupportedMessage});return t.h("div",{class:"unsupported-text"},t.h("h4","Your device does not support file uploading."))}(n.customText))}const UE=t.defineComponent({name:"BsImageUploader",props:{alertOnError:on,clickedChange:on,acceptTypes:cn,buttonColor:sn,iconSize:dn,name:sn,id:{type:String,default:Vt()},limit:{type:[String,Number],default:void 0,required:!0,validator:e=>!isNaN(parseFloat(e))},customText:vn},emits:["change","clear","error"],setup(e,{emit:n,expose:i}){const r=e,o=t.ref(),a=t.ref(),s=t.ref(),l=t.ref(!1),u=t.reactive({}),c=t.computed((()=>r.acceptTypes.split(",").map((e=>{const t=e.trim();return t.startsWith("*.")?"image/"+t.substring(2):t.startsWith(".")?"image/"+t.substring(1):t.startsWith("image/")?t:`image/${t}`}))));return function(e,n,i,r,o){let a;function s(){i.value&&r.value&&(r.value.height=i.value.clientHeight,r.value.width=i.value.clientWidth,o.image&&AE(o.image,r,i))}n({upload:function(t,n,i){if(vt.isEmpty(t))throw Error('Upload destination "url" must not be empty.');if(vt.isEmpty(e.name)&&vt.isEmpty(n))throw Error('The "name" attribute for the input field must not be empty.');if(o.file){const r=new FormData;if(r.append(e.name||n,o.file),i&&Object.keys(i).length)for(const e in i)r.append(e,i[e]??"");return a.post(t,r)}throw Error("There is no file to upload.")},fileBag:t.computed((()=>({file:o.file,filename:o.name,filesize:o.size,filetype:o.type})))}),t.onMounted((()=>{var e;if(a=tn(),window&&r.value){const t=window.devicePixelRatio;null==(e=r.value.getContext("2d"))||e.scale(t,t),window.addEventListener("resize",s),window.requestAnimationFrame(s)}})),t.onUnmounted((()=>{window&&window.removeEventListener("resize",s)}))}(r,i,a,s,u),()=>zE(n,r,a,s,o,c,u,l)}}),WE={install:e=>{e.component(UE.name,UE)}},HE=Object.freeze(Object.defineProperty({__proto__:null,BsAlertPlugin:fs,BsAnimationPlugin:Dn,BsAppbarPlugin:Wn,BsAvatarPlugin:us,BsBadgePlugin:vs,BsBasicCmpPlugin:Qo,BsBreadcrumbPlugin:NE,BsButtonPlugin:ss,BsCardPlugin:sa,BsCheckboxPlugin:eu,BsChipPlugin:$s,BsColorPickerPlugin:ed,BsComboboxPlugin:oE,BsContainerPlugin:jn,BsDatePickerPlugin:nE,BsDrawerPlugin:hu,BsFieldPlugin:Bl,BsIconPlugin:Sa,BsListViewPlugin:Pu,BsListboxPlugin:YS,BsMenuPlugin:Lu,BsModalPlugin:bE,BsNotificationPlugin:TE,BsPopoverPlugin:Ml,BsProgressPlugin:Gu,BsRadioPlugin:Ul,BsSwitchPlugin:au,BsTabsPlugin:mc,BsTooltipPlugin:bc,BsUploaderPlugin:WE},Symbol.toStringTag,{value:"Module"}));const qE=function(e){for(const t of e){const e=t.target.__resizeListeners||[];Array.isArray(e)&&e.length&&e.forEach((e=>{e()}))}};e.AbstractStore=vS,e.AxiosPlugin=dt,e.BsAlertPlugin=fs,e.BsAnimationPlugin=Dn,e.BsAppbarPlugin=Wn,e.BsArrayStore=class extends vS{constructor(e,t={}){super(t),Array.isArray(e)&&e.length>0&&this.assignData(e)}get dataItems(){const e=this.currentPage>0&&this.currentPage<=this.totalPages?this.currentPage-1:0,t=this.pageSize>0?e*this.pageSize:0;let n;return this.filters.length>0?(this._filteredItems=this.localFilter(),n=this._filteredItems.slice(t,this.pageSize>0?t+this.pageSize:void 0)):n=this._items.slice(t,this.pageSize>0?t+this.pageSize:void 0),this._state.length=n.length,n}aggregateAvg(e){return OS(this._items,e)}aggregateCountBy(e,t){return this._items.filter((n=>t===vt.getObjectValueByPath(n,e))).length}aggregateSum(e){return AS(this._items,e)}append(e,t=!1){vt.isEmpty(e)||(this._append(e,!1),t&&this.sorters.length>0&&(this._items=this.localSort()))}assignData(e,t=!1){this._assignData(e,t),this.sorters.length>0&&(this._items=this.localSort()),this._onLoadingSuccess()}load(e){return this._state.loading=!0,new Promise((t=>{e&&!vt.isEmpty(e)?this.assignData(e,!1):this.sorters.length>0?(this._items=this.localSort(),this._onLoadingSuccess()):this._onLoadingSuccess(),t(this._items)}))}sort(e,t="asc"){return this.createSorters(e,t,!0),this._items=this.localSort(),this._items}},e.BsAvatarPlugin=us,e.BsBadgePlugin=vs,e.BsBasicCmpPlugin=Qo,e.BsBreadcrumbPlugin=NE,e.BsButtonPlugin=ss,e.BsCardPlugin=sa,e.BsCheckboxPlugin=eu,e.BsChipPlugin=$s,e.BsColorPickerPlugin=ed,e.BsComboboxPlugin=oE,e.BsContainerPlugin=jn,e.BsDatePickerPlugin=nE,e.BsDrawerPlugin=hu,e.BsFieldPlugin=Bl,e.BsIconPlugin=Sa,e.BsListViewPlugin=Pu,e.BsListboxPlugin=YS,e.BsMenuPlugin=Lu,e.BsModalPlugin=bE,e.BsModel=yS,e.BsNotificationPlugin=TE,e.BsPopoverPlugin=Ml,e.BsProgressPlugin=Gu,e.BsRadioPlugin=Ul,e.BsStore=PS,e.BsSwitchPlugin=au,e.BsTabsPlugin=mc,e.BsTooltipPlugin=bc,e.BsUploaderPlugin=WE,e.ClickOutside=gt,e.Color=Oc,e.EventListener=ht,e.Helper=vt,e.PopupManager=Nl,e.Resize=yt,e.RestProxyAdapter=gS,e.Scroll=xt,e.StringHelper=qr,e.Touch=kt,e.createVueMdb=function(e){const n=t.createApp(e);for(const[e,t]of Object.entries(_t))n.directive(e,t);n.use(dt);for(const[e,t]of Object.entries(HE))t&&n.use(t);return n},e.spinnerSvgData=Zo,e.useAddResizeListener=function(e,t){Dt||(e.__resizeListeners||(e.__resizeListeners=[],e.__observer=new ResizeObserver(qE),e.__observer.observe(e)),e.__resizeListeners.push(t))},e.useAxiosPlugin=en,e.useBreakpointMax=Gt,e.useBreakpointMin=Jt,e.useCurrentRoute=Zt,e.useGenerateId=Vt,e.useHttpService=tn,e.useMergeClass=Qt,e.useMobileDevice=Bt,e.useRemoveResizeListener=function(e,t){var n;e&&e.__resizeListeners&&(t&&e.__resizeListeners.splice(e.__resizeListeners.indexOf(t),1),e.__resizeListeners.length||null==(n=e.__observer)||n.disconnect())},e.useRenderSVG=function(e,t,n,i){return Ho(e,t,n,i)},e.useRenderSlot=Ft,e.useRenderSlotDefault=jt,e.useRenderSlotWithWrapper=Rt,e.useRenderSlotWrapperWithCondition=zt,e.useRenderTransition=Ut,e.useVueMdbNotification=rn,e.useVueMdbService=nn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
