@bbn/bbn 1.0.211 → 1.0.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bbn.js CHANGED
@@ -1,2 +1,2 @@
1
- var bbn=function(exports){"use strict";function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,kindOf=(cache=Object.create(null),e=>{const t=toString.call(e);return cache[t]||(cache[t]=t.slice(8,-1).toLowerCase())});var cache;const kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray$1}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=e=>null!==e&&"object"==typeof e,isBoolean$1=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob$1=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$1(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),isArray$1(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function findKey(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e}=isContextDefined(this)&&this||{},t={},r=(r,n)=>{const o=e&&findKey(t,n)||n;isPlainObject(t[o])&&isPlainObject(r)?t[o]=merge(t[o],r):isPlainObject(r)?t[o]=merge({},r):isArray$1(r)?t[o]=r.slice():t[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],r);return t}const extend$1=(e,t,r,{allOwnKeys:n}={})=>(forEach(t,((t,n)=>{r&&isFunction$1(t)?e[n]=bind(t,r):e[n]=t}),{allOwnKeys:n}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray=e=>{if(!e)return null;if(isArray$1(e))return e;let t=e.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),e=>TypedArray&&e instanceof TypedArray);var TypedArray;const forEachEntry=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},freezeMethods=e=>{reduceDescriptors(e,((t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];isFunction$1(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet=(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return isArray$1(e)?n(e):n(String(e).split(t)),r},noop=()=>{},toFiniteNumber=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,n)=>{if(isObject$1(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=isArray$1(e)?[]:{};return forEach(e,((e,t)=>{const i=r(e,n+1);!isUndefined(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$1(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch);var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate$1,isFile:isFile,isBlob:isBlob$1,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend$1,trim:trim$1,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable};function AxiosError(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}utils$1.inherits(AxiosError,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:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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=>{descriptors[e]={value:e}})),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,o,i)=>{const a=Object.create(prototype$1);return utils$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(!s&&utils$1.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(s=utils$1.toArray(e)))return r=removeBrackets(r),s.forEach((function(e,n){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey([r],n,i):null===a?r:r+"[]",u(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(o,r,i),u(e)),!1)}const c=[],f=Object.assign(predicates,{defaultVisitor:l,convertValue:u,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!utils$1.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),utils$1.forEach(r,(function(r,i){!0===(!(utils$1.isUndefined(r)||null===r)&&o.call(t,r,utils$1.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),c.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode,o=r&&r.serialize;let i;if(i=o?o(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,hasStandardBrowserEnv=(product="undefined"!=typeof navigator&&navigator.product,hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(product)<0);var product;const hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var utils=Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv}),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function formDataToJSON(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&utils$1.isArray(n)?n.length:i,s)return utils$1.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&utils$1.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&utils$1.isArray(n[i])&&(n[i]=arrayToObject(n[i])),!a}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,((e,n)=>{t(parsePropPath(e),n,r,0)})),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=utils$1.isObject(e);o&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return n?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((i=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&utils$1.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.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:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults.headers[e]={}}));const ignoreDuplicateOf=utils$1.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"]);var parseHeaders=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ignoreDuplicateOf[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t};const $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,o){return utils$1.isFunction(n)?n.call(this,t,r):(o&&(t=r),utils$1.isString(t)?utils$1.isString(n)?-1!==t.indexOf(n):utils$1.isRegExp(n)?n.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=normalizeHeader(t);if(!o)throw new Error("header name must be a non-empty string");const i=utils$1.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue(e))}const i=(e,t)=>utils$1.forEach(e,((e,r)=>o(e,r,t)));return utils$1.isPlainObject(e)||e instanceof this.constructor?i(e,t):utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?i(parseHeaders(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=normalizeHeader(e)){const o=utils$1.findKey(r,e);!o||t&&!matchHeaderValue(r,r[o],o,t)||(delete r[o],n=!0)}}return utils$1.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!matchHeaderValue(this,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return utils$1.forEach(this,((n,o)=>{const i=utils$1.findKey(r,o);if(i)return t[i]=normalizeValue(n),void delete t[o];const a=e?formatHeader(o):String(o).trim();a!==o&&delete t[o],t[a]=normalizeValue(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&utils$1.isArray(r)?r.join(", "):r)})),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 r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=normalizeHeader(e);t[n]||(buildAccessors(r,e),t[n]=!0)}return utils$1.isArray(e)?e.forEach(n):n(e),this}}function transformData(e,t){const r=this||defaults,n=t||r,o=AxiosHeaders.from(n.headers);let i=n.data;return utils$1.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1.freezeMethods(AxiosHeaders),utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var cookies=platform.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),utils$1.isString(n)&&a.push("path="+n),utils$1.isString(o)&&a.push("domain="+o),!0===i&&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 isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}var isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=utils$1.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),l=n[a];o||(o=u),r[i]=s,n[i]=u;let c=a,f=0;for(;c!==i;)f+=r[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=l&&u-l;return d?Math.round(1e3*f/d):void 0}}function progressEventReducer(e,t){let r=0;const n=speedometer(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,u=n(s);r=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest;var xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise((function(t,r){let n=e.data;const o=AxiosHeaders.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:u}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(utils$1.isFormData(n))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const f=buildFullPath(e.baseURL,e.url);function d(){if(!c)return;const n=AxiosHeaders.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());settle((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),buildURL(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new AxiosError(t,n.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,c)),c=null},platform.hasStandardBrowserEnv&&(u&&utils$1.isFunction(u)&&(u=u(e)),u||!1!==u&&isURLSameOrigin(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&utils$1.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),utils$1.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(r(!t||t.type?new CanceledError(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const h=parseProtocol(f);h&&-1===platform.protocols.indexOf(h)?r(new AxiosError("Unsupported protocol "+h+":",AxiosError.ERR_BAD_REQUEST,e)):c.send(n||null)}))};const knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e;var adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!isResolvedHandle(r)&&(n=knownAdapters[(t=String(r)).toLowerCase()],void 0===n))throw new AxiosError(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults.adapter)(e).then((function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders.from(t.headers),t}),(function(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders.from(t.response.headers))),Promise.reject(t)}))}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const r={};function n(e,t,r){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:r},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function o(e,t,r){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!utils$1.isUndefined(t))return n(void 0,t)}function a(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const u={url:i,method:i,data:i,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)=>o(headersToObject(e),headersToObject(t),!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=u[n]||o,a=i(e[n],t[n],n);utils$1.isUndefined(a)&&i!==s||(r[n]=a)})),r}const VERSION="1.6.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new AxiosError("option "+i+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function n(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new AxiosError(n(o," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var validator={assertOptions:assertOptions,validators:validators$1};const validators=validator.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}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 r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=n&&(utils$1.isFunction(n)?t.paramsSerializer={serialize:n}:validator.assertOptions(n,{encode:validators.function,serialize:validators.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&utils$1.merge(o.common,o[t.method]);o&&utils$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=AxiosHeaders.concat(i,o);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 u=[];let l;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,f=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),c=e.length,l=Promise.resolve(t);f<c;)l=l.then(e[f++],e[f++]);return l}c=a.length;let d=t;for(f=0;f<c;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=dispatchRequest.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,c=u.length;f<c;)l=l.then(u[f++],u[f++]);return l}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],(function(e){Axios.prototype[e]=function(t,r){return this.request(mergeConfig(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(mergeConfig(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Axios.prototype[e]=t(),Axios.prototype[e+"Form"]=t(!0)}));class CancelToken{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new CanceledError(e,n,o),t(r.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)}static source(){let e;const t=new CancelToken((function(t){e=t}));return{token:t,cancel:e}}}function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode={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};function createInstance(e){const t=new Axios(e),r=bind(Axios.prototype.request,t);return utils$1.extend(r,Axios.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig(e,t))},r}Object.entries(HttpStatusCode).forEach((([e,t])=>{HttpStatusCode[t]=e}));const axios$1=createInstance(defaults);axios$1.Axios=Axios,axios$1.CanceledError=CanceledError,axios$1.CancelToken=CancelToken,axios$1.isCancel=isCancel,axios$1.VERSION=VERSION,axios$1.toFormData=toFormData,axios$1.AxiosError=AxiosError,axios$1.Cancel=axios$1.CanceledError,axios$1.all=function(e){return Promise.all(e)},axios$1.spread=spread,axios$1.isAxiosError=isAxiosError,axios$1.mergeConfig=mergeConfig,axios$1.AxiosHeaders=AxiosHeaders,axios$1.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios$1.getAdapter=adapters.getAdapter,axios$1.HttpStatusCode=HttpStatusCode,axios$1.default=axios$1;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dayjs_min={exports:{}},module;module=dayjs_min,module.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",a="hour",s="day",u="week",l="month",c="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,l),i=r-o<0,a=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:f,w:u,d:s,D:d,h:a,m:i,s:o,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=b;var x="$isDayjsObject",$=function(e){return e instanceof E||!(!e||!e[x])},O=function e(t,r,n){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!n&&o&&(y=o),o||!n&&y},A=function(e,t){if($(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},S=v;S.l=O,S.i=$,S.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function b(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=b.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var r=A(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return A(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<A(e)},g.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,n=!!S.u(t)||t,c=S.p(e),h=function(e,t){var o=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(s)},p=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,b=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case f:return n?h(1,0):h(31,11);case l:return n?h(1,b):h(0,b+1);case u:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(n?g-w:g+(6-w),b);case s:case d:return p(v+"Hours",0);case a:return p(v+"Minutes",1);case i:return p(v+"Seconds",2);case o:return p(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var r,u=S.p(e),c="set"+(this.$u?"UTC":""),h=(r={},r[s]=c+"Date",r[d]=c+"Date",r[l]=c+"Month",r[f]=c+"FullYear",r[a]=c+"Hours",r[i]=c+"Minutes",r[o]=c+"Seconds",r[n]=c+"Milliseconds",r)[u],p=u===s?this.$D+(t-this.$W):t;if(u===l||u===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(n,c){var d,h=this;n=Number(n);var p=S.p(c),m=function(e){var t=A(h);return S.w(t.date(t.date()+Math.round(e*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===f)return this.set(f,this.$y+n);if(p===s)return m(1);if(p===u)return m(7);var b=(d={},d[i]=t,d[a]=r,d[o]=e,d)[p]||1,g=this.$d.getTime()+n*b;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,l=r.months,c=r.meridiem,f=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},d=function(e){return S.s(i%12||12,e,"0")},p=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,l,3);case"MMMM":return f(l,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,u,2);case"ddd":return f(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return S.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,a,!0);case"A":return p(i,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var p,m=this,b=S.p(d),g=A(n),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,w=function(){return S.m(m,g)};switch(b){case f:p=w()/12;break;case l:p=w();break;case c:p=w()/3;break;case u:p=(y-v)/6048e5;break;case s:p=(y-v)/864e5;break;case a:p=y/r;break;case i:p=y/t;break;case o:p=y/e;break;default:p=y}return h?p:S.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=O(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),j=E.prototype;return A.prototype=j,[["$ms",n],["$s",o],["$m",i],["$H",a],["$W",s],["$M",l],["$y",f],["$D",d]].forEach((function(e){j[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,E,A),e.$i=!0),A},A.locale=O,A.isDayjs=$,A.unix=function(e){return A(1e3*e)},A.en=w[y],A.Ls=w,A.p={},A}();var dayjs_minExports=dayjs_min.exports,dayjs$1=getDefaultExportFromCjs(dayjs_minExports),calendar$2={exports:{}};!function(e,t){e.exports=function(e,t,r){var n="h:mm A",o={lastDay:"[Yesterday at] "+n,sameDay:"[Today at] "+n,nextDay:"[Tomorrow at] "+n,nextWeek:"dddd [at] "+n,lastWeek:"[Last] dddd [at] "+n,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var n=t||this.$locale().calendar||o,i=r(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s="sameElse",u=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,l=n[u]||o[u];return"function"==typeof l?l.call(this,r()):this.format(l)}}}(calendar$2);var calendarExports=calendar$2.exports,calendar$1=getDefaultExportFromCjs(calendarExports),dayOfYear$1={exports:{}};!function(e,t){e.exports=function(e,t,r){t.prototype.dayOfYear=function(e){var t=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports,dayOfYear=getDefaultExportFromCjs(dayOfYearExports),duration$1={exports:{}};!function(e,t){e.exports=function(){var e,t,r=1e3,n=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s,months:u,days:i,hours:o,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof v},d=function(e,t,r){return new v(e,r,t.$l)},h=function(e){return t.p(e)+"s"},p=function(e){return e<0},m=function(e){return p(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},g=function(e,t){return e?p(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function p(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*c[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(l);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=p.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,r){return t+(e.$d[r]||0)*c[r]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/n),e%=n,this.$d.seconds=m(e/r),e%=r,this.$d.milliseconds=e},b.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=g(r,"D"),o=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=g(a,"S"),u=e.negative||t.negative||n.negative||o.negative||i.negative||s.negative,l=o.format||i.format||s.format?"T":"",c=(u?"-":"")+"P"+e.format+t.format+n.format+l+o.format+i.format+s.format;return"P"===c||"-P"===c?"P0D":c},b.toJSON=function(){return this.toISOString()},b.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(a,(function(e,t){return t||String(n[e])}))},b.as=function(e){return this.$ms/c[h(e)]},b.get=function(e){var t=this.$ms,r=h(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?m(t/c[r]):this.$d[r],t||0},b.add=function(e,t,r){var n;return n=t?e*c[h(t)]:f(e)?e.$ms:d(e,this).$ms,d(this.$ms+n*(r?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return d(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},p}(),y=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")};return function(r,n,o){e=o,t=o().$utils(),o.duration=function(e,t){var r=o.locale();return d(e,{$l:r},t)},o.isDuration=f;var i=n.prototype.add,a=n.prototype.subtract;n.prototype.add=function(e,t){return f(e)?y(this,e,1):i.bind(this)(e,t)},n.prototype.subtract=function(e,t){return f(e)?y(this,e,-1):a.bind(this)(e,t)}}}()}(duration$1);var durationExports=duration$1.exports,duration=getDefaultExportFromCjs(durationExports),isBetween$1={exports:{}};!function(e,t){e.exports=function(e,t,r){t.prototype.isBetween=function(e,t,n,o){var i=r(e),a=r(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,n):!this.isBefore(i,n))&&(u?this.isBefore(a,n):!this.isAfter(a,n))||(s?this.isBefore(i,n):!this.isAfter(i,n))&&(u?this.isAfter(a,n):!this.isBefore(a,n))}}}(isBetween$1);var isBetweenExports=isBetween$1.exports,isBetween=getDefaultExportFromCjs(isBetweenExports),isLeapYear$1={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}(isLeapYear$1);var isLeapYearExports=isLeapYear$1.exports,isLeapYear=getDefaultExportFromCjs(isLeapYearExports),isoWeek$1={exports:{}};!function(e,t){var r;e.exports=(r="day",function(e,t,n){var o=function(e){return e.add(4-e.isoWeekday(),r)},i=t.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),r);var t,i,a,s=o(this),u=(t=this.isoWeekYear(),a=4-(i=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,r));return s.diff(u,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}})}(isoWeek$1);var isoWeekExports=isoWeek$1.exports,isoWeek=getDefaultExportFromCjs(isoWeekExports),localeData$1={exports:{}};!function(e,t){e.exports=function(e,t,r){var n=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,r,n,i){var a=e.name?e:e.$locale(),s=o(a[t]),u=o(a[r]),l=s||u.map((function(e){return e.slice(0,n)}));if(!i)return l;var c=a.weekStart;return l.map((function(e,t){return l[(t+(c||0))%7]}))},a=function(){return r.Ls[r.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return u.bind(this)()},r.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},r.months=function(){return i(a(),"months")},r.monthsShort=function(){return i(a(),"monthsShort","months",3)},r.weekdays=function(e){return i(a(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(localeData$1);var localeDataExports=localeData$1.exports,localeData=getDefaultExportFromCjs(localeDataExports),localizedFormat$1={exports:{}};!function(e,t){var r;e.exports=(r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,n){var o=t.prototype,i=o.format;n.en.formats=r,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,n=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,o){var i=o&&o.toUpperCase();return n||t[o]||r[o]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))}(e,void 0===t?{}:t);return i.call(this,n)}})}(localizedFormat$1);var localizedFormatExports=localizedFormat$1.exports,localizedFormat=getDefaultExportFromCjs(localizedFormatExports),minMax$1={exports:{}};!function(e,t){e.exports=function(e,t,r){var n=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;var r;1===t.length&&t[0].length>0&&(t=t[0]),r=(t=t.filter((function(e){return e})))[0];for(var n=1;n<t.length;n+=1)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r};r.max=function(){var e=[].slice.call(arguments,0);return n("isAfter",e)},r.min=function(){var e=[].slice.call(arguments,0);return n("isBefore",e)}}}(minMax$1);var minMaxExports=minMax$1.exports,minMax=getDefaultExportFromCjs(minMaxExports),quarterOfYear$1={exports:{}};!function(e,t){var r,n;e.exports=(r="month",n="quarter",function(e,t){var o=t.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(e,t){return e=Number(e),this.$utils().p(t)===n?this.add(3*e,r):i.bind(this)(e,t)};var a=o.startOf;o.startOf=function(e,t){var o=this.$utils(),i=!!o.u(t)||t;if(o.p(e)===n){var s=this.quarter()-1;return i?this.month(3*s).startOf(r).startOf("day"):this.month(3*s+2).endOf(r).endOf("day")}return a.bind(this)(e,t)}})}(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports,quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports),relativeTime$1={exports:{}};!function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,r,o){return n.fromToBase(e,t,r,o)}r.en.relativeTime=o,n.fromToBase=function(t,n,i,a,s){for(var u,l,c,f=i.$locale().relativeTime||o,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=a?r(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var b=(e.rounding||Math.round)(Math.abs(u));if(c=u>0,b<=m.r||!m.r){b<=1&&p>0&&(m=d[p-1]);var g=f[m.l];s&&(b=s(""+b)),l="string"==typeof g?g.replace("%d",b):g(b,n,m.l,c);break}}if(n)return l;var v=c?f.future:f.past;return"function"==typeof v?v(l):v.replace("%s",l)},n.to=function(e,t){return i(e,t,this,!0)},n.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}}(relativeTime$1);var relativeTimeExports=relativeTime$1.exports,relativeTime=getDefaultExportFromCjs(relativeTimeExports),timezone$1={exports:{}};!function(e,t){var r,n;e.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,t,o){var i,a=function(e,t,r){void 0===r&&(r={});var o=new Date(e),i=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",o=e+"|"+r,i=n[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[o]=i),i}(t,r);return i.formatToParts(o)},s=function(e,t){for(var n=a(e,t),i=[],s=0;s<n.length;s+=1){var u=n[s],l=u.type,c=u.value,f=r[l];f>=0&&(i[f]=parseInt(c,10))}var d=i[3],h=24===d?0:d,p=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",m=+e;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=i);var r=this.utcOffset(),n=this.toDate(),a=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(a))/1e3/60),u=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var l=u.utcOffset();u=u.add(r-l,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),r=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var l=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var r=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(r,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,r){var n=r&&t,a=r||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var l=function(e,t,r){var n=e-60*t*1e3,o=s(n,r);if(t===o)return[n,t];var i=s(n-=60*(o-t)*1e3,r);return o===i?[n,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,n).valueOf(),u,a),c=l[0],f=l[1],d=o(c).utcOffset(f);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}})}(timezone$1);var timezoneExports=timezone$1.exports,timezone=getDefaultExportFromCjs(timezoneExports),updateLocale$1={exports:{}};!function(e,t){e.exports=function(e,t,r){r.updateLocale=function(e,t){var n=r.Ls[e];if(n)return(t?Object.keys(t):[]).forEach((function(e){n[e]=t[e]})),n}}}(updateLocale$1);var updateLocaleExports=updateLocale$1.exports,updateLocale=getDefaultExportFromCjs(updateLocaleExports),utc$1={exports:{}};!function(e,t){e.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var l=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return d.call(this,e,t,r);var n=this.local(),o=i(e).local();return d.call(n,o,t,r)}}}()}(utc$1);var utcExports=utc$1.exports,utc=getDefaultExportFromCjs(utcExports),weekday$1={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}}(weekday$1);var weekdayExports=weekday$1.exports,weekday=getDefaultExportFromCjs(weekdayExports),weekOfYear$1={exports:{}};!function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t,o){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(n).add(1,n).date(t),a=o(this).endOf(r);if(i.isBefore(a))return 1}var s=o(this).startOf(n).date(t).startOf(r).subtract(1,"millisecond"),u=this.diff(s,r,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports,weekOfYear=getDefaultExportFromCjs(weekOfYearExports);function isArray(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!Array.isArray(o))return!1}return!0}function isNumber(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(["boolean","object","symbol"].includes(typeof o)||""===o||isNaN(o))return!1}return!0}function isIterable(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!o||"object"!=typeof o||!(Symbol.iterator in Object(o)))return!1}return!0}function isString(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object String]"!=={}.toString.apply(o))return!1}return!0}function isInt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!Number.isInteger(o))return!1}return!0}function isFunction(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!(o&&o.constructor&&o.call&&o.apply))return!1}return!0}function log(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(void 0!==window.console){var o=void 0,i=5,a="log";r[0]&&"object"==typeof r[0]&&r[0]._bbn_console_style&&(r[0]._bbn_console_mode&&isFunction(console[r[0]._bbn_console_mode])?a=r[0]._bbn_console_mode:(o=r[0]._bbn_console_style,i=r[0]._bbn_console_level),r.shift());var s=window.console[a];if((null===(t=null===(e=window.bbn)||void 0===e?void 0:e.env)||void 0===t?void 0:t.loggingLevel)>=i)for(var u=0;u<r.length;){var l=typeof r[u],c=[r[u]];"string"!==l&&"number"!==l||c.unshift("%c %s ",o),s.apply(window.console,c),u++}}return this}function substr(e,t,r){if(!isString(e)||!isInt(t))throw log(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),isInt(r)?e.substring(t,(r<0?e.length:t)+r):e.substring(t)}function removePrivateProp(e,t){void 0===t&&(t=!1);var r=null;if("object"==typeof e)for(var n in r={},e)substr(n,0,1).match(/^[A-z0-9]$/)&&n in e&&(t&&"object"==typeof e[n]?r[n]=removePrivateProp(e[n],!0):r[n]=e[n]);return r||!1}function iterate(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!1),null!==e&&"object"==typeof e){var o=Object.keys(r?removePrivateProp(e):e);n&&o.reverse();for(var i=0,a=o;i<a.length;i++){var s=a[i];if(!1===t(e[s],s))break}}return e}function each(e,t){if(!(isNumber(e)&&e>0)){if(isIterable(e)){for(r=0;r<e.length;r++)if(!1===t(e[r],r))return;return e}return iterate(e,t)}for(var r=0;r<e;r++)if(!1===t(r,r))return}function correctCase(e){return e.replace(/[A-z]{1}/,(function(e){return e.toUpperCase()}))}function error(e){if(arguments.length>1){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);t.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),log.apply(this,t)}throw new Error(e)}function checkType(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=!1;isArray(t)||(t=[t]);var a=[];if(each(t,(function(t){var r;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),isFunction(t)){if(a.push(t.name||(null===(r=t.constructor)||void 0===r?void 0:r.name)||t.toString()),e instanceof t)return i=!0,!1}else if(isString(t)&&isFunction(bbn.fn["is"+correctCase(t)])){if(bbn.fn["is"+correctCase(t)](e))return i=!0,!1;a.push(t)}else error("The type ".concat(t," is not recognized"))})),!i)throw log(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),n.length&&log(n),new Error((r?r+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.shift(),n=bbn.lng[r]||r;if(e.length){var o=0;return n.replace(/\%([d|s])/g,(function(t,r){var n=e[o++];return n||(n="d"===r?0:""),checkType(n,"d"===r?"number":"string",bbn._("The value you gave did not correspond, check the loggg")),n}))}return n}function $(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)}var lng={select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},vars={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:[33,34,35,36,38,40],leftRight:[36,35,37,39],dels:[8,46,45],confirm:[13,9],alt:[20,16,17,18,144],numbers:[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105],numsigns:[109,110,189,190]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},env={siteTitle:window.document.title,logging:!1,cdn:"",lang:"en",host:window.location.protocol+"//"+window.location.hostname,url:window.location.href,old_path:null,loading:!1,width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:20,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax"},idb=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB,dbObject=function(e){var t=this,r=db._connections[e],n=db._structures[e];this.insert=function(e,t){return Array.isArray(t)||(t=[t]),new Promise((function(n){var o=r.transaction(e,"readwrite"),i=o.objectStore(e),a=t.length;each(t,(function(e){var t=i.put(e);t.onerror=function(){log(t.error),a--}})),o.onabort=function(){throw new Error(o.error)},o.oncomplete=function(){n(a)}}))},this.update=function(e,t,o){return new Promise((function(i){var a=r.transaction(e,"readwrite"),s=a.objectStore(e),u=n[e],l=u.keys.PRIMARY.columns.length>1?u.keys.PRIMARY.columns:u.keys.PRIMARY.columns[0];if(!o[l])throw new Error(_("No "));var c=1,f=s.put(t,o[l]);f.onerror=function(){log(f.error),c--},a.onabort=function(){throw new Error(a.error)},a.oncomplete=function(){i(c)}}))},this.delete=function(e,t){return new Promise((function(o){var i=r.transaction(e,"readwrite"),a=i.objectStore(e),s=n[e],u=s.keys.PRIMARY.columns.length>1?s.keys.PRIMARY.columns:s.keys.PRIMARY.columns[0];if(!t[u])throw new Error(_("No "));var l=1,c=a.delete(t[u]);c.onerror=function(){log(c.error),l--},i.onabort=function(){throw new Error(i.error)},i.oncomplete=function(){o(l)}}))},this.selectOne=function(e,r,n,o,i,a){return new Promise((function(s){t.select(e,[r],n,o,i,a).then((function(e){var t;s(null!==(t=e[r])&&void 0!==t?t:void 0)}))}))},this.select=function(e,t,o,i,a,s){var u=r.transaction(e,"readonly").objectStore(e),l=n[e],c=l.keys.PRIMARY.columns.length>1?l.keys.PRIMARY.columns:l.keys.PRIMARY.columns[0];if(!o[c])throw new Error(_("No "));return new Promise((function(e){var r=u.get(o[c]);r.onsuccess=function(){var n=r.result;if(t.length){var o={};return iterate(n,(function(e,r){t.indexOf(r)>-1&&(o[r]=e)})),e(o)}e(n)}}))},this.selectAll=function(e,t,o,i,a,s){var u=r.transaction(e,"read").objectStore(e),l=n[e];if(!o[l.keys.PRIMARY.columns.length>1?l.keys.PRIMARY.columns:l.keys.PRIMARY.columns[0]])throw new Error(_("No "));return new Promise((function(e){u.get(n.keys.PRIMARY)}))},this.getColumnValues=function(e,t,n,o,i,a){return new Promise((function(t){r.transaction(e,"read").objectStore(e)}))}},db={_structures:{},_connections:{},_stores:{},ok:void 0!==idb,open:function(e){return new Promise((function(t){if(!db._connections[e]){if(!db._structures[e])throw new Error(_("Impossible to find a structure for the database %s",e));var r=idb.open(e);return r.onupgradeneeded=function(){log("UPGRADE NEEDED");var t=r.result;iterate(db._structures[e],(function(e,r){var n=e.keys.PRIMARY.columns.length>1?e.keys.PRIMARY.columns:e.keys.PRIMARY.columns[0],o=t.createObjectStore(r,{keyPath:n});iterate(e.keys,(function(e,t){"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})}))}))},void(r.onsuccess=function(){db._connections[e]=r.result;var n=new dbObject(e);t(n)})}t(new dbObject(db._connections[e]))}))},add:function(e,t,r){var n;if(!(null===(n=null==r?void 0:r.keys)||void 0===n?void 0:n.PRIMARY)||!(null==r?void 0:r.fields))throw new Error(_("The database structure for %s is not valid (are there keys and field? Is there a primary?",t));db._structures[e]||(db._structures[e]={}),db._structures[e][t]=r}};function _addLoader(e,t,r){var n=(new Date).getTime(),o={key:e,url:substr(e,0,e.length-33),loader:t,aborter:r,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:n};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);for(var i=bbn.env.loadersHistory.length;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return n}function getProperty(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if("object"==typeof e){var n=[];return 1===t.length&&"string"==typeof t[0]&&n.push.apply(n,t[0].split(".")),n.reduce((function(e,t){if(e)return e[t]}),e)}}function removeAccents(e){if(!isString(e)){if(!e.toString)throw log(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function isDate(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Date]"!=={}.toString.apply(o))return!1}return!0}function _compareValues(e,t,r,n){void 0===n&&(n="asc");var o=getProperty(e,r),i=getProperty(t,r),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==n&&isString(n)&&"desc"===n.toLowerCase()&&(n="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=removeAccents(o).toLowerCase(),i=removeAccents(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":isDate(o)&&(o=o.getTime(),i=isDate(i)?i.getTime():0)}return o<i?"desc"===n?1:-1:o>i?"desc"===n?-1:1:0}function numProperties(e){return e&&"object"==typeof e?Object.keys(e).length:0}function isEmpty(e){return!e||(isArray(e)?!e.length:"object"==typeof e&&!numProperties(e))}function isNull(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Null]"!=={}.toString.apply(o))return!1}return!0}function isObject(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Object]"!=={}.toString.apply(o))return!1}return!0}function isDom(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof HTMLElement))return!1}return!0}function isCp(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(!t.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(var n=0,o=t;n<o.length;n++){var i=o[n];if(!bbn.cp.isComponent(i)||isDom(i)||!(null===(e=i.$el)||void 0===e?void 0:e.bbnCid))return!1}return!0}function circularReplacer(){var e=new WeakSet;return function(t,r){if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r),[void 0,Object,Array,null].includes(r.constructor)||(r=isDom(r)?r.bbnId?"__BBN_DOM__"+r.tagName+"/"+r.bbnId+r.bbnHash:"__BBN_DOM__"+r.tagName+"/"+r.className:isCp(r)?"__BBN_CP__"+r.$options.name+"/"+r.$cid:r.constructor.toString())}return r}}function simpleHash1(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t).toString(16)}function simpleHash2(e){for(var t=0,r=0;r<e.length;r++){t=e.charCodeAt(r)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function simpleHash(e){return simpleHash1(e).padStart(8,"0")+simpleHash2(e).padStart(8,"0")}function hash(e){var t="__bbn__";for(var r in arguments)if(arguments[r]){var n=arguments[r];if(isDom(n))n.bbnId?t+="__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:t+="__BBN_DOM__"+n.tagName+"/"+n.className;else if(isCp(n))t+="__BBN_CP__"+n.$options.name+"/"+n.$cid;else try{t+=JSON.stringify(arguments[r],circularReplacer())}catch(e){t+="."}}return simpleHash(t)}function md5(e){var t="0123456789abcdef";function r(e){var r,n="";for(r=0;r<=3;r++)n+=t.charAt(e>>8*r+4&15)+t.charAt(e>>8*r&15);return n}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(o,a)),i),r)}function i(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function a(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}var l,c,f,d,h,p=function(e){var t,r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<t%4*8;return n[t>>2]|=128<<t%4*8,n[16*r-2]=8*e.length,n}(e),m=1732584193,b=-271733879,g=-1732584194,v=271733878;for(l=0;l<p.length;l+=16)c=m,f=b,d=g,h=v,m=i(m,b,g,v,p[l+0],7,-680876936),v=i(v,m,b,g,p[l+1],12,-389564586),g=i(g,v,m,b,p[l+2],17,606105819),b=i(b,g,v,m,p[l+3],22,-1044525330),m=i(m,b,g,v,p[l+4],7,-176418897),v=i(v,m,b,g,p[l+5],12,1200080426),g=i(g,v,m,b,p[l+6],17,-1473231341),b=i(b,g,v,m,p[l+7],22,-45705983),m=i(m,b,g,v,p[l+8],7,1770035416),v=i(v,m,b,g,p[l+9],12,-1958414417),g=i(g,v,m,b,p[l+10],17,-42063),b=i(b,g,v,m,p[l+11],22,-1990404162),m=i(m,b,g,v,p[l+12],7,1804603682),v=i(v,m,b,g,p[l+13],12,-40341101),g=i(g,v,m,b,p[l+14],17,-1502002290),m=a(m,b=i(b,g,v,m,p[l+15],22,1236535329),g,v,p[l+1],5,-165796510),v=a(v,m,b,g,p[l+6],9,-1069501632),g=a(g,v,m,b,p[l+11],14,643717713),b=a(b,g,v,m,p[l+0],20,-373897302),m=a(m,b,g,v,p[l+5],5,-701558691),v=a(v,m,b,g,p[l+10],9,38016083),g=a(g,v,m,b,p[l+15],14,-660478335),b=a(b,g,v,m,p[l+4],20,-405537848),m=a(m,b,g,v,p[l+9],5,568446438),v=a(v,m,b,g,p[l+14],9,-1019803690),g=a(g,v,m,b,p[l+3],14,-187363961),b=a(b,g,v,m,p[l+8],20,1163531501),m=a(m,b,g,v,p[l+13],5,-1444681467),v=a(v,m,b,g,p[l+2],9,-51403784),g=a(g,v,m,b,p[l+7],14,1735328473),m=s(m,b=a(b,g,v,m,p[l+12],20,-1926607734),g,v,p[l+5],4,-378558),v=s(v,m,b,g,p[l+8],11,-2022574463),g=s(g,v,m,b,p[l+11],16,1839030562),b=s(b,g,v,m,p[l+14],23,-35309556),m=s(m,b,g,v,p[l+1],4,-1530992060),v=s(v,m,b,g,p[l+4],11,1272893353),g=s(g,v,m,b,p[l+7],16,-155497632),b=s(b,g,v,m,p[l+10],23,-1094730640),m=s(m,b,g,v,p[l+13],4,681279174),v=s(v,m,b,g,p[l+0],11,-358537222),g=s(g,v,m,b,p[l+3],16,-722521979),b=s(b,g,v,m,p[l+6],23,76029189),m=s(m,b,g,v,p[l+9],4,-640364487),v=s(v,m,b,g,p[l+12],11,-421815835),g=s(g,v,m,b,p[l+15],16,530742520),m=u(m,b=s(b,g,v,m,p[l+2],23,-995338651),g,v,p[l+0],6,-198630844),v=u(v,m,b,g,p[l+7],10,1126891415),g=u(g,v,m,b,p[l+14],15,-1416354905),b=u(b,g,v,m,p[l+5],21,-57434055),m=u(m,b,g,v,p[l+12],6,1700485571),v=u(v,m,b,g,p[l+3],10,-1894986606),g=u(g,v,m,b,p[l+10],15,-1051523),b=u(b,g,v,m,p[l+1],21,-2054922799),m=u(m,b,g,v,p[l+8],6,1873313359),v=u(v,m,b,g,p[l+15],10,-30611744),g=u(g,v,m,b,p[l+6],15,-1560198380),b=u(b,g,v,m,p[l+13],21,1309151649),m=u(m,b,g,v,p[l+4],6,-145523070),v=u(v,m,b,g,p[l+11],10,-1120210379),g=u(g,v,m,b,p[l+2],15,718787259),b=u(b,g,v,m,p[l+9],21,-343485551),m=n(m,c),b=n(b,f),g=n(g,d),v=n(v,h);return r(m)+r(b)+r(g)+r(v)}function analyzeFunction(e){var t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");for(var r,n="",o=!1,i=!1,a=!1,s="",u=0,l=0,c=[],f={},d="",h=['"',"'","`"],p=!1,m=!1,b=!1,g=!1,v=!1,y="",w=0;w<t.length;w++)if(b||"/"!==t[w]||"*"!==t[w+1])if("/"===t[w]&&"*"===t[w-1])b=!1;else if(g||"/"!==t[w]||"/"!==t[w+1])if("\n"===t[w])g=!1;else{if(b||g)continue;if(t[w]===d&&!p&&d)d="",n+=t[w];else if(d)p="\\"===t[w]&&!p,n+=t[w];else if(h.includes(t[w])&&!p)d=t[w],n+=t[w];else if("("===t[w]){if(u++,""!==n.trim()){if("function"===n.trim())a=!0;else if("async"!==n.trim()){var x=(s=n.trim()).match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);x&&(s=x[1])}n=""}}else if(")"===t[w])u===l+1&&(m?(f.default=n.trim(),m=!1):n&&(f.name=n.trim()),(f.name||f.default)&&(c.push(f),f={}),n=""),l++;else if(v&&"}"!==t[w])n+=t[w];else{if(u&&u===l&&":"===t[w]){var $=t.substring(w+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!$)throw Error("Unexpected ':' while parsing function");y=$[1],r=t.substring(w+$[0].length).trim();break}if("="===t[w]&&">"===t[w+1]){""!==n.trim()&&u===l&&(f.name=n.trim(),c.push(f),f={},n=""),o=!0,w++;continue}if("="===t[w]&&u>l&&!m)f.name=n.trim(),n="",m=!0;else if(","===t[w])if(v)n+=t[w];else{if(!(u>l))throw Error("Unexpected ',' while parsing function");m?(f.default=n.trim(),m=!1):n&&(f.name=n.trim()),(f.name||f.default)&&(c.push(f),f={}),n=""}else if("{"===t[w]||"}"===t[w]){if(u===l){r=t.substring(w).trim();break}u>l?"{"!==t[w]||v?"}"===t[w]&&v&&(v=!1,n+=t[w]):(v=!0,n=t[w]):n=""}else{if(o){r=t.substring(t.indexOf("=>")+2).trim();break}" "===t[w]?""!==n.trim()&&("async"===n.trim()&&(i=!0),u>l?n+=t[w]:n=""):n+=t[w]}}}else g=!0,n="";else b=!0,n="";if(!r){if(!o)throw Error("Unexpected end of function while parsing function");r=n}var O=c.map((function(e){return e.name+(e.default?" = "+e.default:"")})).join(", ");return{body:r,args:c,argString:O,isArrow:o,hasFunction:a,name:s,isAsync:i,hash:md5(r+(s?"-"+s:"")+(O?"-"+O:"")),returnType:y}}function isSame(e,t,r){if(r||(r=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n=Object.keys(e).sort(),o=Object.keys(t).sort();if(hash(n)!==hash(o))return!1;var i=!0;if(e&&"object"==typeof e){if(r.includes(e))return i;r.push(e)}return each(n,(function(r){if(!isSame(e[r],t[r]))return i=!1,!1})),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){n=analyzeFunction(e),o=analyzeFunction(t);return n.hash===o.hash}return!1}function compare(e,t,r){switch(r){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!isEmpty(e)&&!isEmpty(t)&&-1!==removeAccents(e).toLowerCase().indexOf(removeAccents(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!isNull(e)&&!isNull(t))||-1===removeAccents(e.toLowerCase()).indexOf(removeAccents(t.toLowerCase()));case"starts":case"start":return!isNull(e)&&!isNull(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!isNull(e)&&!isNull(t)&&0===removeAccents(e).toLowerCase().indexOf(removeAccents(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!isNull(e)&&!isNull(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!isNull(e)&&!isNull(t)&&removeAccents(e).toLowerCase()===removeAccents(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(isObject(e,t))return isSame(e,t);default:return e==t}}function compareConditions(e,t){if(!t.conditions||!t.logic||!isArray(t.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");var r="AND"===t.logic;return each(t.conditions,(function(n){var o;if(n.conditions&&isArray(n.conditions))o=compareConditions(e,n);else if(o=compare(getProperty(e,n.field),n.value,n.operator)){var i=n.field.split("."),a=i.pop();i.length&&each(i,(function(t){return e=e[t]})),void 0===getProperty(e,a)&&void 0!==n.value&&(o=!1)}if(o){if("OR"===t.logic)return r=!0,!1}else if("AND"===t.logic)return r=!1,!1})),r}function filterToConditions(e,t){if(void 0===t&&(t="="),!isObject(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!isArray(e.conditions)){var r=[];iterate(e,(function(e,n){isObject(e)&&"object"==typeof e.conditions?r.push(filterToConditions(e)):r.push({field:n,operator:t,value:e})})),e={conditions:r}}return e.logic||(e.logic="AND"),e}function search(e,t,r,n,o){if(void 0===r&&(r=null),void 0===n&&(n="="),void 0===o&&(o=0),!isIterable(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;var i,a=!1;if("string"==typeof t?i={conditions:[{field:t,value:r,operator:n||"="}]}:t?(o="number"==typeof n?n:0,n=r,isObject(t)?i=t:"function"==typeof t&&(a=!0,i=t)):(a=!0,i=function(e){return compareConditions({value:e},filterToConditions({logic:"AND",conditions:[{field:"value",operator:n||"=",value:r}]}))}),a||isObject(i)&&numProperties(i))if(isNumber(n)&&(o="number"==typeof n?n:0,n=void 0),isNumber(o)||(o=0),"function"==typeof i){for(var s=o;s<e.length;s++)if(i(e[s]))return s}else{i=filterToConditions(i);for(s=o;s<e.length;s++)if(compareConditions(e[s],i))return s}return-1}function getRow(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n="=");var o=search(e,t,r,n);return o>-1&&e[o]}function _deleteLoader(e,t,r){void 0===t&&(t=null),void 0===r&&(r=!1);var n=search(bbn.env.loaders,{key:e});if(n>-1){var o=bbn.env.loaders.splice(n,1)[0],i=getRow(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!r,i.abort=r):isObject(t)&&(i.success=!0)),!0}return!1}function getLoader(e){var t=search(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function abort(e){var t=getLoader(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")}function filter(e,t,r,n){if(void 0===r&&(r=null),void 0===n&&(n="="),!isArray(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");var o={},i=[],a="function"==typeof t;if(!t||!e.length)return e;if(e.length){if("object"==typeof t)n=r,o=t;else if("string"==typeof t)o[t]=r;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");return"function"==typeof t?each(e,(function(e,r){t(e,r)&&i.push(e)})):(o=filterToConditions(o,n)).conditions&&o.logic&&each(e,(function(e){compareConditions(e,o)&&i.push(e)})),i}}function abortURL(e){each(filter(bbn.env.loaders,{url:e}),(function(t){if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")}))}function addColors(e){if(numProperties(e)){bbn.var.colors||(bbn.var.colors={});var t=document.createElement("style");document.head.appendChild(t);var r=t.sheet;iterate(e,(function(e,t){bbn.var.colors[t]=e,r.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",0),r.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",0),r.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",0),r.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",0),r.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",0)}))}}function addInputs(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=""),e&&"FORM"===e.tagName){var n=function(t,r){var n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",t),n.setAttribute("value",r),e.appendChild(n)};t=JSON.parse(JSON.stringify(t||{})),r=r||"",t&&iterate(t,(function(t,o){var i=r?"".concat(r,"[").concat(o,"]"):o;t instanceof Date?n(i,t.toISOString()):t instanceof Array?t.forEach((function(t,r){var o="".concat(i,"[").concat(r,"]");"object"==typeof t?addInputs(e,t,o):n(o,t.toString())})):"object"!=typeof t||t instanceof File?n(i,t.toString()):addInputs(e,t,i)}))}}function addStyle(e,t){isObject(t)&&iterate(t,(function(t,r){e.style[r]=t}))}function adjustSize(e,t){var r=0;each(t,(function(t){t.style[e]="auto"})),each(t,(function(t,n){var o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>r&&(r=i)})),each(t,(function(t,n){r&&(t.style[e]=r+"px")}))}function adjustHeight(){var e=arguments;return 1===e.length&&isIterable(e[0])&&(e=e[0]),adjustSize("height",e)}function adjustWidth(){var e=arguments;return 1===e.length&&isIterable(e[0])&&(e=e[0]),adjustSize("width",e)}function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function replaceAll(e,t,r,n){return void 0===n&&(n=""),r.toString().replace(isObject(e)?e:new RegExp(escapeRegExp(e),"g"+n),t)}function getRequestId(e,t,r){var n={};return t&&iterate(t,(function(e,t){-1===t.indexOf("_bbn")&&(n[t]=e)})),e+":"+md5((r||"json")+JSON.stringify(n))}function extend(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=!1,n=[],o=0;o<e.length;o++)if(!0===e[o])r=!0;else{if(!e[o])continue;if("object"!=typeof e[o])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[o]);n.push(e[o])}if(!n.length)throw new Error("No argument given");var i=n[0];for(o=1;o<n.length;o++)iterate(n[o],(function(e,t){r?isArray(e)?(i[t]=isArray(i[t])?i[t]:[],each(e,(function(e,r){if(e&&"object"==typeof e){var n=i[t][r];isArray(e)?isArray(n)||(n=[]):isObject(n)||(n={}),i[t][r]=extend(!0,n,e)}else i[t][r]=e}))):isObject(e)?i[t]=extend(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:i[t]!==e&&(i[t]=e)})),n[o].__bbnNoData&&Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1});return i}function ajax(e,t,r,n,o,i){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=null),void 0===i&&(i=null),1===arguments.length&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(n=e.success),e.data&&(r=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=replaceAll("//","/",e)),t||(t="json");var a=getRequestId(e,r,t),s=getLoader(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&extend(r||{},{_bbn_token:bbn.env.token});var u=new AbortController,l={responseType:t,signal:u.signal};"text"===t&&(l.headers={accept:"text/javascript","Content-Type":"text/javascript"});var c=[e];isObject(r)&&numProperties(r)>0&&c.push(r),c.push(l);var f=2===c.length?"get":"post",d=axios[f].apply(null,c).then((function(t){if(_deleteLoader(a,t),bbn.fn.defaultEndLoadingFunction(e,h,r,t),200===t.status)isFunction(n)&&n(t.data,t.headers);else bbn.fn.defaultAjaxErrorFunction(d,t);return t})).catch((function(t){var n=axios.isCancel(t);if(_deleteLoader(a,t.message||t.response.data,n),bbn.fn.defaultEndLoadingFunction(e,h,r,t),n){var s=1;isFunction(i)&&(s=i(t.message,e)),s&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{s=1;isFunction(o)&&(s=o(t.request,t)),s&&bbn.fn.defaultAjaxErrorFunction(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}})),h=_addLoader(a,d,u);return bbn.fn.defaultStartLoadingFunction(e,h,r,a),d}}function animateCss(e,t,r){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function e(n){n.target.removeEventListener(n.type,e),"function"==typeof r&&r.call(this),n.target.classList.remove(t)}))}function arrayBuffer2String(e){return String.fromCharCode.apply(null,new Uint16Array(e))}function arrayFromProp(e,t){var r=[];return each(e,(function(e,n){r.push(getProperty(e,t))})),r}function autoExtend(e,t){bbn[e]||(bbn[e]={}),extend(bbn[e],t)}function baseName(e,t){if(e&&isString(e)){var r=e.split("/").pop();if(!t)return r;var n=t.length;if(r&&substr(r,-n)===t)return substr(r,0,r.length-n)}return""}function br2nl(e){return replaceAll("<br />","\n",replaceAll("<br/>","\n",replaceAll("<br>","\n",e)))}function date(e){var t=typeof e;if(void 0===e)return new Date;if("number"===t||isNumber(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(substr(e,0,4)),parseInt(substr(e,5,2))-1,parseInt(substr(e,8,2)),12);if(19===e.length)return new Date(parseInt(substr(e,0,4)),parseInt(substr(e,5,2))-1,parseInt(substr(e,8,2)),parseInt(substr(e,11,2)),parseInt(substr(e,14,2)),parseInt(substr(e,17,2)))}else if(isDate(e))return e;return!1}function fdatetime(e,t){void 0===t&&(t=!1);var r=date(e);return isDate(r)?void 0!==dayjs?dayjs(r).calendar(null,{sameDay:"["+bbn._("Today")+"] HH:mm",nextDay:"["+bbn._("Tomorrow")+"] HH:mm",nextWeek:"ddd D HH:mm",lastDay:"["+bbn._("Yesterday")+"] HH:mm",lastWeek:"ddd D HH:mm",sameElse:"DD/MM/YYYY HH:mm"}):r.toLocaleDateString():t&&isString(t)?t:""}function fdate(e,t){if(void 0===t&&(t=!1),!0===t)return fdatetime(e);var r=date(e);return isDate(r)?void 0!==dayjs?dayjs(r).format("L"):r.toLocaleDateString():t&&isString(t)?t:""}var bbn$2={_:function(e){return e}};function calendar(e,t){if(void 0===t&&(t=!1),void 0===dayjs$1)return fdate(e,t);var r=date(e);return isDate(r)?dayjs$1(r).calendar(null,{sameDay:"["+bbn$2._("Today")+"]",nextDay:"["+bbn$2._("Tomorrow")+"]",nextWeek:"ddd D",lastDay:"["+bbn$2._("Yesterday")+"]",lastWeek:"ddd D",sameElse:"L"}):t&&isString(t)?t:""}function callback(url,res,fn,fn2,ele){void 0===res&&(res=null),void 0===fn&&(fn=null),void 0===fn2&&(fn2=null),void 0===ele&&(ele=null);var tmp=!1;if(res){tmp=!0;var t=typeof res,isObj="object"===t.toLowerCase(),errTitle=void 0;if(isObj&&res.prescript)try{var preFn=new Function(res.prescript);preFn()}catch(e){error(e.message||"")}isObj&&void 0===res.url&&(res.url=url),tmp=fn&&isFunction(fn)?fn(res,ele):bbn.fn.defaultLinkFunction(res,ele),ele&&isObj&&void 0!==res.content&&("value"in ele?ele.value=res.content:ele.innerHTML=res.content),tmp&&isObj&&res.script&&(tmp="function"==typeof res.script?res.script(res.data?res.data:{},ele||null):function(data,ele){var r=null;try{r=eval(res.script),isFunction(r)&&(r=r(data,ele))}catch(e){log(e,res),error(isFunction(e.getMessage)?e.getMessage():null)}return r}(res.data?res.data:{},ele||!1)),tmp&&fn2&&isFunction(fn2)?fn2(res):isObj&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(res,ele),tmp&&isObj&&res.postscript&&eval(res.postscript),isObj&&res.error&&(errTitle=res.errorTitle||bbn.lng.server_response,bbn.fn.defaultAlertFunction(res.error,errTitle))}else bbn.fn.defaultAlertFunction(bbn.lng.errorText,bbn.lng.error);return tmp}function camelize(e){return e.replace(/^([A-Z])|[\s-](\w)/g,(function(e,t,r,n){return r?r.toUpperCase():t.toLowerCase()}))}function camelToCss(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})).replace("/^./",(function(e){return e.toLowerCase()}))}function canvasToImage(e){var t=new Image;return t.src=e.toDataURL("image/png"),t}function center(e){for(var t=e.parentNode,r=t.clientWidth,n=t.clientHeight;t&&(!r||!n);)r=(t=e.parentNode).clientWidth,n=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(n-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(n-e.offsetWidth)/2+t.scrollLeft)+"px",e}function checkPropsDetails(e,t,r){void 0===r&&(r=!1);var n,o={error:!1,result:!0};("string"==typeof t&&(t=[t]),isArray(t)||(o.error=bbn._("checkProps must receive a string or an array as props argument")),isObject(e)||(o.error=bbn._("checkProps must receive an object as obj argument")),o.error)||each(t,(function(t){var i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?o.error=t+" "+bbn._("is not defined"):i?(n="is"+substr(i,0,1).toUpperCase()+substr(i,1).toLowerCase(),void 0===bbn.fn[n]?o.error=i+" "+bbn._("is not a valid type"):bbn.fn[n](e[t])||(o.error=t+" "+bbn._("is not a")+" "+i)):r&&!e[t]&&(o.error=t+" "+bbn._("is empty")),o.error)return!1}));return o.error&&(o.result=!1),o}function checkProps(e,t,r){return void 0===r&&(r=!1),checkPropsDetails(e,t,r).result}function checkPropsOrDie(e,t,r){void 0===r&&(r=!1);var n=checkPropsDetails(e,t,r);if(n.error)throw new Error(n.error);return!0}function clone(e){return isArray(e)?e.slice().map((function(e){return"object"==typeof e?clone(e):e})):isObject(e)?extend(!0,Object.create(Object.getPrototypeOf(e)),e):e}function colorToHex(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}function copy(e){return new Promise((function(t){var r;if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?navigator.clipboard.write([new ClipboardItem((r={},r[e.type.toString()]=e,r))]).then((function(){t(!0)})):isObject(e)&&isFunction(e.toBlob)?e.toBlob((function(e){var r;navigator.clipboard.write([new ClipboardItem((r={},r[e.type.toString()]=e,r))]).then((function(){t(!0)}))})):(navigator.clipboard.writeText(e),t(!0)));var n=document.createElement("textarea");n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t(!0)}t(!1)}))}function count(e,t,r,n){return void 0===r&&(r=null),void 0===n&&(n="="),filter(e,t,r,n).length||0}dayjs$1.extend(calendar$1),dayjs$1.extend(isLeapYear);for(var crc32Table=[],i=0;i<256;i++){for(var c=i,j=0;j<8;j++)c=1&c?3988292384^c>>>1:c>>>1;crc32Table.push(c)}function crc32(e){for(var t=~0,r=0;r<e.length;r++){var n=e.charCodeAt(r);t=t>>>8^crc32Table[255&(t^n)]}return~t>>>0}var __spreadArray=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function createObject(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.length&&extend.apply(void 0,__spreadArray([r],e,!1)),r}function cssExists(e){for(var t,r,n=document.styleSheets,o=0;o<n.length;o++){t=1;try{r=n[o].rules||n[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(var i=0;i<r.length;i++)if(new RegExp("(^|\\s)"+escapeRegExp(e)+"(\\{|\\s)","g").test(r[i].selectorText))return!0}return!1}function dateSQL(e,t){var r=date(e);if(r)return dayjs$1(r).format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))}function daysInMonth(e){var t=date(e);return!!t&&dayjs(t).daysInMonth()}function deepPath(e,t,r,n){var o;void 0===n&&(n=[]);return(o=search(e,t,0))>-1?(n.push(o),n):(each(e,(function(e,o){if(isArray(e[r])){var i=n.slice();i.push(o);var a=deepPath(e[r],t,r,i);if(!1!==a)return a}})),!1)}function defaultAjaxAbortFunction(e,t){log(e)}function defaultAjaxErrorFunction(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null),log(t,r)}function defaultAlertFunction(e,t){alert(e)}function defaultConfirmFunction(e,t,r){void 0===r&&(r=null);var n=0;confirm(e)&&isFunction(t)&&(t(),n=1),!n&&isFunction(r)&&r()}function defaultEndLoadingFunction(e,t,r,n){return!0}function defaultErrorFunction(e){log(e)}function defaultHistoryFunction(e){return!0}function defaultLinkFunction(e,t){return!0}function defaultPostLinkFunction(e,t){return!0}function defaultPreLinkFunction(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=null),log("defaultPreLinkFunction",e,t,r),!0}function defaultResizeFunction(){return!0}function defaultStartLoadingFunction(e,t,r,n){return!0}function deleteProp(e,t){checkType(e,"object",bbn._("The obj must be an object in setProp")),checkType(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]}function isValue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("object"==typeof o&&!isNull(o))return!1}return!0}var diffObjProcessed=[];function diffObj(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=!1),n||(diffObjProcessed=[]);var o="unchanged";void 0===n&&(n=!1);var i=createObject();if(!isFunction(e)&&!isFunction(t)){if(isValue(e)||isValue(t)){var a=function(e,t){return e===t||isDate(e)&&isDate(t)&&e.getTime()===t.getTime()?o:void 0===e?"created":void 0===t?"deleted":"updated"}(e,t);if(r||a!==o){var s=createObject();return Object.defineProperty(s,"type",{value:a,enumerable:!1}),Object.defineProperty(s,"data",{value:void 0===e?t:e,enumerable:!1}),Object.defineProperty(s,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==e&&Object.defineProperty(s,"newData",{value:t,enumerable:!1}),s}return!1}if(isDom(e)||isDom(t))return!1;if(diffObjProcessed.includes(e)||diffObjProcessed.includes(t))return!1;for(var u in diffObjProcessed.push(e,t),e)if(!isFunction(e[u])){var l=void 0;void 0!==t[u]&&(l=t[u]),(a=diffObj(e[u],l,r,!0))&&(i[u]=a)}for(var u in t){if(!isFunction(t[u])&&void 0===e[u])(a=diffObj(void 0,t[u],r,!0))&&(i[u]=a)}}return!(n&&!r&&!numProperties(i))&&i}function dirName(e){if(isString(e)&&e){for(;"/"===substr(e,e.length-1);)e=substr(e,0,e.length-1);var t=e.lastIndexOf("/");if(t>0)return substr(e,0,t);if(0===t)return"/"}return""}function isBlob(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Blob]"!=={}.toString.apply(o))return!1}return!0}function fileExt(e){if(e&&isString(e)){var t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function isCanvas(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof HTMLCanvasElement))return!1}return!0}function downloadContent(e,t,r){if(void 0===r&&(r=null),isCanvas(t))t.toBlob((function(t){var r=document.createElement("a");r.download=e,r.href=window.URL.createObjectURL(t),r.className="bbn-no",r.click(),window.URL.revokeObjectURL(r.href)}),r||"image/png");else{r?-1===r.indexOf("/")&&(r="text/"+r):r=isObject(t)&&t.type?t.type:"octet/stream";var n=window.document.createElement("a");n.className="bbn-no";var o=null;if(isString(t))o=new Blob([t],{type:r});else try{o=t}catch(e){log(e)}n.href=window.URL.createObjectURL(o),n.download=e,document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(n.href),document.body.removeChild(n)}}function download(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=null),t&&"object"==typeof t&&(r=t,t=""),ajax(e,"blob",r||{_bbn_download:1},(function(r,n){if(!t){var o="content-disposition",i="attachment; filename=";t=(null==n?void 0:n[o])&&0===n[o].indexOf(i)?substr(n[o],22,n[o].length-21-2):baseName(e)}if(isBlob(r)){var a=fileExt(t);if("string"==typeof t&&("type"in r&&"text/html"!==r.type||["php","html"].includes(a)))return void downloadContent(t,r)}}),(function(e){bbn.fn.defaultAjaxErrorFunction(e)}))}function eraseCookie(e){document.cookie=e+"=; Max-Age=-99999999;"}function escapeDquotes(e){return isString(e)?e.replace(/"/g,'\\"'):e}function escapeSquotes(e){return isString(e)?e.replace(/'/g,"\\'"):e}function escapeTicks(e){return isString(e)?e.replace(/`/g,"\\`"):e}function escapeUrl(e,t){var r="";e.match("^(http|https)://")&&(r+="http","s"===(e=e.substring(4)).substr(0,1)&&(r+="s",e=e.substring(1)),r+="://",e=e.substring(3)),each(dirName(e).split("/"),(function(e){r+=encodeURIComponent(e)+"/"}));var n=baseName(e),o="?",i="";if(n.indexOf(o)){var a=n.split("?");o="&",i="?"+a[1],n=a[0]}return t&&isString(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",r+encodeURIComponent(n)+i+t}function extendOut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=null,n=0,o=e;n<o.length;n++){var i=o[n];if(!isObject(i))throw new Error("Each argument for extendOut must be an object, "+typeof i+" given");if(null===r)r=i;else for(var a in i)isObject(r[a],i[a])?extendOut(r[a],i[a]):void 0===r[a]&&(r[a]=i[a])}return r}function fieldValue(e){var t;return"checkbox"===e.type?e.checked?(t=e.value)||(t=1):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function findAll(e,t,r,n){var o;void 0===n&&(n=[]);for(var i=0;(o=search(e,t,i))>-1;)n.push(e[o]),i=o+1;return each(e,(function(e){isArray(e[r])&&findAll(e[r],t,r,n)})),n}function fori(e,t,r,n){if(void 0===r&&(r=e.length-1),void 0===n&&(n=0),isArray(e)){var o=e.length-1;isNumber(r)&&0<r&&r<=o||(r=o),(!isNumber(n)||!(0<=n&&n<o)||n>r)&&(n=0);for(var i=n;i<=r;i++)if(!1===t(e[i],i))return}}function forir(e,t,r,n){if(void 0===r&&(r=e.length-1),void 0===n&&(n=0),isArray(e)){var o=e.length-1;isNumber(r)&&0<r&&r<=o||(r=o),(!isNumber(n)||!(0<=n&&n<o)||n>r)&&(n=0);for(var i=r;i>=n;i--)if(!1===t(e[i],i))return}}function format(e){var t=Array.prototype.slice.call(arguments,1);if(t.length){var r=0;return e.replace(/\%([d|s])/g,(function(e,n){var o=t[r++];return checkType(o,"d"===n?"number":"string",bbn._("The value doesn't correspond to the format")),o}))}return e}function formatBytes(e,t){if(void 0===t&&(t=2),!e)return"0 B";var r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}function formatDate(e,t){return dayjs(e).format(t)}function formatSize(e,t){return isNumber(e)?e+"px":isString(e)?e:!t&&"auto"}function formdata(e){var t,r,n=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return each(n,(function(e,n){if(void 0!==(r=fieldValue(e))&&!e.disabled){var i=e.name;if(-1===i.indexOf("[]")&&i.indexOf("[")>-1&&i.indexOf("]")>-1&&i.lastIndexOf("]")===i.length-1&&(i=replaceAll("][",".",i),i=replaceAll("[",".",i),i=replaceAll("]","",i)),i.length>2&&i.indexOf("[]")===i.length-2)t=substr(i,0,i.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(r);else if(i.indexOf(".")>-1){var a=void 0,s=i.split(".");a=o;for(var u=0;u<s.length;u++)void 0===o[s[u]]&&(u<s.length-1?a[s[u]]={}:a[s[u]]=r),a=a[s[u]]}else o[i]=r}})),o}function fromXml(e,t){var r=null;if(window.DOMParser)r=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw r.parseError.reason+" "+r.parseError.srcText}function n(e,r){if("#text"!=e.nodeName){var o={},i=r[e.nodeName];if(i?Array.isArray(i)?r[e.nodeName].push(o):r[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?r[e.nodeName]=[o]:r[e.nodeName]=o,e.attributes)for(var a=0,s=e.attributes;a<s.length;a++){var u=s[a];o[u.nodeName]=u.nodeValue}for(var l=0,c=e.childNodes;l<c.length;l++){n(c[l],o)}}else{var f=e.nodeValue;f.trim()&&(r["#text"]=f)}}for(var o={},i=0,a=r.childNodes;i<a.length;i++){n(a[i],o)}return o}function ftime(e,t){var r=date(e);return isDate(r)?void 0!==dayjs?dayjs(r).calendar():r.toLocaleDateString():t&&isString(t)?t:""}function unique(e){return e.filter((function(e,t,r){return t===r.indexOf(e)}))}function getAllTags(){return unique(Array.prototype.map.apply(document.all,[function(e){return e.tagName.toLowerCase()}]))}function getAncestors(e,t){void 0===t&&(t=null);var r=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)r.push(e);else for(!0===t&&r.push(e);e=e.parentElement;)r.push(e);return r}function getAttributes(e){e.getAttributeNames||error("The element is not a proper HTML Element");var t=Object.create(null);return e.getAttributeNames().forEach((function(r){t[r]=e.getAttribute(r)})),t}function getBrowserName(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}}function getBrowserVersion(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}}function getCookie(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t)){var i=o.substring(t.length,o.length);if(i)return JSON.parse(unescape(i)).value}}return null}function getCssVar(e){return 0!==e.indexOf("--")&&(e="--"+e),getComputedStyle(document.documentElement).getPropertyValue(e)}function getDay(e){var t=date(e);if(t){var r=t.getTime(),n=t.getYear(),o=365*(n-1970);t.getMonth()<2&&n--;for(var i=1972;i<=n;i+=4)o++;return o+Math.floor(r/864e5)}return!1}function getDeviceType(){var e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function getHTMLOfSelection(){var e,t=window.getSelection();if(t.rangeCount>0){log("RANGE",e=t.getRangeAt(0));var r=e.cloneContents();log("clonedSelection",r);var n=document.createElement("div");return n.appendChild(r),n.innerHTML}return""}function getEventData(e){var t=e.dataTransfer||e.clipboardData,r=t.getData("Text"),n={raw:r,files:[],str:[]};return new Promise((function(o,i){var a=!(t instanceof DataTransfer);if(!r&&"copy"===e.type){var s=window.getSelection();n.raw=s.toString();var u=getHTMLOfSelection();n.str.push({type:"text/plain",data:n.raw}),u!==n.raw?n.str.push({type:"text/html",data:u}):0===n.raw.trim().indexOf("<")&&n.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+n.raw+"\n</code>"}),a=!0,o(n)}if(!a){var l=[],c=t.items.length;each(t.items,(function(e,r){var i=e.kind,s=e.type;if("file"===i){var u=t.files[r];if(!s&&u.name){var f=u.name.split(".");s=f[f.length-1]}var d=u?u.name:bbn._("untitled"),h=u?u.size:null,p=u?u.lastModified:null,m=e.getAsFile();m?(a=!0,c--,n.files.push({type:s,data:m,name:d,size:h,mdate:p}),l.push(d),c||(n.raw||(n.raw=l.join(", ")),o(n))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+d)}else a=!0,e.getAsString((function(e){c--,n.str.push({type:s,data:e}),"text/plain"===s&&l.push(name),c||(n.raw||(n.raw=l.join(", ")),o(n))}))}))}a||setTimeout((function(){o(n)}))}))}function getField(e,t,r,n,o){var i;if(void 0===r&&(r=""),void 0===n&&(n=null),void 0===o&&(o="="),t&&(i=getRow(e,r,n,o)))return i[t]}function getFieldValues(e,t,r,n,o){checkType(t,"string"),r&&(e=filter(e,r,n,o));var i=[];return each(e,(function(e){return-1===i.indexOf(e[t])?i.push(e[t]):null})),i}function removeHtmlComments(e){return isString(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function getHtml(e,t){void 0===t&&(t=!1);var r=e.innerHTML();return t&&(r=removeHtmlComments(r)),r.trim()}function getPath(e){for(var t,r=e,n=0,o=function(){var e=r,o=e.localName;if(!o)return"break";if(e===document.body)return"break";if(e.id)return{value:"#"+e.id};n||(e.className&&" "!==e.className&&(o+="."+replaceAll(" ",".",replaceAll(" "," ",e.className))),n=1);var i=r.parentNode;if(i.children.filter((function(e){return e.tagName===o})).length>1){var a=i.children.indexOf(e)+1;a>1&&(o+=":nth-child("+a+")")}t=o+(t?">"+t:""),r=i};r.length;){var i=o();if("object"==typeof i)return i.value;if("break"===i)break}return t}function getProp(e,t){return checkType(e,"object",bbn._("The obj must be an object in setProp")),checkType(t,"string",bbn._("The prop must be a string in setProp")),e[t]}function getScrollBarSize(){if(void 0===bbn.env.scrollBarSize){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var r=document.createElement("div");r.style.width="100%",e.appendChild(r);var n=r.offsetWidth;e.parentNode.removeChild(e);var o=t-n;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize}function getText(e){return e.innerText().trim()}function getTimeoff(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)}function happy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),log.apply(this,e),this}function hex2rgb(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function history(){return window.history||!1}function html2text(e){var t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function imageToCanvas(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function imgToBase64(e,t){return void 0===t&&(t="image/png"),imageToCanvas(e).toDataURL(t)}function info(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),log.apply(this,e),this}function treatAjaxArguments(e){var t,r,n={};if(isObject(e[0])&&1===e.length)return e[0];for(r=0;r<e.length;r++)t=(t=typeof e[r]).toLowerCase(),isFunction(e[r])?(n.errorFn&&!n.abortFn&&(n.abortFn=e[r]),n.successFn&&!n.errorFn?n.errorFn=e[r]:n.successFn||(n.successFn=e[r])):1===e[r]||!0===e[r]?n.force=!0:"string"===t?n.url?n.datatype=e[r]:0===e[r].indexOf("#")||0===e[r].indexOf(bbn.env.root+"#")?n.url=substr(e[r],bbn.env.root.length):(n.url=e[r],0===n.url.indexOf(bbn.env.root)&&(n.url=substr(n.url,bbn.env.root.length))):e[r]&&"object"===t&&(e[r]instanceof Event?n.e=e[r]:n.ele||1!==e[r].nodeType?"object"===t.toLowerCase()&&(n.obj=e[r]):n.ele=e[r]);return!n.url&&numProperties(n)&&(n.url=bbn.env.path),void 0===n.obj&&(n.obj={_bbn:"public"}),n.datatype||(n.datatype="json"),n}function setNavigationVars(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=!1),bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(substr(e,0,7))?e:bbn.env.root+e,bbn.env.path=substr(bbn.env.url,bbn.env.root.length),bbn.env.params=filter(bbn.env.path.split("/"),(function(e){return""!==e}));var o=window.history;if(o){var i=o.state,a={url:bbn.env.path,old_path:bbn.env.old_path||null,data:r||{},reload:!1};i&&i.url===bbn.env.path&&(i.data&&extend(a.data,i.data),i.title&&!t&&(t=i.title),n=!0),t=t?html2text(t):bbn.env.siteTitle,n?(a.reload=!0,o.replaceState(a,t,bbn.env.url)):o.pushState(a,t,bbn.env.url)}}function link(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=treatAjaxArguments(e),n=1;if(!0===r)return!0;if(!r)return link(window.location.href);if(0===r.url.indexOf("javascript:"))return!0;if(0===r.url.indexOf("data:"))return!0;if(0===r.url.indexOf("#"))return location.href=bbn.env.url+r.url,!0;if(0===r.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=r.url,setTimeout((function(){bbn.env.ignoreUnload=!1}),0),!1;if(getLoader(r.url))return!1;if((0===r.url.indexOf("http://")||0===r.url.indexOf("https://"))&&0!==r.url.indexOf(bbn.env.host))return r.e&&r.e.preventDefault(),window.open(r.url),!1;if(r.url!==bbn.env.params.join("/")||1===r.force){if(r.successFn)n=r.successFn(r.url);else if(bbn.fn.defaultPreLinkFunction){var o=bbn.fn.defaultPreLinkFunction(r.url,r.force,r.ele);void 0!==o.data?(extend(r.obj,o.data),n=1):n=o}if(n){1!==n&&"string"==typeof n&&(r.url=n);var i=bbn._("The Ajax call to")+" "+r.url+" ";return ajax(r.url,r.datatype,r.obj,(function(e){e||log(i+bbn._("returned no answer")),isObject(e)&&(0===Object.keys(e).length&&log(i+bbn._("returned an empty object")),e.new_url?(e.old_path=r.url,r.url=e.new_url):e.url&&r.url!==e.url&&(e.old_path=r.url)),callback(r.url,e,r.successFn,null,r.ele)&&void 0===e.noNav&&0!==bbn.env.path.indexOf(r.url)&&setNavigationVars(r.url,(e.title?e.title+" - ":"")+bbn.env.siteTitle)}),r.errorFn||null)}}return!0}function post(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=treatAjaxArguments(e);if(r.url)return ajax(r.url,r.datatype,r.obj,(function(e){callback(r.url,e,r.successFn,null,r.ele)}),r.errorFn,r.abortFn)}function submit(e,t,r){var n,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),n=formdata(e))){e.setAttribute("action",null);var i=[o,n];!r&&e.getAttribute("data-script")&&(r=(r=new Function(e.getAttribute("data-script")))()),r&&i.push(r),post.apply(void 0,i)}}function resize(){var e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));var r=parseInt(getCssVar("mobile-limit"))||650,n="bbn-screen-"+(bbn.env.width<r?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;each(o,(function(e,t){if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==n&&o.splice(t,1,n),!1})),i||o.push(n),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function isMobileDevice(){return"mobile"===getDeviceType()}function isTabletDevice(){return"tablet"===getDeviceType()}function isMobile(){return isMobileDevice()||isTabletDevice()}function init(e,t){bbn.env.isInit&&!t||(bbn.env.root=document.baseURI.length>0?document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==substr(bbn.env.root,-1)&&(bbn.env.root+="/"),bbn.env.isInit||"undefined"==typeof dayjs||each(["advancedFormat","arraySupport","badMutable","buddhistEra","calendar","customParseFormat","dayOfYear","devHelper","duration","isBetween","isLeapYear","isSameOrAfter","isSameOrBefore","isToday","isTomorrow","isYesterday","isoWeek","isoWeeksInYear","localeData","localizedFormat","minMax","objectSupport","pluralGetSet","quarterOfYear","relativeTime","timezone","toArray","toObject","updateLocale","utc","weekOfYear","weekYear","weekday"],(function(e){window["dayjs_plugin_"+e]&&dayjs.extend(window["dayjs_plugin_"+e])})),"object"==typeof e&&extend(!0,bbn,e),bbn.env.path=substr(bbn.env.url,bbn.env.root.length),each(bbn.env.path.split("/"),(function(e,t){""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)})),bbn.var.colors&&addColors(bbn.var.colors),bbn.env.lang&&void 0!==dayjs&&dayjs.locale(bbn.env.lang),window.onfocus=function(){bbn.env.isFocused=!0},window.onblur=function(){bbn.env.isFocused=!1,bbn.env.timeoff=Math.round((new Date).getTime()/1e3)},document.addEventListener("focusin",(function(e){e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.last_focus=(new Date).getTime()})),document.addEventListener("click",(function(e){if(bbn.env.last_focus=(new Date).getTime(),"ajax"===bbn.env.nav){var t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){for(var r=t;r&&"A"!==r.tagName&&"BODY"!==r.tagName;)r=r.parentElement;t=r&&"A"===r.tagName?r:null}return t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")?(e.preventDefault(),e.stopPropagation(),link(t.getAttribute("href")),!1):void 0}})),each(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"),(function(e){e.addEventListener("submit",(function(t){submit(e,t)}))})),window.addEventListener("hashchange",(function(){bbn.env.hashChanged=(new Date).getTime()}),!1),window.addEventListener("resize",(function(){resize()})),window.addEventListener("orientationchange",(function(){resize()})),resize(),isMobile()&&(document.body.classList.add("bbn-mobile"),isTabletDevice()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){var t=window.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){var r=t.state;r?link(r.url,extend({title:r.title||bbn.env.siteTitle},r.data||{})):r&&r.data&&isFunction(r.data.script)&&r.data.script()}}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")),bbn.env.logging&&log("Logging in bbn is enabled"))}function isActiveInterface(e){return void 0===e&&(e=600),!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e}function isBoolean(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(![!0,!1].includes(o))return!1}return!0}function isColor(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i"),n=0,o=e;n<o.length;n++){var i=o[n];if(!isString(i))return!1;if(!r.test(i))return!1}return!0}function isComment(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof Comment))return!1}return!0}function isDesktopDevice(){return"desktop"===getDeviceType()}function isValidDimension(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||isNumber(substr(e,0,1)))){var t=document.createElement("div");t.style.width=e;var r=!!t.style.width.length;return t.remove(),r}return!1}function isDimension(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("number"!=typeof o||o<0)return!1;if(!isValidDimension(o))return!1}return!0}function isEmail(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,n=0,o=e;n<o.length;n++){var i=o[n];if(!isString(i))return!1;if(!r.test(i))return!1}return!0}function isEvent(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){if(!(n[r]instanceof Event))return!1}return!0}function isFocused(e,t){return void 0===t&&(t=!1),e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)}function isIP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!isString(o)||!bbn.var.regexp.ip.test(o))return!1}return!0}function isHostname(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!isString(o))return!1;if(!isIP(o)&&!bbn.var.regexp.hostname.test(o))return!1}return!0}function isInside(e,t){var r=getAncestors(e);if(r.length){if(isString(t)){var n=!1;return each(r,(function(e){if(e.matches&&e.matches(t))return n=!0,!1})),n}if(t instanceof HTMLElement)return r.indexOf(t)>-1}return!1}function isInViewport(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect();if(t)return r.top>=0&&r.left>=0&&r.right<=(window.innerWidth||document.documentElement.clientWidth)&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight);var n=e.offsetHeight,o=e.offsetWidth;return r.top>=-n&&r.left>=-o&&r.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)+n}function isPercent(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("string"!=typeof o||!o.match(/^\d+(?:\.\d+)?%$/))return!1}return!0}function isPrimitive(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(null!==o&&("object"==typeof o||"function"==typeof o))return!1}return!0}function isPromise(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Promise]"!=={}.toString.apply(o))return!1}return!0}function isPropSize(e){var t=!1;return each(["width","height","gap","margin","padding","top","left","right","bottom"],(function(r){if(-1!==e.indexOf(r))return t=!0,!1})),t}function isSQLDate(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("string"!=typeof o||!o.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1}return!0}function isSymbol(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if("[object Symbol]"!=={}.toString.apply(o))return!1}return!0}function isURL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!bbn.var.regexp.url.test(o))return!1}return!0}function isValidName(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!isString(o)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(o))return!1}return!0}function isVue(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(!t.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue)for(var n=0,o=t;n<o.length;n++){if(!(s=o[n])||"function"!=typeof s.render)return!1}else for(var i=0,a=t;i<a.length;i++){var s;if(!((s=a[i])instanceof window.Vue))return!1}return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||(e=bbn.cp).isComponent.apply(e,t)}function lightenDarkenHex(e,t){if(e&&t){var r="#"===e[0];e=r?e.slice(1):e;var n=parseInt(e,16),o=(n>>16)+t,i=(n>>8&255)+t,a=(255&n)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(r?"#":"")+(a|i<<8|o<<16).toString(16)}}function warning(e){var t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),log.apply(this,t)}function makeReactive(e,t,r,n){var o=(null==r?void 0:r.$cid)||"",i="__bbn_"+(o?o+"_":"");if(e&&"object"==typeof e&&[void 0,Object,Array].includes(e.constructor)){if(e.__bbnIsProxy&&e.__bbnParent===r)return e;r&&r.$options&&"bbn-loadbar"===r.$options.name&&log(["MAKING bbn-loadbar",e]),e.__bbnWatchers||Reflect.defineProperty(e,"__bbnWatchers",{value:createObject(),writable:!0,configurable:!0,enumerable:!1});var a={get:function(a,s){var u=Reflect.get(a,s),l=a.__bbnRoot||a;if(isSymbol(s))return Reflect.get(l,s);var c=n?n+"."+s:s,f=i+(isNumber(s)?s.toString():s);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(s)&&isArray(a))return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=l[s].apply(l,e);return warning("DOING ARRAY STUFF"),log(a.__bbnParent),t(a,"length",r),o};if(isFunction(u))return u;if("__bbnRoot"===s){for(var d=e;d&&(null==d?void 0:d.__bbnTarget);)d=d.__bbnTarget;return d}return"__bbnIsProxy"===s||("__bbnTarget"===s?a:"__bbnParent"===s?r:"__bbnWatchers"===s?a.__bbnWatchers:0===s.indexOf("__bbn_")?Reflect.get(a,s):"length"===s&&isArray(a.__bbnRoot||a)?l.length:s in a&&u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)?(u.__bbnIsProxy&&u.__bbnParent===r||(f in l||Reflect.defineProperty(l,f,{value:makeReactive(u,t,r,c),writable:!0,configurable:!0,enumerable:!1}),l[f].__bbnIsProxy&&!l.__bbnWatchers[o]&&(l.__bbnWatchers[o]=c)),l[f]):u)},set:function(e,a,s){if(isSymbol(a))return Reflect.get(e,a,s);var u=e.__bbnRoot||e,l=n?n+"."+a:a;if(isSymbol(a))return Reflect.get(e,a);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&log(["Setting proxy prop in "+r.$options.name,e,a,s]),!isSame(u[a],s)){if(0===a.indexOf("__bbn_"))Reflect.defineProperty(u,a,{value:makeReactive(s,t,r,l),writable:!0,configurable:!0,enumerable:!1});else if(s&&"object"==typeof s&&[void 0,Object,Array].includes(s.constructor)){var c=i+(isNumber(a)?a.toString():a);Reflect.defineProperty(u,c,{value:makeReactive(s,t,r,l),writable:!0,configurable:!0,enumerable:!1}),u[c].__bbnIsProxy&&!u.__bbnWatchers[o]&&(u.__bbnWatchers[o]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&log(["Setting proxy prop in "+r.$options.name+" "+(isNumber(a)?a.toString():a),s,e]),Reflect.set(u,a,s),t(e,a,r)}return!0},defineProperty:function(e,o,a){var s=e,u=n?n+"."+o:o;if("__bbnWatchers"===o||isSymbol(o)||0===o.indexOf("__bbn_"))Reflect.defineProperty(s,o,a);else{var l=i+(isNumber(o)?o.toString():o);Reflect.defineProperty(s,l,{value:makeReactive(a.value,t,r,u),writable:!0,configurable:!0,enumerable:!1})}return t(e,o,r),!0},deleteProperty:function(e,t){var r=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(r,t);else{var n=i+(isNumber(t)?t.toString():t);Reflect.deleteProperty(r,n),Reflect.deleteProperty(e,t)}return!0}};return new Proxy(e,a)}return e}function map(e,t,r,n){return void 0===n&&(n=0),e.map((function(e,o){return e=t(e,o,n),r&&e[r]&&isArray(e[r])&&(e[r]=map(e[r],t,r,n+1)),e}))}function money(e,t,r,n,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),r||(r=void 0===r&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),n||(n=!(void 0!==n||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),isNumber(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){var s=e.toFixed(a).replace(".",o);return r&&(s+=" "+(t?"K"+r:r)),s}if((isNaN(e)||!e)&&n)return n;if(isNaN(e)||!e)return 0+(r?" "+r:"");t&&e&&(e/=1e3,r&&(r="K"+r));var u=e.toFixed(a),l=0,c=1e4;return u&&((c=u.indexOf("."))<=0?c=1e4:l=u.length-c),u.replace(/./g,(function(e,t,r){return"."===e?o:t&&(r.length-t-l)%3==0&&t<c?i+e:e}))+(r?" "+r:"")}function move(e,t,r){if(r>=e.length)for(var n=r-e.length;1+n--;)e.push(void 0);return e.splice(r,0,e.splice(t,1)[0]),e}function multiorder(e,t){if(!t)return e;var r;if(Array.isArray(t)||"object"!=typeof t)r=t;else for(var n in r=[],t)r.push({field:n,dir:t[n]});if(!Array.isArray(r))throw new Error("The orders argument must be an array");return e.slice().sort((function(e,t){for(var n,o=0,i=r;o<i.length;o++){var a=i[o];if(0!==(n=_compareValues(e,t,a.field,a.dir)))return n}return 0}))}function mutateArray(e,t){if(!isArray(e,t))throw new TypeError("mutateArray can only be called with arrays");var r=new Map(t.map((function(e){return[hash(e),e]}))),n=[];t.forEach((function(e){n.push(e)}));for(var o=e.length;o--;)r.has(hash(e[o]))||e.splice(o,1);for(var i=0;i<n.length;i++)if(i>=e.length||!isSame(e[i],n[i])){var a=search(e,n[i]);if(-1!==a){var s=e.splice(a,1)[0];e.splice(i,0,s)}else e.splice(i,0,n[i])}return e.length>n.length&&e.splice(n.length,e.length-n.length),e}function nl2br(e,t){return replaceAll("\n","<br>"+(t?"\n":""),e)}function objectToFormData(e,t,r){void 0===t&&(t=""),void 0===r&&(r=null);var n=new FormData,o=function(e,t){void 0===t&&(t=""),(!r||isArray(r)&&!r.includes(t))&&(e instanceof File?n.append(t,e):isArray(e)?each(e,(function(e,r){o(e,t+"["+r+"]")})):isObject(e)&&Object.keys(e).length?iterate(e,(function(r,n){n in e&&o(r,t?t+"["+n+"]":n)})):isNull(e)||void 0===e||n.append(t,e))};return o(e,t),n}function order(e,t,r){return void 0===r&&(r="asc"),e?e.sort((function(e,n){return _compareValues(e,n,t,r)})):e}function selector(e){return"string"==typeof e?document.querySelector(e):e}function outerHeight(e){if((e=selector(e))&&"offsetHeight"in e){var t=window.getComputedStyle(e),r=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+r)}}function outerWidth(e){e=selector(e);var t=window.getComputedStyle(e),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+r)}function percent(e,t){return t/100*e}function pickValue(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]}function setProperty(e,t,r,n){if("object"==typeof e&&"string"==typeof t){var o=e,i=t.split(".");each(i,(function(e,t){if(!o){if(!n)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=r:o=o[e]}))}}function postOut(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n="");var o=document.body.querySelector("form#bbn-form_out");o||((o=document.createElement("form")).classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),setProperty(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",n||"_blank"),t||(t={}),(t=createObject(t)).bbn||(t.bbn="public"),addInputs(o,t),o.submit(),r&&r())}function printf(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,r){return void 0!==t[r]?t[r]:e}))}function quotes2html(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=replaceAll("'","&#39;",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=replaceAll('"',"&quot;",e)),e}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function randomString(e,t,r){var n,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};r||(r="nlu"),e||(n=randomInt(8,14)),"string"==typeof t?(r="n",delete i.l,delete i.u,i.n=t,n||(n=e)):"number"==typeof t&&e<t?n=randomInt(e,t):e&&(n=e);for(var a="",s=0;s<n;s++)0===s?"n"!==r&&(o=-1===r.indexOf("u")?"l":"u"):o=r[Math.floor(Math.random()*r.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a}function removeEmpty(e){var t=[];if(isArray(e))for(var r=0;r<e.length;r++){var n=!1;e[r]&&(isArray(e[r])?e[r].length&&(n=!0):isObject(e[r])?numProperties(e[r])&&(n=!0):n=!0),n&&t.push(e[r])}return t}function removeExtraSpaces(e){return e.replace(/\s+/g," ").trim()}function removeTrailingChars(e,t){if(t||(t=" "),t.length){for(;substr(e,-t.length)===t;)e=substr(e,0,e.length-t.length);for(;substr(e,0,t.length)===t;)e=substr(e,t.length)}return e}function repeat(e,t){return e.repeat(t)}function replaceSelection(e,t){var r,n,o;if((r=window.getSelection()).getRangeAt&&r.rangeCount){if((n=window.getSelection().getRangeAt(0)).deleteContents(),n.createContextualFragment)o=n.createContextualFragment(e);else{var i=document.createElement("div"),a=void 0;for(i.innerHTML=e,o=document.createDocumentFragment();a=i.firstChild;)o.appendChild(a)}var s=o.firstChild,u=o.lastChild;n.insertNode(o),r.removeAllRanges(),t?(s&&(n.setStartBefore(s),n.setEndAfter(u)),r.addRange(n)):(n.setStartAfter(u),r.addRange(n))}}function rgb2hex(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}function riterate(e,t,r){return void 0===r&&(r=!1),iterate(e,t,r,!0)}function roundDecimal(e,t){return Math.round(Math.pow(Math.pow(e,t),-t))}function trim(e,t){if(void 0===t&&(t=" ")," "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=substr(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=substr(e,0,e.length-t.length);return e}function sanitize(e,t){void 0===t&&(t="_");for(var r=["[","]","{","}","(",")","-","+","*","/"],n="[",o=0;o<t.length;o++)r.includes(t[o])&&(n+="\\"),n+=t[o];n+="]+";var i=new RegExp(n,"g");return trim(removeAccents(e).replace(/[^a-z0-9]/gi,t).replace(i,t),t)}function selectElementText(e,t){if(void 0===t&&(t=null),t=t||window,e instanceof HTMLInputElement)e.select();else{var r,n,o=t.document;t.getSelection&&o.createRange?(r=t.getSelection(),(n=o.createRange()).selectNodeContents(e),r.removeAllRanges(),r.addRange(n)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&((n=o.body.createTextRange()).moveToElementText(e),n.select())}}function setCookie(e,t,r){var n="";if(r){var o=new Date;o.setTime(o.getTime()+24*r*60*60*1e3),n="; expires="+o.toUTCString()}var i=escape(JSON.stringify({value:t}));document.cookie=e+"="+i+n+"; path=/"}function setCssVar(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)}function setProp(e,t,r,n,o){void 0===n&&(n=!0),void 0===o&&(o=!0),Object.defineProperty(e,t,{value:r,writable:n,configurable:o})}function shorten(e,t,r){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==r&&isString(r)||(r="..."),e.length>t&&(e=substr(e,0,t)+r)),e}function shortenObj(e,t){void 0===t&&(t=100);var r=clone(e);return each(r,(function(e,n){isString(e)&&e.length>t?r[n]=shorten(e,t):e&&"object"==typeof e&&(r[n]=shortenObj(e))})),r}function shuffle(e){for(var t,r,n=e.length;0!=n;)r=Math.floor(Math.random()*n),n--,t=[e[r],e[n]],e[n]=t[0],e[r]=t[1];return e}function startChrono(e){var t=(new Date).getTime();this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t}function stopChrono(e){if(this.constructor.chronos[e||"default"]){var t=(new Date).getTime()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t}throw Error("No chrono with name "+(e||"default"))}function string2ArrayBuffer(e){for(var t=new ArrayBuffer(2*e.length),r=new Uint16Array(t),n=0,o=e.length;n<o;n++)r[n]=e.charCodeAt(n);return t}function sum(e,t,r,n,o){var i=0;return each(filter(e,r,n,o),(function(e){var r="function"==typeof t?t(e):e[t];r&&(i+=parseFloat(r)||0)})),i}function timestamp(e){void 0===e&&(e=!1);var t=(new Date).getTime();return e?Math.round(t/1e3):t}function toCSV(e,t,r,n){void 0===t&&(t=","),void 0===r&&(r=""),void 0===n&&(n='"'),t||(t=","),n||(n='"');var o="",i=e.length;return each(e,(function(e,a){var s=isArray(e)?e.length:Object.values(e).length,u=0;each(e,(function(e){o+="string"==typeof e?n+replaceAll(n,"\\"+n,e)+n:0===e?"0":e&&e.toString?e.toString():n+n,++u<s&&(o+=t)})),a<i-1&&(o+=r+"\n")})),o}function toggleFullScreen(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout((function(){resize()}),0)}function translate(e,t){var r=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;iterate(e,(function(e,t){r[t]=e}))}function uniqString(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=function(){if(e[o])if("object"==typeof e[o])if(isArray(e[o]))r+=JSON.stringify(e[o]);else{var t={};each(Object.keys(e[o]).sort(),(function(r){t[r]=e[o][r]})),r+=JSON.stringify(t)}else"string"!=typeof e[o]?r+=e[o].toString():r+=e[o];else r+="__bbn_empty__"},o=0;o<e.length;o++)n();return md5(r)}function upload(e,t,r,n,o){void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=null);var i=function(){return axios.post(e||bbn.env.path,objectToFormData(t),{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){if(o){var t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}})};return r||n?i().then((function(e){r&&(log("SUCCESS",e),r(e))})).catch((function(e){n&&(log("ERROR",e),n(e))})):i()}var fn={_addLoader:_addLoader,_compareValues:_compareValues,_deleteLoader:_deleteLoader,abort:abort,abortURL:abortURL,addColors:addColors,addInputs:addInputs,addStyle:addStyle,adjustHeight:adjustHeight,adjustSize:adjustSize,adjustWidth:adjustWidth,ajax:ajax,analyzeFunction:analyzeFunction,animateCss:animateCss,arrayBuffer2String:arrayBuffer2String,arrayFromProp:arrayFromProp,autoExtend:autoExtend,baseName:baseName,br2nl:br2nl,calendar:calendar,callback:callback,camelize:camelize,camelToCss:camelToCss,canvasToImage:canvasToImage,center:center,checkProps:checkProps,checkPropsDetails:checkPropsDetails,checkPropsOrDie:checkPropsOrDie,checkType:checkType,circularReplacer:circularReplacer,clone:clone,colorToHex:colorToHex,compare:compare,compareConditions:compareConditions,copy:copy,correctCase:correctCase,count:count,crc32:crc32,createObject:createObject,cssExists:cssExists,date:date,dateSQL:dateSQL,daysInMonth:daysInMonth,deepPath:deepPath,defaultAjaxAbortFunction:defaultAjaxAbortFunction,defaultAjaxErrorFunction:defaultAjaxErrorFunction,defaultAlertFunction:defaultAlertFunction,defaultConfirmFunction:defaultConfirmFunction,defaultEndLoadingFunction:defaultEndLoadingFunction,defaultErrorFunction:defaultErrorFunction,defaultHistoryFunction:defaultHistoryFunction,defaultLinkFunction:defaultLinkFunction,defaultPostLinkFunction:defaultPostLinkFunction,defaultPreLinkFunction:defaultPreLinkFunction,defaultResizeFunction:defaultResizeFunction,defaultStartLoadingFunction:defaultStartLoadingFunction,deleteProp:deleteProp,diffObj:diffObj,dirName:dirName,download:download,downloadContent:downloadContent,each:each,eraseCookie:eraseCookie,error:error,escapeDquotes:escapeDquotes,escapeRegExp:escapeRegExp,escapeSquotes:escapeSquotes,escapeTicks:escapeTicks,escapeUrl:escapeUrl,extend:extend,extendOut:extendOut,fdate:fdate,fdatetime:fdatetime,fieldValue:fieldValue,fileExt:fileExt,filter:filter,filterToConditions:filterToConditions,findAll:findAll,fori:fori,forir:forir,format:format,formatBytes:formatBytes,formatDate:formatDate,formatSize:formatSize,formdata:formdata,fromXml:fromXml,ftime:ftime,getAllTags:getAllTags,getAncestors:getAncestors,getAttributes:getAttributes,getBrowserName:getBrowserName,getBrowserVersion:getBrowserVersion,getCookie:getCookie,getCssVar:getCssVar,getDay:getDay,getDeviceType:getDeviceType,getEventData:getEventData,getField:getField,getFieldValues:getFieldValues,getHtml:getHtml,getHTMLOfSelection:getHTMLOfSelection,getLoader:getLoader,getPath:getPath,getProp:getProp,getProperty:getProperty,getRequestId:getRequestId,getRow:getRow,getScrollBarSize:getScrollBarSize,getText:getText,getTimeoff:getTimeoff,happy:happy,hash:hash,hex2rgb:hex2rgb,history:history,html2text:html2text,imageToCanvas:imageToCanvas,imgToBase64:imgToBase64,info:info,init:init,isActiveInterface:isActiveInterface,isArray:isArray,isBlob:isBlob,isBoolean:isBoolean,isCanvas:isCanvas,isColor:isColor,isComment:isComment,isCp:isCp,isDate:isDate,isDesktopDevice:isDesktopDevice,isDimension:isDimension,isDom:isDom,isEmail:isEmail,isEmpty:isEmpty,isEvent:isEvent,isFocused:isFocused,isFunction:isFunction,isHostname:isHostname,isInside:isInside,isInt:isInt,isInViewport:isInViewport,isIP:isIP,isIterable:isIterable,isMobile:isMobile,isMobileDevice:isMobileDevice,isNull:isNull,isNumber:isNumber,isObject:isObject,isPercent:isPercent,isPrimitive:isPrimitive,isPromise:isPromise,isPropSize:isPropSize,isSame:isSame,isSQLDate:isSQLDate,isString:isString,isSymbol:isSymbol,isTabletDevice:isTabletDevice,isURL:isURL,isValidDimension:isValidDimension,isValidName:isValidName,isValue:isValue,isVue:isVue,iterate:iterate,lightenDarkenHex:lightenDarkenHex,link:link,log:log,makeReactive:makeReactive,map:map,md5:md5,money:money,move:move,multiorder:multiorder,mutateArray:mutateArray,nl2br:nl2br,numProperties:numProperties,objectToFormData:objectToFormData,order:order,outerHeight:outerHeight,outerWidth:outerWidth,percent:percent,pickValue:pickValue,post:post,postOut:postOut,printf:printf,quotes2html:quotes2html,randomInt:randomInt,randomString:randomString,removeAccents:removeAccents,removeEmpty:removeEmpty,removeExtraSpaces:removeExtraSpaces,removeHtmlComments:removeHtmlComments,removePrivateProp:removePrivateProp,removeTrailingChars:removeTrailingChars,repeat:repeat,replaceAll:replaceAll,replaceSelection:replaceSelection,resize:resize,rgb2hex:rgb2hex,riterate:riterate,roundDecimal:roundDecimal,sanitize:sanitize,search:search,selectElementText:selectElementText,selector:selector,setCookie:setCookie,setCssVar:setCssVar,setNavigationVars:setNavigationVars,setProp:setProp,setProperty:setProperty,shorten:shorten,shortenObj:shortenObj,shuffle:shuffle,simpleHash:simpleHash,simpleHash1:simpleHash1,simpleHash2:simpleHash2,startChrono:startChrono,stopChrono:stopChrono,string2ArrayBuffer:string2ArrayBuffer,submit:submit,substr:substr,sum:sum,timestamp:timestamp,toCSV:toCSV,toggleFullScreen:toggleFullScreen,translate:translate,treatAjaxArguments:treatAjaxArguments,trim:trim,uniqString:uniqString,unique:unique,upload:upload,warning:warning};dayjs$1.extend(calendar$1),dayjs$1.extend(dayOfYear),dayjs$1.extend(duration),dayjs$1.extend(isBetween),dayjs$1.extend(isLeapYear),dayjs$1.extend(isoWeek),dayjs$1.extend(localeData),dayjs$1.extend(localizedFormat),dayjs$1.extend(minMax),dayjs$1.extend(quarterOfYear),dayjs$1.extend(relativeTime),dayjs$1.extend(timezone),dayjs$1.extend(updateLocale),dayjs$1.extend(utc),dayjs$1.extend(weekday),dayjs$1.extend(weekOfYear);var bbn$1={version:"1.0.1",opt:{_cat:{}},app:{},_:_,$:$,lng:lng,var:vars,env:env,db:db,fn:fn};return"undefined"!=typeof window&&(window.axios=axios$1,window.dayjs=dayjs$1,window.bbn=bbn$1),exports.axios=axios$1,exports.bbn=bbn$1,exports.dayjs=dayjs$1,exports.default=bbn$1,Object.defineProperty(exports,"__esModule",{value:!0}),exports}({});
1
+ var bbn=function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:r}=Object,o=(i=Object.create(null),e=>{const t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>o(t)===e),s=e=>t=>typeof t===e,{isArray:u}=Array,c=s("undefined");const l=a("ArrayBuffer");const f=s("string"),d=s("function"),h=s("number"),p=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=a("Date"),v=a("File"),g=a("Blob"),y=a("FileList"),w=a("URLSearchParams");function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function O(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!c(e)&&e!==S;const E=(A="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>A&&e instanceof A);var A;const T=a("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),j=a("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},$="abcdefghijklmnopqrstuvwxyz",D="0123456789",R={DIGIT:D,ALPHA:$,ALPHA_DIGIT:$+$.toUpperCase()+D};const C=a("AsyncFunction");var L={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&d(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||d(e.append)&&("formdata"===(t=o(e))||"object"===t&&d(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t},isString:f,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:p,isPlainObject:m,isUndefined:c,isDate:b,isFile:v,isBlob:g,isRegExp:j,isFunction:d,isStream:e=>p(e)&&d(e.pipe),isURLSearchParams:w,isTypedArray:E,isFileList:y,forEach:x,merge:function e(){const{caseless:t}=_(this)&&this||{},n={},r=(r,o)=>{const i=t&&O(n,o)||o;m(n[i])&&m(r)?n[i]=e(n[i],r):m(r)?n[i]=e({},r):u(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],r);return n},extend:(e,n,r,{allOwnKeys:o}={})=>(x(n,((n,o)=>{r&&d(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),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,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let i,a,s;const u={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||u[s]||(t[s]=e[s],u[s]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!h(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 r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:T,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(d(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];d(r)&&(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={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:O,global:S,isContextDefined:_,ALPHABET:R,generateString:(e=16,t=R.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&d(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(p(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=u(e)?[]:{};return x(e,((e,t)=>{const i=n(e,r+1);!c(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:C,isThenable:e=>e&&(p(e)||d(e))&&d(e.then)&&d(e.catch)};function P(e,t,n,r,o){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),r&&(this.request=r),o&&(this.response=o)}L.inherits(P,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:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const N=P.prototype,F={};["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=>{F[e]={value:e}})),Object.defineProperties(P,F),Object.defineProperty(N,"isAxiosError",{value:!0}),P.from=(e,t,n,r,o,i)=>{const a=Object.create(N);return L.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),P.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function I(e){return L.isPlainObject(e)||L.isArray(e)}function B(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function U(e,t,n){return e?e.concat(t).map((function(e,t){return e=B(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const H=L.toFlatObject(L,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Y(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!L.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(L.isDate(e))return e.toISOString();if(!s&&L.isBlob(e))throw new P("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(e)||L.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(L.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(L.isArray(e)&&function(e){return L.isArray(e)&&!e.some(I)}(e)||(L.isFileList(e)||L.endsWith(n,"[]"))&&(s=L.toArray(e)))return n=B(n),s.forEach((function(e,r){!L.isUndefined(e)&&null!==e&&t.append(!0===a?U([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!I(e)||(t.append(U(o,n,i),u(e)),!1)}const l=[],f=Object.assign(H,{defaultVisitor:c,convertValue:u,isVisitable:I});if(!L.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!L.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),L.forEach(n,(function(n,i){!0===(!(L.isUndefined(n)||null===n)&&o.call(t,n,L.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t}function z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function q(e,t){this._pairs=[],e&&Y(e,this,t)}const W=q.prototype;function V(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J(e,t,n){if(!t)return e;const r=n&&n.encode||V,o=n&&n.serialize;let i;if(i=o?o(t,n):L.isURLSearchParams(t)?t.toString():new q(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}W.append=function(e,t){this._pairs.push([e,t])},W.toString=function(e){const t=e?function(t){return e.call(this,t,z)}:z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Z{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){L.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const X="undefined"!=typeof window&&"undefined"!=typeof document,Q=(ee="undefined"!=typeof navigator&&navigator.product,X&&["ReactNative","NativeScript","NS"].indexOf(ee)<0);var ee;const te="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ne={...Object.freeze({__proto__:null,hasBrowserEnv:X,hasStandardBrowserEnv:Q,hasStandardBrowserWebWorkerEnv:te}),...G};function re(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&L.isArray(r)?r.length:i,s)return L.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&L.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&L.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,((e,r)=>{t(function(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const oe={transitional:K,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=L.isObject(e);o&&L.isHTMLForm(e)&&(e=new FormData(e));if(L.isFormData(e))return r?JSON.stringify(re(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Y(e,new ne.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ne.isNode&&L.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=L.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Y(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||oe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&L.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw P.from(e,P.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:ne.classes.FormData,Blob:ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],(e=>{oe.headers[e]={}}));const ie=L.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"]);const ae=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function ue(e){return!1===e||null==e?e:L.isArray(e)?e.map(ue):String(e)}function ce(e,t,n,r,o){return L.isFunction(r)?r.call(this,t,n):(o&&(t=n),L.isString(t)?L.isString(r)?-1!==t.indexOf(r):L.isRegExp(r)?r.test(t):void 0:void 0)}class le{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=se(t);if(!o)throw new Error("header name must be a non-empty string");const i=L.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ue(e))}const i=(e,t)=>L.forEach(e,((e,n)=>o(e,n,t)));return L.isPlainObject(e)||e instanceof this.constructor?i(e,t):L.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ie[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=se(e)){const n=L.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 r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(L.isFunction(t))return t.call(this,e,n);if(L.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=se(e)){const n=L.findKey(this,e);return!(!n||void 0===this[n]||t&&!ce(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=se(e)){const o=L.findKey(n,e);!o||t&&!ce(0,n[o],o,t)||(delete n[o],r=!0)}}return L.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ce(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return L.forEach(this,((r,o)=>{const i=L.findKey(n,o);if(i)return t[i]=ue(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ue(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return L.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&L.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[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=se(e);t[r]||(!function(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return L.isArray(e)?e.forEach(r):r(e),this}}function fe(e,t){const n=this||oe,r=t||n,o=le.from(r.headers);let i=r.data;return L.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function de(e){return!(!e||!e.__CANCEL__)}function he(e,t,n){P.call(this,null==e?"canceled":e,P.ERR_CANCELED,t,n),this.name="CanceledError"}le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(le.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),L.freezeMethods(le),L.inherits(he,P,{__CANCEL__:!0});var pe=ne.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),L.isString(r)&&a.push("path="+r),L.isString(o)&&a.push("domain="+o),!0===i&&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 me(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}var be=ne.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=L.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ve(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=r[a];o||(o=u),n[i]=s,r[i]=u;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,u=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const ge={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=le.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:u}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(L.isFormData(r))if(ne.hasStandardBrowserEnv||ne.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=me(e.baseURL,e.url);function d(){if(!l)return;const r=le.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new P("Request failed with status code "+n.status,[P.ERR_BAD_REQUEST,P.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),J(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new P("Request aborted",P.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new P("Network Error",P.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||K;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new P(t,r.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,l)),l=null},ne.hasStandardBrowserEnv&&(u&&L.isFunction(u)&&(u=u(e)),u||!1!==u&&be(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&pe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&L.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),L.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",ve(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",ve(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(n(!t||t.type?new he(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);h&&-1===ne.protocols.indexOf(h)?n(new P("Unsupported protocol "+h+":",P.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};L.forEach(ge,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ye=e=>`- ${e}`,we=e=>L.isFunction(e)||null===e||!1===e;var xe=e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!we(n)&&(r=ge[(t=String(n)).toLowerCase()],void 0===r))throw new P(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new P("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(ye).join("\n"):" "+ye(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new he(null,e)}function Se(e){Oe(e),e.headers=le.from(e.headers),e.data=fe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return xe(e.adapter||oe.adapter)(e).then((function(t){return Oe(e),t.data=fe.call(e,e.transformResponse,t),t.headers=le.from(t.headers),t}),(function(t){return de(t)||(Oe(e),t&&t.response&&(t.response.data=fe.call(e,e.transformResponse,t.response),t.response.headers=le.from(t.response.headers))),Promise.reject(t)}))}const _e=e=>e instanceof le?{...e}:e;function Ee(e,t){t=t||{};const n={};function r(e,t,n){return L.isPlainObject(e)&&L.isPlainObject(t)?L.merge.call({caseless:n},e,t):L.isPlainObject(t)?L.merge({},t):L.isArray(t)?t.slice():t}function o(e,t,n){return L.isUndefined(t)?L.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!L.isUndefined(t))return r(void 0,t)}function a(e,t){return L.isUndefined(t)?L.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const u={url:i,method:i,data:i,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)=>o(_e(e),_e(t),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=u[r]||o,a=i(e[r],t[r],r);L.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Ae="1.6.8",Te={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Te[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ke={};Te.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new P(r(o," has been removed"+(t?" in "+t:"")),P.ERR_DEPRECATED);return t&&!ke[o]&&(ke[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var je={assertOptions:function(e,t,n){if("object"!=typeof e)throw new P("options must be an object",P.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new P("option "+i+" must be "+n,P.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new P("Unknown option "+i,P.ERR_BAD_OPTION)}},validators:Te};const Me=je.validators;class $e{constructor(e){this.defaults=e,this.interceptors={request:new Z,response:new Z}}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/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ee(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&je.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),null!=r&&(L.isFunction(r)?t.paramsSerializer={serialize:r}:je.assertOptions(r,{encode:Me.function,serialize:Me.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&L.merge(o.common,o[t.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=le.concat(i,o);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 u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[Se.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f<l;)c=c.then(e[f++],e[f++]);return c}l=a.length;let d=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=Se.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(e){return J(me((e=Ee(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}L.forEach(["delete","get","head","options"],(function(e){$e.prototype[e]=function(t,n){return this.request(Ee(n||{},{method:e,url:t,data:(n||{}).data}))}})),L.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ee(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}$e.prototype[e]=t(),$e.prototype[e+"Form"]=t(!0)}));class De{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 r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new he(e,r,o),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)}static source(){let e;const t=new De((function(t){e=t}));return{token:t,cancel:e}}}const Re={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(Re).forEach((([e,t])=>{Re[t]=e}));const Ce=function e(n){const r=new $e(n),o=t($e.prototype.request,r);return L.extend(o,$e.prototype,r,{allOwnKeys:!0}),L.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Ee(n,t))},o}(oe);Ce.Axios=$e,Ce.CanceledError=he,Ce.CancelToken=De,Ce.isCancel=de,Ce.VERSION=Ae,Ce.toFormData=Y,Ce.AxiosError=P,Ce.Cancel=Ce.CanceledError,Ce.all=function(e){return Promise.all(e)},Ce.spread=function(e){return function(t){return e.apply(null,t)}},Ce.isAxiosError=function(e){return L.isObject(e)&&!0===e.isAxiosError},Ce.mergeConfig=Ee,Ce.AxiosHeaders=le,Ce.formToJSON=e=>re(L.isHTMLForm(e)?new FormData(e):e),Ce.getAdapter=xe,Ce.HttpStatusCode=Re,Ce.default=Ce;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}};Pe.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",u="week",c="month",l="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:f,w:u,d:s,D:d,h:a,m:i,s:o,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=b;var x="$isDayjsObject",O=function(e){return e instanceof A||!(!e||!e[x])},S=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},_=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},E=g;E.l=S,E.i=O,E.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function b(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=b.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<_(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,l=E.p(e),h=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},p=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,b=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case f:return r?h(1,0):h(31,11);case c:return r?h(1,b):h(0,b+1);case u:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(r?v-w:v+(6-w),b);case s:case d:return p(g+"Hours",0);case a:return p(g+"Minutes",1);case i:return p(g+"Seconds",2);case o:return p(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,u=E.p(e),l="set"+(this.$u?"UTC":""),h=(n={},n[s]=l+"Date",n[d]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[a]=l+"Hours",n[i]=l+"Minutes",n[o]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],p=u===s?this.$D+(t-this.$W):t;if(u===c||u===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,l){var d,h=this;r=Number(r);var p=E.p(l),m=function(e){var t=_(h);return E.w(t.date(t.date()+Math.round(e*r)),h)};if(p===c)return this.set(c,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return m(1);if(p===u)return m(7);var b=(d={},d[i]=t,d[a]=n,d[o]=e,d)[p]||1,v=this.$d.getTime()+r*b;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},p=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,a,!0);case"A":return p(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,d,h){var p,m=this,b=E.p(d),v=_(r),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,w=function(){return E.m(m,v)};switch(b){case f:p=w()/12;break;case c:p=w();break;case l:p=w()/3;break;case u:p=(y-g)/6048e5;break;case s:p=(y-g)/864e5;break;case a:p=y/n;break;case i:p=y/t;break;case o:p=y/e;break;default:p=y}return h?p:E.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},b}(),T=A.prototype;return _.prototype=T,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",f],["$D",d]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,A,_),e.$i=!0),_},_.locale=S,_.isDayjs=O,_.unix=function(e){return _(1e3*e)},_.en=w[y],_.Ls=w,_.p={},_}();var Ne=Le(Pe.exports),Fe={exports:{}};!function(e,t){e.exports=function(e,t,n){var r="h:mm A",o={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var r=t||this.$locale().calendar||o,i=n(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s="sameElse",u=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,c=r[u]||o[u];return"function"==typeof c?c.call(this,n()):this.format(c)}}}(Fe);var Ie=Le(Fe.exports),Be={exports:{}};!function(e,t){e.exports=function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}(Be);var Ue=Le(Be.exports),He={exports:{}};!function(e,t){e.exports=function(){var e,t,n=1e3,r=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:u,days:i,hours:o,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof g},d=function(e,t,n){return new g(e,n,t.$l)},h=function(e){return t.p(e)+"s"},p=function(e){return e<0},m=function(e){return p(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},v=function(e,t){return e?p(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},g=function(){function p(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*l[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(c);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=p.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/r),e%=r,this.$d.seconds=m(e/n),e%=n,this.$d.milliseconds=e},b.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,"D"),o=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=v(a,"S"),u=e.negative||t.negative||r.negative||o.negative||i.negative||s.negative,c=o.format||i.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+r.format+c+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},b.toJSON=function(){return this.toISOString()},b.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},b.as=function(e){return this.$ms/l[h(e)]},b.get=function(e){var t=this.$ms,n=h(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?m(t/l[n]):this.$d[n],t||0},b.add=function(e,t,n){var r;return r=t?e*l[h(t)]:f(e)?e.$ms:d(e,this).$ms,d(this.$ms+r*(n?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return d(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},p}(),y=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,o){e=o,t=o().$utils(),o.duration=function(e,t){var n=o.locale();return d(e,{$l:n},t)},o.isDuration=f;var i=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?y(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?y(this,e,-1):a.bind(this)(e,t)}}}()}(He);var Ye=Le(He.exports),ze={exports:{}};!function(e,t){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}(ze);var qe=Le(ze.exports),We={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}(We);var Ve=Le(We.exports),Je={exports:{}};!function(e,t){var n;e.exports=(n="day",function(e,t,r){var o=function(e){return e.add(4-e.isoWeekday(),n)},i=t.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),n);var t,i,a,s=o(this),u=(t=this.isoWeekYear(),a=4-(i=(this.$u?r.utc:r)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,n));return s.diff(u,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}})}(Je);var Ze=Le(Je.exports),Ke={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),u=o(a[n]),c=s||u.map((function(e){return e.slice(0,r)}));if(!i)return c;var l=a.weekStart;return c.map((function(e,t){return c[(t+(l||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(Ke);var Ge=Le(Ke.exports),Xe={exports:{}};!function(e,t){var n;e.exports=(n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,r){var o=t.prototype,i=o.format;r.en.formats=n,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,r=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,o){var i=o&&o.toUpperCase();return r||t[o]||n[o]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(e,void 0===t?{}:t);return i.call(this,r)}})}(Xe);var Qe=Le(Xe.exports),et={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;var n;1===t.length&&t[0].length>0&&(t=t[0]),n=(t=t.filter((function(e){return e})))[0];for(var r=1;r<t.length;r+=1)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n};n.max=function(){var e=[].slice.call(arguments,0);return r("isAfter",e)},n.min=function(){var e=[].slice.call(arguments,0);return r("isBefore",e)}}}(et);var tt=Le(et.exports),nt={exports:{}};!function(e,t){var n,r;e.exports=(n="month",r="quarter",function(e,t){var o=t.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(e,t){return e=Number(e),this.$utils().p(t)===r?this.add(3*e,n):i.bind(this)(e,t)};var a=o.startOf;o.startOf=function(e,t){var o=this.$utils(),i=!!o.u(t)||t;if(o.p(e)===r){var s=this.quarter()-1;return i?this.month(3*s).startOf(n).startOf("day"):this.month(3*s+2).endOf(n).endOf("day")}return a.bind(this)(e,t)}})}(nt);var rt=Le(nt.exports),ot={exports:{}};!function(e,t){e.exports=function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,o){return r.fromToBase(e,t,n,o)}n.en.relativeTime=o,r.fromToBase=function(t,r,i,a,s){for(var u,c,l,f=i.$locale().relativeTime||o,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=a?n(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var b=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,b<=m.r||!m.r){b<=1&&p>0&&(m=d[p-1]);var v=f[m.l];s&&(b=s(""+b)),c="string"==typeof v?v.replace("%d",b):v(b,r,m.l,l);break}}if(r)return c;var g=l?f.future:f.past;return"function"==typeof g?g(c):g.replace("%s",c)},r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}(ot);var it=Le(ot.exports),at={exports:{}};!function(e,t){var n,r;e.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(e,t,o){var i,a=function(e,t,n){void 0===n&&(n={});var o=new Date(e),i=function(e,t){void 0===t&&(t={});var n=t.timeZoneName||"short",o=e+"|"+n,i=r[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[o]=i),i}(t,n);return i.formatToParts(o)},s=function(e,t){for(var r=a(e,t),i=[],s=0;s<r.length;s+=1){var u=r[s],c=u.type,l=u.value,f=n[c];f>=0&&(i[f]=parseInt(l,10))}var d=i[3],h=24===d?0:d,p=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",m=+e;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),u=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(t){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),u,a),l=c[0],f=c[1],d=o(l).utcOffset(f);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}})}(at);var st=Le(at.exports),ut={exports:{}};!function(e,t){e.exports=function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}(ut);var ct=Le(ut.exports),lt={exports:{}};!function(e,t){e.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),o=i(e).local();return d.call(r,o,t,n)}}}()}(lt);var ft=Le(lt.exports),dt={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}(dt);var ht=Le(dt.exports),pt={exports:{}};!function(e,t){var n,r;e.exports=(n="week",r="year",function(e,t,o){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(r).add(1,r).date(t),a=o(this).endOf(n);if(i.isBefore(a))return 1}var s=o(this).startOf(r).date(t).startOf(n).subtract(1,"millisecond"),u=this.diff(s,n,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(pt);var mt=Le(pt.exports);function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Array.isArray(o))return!1}return!0}function vt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(["boolean","object","symbol"].includes(typeof o)||""===o||isNaN(o))return!1}return!0}function gt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!o||"object"!=typeof o||!(Symbol.iterator in Object(o)))return!1}return!0}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object String]"!=={}.toString.apply(o))return!1}return!0}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!Number.isInteger(o))return!1}return!0}function xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!(o&&o.constructor&&o.call&&o.apply))return!1}return!0}function Ot(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(void 0!==window.console){var o=void 0,i=5,a="log";n[0]&&"object"==typeof n[0]&&n[0]._bbn_console_style&&(n[0]._bbn_console_mode&&xt(console[n[0]._bbn_console_mode])?a=n[0]._bbn_console_mode:(o=n[0]._bbn_console_style,i=n[0]._bbn_console_level),n.shift());var s=window.console[a];if((null===(t=null===(e=window.bbn)||void 0===e?void 0:e.env)||void 0===t?void 0:t.loggingLevel)>=i)for(var u=0;u<n.length;){var c=typeof n[u],l=[n[u]];"string"!==c&&"number"!==c||l.unshift("%c %s ",o),s.apply(window.console,l),u++}}return this}function St(e,t,n){if(!yt(e)||!wt(t))throw Ot(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),wt(n)?e.substring(t,(n<0?e.length:t)+n):e.substring(t)}function _t(e,t){void 0===t&&(t=!1);var n=null;if("object"==typeof e)for(var r in n={},e)St(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(t&&"object"==typeof e[r]?n[r]=_t(e[r],!0):n[r]=e[r]);return n||!1}function Et(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),null!==e&&"object"==typeof e){var o=Object.keys(n?_t(e):e);r&&o.reverse();for(var i=0,a=o;i<a.length;i++){var s=a[i];if(!1===t(e[s],s))break}}return e}function At(e,t){if(!(vt(e)&&e>0)){if(gt(e)){for(n=0;n<e.length;n++)if(!1===t(e[n],n))return;return e}return Et(e,t)}for(var n=0;n<e;n++)if(!1===t(n,n))return}function Tt(e){return e.replace(/[A-z]{1}/,(function(e){return e.toUpperCase()}))}function kt(e){if(arguments.length>1){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);t.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),Ot.apply(this,t)}throw new Error(e)}function jt(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=!1;bt(t)||(t=[t]);var a=[];if(At(t,(function(t){var n;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),xt(t)){if(a.push(t.name||(null===(n=t.constructor)||void 0===n?void 0:n.name)||t.toString()),e instanceof t)return i=!0,!1}else if(yt(t)&&xt(bbn.fn["is"+Tt(t)])){if(bbn.fn["is"+Tt(t)](e))return i=!0,!1;a.push(t)}else kt("The type ".concat(t," is not recognized"))})),!i)throw Ot(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&Ot(r),new Error((n?n+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function Mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift(),r=bbn.lng[n]||n;if(e.length){var o=0;return r.replace(/\%([d|s])/g,(function(t,n){var r=e[o++];return r||(r="d"===n?0:""),jt(r,"d"===n?"number":"string",bbn._("The value you gave did not correspond, check the loggg")),r}))}return r}var $t={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:[33,34,35,36,38,40],leftRight:[36,35,37,39],dels:[8,46,45],confirm:[13,9],alt:[20,16,17,18,144],numbers:[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105],numsigns:[109,110,189,190]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},Dt={siteTitle:window.document.title,logging:!1,cdn:"",lang:"en",host:window.location.protocol+"//"+window.location.hostname,url:window.location.href,old_path:null,loading:!1,width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:20,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax"},Rt=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB,Ct=function(e){var t=this,n=Lt._connections[e],r=Lt._structures[e];this.insert=function(e,t){return Array.isArray(t)||(t=[t]),new Promise((function(r){var o=n.transaction(e,"readwrite"),i=o.objectStore(e),a=t.length;At(t,(function(e){var t=i.put(e);t.onerror=function(){Ot(t.error),a--}})),o.onabort=function(){throw new Error(o.error)},o.oncomplete=function(){r(a)}}))},this.update=function(e,t,o){return new Promise((function(i){var a=n.transaction(e,"readwrite"),s=a.objectStore(e),u=r[e],c=u.keys.PRIMARY.columns.length>1?u.keys.PRIMARY.columns:u.keys.PRIMARY.columns[0];if(!o[c])throw new Error(Mt("No "));var l=1,f=s.put(t,o[c]);f.onerror=function(){Ot(f.error),l--},a.onabort=function(){throw new Error(a.error)},a.oncomplete=function(){i(l)}}))},this.delete=function(e,t){return new Promise((function(o){var i=n.transaction(e,"readwrite"),a=i.objectStore(e),s=r[e],u=s.keys.PRIMARY.columns.length>1?s.keys.PRIMARY.columns:s.keys.PRIMARY.columns[0];if(!t[u])throw new Error(Mt("No "));var c=1,l=a.delete(t[u]);l.onerror=function(){Ot(l.error),c--},i.onabort=function(){throw new Error(i.error)},i.oncomplete=function(){o(c)}}))},this.selectOne=function(e,n,r,o,i,a){return new Promise((function(s){t.select(e,[n],r,o,i,a).then((function(e){var t;s(null!==(t=e[n])&&void 0!==t?t:void 0)}))}))},this.select=function(e,t,o,i,a,s){var u=n.transaction(e,"readonly").objectStore(e),c=r[e],l=c.keys.PRIMARY.columns.length>1?c.keys.PRIMARY.columns:c.keys.PRIMARY.columns[0];if(!o[l])throw new Error(Mt("No "));return new Promise((function(e){var n=u.get(o[l]);n.onsuccess=function(){var r=n.result;if(t.length){var o={};return Et(r,(function(e,n){t.indexOf(n)>-1&&(o[n]=e)})),e(o)}e(r)}}))},this.selectAll=function(e,t,o,i,a,s){var u=n.transaction(e,"read").objectStore(e),c=r[e];if(!o[c.keys.PRIMARY.columns.length>1?c.keys.PRIMARY.columns:c.keys.PRIMARY.columns[0]])throw new Error(Mt("No "));return new Promise((function(e){u.get(r.keys.PRIMARY)}))},this.getColumnValues=function(e,t,r,o,i,a){return new Promise((function(t){n.transaction(e,"read").objectStore(e)}))}},Lt={_structures:{},_connections:{},_stores:{},ok:void 0!==Rt,open:function(e){return new Promise((function(t){if(!Lt._connections[e]){if(!Lt._structures[e])throw new Error(Mt("Impossible to find a structure for the database %s",e));var n=Rt.open(e);return n.onupgradeneeded=function(){Ot("UPGRADE NEEDED");var t=n.result;Et(Lt._structures[e],(function(e,n){var r=e.keys.PRIMARY.columns.length>1?e.keys.PRIMARY.columns:e.keys.PRIMARY.columns[0],o=t.createObjectStore(n,{keyPath:r});Et(e.keys,(function(e,t){"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})}))}))},void(n.onsuccess=function(){Lt._connections[e]=n.result;var r=new Ct(e);t(r)})}t(new Ct(Lt._connections[e]))}))},add:function(e,t,n){var r;if(!(null===(r=null==n?void 0:n.keys)||void 0===r?void 0:r.PRIMARY)||!(null==n?void 0:n.fields))throw new Error(Mt("The database structure for %s is not valid (are there keys and field? Is there a primary?",t));Lt._structures[e]||(Lt._structures[e]={}),Lt._structures[e][t]=n}};function Pt(e,t,n){var r=(new Date).getTime(),o={key:e,url:St(e,0,e.length-33),loader:t,aborter:n,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);for(var i=bbn.env.loadersHistory.length;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return r}function Nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if("object"==typeof e){var r=[];return 1===t.length&&"string"==typeof t[0]&&r.push.apply(r,t[0].split(".")),r.reduce((function(e,t){if(e)return e[t]}),e)}}function Ft(e){if(!yt(e)){if(!e.toString)throw Ot(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function It(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Date]"!=={}.toString.apply(o))return!1}return!0}function Bt(e,t,n,r){void 0===r&&(r="asc");var o=Nt(e,n),i=Nt(t,n),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==r&&yt(r)&&"desc"===r.toLowerCase()&&(r="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=Ft(o).toLowerCase(),i=Ft(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":It(o)&&(o=o.getTime(),i=It(i)?i.getTime():0)}return o<i?"desc"===r?1:-1:o>i?"desc"===r?-1:1:0}function Ut(e){return e&&"object"==typeof e?Object.keys(e).length:0}function Ht(e){return!e||(bt(e)?!e.length:"object"==typeof e&&!Ut(e))}function Yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Null]"!=={}.toString.apply(o))return!1}return!0}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Object]"!=={}.toString.apply(o))return!1}return!0}function qt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof HTMLElement))return!1}return!0}function Wt(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(var r=0,o=t;r<o.length;r++){var i=o[r];if(!bbn.cp.isComponent(i)||qt(i)||!(null===(e=i.$el)||void 0===e?void 0:e.bbnCid))return!1}return!0}function Vt(){var e=new WeakSet;return function(t,n){if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n),[void 0,Object,Array,null].includes(n.constructor)||(n=qt(n)?n.bbnId?"__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:"__BBN_DOM__"+n.tagName+"/"+n.className:Wt(n)?"__BBN_CP__"+n.$options.name+"/"+n.$cid:n.constructor.toString())}return n}}function Jt(e){for(var t=0,n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return Math.abs(t).toString(16)}function Zt(e){for(var t=0,n=0;n<e.length;n++){t=e.charCodeAt(n)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function Kt(e){return Jt(e).padStart(8,"0")+Zt(e).padStart(8,"0")}function Gt(e){var t="__bbn__";for(var n in arguments)if(arguments[n]){var r=arguments[n];if(qt(r))r.bbnId?t+="__BBN_DOM__"+r.tagName+"/"+r.bbnId+r.bbnHash:t+="__BBN_DOM__"+r.tagName+"/"+r.className;else if(Wt(r))t+="__BBN_CP__"+r.$options.name+"/"+r.$cid;else try{t+=JSON.stringify(arguments[n],Vt())}catch(e){t+="."}}return Kt(t)}function Xt(e){var t="0123456789abcdef";function n(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(o,a)),i),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}var c,l,f,d,h,p=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<t%4*8;return r[t>>2]|=128<<t%4*8,r[16*n-2]=8*e.length,r}(e),m=1732584193,b=-271733879,v=-1732584194,g=271733878;for(c=0;c<p.length;c+=16)l=m,f=b,d=v,h=g,m=i(m,b,v,g,p[c+0],7,-680876936),g=i(g,m,b,v,p[c+1],12,-389564586),v=i(v,g,m,b,p[c+2],17,606105819),b=i(b,v,g,m,p[c+3],22,-1044525330),m=i(m,b,v,g,p[c+4],7,-176418897),g=i(g,m,b,v,p[c+5],12,1200080426),v=i(v,g,m,b,p[c+6],17,-1473231341),b=i(b,v,g,m,p[c+7],22,-45705983),m=i(m,b,v,g,p[c+8],7,1770035416),g=i(g,m,b,v,p[c+9],12,-1958414417),v=i(v,g,m,b,p[c+10],17,-42063),b=i(b,v,g,m,p[c+11],22,-1990404162),m=i(m,b,v,g,p[c+12],7,1804603682),g=i(g,m,b,v,p[c+13],12,-40341101),v=i(v,g,m,b,p[c+14],17,-1502002290),m=a(m,b=i(b,v,g,m,p[c+15],22,1236535329),v,g,p[c+1],5,-165796510),g=a(g,m,b,v,p[c+6],9,-1069501632),v=a(v,g,m,b,p[c+11],14,643717713),b=a(b,v,g,m,p[c+0],20,-373897302),m=a(m,b,v,g,p[c+5],5,-701558691),g=a(g,m,b,v,p[c+10],9,38016083),v=a(v,g,m,b,p[c+15],14,-660478335),b=a(b,v,g,m,p[c+4],20,-405537848),m=a(m,b,v,g,p[c+9],5,568446438),g=a(g,m,b,v,p[c+14],9,-1019803690),v=a(v,g,m,b,p[c+3],14,-187363961),b=a(b,v,g,m,p[c+8],20,1163531501),m=a(m,b,v,g,p[c+13],5,-1444681467),g=a(g,m,b,v,p[c+2],9,-51403784),v=a(v,g,m,b,p[c+7],14,1735328473),m=s(m,b=a(b,v,g,m,p[c+12],20,-1926607734),v,g,p[c+5],4,-378558),g=s(g,m,b,v,p[c+8],11,-2022574463),v=s(v,g,m,b,p[c+11],16,1839030562),b=s(b,v,g,m,p[c+14],23,-35309556),m=s(m,b,v,g,p[c+1],4,-1530992060),g=s(g,m,b,v,p[c+4],11,1272893353),v=s(v,g,m,b,p[c+7],16,-155497632),b=s(b,v,g,m,p[c+10],23,-1094730640),m=s(m,b,v,g,p[c+13],4,681279174),g=s(g,m,b,v,p[c+0],11,-358537222),v=s(v,g,m,b,p[c+3],16,-722521979),b=s(b,v,g,m,p[c+6],23,76029189),m=s(m,b,v,g,p[c+9],4,-640364487),g=s(g,m,b,v,p[c+12],11,-421815835),v=s(v,g,m,b,p[c+15],16,530742520),m=u(m,b=s(b,v,g,m,p[c+2],23,-995338651),v,g,p[c+0],6,-198630844),g=u(g,m,b,v,p[c+7],10,1126891415),v=u(v,g,m,b,p[c+14],15,-1416354905),b=u(b,v,g,m,p[c+5],21,-57434055),m=u(m,b,v,g,p[c+12],6,1700485571),g=u(g,m,b,v,p[c+3],10,-1894986606),v=u(v,g,m,b,p[c+10],15,-1051523),b=u(b,v,g,m,p[c+1],21,-2054922799),m=u(m,b,v,g,p[c+8],6,1873313359),g=u(g,m,b,v,p[c+15],10,-30611744),v=u(v,g,m,b,p[c+6],15,-1560198380),b=u(b,v,g,m,p[c+13],21,1309151649),m=u(m,b,v,g,p[c+4],6,-145523070),g=u(g,m,b,v,p[c+11],10,-1120210379),v=u(v,g,m,b,p[c+2],15,718787259),b=u(b,v,g,m,p[c+9],21,-343485551),m=r(m,l),b=r(b,f),v=r(v,d),g=r(g,h);return n(m)+n(b)+n(v)+n(g)}function Qt(e){var t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");for(var n,r="",o=!1,i=!1,a=!1,s="",u=0,c=0,l=[],f={},d="",h=['"',"'","`"],p=!1,m=!1,b=!1,v=!1,g=!1,y="",w=0;w<t.length;w++)if(b||"/"!==t[w]||"*"!==t[w+1])if("/"===t[w]&&"*"===t[w-1])b=!1;else if(v||"/"!==t[w]||"/"!==t[w+1])if("\n"===t[w])v=!1;else{if(b||v)continue;if(t[w]===d&&!p&&d)d="",r+=t[w];else if(d)p="\\"===t[w]&&!p,r+=t[w];else if(h.includes(t[w])&&!p)d=t[w],r+=t[w];else if("("===t[w]){if(u++,""!==r.trim()){if("function"===r.trim())a=!0;else if("async"!==r.trim()){var x=(s=r.trim()).match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);x&&(s=x[1])}r=""}}else if(")"===t[w])u===c+1&&(m?(f.default=r.trim(),m=!1):r&&(f.name=r.trim()),(f.name||f.default)&&(l.push(f),f={}),r=""),c++;else if(g&&"}"!==t[w])r+=t[w];else{if(u&&u===c&&":"===t[w]){var O=t.substring(w+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!O)throw Error("Unexpected ':' while parsing function");y=O[1],n=t.substring(w+O[0].length).trim();break}if("="===t[w]&&">"===t[w+1]){""!==r.trim()&&u===c&&(f.name=r.trim(),l.push(f),f={},r=""),o=!0,w++;continue}if("="===t[w]&&u>c&&!m)f.name=r.trim(),r="",m=!0;else if(","===t[w])if(g)r+=t[w];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");m?(f.default=r.trim(),m=!1):r&&(f.name=r.trim()),(f.name||f.default)&&(l.push(f),f={}),r=""}else if("{"===t[w]||"}"===t[w]){if(u===c){n=t.substring(w).trim();break}u>c?"{"!==t[w]||g?"}"===t[w]&&g&&(g=!1,r+=t[w]):(g=!0,r=t[w]):r=""}else{if(o){n=t.substring(t.indexOf("=>")+2).trim();break}" "===t[w]?""!==r.trim()&&("async"===r.trim()&&(i=!0),u>c?r+=t[w]:r=""):r+=t[w]}}}else v=!0,r="";else b=!0,r="";if(!n){if(!o)throw Error("Unexpected end of function while parsing function");n=r}var S=l.map((function(e){return e.name+(e.default?" = "+e.default:"")})).join(", ");return{body:n,args:l,argString:S,isArrow:o,hasFunction:a,name:s,isAsync:i,hash:Xt(n+(s?"-"+s:"")+(S?"-"+S:"")),returnType:y}}function en(e,t,n){if(n||(n=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r=Object.keys(e).sort(),o=Object.keys(t).sort();if(Gt(r)!==Gt(o))return!1;var i=!0;if(e&&"object"==typeof e){if(n.includes(e))return i;n.push(e)}return At(r,(function(n){if(!en(e[n],t[n]))return i=!1,!1})),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){r=Qt(e),o=Qt(t);return r.hash===o.hash}return!1}function tn(e,t,n){switch(n){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!Ht(e)&&!Ht(t)&&-1!==Ft(e).toLowerCase().indexOf(Ft(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!Yt(e)&&!Yt(t))||-1===Ft(e.toLowerCase()).indexOf(Ft(t.toLowerCase()));case"starts":case"start":return!Yt(e)&&!Yt(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!Yt(e)&&!Yt(t)&&0===Ft(e).toLowerCase().indexOf(Ft(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!Yt(e)&&!Yt(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!Yt(e)&&!Yt(t)&&Ft(e).toLowerCase()===Ft(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(zt(e,t))return en(e,t);default:return e==t}}function nn(e,t){if(!t.conditions||!t.logic||!bt(t.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");var n="AND"===t.logic;return At(t.conditions,(function(r){var o;if(r.conditions&&bt(r.conditions))o=nn(e,r);else if(o=tn(Nt(e,r.field),r.value,r.operator)){var i=r.field.split("."),a=i.pop();i.length&&At(i,(function(t){return e=e[t]})),void 0===Nt(e,a)&&void 0!==r.value&&(o=!1)}if(o){if("OR"===t.logic)return n=!0,!1}else if("AND"===t.logic)return n=!1,!1})),n}function rn(e,t){if(void 0===t&&(t="="),!zt(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!bt(e.conditions)){var n=[];Et(e,(function(e,r){zt(e)&&"object"==typeof e.conditions?n.push(rn(e)):n.push({field:r,operator:t,value:e})})),e={conditions:n}}return e.logic||(e.logic="AND"),e}function on(e,t,n,r,o){if(void 0===n&&(n=null),void 0===r&&(r="="),void 0===o&&(o=0),!gt(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;var i,a=!1;if("string"==typeof t?i={conditions:[{field:t,value:n,operator:r||"="}]}:t?(o="number"==typeof r?r:0,r=n,zt(t)?i=t:"function"==typeof t&&(a=!0,i=t)):(a=!0,i=function(e){return nn({value:e},rn({logic:"AND",conditions:[{field:"value",operator:r||"=",value:n}]}))}),a||zt(i)&&Ut(i))if(vt(r)&&(o="number"==typeof r?r:0,r=void 0),vt(o)||(o=0),"function"==typeof i){for(var s=o;s<e.length;s++)if(i(e[s]))return s}else{i=rn(i);for(s=o;s<e.length;s++)if(nn(e[s],i))return s}return-1}function an(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r="=");var o=on(e,t,n,r);return o>-1&&e[o]}function sn(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var r=on(bbn.env.loaders,{key:e});if(r>-1){var o=bbn.env.loaders.splice(r,1)[0],i=an(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!n,i.abort=n):zt(t)&&(i.success=!0)),!0}return!1}function un(e){var t=on(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function cn(e,t,n,r){if(void 0===n&&(n=null),void 0===r&&(r="="),!bt(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");var o={},i=[],a="function"==typeof t;if(!t||!e.length)return e;if(e.length){if("object"==typeof t)r=n,o=t;else if("string"==typeof t)o[t]=n;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");return"function"==typeof t?At(e,(function(e,n){t(e,n)&&i.push(e)})):(o=rn(o,r)).conditions&&o.logic&&At(e,(function(e){nn(e,o)&&i.push(e)})),i}}function ln(e){if(Ut(e)){bbn.var.colors||(bbn.var.colors={});var t=document.createElement("style");document.head.appendChild(t);var n=t.sheet;Et(e,(function(e,t){bbn.var.colors[t]=e,n.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",0),n.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",0),n.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",0),n.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",0),n.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",0)}))}}function fn(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=""),e&&"FORM"===e.tagName){var r=function(t,n){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)};t=JSON.parse(JSON.stringify(t||{})),n=n||"",t&&Et(t,(function(t,o){var i=n?"".concat(n,"[").concat(o,"]"):o;t instanceof Date?r(i,t.toISOString()):t instanceof Array?t.forEach((function(t,n){var o="".concat(i,"[").concat(n,"]");"object"==typeof t?fn(e,t,o):r(o,t.toString())})):"object"!=typeof t||t instanceof File?r(i,t.toString()):fn(e,t,i)}))}}function dn(e,t){var n=0;At(t,(function(t){t.style[e]="auto"})),At(t,(function(t,r){var o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>n&&(n=i)})),At(t,(function(t,r){n&&(t.style[e]=n+"px")}))}function hn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function pn(e,t,n,r){return void 0===r&&(r=""),n.toString().replace(zt(e)?e:new RegExp(hn(e),"g"+r),t)}function mn(e,t,n){var r={};return t&&Et(t,(function(e,t){-1===t.indexOf("_bbn")&&(r[t]=e)})),e+":"+Xt((n||"json")+JSON.stringify(r))}function bn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=!1,r=[],o=0;o<e.length;o++)if(!0===e[o])n=!0;else{if(!e[o])continue;if("object"!=typeof e[o])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[o]);r.push(e[o])}if(!r.length)throw new Error("No argument given");var i=r[0];for(o=1;o<r.length;o++)Et(r[o],(function(e,t){n?bt(e)?(i[t]=bt(i[t])?i[t]:[],At(e,(function(e,n){if(e&&"object"==typeof e){var r=i[t][n];bt(e)?bt(r)||(r=[]):zt(r)||(r={}),i[t][n]=bn(!0,r,e)}else i[t][n]=e}))):zt(e)?i[t]=bn(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:i[t]!==e&&(i[t]=e)})),r[o].__bbnNoData&&Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1});return i}function vn(e,t,n,r,o,i){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===i&&(i=null),1===arguments.length&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(r=e.success),e.data&&(n=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=pn("//","/",e)),t||(t="json");var a=mn(e,n,t),s=un(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&bn(n||{},{_bbn_token:bbn.env.token});var u=new AbortController,c={responseType:t,signal:u.signal};"text"===t&&(c.headers={accept:"text/javascript","Content-Type":"text/javascript"});var l=[e];zt(n)&&Ut(n)>0&&l.push(n),l.push(c);var f=2===l.length?"get":"post",d=axios[f].apply(null,l).then((function(t){if(sn(a,t),bbn.fn.defaultEndLoadingFunction(e,h,n,t),200===t.status)xt(r)&&r(t.data,t.headers);else bbn.fn.defaultAjaxErrorFunction(d,t);return t})).catch((function(t){var r=axios.isCancel(t);if(sn(a,t.message||t.response.data,r),bbn.fn.defaultEndLoadingFunction(e,h,n,t),r){var s=1;xt(i)&&(s=i(t.message,e)),s&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{s=1;xt(o)&&(s=o(t.request,t)),s&&bbn.fn.defaultAjaxErrorFunction(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}})),h=Pt(a,d,u);return bbn.fn.defaultStartLoadingFunction(e,h,n,a),d}}function gn(e,t){if(e&&yt(e)){var n=e.split("/").pop();if(!t)return n;var r=t.length;if(n&&St(n,-r)===t)return St(n,0,n.length-r)}return""}function yn(e){var t=typeof e;if(void 0===e)return new Date;if("number"===t||vt(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(St(e,0,4)),parseInt(St(e,5,2))-1,parseInt(St(e,8,2)),12);if(19===e.length)return new Date(parseInt(St(e,0,4)),parseInt(St(e,5,2))-1,parseInt(St(e,8,2)),parseInt(St(e,11,2)),parseInt(St(e,14,2)),parseInt(St(e,17,2)))}else if(It(e))return e;return!1}function wn(e,t){void 0===t&&(t=!1);var n=yn(e);return It(n)?void 0!==dayjs?dayjs(n).calendar(null,{sameDay:"["+bbn._("Today")+"] HH:mm",nextDay:"["+bbn._("Tomorrow")+"] HH:mm",nextWeek:"ddd D HH:mm",lastDay:"["+bbn._("Yesterday")+"] HH:mm",lastWeek:"ddd D HH:mm",sameElse:"DD/MM/YYYY HH:mm"}):n.toLocaleDateString():t&&yt(t)?t:""}function xn(e,t){if(void 0===t&&(t=!1),!0===t)return wn(e);var n=yn(e);return It(n)?void 0!==dayjs?dayjs(n).format("L"):n.toLocaleDateString():t&&yt(t)?t:""}var On=function(e){return e};function Sn(e,t,n,r,o){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null);var i=!1;if(t){i=!0;var a="object"===(typeof t).toLowerCase(),s=void 0;if(a&&t.prescript)try{new Function(t.prescript)()}catch(e){kt(e.message||"")}if(a&&void 0===t.url&&(t.url=e),i=n&&xt(n)?n(t,o):bbn.fn.defaultLinkFunction(t,o),o&&a&&void 0!==t.content&&("value"in o?o.value=t.content:o.innerHTML=t.content),i&&a&&t.script&&(i="function"==typeof t.script?t.script(t.data?t.data:{},o||null):function(e,n){var r=null;try{xt(r=new Function(t.script)())&&(r=r(e,n))}catch(e){Ot(e,t),kt(xt(e.getMessage)?e.getMessage():null)}return r}(t.data?t.data:{},o||!1)),i&&r&&xt(r)?r(t):a&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(t,o),i&&a&&t.postscript)new Function(t.postscript)(t.postscript);a&&t.error&&(s=t.errorTitle||bbn.lng.server_response,bbn.fn.defaultAlertFunction(t.error,s))}else bbn.fn.defaultAlertFunction(bbn.lng.errorText,bbn.lng.error);return i}function _n(e,t,n){void 0===n&&(n=!1);var r,o={error:!1,result:!0};("string"==typeof t&&(t=[t]),bt(t)||(o.error=bbn._("checkProps must receive a string or an array as props argument")),zt(e)||(o.error=bbn._("checkProps must receive an object as obj argument")),o.error)||At(t,(function(t){var i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?o.error=t+" "+bbn._("is not defined"):i?(r="is"+St(i,0,1).toUpperCase()+St(i,1).toLowerCase(),void 0===bbn.fn[r]?o.error=i+" "+bbn._("is not a valid type"):bbn.fn[r](e[t])||(o.error=t+" "+bbn._("is not a")+" "+i)):n&&!e[t]&&(o.error=t+" "+bbn._("is empty")),o.error)return!1}));return o.error&&(o.result=!1),o}function En(e){return bt(e)?e.slice().map((function(e){return"object"==typeof e?En(e):e})):zt(e)?bn(!0,Object.create(Object.getPrototypeOf(e)),e):e}Ne.extend(Ie),Ne.extend(Ve);for(var An=[],Tn=0;Tn<256;Tn++){for(var kn=Tn,jn=0;jn<8;jn++)kn=1&kn?3988292384^kn>>>1:kn>>>1;An.push(kn)}var Mn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function $n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.length&&bn.apply(void 0,Mn([n],e,!1)),n}function Dn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("object"==typeof o&&!Yt(o))return!1}return!0}var Rn=[];function Cn(e){if(yt(e)&&e){for(;"/"===St(e,e.length-1);)e=St(e,0,e.length-1);var t=e.lastIndexOf("/");if(t>0)return St(e,0,t);if(0===t)return"/"}return""}function Ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Blob]"!=={}.toString.apply(o))return!1}return!0}function Pn(e){if(e&&yt(e)){var t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function Nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof HTMLCanvasElement))return!1}return!0}function Fn(e,t,n){if(void 0===n&&(n=null),Nn(t))t.toBlob((function(t){var n=document.createElement("a");n.download=e,n.href=window.URL.createObjectURL(t),n.className="bbn-no",n.click(),window.URL.revokeObjectURL(n.href)}),n||"image/png");else{n?-1===n.indexOf("/")&&(n="text/"+n):n=zt(t)&&t.type?t.type:"octet/stream";var r=window.document.createElement("a");r.className="bbn-no";var o=null;if(yt(t))o=new Blob([t],{type:n});else try{o=t}catch(e){Ot(e)}r.href=window.URL.createObjectURL(o),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}}function In(e){var t;return"checkbox"===e.type?e.checked?(t=e.value)||(t=1):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function Bn(e){var t,n,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return At(r,(function(e,r){if(void 0!==(n=In(e))&&!e.disabled){var i=e.name;if(-1===i.indexOf("[]")&&i.indexOf("[")>-1&&i.indexOf("]")>-1&&i.lastIndexOf("]")===i.length-1&&(i=pn("][",".",i),i=pn("[",".",i),i=pn("]","",i)),i.length>2&&i.indexOf("[]")===i.length-2)t=St(i,0,i.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(n);else if(i.indexOf(".")>-1){var a=void 0,s=i.split(".");a=o;for(var u=0;u<s.length;u++)void 0===o[s[u]]&&(u<s.length-1?a[s[u]]={}:a[s[u]]=n),a=a[s[u]]}else o[i]=n}})),o}function Un(e){return e.filter((function(e,t,n){return t===n.indexOf(e)}))}function Hn(e,t){void 0===t&&(t=null);var n=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)n.push(e);else for(!0===t&&n.push(e);e=e.parentElement;)n.push(e);return n}function Yn(e){return 0!==e.indexOf("--")&&(e="--"+e),getComputedStyle(document.documentElement).getPropertyValue(e)}function zn(){var e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function qn(){var e,t=window.getSelection();if(t.rangeCount>0){Ot("RANGE",e=t.getRangeAt(0));var n=e.cloneContents();Ot("clonedSelection",n);var r=document.createElement("div");return r.appendChild(n),r.innerHTML}return""}function Wn(e){return yt(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function Vn(e){var t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function Jn(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function Zn(e){var t,n,r={};if(zt(e[0])&&1===e.length)return e[0];for(n=0;n<e.length;n++)t=(t=typeof e[n]).toLowerCase(),xt(e[n])?(r.errorFn&&!r.abortFn&&(r.abortFn=e[n]),r.successFn&&!r.errorFn?r.errorFn=e[n]:r.successFn||(r.successFn=e[n])):1===e[n]||!0===e[n]?r.force=!0:"string"===t?r.url?r.datatype=e[n]:0===e[n].indexOf("#")||0===e[n].indexOf(bbn.env.root+"#")?r.url=St(e[n],bbn.env.root.length):(r.url=e[n],0===r.url.indexOf(bbn.env.root)&&(r.url=St(r.url,bbn.env.root.length))):e[n]&&"object"===t&&(e[n]instanceof Event?r.e=e[n]:r.ele||1!==e[n].nodeType?"object"===t.toLowerCase()&&(r.obj=e[n]):r.ele=e[n]);return!r.url&&Ut(r)&&(r.url=bbn.env.path),void 0===r.obj&&(r.obj={_bbn:"public"}),r.datatype||(r.datatype="json"),r}function Kn(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=!1),bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(St(e,0,7))?e:bbn.env.root+e,bbn.env.path=St(bbn.env.url,bbn.env.root.length),bbn.env.params=cn(bbn.env.path.split("/"),(function(e){return""!==e}));var o=window.history;if(o){var i=o.state,a={url:bbn.env.path,old_path:bbn.env.old_path||null,data:n||{},reload:!1};i&&i.url===bbn.env.path&&(i.data&&bn(a.data,i.data),i.title&&!t&&(t=i.title),r=!0),t=t?Vn(t):bbn.env.siteTitle,r?(a.reload=!0,o.replaceState(a,t,bbn.env.url)):o.pushState(a,t,bbn.env.url)}}function Gn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Zn(e),r=1;if(!0===n)return!0;if(!n)return Gn(window.location.href);if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return location.href=bbn.env.url+n.url,!0;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout((function(){bbn.env.ignoreUnload=!1}),0),!1;if(un(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.successFn)r=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){var o=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==o.data?(bn(n.obj,o.data),r=1):r=o}if(r){1!==r&&"string"==typeof r&&(n.url=r);var i=bbn._("The Ajax call to")+" "+n.url+" ";return vn(n.url,n.datatype,n.obj,(function(e){e||Ot(i+bbn._("returned no answer")),zt(e)&&(0===Object.keys(e).length&&Ot(i+bbn._("returned an empty object")),e.new_url?(e.old_path=n.url,n.url=e.new_url):e.url&&n.url!==e.url&&(e.old_path=n.url)),Sn(n.url,e,n.successFn,null,n.ele)&&void 0===e.noNav&&0!==bbn.env.path.indexOf(n.url)&&Kn(n.url,(e.title?e.title+" - ":"")+bbn.env.siteTitle)}),n.errorFn||null)}}return!0}function Xn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Zn(e);if(n.url)return vn(n.url,n.datatype,n.obj,(function(e){Sn(n.url,e,n.successFn,null,n.ele)}),n.errorFn,n.abortFn)}function Qn(e,t,n){var r,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),r=Bn(e))){e.setAttribute("action",null);var i=[o,r];!n&&e.getAttribute("data-script")&&(n=(n=new Function(e.getAttribute("data-script")))()),n&&i.push(n),Xn.apply(void 0,i)}}function er(){var e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));var n=parseInt(Yn("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<n?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;At(o,(function(e,t){if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==r&&o.splice(t,1,r),!1})),i||o.push(r),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function tr(){return"mobile"===zn()}function nr(){return"tablet"===zn()}function rr(){return tr()||nr()}function or(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||vt(St(e,0,1)))){var t=document.createElement("div");t.style.width=e;var n=!!t.style.width.length;return t.remove(),n}return!1}function ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!yt(o)||!bbn.var.regexp.ip.test(o))return!1}return!0}function ar(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Symbol]"!=={}.toString.apply(o))return!1}return!0}function sr(e){var t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),Ot.apply(this,t)}function ur(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null);var r=new FormData,o=function(e,t){void 0===t&&(t=""),(!n||bt(n)&&!n.includes(t))&&(e instanceof File?r.append(t,e):bt(e)?At(e,(function(e,n){o(e,t+"["+n+"]")})):zt(e)&&Object.keys(e).length?Et(e,(function(n,r){r in e&&o(n,t?t+"["+r+"]":r)})):Yt(e)||void 0===e||r.append(t,e))};return o(e,t),r}function cr(e){return"string"==typeof e?document.querySelector(e):e}function lr(e,t,n,r){if("object"==typeof e&&"string"==typeof t){var o=e,i=t.split(".");At(i,(function(e,t){if(!o){if(!r)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=n:o=o[e]}))}}function fr(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function dr(e,t){if(void 0===t&&(t=" ")," "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=St(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=St(e,0,e.length-t.length);return e}function hr(e,t,n){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==n&&yt(n)||(n="..."),e.length>t&&(e=St(e,0,t)+n)),e}var pr={_addLoader:Pt,_compareValues:Bt,_deleteLoader:sn,abort:function(e){var t=un(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")},abortURL:function(e){At(cn(bbn.env.loaders,{url:e}),(function(t){if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")}))},addColors:ln,addInputs:fn,addStyle:function(e,t){zt(t)&&Et(t,(function(t,n){e.style[n]=t}))},adjustHeight:function(){var e=arguments;return 1===e.length&&gt(e[0])&&(e=e[0]),dn("height",e)},adjustSize:dn,adjustWidth:function(){var e=arguments;return 1===e.length&&gt(e[0])&&(e=e[0]),dn("width",e)},ajax:vn,analyzeFunction:Qt,animateCss:function(e,t,n){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function e(r){r.target.removeEventListener(r.type,e),"function"==typeof n&&n.call(this),r.target.classList.remove(t)}))},arrayBuffer2String:function(e){return String.fromCharCode.apply(null,new Uint16Array(e))},arrayFromProp:function(e,t){var n=[];return At(e,(function(e,r){n.push(Nt(e,t))})),n},autoExtend:function(e,t){bbn[e]||(bbn[e]={}),bn(bbn[e],t)},baseName:gn,br2nl:function(e){return pn("<br />","\n",pn("<br/>","\n",pn("<br>","\n",e)))},calendar:function(e,t){if(void 0===t&&(t=!1),void 0===Ne)return xn(e,t);var n=yn(e);return It(n)?Ne(n).calendar(null,{sameDay:"["+On("Today")+"]",nextDay:"["+On("Tomorrow")+"]",nextWeek:"ddd D",lastDay:"["+On("Yesterday")+"]",lastWeek:"ddd D",sameElse:"L"}):t&&yt(t)?t:""},callback:Sn,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,(function(e,t,n,r){return n?n.toUpperCase():t.toLowerCase()}))},camelToCss:function(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})).replace("/^./",(function(e){return e.toLowerCase()}))},canvasToImage:function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},center:function(e){for(var t=e.parentNode,n=t.clientWidth,r=t.clientHeight;t&&(!n||!r);)n=(t=e.parentNode).clientWidth,r=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+t.scrollLeft)+"px",e},checkProps:function(e,t,n){return void 0===n&&(n=!1),_n(e,t,n).result},checkPropsDetails:_n,checkPropsOrDie:function(e,t,n){void 0===n&&(n=!1);var r=_n(e,t,n);if(r.error)throw new Error(r.error);return!0},checkType:jt,circularReplacer:Vt,clone:En,colorToHex:function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle},compare:tn,compareConditions:nn,copy:function(e){return new Promise((function(t){var n;if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?navigator.clipboard.write([new ClipboardItem((n={},n[e.type.toString()]=e,n))]).then((function(){t(!0)})):zt(e)&&xt(e.toBlob)?e.toBlob((function(e){var n;navigator.clipboard.write([new ClipboardItem((n={},n[e.type.toString()]=e,n))]).then((function(){t(!0)}))})):(navigator.clipboard.writeText(e),t(!0)));var r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),t(!0)}t(!1)}))},correctCase:Tt,count:function(e,t,n,r){return void 0===n&&(n=null),void 0===r&&(r="="),cn(e,t,n,r).length||0},crc32:function(e){for(var t=~0,n=0;n<e.length;n++){var r=e.charCodeAt(n);t=t>>>8^An[255&(t^r)]}return~t>>>0},createObject:$n,cssExists:function(e){for(var t,n,r=document.styleSheets,o=0;o<r.length;o++){t=1;try{n=r[o].rules||r[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(var i=0;i<n.length;i++)if(new RegExp("(^|\\s)"+hn(e)+"(\\{|\\s)","g").test(n[i].selectorText))return!0}return!1},date:yn,dateSQL:function(e,t){var n=yn(e);if(n)return Ne(n).format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))},daysInMonth:function(e){var t=yn(e);return!!t&&dayjs(t).daysInMonth()},deepPath:function e(t,n,r,o){var i;return void 0===o&&(o=[]),(i=on(t,n,0))>-1?(o.push(i),o):(At(t,(function(t,i){if(bt(t[r])){var a=o.slice();a.push(i);var s=e(t[r],n,r,a);if(!1!==s)return s}})),!1)},defaultAjaxAbortFunction:function(e,t){Ot(e)},defaultAjaxErrorFunction:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),Ot(t,n)},defaultAlertFunction:function(e,t){alert(e)},defaultConfirmFunction:function(e,t,n){void 0===n&&(n=null);var r=0;confirm(e)&&xt(t)&&(t(),r=1),!r&&xt(n)&&n()},defaultEndLoadingFunction:function(e,t,n,r){return!0},defaultErrorFunction:function(e){Ot(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,t){return!0},defaultPostLinkFunction:function(e,t){return!0},defaultPreLinkFunction:function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),Ot("defaultPreLinkFunction",e,t,n),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,t,n,r){return!0},deleteProp:function(e,t){jt(e,"object",bbn._("The obj must be an object in setProp")),jt(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]},diffObj:function e(t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1),o||(Rn=[]);var i="unchanged";void 0===o&&(o=!1);var a=$n();if(!xt(t)&&!xt(n)){if(Dn(t)||Dn(n)){var s=function(e,t){return e===t||It(e)&&It(t)&&e.getTime()===t.getTime()?i:void 0===e?"created":void 0===t?"deleted":"updated"}(t,n);if(r||s!==i){var u=$n();return Object.defineProperty(u,"type",{value:s,enumerable:!1}),Object.defineProperty(u,"data",{value:void 0===t?n:t,enumerable:!1}),Object.defineProperty(u,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==t&&Object.defineProperty(u,"newData",{value:n,enumerable:!1}),u}return!1}if(qt(t)||qt(n))return!1;if(Rn.includes(t)||Rn.includes(n))return!1;for(var c in Rn.push(t,n),t)if(!xt(t[c])){var l=void 0;void 0!==n[c]&&(l=n[c]),(s=e(t[c],l,r,!0))&&(a[c]=s)}for(var c in n){if(!xt(n[c])&&void 0===t[c])(s=e(void 0,n[c],r,!0))&&(a[c]=s)}}return!(o&&!r&&!Ut(a))&&a},dirName:Cn,download:function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=null),t&&"object"==typeof t&&(n=t,t=""),vn(e,"blob",n||{_bbn_download:1},(function(n,r){if(!t){var o="content-disposition",i="attachment; filename=";t=(null==r?void 0:r[o])&&0===r[o].indexOf(i)?St(r[o],22,r[o].length-21-2):gn(e)}if(Ln(n)){var a=Pn(t);if("string"==typeof t&&("type"in n&&"text/html"!==n.type||["php","html"].includes(a)))return void Fn(t,n)}}),(function(e){bbn.fn.defaultAjaxErrorFunction(e)}))},downloadContent:Fn,each:At,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:kt,escapeDquotes:function(e){return yt(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:hn,escapeSquotes:function(e){return yt(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return yt(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,t){var n="";e.match("^(http|https)://")&&(n+="http","s"===(e=e.substring(4)).substr(0,1)&&(n+="s",e=e.substring(1)),n+="://",e=e.substring(3)),At(Cn(e).split("/"),(function(e){n+=encodeURIComponent(e)+"/"}));var r=gn(e),o="?",i="";if(r.indexOf(o)){var a=r.split("?");o="&",i="?"+a[1],r=a[0]}return t&&yt(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",n+encodeURIComponent(r)+i+t},extend:bn,extendOut:function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=null,o=0,i=t;o<i.length;o++){var a=i[o];if(!zt(a))throw new Error("Each argument for extendOut must be an object, "+typeof a+" given");if(null===r)r=a;else for(var s in a)zt(r[s],a[s])?e(r[s],a[s]):void 0===r[s]&&(r[s]=a[s])}return r},fdate:xn,fdatetime:wn,fieldValue:In,fileExt:Pn,filter:cn,filterToConditions:rn,findAll:function e(t,n,r,o){var i;void 0===o&&(o=[]);for(var a=0;(i=on(t,n,a))>-1;)o.push(t[i]),a=i+1;return At(t,(function(t){bt(t[r])&&e(t[r],n,r,o)})),o},fori:function(e,t,n,r){if(void 0===n&&(n=e.length-1),void 0===r&&(r=0),bt(e)){var o=e.length-1;vt(n)&&0<n&&n<=o||(n=o),(!vt(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(var i=r;i<=n;i++)if(!1===t(e[i],i))return}},forir:function(e,t,n,r){if(void 0===n&&(n=e.length-1),void 0===r&&(r=0),bt(e)){var o=e.length-1;vt(n)&&0<n&&n<=o||(n=o),(!vt(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(var i=n;i>=r;i--)if(!1===t(e[i],i))return}},format:function(e){var t=Array.prototype.slice.call(arguments,1);if(t.length){var n=0;return e.replace(/\%([d|s])/g,(function(e,r){var o=t[n++];return jt(o,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),o}))}return e},formatBytes:function(e,t){if(void 0===t&&(t=2),!e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},formatDate:function(e,t){return dayjs(e).format(t)},formatSize:function(e,t){return vt(e)?e+"px":yt(e)?e:!t&&"auto"},formdata:Bn,fromXml:function(e,t){var n=null;if(window.DOMParser)n=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if((n=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!n.loadXML(e))throw n.parseError.reason+" "+n.parseError.srcText}function r(e,n){if("#text"!=e.nodeName){var o={},i=n[e.nodeName];if(i?Array.isArray(i)?n[e.nodeName].push(o):n[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?n[e.nodeName]=[o]:n[e.nodeName]=o,e.attributes)for(var a=0,s=e.attributes;a<s.length;a++){var u=s[a];o[u.nodeName]=u.nodeValue}for(var c=0,l=e.childNodes;c<l.length;c++){r(l[c],o)}}else{var f=e.nodeValue;f.trim()&&(n["#text"]=f)}}for(var o={},i=0,a=n.childNodes;i<a.length;i++){r(a[i],o)}return o},ftime:function(e,t){var n=yn(e);return It(n)?void 0!==dayjs?dayjs(n).calendar():n.toLocaleDateString():t&&yt(t)?t:""},getAllTags:function(){return Un(Array.prototype.map.apply(document.all,[function(e){return e.tagName.toLowerCase()}]))},getAncestors:Hn,getAttributes:function(e){e.getAttributeNames||kt("The element is not a proper HTML Element");var t=Object.create(null);return e.getAttributeNames().forEach((function(n){t[n]=e.getAttribute(n)})),t},getBrowserName:function(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){var e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getCookie:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t)){var i=o.substring(t.length,o.length);if(i)return JSON.parse(unescape(i)).value}}return null},getCssVar:Yn,getDay:function(e){var t=yn(e);if(t){var n=t.getTime(),r=t.getYear(),o=365*(r-1970);t.getMonth()<2&&r--;for(var i=1972;i<=r;i+=4)o++;return o+Math.floor(n/864e5)}return!1},getDeviceType:zn,getEventData:function(e){var t=e.dataTransfer||e.clipboardData,n=t.getData("Text"),r={raw:n,files:[],str:[]};return new Promise((function(o,i){var a=!(t instanceof DataTransfer);if(!n&&"copy"===e.type){var s=window.getSelection();r.raw=s.toString();var u=qn();r.str.push({type:"text/plain",data:r.raw}),u!==r.raw?r.str.push({type:"text/html",data:u}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),a=!0,o(r)}if(!a){var c=[],l=t.items.length;At(t.items,(function(e,n){var i=e.kind,s=e.type;if("file"===i){var u=t.files[n];if(!s&&u.name){var f=u.name.split(".");s=f[f.length-1]}var d=u?u.name:bbn._("untitled"),h=u?u.size:null,p=u?u.lastModified:null,m=e.getAsFile();m?(a=!0,l--,r.files.push({type:s,data:m,name:d,size:h,mdate:p}),c.push(d),l||(r.raw||(r.raw=c.join(", ")),o(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+d)}else a=!0,e.getAsString((function(e){l--,r.str.push({type:s,data:e}),"text/plain"===s&&c.push(name),l||(r.raw||(r.raw=c.join(", ")),o(r))}))}))}a||setTimeout((function(){o(r)}))}))},getField:function(e,t,n,r,o){var i;if(void 0===n&&(n=""),void 0===r&&(r=null),void 0===o&&(o="="),t&&(i=an(e,n,r,o)))return i[t]},getFieldValues:function(e,t,n,r,o){jt(t,"string"),n&&(e=cn(e,n,r,o));var i=[];return At(e,(function(e){return-1===i.indexOf(e[t])?i.push(e[t]):null})),i},getHtml:function(e,t){void 0===t&&(t=!1);var n=e.innerHTML();return t&&(n=Wn(n)),n.trim()},getHTMLOfSelection:qn,getLoader:un,getPath:function(e){for(var t,n=e,r=0,o=function(){var e=n,o=e.localName;if(!o)return"break";if(e===document.body)return"break";if(e.id)return{value:"#"+e.id};r||(e.className&&" "!==e.className&&(o+="."+pn(" ",".",pn(" "," ",e.className))),r=1);var i=n.parentNode;if(i.children.filter((function(e){return e.tagName===o})).length>1){var a=i.children.indexOf(e)+1;a>1&&(o+=":nth-child("+a+")")}t=o+(t?">"+t:""),n=i};n.length;){var i=o();if("object"==typeof i)return i.value;if("break"===i)break}return t},getProp:function(e,t){return jt(e,"object",bbn._("The obj must be an object in setProp")),jt(t,"string",bbn._("The prop must be a string in setProp")),e[t]},getProperty:Nt,getRequestId:mn,getRow:an,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;e.parentNode.removeChild(e);var o=t-r;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),Ot.apply(this,e),this},hash:Gt,hex2rgb:function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},history:function(){return window.history||!1},html2text:Vn,imageToCanvas:Jn,imgToBase64:function(e,t){return void 0===t&&(t="image/png"),Jn(e).toDataURL(t)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),Ot.apply(this,e),this},init:function(e,t){bbn.env.isInit&&!t||(bbn.env.root=document.baseURI.length>0?document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==St(bbn.env.root,-1)&&(bbn.env.root+="/"),bbn.env.isInit||"undefined"==typeof dayjs||At(["advancedFormat","arraySupport","badMutable","buddhistEra","calendar","customParseFormat","dayOfYear","devHelper","duration","isBetween","isLeapYear","isSameOrAfter","isSameOrBefore","isToday","isTomorrow","isYesterday","isoWeek","isoWeeksInYear","localeData","localizedFormat","minMax","objectSupport","pluralGetSet","quarterOfYear","relativeTime","timezone","toArray","toObject","updateLocale","utc","weekOfYear","weekYear","weekday"],(function(e){window["dayjs_plugin_"+e]&&dayjs.extend(window["dayjs_plugin_"+e])})),"object"==typeof e&&bn(!0,bbn,e),bbn.env.path=St(bbn.env.url,bbn.env.root.length),At(bbn.env.path.split("/"),(function(e,t){""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)})),bbn.var.colors&&ln(bbn.var.colors),bbn.env.lang&&void 0!==dayjs&&dayjs.locale(bbn.env.lang),window.onfocus=function(){bbn.env.isFocused=!0},window.onblur=function(){bbn.env.isFocused=!1,bbn.env.timeoff=Math.round((new Date).getTime()/1e3)},document.addEventListener("focusin",(function(e){e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.last_focus=(new Date).getTime()})),document.addEventListener("click",(function(e){if(bbn.env.last_focus=(new Date).getTime(),"ajax"===bbn.env.nav){var t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){for(var n=t;n&&"A"!==n.tagName&&"BODY"!==n.tagName;)n=n.parentElement;t=n&&"A"===n.tagName?n:null}return t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")?(e.preventDefault(),e.stopPropagation(),Gn(t.getAttribute("href")),!1):void 0}})),At(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"),(function(e){e.addEventListener("submit",(function(t){Qn(e,t)}))})),window.addEventListener("hashchange",(function(){bbn.env.hashChanged=(new Date).getTime()}),!1),window.addEventListener("resize",(function(){er()})),window.addEventListener("orientationchange",(function(){er()})),er(),rr()&&(document.body.classList.add("bbn-mobile"),nr()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){var t=window.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){var n=t.state;n?Gn(n.url,bn({title:n.title||bbn.env.siteTitle},n.data||{})):n&&n.data&&xt(n.data.script)&&n.data.script()}}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit")),bbn.env.logging&&Ot("Logging in bbn is enabled"))},isActiveInterface:function(e){return void 0===e&&(e=600),!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:bt,isBlob:Ln,isBoolean:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(![!0,!1].includes(o))return!1}return!0},isCanvas:Nn,isColor:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i"),r=0,o=e;r<o.length;r++){var i=o[r];if(!yt(i))return!1;if(!n.test(i))return!1}return!0},isComment:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof Comment))return!1}return!0},isCp:Wt,isDate:It,isDesktopDevice:function(){return"desktop"===zn()},isDimension:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("number"!=typeof o||o<0)return!1;if(!or(o))return!1}return!0},isDom:qt,isEmail:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,r=0,o=e;r<o.length;r++){var i=o[r];if(!yt(i))return!1;if(!n.test(i))return!1}return!0},isEmpty:Ht,isEvent:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){if(!(r[n]instanceof Event))return!1}return!0},isFocused:function(e,t){return void 0===t&&(t=!1),e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)},isFunction:xt,isHostname:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!yt(o))return!1;if(!ir(o)&&!bbn.var.regexp.hostname.test(o))return!1}return!0},isInside:function(e,t){var n=Hn(e);if(n.length){if(yt(t)){var r=!1;return At(n,(function(e){if(e.matches&&e.matches(t))return r=!0,!1})),r}if(t instanceof HTMLElement)return n.indexOf(t)>-1}return!1},isInt:wt,isInViewport:function(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();if(t)return n.top>=0&&n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth)&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight);var r=e.offsetHeight,o=e.offsetWidth;return n.top>=-r&&n.left>=-o&&n.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:ir,isIterable:gt,isMobile:rr,isMobileDevice:tr,isNull:Yt,isNumber:vt,isObject:zt,isPercent:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("string"!=typeof o||!o.match(/^\d+(?:\.\d+)?%$/))return!1}return!0},isPrimitive:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(null!==o&&("object"==typeof o||"function"==typeof o))return!1}return!0},isPromise:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("[object Promise]"!=={}.toString.apply(o))return!1}return!0},isPropSize:function(e){var t=!1;return At(["width","height","gap","margin","padding","top","left","right","bottom"],(function(n){if(-1!==e.indexOf(n))return t=!0,!1})),t},isSame:en,isSQLDate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if("string"!=typeof o||!o.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1}return!0},isString:yt,isSymbol:ar,isTabletDevice:nr,isURL:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!bbn.var.regexp.url.test(o))return!1}return!0},isValidDimension:or,isValidName:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e.length)return!1;for(var n=0,r=e;n<r.length;n++){var o=r[n];if(!yt(o)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(o))return!1}return!0},isValue:Dn,isVue:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue)for(var r=0,o=t;r<o.length;r++){if(!(s=o[r])||"function"!=typeof s.render)return!1}else for(var i=0,a=t;i<a.length;i++){var s;if(!((s=a[i])instanceof window.Vue))return!1}return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||(e=bbn.cp).isComponent.apply(e,t)},iterate:Et,lightenDarkenHex:function(e,t){if(e&&t){var n="#"===e[0];e=n?e.slice(1):e;var r=parseInt(e,16),o=(r>>16)+t,i=(r>>8&255)+t,a=(255&r)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(n?"#":"")+(a|i<<8|o<<16).toString(16)}},link:Gn,log:Ot,makeReactive:function e(t,n,r,o){var i=(null==r?void 0:r.$cid)||"",a="__bbn_"+(i?i+"_":"");if(t&&"object"==typeof t&&[void 0,Object,Array].includes(t.constructor)){if(t.__bbnIsProxy&&t.__bbnParent===r)return t;r&&r.$options&&"bbn-loadbar"===r.$options.name&&Ot(["MAKING bbn-loadbar",t]),t.__bbnWatchers||Reflect.defineProperty(t,"__bbnWatchers",{value:$n(),writable:!0,configurable:!0,enumerable:!1});var s={get:function(s,u){var c=Reflect.get(s,u),l=s.__bbnRoot||s;if(ar(u))return Reflect.get(l,u);var f=o?o+"."+u:u,d=a+(vt(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&bt(s))return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=l[u].apply(l,e);return sr("DOING ARRAY STUFF"),Ot(s.__bbnParent),n(s,"length",r),o};if(xt(c))return c;if("__bbnRoot"===u){for(var h=t;h&&(null==h?void 0:h.__bbnTarget);)h=h.__bbnTarget;return h}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&bt(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(d in l||Reflect.defineProperty(l,d,{value:e(c,n,r,f),writable:!0,configurable:!0,enumerable:!1}),l[d].__bbnIsProxy&&!l.__bbnWatchers[i]&&(l.__bbnWatchers[i]=f)),l[d]):c)},set:function(t,s,u){if(ar(s))return Reflect.get(t,s,u);var c=t.__bbnRoot||t,l=o?o+"."+s:s;if(ar(s))return Reflect.get(t,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&Ot(["Setting proxy prop in "+r.$options.name,t,s,u]),!en(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,n,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){var f=a+(vt(s)?s.toString():s);Reflect.defineProperty(c,f,{value:e(u,n,r,l),writable:!0,configurable:!0,enumerable:!1}),c[f].__bbnIsProxy&&!c.__bbnWatchers[i]&&(c.__bbnWatchers[i]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&Ot(["Setting proxy prop in "+r.$options.name+" "+(vt(s)?s.toString():s),u,t]),Reflect.set(c,s,u),n(t,s,r)}return!0},defineProperty:function(t,i,s){var u=t,c=o?o+"."+i:i;if("__bbnWatchers"===i||ar(i)||0===i.indexOf("__bbn_"))Reflect.defineProperty(u,i,s);else{var l=a+(vt(i)?i.toString():i);Reflect.defineProperty(u,l,{value:e(s.value,n,r,c),writable:!0,configurable:!0,enumerable:!1})}return n(t,i,r),!0},deleteProperty:function(e,t){var n=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(n,t);else{var r=a+(vt(t)?t.toString():t);Reflect.deleteProperty(n,r),Reflect.deleteProperty(e,t)}return!0}};return new Proxy(t,s)}return t},map:function e(t,n,r,o){return void 0===o&&(o=0),t.map((function(t,i){return t=n(t,i,o),r&&t[r]&&bt(t[r])&&(t[r]=e(t[r],n,r,o+1)),t}))},md5:Xt,money:function(e,t,n,r,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),n||(n=void 0===n&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),vt(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){var s=e.toFixed(a).replace(".",o);return n&&(s+=" "+(t?"K"+n:n)),s}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(n?" "+n:"");t&&e&&(e/=1e3,n&&(n="K"+n));var u=e.toFixed(a),c=0,l=1e4;return u&&((l=u.indexOf("."))<=0?l=1e4:c=u.length-l),u.replace(/./g,(function(e,t,n){return"."===e?o:t&&(n.length-t-c)%3==0&&t<l?i+e:e}))+(n?" "+n:"")},move:function(e,t,n){if(n>=e.length)for(var r=n-e.length;1+r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e},multiorder:function(e,t){if(!t)return e;var n;if(Array.isArray(t)||"object"!=typeof t)n=t;else for(var r in n=[],t)n.push({field:r,dir:t[r]});if(!Array.isArray(n))throw new Error("The orders argument must be an array");return e.slice().sort((function(e,t){for(var r,o=0,i=n;o<i.length;o++){var a=i[o];if(0!==(r=Bt(e,t,a.field,a.dir)))return r}return 0}))},mutateArray:function(e,t){if(!bt(e,t))throw new TypeError("mutateArray can only be called with arrays");var n=new Map(t.map((function(e){return[Gt(e),e]}))),r=[];t.forEach((function(e){r.push(e)}));for(var o=e.length;o--;)n.has(Gt(e[o]))||e.splice(o,1);for(var i=0;i<r.length;i++)if(i>=e.length||!en(e[i],r[i])){var a=on(e,r[i]);if(-1!==a){var s=e.splice(a,1)[0];e.splice(i,0,s)}else e.splice(i,0,r[i])}return e.length>r.length&&e.splice(r.length,e.length-r.length),e},nl2br:function(e,t){return pn("\n","<br>"+(t?"\n":""),e)},numProperties:Ut,objectToFormData:ur,order:function(e,t,n){return void 0===n&&(n="asc"),e?e.sort((function(e,r){return Bt(e,r,t,n)})):e},outerHeight:function(e){if((e=cr(e))&&"offsetHeight"in e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+n)}},outerWidth:function(e){e=cr(e);var t=window.getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+n)},percent:function(e,t){return t/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Xn,postOut:function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r="");var o=document.body.querySelector("form#bbn-form_out");o||((o=document.createElement("form")).classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),lr(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",r||"_blank"),t||(t={}),(t=$n(t)).bbn||(t.bbn="public"),fn(o,t),o.submit(),n&&n())},printf:function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))},quotes2html:function(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=pn("'","&#39;",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=pn('"',"&quot;",e)),e},randomInt:fr,randomString:function(e,t,n){var r,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};n||(n="nlu"),e||(r=fr(8,14)),"string"==typeof t?(n="n",delete i.l,delete i.u,i.n=t,r||(r=e)):"number"==typeof t&&e<t?r=fr(e,t):e&&(r=e);for(var a="",s=0;s<r;s++)0===s?"n"!==n&&(o=-1===n.indexOf("u")?"l":"u"):o=n[Math.floor(Math.random()*n.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a},removeAccents:Ft,removeEmpty:function(e){var t=[];if(bt(e))for(var n=0;n<e.length;n++){var r=!1;e[n]&&(bt(e[n])?e[n].length&&(r=!0):zt(e[n])?Ut(e[n])&&(r=!0):r=!0),r&&t.push(e[n])}return t},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:Wn,removePrivateProp:_t,removeTrailingChars:function(e,t){if(t||(t=" "),t.length){for(;St(e,-t.length)===t;)e=St(e,0,e.length-t.length);for(;St(e,0,t.length)===t;)e=St(e,t.length)}return e},repeat:function(e,t){return e.repeat(t)},replaceAll:pn,replaceSelection:function(e,t){var n,r,o;if((n=window.getSelection()).getRangeAt&&n.rangeCount){if((r=window.getSelection().getRangeAt(0)).deleteContents(),r.createContextualFragment)o=r.createContextualFragment(e);else{var i=document.createElement("div"),a=void 0;for(i.innerHTML=e,o=document.createDocumentFragment();a=i.firstChild;)o.appendChild(a)}var s=o.firstChild,u=o.lastChild;r.insertNode(o),n.removeAllRanges(),t?(s&&(r.setStartBefore(s),r.setEndAfter(u)),n.addRange(r)):(r.setStartAfter(u),n.addRange(r))}},resize:er,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,t,n){return void 0===n&&(n=!1),Et(e,t,n,!0)},roundDecimal:function(e,t){return Math.round(Math.pow(Math.pow(e,t),-t))},sanitize:function(e,t){void 0===t&&(t="_");for(var n=["[","]","{","}","(",")","-","+","*","/"],r="[",o=0;o<t.length;o++)n.includes(t[o])&&(r+="\\"),r+=t[o];r+="]+";var i=new RegExp(r,"g");return dr(Ft(e).replace(/[^a-z0-9]/gi,t).replace(i,t),t)},search:on,selectElementText:function(e,t){if(void 0===t&&(t=null),t=t||window,e instanceof HTMLInputElement)e.select();else{var n,r,o=t.document;t.getSelection&&o.createRange?(n=t.getSelection(),(r=o.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(r)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&((r=o.body.createTextRange()).moveToElementText(e),r.select())}},selector:cr,setCookie:function(e,t,n){var r="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),r="; expires="+o.toUTCString()}var i=escape(JSON.stringify({value:t}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)},setNavigationVars:Kn,setProp:function(e,t,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!0),Object.defineProperty(e,t,{value:n,writable:r,configurable:o})},setProperty:lr,shorten:hr,shortenObj:function e(t,n){void 0===n&&(n=100);var r=En(t);return At(r,(function(t,o){yt(t)&&t.length>n?r[o]=hr(t,n):t&&"object"==typeof t&&(r[o]=e(t))})),r},shuffle:function(e){for(var t,n,r=e.length;0!=r;)n=Math.floor(Math.random()*r),r--,t=[e[n],e[r]],e[r]=t[0],e[n]=t[1];return e},simpleHash:Kt,simpleHash1:Jt,simpleHash2:Zt,startChrono:function(e){var t=(new Date).getTime();this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t},stopChrono:function(e){if(this.constructor.chronos[e||"default"]){var t=(new Date).getTime()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t}throw Error("No chrono with name "+(e||"default"))},string2ArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0,o=e.length;r<o;r++)n[r]=e.charCodeAt(r);return t},submit:Qn,substr:St,sum:function(e,t,n,r,o){var i=0;return At(cn(e,n,r,o),(function(e){var n="function"==typeof t?t(e):e[t];n&&(i+=parseFloat(n)||0)})),i},timestamp:function(e){void 0===e&&(e=!1);var t=(new Date).getTime();return e?Math.round(t/1e3):t},toCSV:function(e,t,n,r){void 0===t&&(t=","),void 0===n&&(n=""),void 0===r&&(r='"'),t||(t=","),r||(r='"');var o="",i=e.length;return At(e,(function(e,a){var s=bt(e)?e.length:Object.values(e).length,u=0;At(e,(function(e){o+="string"==typeof e?r+pn(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,++u<s&&(o+=t)})),a<i-1&&(o+=n+"\n")})),o},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout((function(){er()}),0)},translate:function(e,t){var n=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;Et(e,(function(e,t){n[t]=e}))},treatAjaxArguments:Zn,trim:dr,uniqString:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=function(){if(e[o])if("object"==typeof e[o])if(bt(e[o]))n+=JSON.stringify(e[o]);else{var t={};At(Object.keys(e[o]).sort(),(function(n){t[n]=e[o][n]})),n+=JSON.stringify(t)}else"string"!=typeof e[o]?n+=e[o].toString():n+=e[o];else n+="__bbn_empty__"},o=0;o<e.length;o++)r();return Xt(n)},unique:Un,upload:function(e,t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null);var i=function(){return axios.post(e||bbn.env.path,ur(t),{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){if(o){var t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}})};return n||r?i().then((function(e){n&&(Ot("SUCCESS",e),n(e))})).catch((function(e){r&&(Ot("ERROR",e),r(e))})):i()},warning:sr};Ne.extend(Ie),Ne.extend(Ue),Ne.extend(Ye),Ne.extend(qe),Ne.extend(Ve),Ne.extend(Ze),Ne.extend(Ge),Ne.extend(Qe),Ne.extend(tt),Ne.extend(rt),Ne.extend(it),Ne.extend(st),Ne.extend(ct),Ne.extend(ft),Ne.extend(ht),Ne.extend(mt);var mr={version:"1.0.1",opt:{_cat:{}},app:{},_:Mt,$:function(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:$t,env:Dt,db:Lt,fn:pr};return"undefined"!=typeof window&&(window.axios=Ce,window.dayjs=Ne,window.bbn=mr),e.axios=Ce,e.bbn=mr,e.dayjs=Ne,e.default=mr,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
2
2
  //# sourceMappingURL=bbn.js.map