/*! * Tabler v1.0.0-beta9 (https://tabler.io) * @version 1.0.0-beta9 * @link https://tabler.io * Copyright 2018-2022 The Tabler Authors * Copyright 2018-2022 codecalm.net Paweł Kuna * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE) */ !function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";var t,e,n="function"==typeof Map?new Map:(t=[],e=[],{has:function(e){return t.indexOf(e)>-1},get:function(n){return e[t.indexOf(n)]},set:function(n,i){-1===t.indexOf(n)&&(t.push(n),e.push(i))},delete:function(n){var i=t.indexOf(n);i>-1&&(t.splice(i,1),e.splice(i,1))}}),i=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){i=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function s(t){var e=n.get(t);e&&e.destroy()}function r(t){var e=n.get(t);e&&e.update()}var o=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((o=function(t){return t}).destroy=function(t){return t},o.update=function(t){return t}):((o=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!n.has(t)){var e,s=null,r=null,o=null,a=function(){t.clientWidth!==r&&h()},u=function(e){window.removeEventListener("resize",a,!1),t.removeEventListener("input",h,!1),t.removeEventListener("keyup",h,!1),t.removeEventListener("autosize:destroy",u,!1),t.removeEventListener("autosize:update",h,!1),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),n.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",u,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",h,!1),window.addEventListener("resize",a,!1),t.addEventListener("input",h,!1),t.addEventListener("autosize:update",h,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",n.set(t,{destroy:u,update:h}),"vertical"===(e=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),s="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(s)&&(s=0),h()}function l(e){var n=t.style.width;t.style.width="0px",t.style.width=n,t.style.overflowY=e}function c(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),n=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+s+"px",r=t.clientWidth,e.forEach(function(t){t.node.scrollTop=t.scrollTop}),n&&(document.documentElement.scrollTop=n)}}function h(){c();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),s="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(s=0||(s[n]=t[n]);return s}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function v(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var s=p(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return v(this,n)}}function y(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=y(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}}).apply(this,arguments)}function k(t,e,n,i){return(k="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,i){var s,r=y(t,e);if(r){if((s=Object.getOwnPropertyDescriptor(r,e)).set)return s.set.call(i,n),!0;if(!s.writable)return!1}if(s=Object.getOwnPropertyDescriptor(i,e)){if(!s.writable)return!1;s.value=n,Object.defineProperty(i,e,s)}else!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(i,e,n);return!0})(t,e,n,i)}function E(t,e,n,i,s){if(!k(t,e,n,i||t)&&s)throw new Error("failed to set property");return n}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,s,r=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);o=!0);}catch(t){a=!0,s=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw s}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;c(this,t),this.value=e,this.from=n,this.stop=i}return d(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)}},{key:"unshift",value:function(t){if(!this.value.length||null!=t&&this.from>=t)return"";var e=this.value[0];return this.value=this.value.slice(1),e}},{key:"shift",value:function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}]),t}();function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new B.InputMask(t,e)}var L=function(){function t(e){c(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,e)),this.isInitialized=!0}return d(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Object.assign(this,t)}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"reset",value:function(){this._value=""}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(t){this.value=this.doFormat(t)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return this.isComplete}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new D(this.extractInput(t,e),t)}},{key:"appendTail",value:function(t){return S(t)&&(t=new D(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){return t?(this._value+=t,new C({inserted:t,rawInserted:t})):new C}},{key:"_appendChar",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,s=this.state,r=w(F(this.doPrepare(t,n)),2);if(t=r[0],(e=(e=r[1]).aggregate(this._appendCharRaw(t,n))).inserted){var o,a=!1!==this.doValidate(n);if(a&&null!=i){var u=this.state;!0===this.overwrite&&(o=i.state,i.unshift(this.value.length));var l=this.appendTail(i);(a=l.rawInserted===i.toString())&&l.inserted||"shift"!==this.overwrite||(this.state=u,o=i.state,i.shift(),a=(l=this.appendTail(i)).rawInserted===i.toString()),a&&l.inserted&&(this.state=u)}a||(e=new C,this.state=s,i&&o&&(i.state=o))}return e}},{key:"_appendPlaceholder",value:function(){return new C}},{key:"_appendEager",value:function(){return new C}},{key:"append",value:function(t,e,n){if(!S(t))throw new Error("value should be string");var i=new C,s=S(n)?new D(String(n)):n;e&&e.tail&&(e._beforeTailState=this.state);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new C}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=e,this.value&&this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,i}},{key:"runIsolated",value:function(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;var e=this.state,n=t(this);return this.state=e,delete this._isolated,n}},{key:"doPrepare",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(t){return this.format?this.format(t,this):t}},{key:"doParse",value:function(t){return this.parse?this.parse(t,this):t}},{key:"splice",value:function(t,e,n,i){var s,r=t+e,o=this.extractTail(r);this.eager&&(i=function(t){switch(t){case T.LEFT:return T.FORCE_LEFT;case T.RIGHT:return T.FORCE_RIGHT;default:return t}}(i),s=this.extractInput(0,r,{raw:!0}));var a=this.nearestInputPos(t,e>1&&0!==t&&!this.eager?T.NONE:i),u=new C({tailShift:a-t}).aggregate(this.remove(a));if(this.eager&&i!==T.NONE&&s===this.rawInputValue)if(i===T.FORCE_LEFT)for(var l;s===this.rawInputValue&&(l=this.value.length);)u.aggregate(new C({tailShift:-1})).aggregate(this.remove(l-1));else i===T.FORCE_RIGHT&&o.unshift();return u.aggregate(this.append(n,{input:!0},o))}},{key:"maskEquals",value:function(t){return this.mask===t}}]),t}();function I(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?B.MaskedRegExp:S(t)?B.MaskedPattern:t instanceof Date||t===Date?B.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?B.MaskedNumber:Array.isArray(t)||t===Array?B.MaskedDynamic:B.Masked&&t.prototype instanceof B.Masked?t:t instanceof B.Masked?t.constructor:t instanceof Function?B.MaskedFunction:(console.warn("Mask not found for mask",t),B.Masked)}function M(t){if(B.Masked&&t instanceof B.Masked)return t;var e=(t=Object.assign({},t)).mask;if(B.Masked&&e instanceof B.Masked)return e;var n=I(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}L.DEFAULTS={format:function(t){return t},parse:function(t){return t}},B.Masked=L,B.createMask=M;var P=["mask"],N={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},R=function(){function t(e){c(this,t);var n=e.mask,i=m(e,P);this.masked=M({mask:n}),Object.assign(this,i)}return d(t,[{key:"reset",value:function(){this.isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new C}},{key:"value",get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new C;var n=this.masked.state,i=this.masked._appendChar(t,e);return i.inserted&&!1===this.doValidate(e)&&(i.inserted=i.rawInserted="",this.masked.state=n),i.inserted||this.isOptional||this.lazy||e.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=Boolean(i.inserted),i}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new C;return this.isFilled||this.isOptional?t:(this.isFilled=!0,t.inserted=this.placeholderChar,t)}},{key:"_appendEager",value:function(){return new C}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,n)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.NONE,n=this.value.length,i=Math.min(Math.max(t,0),n);switch(e){case T.LEFT:case T.FORCE_LEFT:return this.isComplete?i:0;case T.RIGHT:case T.FORCE_RIGHT:return this.isComplete?i:n;case T.NONE:default:return i}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"state",get:function(){return{masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked,this.isFilled=t.isFilled}}]),t}(),j=function(){function t(e){c(this,t),Object.assign(this,e),this._value="",this.isFixed=!0}return d(t,[{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new C}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.NONE,n=this._value.length;switch(e){case T.LEFT:case T.FORCE_LEFT:return 0;case T.NONE:case T.RIGHT:case T.FORCE_RIGHT:default:return n}}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return Boolean(this._value)}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new C;if(this._value)return n;var i=this.char===t&&(this.isUnmasking||e.input||e.raw)&&!this.eager&&!e.tail;return i&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),n}},{key:"_appendEager",value:function(){return this._appendChar(this.char)}},{key:"_appendPlaceholder",value:function(){var t=new C;return this._value?t:(this._value=t.inserted=this.char,t)}},{key:"extractTail",value:function(){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,new D("")}},{key:"appendTail",value:function(t){return S(t)&&(t=new D(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,n){var i=this._appendChar(t[0],e);return null!=n&&(i.tailShift+=this.appendTail(n).tailShift),i}},{key:"doCommit",value:function(){}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Object.assign(this,t)}}]),t}(),V=["chunks"],H=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,t),this.chunks=e,this.from=n}return d(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){S(e)&&(e=new D(String(e)));var n=this.chunks[this.chunks.length-1],i=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof D)i?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){if(null==e.stop)for(var s;e.chunks.length&&null==e.chunks[0].stop;)(s=e.chunks.shift()).from+=e.from,this.extend(s);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof B.MaskedPattern))return new D(this.toString()).appendTo(e);for(var n=new C,i=0;i=0)&&n.aggregate(e._appendPlaceholder(o)),a=s instanceof t&&e._blocks[o]),a){var u=a.appendTail(s);u.skip=!1,n.aggregate(u),e._value+=u.inserted;var l=s.toString().slice(u.rawInserted.length);l&&n.aggregate(e.append(l,{tail:!0}))}else n.aggregate(e.append(s.toString(),{tail:!0}))}return n}},{key:"state",get:function(){return{chunks:this.chunks.map(function(t){return t.state}),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var n=e.chunks,i=m(e,V);Object.assign(this,i),this.chunks=n.map(function(e){var n="chunks"in e?new t:new D;return n.state=e,n})}},{key:"unshift",value:function(t){if(!this.chunks.length||null!=t&&this.from>=t)return"";for(var e=null!=t?t-this.from:t,n=0;n=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}},{key:"_pushLeft",value:function(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(e=this.block)||void 0===e?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}},{key:"_pushRight",value:function(t){for(this.pushState(),this.bindBlock();this.index=0}),b(p(n.prototype),"_update",this).call(this,t)}}]),n}();B.MaskedRegExp=z;var W=["_blocks"],q=function(t){f(n,L);var e=_(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,n),t.definitions=Object.assign({},N,t.definitions),e.call(this,Object.assign({},n.DEFAULTS,t))}return d(n,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),b(p(n.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var i=this.mask;if(i&&e)for(var s=!1,r=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=this._mapPosToBlock(this.value.length),i=new C;if(!n)return i;for(var s=n.index;;++s){var r,o=this._blocks[s];if(!o)break;var a=o._appendChar(t,Object.assign({},e,{_beforeTailState:null===(r=e._beforeTailState)||void 0===r?void 0:r._blocks[s]})),u=a.skip;if(i.aggregate(a),u||a.rawInserted)break}return i}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=new H;return e===n?i:(this._forEachBlocksInRange(e,n,function(e,n,s,r){var o=e.extractTail(s,r);o.stop=t._findStopBefore(n),o.from=t._blockStartPos(n),o instanceof H&&(o.blockIndex=n),i.extend(o)}),i)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var i="";return this._forEachBlocksInRange(t,e,function(t,e,s,r){i+=t.extractInput(s,r,n)}),i}},{key:"_findStopBefore",value:function(t){for(var e,n=0;n1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,i=this._mapPosToBlock(t);if(i){var s=this._mapPosToBlock(e),r=s&&i.index===s.index,o=i.offset,a=s&&r?s.offset:this._blocks[i.index].value.length;if(n(this._blocks[i.index],i.index,o,a),s&&!r){for(var u=i.index+1;u0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=b(p(n.prototype),"remove",this).call(this,t,e);return this._forEachBlocksInRange(t,e,function(t,e,n,s){i.aggregate(t.remove(n,s))}),i}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.NONE;if(!this._blocks.length)return 0;var n=new $(this,t);if(e===T.NONE)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.value.length);if(e===T.LEFT||e===T.FORCE_LEFT){if(e===T.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),e===T.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t)return n.pos;if(n.popState(),n.ok&&n.pos<=t)return n.pos;n.popState()}return n.ok?n.pos:e===T.FORCE_LEFT?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return e===T.RIGHT||e===T.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:e===T.FORCE_RIGHT?this.value.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(t,T.LEFT)))):t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map(function(t){return e._blocks[t]}):[]}}]),n}();q.DEFAULTS={lazy:!0,placeholderChar:"_"},q.STOP_CHAR="`",q.ESCAPE_CHAR="\\",q.InputDefinition=R,q.FixedDefinition=j,B.MaskedPattern=q;var U=function(t){f(n,q);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"_update",value:function(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);var e=String(t.to).length;null!=t.maxLength&&(e=Math.max(e,t.maxLength)),t.maxLength=e;for(var i=String(t.from).padStart(e,"0"),s=String(t.to).padStart(e,"0"),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},s=w(F(b(p(n.prototype),"doPrepare",this).call(this,t.replace(/\D/g,""),i)),2);if(t=s[0],e=s[1],!this.autofix||!t)return t;var r=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),a=this.value+t;if(a.length>this.maxLength)return"";var u=w(this.boundaries(a),2),l=u[0],c=u[1];return Number(c)this.to?"pad"===this.autofix&&a.length=0}},{key:"date",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"typedValue",get:function(){return this.isComplete?b(p(n.prototype),"typedValue",this):null},set:function(t){E(p(n.prototype),"typedValue",t,this,!0)}},{key:"maskEquals",value:function(t){return t===Date||b(p(n.prototype),"maskEquals",this).call(this,t)}}]),n}();Y.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){return t?[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join("."):""},parse:function(t){var e=w(t.split("."),3),n=e[0],i=e[1],s=e[2];return new Date(s,i-1,n)}},Y.GET_DEFAULT_BLOCKS=function(){return{d:{mask:U,from:1,to:31,maxLength:2},m:{mask:U,from:1,to:12,maxLength:2},Y:{mask:U,from:1900,to:9999}}},B.MaskedDate=Y;var K=function(){function t(){c(this,t)}return d(t,[{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}},{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"isActive",get:function(){return!1}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}}]),t}();B.MaskElement=K;var X=function(t){f(n,K);var e=_(n);function n(t){var i;return c(this,n),(i=e.call(this)).input=t,i._handlers={},i}return d(n,[{key:"rootElement",get:function(){var t,e,n;return null!==(t=null===(e=(n=this.input).getRootNode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"value",get:function(){return this.input.value},set:function(t){this.input.value=t}},{key:"bindEvents",value:function(t){var e=this;Object.keys(t).forEach(function(i){return e._toggleEventHandler(n.EVENTS_MAP[i],t[i])})}},{key:"unbindEvents",value:function(){var t=this;Object.keys(this._handlers).forEach(function(e){return t._toggleEventHandler(e)})}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}}]),n}();X.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},B.HTMLMaskElement=X;var G=function(t){f(n,X);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_unsafeSelectionStart",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection(),n=e&&e.anchorOffset,i=e&&e.focusOffset;return null==i||null==n||ni?n:i}},{key:"_unsafeSelect",value:function(t,e){if(this.rootElement.createRange){var n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,e);var i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}}},{key:"value",get:function(){return this.input.textContent},set:function(t){this.input.textContent=t}}]),n}();B.HTMLContenteditableMaskElement=G;var Q=["mask"],Z=function(){function t(e,n){c(this,t),this.el=e instanceof K?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new G(e):new X(e),this.masked=M(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return d(t,[{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!this.maskEquals(t))if(t instanceof B.Masked||this.masked.constructor!==I(t)){var e=M({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"maskEquals",value:function(t){var e;return null==t||(null===(e=this.masked)||void 0===e?void 0:e.maskEquals(t))}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&this._listeners[t].splice(n,1),this}},{key:"_onInput",value:function(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();var e=new O(this.el.value,this.cursorPos,this.value,this._selection),n=this.masked.rawInputValue,i=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection).offset,s=n===this.masked.rawInputValue?e.removeDirection:T.NONE,r=this.masked.nearestInputPos(e.startChangePos+i,s);s!==T.NONE&&(r=this.masked.nearestInputPos(r,T.NONE)),this.updateControl(),this.updateCursor(r),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.alignCursorFriendly()}},{key:"_onClick",value:function(t){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}}]),t}();B.InputMask=Z;var J=function(t){f(n,q);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),b(p(n.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this,i=arguments.length,s=new Array(i),r=0;r=0})&&(t=b(p(n.prototype),"doValidate",this)).call.apply(t,[this].concat(s))}}]),n}();B.MaskedEnum=J;var tt=function(t){f(n,L);var e=_(n);function n(t){return c(this,n),e.call(this,Object.assign({},n.DEFAULTS,t))}return d(n,[{key:"_update",value:function(t){b(p(n.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"("+x(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+"(0|([1-9]+\\d*))?"+e),this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(x).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(x(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){var e;t=t.replace(this._mapToRadixRegExp,this.radix);for(var i=this._removeThousandsSeparators(t),s=arguments.length,r=new Array(s>1?s-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1],n=0,i=0;i0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0,s=w(this._adjustRangeWithSeparators(t,e),2);return t=s[0],e=s[1],this._removeThousandsSeparators(b(p(n.prototype),"extractInput",this).call(this,t,e,i))}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return b(p(n.prototype),"_appendCharRaw",this).call(this,t,e);var i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);var r=b(p(n.prototype),"_appendCharRaw",this).call(this,t,e);this._value=this._insertThousandsSeparators(this._value);var o=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(o);return r.tailShift+=(a-s)*this.thousandsSeparator.length,r.skip=!r.rawInserted&&t===this.thousandsSeparator,r}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,e);if(n<=t)return n}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var n=this._findSeparatorAround(t);n>=0&&(t=n);var i=this._findSeparatorAround(e);return i>=0&&(e=i+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=w(this._adjustRangeWithSeparators(t,e),2);t=n[0],e=n[1];var i=this.value.slice(0,t),s=this.value.slice(e),r=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+s));var o=this._separatorsCountFromSlice(i);return new C({tailShift:(o-r)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case T.NONE:case T.LEFT:case T.FORCE_LEFT:var n=this._findSeparatorAround(t-1);if(n>=0){var i=n+this.thousandsSeparator.length;if(t=0)return s+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var e=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(e){var i=this.number;e=e&&!isNaN(i)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return e&&b(p(n.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=String(e));var i=this.value;this.normalizeZeros&&(i=this._normalizeZeros(i)),this.padFractionalZeros&&this.scale>0&&(i=this._padFractionalZeros(i)),this._value=i}b(p(n.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,function(t,e,n,i){return e+i}),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){E(p(n.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(t){E(p(n.prototype),"unmaskedValue",String(t),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),n}();tt.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},B.MaskedNumber=tt;var et=function(t){f(n,L);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),b(p(n.prototype),"_update",this).call(this,t)}}]),n}();B.MaskedFunction=et;var nt=["compiledMasks","currentMaskRef","currentMask"],it=function(t){f(n,L);var e=_(n);function n(t){var i;return c(this,n),(i=e.call(this,Object.assign({},n.DEFAULTS,t))).currentMask=null,i}return d(n,[{key:"_update",value:function(t){b(p(n.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(function(t){return M(t)}):[])}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._applyDispatch(t,e);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,e)),n}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,i=this.rawInputValue,s=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:i,r=i.slice(s.length),o=this.currentMask,a=new C,u=o&&o.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e)),this.currentMask)if(this.currentMask!==o){if(this.currentMask.reset(),s){var l=this.currentMask.append(s,{raw:!0});a.tailShift=l.inserted.length-n.length}r&&(a.tailShift+=this.currentMask.append(r,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=u;return a}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"_appendEager",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}},{key:"doDispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,e,i=arguments.length,s=new Array(i),r=0;r1&&void 0!==arguments[1]?arguments[1]:st.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st.MASKED,i=M(t);return function(t){return i.runIsolated(function(i){return i[e]=t,i[n]})}}B.PIPE_TYPE=st,B.createPipe=rt,B.pipe=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(i=Ot(n.width)/o||1),r>0&&(s=Ot(n.height)/r||1)}return{width:n.width/i,height:n.height/s,top:n.top/s,right:n.right/i,bottom:n.bottom/s,left:n.left/i,x:n.left/i,y:n.top/s}}function Bt(t){var e=Dt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Lt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ct(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function It(t){return Et(t).getComputedStyle(t)}function Mt(t){return["table","td","th"].indexOf(kt(t))>=0}function Pt(t){return((wt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Nt(t){return"html"===kt(t)?t:t.assignedSlot||t.parentNode||(Ct(t)?t.host:null)||Pt(t)}function Rt(t){return At(t)&&"fixed"!==It(t).position?t.offsetParent:null}function jt(t){for(var e=Et(t),n=Rt(t);n&&Mt(n)&&"static"===It(n).position;)n=Rt(n);return n&&("html"===kt(n)||"body"===kt(n)&&"static"===It(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&At(t)&&"fixed"===It(t).position)return null;for(var n=Nt(t);At(n)&&["html","body"].indexOf(kt(n))<0;){var i=It(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Vt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ht(t,e,n){return xt(t,Ft(e,n))}function $t(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function zt(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var Wt=function(t,e){return $t("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:zt(t,ht))};var qt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,s=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Tt(n.placement),u=Vt(a),l=[lt,ut].indexOf(a)>=0?"height":"width";if(r&&o){var c=Wt(s.padding,n),h=Bt(r),d="y"===u?ot:lt,f="y"===u?at:ut,p=n.rects.reference[l]+n.rects.reference[u]-o[u]-n.rects.popper[l],g=o[u]-n.rects.reference[u],m=jt(r),v=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,y=c[d],b=v-h[l]-c[f],k=v/2-h[l]/2+_,E=Ht(y,k,b),w=u;n.modifiersData[i]=((e={})[w]=E,e.centerOffset=E-k,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Lt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ut(t){return t.split("-")[1]}var Yt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kt(t){var e,n=t.popper,i=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=t.isFixed,d=o.x,f=void 0===d?0:d,p=o.y,g=void 0===p?0:p,m="function"==typeof c?c({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var v=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),y=lt,b=ot,k=window;if(l){var E=jt(n),w="clientHeight",A="clientWidth";if(E===Et(n)&&"static"!==It(E=Pt(n)).position&&"absolute"===a&&(w="scrollHeight",A="scrollWidth"),E=E,s===ot||(s===lt||s===ut)&&r===ft)b=at,g-=(h&&k.visualViewport?k.visualViewport.height:E[w])-i.height,g*=u?1:-1;if(s===lt||(s===ot||s===at)&&r===ft)y=ut,f-=(h&&k.visualViewport?k.visualViewport.width:E[A])-i.width,f*=u?1:-1}var C,S=Object.assign({position:a},l&&Yt),T=!0===c?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Ot(e*i)/i||0,y:Ot(n*i)/i||0}}({x:f,y:g}):{x:f,y:g};return f=T.x,g=T.y,u?Object.assign({},S,((C={})[b]=_?"0":"",C[y]=v?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",C)):Object.assign({},S,((e={})[b]=_?g+"px":"",e[y]=v?f+"px":"",e.transform="",e))}var Xt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,u=void 0===a||a,l={placement:Tt(e.placement),variation:Ut(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Kt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Kt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Gt={passive:!0};var Qt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,u=Et(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach(function(t){t.addEventListener("scroll",n.update,Gt)}),a&&u.addEventListener("resize",n.update,Gt),function(){r&&l.forEach(function(t){t.removeEventListener("scroll",n.update,Gt)}),a&&u.removeEventListener("resize",n.update,Gt)}},data:{}},Zt={left:"right",right:"left",bottom:"top",top:"bottom"};function Jt(t){return t.replace(/left|right|bottom|top/g,function(t){return Zt[t]})}var te={start:"end",end:"start"};function ee(t){return t.replace(/start|end/g,function(t){return te[t]})}function ne(t){var e=Et(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(t){return Dt(Pt(t)).left+ne(t).scrollLeft}function se(t){var e=It(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function re(t,e){var n;void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(kt(e))>=0?e.ownerDocument.body:At(e)&&se(e)?e:t(Nt(e))}(t),s=i===(null==(n=t.ownerDocument)?void 0:n.body),r=Et(i),o=s?[r].concat(r.visualViewport||[],se(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(re(Nt(o)))}function oe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ae(t,e){return e===gt?oe(function(t){var e=Et(t),n=Pt(t),i=e.visualViewport,s=n.clientWidth,r=n.clientHeight,o=0,a=0;return i&&(s=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:s,height:r,x:o+ie(t),y:a}}(t)):wt(e)?function(t){var e=Dt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):oe(function(t){var e,n=Pt(t),i=ne(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=xt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=xt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+ie(t),u=-i.scrollTop;return"rtl"===It(s||n).direction&&(a+=xt(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:u}}(Pt(t)))}function ue(t,e,n){var i="clippingParents"===e?function(t){var e=re(Nt(t)),n=["absolute","fixed"].indexOf(It(t).position)>=0&&At(t)?jt(t):t;return wt(n)?e.filter(function(t){return wt(t)&&Lt(t,n)&&"body"!==kt(t)}):[]}(t):[].concat(e),s=[].concat(i,[n]),r=s[0],o=s.reduce(function(e,n){var i=ae(t,n);return e.top=xt(i.top,e.top),e.right=Ft(i.right,e.right),e.bottom=Ft(i.bottom,e.bottom),e.left=xt(i.left,e.left),e},ae(t,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function le(t){var e,n=t.reference,i=t.element,s=t.placement,r=s?Tt(s):null,o=s?Ut(s):null,a=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(r){case ot:e={x:a,y:n.y-i.height};break;case at:e={x:a,y:n.y+n.height};break;case ut:e={x:n.x+n.width,y:u};break;case lt:e={x:n.x-i.width,y:u};break;default:e={x:n.x,y:n.y}}var l=r?Vt(r):null;if(null!=l){var c="y"===l?"height":"width";switch(o){case dt:e[l]=e[l]-(n[c]/2-i[c]/2);break;case ft:e[l]=e[l]+(n[c]/2-i[c]/2)}}return e}function ce(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=void 0===i?t.placement:i,r=n.boundary,o=void 0===r?pt:r,a=n.rootBoundary,u=void 0===a?gt:a,l=n.elementContext,c=void 0===l?mt:l,h=n.altBoundary,d=void 0!==h&&h,f=n.padding,p=void 0===f?0:f,g=$t("number"!=typeof p?p:zt(p,ht)),m=c===mt?vt:mt,v=t.rects.popper,_=t.elements[d?m:c],y=ue(wt(_)?_:_.contextElement||Pt(t.elements.popper),o,u),b=Dt(t.elements.reference),k=le({reference:b,element:v,strategy:"absolute",placement:s}),E=oe(Object.assign({},v,k)),w=c===mt?E:b,A={top:y.top-w.top+g.top,bottom:w.bottom-y.bottom+g.bottom,left:y.left-w.left+g.left,right:w.right-y.right+g.right},C=t.modifiersData.offset;if(c===mt&&C){var S=C[s];Object.keys(A).forEach(function(t){var e=[ut,at].indexOf(t)>=0?1:-1,n=[ot,at].indexOf(t)>=0?"y":"x";A[t]+=S[n]*e})}return A}function he(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?yt:u,c=Ut(i),h=c?a?_t:_t.filter(function(t){return Ut(t)===c}):ht,d=h.filter(function(t){return l.indexOf(t)>=0});0===d.length&&(d=h);var f=d.reduce(function(e,n){return e[n]=ce(t,{placement:n,boundary:s,rootBoundary:r,padding:o})[Tt(n)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var de={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,u=n.fallbackPlacements,l=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=e.options.placement,v=Tt(m),_=u||(v!==m&&p?function(t){if(Tt(t)===ct)return[];var e=Jt(t);return[ee(t),e,ee(e)]}(m):[Jt(m)]),y=[m].concat(_).reduce(function(t,n){return t.concat(Tt(n)===ct?he(e,{placement:n,boundary:c,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)},[]),b=e.rects.reference,k=e.rects.popper,E=new Map,w=!0,A=y[0],C=0;C=0,O=F?"width":"height",D=ce(e,{placement:S,boundary:c,rootBoundary:h,altBoundary:d,padding:l}),B=F?x?ut:lt:x?at:ot;b[O]>k[O]&&(B=Jt(B));var L=Jt(B),I=[];if(r&&I.push(D[T]<=0),a&&I.push(D[B]<=0,D[L]<=0),I.every(function(t){return t})){A=S,w=!1;break}E.set(S,I)}if(w)for(var M=function(t){var e=y.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},P=p?3:1;P>0&&"break"!==M(P);P--);e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fe(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function pe(t){return[ot,ut,at,lt].some(function(e){return t[e]>=0})}var ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=ce(e,{elementContext:"reference"}),a=ce(e,{altBoundary:!0}),u=fe(o,i),l=fe(a,s,r),c=pe(u),h=pe(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}};var me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.offset,r=void 0===s?[0,0]:s,o=yt.reduce(function(t,n){return t[n]=function(t,e,n){var i=Tt(t),s=[lt,ot].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[lt,ut].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,e.rects,r),t},{}),a=o[e.placement],u=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=o}};var ve={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=le({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var _e={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=ce(e,{boundary:u,rootBoundary:l,padding:h,altBoundary:c}),v=Tt(e.placement),_=Ut(e.placement),y=!_,b=Vt(v),k="x"===b?"y":"x",E=e.modifiersData.popperOffsets,w=e.rects.reference,A=e.rects.popper,C="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(E){if(r){var F,O="y"===b?ot:lt,D="y"===b?at:ut,B="y"===b?"height":"width",L=E[b],I=L+m[O],M=L-m[D],P=f?-A[B]/2:0,N=_===dt?w[B]:A[B],R=_===dt?-A[B]:-w[B],j=e.elements.arrow,V=f&&j?Bt(j):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=H[O],z=H[D],W=Ht(0,w[B],V[B]),q=y?w[B]/2-P-W-$-S.mainAxis:N-W-$-S.mainAxis,U=y?-w[B]/2+P+W+z+S.mainAxis:R+W+z+S.mainAxis,Y=e.elements.arrow&&jt(e.elements.arrow),K=Y?"y"===b?Y.clientTop||0:Y.clientLeft||0:0,X=null!=(F=null==T?void 0:T[b])?F:0,G=L+U-X,Q=Ht(f?Ft(I,L+q-X-K):I,L,f?xt(M,G):M);E[b]=Q,x[b]=Q-L}if(a){var Z,J="x"===b?ot:lt,tt="x"===b?at:ut,et=E[k],nt="y"===k?"height":"width",it=et+m[J],st=et-m[tt],rt=-1!==[ot,lt].indexOf(v),ct=null!=(Z=null==T?void 0:T[k])?Z:0,ht=rt?it:et-w[nt]-A[nt]-ct+S.altAxis,ft=rt?et+w[nt]+A[nt]-ct-S.altAxis:st,pt=f&&rt?function(t,e,n){var i=Ht(t,e,n);return i>n?n:i}(ht,et,ft):Ht(f?ht:it,et,f?ft:st);E[k]=pt,x[k]=pt-et}e.modifiersData[i]=x}},requiresIfExists:["offset"]};function ye(t,e,n){void 0===n&&(n=!1);var i,s,r=At(e),o=At(e)&&function(t){var e=t.getBoundingClientRect(),n=Ot(e.width)/t.offsetWidth||1,i=Ot(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Pt(e),u=Dt(t,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==kt(e)||se(a))&&(l=(i=e)!==Et(i)&&At(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ne(i)),At(e)?((c=Dt(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=ie(a))),{x:u.left+l.scrollLeft-c.x,y:u.top+l.scrollTop-c.y,width:u.width,height:u.height}}function be(t){var e=new Map,n=new Set,i=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||function t(s){n.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach(function(i){if(!n.has(i)){var s=e.get(i);s&&t(s)}}),i.push(s)}(t)}),i}var ke={placement:"bottom",modifiers:[],strategy:"absolute"};function Ee(){for(var t=arguments.length,e=new Array(t),n=0;n{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},Fe=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e},Oe=t=>{const e=Fe(t);return e&&document.querySelector(e)?e:null},De=t=>{const e=Fe(t);return e?document.querySelector(e):null},Be=t=>{t.dispatchEvent(new Event("transitionend"))},Le=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ie=t=>Le(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,Me=(t,e,n)=>{Object.keys(n).forEach(i=>{const s=n[i],r=e[i],o=r&&Le(r)?"element":(t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase())(r);if(!new RegExp(s).test(o))throw new TypeError(`${t.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${s}".`)})},Pe=t=>!(!Le(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),Ne=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),Re=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Re(t.parentNode):null},je=()=>{},Ve=t=>{t.offsetHeight},He=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},$e=[],ze=()=>"rtl"===document.documentElement.dir,We=t=>{(t=>{"loading"===document.readyState?($e.length||document.addEventListener("DOMContentLoaded",()=>{$e.forEach(t=>t())}),$e.push(t)):t()})(()=>{const e=He();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=(()=>(e.fn[n]=i,t.jQueryInterface))}})},qe=t=>{"function"==typeof t&&t()},Ue=(t,e,n=!0)=>{if(!n)return void qe(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),s=Number.parseFloat(n);return i||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let s=!1;const r=({target:n})=>{n===e&&(s=!0,e.removeEventListener("transitionend",r),qe(t))};e.addEventListener("transitionend",r),setTimeout(()=>{s||Be(e)},i)},Ye=(t,e,n,i)=>{let s=t.indexOf(e);if(-1===s)return t[!n&&i?t.length-1:0];const r=t.length;return s+=n?1:-1,i&&(s=(s+r)%r),t[Math.max(0,Math.min(s,r-1))]},Ke=/[^.]*(?=\..*)\.|.*/,Xe=/\..*/,Ge=/::\d+$/,Qe={};let Ze=1;const Je={mouseenter:"mouseover",mouseleave:"mouseout"},tn=/^(mouseenter|mouseleave)/i,en=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function nn(t,e){return e&&`${e}::${Ze++}`||t.uidEvent||Ze++}function sn(t){const e=nn(t);return t.uidEvent=e,Qe[e]=Qe[e]||{},Qe[e]}function rn(t,e,n=null){const i=Object.keys(t);for(let s=0,r=i.length;s(function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)});i?i=t(i):n=t(n)}const[r,o,a]=on(e,n,i),u=sn(t),l=u[a]||(u[a]={}),c=rn(l,o,r?n:null);if(c)return void(c.oneOff=c.oneOff&&s);const h=nn(o,e.replace(Ke,"")),d=r?function(t,e,n){return function i(s){const r=t.querySelectorAll(e);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(let a=r.length;a--;)if(r[a]===o)return s.delegateTarget=o,i.oneOff&&cn.off(t,s.type,e,n),n.apply(o,[s]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&cn.off(t,i.type,e),e.apply(t,[i])}}(t,n);d.delegationSelector=r?n:null,d.originalHandler=o,d.oneOff=s,d.uidEvent=h,l[h]=d,t.addEventListener(a,d,r)}function un(t,e,n,i,s){const r=rn(e[n],i,s);r&&(t.removeEventListener(n,r,Boolean(s)),delete e[n][r.uidEvent])}function ln(t){return t=t.replace(Xe,""),Je[t]||t}const cn={on(t,e,n,i){an(t,e,n,i,!1)},one(t,e,n,i){an(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[s,r,o]=on(e,n,i),a=o!==e,u=sn(t),l=e.startsWith(".");if(void 0!==r){if(!u||!u[o])return;return void un(t,u,o,r,s?n:null)}l&&Object.keys(u).forEach(n=>{!function(t,e,n,i){const s=e[n]||{};Object.keys(s).forEach(r=>{if(r.includes(i)){const i=s[r];un(t,e,n,i.originalHandler,i.delegationSelector)}})}(t,u,n,e.slice(1))});const c=u[o]||{};Object.keys(c).forEach(n=>{const i=n.replace(Ge,"");if(!a||e.includes(i)){const e=c[n];un(t,u,o,e.originalHandler,e.delegationSelector)}})},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=He(),s=ln(e),r=e!==s,o=en.has(s);let a,u=!0,l=!0,c=!1,h=null;return r&&i&&(a=i.Event(e,n),i(t).trigger(a),u=!a.isPropagationStopped(),l=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented()),o?(h=document.createEvent("HTMLEvents")).initEvent(s,u,!0):h=new CustomEvent(e,{bubbles:u,cancelable:!0}),void 0!==n&&Object.keys(n).forEach(t=>{Object.defineProperty(h,t,{get:()=>n[t]})}),c&&h.preventDefault(),l&&t.dispatchEvent(h),h.defaultPrevented&&void 0!==a&&a.preventDefault(),h}},hn=new Map,dn={set(t,e,n){hn.has(t)||hn.set(t,new Map);const i=hn.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>hn.has(t)&&hn.get(t).get(e)||null,remove(t,e){if(!hn.has(t))return;const n=hn.get(t);n.delete(e),0===n.size&&hn.delete(t)}},fn="5.1.3";class pn{constructor(t){(t=Ie(t))&&(this._element=t,dn.set(this._element,this.constructor.DATA_KEY,this))}dispose(){dn.remove(this._element,this.constructor.DATA_KEY),cn.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){Ue(t,e,n)}static getInstance(t){return dn.get(Ie(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return fn}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const gn=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;cn.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Ne(this))return;const s=De(this)||this.closest(`.${i}`);t.getOrCreateInstance(s)[e]()})},mn="alert",vn="close.bs.alert",_n="closed.bs.alert",yn="fade",bn="show";class kn extends pn{static get NAME(){return mn}close(){if(cn.trigger(this._element,vn).defaultPrevented)return;this._element.classList.remove(bn);const t=this._element.classList.contains(yn);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),cn.trigger(this._element,_n),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=kn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}gn(kn,"close"),We(kn);const En="button",wn="active";class An extends pn{static get NAME(){return En}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(wn))}static jQueryInterface(t){return this.each(function(){const e=An.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}function Cn(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function Sn(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}cn.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');An.getOrCreateInstance(e).toggle()}),We(An);const Tn={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Sn(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Sn(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=Cn(t.dataset[n])}),e},getDataAttribute:(t,e)=>Cn(t.getAttribute(`data-bs-${Sn(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},xn={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&n.push(i),i=i.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(", ");return this.find(e,t).filter(t=>!Ne(t)&&Pe(t))}},Fn="carousel",On=500,Dn=40,Bn={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ln={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},In="next",Mn="prev",Pn="left",Nn="right",Rn={ArrowLeft:Nn,ArrowRight:Pn},jn="slide.bs.carousel",Vn="slid.bs.carousel",Hn="keydown.bs.carousel",$n="mouseenter.bs.carousel",zn="mouseleave.bs.carousel",Wn="touchstart.bs.carousel",qn="touchmove.bs.carousel",Un="touchend.bs.carousel",Yn="pointerdown.bs.carousel",Kn="pointerup.bs.carousel",Xn="dragstart.bs.carousel",Gn="carousel",Qn="active",Zn="slide",Jn="carousel-item-end",ti="carousel-item-start",ei="carousel-item-next",ni="carousel-item-prev",ii="pointer-event",si=".active",ri=".active.carousel-item",oi=".carousel-item",ai=".carousel-item img",ui=".carousel-item-next, .carousel-item-prev",li=".carousel-indicators",ci="[data-bs-target]",hi="touch",di="pen";class fi extends pn{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=xn.findOne(li,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Bn}static get NAME(){return Fn}next(){this._slide(In)}nextWhenVisible(){!document.hidden&&Pe(this._element)&&this.next()}prev(){this._slide(Mn)}pause(t){t||(this._isPaused=!0),xn.findOne(ui,this._element)&&(Be(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=xn.findOne(ri,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void cn.one(this._element,Vn,()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const n=t>e?In:Mn;this._slide(n,this._items[t])}_getConfig(t){return t={...Bn,...Tn.getDataAttributes(this._element),..."object"==typeof t?t:{}},Me(Fn,t,Ln),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=Dn)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?Nn:Pn)}_addEventListeners(){this._config.keyboard&&cn.on(this._element,Hn,t=>this._keydown(t)),"hover"===this._config.pause&&(cn.on(this._element,$n,t=>this.pause(t)),cn.on(this._element,zn,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&(t.pointerType===di||t.pointerType===hi),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},n=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},i=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),On+this._config.interval))};xn.find(ai,this._element).forEach(t=>{cn.on(t,Xn,t=>t.preventDefault())}),this._pointerEvent?(cn.on(this._element,Yn,t=>e(t)),cn.on(this._element,Kn,t=>i(t)),this._element.classList.add(ii)):(cn.on(this._element,Wn,t=>e(t)),cn.on(this._element,qn,t=>n(t)),cn.on(this._element,Un,t=>i(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Rn[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?xn.find(oi,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const n=t===In;return Ye(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){const n=this._getItemIndex(t),i=this._getItemIndex(xn.findOne(ri,this._element));return cn.trigger(this._element,jn,{relatedTarget:t,direction:e,from:i,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=xn.findOne(si,this._indicatorsElement);e.classList.remove(Qn),e.removeAttribute("aria-current");const n=xn.find(ci,this._indicatorsElement);for(let e=0;e{cn.trigger(this._element,Vn,{relatedTarget:r,direction:h,from:s,to:o})};if(this._element.classList.contains(Zn)){r.classList.add(c),Ve(r),i.classList.add(l),r.classList.add(l);const t=()=>{r.classList.remove(l,c),r.classList.add(Qn),i.classList.remove(Qn,c,l),this._isSliding=!1,setTimeout(d,0)};this._queueCallback(t,i,!0)}else i.classList.remove(Qn),r.classList.add(Qn),this._isSliding=!1,d();a&&this.cycle()}_directionToOrder(t){return[Nn,Pn].includes(t)?ze()?t===Pn?Mn:In:t===Pn?In:Mn:t}_orderToDirection(t){return[In,Mn].includes(t)?ze()?t===Mn?Pn:Nn:t===Mn?Nn:Pn:t}static carouselInterface(t,e){const n=fi.getOrCreateInstance(t,e);let{_config:i}=n;"object"==typeof e&&(i={...i,...e});const s="string"==typeof e?e:i.slide;if("number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw new TypeError(`No method named "${s}"`);n[s]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){fi.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=De(this);if(!e||!e.classList.contains(Gn))return;const n={...Tn.getDataAttributes(e),...Tn.getDataAttributes(this)},i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),fi.carouselInterface(e,n),i&&fi.getInstance(e).to(i),t.preventDefault()}}cn.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",fi.dataApiClickHandler),cn.on(window,"load.bs.carousel.data-api",()=>{const t=xn.find('[data-bs-ride="carousel"]');for(let e=0,n=t.length;et===this._element);null!==i&&s.length&&(this._selector=i,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return vi}static get NAME(){return pi}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=xn.find(xi,this._config.parent);e=xn.find(Bi,this._config.parent).filter(e=>!t.includes(e))}const n=xn.findOne(this._selector);if(e.length){const i=e.find(t=>n!==t);if((t=i?Ii.getInstance(i):null)&&t._isTransitioning)return}if(cn.trigger(this._element,yi).defaultPrevented)return;e.forEach(e=>{n!==e&&Ii.getOrCreateInstance(e,{toggle:!1}).hide(),t||dn.set(e,gi,null)});const i=this._getDimension();this._element.classList.remove(Ci),this._element.classList.add(Si),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Si),this._element.classList.add(Ci,Ai),this._element.style[i]="",cn.trigger(this._element,bi)},this._element,!0),this._element.style[i]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(cn.trigger(this._element,ki).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Ve(this._element),this._element.classList.add(Si),this._element.classList.remove(Ci,Ai);const e=this._triggerArray.length;for(let t=0;t{this._isTransitioning=!1,this._element.classList.remove(Si),this._element.classList.add(Ci),cn.trigger(this._element,Ei)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ai)}_getConfig(t){return(t={...vi,...Tn.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=Ie(t.parent),Me(pi,t,_i),t}_getDimension(){return this._element.classList.contains(Fi)?Oi:Di}_initializeChildren(){if(!this._config.parent)return;const t=xn.find(xi,this._config.parent);xn.find(Li,this._config.parent).filter(e=>!t.includes(e)).forEach(t=>{const e=De(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))})}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach(t=>{e?t.classList.remove(Ti):t.classList.add(Ti),t.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const n=Ii.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}cn.on(document,wi,Li,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=Oe(this);xn.find(e).forEach(t=>{Ii.getOrCreateInstance(t,{toggle:!1}).toggle()})}),We(Ii);const Mi="dropdown",Pi="Escape",Ni="Space",Ri="Tab",ji="ArrowUp",Vi="ArrowDown",Hi=2,$i=new RegExp(`${ji}|${Vi}|${Pi}`),zi="hide.bs.dropdown",Wi="hidden.bs.dropdown",qi="show.bs.dropdown",Ui="shown.bs.dropdown",Yi="show",Ki="dropup",Xi="dropend",Gi="dropstart",Qi="navbar",Zi='[data-bs-toggle="dropdown"]',Ji=".dropdown-menu",ts=".navbar-nav",es=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ns=ze()?"top-end":"top-start",is=ze()?"top-start":"top-end",ss=ze()?"bottom-end":"bottom-start",rs=ze()?"bottom-start":"bottom-end",os=ze()?"left-start":"right-start",as=ze()?"right-start":"left-start",us={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ls={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class cs extends pn{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return us}static get DefaultType(){return ls}static get NAME(){return Mi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ne(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(cn.trigger(this._element,qi,t).defaultPrevented)return;const e=cs.getParentFromElement(this._element);this._inNavbar?Tn.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(ts)&&[].concat(...document.body.children).forEach(t=>cn.on(t,"mouseover",je)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Yi),this._element.classList.add(Yi),cn.trigger(this._element,Ui,t)}hide(){if(Ne(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){cn.trigger(this._element,zi,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>cn.off(t,"mouseover",je)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Yi),this._element.classList.remove(Yi),this._element.setAttribute("aria-expanded","false"),Tn.removeDataAttribute(this._menu,"popper"),cn.trigger(this._element,Wi,t))}_getConfig(t){if(t={...this.constructor.Default,...Tn.getDataAttributes(this._element),...t},Me(Mi,t,this.constructor.DefaultType),"object"==typeof t.reference&&!Le(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Mi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===Te)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:Le(this._config.reference)?e=Ie(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=Se(e,this._menu,n),i&&Tn.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Yi)}_getMenuElement(){return xn.next(this._element,Ji)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains(Xi))return os;if(t.classList.contains(Gi))return as;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(Ki)?e?is:ns:e?rs:ss}_detectNavbar(){return null!==this._element.closest(`.${Qi}`)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const n=xn.find(es,this._menu).filter(Pe);n.length&&Ye(n,e,t===Vi,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(t.button===Hi||"keyup"===t.type&&t.key!==Ri))return;const e=xn.find(Zi);for(let n=0,i=e.length;ne+t),this._setElementAttributes(hs,"paddingRight",e=>e+t),this._setElementAttributes(ds,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t)[e];t.style[e]=`${n(Number.parseFloat(s))}px`})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(hs,"paddingRight"),this._resetElementAttributes(ds,"marginRight")}_saveInitialAttribute(t,e){const n=t.style[e];n&&Tn.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const n=Tn.getDataAttribute(t,e);void 0===n?t.style.removeProperty(e):(Tn.removeDataAttribute(t,e),t.style[e]=n)})}_applyManipulationCallback(t,e){Le(t)?e(t):xn.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const ps={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},gs={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},ms="backdrop",vs="fade",_s="show",ys=`mousedown.bs.${ms}`;class bs{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&Ve(this._getElement()),this._getElement().classList.add(_s),this._emulateAnimation(()=>{qe(t)})):qe(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(_s),this._emulateAnimation(()=>{this.dispose(),qe(t)})):qe(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(vs),this._element=t}return this._element}_getConfig(t){return(t={...ps,..."object"==typeof t?t:{}}).rootElement=Ie(t.rootElement),Me(ms,t,gs),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),cn.on(this._getElement(),ys,()=>{qe(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(cn.off(this._element,ys),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Ue(t,this._getElement(),this._config.isAnimated)}}const ks={trapElement:null,autofocus:!0},Es={trapElement:"element",autofocus:"boolean"},ws="focustrap",As=".bs.focustrap",Cs=`focusin${As}`,Ss=`keydown.tab${As}`,Ts="Tab",xs="forward",Fs="backward";class Os{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),cn.off(document,As),cn.on(document,Cs,t=>this._handleFocusin(t)),cn.on(document,Ss,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,cn.off(document,As))}_handleFocusin(t){const{target:e}=t,{trapElement:n}=this._config;if(e===document||e===n||n.contains(e))return;const i=xn.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===Fs?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===Ts&&(this._lastTabNavDirection=t.shiftKey?Fs:xs)}_getConfig(t){return t={...ks,..."object"==typeof t?t:{}},Me(ws,t,Es),t}}const Ds="modal",Bs=".bs.modal",Ls="Escape",Is={backdrop:!0,keyboard:!0,focus:!0},Ms={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Ps=`hide${Bs}`,Ns=`hidePrevented${Bs}`,Rs=`hidden${Bs}`,js=`show${Bs}`,Vs=`shown${Bs}`,Hs=`resize${Bs}`,$s=`click.dismiss${Bs}`,zs=`keydown.dismiss${Bs}`,Ws=`mouseup.dismiss${Bs}`,qs=`mousedown.dismiss${Bs}`,Us=`click${Bs}.data-api`,Ys="modal-open",Ks="fade",Xs="show",Gs="modal-static",Qs=".modal-dialog",Zs=".modal-body";class Js extends pn{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=xn.findOne(Qs,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new fs}static get Default(){return Is}static get NAME(){return Ds}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;cn.trigger(this._element,js,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Ys),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),cn.on(this._dialog,qs,()=>{cn.one(this._element,Ws,t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;if(cn.trigger(this._element,Ps).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Xs),cn.off(this._element,$s),cn.off(this._dialog,qs),this._queueCallback(()=>this._hideModal(),this._element,t)}dispose(){[window,this._dialog].forEach(t=>cn.off(t,Bs)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bs({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Os({trapElement:this._element})}_getConfig(t){return t={...Is,...Tn.getDataAttributes(this._element),..."object"==typeof t?t:{}},Me(Ds,t,Ms),t}_showElement(t){const e=this._isAnimated(),n=xn.findOne(Zs,this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),e&&Ve(this._element),this._element.classList.add(Xs);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,cn.trigger(this._element,Vs,{relatedTarget:t})},this._dialog,e)}_setEscapeEvent(){this._isShown?cn.on(this._element,zs,t=>{this._config.keyboard&&t.key===Ls?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Ls||this._triggerBackdropTransition()}):cn.off(this._element,zs)}_setResizeEvent(){this._isShown?cn.on(window,Hs,()=>this._adjustDialog()):cn.off(window,Hs)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ys),this._resetAdjustments(),this._scrollBar.reset(),cn.trigger(this._element,Rs)})}_showBackdrop(t){cn.on(this._element,$s,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(Ks)}_triggerBackdropTransition(){if(cn.trigger(this._element,Ns).defaultPrevented)return;const{classList:t,scrollHeight:e,style:n}=this._element,i=e>document.documentElement.clientHeight;!i&&"hidden"===n.overflowY||t.contains(Gs)||(i||(n.overflowY="hidden"),t.add(Gs),this._queueCallback(()=>{t.remove(Gs),i||this._queueCallback(()=>{n.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!ze()||n&&!t&&ze())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!ze()||!n&&t&&ze())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const n=Js.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}})}}cn.on(document,Us,'[data-bs-toggle="modal"]',function(t){const e=De(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),cn.one(e,js,t=>{t.defaultPrevented||cn.one(e,Rs,()=>{Pe(this)&&this.focus()})});const n=xn.findOne(".modal.show");n&&Js.getInstance(n).hide(),Js.getOrCreateInstance(e).toggle(this)}),gn(Js),We(Js);const tr="offcanvas",er="Escape",nr={backdrop:!0,keyboard:!0,scroll:!1},ir={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},sr="show",rr="offcanvas-backdrop",or="show.bs.offcanvas",ar="shown.bs.offcanvas",ur="hide.bs.offcanvas",lr="hidden.bs.offcanvas",cr="keydown.dismiss.bs.offcanvas";class hr extends pn{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return tr}static get Default(){return nr}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(cn.trigger(this._element,or,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new fs).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(sr);this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),cn.trigger(this._element,ar,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;if(cn.trigger(this._element,ur).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(sr),this._backdrop.hide();this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new fs).reset(),cn.trigger(this._element,lr)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...nr,...Tn.getDataAttributes(this._element),..."object"==typeof t?t:{}},Me(tr,t,ir),t}_initializeBackDrop(){return new bs({className:rr,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Os({trapElement:this._element})}_addEventListeners(){cn.on(this._element,cr,t=>{this._config.keyboard&&t.key===er&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=hr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}cn.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(t){const e=De(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ne(this))return;cn.one(e,lr,()=>{Pe(this)&&this.focus()});const n=xn.findOne(".offcanvas.show");n&&n!==e&&hr.getInstance(n).hide(),hr.getOrCreateInstance(e).toggle(this)}),cn.on(window,"load.bs.offcanvas.data-api",()=>xn.find(".offcanvas.show").forEach(t=>hr.getOrCreateInstance(t).show())),gn(hr),We(hr);const dr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,pr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,gr=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return!dr.has(n)||Boolean(fr.test(t.nodeValue)||pr.test(t.nodeValue));const i=e.filter(t=>t instanceof RegExp);for(let t=0,e=i.length;t{gr(t,o)||n.removeAttribute(t.nodeName)})}return i.body.innerHTML}const _r="tooltip",yr="bs-tooltip",br=new Set(["sanitize","allowList","sanitizeFn"]),kr={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Er={AUTO:"auto",TOP:"top",RIGHT:ze()?"left":"right",BOTTOM:"bottom",LEFT:ze()?"right":"left"},wr={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:mr,popperConfig:null},Ar={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Cr="fade",Sr="show",Tr="show",xr="out",Fr=".tooltip-inner",Or=".modal",Dr="hide.bs.modal",Br="hover",Lr="focus",Ir="click",Mr="manual";class Pr extends pn{constructor(t,e){if(void 0===Te)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return wr}static get NAME(){return _r}static get Event(){return Ar}static get DefaultType(){return kr}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Sr))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),cn.off(this._element.closest(Or),Dr,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=cn.trigger(this._element,this.constructor.Event.SHOW),e=Re(this._element),n=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Fr).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),s=xe(this.constructor.NAME);i.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&i.classList.add(Cr);const r="function"==typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,o=this._getAttachment(r);this._addAttachmentClass(o);const{container:a}=this._config;dn.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(i),cn.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Se(this._element,i,this._getPopperConfig(o)),i.classList.add(Sr);const u=this._resolvePossibleFunction(this._config.customClass);u&&i.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{cn.on(t,"mouseover",je)});const l=this.tip.classList.contains(Cr);this._queueCallback(()=>{const t=this._hoverState;this._hoverState=null,cn.trigger(this._element,this.constructor.Event.SHOWN),t===xr&&this._leave(null,this)},this.tip,l)}hide(){if(!this._popper)return;const t=this.getTipElement();if(cn.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Sr),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>cn.off(t,"mouseover",je)),this._activeTrigger[Ir]=!1,this._activeTrigger[Lr]=!1,this._activeTrigger[Br]=!1;const e=this.tip.classList.contains(Cr);this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==Tr&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),cn.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())},this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Cr,Sr),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Fr)}_sanitizeAndSetContent(t,e,n){const i=xn.findOne(n,t);e||!i?this.setElementContent(i,e):i.remove()}setElementContent(t,e){if(null!==t)return Le(e)?(e=Ie(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=vr(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Er[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(t=>{if("click"===t)cn.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if(t!==Mr){const e=t===Br?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Br?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;cn.on(this._element,e,this._config.selector,t=>this._enter(t)),cn.on(this._element,n,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=(()=>{this._element&&this.hide()}),cn.on(this._element.closest(Or),Dr,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?Lr:Br]=!0),e.getTipElement().classList.contains(Sr)||e._hoverState===Tr?e._hoverState=Tr:(clearTimeout(e._timeout),e._hoverState=Tr,e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===Tr&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?Lr:Br]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=xr,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{e._hoverState===xr&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=Tn.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{br.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:Ie(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Me(_r,t,this.constructor.DefaultType),t.sanitize&&(t.template=vr(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=t.getAttribute("class").match(e);null!==n&&n.length>0&&n.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_getBasicClassPrefix(){return yr}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=Pr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}We(Pr);const Nr="popover",Rr="bs-popover",jr={...Pr.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},Vr={...Pr.DefaultType,content:"(string|element|function)"},Hr={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},$r=".popover-header",zr=".popover-body";class Wr extends Pr{static get Default(){return jr}static get NAME(){return Nr}static get Event(){return Hr}static get DefaultType(){return Vr}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),$r),this._sanitizeAndSetContent(t,this._getContent(),zr)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return Rr}static jQueryInterface(t){return this.each(function(){const e=Wr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}We(Wr);const qr="scrollspy",Ur=".bs.scrollspy",Yr={offset:10,method:"auto",target:""},Kr={offset:"number",method:"string",target:"(string|element)"},Xr=`activate${Ur}`,Gr=`scroll${Ur}`,Qr=`load${Ur}.data-api`,Zr="dropdown-item",Jr="active",to=".nav, .list-group",eo=".nav-link",no=".nav-item",io=".list-group-item",so=`${eo}, ${io}, .${Zr}`,ro=".dropdown",oo=".dropdown-toggle",ao="offset",uo="position";class lo extends pn{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,cn.on(this._scrollElement,Gr,()=>this._process()),this.refresh(),this._process()}static get Default(){return Yr}static get NAME(){return qr}refresh(){const t=this._scrollElement===this._scrollElement.window?ao:uo,e="auto"===this._config.method?t:this._config.method,n=e===uo?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),xn.find(so,this._config.target).map(t=>{const i=Oe(t),s=i?xn.findOne(i):null;if(s){const t=s.getBoundingClientRect();if(t.width||t.height)return[Tn[e](s).top+n,i]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){cn.off(this._scrollElement,Ur),super.dispose()}_getConfig(t){return(t={...Yr,...Tn.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=Ie(t.target)||document.documentElement,Me(qr,t,Kr),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),n=xn.findOne(e.join(","),this._config.target);n.classList.add(Jr),n.classList.contains(Zr)?xn.findOne(oo,n.closest(ro)).classList.add(Jr):xn.parents(n,to).forEach(t=>{xn.prev(t,`${eo}, ${io}`).forEach(t=>t.classList.add(Jr)),xn.prev(t,no).forEach(t=>{xn.children(t,eo).forEach(t=>t.classList.add(Jr))})}),cn.trigger(this._scrollElement,Xr,{relatedTarget:t})}_clear(){xn.find(so,this._config.target).filter(t=>t.classList.contains(Jr)).forEach(t=>t.classList.remove(Jr))}static jQueryInterface(t){return this.each(function(){const e=lo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}cn.on(window,Qr,()=>{xn.find('[data-bs-spy="scroll"]').forEach(t=>new lo(t))}),We(lo);const co="tab",ho="hide.bs.tab",fo="hidden.bs.tab",po="show.bs.tab",go="shown.bs.tab",mo="dropdown-menu",vo="active",_o="fade",yo="show",bo=".dropdown",ko=".nav, .list-group",Eo=".active",wo=":scope > li > .active",Ao=".dropdown-toggle",Co=":scope > .dropdown-menu .active";class So extends pn{static get NAME(){return co}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(vo))return;let t;const e=De(this._element),n=this._element.closest(ko);if(n){const e="UL"===n.nodeName||"OL"===n.nodeName?wo:Eo;t=(t=xn.find(e,n))[t.length-1]}const i=t?cn.trigger(t,ho,{relatedTarget:this._element}):null;if(cn.trigger(this._element,po,{relatedTarget:t}).defaultPrevented||null!==i&&i.defaultPrevented)return;this._activate(this._element,n);const s=()=>{cn.trigger(t,fo,{relatedTarget:this._element}),cn.trigger(this._element,go,{relatedTarget:t})};e?this._activate(e,e.parentNode,s):s()}_activate(t,e,n){const i=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?xn.children(e,Eo):xn.find(wo,e))[0],s=n&&i&&i.classList.contains(_o),r=()=>this._transitionComplete(t,i,n);i&&s?(i.classList.remove(yo),this._queueCallback(r,t,!0)):r()}_transitionComplete(t,e,n){if(e){e.classList.remove(vo);const t=xn.findOne(Co,e.parentNode);t&&t.classList.remove(vo),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(vo),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Ve(t),t.classList.contains(_o)&&t.classList.add(yo);let i=t.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains(mo)){const e=t.closest(bo);e&&xn.find(Ao,e).forEach(t=>t.classList.add(vo)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){const e=So.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}cn.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ne(this))return;So.getOrCreateInstance(this).show()}),We(So);const To="toast",xo="mouseover.bs.toast",Fo="mouseout.bs.toast",Oo="focusin.bs.toast",Do="focusout.bs.toast",Bo="hide.bs.toast",Lo="hidden.bs.toast",Io="show.bs.toast",Mo="shown.bs.toast",Po="fade",No="hide",Ro="show",jo="showing",Vo={animation:"boolean",autohide:"boolean",delay:"number"},Ho={animation:!0,autohide:!0,delay:5e3};class $o extends pn{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Vo}static get Default(){return Ho}static get NAME(){return To}show(){if(cn.trigger(this._element,Io).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Po);this._element.classList.remove(No),Ve(this._element),this._element.classList.add(Ro),this._element.classList.add(jo),this._queueCallback(()=>{this._element.classList.remove(jo),cn.trigger(this._element,Mo),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Ro))return;if(cn.trigger(this._element,Bo).defaultPrevented)return;this._element.classList.add(jo),this._queueCallback(()=>{this._element.classList.add(No),this._element.classList.remove(jo),this._element.classList.remove(Ro),cn.trigger(this._element,Lo)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Ro)&&this._element.classList.remove(Ro),super.dispose()}_getConfig(t){return t={...Ho,...Tn.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},Me(To,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){cn.on(this._element,xo,t=>this._onInteraction(t,!0)),cn.on(this._element,Fo,t=>this._onInteraction(t,!1)),cn.on(this._element,Oo,t=>this._onInteraction(t,!0)),cn.on(this._element,Do,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=$o.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}gn($o),We($o);var zo=Object.freeze({__proto__:null,Alert:kn,Button:An,Carousel:fi,Collapse:Ii,Dropdown:cs,Modal:Js,Offcanvas:hr,Popover:Wr,ScrollSpy:lo,Tab:So,Toast:$o,Tooltip:Pr});[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')).map(function(t){return new cs(t)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(t){var e,n,i={delay:{show:50,hide:50},html:null!==(e="true"===t.getAttribute("data-bs-html"))&&void 0!==e&&e,placement:null!==(n=t.getAttribute("data-bs-placement"))&&void 0!==n?n:"auto"};return new Pr(t,i)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(t){var e,n,i={delay:{show:50,hide:50},html:null!==(e="true"===t.getAttribute("data-bs-html"))&&void 0!==e&&e,placement:null!==(n=t.getAttribute("data-bs-placement"))&&void 0!==n?n:"auto"};return new Wr(t,i)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="switch-icon"]')).map(function(t){t.addEventListener("click",function(e){e.stopPropagation(),t.classList.toggle("active")})});var Wo;(Wo=window.location.hash)&&[].slice.call(document.querySelectorAll('[data-bs-toggle="tab"]')).filter(function(t){return t.hash===Wo}).map(function(t){new So(t).show()}),[].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]')).map(function(t){return new $o(t)}),window.bootstrap=zo});