r3ui-lib 1.2.3-3 → 1.2.3-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
- (function(Ee,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ee=typeof globalThis<"u"?globalThis:Ee||self,o(Ee.R3uiLib={},Ee.Vue))})(this,(function(Ee,o){"use strict";const kr={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},Sr={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("i",{class:o.normalizeClass(`bi bi-${n.name}`)},null,2))}},vd={class:"d-inline-flex align-items-center justify-content-center"},yd={key:2},xr={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(a,l)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"DefaultButton",class:o.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),onClick:o.withModifiers(s,["prevent"])},[o.createElementVNode("div",vd,[n.icon&&n.iconPosition==="left"?(o.openBlock(),o.createBlock(Sr,{key:0,name:n.icon,class:o.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0),n.isLoading?(o.openBlock(),o.createBlock(kr,{key:1,isSmall:!0,class:"pe-2"})):o.createCommentVNode("",!0),n.label?(o.openBlock(),o.createElementBlock("span",yd,o.toDisplayString(n.label),1)):o.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(o.openBlock(),o.createBlock(Sr,{key:3,name:n.icon,class:o.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0)])],2))}},wd=o.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[o.createElementVNode("i",{class:o.normalizeClass(s.iconClass)},null,2),o.createTextVNode(" "+o.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),He=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},ja=He(wd,[["__scopeId","data-v-cf07042b"]]),Cd={"data-test":"CollapseButton"},Ed=["id"],kd=["id"],Sd=He(o.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.isCollapsed),s=o.computed(()=>t.expandText),a=o.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},u=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(c,d)=>(o.openBlock(),o.createElementBlock("div",Cd,[r.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",id:c.expandId,class:"btn btn-light collapse-button",onClick:l,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(s.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-down-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,Ed)):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",id:c.collapseId,class:"btn btn-light collapse-button",onClick:u,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(a.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-up-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,kd))]))}}),[["__scopeId","data-v-a0502514"]]),xd=He(o.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Экспорт")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),Md=He(o.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Печать")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),Rd=["disabled"],Td={class:"clear-form-button__label"},Dd=He(o.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[a[0]||(a[0]=o.createElementVNode("div",{class:"clear-form-button__icon"},[o.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),o.createElementVNode("div",Td,o.toDisplayString(s.label),1)],10,Rd))}}),[["__scopeId","data-v-ed163ff4"]]),_d={class:"toggle-buttons","data-test":"ToggleButtons"},Ad=["onClick"],Od=He(o.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",_d,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.options,a=>(o.openBlock(),o.createElementBlock("button",{key:a.name,type:"button",class:o.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===a.name}]),onClick:l=>i(a)},o.toDisplayString(a.title),11,Ad))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var Wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ya(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Ld(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var Mr,Ua;function _i(){return Ua||(Ua=1,Mr=TypeError),Mr}const Pd=Ld(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Rr,Ga;function Tn(){if(Ga)return Rr;Ga=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,h=p?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,m=Object.prototype.toString,E=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,T=String.prototype.replace,v=String.prototype.toUpperCase,R=String.prototype.toLowerCase,y=RegExp.prototype.test,M=Array.prototype.concat,C=Array.prototype.join,x=Array.prototype.slice,w=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",W=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Y=Object.prototype.propertyIsEnumerable,N=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(K){return K.__proto__}:null);function I(K,ne){if(K===1/0||K===-1/0||K!==K||K&&K>-1e3&&K<1e3||y.call(/e/,ne))return ne;var ze=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof K=="number"){var Ue=K<0?-w(-K):w(K);if(Ue!==K){var Le=String(Ue),Te=g.call(ne,Le.length+1);return T.call(Le,ze,"$&_")+"."+T.call(T.call(Te,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(ne,ze,"$&_")}var q=Pd,L=q.custom,B=ue(L)?L:null,$={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Rr=function K(ne,ze,Ue,Le){var Te=ze||{};if(Re(Te,"quoteStyle")&&!Re($,Te.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Re(Te,"maxStringLength")&&(typeof Te.maxStringLength=="number"?Te.maxStringLength<0&&Te.maxStringLength!==1/0:Te.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var bt=Re(Te,"customInspect")?Te.customInspect:!0;if(typeof bt!="boolean"&&bt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Re(Te,"indent")&&Te.indent!==null&&Te.indent!==" "&&!(parseInt(Te.indent,10)===Te.indent&&Te.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Re(Te,"numericSeparator")&&typeof Te.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var nt=Te.numericSeparator;if(typeof ne>"u")return"undefined";if(ne===null)return"null";if(typeof ne=="boolean")return ne?"true":"false";if(typeof ne=="string")return Fe(ne,Te);if(typeof ne=="number"){if(ne===0)return 1/0/ne>0?"0":"-0";var P=String(ne);return nt?I(ne,P):P}if(typeof ne=="bigint"){var k=String(ne)+"n";return nt?I(ne,k):k}var A=typeof Te.depth>"u"?5:Te.depth;if(typeof Ue>"u"&&(Ue=0),Ue>=A&&A>0&&typeof ne=="object")return ie(ne)?"[Array]":"[Object]";var F=ke(Te,Ue);if(typeof Le>"u")Le=[];else if(Ve(Le,ne)>=0)return"[Circular]";function G(zt,Jt,Xi){if(Jt&&(Le=x.call(Le),Le.push(Jt)),Xi){var Di={depth:Te.depth};return Re(Te,"quoteStyle")&&(Di.quoteStyle=Te.quoteStyle),K(zt,Di,Ue+1,Le)}return K(zt,Te,Ue+1,Le)}if(typeof ne=="function"&&!H(ne)){var se=le(ne),oe=Se(ne,G);return"[Function"+(se?": "+se:" (anonymous)")+"]"+(oe.length>0?" { "+C.call(oe,", ")+" }":"")}if(ue(ne)){var ce=V?T.call(String(ne),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(ne);return typeof ne=="object"&&!V?Ae(ce):ce}if(Me(ne)){for(var fe="<"+R.call(String(ne.nodeName)),ge=ne.attributes||[],ve=0;ve<ge.length;ve++)fe+=" "+ge[ve].name+"="+J(Z(ge[ve].value),"double",Te);return fe+=">",ne.childNodes&&ne.childNodes.length&&(fe+="..."),fe+="</"+R.call(String(ne.nodeName))+">",fe}if(ie(ne)){if(ne.length===0)return"[]";var Oe=Se(ne,G);return F&&!he(Oe)?"["+Be(Oe,F)+"]":"[ "+C.call(Oe,", ")+" ]"}if(re(ne)){var Ye=Se(ne,G);return!("cause"in Error.prototype)&&"cause"in ne&&!Y.call(ne,"cause")?"{ ["+String(ne)+"] "+C.call(M.call("[cause]: "+G(ne.cause),Ye),", ")+" }":Ye.length===0?"["+String(ne)+"]":"{ ["+String(ne)+"] "+C.call(Ye,", ")+" }"}if(typeof ne=="object"&&bt){if(B&&typeof ne[B]=="function"&&q)return q(ne,{depth:A-Ue});if(bt!=="symbol"&&typeof ne.inspect=="function")return ne.inspect()}if(ae(ne)){var Ne=[];return i&&i.call(ne,function(zt,Jt){Ne.push(G(Jt,ne,!0)+" => "+G(zt,ne))}),ot("Map",t.call(ne),Ne,F)}if(me(ne)){var Xe=[];return l&&l.call(ne,function(zt){Xe.push(G(zt,ne))}),ot("Set",a.call(ne),Xe,F)}if(X(ne))return Ie("WeakMap");if(de(ne))return Ie("WeakSet");if(te(ne))return Ie("WeakRef");if(Q(ne))return Ae(G(Number(ne)));if(ye(ne))return Ae(G(_.call(ne)));if(pe(ne))return Ae(S.call(ne));if(ee(ne))return Ae(G(String(ne)));if(typeof window<"u"&&ne===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ne===globalThis||typeof Wa<"u"&&ne===Wa)return"{ [object globalThis] }";if(!j(ne)&&!H(ne)){var et=Se(ne,G),lt=N?N(ne)===Object.prototype:ne instanceof Object||ne.constructor===Object,rt=ne instanceof Object?"":"null prototype",bi=!lt&&W&&Object(ne)===ne&&W in ne?g.call(Pe(ne),8,-1):rt?"Object":"",Ti=lt||typeof ne.constructor!="function"?"":ne.constructor.name?ne.constructor.name+" ":"",li=Ti+(bi||rt?"["+C.call(M.call([],bi||[],rt||[]),": ")+"] ":"");return et.length===0?li+"{}":F?li+"{"+Be(et,F)+"}":li+"{ "+C.call(et,", ")+" }"}return String(ne)};function J(K,ne,ze){var Ue=ze.quoteStyle||ne,Le=$[Ue];return Le+K+Le}function Z(K){return T.call(String(K),/"/g,"&quot;")}function U(K){return!W||!(typeof K=="object"&&(W in K||typeof K[W]<"u"))}function ie(K){return Pe(K)==="[object Array]"&&U(K)}function j(K){return Pe(K)==="[object Date]"&&U(K)}function H(K){return Pe(K)==="[object RegExp]"&&U(K)}function re(K){return Pe(K)==="[object Error]"&&U(K)}function ee(K){return Pe(K)==="[object String]"&&U(K)}function Q(K){return Pe(K)==="[object Number]"&&U(K)}function pe(K){return Pe(K)==="[object Boolean]"&&U(K)}function ue(K){if(V)return K&&typeof K=="object"&&K instanceof Symbol;if(typeof K=="symbol")return!0;if(!K||typeof K!="object"||!O)return!1;try{return O.call(K),!0}catch{}return!1}function ye(K){if(!K||typeof K!="object"||!_)return!1;try{return _.call(K),!0}catch{}return!1}var we=Object.prototype.hasOwnProperty||function(K){return K in this};function Re(K,ne){return we.call(K,ne)}function Pe(K){return m.call(K)}function le(K){if(K.name)return K.name;var ne=b.call(E.call(K),/^function\s*([\w$]+)/);return ne?ne[1]:null}function Ve(K,ne){if(K.indexOf)return K.indexOf(ne);for(var ze=0,Ue=K.length;ze<Ue;ze++)if(K[ze]===ne)return ze;return-1}function ae(K){if(!t||!K||typeof K!="object")return!1;try{t.call(K);try{a.call(K)}catch{return!0}return K instanceof Map}catch{}return!1}function X(K){if(!c||!K||typeof K!="object")return!1;try{c.call(K,c);try{f.call(K,f)}catch{return!0}return K instanceof WeakMap}catch{}return!1}function te(K){if(!h||!K||typeof K!="object")return!1;try{return h.call(K),!0}catch{}return!1}function me(K){if(!a||!K||typeof K!="object")return!1;try{a.call(K);try{t.call(K)}catch{return!0}return K instanceof Set}catch{}return!1}function de(K){if(!f||!K||typeof K!="object")return!1;try{f.call(K,f);try{c.call(K,c)}catch{return!0}return K instanceof WeakSet}catch{}return!1}function Me(K){return!K||typeof K!="object"?!1:typeof HTMLElement<"u"&&K instanceof HTMLElement?!0:typeof K.nodeName=="string"&&typeof K.getAttribute=="function"}function Fe(K,ne){if(K.length>ne.maxStringLength){var ze=K.length-ne.maxStringLength,Ue="... "+ze+" more character"+(ze>1?"s":"");return Fe(g.call(K,0,ne.maxStringLength),ne)+Ue}var Le=z[ne.quoteStyle||"single"];Le.lastIndex=0;var Te=T.call(T.call(K,Le,"\\$1"),/[\x00-\x1f]/g,De);return J(Te,"single",ne)}function De(K){var ne=K.charCodeAt(0),ze={8:"b",9:"t",10:"n",12:"f",13:"r"}[ne];return ze?"\\"+ze:"\\x"+(ne<16?"0":"")+v.call(ne.toString(16))}function Ae(K){return"Object("+K+")"}function Ie(K){return K+" { ? }"}function ot(K,ne,ze,Ue){var Le=Ue?Be(ze,Ue):C.call(ze,", ");return K+" ("+ne+") {"+Le+"}"}function he(K){for(var ne=0;ne<K.length;ne++)if(Ve(K[ne],`
2
- `)>=0)return!1;return!0}function ke(K,ne){var ze;if(K.indent===" ")ze=" ";else if(typeof K.indent=="number"&&K.indent>0)ze=C.call(Array(K.indent+1)," ");else return null;return{base:ze,prev:C.call(Array(ne+1),ze)}}function Be(K,ne){if(K.length===0)return"";var ze=`
3
- `+ne.prev+ne.base;return ze+C.call(K,","+ze)+`
4
- `+ne.prev}function Se(K,ne){var ze=ie(K),Ue=[];if(ze){Ue.length=K.length;for(var Le=0;Le<K.length;Le++)Ue[Le]=Re(K,Le)?ne(K[Le],K):""}var Te=typeof D=="function"?D(K):[],bt;if(V){bt={};for(var nt=0;nt<Te.length;nt++)bt["$"+Te[nt]]=Te[nt]}for(var P in K)Re(K,P)&&(ze&&String(Number(P))===P&&P<K.length||V&&bt["$"+P]instanceof Symbol||(y.call(/[^\w$]/,P)?Ue.push(ne(P,K)+": "+ne(K[P],K)):Ue.push(P+": "+ne(K[P],K))));if(typeof D=="function")for(var k=0;k<Te.length;k++)Y.call(K,Te[k])&&Ue.push("["+ne(Te[k])+"]: "+ne(K[Te[k]],K));return Ue}return Rr}var Tr,$a;function Fd(){if($a)return Tr;$a=1;var n=Tn(),e=_i(),t=function(l,u,c){for(var d=l,f;(f=d.next)!=null;d=f)if(f.key===u)return d.next=f.next,c||(f.next=l.next,l.next=f),f},i=function(l,u){if(l){var c=t(l,u);return c&&c.value}},r=function(l,u,c){var d=t(l,u);d?d.value=c:l.next={key:u,next:l.next,value:c}},s=function(l,u){return l?!!t(l,u):!1},a=function(l,u){if(l)return t(l,u,!0)};return Tr=function(){var u,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var f=u&&u.next,p=a(u,d);return p&&f&&f===p&&(u=void 0),!!p},get:function(d){return i(u,d)},has:function(d){return s(u,d)},set:function(d,f){u||(u={next:void 0}),r(u,d,f)}};return c},Tr}var Dr,qa;function Ka(){return qa||(qa=1,Dr=Object),Dr}var _r,Ja;function Bd(){return Ja||(Ja=1,_r=Error),_r}var Ar,Xa;function Vd(){return Xa||(Xa=1,Ar=EvalError),Ar}var Or,Qa;function Nd(){return Qa||(Qa=1,Or=RangeError),Or}var Lr,Za;function Hd(){return Za||(Za=1,Lr=ReferenceError),Lr}var Pr,eo;function Id(){return eo||(eo=1,Pr=SyntaxError),Pr}var Fr,to;function zd(){return to||(to=1,Fr=URIError),Fr}var Br,io;function jd(){return io||(io=1,Br=Math.abs),Br}var Vr,no;function Wd(){return no||(no=1,Vr=Math.floor),Vr}var Nr,ro;function Yd(){return ro||(ro=1,Nr=Math.max),Nr}var Hr,so;function Ud(){return so||(so=1,Hr=Math.min),Hr}var Ir,ao;function Gd(){return ao||(ao=1,Ir=Math.pow),Ir}var zr,oo;function $d(){return oo||(oo=1,zr=Math.round),zr}var jr,lo;function qd(){return lo||(lo=1,jr=Number.isNaN||function(e){return e!==e}),jr}var Wr,uo;function Kd(){if(uo)return Wr;uo=1;var n=qd();return Wr=function(t){return n(t)||t===0?t:t<0?-1:1},Wr}var Yr,co;function Jd(){return co||(co=1,Yr=Object.getOwnPropertyDescriptor),Yr}var Ur,ho;function fo(){if(ho)return Ur;ho=1;var n=Jd();if(n)try{n([],"length")}catch{n=null}return Ur=n,Ur}var Gr,po;function Xd(){if(po)return Gr;po=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Gr=n,Gr}var $r,mo;function Qd(){return mo||(mo=1,$r=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),$r}var qr,go;function Zd(){if(go)return qr;go=1;var n=typeof Symbol<"u"&&Symbol,e=Qd();return qr=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Kr,bo;function vo(){return bo||(bo=1,Kr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Kr}var Jr,yo;function wo(){if(yo)return Jr;yo=1;var n=Ka();return Jr=n.getPrototypeOf||null,Jr}var Xr,Co;function eh(){if(Co)return Xr;Co=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},s=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},a=function(l,u){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=u);return c};return Xr=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==i)throw new TypeError(n+c);for(var d=s(arguments,1),f,p=function(){if(this instanceof f){var b=c.apply(this,r(d,arguments));return Object(b)===b?b:this}return c.apply(u,r(d,arguments))},h=t(0,c.length-d.length),S=[],m=0;m<h;m++)S[m]="$"+m;if(f=Function("binder","return function ("+a(S,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var E=function(){};E.prototype=c.prototype,f.prototype=new E,E.prototype=null}return f},Xr}var Qr,Eo;function Dn(){if(Eo)return Qr;Eo=1;var n=eh();return Qr=Function.prototype.bind||n,Qr}var Zr,ko;function es(){return ko||(ko=1,Zr=Function.prototype.call),Zr}var ts,So;function xo(){return So||(So=1,ts=Function.prototype.apply),ts}var is,Mo;function th(){return Mo||(Mo=1,is=typeof Reflect<"u"&&Reflect&&Reflect.apply),is}var ns,Ro;function ih(){if(Ro)return ns;Ro=1;var n=Dn(),e=xo(),t=es(),i=th();return ns=i||n.call(t,e),ns}var rs,To;function Do(){if(To)return rs;To=1;var n=Dn(),e=_i(),t=es(),i=ih();return rs=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},rs}var ss,_o;function nh(){if(_o)return ss;_o=1;var n=Do(),e=fo(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return ss=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,ss}var as,Ao;function rh(){if(Ao)return as;Ao=1;var n=vo(),e=wo(),t=nh();return as=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,as}var os,Oo;function sh(){if(Oo)return os;Oo=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Dn();return os=t.call(n,e),os}var ls,Lo;function us(){if(Lo)return ls;Lo=1;var n,e=Ka(),t=Bd(),i=Vd(),r=Nd(),s=Hd(),a=Id(),l=_i(),u=zd(),c=jd(),d=Wd(),f=Yd(),p=Ud(),h=Gd(),S=$d(),m=Kd(),E=Function,b=function(H){try{return E('"use strict"; return ('+H+").constructor;")()}catch{}},g=fo(),T=Xd(),v=function(){throw new l},R=g?(function(){try{return arguments.callee,v}catch{try{return g(arguments,"callee").get}catch{return v}}})():v,y=Zd()(),M=rh(),C=wo(),x=vo(),w=xo(),_=es(),D={},O=typeof Uint8Array>"u"||!M?n:M(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&M?M([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":D,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&M?M(M([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y||!M?n:M(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y||!M?n:M(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&M?M(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":R,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":w,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":C,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":S,"%Math.sign%":m,"%Reflect.getPrototypeOf%":x};if(M)try{null.error}catch(H){var W=M(M(H));V["%Error.prototype%"]=W}var Y=function H(re){var ee;if(re==="%AsyncFunction%")ee=b("async function () {}");else if(re==="%GeneratorFunction%")ee=b("function* () {}");else if(re==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(re==="%AsyncGenerator%"){var Q=H("%AsyncGeneratorFunction%");Q&&(ee=Q.prototype)}else if(re==="%AsyncIteratorPrototype%"){var pe=H("%AsyncGenerator%");pe&&M&&(ee=M(pe.prototype))}return V[re]=ee,ee},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=Dn(),q=sh(),L=I.call(_,Array.prototype.concat),B=I.call(w,Array.prototype.splice),$=I.call(_,String.prototype.replace),z=I.call(_,String.prototype.slice),J=I.call(_,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,ie=function(re){var ee=z(re,0,1),Q=z(re,-1);if(ee==="%"&&Q!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Q==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var pe=[];return $(re,Z,function(ue,ye,we,Re){pe[pe.length]=we?$(Re,U,"$1"):ye||ue}),pe},j=function(re,ee){var Q=re,pe;if(q(N,Q)&&(pe=N[Q],Q="%"+pe[0]+"%"),q(V,Q)){var ue=V[Q];if(ue===D&&(ue=Y(Q)),typeof ue>"u"&&!ee)throw new l("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:pe,name:Q,value:ue}}throw new a("intrinsic "+re+" does not exist!")};return ls=function(re,ee){if(typeof re!="string"||re.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new l('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,re)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=ie(re),pe=Q.length>0?Q[0]:"",ue=j("%"+pe+"%",ee),ye=ue.name,we=ue.value,Re=!1,Pe=ue.alias;Pe&&(pe=Pe[0],B(Q,L([0,1],Pe)));for(var le=1,Ve=!0;le<Q.length;le+=1){var ae=Q[le],X=z(ae,0,1),te=z(ae,-1);if((X==='"'||X==="'"||X==="`"||te==='"'||te==="'"||te==="`")&&X!==te)throw new a("property names with quotes must have matching quotes");if((ae==="constructor"||!Ve)&&(Re=!0),pe+="."+ae,ye="%"+pe+"%",q(V,ye))we=V[ye];else if(we!=null){if(!(ae in we)){if(!ee)throw new l("base intrinsic for "+re+" exists, but the property is not available.");return}if(g&&le+1>=Q.length){var me=g(we,ae);Ve=!!me,Ve&&"get"in me&&!("originalValue"in me.get)?we=me.get:we=we[ae]}else Ve=q(we,ae),we=we[ae];Ve&&!Re&&(V[ye]=we)}}return we},ls}var cs,Po;function Fo(){if(Po)return cs;Po=1;var n=us(),e=Do(),t=e([n("%String.prototype.indexOf%")]);return cs=function(r,s){var a=n(r,!!s);return typeof a=="function"&&t(r,".prototype.")>-1?e([a]):a},cs}var ds,Bo;function Vo(){if(Bo)return ds;Bo=1;var n=us(),e=Fo(),t=Tn(),i=_i(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ds=!!r&&function(){var f,p={assert:function(h){if(!p.has(h))throw new i("Side channel does not contain "+t(h))},delete:function(h){if(f){var S=u(f,h);return c(f)===0&&(f=void 0),S}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?l(f,h):!1},set:function(h,S){f||(f=new r),a(f,h,S)}};return p},ds}var hs,No;function ah(){if(No)return hs;No=1;var n=us(),e=Fo(),t=Tn(),i=Vo(),r=_i(),s=n("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return hs=s?function(){var f,p,h={assert:function(S){if(!h.has(S))throw new r("Side channel does not contain "+t(S))},delete:function(S){if(s&&S&&(typeof S=="object"||typeof S=="function")){if(f)return c(f,S)}else if(i&&p)return p.delete(S);return!1},get:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?a(f,S):p&&p.get(S)},has:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?u(f,S):!!p&&p.has(S)},set:function(S,m){s&&S&&(typeof S=="object"||typeof S=="function")?(f||(f=new s),l(f,S,m)):i&&(p||(p=i()),p.set(S,m))}};return h}:i,hs}var fs,Ho;function oh(){if(Ho)return fs;Ho=1;var n=_i(),e=Tn(),t=Fd(),i=Vo(),r=ah(),s=r||i||t;return fs=function(){var l,u={assert:function(c){if(!u.has(c))throw new n("Side channel does not contain "+e(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=s()),l.set(c,d)}};return u},fs}var ps,Io;function ms(){if(Io)return ps;Io=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ps={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},ps}var gs,zo;function jo(){if(zo)return gs;zo=1;var n=ms(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var E=[],b=0;b<256;++b)E.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return E})(),r=function(b){for(;b.length>1;){var g=b.pop(),T=g.obj[g.prop];if(t(T)){for(var v=[],R=0;R<T.length;++R)typeof T[R]<"u"&&v.push(T[R]);g.obj[g.prop]=v}}},s=function(b,g){for(var T=g&&g.plainObjects?{__proto__:null}:{},v=0;v<b.length;++v)typeof b[v]<"u"&&(T[v]=b[v]);return T},a=function E(b,g,T){if(!g)return b;if(typeof g!="object"&&typeof g!="function"){if(t(b))b.push(g);else if(b&&typeof b=="object")(T&&(T.plainObjects||T.allowPrototypes)||!e.call(Object.prototype,g))&&(b[g]=!0);else return[b,g];return b}if(!b||typeof b!="object")return[b].concat(g);var v=b;return t(b)&&!t(g)&&(v=s(b,T)),t(b)&&t(g)?(g.forEach(function(R,y){if(e.call(b,y)){var M=b[y];M&&typeof M=="object"&&R&&typeof R=="object"?b[y]=E(M,R,T):b.push(R)}else b[y]=R}),b):Object.keys(g).reduce(function(R,y){var M=g[y];return e.call(R,y)?R[y]=E(R[y],M,T):R[y]=M,R},v)},l=function(b,g){return Object.keys(g).reduce(function(T,v){return T[v]=g[v],T},b)},u=function(E,b,g){var T=E.replace(/\+/g," ");if(g==="iso-8859-1")return T.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(T)}catch{return T}},c=1024,d=function(b,g,T,v,R){if(b.length===0)return b;var y=b;if(typeof b=="symbol"?y=Symbol.prototype.toString.call(b):typeof b!="string"&&(y=String(b)),T==="iso-8859-1")return escape(y).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var M="",C=0;C<y.length;C+=c){for(var x=y.length>=c?y.slice(C,C+c):y,w=[],_=0;_<x.length;++_){var D=x.charCodeAt(_);if(D===45||D===46||D===95||D===126||D>=48&&D<=57||D>=65&&D<=90||D>=97&&D<=122||R===n.RFC1738&&(D===40||D===41)){w[w.length]=x.charAt(_);continue}if(D<128){w[w.length]=i[D];continue}if(D<2048){w[w.length]=i[192|D>>6]+i[128|D&63];continue}if(D<55296||D>=57344){w[w.length]=i[224|D>>12]+i[128|D>>6&63]+i[128|D&63];continue}_+=1,D=65536+((D&1023)<<10|x.charCodeAt(_)&1023),w[w.length]=i[240|D>>18]+i[128|D>>12&63]+i[128|D>>6&63]+i[128|D&63]}M+=w.join("")}return M},f=function(b){for(var g=[{obj:{o:b},prop:"o"}],T=[],v=0;v<g.length;++v)for(var R=g[v],y=R.obj[R.prop],M=Object.keys(y),C=0;C<M.length;++C){var x=M[C],w=y[x];typeof w=="object"&&w!==null&&T.indexOf(w)===-1&&(g.push({obj:y,prop:x}),T.push(w))}return r(g),b},p=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},h=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,g){return[].concat(b,g)},m=function(b,g){if(t(b)){for(var T=[],v=0;v<b.length;v+=1)T.push(g(b[v]));return T}return g(b)};return gs={arrayToObject:s,assign:l,combine:S,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:m,merge:a},gs}var bs,Wo;function lh(){if(Wo)return bs;Wo=1;var n=oh(),e=jo(),t=ms(),i=Object.prototype.hasOwnProperty,r={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,b){return E+"["+b+"]"},repeat:function(E){return E}},s=Array.isArray,a=Array.prototype.push,l=function(m,E){a.apply(m,s(E)?E:[E])},u=Date.prototype.toISOString,c=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(E){return u.call(E)},skipNulls:!1,strictNullHandling:!1},f=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},p={},h=function m(E,b,g,T,v,R,y,M,C,x,w,_,D,O,V,W,Y,N){for(var I=E,q=N,L=0,B=!1;(q=q.get(p))!==void 0&&!B;){var $=q.get(E);if(L+=1,typeof $<"u"){if($===L)throw new RangeError("Cyclic object value");B=!0}typeof q.get(p)>"u"&&(L=0)}if(typeof x=="function"?I=x(b,I):I instanceof Date?I=D(I):g==="comma"&&s(I)&&(I=e.maybeMap(I,function(ye){return ye instanceof Date?D(ye):ye})),I===null){if(R)return C&&!W?C(b,d.encoder,Y,"key",O):b;I=""}if(f(I)||e.isBuffer(I)){if(C){var z=W?b:C(b,d.encoder,Y,"key",O);return[V(z)+"="+V(C(I,d.encoder,Y,"value",O))]}return[V(b)+"="+V(String(I))]}var J=[];if(typeof I>"u")return J;var Z;if(g==="comma"&&s(I))W&&C&&(I=e.maybeMap(I,C)),Z=[{value:I.length>0?I.join(",")||null:void 0}];else if(s(x))Z=x;else{var U=Object.keys(I);Z=w?U.sort(w):U}var ie=M?String(b).replace(/\./g,"%2E"):String(b),j=T&&s(I)&&I.length===1?ie+"[]":ie;if(v&&s(I)&&I.length===0)return j+"[]";for(var H=0;H<Z.length;++H){var re=Z[H],ee=typeof re=="object"&&re&&typeof re.value<"u"?re.value:I[re];if(!(y&&ee===null)){var Q=_&&M?String(re).replace(/\./g,"%2E"):String(re),pe=s(I)?typeof g=="function"?g(j,Q):j:j+(_?"."+Q:"["+Q+"]");N.set(E,L);var ue=n();ue.set(p,N),l(J,m(ee,pe,g,T,v,R,y,M,g==="comma"&&W&&s(I)?null:C,x,w,_,D,O,V,W,Y,ue))}}return J},S=function(E){if(!E)return d;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.encodeDotInKeys<"u"&&typeof E.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=E.charset||d.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=t.default;if(typeof E.format<"u"){if(!i.call(t.formatters,E.format))throw new TypeError("Unknown format option provided.");g=E.format}var T=t.formatters[g],v=d.filter;(typeof E.filter=="function"||s(E.filter))&&(v=E.filter);var R;if(E.arrayFormat in r?R=E.arrayFormat:"indices"in E?R=E.indices?"indices":"repeat":R=d.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:d.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:d.addQueryPrefix,allowDots:y,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:R,charset:b,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?d.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:d.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:d.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:d.encodeValuesOnly,filter:v,format:g,formatter:T,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:d.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:d.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:d.strictNullHandling}};return bs=function(m,E){var b=m,g=S(E),T,v;typeof g.filter=="function"?(v=g.filter,b=v("",b)):s(g.filter)&&(v=g.filter,T=v);var R=[];if(typeof b!="object"||b===null)return"";var y=r[g.arrayFormat],M=y==="comma"&&g.commaRoundTrip;T||(T=Object.keys(b)),g.sort&&T.sort(g.sort);for(var C=n(),x=0;x<T.length;++x){var w=T[x],_=b[w];g.skipNulls&&_===null||l(R,h(_,w,y,M,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,C))}var D=R.join(g.delimiter),O=g.addQueryPrefix===!0?"?":"";return g.charsetSentinel&&(g.charset==="iso-8859-1"?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),D.length>0?O+D:""},bs}var vs,Yo;function uh(){if(Yo)return vs;Yo=1;var n=jo(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(p){return p.replace(/&#(\d+);/g,function(h,S){return String.fromCharCode(parseInt(S,10))})},s=function(p,h,S){if(p&&typeof p=="string"&&h.comma&&p.indexOf(",")>-1)return p.split(",");if(h.throwOnLimitExceeded&&S>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return p},a="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,S){var m={__proto__:null},E=S.ignoreQueryPrefix?h.replace(/^\?/,""):h;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,g=E.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&g.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var T=-1,v,R=S.charset;if(S.charsetSentinel)for(v=0;v<g.length;++v)g[v].indexOf("utf8=")===0&&(g[v]===l?R="utf-8":g[v]===a&&(R="iso-8859-1"),T=v,v=g.length);for(v=0;v<g.length;++v)if(v!==T){var y=g[v],M=y.indexOf("]="),C=M===-1?y.indexOf("="):M+1,x,w;C===-1?(x=S.decoder(y,i.decoder,R,"key"),w=S.strictNullHandling?null:""):(x=S.decoder(y.slice(0,C),i.decoder,R,"key"),w=n.maybeMap(s(y.slice(C+1),S,t(m[x])?m[x].length:0),function(D){return S.decoder(D,i.decoder,R,"value")})),w&&S.interpretNumericEntities&&R==="iso-8859-1"&&(w=r(String(w))),y.indexOf("[]=")>-1&&(w=t(w)?[w]:w);var _=e.call(m,x);_&&S.duplicates==="combine"?m[x]=n.combine(m[x],w):(!_||S.duplicates==="last")&&(m[x]=w)}return m},c=function(p,h,S,m){var E=0;if(p.length>0&&p[p.length-1]==="[]"){var b=p.slice(0,-1).join("");E=Array.isArray(h)&&h[b]?h[b].length:0}for(var g=m?h:s(h,S,E),T=p.length-1;T>=0;--T){var v,R=p[T];if(R==="[]"&&S.parseArrays)v=S.allowEmptyArrays&&(g===""||S.strictNullHandling&&g===null)?[]:n.combine([],g);else{v=S.plainObjects?{__proto__:null}:{};var y=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,M=S.decodeDotInKeys?y.replace(/%2E/g,"."):y,C=parseInt(M,10);!S.parseArrays&&M===""?v={0:g}:!isNaN(C)&&R!==M&&String(C)===M&&C>=0&&S.parseArrays&&C<=S.arrayLimit?(v=[],v[C]=g):M!=="__proto__"&&(v[M]=g)}g=v}return g},d=function(h,S,m,E){if(h){var b=m.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,g=/(\[[^[\]]*])/,T=/(\[[^[\]]*])/g,v=m.depth>0&&g.exec(b),R=v?b.slice(0,v.index):b,y=[];if(R){if(!m.plainObjects&&e.call(Object.prototype,R)&&!m.allowPrototypes)return;y.push(R)}for(var M=0;m.depth>0&&(v=T.exec(b))!==null&&M<m.depth;){if(M+=1,!m.plainObjects&&e.call(Object.prototype,v[1].slice(1,-1))&&!m.allowPrototypes)return;y.push(v[1])}if(v){if(m.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");y.push("["+b.slice(v.index)+"]")}return c(y,S,m,E)}},f=function(h){if(!h)return i;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof h.charset>"u"?i.charset:h.charset,m=typeof h.duplicates>"u"?i.duplicates:h.duplicates;if(m!=="combine"&&m!=="first"&&m!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:i.allowDots:!!h.allowDots;return{allowDots:E,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:i.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:i.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:i.arrayLimit,charset:S,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:i.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:i.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:i.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:i.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:i.depth,duplicates:m,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:i.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:i.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:i.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return vs=function(p,h){var S=f(h);if(p===""||p===null||typeof p>"u")return S.plainObjects?{__proto__:null}:{};for(var m=typeof p=="string"?u(p,S):p,E=S.plainObjects?{__proto__:null}:{},b=Object.keys(m),g=0;g<b.length;++g){var T=b[g],v=d(T,m[T],S,typeof p=="string");E=n.merge(E,v,S)}return S.allowSparse===!0?E:n.compact(E)},vs}var ys,Uo;function ch(){if(Uo)return ys;Uo=1;var n=lh(),e=uh(),t=ms();return ys={formats:t,parse:e,stringify:n},ys}var dh=ch();const Go=Ya(dh),hh=["action"],fh=["value"],ph=["name","value"],mh=["value"],gh=["disabled"],bh=He(o.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=o.ref(),i=o.ref([]),r=o.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},a=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;c()},l=()=>{i.value=[];const d=/^.*\?/gm,f=e.filters.replace(d,""),p=Go.parse(f);i.value=u(p)},u=d=>Go.stringify(d,{encode:!1}).split("&").map(f=>{const p=f.split("=");return{key:p[0],value:p[1]}}).filter(({key:f,value:p})=>f.length&&p.length),c=()=>{if(i.value=[],!e.filters)return!1;i.value=u(e.filters)};return o.watch(()=>e.filters,()=>{a()},{deep:!1}),o.onMounted(()=>{a()}),(d,f)=>(o.openBlock(),o.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,fh)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createElementBlock("input",{key:p.key,type:"hidden",name:p.key,value:p.value},null,8,ph))),128)),o.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,mh),o.createElementVNode("button",{type:"button",class:o.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[o.createTextVNode(o.toDisplayString(d.buttonText)+" ",1),f[0]||(f[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,gh)],8,hh))}}),[["__scopeId","data-v-db74d2e3"]]);var _n={exports:{}};/*!
1
+ (function(Ce,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ce=typeof globalThis<"u"?globalThis:Ce||self,o(Ce.R3uiLib={},Ce.Vue))})(this,(function(Ce,o){"use strict";const kr={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},Sr={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("i",{class:o.normalizeClass(`bi bi-${n.name}`)},null,2))}},vd={class:"d-inline-flex align-items-center justify-content-center"},yd={key:2},xr={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(a,l)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"DefaultButton",class:o.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),onClick:o.withModifiers(s,["prevent"])},[o.createElementVNode("div",vd,[n.icon&&n.iconPosition==="left"?(o.openBlock(),o.createBlock(Sr,{key:0,name:n.icon,class:o.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0),n.isLoading?(o.openBlock(),o.createBlock(kr,{key:1,isSmall:!0,class:"pe-2"})):o.createCommentVNode("",!0),n.label?(o.openBlock(),o.createElementBlock("span",yd,o.toDisplayString(n.label),1)):o.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(o.openBlock(),o.createBlock(Sr,{key:3,name:n.icon,class:o.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0)])],2))}},wd=o.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[o.createElementVNode("i",{class:o.normalizeClass(s.iconClass)},null,2),o.createTextVNode(" "+o.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),Ve=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},ja=Ve(wd,[["__scopeId","data-v-cf07042b"]]),Cd={"data-test":"CollapseButton"},Ed=["id"],kd=["id"],Sd=Ve(o.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.isCollapsed),s=o.computed(()=>t.expandText),a=o.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},u=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(c,d)=>(o.openBlock(),o.createElementBlock("div",Cd,[r.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",id:c.expandId,class:"btn btn-light collapse-button",onClick:l,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(s.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-down-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,Ed)):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",id:c.collapseId,class:"btn btn-light collapse-button",onClick:u,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(a.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-up-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,kd))]))}}),[["__scopeId","data-v-a0502514"]]),xd=Ve(o.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Экспорт")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),Md=Ve(o.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Печать")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),Rd=["disabled"],Td={class:"clear-form-button__label"},Dd=Ve(o.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[a[0]||(a[0]=o.createElementVNode("div",{class:"clear-form-button__icon"},[o.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),o.createElementVNode("div",Td,o.toDisplayString(s.label),1)],10,Rd))}}),[["__scopeId","data-v-ed163ff4"]]),_d={class:"toggle-buttons","data-test":"ToggleButtons"},Ad=["onClick"],Od=Ve(o.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",_d,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.options,a=>(o.openBlock(),o.createElementBlock("button",{key:a.name,type:"button",class:o.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===a.name}]),onClick:l=>i(a)},o.toDisplayString(a.title),11,Ad))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var Wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ya(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Ld(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var Mr,Ua;function _i(){return Ua||(Ua=1,Mr=TypeError),Mr}const Pd=Ld(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Rr,Ga;function Tn(){if(Ga)return Rr;Ga=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,h=p?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,m=Object.prototype.toString,E=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,T=String.prototype.replace,v=String.prototype.toUpperCase,R=String.prototype.toLowerCase,y=RegExp.prototype.test,M=Array.prototype.concat,C=Array.prototype.join,x=Array.prototype.slice,w=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",W=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,N=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(X){return X.__proto__}:null);function I(X,re){if(X===1/0||X===-1/0||X!==X||X&&X>-1e3&&X<1e3||y.call(/e/,re))return re;var ze=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof X=="number"){var Ue=X<0?-w(-X):w(X);if(Ue!==X){var Oe=String(Ue),Re=g.call(re,Oe.length+1);return T.call(Oe,ze,"$&_")+"."+T.call(T.call(Re,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(re,ze,"$&_")}var K=Pd,L=K.custom,B=le(L)?L:null,q={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Rr=function X(re,ze,Ue,Oe){var Re=ze||{};if(Me(Re,"quoteStyle")&&!Me(q,Re.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Me(Re,"maxStringLength")&&(typeof Re.maxStringLength=="number"?Re.maxStringLength<0&&Re.maxStringLength!==1/0:Re.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var bt=Me(Re,"customInspect")?Re.customInspect:!0;if(typeof bt!="boolean"&&bt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Me(Re,"indent")&&Re.indent!==null&&Re.indent!==" "&&!(parseInt(Re.indent,10)===Re.indent&&Re.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Me(Re,"numericSeparator")&&typeof Re.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var nt=Re.numericSeparator;if(typeof re>"u")return"undefined";if(re===null)return"null";if(typeof re=="boolean")return re?"true":"false";if(typeof re=="string")return Pe(re,Re);if(typeof re=="number"){if(re===0)return 1/0/re>0?"0":"-0";var P=String(re);return nt?I(re,P):P}if(typeof re=="bigint"){var k=String(re)+"n";return nt?I(re,k):k}var A=typeof Re.depth>"u"?5:Re.depth;if(typeof Ue>"u"&&(Ue=0),Ue>=A&&A>0&&typeof re=="object")return ne(re)?"[Array]":"[Object]";var F=Ee(Re,Ue);if(typeof Oe>"u")Oe=[];else if(Le(Oe,re)>=0)return"[Circular]";function $(zt,Jt,Xi){if(Jt&&(Oe=x.call(Oe),Oe.push(Jt)),Xi){var Di={depth:Re.depth};return Me(Re,"quoteStyle")&&(Di.quoteStyle=Re.quoteStyle),X(zt,Di,Ue+1,Oe)}return X(zt,Re,Ue+1,Oe)}if(typeof re=="function"&&!H(re)){var ae=He(re),oe=ke(re,$);return"[Function"+(ae?": "+ae:" (anonymous)")+"]"+(oe.length>0?" { "+C.call(oe,", ")+" }":"")}if(le(re)){var ce=V?T.call(String(re),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(re);return typeof re=="object"&&!V?_e(ce):ce}if(xe(re)){for(var fe="<"+R.call(String(re.nodeName)),me=re.attributes||[],be=0;be<me.length;be++)fe+=" "+me[be].name+"="+Q(ie(me[be].value),"double",Re);return fe+=">",re.childNodes&&re.childNodes.length&&(fe+="..."),fe+="</"+R.call(String(re.nodeName))+">",fe}if(ne(re)){if(re.length===0)return"[]";var Ae=ke(re,$);return F&&!he(Ae)?"["+Fe(Ae,F)+"]":"[ "+C.call(Ae,", ")+" ]"}if(se(re)){var Ye=ke(re,$);return!("cause"in Error.prototype)&&"cause"in re&&!U.call(re,"cause")?"{ ["+String(re)+"] "+C.call(M.call("[cause]: "+$(re.cause),Ye),", ")+" }":Ye.length===0?"["+String(re)+"]":"{ ["+String(re)+"] "+C.call(Ye,", ")+" }"}if(typeof re=="object"&&bt){if(B&&typeof re[B]=="function"&&K)return K(re,{depth:A-Ue});if(bt!=="symbol"&&typeof re.inspect=="function")return re.inspect()}if(Y(re)){var Be=[];return i&&i.call(re,function(zt,Jt){Be.push($(Jt,re,!0)+" => "+$(zt,re))}),ot("Map",t.call(re),Be,F)}if(de(re)){var Xe=[];return l&&l.call(re,function(zt){Xe.push($(zt,re))}),ot("Set",a.call(re),Xe,F)}if(J(re))return Ie("WeakMap");if(ue(re))return Ie("WeakSet");if(Z(re))return Ie("WeakRef");if(ee(re))return _e($(Number(re)));if(ve(re))return _e($(_.call(re)));if(pe(re))return _e(S.call(re));if(te(re))return _e($(String(re)));if(typeof window<"u"&&re===window)return"{ [object Window] }";if(typeof globalThis<"u"&&re===globalThis||typeof Wa<"u"&&re===Wa)return"{ [object globalThis] }";if(!j(re)&&!H(re)){var et=ke(re,$),lt=N?N(re)===Object.prototype:re instanceof Object||re.constructor===Object,rt=re instanceof Object?"":"null prototype",bi=!lt&&W&&Object(re)===re&&W in re?g.call(Ne(re),8,-1):rt?"Object":"",Ti=lt||typeof re.constructor!="function"?"":re.constructor.name?re.constructor.name+" ":"",li=Ti+(bi||rt?"["+C.call(M.call([],bi||[],rt||[]),": ")+"] ":"");return et.length===0?li+"{}":F?li+"{"+Fe(et,F)+"}":li+"{ "+C.call(et,", ")+" }"}return String(re)};function Q(X,re,ze){var Ue=ze.quoteStyle||re,Oe=q[Ue];return Oe+X+Oe}function ie(X){return T.call(String(X),/"/g,"&quot;")}function G(X){return!W||!(typeof X=="object"&&(W in X||typeof X[W]<"u"))}function ne(X){return Ne(X)==="[object Array]"&&G(X)}function j(X){return Ne(X)==="[object Date]"&&G(X)}function H(X){return Ne(X)==="[object RegExp]"&&G(X)}function se(X){return Ne(X)==="[object Error]"&&G(X)}function te(X){return Ne(X)==="[object String]"&&G(X)}function ee(X){return Ne(X)==="[object Number]"&&G(X)}function pe(X){return Ne(X)==="[object Boolean]"&&G(X)}function le(X){if(V)return X&&typeof X=="object"&&X instanceof Symbol;if(typeof X=="symbol")return!0;if(!X||typeof X!="object"||!O)return!1;try{return O.call(X),!0}catch{}return!1}function ve(X){if(!X||typeof X!="object"||!_)return!1;try{return _.call(X),!0}catch{}return!1}var ye=Object.prototype.hasOwnProperty||function(X){return X in this};function Me(X,re){return ye.call(X,re)}function Ne(X){return m.call(X)}function He(X){if(X.name)return X.name;var re=b.call(E.call(X),/^function\s*([\w$]+)/);return re?re[1]:null}function Le(X,re){if(X.indexOf)return X.indexOf(re);for(var ze=0,Ue=X.length;ze<Ue;ze++)if(X[ze]===re)return ze;return-1}function Y(X){if(!t||!X||typeof X!="object")return!1;try{t.call(X);try{a.call(X)}catch{return!0}return X instanceof Map}catch{}return!1}function J(X){if(!c||!X||typeof X!="object")return!1;try{c.call(X,c);try{f.call(X,f)}catch{return!0}return X instanceof WeakMap}catch{}return!1}function Z(X){if(!h||!X||typeof X!="object")return!1;try{return h.call(X),!0}catch{}return!1}function de(X){if(!a||!X||typeof X!="object")return!1;try{a.call(X);try{t.call(X)}catch{return!0}return X instanceof Set}catch{}return!1}function ue(X){if(!f||!X||typeof X!="object")return!1;try{f.call(X,f);try{c.call(X,c)}catch{return!0}return X instanceof WeakSet}catch{}return!1}function xe(X){return!X||typeof X!="object"?!1:typeof HTMLElement<"u"&&X instanceof HTMLElement?!0:typeof X.nodeName=="string"&&typeof X.getAttribute=="function"}function Pe(X,re){if(X.length>re.maxStringLength){var ze=X.length-re.maxStringLength,Ue="... "+ze+" more character"+(ze>1?"s":"");return Pe(g.call(X,0,re.maxStringLength),re)+Ue}var Oe=z[re.quoteStyle||"single"];Oe.lastIndex=0;var Re=T.call(T.call(X,Oe,"\\$1"),/[\x00-\x1f]/g,Te);return Q(Re,"single",re)}function Te(X){var re=X.charCodeAt(0),ze={8:"b",9:"t",10:"n",12:"f",13:"r"}[re];return ze?"\\"+ze:"\\x"+(re<16?"0":"")+v.call(re.toString(16))}function _e(X){return"Object("+X+")"}function Ie(X){return X+" { ? }"}function ot(X,re,ze,Ue){var Oe=Ue?Fe(ze,Ue):C.call(ze,", ");return X+" ("+re+") {"+Oe+"}"}function he(X){for(var re=0;re<X.length;re++)if(Le(X[re],`
2
+ `)>=0)return!1;return!0}function Ee(X,re){var ze;if(X.indent===" ")ze=" ";else if(typeof X.indent=="number"&&X.indent>0)ze=C.call(Array(X.indent+1)," ");else return null;return{base:ze,prev:C.call(Array(re+1),ze)}}function Fe(X,re){if(X.length===0)return"";var ze=`
3
+ `+re.prev+re.base;return ze+C.call(X,","+ze)+`
4
+ `+re.prev}function ke(X,re){var ze=ne(X),Ue=[];if(ze){Ue.length=X.length;for(var Oe=0;Oe<X.length;Oe++)Ue[Oe]=Me(X,Oe)?re(X[Oe],X):""}var Re=typeof D=="function"?D(X):[],bt;if(V){bt={};for(var nt=0;nt<Re.length;nt++)bt["$"+Re[nt]]=Re[nt]}for(var P in X)Me(X,P)&&(ze&&String(Number(P))===P&&P<X.length||V&&bt["$"+P]instanceof Symbol||(y.call(/[^\w$]/,P)?Ue.push(re(P,X)+": "+re(X[P],X)):Ue.push(P+": "+re(X[P],X))));if(typeof D=="function")for(var k=0;k<Re.length;k++)U.call(X,Re[k])&&Ue.push("["+re(Re[k])+"]: "+re(X[Re[k]],X));return Ue}return Rr}var Tr,$a;function Fd(){if($a)return Tr;$a=1;var n=Tn(),e=_i(),t=function(l,u,c){for(var d=l,f;(f=d.next)!=null;d=f)if(f.key===u)return d.next=f.next,c||(f.next=l.next,l.next=f),f},i=function(l,u){if(l){var c=t(l,u);return c&&c.value}},r=function(l,u,c){var d=t(l,u);d?d.value=c:l.next={key:u,next:l.next,value:c}},s=function(l,u){return l?!!t(l,u):!1},a=function(l,u){if(l)return t(l,u,!0)};return Tr=function(){var u,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var f=u&&u.next,p=a(u,d);return p&&f&&f===p&&(u=void 0),!!p},get:function(d){return i(u,d)},has:function(d){return s(u,d)},set:function(d,f){u||(u={next:void 0}),r(u,d,f)}};return c},Tr}var Dr,qa;function Ka(){return qa||(qa=1,Dr=Object),Dr}var _r,Ja;function Bd(){return Ja||(Ja=1,_r=Error),_r}var Ar,Xa;function Vd(){return Xa||(Xa=1,Ar=EvalError),Ar}var Or,Qa;function Nd(){return Qa||(Qa=1,Or=RangeError),Or}var Lr,Za;function Hd(){return Za||(Za=1,Lr=ReferenceError),Lr}var Pr,eo;function Id(){return eo||(eo=1,Pr=SyntaxError),Pr}var Fr,to;function zd(){return to||(to=1,Fr=URIError),Fr}var Br,io;function jd(){return io||(io=1,Br=Math.abs),Br}var Vr,no;function Wd(){return no||(no=1,Vr=Math.floor),Vr}var Nr,ro;function Yd(){return ro||(ro=1,Nr=Math.max),Nr}var Hr,so;function Ud(){return so||(so=1,Hr=Math.min),Hr}var Ir,ao;function Gd(){return ao||(ao=1,Ir=Math.pow),Ir}var zr,oo;function $d(){return oo||(oo=1,zr=Math.round),zr}var jr,lo;function qd(){return lo||(lo=1,jr=Number.isNaN||function(e){return e!==e}),jr}var Wr,uo;function Kd(){if(uo)return Wr;uo=1;var n=qd();return Wr=function(t){return n(t)||t===0?t:t<0?-1:1},Wr}var Yr,co;function Jd(){return co||(co=1,Yr=Object.getOwnPropertyDescriptor),Yr}var Ur,ho;function fo(){if(ho)return Ur;ho=1;var n=Jd();if(n)try{n([],"length")}catch{n=null}return Ur=n,Ur}var Gr,po;function Xd(){if(po)return Gr;po=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Gr=n,Gr}var $r,mo;function Qd(){return mo||(mo=1,$r=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),$r}var qr,go;function Zd(){if(go)return qr;go=1;var n=typeof Symbol<"u"&&Symbol,e=Qd();return qr=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Kr,bo;function vo(){return bo||(bo=1,Kr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Kr}var Jr,yo;function wo(){if(yo)return Jr;yo=1;var n=Ka();return Jr=n.getPrototypeOf||null,Jr}var Xr,Co;function eh(){if(Co)return Xr;Co=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},s=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},a=function(l,u){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=u);return c};return Xr=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==i)throw new TypeError(n+c);for(var d=s(arguments,1),f,p=function(){if(this instanceof f){var b=c.apply(this,r(d,arguments));return Object(b)===b?b:this}return c.apply(u,r(d,arguments))},h=t(0,c.length-d.length),S=[],m=0;m<h;m++)S[m]="$"+m;if(f=Function("binder","return function ("+a(S,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var E=function(){};E.prototype=c.prototype,f.prototype=new E,E.prototype=null}return f},Xr}var Qr,Eo;function Dn(){if(Eo)return Qr;Eo=1;var n=eh();return Qr=Function.prototype.bind||n,Qr}var Zr,ko;function es(){return ko||(ko=1,Zr=Function.prototype.call),Zr}var ts,So;function xo(){return So||(So=1,ts=Function.prototype.apply),ts}var is,Mo;function th(){return Mo||(Mo=1,is=typeof Reflect<"u"&&Reflect&&Reflect.apply),is}var ns,Ro;function ih(){if(Ro)return ns;Ro=1;var n=Dn(),e=xo(),t=es(),i=th();return ns=i||n.call(t,e),ns}var rs,To;function Do(){if(To)return rs;To=1;var n=Dn(),e=_i(),t=es(),i=ih();return rs=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},rs}var ss,_o;function nh(){if(_o)return ss;_o=1;var n=Do(),e=fo(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return ss=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,ss}var as,Ao;function rh(){if(Ao)return as;Ao=1;var n=vo(),e=wo(),t=nh();return as=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,as}var os,Oo;function sh(){if(Oo)return os;Oo=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Dn();return os=t.call(n,e),os}var ls,Lo;function us(){if(Lo)return ls;Lo=1;var n,e=Ka(),t=Bd(),i=Vd(),r=Nd(),s=Hd(),a=Id(),l=_i(),u=zd(),c=jd(),d=Wd(),f=Yd(),p=Ud(),h=Gd(),S=$d(),m=Kd(),E=Function,b=function(H){try{return E('"use strict"; return ('+H+").constructor;")()}catch{}},g=fo(),T=Xd(),v=function(){throw new l},R=g?(function(){try{return arguments.callee,v}catch{try{return g(arguments,"callee").get}catch{return v}}})():v,y=Zd()(),M=rh(),C=wo(),x=vo(),w=xo(),_=es(),D={},O=typeof Uint8Array>"u"||!M?n:M(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&M?M([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":D,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&M?M(M([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y||!M?n:M(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y||!M?n:M(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&M?M(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":R,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":w,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":C,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":S,"%Math.sign%":m,"%Reflect.getPrototypeOf%":x};if(M)try{null.error}catch(H){var W=M(M(H));V["%Error.prototype%"]=W}var U=function H(se){var te;if(se==="%AsyncFunction%")te=b("async function () {}");else if(se==="%GeneratorFunction%")te=b("function* () {}");else if(se==="%AsyncGeneratorFunction%")te=b("async function* () {}");else if(se==="%AsyncGenerator%"){var ee=H("%AsyncGeneratorFunction%");ee&&(te=ee.prototype)}else if(se==="%AsyncIteratorPrototype%"){var pe=H("%AsyncGenerator%");pe&&M&&(te=M(pe.prototype))}return V[se]=te,te},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=Dn(),K=sh(),L=I.call(_,Array.prototype.concat),B=I.call(w,Array.prototype.splice),q=I.call(_,String.prototype.replace),z=I.call(_,String.prototype.slice),Q=I.call(_,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,ne=function(se){var te=z(se,0,1),ee=z(se,-1);if(te==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(ee==="%"&&te!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var pe=[];return q(se,ie,function(le,ve,ye,Me){pe[pe.length]=ye?q(Me,G,"$1"):ve||le}),pe},j=function(se,te){var ee=se,pe;if(K(N,ee)&&(pe=N[ee],ee="%"+pe[0]+"%"),K(V,ee)){var le=V[ee];if(le===D&&(le=U(ee)),typeof le>"u"&&!te)throw new l("intrinsic "+se+" exists, but is not available. Please file an issue!");return{alias:pe,name:ee,value:le}}throw new a("intrinsic "+se+" does not exist!")};return ls=function(se,te){if(typeof se!="string"||se.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new l('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,se)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ee=ne(se),pe=ee.length>0?ee[0]:"",le=j("%"+pe+"%",te),ve=le.name,ye=le.value,Me=!1,Ne=le.alias;Ne&&(pe=Ne[0],B(ee,L([0,1],Ne)));for(var He=1,Le=!0;He<ee.length;He+=1){var Y=ee[He],J=z(Y,0,1),Z=z(Y,-1);if((J==='"'||J==="'"||J==="`"||Z==='"'||Z==="'"||Z==="`")&&J!==Z)throw new a("property names with quotes must have matching quotes");if((Y==="constructor"||!Le)&&(Me=!0),pe+="."+Y,ve="%"+pe+"%",K(V,ve))ye=V[ve];else if(ye!=null){if(!(Y in ye)){if(!te)throw new l("base intrinsic for "+se+" exists, but the property is not available.");return}if(g&&He+1>=ee.length){var de=g(ye,Y);Le=!!de,Le&&"get"in de&&!("originalValue"in de.get)?ye=de.get:ye=ye[Y]}else Le=K(ye,Y),ye=ye[Y];Le&&!Me&&(V[ve]=ye)}}return ye},ls}var cs,Po;function Fo(){if(Po)return cs;Po=1;var n=us(),e=Do(),t=e([n("%String.prototype.indexOf%")]);return cs=function(r,s){var a=n(r,!!s);return typeof a=="function"&&t(r,".prototype.")>-1?e([a]):a},cs}var ds,Bo;function Vo(){if(Bo)return ds;Bo=1;var n=us(),e=Fo(),t=Tn(),i=_i(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ds=!!r&&function(){var f,p={assert:function(h){if(!p.has(h))throw new i("Side channel does not contain "+t(h))},delete:function(h){if(f){var S=u(f,h);return c(f)===0&&(f=void 0),S}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?l(f,h):!1},set:function(h,S){f||(f=new r),a(f,h,S)}};return p},ds}var hs,No;function ah(){if(No)return hs;No=1;var n=us(),e=Fo(),t=Tn(),i=Vo(),r=_i(),s=n("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return hs=s?function(){var f,p,h={assert:function(S){if(!h.has(S))throw new r("Side channel does not contain "+t(S))},delete:function(S){if(s&&S&&(typeof S=="object"||typeof S=="function")){if(f)return c(f,S)}else if(i&&p)return p.delete(S);return!1},get:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?a(f,S):p&&p.get(S)},has:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?u(f,S):!!p&&p.has(S)},set:function(S,m){s&&S&&(typeof S=="object"||typeof S=="function")?(f||(f=new s),l(f,S,m)):i&&(p||(p=i()),p.set(S,m))}};return h}:i,hs}var fs,Ho;function oh(){if(Ho)return fs;Ho=1;var n=_i(),e=Tn(),t=Fd(),i=Vo(),r=ah(),s=r||i||t;return fs=function(){var l,u={assert:function(c){if(!u.has(c))throw new n("Side channel does not contain "+e(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=s()),l.set(c,d)}};return u},fs}var ps,Io;function ms(){if(Io)return ps;Io=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ps={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},ps}var gs,zo;function jo(){if(zo)return gs;zo=1;var n=ms(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var E=[],b=0;b<256;++b)E.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return E})(),r=function(b){for(;b.length>1;){var g=b.pop(),T=g.obj[g.prop];if(t(T)){for(var v=[],R=0;R<T.length;++R)typeof T[R]<"u"&&v.push(T[R]);g.obj[g.prop]=v}}},s=function(b,g){for(var T=g&&g.plainObjects?{__proto__:null}:{},v=0;v<b.length;++v)typeof b[v]<"u"&&(T[v]=b[v]);return T},a=function E(b,g,T){if(!g)return b;if(typeof g!="object"&&typeof g!="function"){if(t(b))b.push(g);else if(b&&typeof b=="object")(T&&(T.plainObjects||T.allowPrototypes)||!e.call(Object.prototype,g))&&(b[g]=!0);else return[b,g];return b}if(!b||typeof b!="object")return[b].concat(g);var v=b;return t(b)&&!t(g)&&(v=s(b,T)),t(b)&&t(g)?(g.forEach(function(R,y){if(e.call(b,y)){var M=b[y];M&&typeof M=="object"&&R&&typeof R=="object"?b[y]=E(M,R,T):b.push(R)}else b[y]=R}),b):Object.keys(g).reduce(function(R,y){var M=g[y];return e.call(R,y)?R[y]=E(R[y],M,T):R[y]=M,R},v)},l=function(b,g){return Object.keys(g).reduce(function(T,v){return T[v]=g[v],T},b)},u=function(E,b,g){var T=E.replace(/\+/g," ");if(g==="iso-8859-1")return T.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(T)}catch{return T}},c=1024,d=function(b,g,T,v,R){if(b.length===0)return b;var y=b;if(typeof b=="symbol"?y=Symbol.prototype.toString.call(b):typeof b!="string"&&(y=String(b)),T==="iso-8859-1")return escape(y).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var M="",C=0;C<y.length;C+=c){for(var x=y.length>=c?y.slice(C,C+c):y,w=[],_=0;_<x.length;++_){var D=x.charCodeAt(_);if(D===45||D===46||D===95||D===126||D>=48&&D<=57||D>=65&&D<=90||D>=97&&D<=122||R===n.RFC1738&&(D===40||D===41)){w[w.length]=x.charAt(_);continue}if(D<128){w[w.length]=i[D];continue}if(D<2048){w[w.length]=i[192|D>>6]+i[128|D&63];continue}if(D<55296||D>=57344){w[w.length]=i[224|D>>12]+i[128|D>>6&63]+i[128|D&63];continue}_+=1,D=65536+((D&1023)<<10|x.charCodeAt(_)&1023),w[w.length]=i[240|D>>18]+i[128|D>>12&63]+i[128|D>>6&63]+i[128|D&63]}M+=w.join("")}return M},f=function(b){for(var g=[{obj:{o:b},prop:"o"}],T=[],v=0;v<g.length;++v)for(var R=g[v],y=R.obj[R.prop],M=Object.keys(y),C=0;C<M.length;++C){var x=M[C],w=y[x];typeof w=="object"&&w!==null&&T.indexOf(w)===-1&&(g.push({obj:y,prop:x}),T.push(w))}return r(g),b},p=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},h=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,g){return[].concat(b,g)},m=function(b,g){if(t(b)){for(var T=[],v=0;v<b.length;v+=1)T.push(g(b[v]));return T}return g(b)};return gs={arrayToObject:s,assign:l,combine:S,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:m,merge:a},gs}var bs,Wo;function lh(){if(Wo)return bs;Wo=1;var n=oh(),e=jo(),t=ms(),i=Object.prototype.hasOwnProperty,r={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,b){return E+"["+b+"]"},repeat:function(E){return E}},s=Array.isArray,a=Array.prototype.push,l=function(m,E){a.apply(m,s(E)?E:[E])},u=Date.prototype.toISOString,c=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(E){return u.call(E)},skipNulls:!1,strictNullHandling:!1},f=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},p={},h=function m(E,b,g,T,v,R,y,M,C,x,w,_,D,O,V,W,U,N){for(var I=E,K=N,L=0,B=!1;(K=K.get(p))!==void 0&&!B;){var q=K.get(E);if(L+=1,typeof q<"u"){if(q===L)throw new RangeError("Cyclic object value");B=!0}typeof K.get(p)>"u"&&(L=0)}if(typeof x=="function"?I=x(b,I):I instanceof Date?I=D(I):g==="comma"&&s(I)&&(I=e.maybeMap(I,function(ve){return ve instanceof Date?D(ve):ve})),I===null){if(R)return C&&!W?C(b,d.encoder,U,"key",O):b;I=""}if(f(I)||e.isBuffer(I)){if(C){var z=W?b:C(b,d.encoder,U,"key",O);return[V(z)+"="+V(C(I,d.encoder,U,"value",O))]}return[V(b)+"="+V(String(I))]}var Q=[];if(typeof I>"u")return Q;var ie;if(g==="comma"&&s(I))W&&C&&(I=e.maybeMap(I,C)),ie=[{value:I.length>0?I.join(",")||null:void 0}];else if(s(x))ie=x;else{var G=Object.keys(I);ie=w?G.sort(w):G}var ne=M?String(b).replace(/\./g,"%2E"):String(b),j=T&&s(I)&&I.length===1?ne+"[]":ne;if(v&&s(I)&&I.length===0)return j+"[]";for(var H=0;H<ie.length;++H){var se=ie[H],te=typeof se=="object"&&se&&typeof se.value<"u"?se.value:I[se];if(!(y&&te===null)){var ee=_&&M?String(se).replace(/\./g,"%2E"):String(se),pe=s(I)?typeof g=="function"?g(j,ee):j:j+(_?"."+ee:"["+ee+"]");N.set(E,L);var le=n();le.set(p,N),l(Q,m(te,pe,g,T,v,R,y,M,g==="comma"&&W&&s(I)?null:C,x,w,_,D,O,V,W,U,le))}}return Q},S=function(E){if(!E)return d;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.encodeDotInKeys<"u"&&typeof E.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=E.charset||d.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=t.default;if(typeof E.format<"u"){if(!i.call(t.formatters,E.format))throw new TypeError("Unknown format option provided.");g=E.format}var T=t.formatters[g],v=d.filter;(typeof E.filter=="function"||s(E.filter))&&(v=E.filter);var R;if(E.arrayFormat in r?R=E.arrayFormat:"indices"in E?R=E.indices?"indices":"repeat":R=d.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:d.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:d.addQueryPrefix,allowDots:y,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:R,charset:b,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?d.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:d.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:d.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:d.encodeValuesOnly,filter:v,format:g,formatter:T,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:d.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:d.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:d.strictNullHandling}};return bs=function(m,E){var b=m,g=S(E),T,v;typeof g.filter=="function"?(v=g.filter,b=v("",b)):s(g.filter)&&(v=g.filter,T=v);var R=[];if(typeof b!="object"||b===null)return"";var y=r[g.arrayFormat],M=y==="comma"&&g.commaRoundTrip;T||(T=Object.keys(b)),g.sort&&T.sort(g.sort);for(var C=n(),x=0;x<T.length;++x){var w=T[x],_=b[w];g.skipNulls&&_===null||l(R,h(_,w,y,M,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,C))}var D=R.join(g.delimiter),O=g.addQueryPrefix===!0?"?":"";return g.charsetSentinel&&(g.charset==="iso-8859-1"?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),D.length>0?O+D:""},bs}var vs,Yo;function uh(){if(Yo)return vs;Yo=1;var n=jo(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(p){return p.replace(/&#(\d+);/g,function(h,S){return String.fromCharCode(parseInt(S,10))})},s=function(p,h,S){if(p&&typeof p=="string"&&h.comma&&p.indexOf(",")>-1)return p.split(",");if(h.throwOnLimitExceeded&&S>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return p},a="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,S){var m={__proto__:null},E=S.ignoreQueryPrefix?h.replace(/^\?/,""):h;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,g=E.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&g.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var T=-1,v,R=S.charset;if(S.charsetSentinel)for(v=0;v<g.length;++v)g[v].indexOf("utf8=")===0&&(g[v]===l?R="utf-8":g[v]===a&&(R="iso-8859-1"),T=v,v=g.length);for(v=0;v<g.length;++v)if(v!==T){var y=g[v],M=y.indexOf("]="),C=M===-1?y.indexOf("="):M+1,x,w;C===-1?(x=S.decoder(y,i.decoder,R,"key"),w=S.strictNullHandling?null:""):(x=S.decoder(y.slice(0,C),i.decoder,R,"key"),w=n.maybeMap(s(y.slice(C+1),S,t(m[x])?m[x].length:0),function(D){return S.decoder(D,i.decoder,R,"value")})),w&&S.interpretNumericEntities&&R==="iso-8859-1"&&(w=r(String(w))),y.indexOf("[]=")>-1&&(w=t(w)?[w]:w);var _=e.call(m,x);_&&S.duplicates==="combine"?m[x]=n.combine(m[x],w):(!_||S.duplicates==="last")&&(m[x]=w)}return m},c=function(p,h,S,m){var E=0;if(p.length>0&&p[p.length-1]==="[]"){var b=p.slice(0,-1).join("");E=Array.isArray(h)&&h[b]?h[b].length:0}for(var g=m?h:s(h,S,E),T=p.length-1;T>=0;--T){var v,R=p[T];if(R==="[]"&&S.parseArrays)v=S.allowEmptyArrays&&(g===""||S.strictNullHandling&&g===null)?[]:n.combine([],g);else{v=S.plainObjects?{__proto__:null}:{};var y=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,M=S.decodeDotInKeys?y.replace(/%2E/g,"."):y,C=parseInt(M,10);!S.parseArrays&&M===""?v={0:g}:!isNaN(C)&&R!==M&&String(C)===M&&C>=0&&S.parseArrays&&C<=S.arrayLimit?(v=[],v[C]=g):M!=="__proto__"&&(v[M]=g)}g=v}return g},d=function(h,S,m,E){if(h){var b=m.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,g=/(\[[^[\]]*])/,T=/(\[[^[\]]*])/g,v=m.depth>0&&g.exec(b),R=v?b.slice(0,v.index):b,y=[];if(R){if(!m.plainObjects&&e.call(Object.prototype,R)&&!m.allowPrototypes)return;y.push(R)}for(var M=0;m.depth>0&&(v=T.exec(b))!==null&&M<m.depth;){if(M+=1,!m.plainObjects&&e.call(Object.prototype,v[1].slice(1,-1))&&!m.allowPrototypes)return;y.push(v[1])}if(v){if(m.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");y.push("["+b.slice(v.index)+"]")}return c(y,S,m,E)}},f=function(h){if(!h)return i;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof h.charset>"u"?i.charset:h.charset,m=typeof h.duplicates>"u"?i.duplicates:h.duplicates;if(m!=="combine"&&m!=="first"&&m!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:i.allowDots:!!h.allowDots;return{allowDots:E,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:i.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:i.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:i.arrayLimit,charset:S,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:i.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:i.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:i.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:i.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:i.depth,duplicates:m,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:i.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:i.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:i.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return vs=function(p,h){var S=f(h);if(p===""||p===null||typeof p>"u")return S.plainObjects?{__proto__:null}:{};for(var m=typeof p=="string"?u(p,S):p,E=S.plainObjects?{__proto__:null}:{},b=Object.keys(m),g=0;g<b.length;++g){var T=b[g],v=d(T,m[T],S,typeof p=="string");E=n.merge(E,v,S)}return S.allowSparse===!0?E:n.compact(E)},vs}var ys,Uo;function ch(){if(Uo)return ys;Uo=1;var n=lh(),e=uh(),t=ms();return ys={formats:t,parse:e,stringify:n},ys}var dh=ch();const Go=Ya(dh),hh=["action"],fh=["value"],ph=["name","value"],mh=["value"],gh=["disabled"],bh=Ve(o.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=o.ref(),i=o.ref([]),r=o.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},a=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;c()},l=()=>{i.value=[];const d=/^.*\?/gm,f=e.filters.replace(d,""),p=Go.parse(f);i.value=u(p)},u=d=>Go.stringify(d,{encode:!1}).split("&").map(f=>{const p=f.split("=");return{key:p[0],value:p[1]}}).filter(({key:f,value:p})=>f.length&&p.length),c=()=>{if(i.value=[],!e.filters)return!1;i.value=u(e.filters)};return o.watch(()=>e.filters,()=>{a()},{deep:!1}),o.onMounted(()=>{a()}),(d,f)=>(o.openBlock(),o.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,fh)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createElementBlock("input",{key:p.key,type:"hidden",name:p.key,value:p.value},null,8,ph))),128)),o.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,mh),o.createElementVNode("button",{type:"button",class:o.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[o.createTextVNode(o.toDisplayString(d.buttonText)+" ",1),f[0]||(f[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,gh)],8,hh))}}),[["__scopeId","data-v-db74d2e3"]]);var _n={exports:{}};/*!
5
5
  * dist/inputmask
6
6
  * https://github.com/RobinHerbots/Inputmask
7
7
  * Copyright (c) 2010 - 2024 Robin Herbots
8
8
  * Licensed under the MIT license
9
9
  * Version: 5.0.9
10
10
  */var vh=_n.exports,$o;function yh(){return $o||($o=1,(function(n,e){(function(t,i){n.exports=i()})(typeof self<"u"?self:vh,(function(){return(function(){var t={3976:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(u,c){return typeof c.onBeforeMask=="function"?c.onBeforeMask.call(this,u,c):u},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d){if(d===void 0)return u.__data?u.__data[c]:null;u.__data=u.__data||{},u.__data[c]=d}},3776:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Event=void 0,l.off=function(g,T){var v,R;return E(this[0])&&g&&(v=this[0].eventRegistry,R=this[0],g.split(" ").forEach((function(y){var M=p(y.split("."),2);(function(C,x){var w,_,D=[];if(C.length>0)if(T===void 0)for(w=0,_=v[C][x].length;w<_;w++)D.push({ev:C,namespace:x&&x.length>0?x:"global",handler:v[C][x][w]});else D.push({ev:C,namespace:x&&x.length>0?x:"global",handler:T});else if(x.length>0){for(var O in v)for(var V in v[O])if(V===x)if(T===void 0)for(w=0,_=v[O][V].length;w<_;w++)D.push({ev:O,namespace:V,handler:v[O][V][w]});else D.push({ev:O,namespace:V,handler:T})}return D})(M[0],M[1]).forEach((function(C){var x=C.ev,w=C.handler;(function(_,D,O){if(_ in v==1)if(R.removeEventListener?R.removeEventListener(_,O,!1):R.detachEvent&&R.detachEvent("on".concat(_),O),D==="global")for(var V in v[_])v[_][V].splice(v[_][V].indexOf(O),1);else v[_][D].splice(v[_][D].indexOf(O),1)})(x,C.namespace,w)}))}))),this},l.on=function(g,T){if(E(this[0])){var v=this[0].eventRegistry,R=this[0];g.split(" ").forEach((function(y){var M=p(y.split("."),2),C=M[0],x=M[1];(function(w,_){R.addEventListener?R.addEventListener(w,T,!1):R.attachEvent&&R.attachEvent("on".concat(w),T),v[w]=v[w]||{},v[w][_]=v[w][_]||[],v[w][_].push(T)})(C,x===void 0?"global":x)}))}return this},l.trigger=function(g){var T=arguments;if(E(this[0]))for(var v=this[0].eventRegistry,R=this[0],y=typeof g=="string"?g.split(" "):[g.type],M=0;M<y.length;M++){var C=y[M].split("."),x=C[0],w=C[1]||"global";if(m!==void 0&&w==="global"){var _,D={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(m.createEvent){try{x==="input"?(D.inputType="insertText",_=new InputEvent(x,D)):_=new CustomEvent(x,D)}catch{(_=m.createEvent("CustomEvent")).initCustomEvent(x,D.bubbles,D.cancelable,D.detail)}g.type&&(0,d.default)(_,g),R.dispatchEvent(_)}else(_=m.createEventObject()).eventType=x,_.detail=arguments[1],g.type&&(0,d.default)(_,g),R.fireEvent("on"+_.eventType,_)}else if(v[x]!==void 0){arguments[0]=arguments[0].type?arguments[0]:f.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var O=v[x];(w==="global"?Object.values(O).flat():O[w]).forEach((function(V){return V.apply(R,T)}))}}return this};var c=S(u(9380)),d=S(u(600)),f=S(u(4963));function p(g,T){return(function(v){if(Array.isArray(v))return v})(g)||(function(v,R){var y=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(y!=null){var M,C,x,w,_=[],D=!0,O=!1;try{if(x=(y=y.call(v)).next,R!==0)for(;!(D=(M=x.call(y)).done)&&(_.push(M.value),_.length!==R);D=!0);}catch(V){O=!0,C=V}finally{try{if(!D&&y.return!=null&&(w=y.return(),Object(w)!==w))return}finally{if(O)throw C}}return _}})(g,T)||(function(v,R){if(v){if(typeof v=="string")return h(v,R);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return h(v,R)}})(g,T)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(g,T){(T==null||T>g.length)&&(T=g.length);for(var v=0,R=new Array(T);v<T;v++)R[v]=g[v];return R}function S(g){return g&&g.__esModule?g:{default:g}}var m=c.default.document;function E(g){return g instanceof Element}var b=l.Event=void 0;typeof c.default.CustomEvent=="function"?l.Event=b=c.default.CustomEvent:c.default.Event&&m&&m.createEvent?(l.Event=b=function(g,T){T=T||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var v=m.createEvent("CustomEvent");return v.initCustomEvent(g,T.bubbles,T.cancelable,T.detail),v},b.prototype=c.default.Event.prototype):typeof Event<"u"&&(l.Event=b=Event)},600:function(a,l){function u(c){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(c)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=function c(){var d,f,p,h,S,m,E=arguments[0]||{},b=1,g=arguments.length,T=!1;for(typeof E=="boolean"&&(T=E,E=arguments[b]||{},b++),u(E)!=="object"&&typeof E!="function"&&(E={});b<g;b++)if((d=arguments[b])!=null)for(f in d)p=E[f],E!==(h=d[f])&&(T&&h&&(Object.prototype.toString.call(h)==="[object Object]"||(S=Array.isArray(h)))?(S?(S=!1,m=p&&Array.isArray(p)?p:[]):m=p&&Object.prototype.toString.call(p)==="[object Object]"?p:{},E[f]=c(T,m,h)):h!==void 0&&(E[f]=h));return E}},4963:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=h(u(9380)),d=h(u(253)),f=u(3776),p=h(u(600));function h(E){return E&&E.__esModule?E:{default:E}}var S=c.default.document;function m(E){return E instanceof m?E:this instanceof m?void(E!=null&&E!==c.default&&(this[0]=E.nodeName?E:E[0]!==void 0&&E[0].nodeName?E[0]:S.querySelector(E),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new m(E)}m.prototype={on:f.on,off:f.off,trigger:f.trigger},m.extend=p.default,m.data=d.default,m.Event=f.Event,l.default=m},9845:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mobile=l.iphone=l.ie=void 0;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=d.default.navigator&&d.default.navigator.userAgent||"";l.ie=f.indexOf("MSIE ")>0||f.indexOf("Trident/")>0,l.mobile=d.default.navigator&&d.default.navigator.userAgentData&&d.default.navigator.userAgentData.mobile||d.default.navigator&&d.default.navigator.maxTouchPoints||"ontouchstart"in d.default,l.iphone=/iphone/i.test(f)},7184:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c.replace(u,"\\$1")};var u=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(a,l,u){function c(x){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(x)}Object.defineProperty(l,"__esModule",{value:!0}),l.EventHandlers=void 0;var d,f=u(9845),p=(d=u(9380))&&d.__esModule?d:{default:d},h=u(7760),S=u(2839),m=u(8711),E=u(7215),b=u(4713);function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return w};var x,w={},_=Object.prototype,D=_.hasOwnProperty,O=Object.defineProperty||function(ae,X,te){ae[X]=te.value},V=typeof Symbol=="function"?Symbol:{},W=V.iterator||"@@iterator",Y=V.asyncIterator||"@@asyncIterator",N=V.toStringTag||"@@toStringTag";function I(ae,X,te){return Object.defineProperty(ae,X,{value:te,enumerable:!0,configurable:!0,writable:!0}),ae[X]}try{I({},"")}catch{I=function(X,te,me){return X[te]=me}}function q(ae,X,te,me){var de=X&&X.prototype instanceof U?X:U,Me=Object.create(de.prototype),Fe=new le(me||[]);return O(Me,"_invoke",{value:ye(ae,te,Fe)}),Me}function L(ae,X,te){try{return{type:"normal",arg:ae.call(X,te)}}catch(me){return{type:"throw",arg:me}}}w.wrap=q;var B="suspendedStart",$="suspendedYield",z="executing",J="completed",Z={};function U(){}function ie(){}function j(){}var H={};I(H,W,(function(){return this}));var re=Object.getPrototypeOf,ee=re&&re(re(Ve([])));ee&&ee!==_&&D.call(ee,W)&&(H=ee);var Q=j.prototype=U.prototype=Object.create(H);function pe(ae){["next","throw","return"].forEach((function(X){I(ae,X,(function(te){return this._invoke(X,te)}))}))}function ue(ae,X){function te(de,Me,Fe,De){var Ae=L(ae[de],ae,Me);if(Ae.type!=="throw"){var Ie=Ae.arg,ot=Ie.value;return ot&&c(ot)=="object"&&D.call(ot,"__await")?X.resolve(ot.__await).then((function(he){te("next",he,Fe,De)}),(function(he){te("throw",he,Fe,De)})):X.resolve(ot).then((function(he){Ie.value=he,Fe(Ie)}),(function(he){return te("throw",he,Fe,De)}))}De(Ae.arg)}var me;O(this,"_invoke",{value:function(de,Me){function Fe(){return new X((function(De,Ae){te(de,Me,De,Ae)}))}return me=me?me.then(Fe,Fe):Fe()}})}function ye(ae,X,te){var me=B;return function(de,Me){if(me===z)throw new Error("Generator is already running");if(me===J){if(de==="throw")throw Me;return{value:x,done:!0}}for(te.method=de,te.arg=Me;;){var Fe=te.delegate;if(Fe){var De=we(Fe,te);if(De){if(De===Z)continue;return De}}if(te.method==="next")te.sent=te._sent=te.arg;else if(te.method==="throw"){if(me===B)throw me=J,te.arg;te.dispatchException(te.arg)}else te.method==="return"&&te.abrupt("return",te.arg);me=z;var Ae=L(ae,X,te);if(Ae.type==="normal"){if(me=te.done?J:$,Ae.arg===Z)continue;return{value:Ae.arg,done:te.done}}Ae.type==="throw"&&(me=J,te.method="throw",te.arg=Ae.arg)}}}function we(ae,X){var te=X.method,me=ae.iterator[te];if(me===x)return X.delegate=null,te==="throw"&&ae.iterator.return&&(X.method="return",X.arg=x,we(ae,X),X.method==="throw")||te!=="return"&&(X.method="throw",X.arg=new TypeError("The iterator does not provide a '"+te+"' method")),Z;var de=L(me,ae.iterator,X.arg);if(de.type==="throw")return X.method="throw",X.arg=de.arg,X.delegate=null,Z;var Me=de.arg;return Me?Me.done?(X[ae.resultName]=Me.value,X.next=ae.nextLoc,X.method!=="return"&&(X.method="next",X.arg=x),X.delegate=null,Z):Me:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,Z)}function Re(ae){var X={tryLoc:ae[0]};1 in ae&&(X.catchLoc=ae[1]),2 in ae&&(X.finallyLoc=ae[2],X.afterLoc=ae[3]),this.tryEntries.push(X)}function Pe(ae){var X=ae.completion||{};X.type="normal",delete X.arg,ae.completion=X}function le(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(Re,this),this.reset(!0)}function Ve(ae){if(ae||ae===""){var X=ae[W];if(X)return X.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var te=-1,me=function de(){for(;++te<ae.length;)if(D.call(ae,te))return de.value=ae[te],de.done=!1,de;return de.value=x,de.done=!0,de};return me.next=me}}throw new TypeError(c(ae)+" is not iterable")}return ie.prototype=j,O(Q,"constructor",{value:j,configurable:!0}),O(j,"constructor",{value:ie,configurable:!0}),ie.displayName=I(j,N,"GeneratorFunction"),w.isGeneratorFunction=function(ae){var X=typeof ae=="function"&&ae.constructor;return!!X&&(X===ie||(X.displayName||X.name)==="GeneratorFunction")},w.mark=function(ae){return Object.setPrototypeOf?Object.setPrototypeOf(ae,j):(ae.__proto__=j,I(ae,N,"GeneratorFunction")),ae.prototype=Object.create(Q),ae},w.awrap=function(ae){return{__await:ae}},pe(ue.prototype),I(ue.prototype,Y,(function(){return this})),w.AsyncIterator=ue,w.async=function(ae,X,te,me,de){de===void 0&&(de=Promise);var Me=new ue(q(ae,X,te,me),de);return w.isGeneratorFunction(X)?Me:Me.next().then((function(Fe){return Fe.done?Fe.value:Me.next()}))},pe(Q),I(Q,N,"Generator"),I(Q,W,(function(){return this})),I(Q,"toString",(function(){return"[object Generator]"})),w.keys=function(ae){var X=Object(ae),te=[];for(var me in X)te.push(me);return te.reverse(),function de(){for(;te.length;){var Me=te.pop();if(Me in X)return de.value=Me,de.done=!1,de}return de.done=!0,de}},w.values=Ve,le.prototype={constructor:le,reset:function(ae){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(Pe),!ae)for(var X in this)X.charAt(0)==="t"&&D.call(this,X)&&!isNaN(+X.slice(1))&&(this[X]=x)},stop:function(){this.done=!0;var ae=this.tryEntries[0].completion;if(ae.type==="throw")throw ae.arg;return this.rval},dispatchException:function(ae){if(this.done)throw ae;var X=this;function te(Ae,Ie){return Me.type="throw",Me.arg=ae,X.next=Ae,Ie&&(X.method="next",X.arg=x),!!Ie}for(var me=this.tryEntries.length-1;me>=0;--me){var de=this.tryEntries[me],Me=de.completion;if(de.tryLoc==="root")return te("end");if(de.tryLoc<=this.prev){var Fe=D.call(de,"catchLoc"),De=D.call(de,"finallyLoc");if(Fe&&De){if(this.prev<de.catchLoc)return te(de.catchLoc,!0);if(this.prev<de.finallyLoc)return te(de.finallyLoc)}else if(Fe){if(this.prev<de.catchLoc)return te(de.catchLoc,!0)}else{if(!De)throw new Error("try statement without catch or finally");if(this.prev<de.finallyLoc)return te(de.finallyLoc)}}}},abrupt:function(ae,X){for(var te=this.tryEntries.length-1;te>=0;--te){var me=this.tryEntries[te];if(me.tryLoc<=this.prev&&D.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var de=me;break}}de&&(ae==="break"||ae==="continue")&&de.tryLoc<=X&&X<=de.finallyLoc&&(de=null);var Me=de?de.completion:{};return Me.type=ae,Me.arg=X,de?(this.method="next",this.next=de.finallyLoc,Z):this.complete(Me)},complete:function(ae,X){if(ae.type==="throw")throw ae.arg;return ae.type==="break"||ae.type==="continue"?this.next=ae.arg:ae.type==="return"?(this.rval=this.arg=ae.arg,this.method="return",this.next="end"):ae.type==="normal"&&X&&(this.next=X),Z},finish:function(ae){for(var X=this.tryEntries.length-1;X>=0;--X){var te=this.tryEntries[X];if(te.finallyLoc===ae)return this.complete(te.completion,te.afterLoc),Pe(te),Z}},catch:function(ae){for(var X=this.tryEntries.length-1;X>=0;--X){var te=this.tryEntries[X];if(te.tryLoc===ae){var me=te.completion;if(me.type==="throw"){var de=me.arg;Pe(te)}return de}}throw new Error("illegal catch attempt")},delegateYield:function(ae,X,te){return this.delegate={iterator:Ve(ae),resultName:X,nextLoc:te},this.method==="next"&&(this.arg=x),Z}},w}function T(x,w){var _=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!_){if(Array.isArray(x)||(_=(function(N,I){if(N){if(typeof N=="string")return v(N,I);var q=Object.prototype.toString.call(N).slice(8,-1);if(q==="Object"&&N.constructor&&(q=N.constructor.name),q==="Map"||q==="Set")return Array.from(N);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return v(N,I)}})(x))||w){_&&(x=_);var D=0,O=function(){};return{s:O,n:function(){return D>=x.length?{done:!0}:{done:!1,value:x[D++]}},e:function(N){throw N},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,W=!0,Y=!1;return{s:function(){_=_.call(x)},n:function(){var N=_.next();return W=N.done,N},e:function(N){Y=!0,V=N},f:function(){try{W||_.return==null||_.return()}finally{if(Y)throw V}}}}function v(x,w){(w==null||w>x.length)&&(w=x.length);for(var _=0,D=new Array(w);_<w;_++)D[_]=x[_];return D}function R(x,w,_,D,O,V,W){try{var Y=x[V](W),N=Y.value}catch(I){return void _(I)}Y.done?w(N):Promise.resolve(N).then(D,O)}var y,M,C=l.EventHandlers={keyEvent:function(x,w,_,D,O){var V=this.inputmask,W=V.opts,Y=V.dependencyLib,N=V.maskset,I=this,q=Y(I),L=x.key,B=m.caret.call(V,I),$=W.onKeyDown.call(this,x,m.getBuffer.call(V),B,W);if($!==void 0)return $;if(L===S.keys.Backspace||L===S.keys.Delete||f.iphone&&L===S.keys.BACKSPACE_SAFARI||x.ctrlKey&&L===S.keys.x&&!("oncut"in I))x.preventDefault(),E.handleRemove.call(V,I,L,B),(0,h.writeBuffer)(I,m.getBuffer.call(V,!0),N.p,x,I.inputmask._valueGet()!==m.getBuffer.call(V).join(""));else if(L===S.keys.End||L===S.keys.PageDown){x.preventDefault();var z=m.seekNext.call(V,m.getLastValidPosition.call(V));m.caret.call(V,I,x.shiftKey?B.begin:z,z,!0)}else L===S.keys.Home&&!x.shiftKey||L===S.keys.PageUp?(x.preventDefault(),m.caret.call(V,I,0,x.shiftKey?B.begin:0,!0)):W.undoOnEscape&&L===S.keys.Escape&&x.altKey!==!0?((0,h.checkVal)(I,!0,!1,V.undoValue.split("")),q.trigger("click")):L!==S.keys.Insert||x.shiftKey||x.ctrlKey||V.userOptions.insertMode!==void 0?W.tabThrough===!0&&L===S.keys.Tab?x.shiftKey===!0?(B.end=m.seekPrevious.call(V,B.end,!0),b.getTest.call(V,B.end-1).match.static===!0&&B.end--,B.begin=m.seekPrevious.call(V,B.end,!0),B.begin>=0&&B.end>0&&(x.preventDefault(),m.caret.call(V,I,B.begin,B.end))):(B.begin=m.seekNext.call(V,B.begin,!0),B.end=m.seekNext.call(V,B.begin,!0),B.end<N.maskLength&&B.end--,B.begin<=N.maskLength&&(x.preventDefault(),m.caret.call(V,I,B.begin,B.end))):x.shiftKey||(W.insertModeVisual&&W.insertMode===!1?L===S.keys.ArrowRight?setTimeout((function(){var J=m.caret.call(V,I);m.caret.call(V,I,J.begin)}),0):L===S.keys.ArrowLeft&&setTimeout((function(){var J=m.translatePosition.call(V,I.inputmask.caretPos.begin);m.translatePosition.call(V,I.inputmask.caretPos.end),V.isRTL?m.caret.call(V,I,J+(J===N.maskLength?0:1)):m.caret.call(V,I,J-(J===0?0:1))}),0):V.keyEventHook===void 0||V.keyEventHook(x)):E.isSelection.call(V,B)?W.insertMode=!W.insertMode:(W.insertMode=!W.insertMode,m.caret.call(V,I,B.begin,B.begin));return V.isComposing=L==S.keys.Process||L==S.keys.Unidentified,V.ignorable=L.length>1&&!(I.tagName.toLowerCase()==="textarea"&&L==S.keys.Enter),C.keypressEvent.call(this,x,w,_,D,O)},keypressEvent:function(x,w,_,D,O){var V=this.inputmask||this,W=V.opts,Y=V.dependencyLib,N=V.maskset,I=V.el,q=Y(I),L=x.key;if(w===!0||x.ctrlKey&&x.altKey&&!V.ignorable||!(x.ctrlKey||x.metaKey||V.ignorable)){if(L){var B,$=w?{begin:O,end:O}:m.caret.call(V,I);w||(L=W.substitutes[L]||L),N.writeOutBuffer=!0;var z=E.isValid.call(V,$,L,D,void 0,void 0,void 0,w);if(z!==!1&&(m.resetMaskSet.call(V,!0),B=z.caret!==void 0?z.caret:m.seekNext.call(V,z.pos.begin?z.pos.begin:z.pos),N.p=B),B=W.numericInput&&z.caret===void 0?m.seekPrevious.call(V,B):B,_!==!1&&(setTimeout((function(){W.onKeyValidation.call(I,L,z)}),0),N.writeOutBuffer&&z!==!1)){var J=m.getBuffer.call(V);(0,h.writeBuffer)(I,J,B,x,w!==!0)}if(x.preventDefault(),w)return z!==!1&&(z.forwardPosition=B),z}}else L===S.keys.Enter&&V.undoValue!==V._valueGet(!0)&&(V.undoValue=V._valueGet(!0),setTimeout((function(){q.trigger("change")}),0))},pasteEvent:(y=g().mark((function x(w){var _,D,O,V,W,Y;return g().wrap((function(N){for(;;)switch(N.prev=N.next){case 0:_=function(I,q,L,B,$){var z=m.caret.call(I,q,void 0,void 0,!0),J=L.substr(0,z.begin),Z=L.substr(z.end,L.length);if(J==(I.isRTL?m.getBufferTemplate.call(I).slice().reverse():m.getBufferTemplate.call(I)).slice(0,z.begin).join("")&&(J=""),Z==(I.isRTL?m.getBufferTemplate.call(I).slice().reverse():m.getBufferTemplate.call(I)).slice(z.end).join("")&&(Z=""),B=J+B+Z,I.isRTL&&V.numericInput!==!0){B=B.split("");var U,ie=T(m.getBufferTemplate.call(I));try{for(ie.s();!(U=ie.n()).done;){var j=U.value;B[0]===j&&B.shift()}}catch(re){ie.e(re)}finally{ie.f()}B=B.reverse().join("")}var H=B;if(typeof $=="function"){if((H=$.call(I,H,V))===!1)return!1;H||(H=L)}(0,h.checkVal)(q,!0,!1,H.toString().split(""),w)},D=this,O=this.inputmask,V=O.opts,W=O._valueGet(!0),O.skipInputEvent=!0,w.clipboardData&&w.clipboardData.getData?Y=w.clipboardData.getData("text/plain"):p.default.clipboardData&&p.default.clipboardData.getData&&(Y=p.default.clipboardData.getData("Text")),_(O,D,W,Y,V.onBeforePaste),w.preventDefault();case 7:case"end":return N.stop()}}),x,this)})),M=function(){var x=this,w=arguments;return new Promise((function(_,D){var O=y.apply(x,w);function V(Y){R(O,_,D,V,W,"next",Y)}function W(Y){R(O,_,D,V,W,"throw",Y)}V(void 0)}))},function(x){return M.apply(this,arguments)}),inputFallBackEvent:function(x){var w=this.inputmask,_=w.opts,D=w.dependencyLib,O,V=this,W=V.inputmask._valueGet(!0),Y=(w.isRTL?m.getBuffer.call(w).slice().reverse():m.getBuffer.call(w)).join(""),N=m.caret.call(w,V,void 0,void 0,!0);if(Y!==W){if(O=(function(q,L,B){for(var $,z,J,Z=q.substr(0,B.begin).split(""),U=q.substr(B.begin).split(""),ie=L.substr(0,B.begin).split(""),j=L.substr(B.begin).split(""),H=Z.length>=ie.length?Z.length:ie.length,re=U.length>=j.length?U.length:j.length,ee="",Q=[],pe="~";Z.length<H;)Z.push(pe);for(;ie.length<H;)ie.push(pe);for(;U.length<re;)U.unshift(pe);for(;j.length<re;)j.unshift(pe);var ue=Z.concat(U),ye=ie.concat(j);for(z=0,$=ue.length;z<$;z++)switch(J=b.getPlaceholder.call(w,m.translatePosition.call(w,z)),ee){case"insertText":ye[z-1]===ue[z]&&B.begin==ue.length-1&&Q.push(ue[z]),z=$;break;case"insertReplacementText":case"deleteContentBackward":ue[z]===pe?B.end++:z=$;break;default:ue[z]!==ye[z]&&(ue[z+1]!==pe&&ue[z+1]!==J&&ue[z+1]!==void 0||(ye[z]!==J||ye[z+1]!==pe)&&ye[z]!==pe?ye[z+1]===pe&&ye[z]===ue[z+1]?(ee="insertText",Q.push(ue[z]),B.begin--,B.end--):ue[z]!==J&&ue[z]!==pe&&(ue[z+1]===pe||ye[z]!==ue[z]&&ye[z+1]===ue[z+1])?(ee="insertReplacementText",Q.push(ue[z]),B.begin--):ue[z]===pe?(ee="deleteContentBackward",(m.isMask.call(w,m.translatePosition.call(w,z),!0)||ye[z]===_.radixPoint)&&B.end++):z=$:(ee="insertText",Q.push(ue[z]),B.begin--,B.end--))}return{action:ee,data:Q,caret:B}})(W,Y,N),(V.inputmask.shadowRoot||V.ownerDocument).activeElement!==V&&V.focus(),(0,h.writeBuffer)(V,m.getBuffer.call(w)),m.caret.call(w,V,N.begin,N.end,!0),!f.mobile&&w.skipNextInsert&&x.inputType==="insertText"&&O.action==="insertText"&&w.isComposing)return!1;switch(x.inputType==="insertCompositionText"&&O.action==="insertText"&&w.isComposing?w.skipNextInsert=!0:w.skipNextInsert=!1,O.action){case"insertText":case"insertReplacementText":O.data.forEach((function(q,L){var B=new D.Event("keypress");B.key=q,w.ignorable=!1,C.keypressEvent.call(V,B)})),setTimeout((function(){w.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var I=new D.Event("keydown");I.key=S.keys.Backspace,C.keyEvent.call(V,I);break;default:(0,h.applyInputValue)(V,W),m.caret.call(w,V,N.begin,N.end,!0)}x.preventDefault()}},setValueEvent:function(x){var w=this.inputmask,_=w.dependencyLib,D=this,O=x&&x.detail?x.detail[0]:arguments[1];O===void 0&&(O=D.inputmask._valueGet(!0)),(0,h.applyInputValue)(D,O,new _.Event("input")),(x.detail&&x.detail[1]!==void 0||arguments[2]!==void 0)&&m.caret.call(w,D,x.detail?x.detail[1]:arguments[2])},focusEvent:function(x){var w=this.inputmask,_=w.opts,D=w&&w._valueGet();_.showMaskOnFocus&&D!==m.getBuffer.call(w).join("")&&(0,h.writeBuffer)(this,m.getBuffer.call(w),m.seekNext.call(w,m.getLastValidPosition.call(w))),_.positionCaretOnTab!==!0||w.mouseEnter!==!1||E.isComplete.call(w,m.getBuffer.call(w))&&m.getLastValidPosition.call(w)!==-1||C.clickEvent.apply(this,[x,!0]),w.undoValue=w&&w._valueGet(!0)},invalidEvent:function(x){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var x=this.inputmask,w=x.opts,_=this;x.mouseEnter=!1,w.clearMaskOnLostFocus&&(_.inputmask.shadowRoot||_.ownerDocument).activeElement!==_&&(0,h.HandleNativePlaceholder)(_,x.originalPlaceholder)},clickEvent:function(x,w){var _=this.inputmask;_.clicked++;var D=this;if((D.inputmask.shadowRoot||D.ownerDocument).activeElement===D){var O=m.determineNewCaretPosition.call(_,m.caret.call(_,D),w);O!==void 0&&m.caret.call(_,D,O)}},cutEvent:function(x){var w=this.inputmask,_=w.maskset,D=this,O=m.caret.call(w,D),V=w.isRTL?m.getBuffer.call(w).slice(O.end,O.begin):m.getBuffer.call(w).slice(O.begin,O.end),W=w.isRTL?V.reverse().join(""):V.join("");p.default.navigator&&p.default.navigator.clipboard?p.default.navigator.clipboard.writeText(W):p.default.clipboardData&&p.default.clipboardData.getData&&p.default.clipboardData.setData("Text",W),E.handleRemove.call(w,D,S.keys.Delete,O),(0,h.writeBuffer)(D,m.getBuffer.call(w),_.p,x,w.undoValue!==w._valueGet(!0))},blurEvent:function(x){var w=this.inputmask,_=w.opts,D=w.dependencyLib;w.clicked=0;var O=D(this),V=this;if(V.inputmask){(0,h.HandleNativePlaceholder)(V,w.originalPlaceholder);var W=V.inputmask._valueGet(),Y=m.getBuffer.call(w).slice();W!==""&&(_.clearMaskOnLostFocus&&(m.getLastValidPosition.call(w)===-1&&W===m.getBufferTemplate.call(w).join("")?Y=[]:h.clearOptionalTail.call(w,Y)),E.isComplete.call(w,Y)===!1&&(setTimeout((function(){O.trigger("incomplete")}),0),_.clearIncomplete&&(m.resetMaskSet.call(w,!1),Y=_.clearMaskOnLostFocus?[]:m.getBufferTemplate.call(w).slice())),(0,h.writeBuffer)(V,Y,void 0,x)),W=w._valueGet(!0),w.undoValue!==W&&(W!=""||w.undoValue!=m.getBufferTemplate.call(w).join("")||w.undoValue==m.getBufferTemplate.call(w).join("")&&w.maskset.validPositions.length>0)&&(w.undoValue=W,O.trigger("change"))}},mouseenterEvent:function(){var x=this.inputmask,w=x.opts.showMaskOnHover,_=this;if(x.mouseEnter=!0,(_.inputmask.shadowRoot||_.ownerDocument).activeElement!==_){var D=(x.isRTL?m.getBufferTemplate.call(x).slice().reverse():m.getBufferTemplate.call(x)).join("");w&&(0,h.HandleNativePlaceholder)(_,D)}},submitEvent:function(){var x=this.inputmask,w=x.opts;x.undoValue!==x._valueGet(!0)&&x.$el.trigger("change"),m.getLastValidPosition.call(x)===-1&&x._valueGet&&x._valueGet()===m.getBufferTemplate.call(x).join("")&&x._valueSet(""),w.clearIncomplete&&E.isComplete.call(x,m.getBuffer.call(x))===!1&&x._valueSet(""),w.removeMaskOnSubmit&&(x._valueSet(x.unmaskedvalue(),!0),setTimeout((function(){(0,h.writeBuffer)(x.el,m.getBuffer.call(x))}),0))},resetEvent:function(){var x=this.inputmask;x.refreshValue=!0,setTimeout((function(){(0,h.applyInputValue)(x.el,x._valueGet(!0))}),0)}}},9716:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.EventRuler=void 0;var c,d=u(7760),f=(c=u(2394))&&c.__esModule?c:{default:c},p=u(2839),h=u(8711);l.EventRuler={on:function(S,m,E){var b=S.inputmask.dependencyLib,g=function(T){T.originalEvent&&(T=T.originalEvent||T,arguments[0]=T);var v,R=this,y=R.inputmask,M=y?y.opts:void 0;if(y===void 0&&this.nodeName!=="FORM"){var C=b.data(R,"_inputmask_opts");b(R).off(),C&&new f.default(C).mask(R)}else{if(["submit","reset","setvalue"].includes(T.type)||this.nodeName==="FORM"||!(R.disabled||R.readOnly&&!(T.type==="keydown"&&T.ctrlKey&&T.key===p.keys.c||M.tabThrough===!1&&T.key===p.keys.Tab))){switch(T.type){case"input":if(y.skipInputEvent===!0)return y.skipInputEvent=!1,T.preventDefault();break;case"click":case"focus":return y.validationEvent?(y.validationEvent=!1,S.blur(),(0,d.HandleNativePlaceholder)(S,(y.isRTL?h.getBufferTemplate.call(y).slice().reverse():h.getBufferTemplate.call(y)).join("")),setTimeout((function(){S.focus()}),M.validationEventTimeOut),!1):(v=arguments,void setTimeout((function(){S.inputmask&&E.apply(R,v)}),0))}var x=E.apply(R,arguments);return x===!1&&(T.preventDefault(),T.stopPropagation()),x}T.preventDefault()}};["submit","reset"].includes(m)?(g=g.bind(S),S.form!==null&&b(S.form).on(m,g)):b(S).on(m,g),S.inputmask.events[m]=S.inputmask.events[m]||[],S.inputmask.events[m].push(g)},off:function(S,m){if(S.inputmask&&S.inputmask.events){var E=S.inputmask.dependencyLib,b=S.inputmask.events;for(var g in m&&((b=[])[m]=S.inputmask.events[m]),b){for(var T=b[g];T.length>0;){var v=T.pop();["submit","reset"].includes(g)?S.form!==null&&E(S.form).off(g,v):E(S).off(g,v)}delete S.inputmask.events[g]}}}}},219:function(a,l,u){var c=g(u(7184)),d=g(u(2394)),f=u(2839),p=u(8711),h=u(4713);function S(L,B){return(function($){if(Array.isArray($))return $})(L)||(function($,z){var J=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(J!=null){var Z,U,ie,j,H=[],re=!0,ee=!1;try{if(ie=(J=J.call($)).next,z!==0)for(;!(re=(Z=ie.call(J)).done)&&(H.push(Z.value),H.length!==z);re=!0);}catch(Q){ee=!0,U=Q}finally{try{if(!re&&J.return!=null&&(j=J.return(),Object(j)!==j))return}finally{if(ee)throw U}}return H}})(L,B)||(function($,z){if($){if(typeof $=="string")return m($,z);var J=Object.prototype.toString.call($).slice(8,-1);if(J==="Object"&&$.constructor&&(J=$.constructor.name),J==="Map"||J==="Set")return Array.from($);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return m($,z)}})(L,B)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(L,B){(B==null||B>L.length)&&(B=L.length);for(var $=0,z=new Array(B);$<B;$++)z[$]=L[$];return z}function E(L){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},E(L)}function b(L,B){for(var $=0;$<B.length;$++){var z=B[$];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,(J=z.key,Z=void 0,Z=(function(U,ie){if(E(U)!=="object"||U===null)return U;var j=U[Symbol.toPrimitive];if(j!==void 0){var H=j.call(U,ie);if(E(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ie==="string"?String:Number)(U)})(J,"string"),E(Z)==="symbol"?Z:String(Z)),z)}var J,Z}function g(L){return L&&L.__esModule?L:{default:L}}u(1313);var T=d.default.dependencyLib,v=(function(){function L(z,J,Z,U){(function(ie,j){if(!(ie instanceof j))throw new TypeError("Cannot call a class as a function")})(this,L),this.mask=z,this.format=J,this.opts=Z,this.inputmask=U,this._date=new Date(1,0,1),this.initDateObject(z,this.opts,this.inputmask)}var B,$;return B=L,($=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(z,J,Z){var U;for(O(J).lastIndex=0;U=O(J).exec(this.format);){var ie=/\d+$/.exec(U[0]),j=ie?U[0][0]+"x":U[0],H=void 0;if(z!==void 0){if(ie){var re=O(J).lastIndex,ee=q.call(Z,U.index,J,Z&&Z.maskset);O(J).lastIndex=re,H=z.slice(0,z.indexOf(ee.nextMatch[0]))}else{for(var Q=U[0][0],pe=U.index;Z&&(J.placeholder[h.getTest.call(Z,pe).match.placeholder]||h.getTest.call(Z,pe).match.placeholder)===Q;)pe++;var ue=pe-U.index;H=z.slice(0,ue||C[j]&&C[j][4]||j.length)}z=z.slice(H.length)}Object.prototype.hasOwnProperty.call(C,j)&&this.setValue(this,H,j,C[j][2],C[j][1])}}},{key:"setValue",value:function(z,J,Z,U,ie){if(J!==void 0)switch(U){case"ampm":z[U]=J,z["raw"+U]=J.replace(/\s/g,"_");break;case"month":if(Z==="mmm"||Z==="mmmm"){z[U]=Y(Z==="mmm"?y.monthNames.slice(0,12).findIndex((function(H){return J.toLowerCase()===H.toLowerCase()}))+1:y.monthNames.slice(12,24).findIndex((function(H){return J.toLowerCase()===H.toLowerCase()}))+1,2),z[U]=z[U]==="00"?"":z[U].toString(),z["raw"+U]=z[U];break}default:z[U]=J.replace(/[^0-9]/g,"0"),z["raw"+U]=J.replace(/\s/g,"_")}if(ie!==void 0){var j=z[U];(U==="day"&&parseInt(j)===29||U==="month"&&parseInt(j)===2)&&(parseInt(z.day)!==29||parseInt(z.month)!==2||z.year!==""&&z.year!==void 0||z._date.setFullYear(2012,1,29)),U==="day"&&(M=!0,parseInt(j)===0&&(j=1)),U==="month"&&(M=!0),U==="year"&&(M=!0,j.length<C[Z][4]&&(j=Y(j,C[Z][4],!0))),(j!==""&&!isNaN(j)||U==="ampm")&&ie.call(z._date,j)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&b(B.prototype,$),Object.defineProperty(B,"prototype",{writable:!1}),L})(),R=new Date().getFullYear(),y=d.default.prototype.i18n,M=!1,C={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return Y(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(L){var B=L?parseInt(L):0;return B>0&&B--,Date.prototype.setMonth.call(this,B)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(L){var B=L?parseInt(L):0;return B>0&&B--,Date.prototype.setMonth.call(this,B)},"month",function(){return Y(Date.prototype.getMonth.call(this)+1,2)}],mmm:[y.monthNames.slice(0,12).join("|"),function(L){var B=y.monthNames.slice(0,12).findIndex((function($){return L.toLowerCase()===$.toLowerCase()}));return B!==-1&&Date.prototype.setMonth.call(this,B)},"month",function(){return y.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[y.monthNames.slice(12,24).join("|"),function(L){var B=y.monthNames.slice(12,24).findIndex((function($){return L.toLowerCase()===$.toLowerCase()}));return B!==-1&&Date.prototype.setMonth.call(this,B)},"month",function(){return y.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(L){var B=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(B).concat(L))},"year",function(){return Y(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return Y(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return Y(Date.prototype.getHours.call(this),2)}],hx:[function(L){return"[0-9]{".concat(L,"}")},Date.prototype.setHours,"hours",function(L){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return Y(Date.prototype.getHours.call(this),2)}],Hx:[function(L){return"[0-9]{".concat(L,"}")},Date.prototype.setHours,"hours",function(L){return function(){return Y(Date.prototype.getHours.call(this),L)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return Y(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return Y(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return Y(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return Y(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",w,"ampm",_,1],tt:["[ap]m",w,"ampm",_,2],T:["[AP]",w,"ampm",_,1],TT:["[AP]M",w,"ampm",_,2],Z:[".*",void 0,"Z",function(){var L=this.toString().match(/\((.+)\)/)[1];return L.includes(" ")&&(L=(L=L.replace("-"," ").toUpperCase()).split(" ").map((function(B){return S(B,1)[0]})).join("")),L}],o:[""],S:[""]},x={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function w(L){var B=this.getHours();L.toLowerCase().includes("p")?this.setHours(B+12):L.toLowerCase().includes("a")&&B>=12&&this.setHours(B-12)}function _(){var L=this.getHours();return(L=L||12)>=12?"PM":"AM"}function D(L){var B=/\d+$/.exec(L[0]);if(B&&B[0]!==void 0){var $=C[L[0][0]+"x"].slice("");return $[0]=$[0](B[0]),$[3]=$[3](B[0]),$}if(C[L[0]])return C[L[0]]}function O(L){if(!L.tokenizer){var B=[],$=[];for(var z in C)if(/\.*x$/.test(z)){var J=z[0]+"\\d+";$.indexOf(J)===-1&&$.push(J)}else B.indexOf(z[0])===-1&&B.push(z[0]);L.tokenizer="("+($.length>0?$.join("|")+"|":"")+B.join("+|")+")+?|.",L.tokenizer=new RegExp(L.tokenizer,"g")}return L.tokenizer}function V(L,B,$){if(!M)return!0;if(L.rawday===void 0||!isFinite(L.rawday)&&new Date(L.date.getFullYear(),isFinite(L.rawmonth)?L.month:L.date.getMonth()+1,0).getDate()>=L.day||L.day=="29"&&(!isFinite(L.rawyear)||L.rawyear===void 0||L.rawyear==="")||new Date(L.date.getFullYear(),isFinite(L.rawmonth)?L.month:L.date.getMonth()+1,0).getDate()>=L.day)return B;if(L.day=="29"){var z=q.call(this,B.pos,$,this.maskset);if(z.targetMatch&&z.targetMatch[0]==="yyyy"&&B.pos-z.targetMatchIndex==2)return B.remove=B.pos+1,B}else if(L.date.getMonth()==2&&L.day=="30"&&B.c!==void 0)return L.day="03",L.date.setDate(3),L.date.setMonth(1),B.insert=[{pos:B.pos,c:"0"},{pos:B.pos+1,c:B.c}],B.caret=p.seekNext.call(this,B.pos+1),B;return!1}function W(L,B,$,z){var J,Z,U="",ie=0,j={};for(O($).lastIndex=0;J=O($).exec(L);){if(B===void 0)if(Z=D(J))U+="("+Z[0]+")",$.placeholder&&$.placeholder!==""?(j[ie]=$.placeholder[J.index%$.placeholder.length],j[$.placeholder[J.index%$.placeholder.length]]=J[0].charAt(0)):j[ie]=J[0].charAt(0);else switch(J[0]){case"[":U+="(";break;case"]":U+=")?";break;default:U+=(0,c.default)(J[0]),j[ie]=J[0].charAt(0)}else(Z=D(J))?z!==!0&&Z[3]?U+=Z[3].call(B.date):Z[2]?U+=B["raw"+Z[2]]:U+=J[0]:U+=J[0];ie++}return B===void 0&&($.placeholder=j),U}function Y(L,B,$){for(L=String(L),B=B||2;L.length<B;)L=$?L+"0":"0"+L;return L}function N(L,B,$){return typeof L=="string"?new v(L,B,$,this):L&&E(L)==="object"&&Object.prototype.hasOwnProperty.call(L,"date")?L:void 0}function I(L,B){return W(B.inputFormat,{date:L},B)}function q(L,B,$){var z,J,Z=this,U=$&&$.tests[L]?B.placeholder[$.tests[L][0].match.placeholder]||$.tests[L][0].match.placeholder:"",ie=0,j=0;for(O(B).lastIndex=0;J=O(B).exec(B.inputFormat);){var H=/\d+$/.exec(J[0]);if(H)j=parseInt(H[0]);else{for(var re=J[0][0],ee=ie;Z&&(B.placeholder[h.getTest.call(Z,ee).match.placeholder]||h.getTest.call(Z,ee).match.placeholder)===re;)ee++;(j=ee-ie)===0&&(j=J[0].length)}if(ie+=j,J[0].indexOf(U)!=-1||ie>=L+1){z=J,J=O(B).exec(B.inputFormat);break}}return{targetMatchIndex:ie-j,nextMatch:J,targetMatch:z}}d.default.extendAliases({datetime:{mask:function(L){return L.numericInput=!1,C.S=y.ordinalSuffix.join("|"),L.inputFormat=x[L.inputFormat]||L.inputFormat,L.displayFormat=x[L.displayFormat]||L.displayFormat||L.inputFormat,L.outputFormat=x[L.outputFormat]||L.outputFormat||L.inputFormat,L.regex=W(L.inputFormat,void 0,L),L.min=N(L.min,L.inputFormat,L),L.max=N(L.max,L.inputFormat,L),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(L,B,$,z,J,Z,U,ie){if(ie)return!0;if(isNaN($)&&L[B]!==$){var j=q.call(this,B,J,Z);if(j.nextMatch&&j.nextMatch[0]===$&&j.targetMatch[0].length>1){var H=D(j.targetMatch)[0];if(new RegExp(H).test("0"+L[B-1]))return L[B]=L[B-1],L[B-1]="0",{fuzzy:!0,buffer:L,refreshFromBuffer:{start:B-1,end:B+1},pos:B+1}}}return!0},postValidation:function(L,B,$,z,J,Z,U,ie){var j,H,re=this;if(U)return!0;if(z===!1&&(((j=q.call(re,B+1,J,Z)).targetMatch&&j.targetMatchIndex===B&&j.targetMatch[0].length>1&&C[j.targetMatch[0]]!==void 0||(j=q.call(re,B+2,J,Z)).targetMatch&&j.targetMatchIndex===B+1&&j.targetMatch[0].length>1&&C[j.targetMatch[0]]!==void 0)&&(H=D(j.targetMatch)[0]),H!==void 0&&(Z.validPositions[B+1]!==void 0&&new RegExp(H).test($+"0")?(L[B]=$,L[B+1]="0",z={pos:B+2,caret:B}):new RegExp(H).test("0"+$)&&(L[B]="0",L[B+1]=$,z={pos:B+2})),z===!1))return z;if(z.fuzzy&&(L=z.buffer,B=z.pos),(j=q.call(re,B,J,Z)).targetMatch&&j.targetMatch[0]&&C[j.targetMatch[0]]!==void 0){var ee=D(j.targetMatch);H=ee[0];var Q=L.slice(j.targetMatchIndex,j.targetMatchIndex+j.targetMatch[0].length);if(new RegExp(H).test(Q.join(""))===!1&&j.targetMatch[0].length===2&&Z.validPositions[j.targetMatchIndex]&&Z.validPositions[j.targetMatchIndex+1]&&(Z.validPositions[j.targetMatchIndex+1].input="0"),ee[2]=="year")for(var pe=h.getMaskTemplate.call(re,!1,1,void 0,!0),ue=B+1;ue<L.length;ue++)L[ue]=pe[ue],Z.validPositions.splice(B+1,1)}var ye=z,we=N.call(re,L.join(""),J.inputFormat,J);return ye&&!isNaN(we.date.getTime())&&(J.prefillYear&&(ye=(function(Re,Pe,le){if(Re.year!==Re.rawyear){var Ve=R.toString(),ae=Re.rawyear.replace(/[^0-9]/g,""),X=Ve.slice(0,ae.length),te=Ve.slice(ae.length);if(ae.length===2&&ae===X){var me=new Date(R,Re.month-1,Re.day);Re.day==me.getDate()&&(!le.max||le.max.date.getTime()>=me.getTime())&&(Re.date.setFullYear(R),Re.year=Ve,Pe.insert=[{pos:Pe.pos+1,c:te[0]},{pos:Pe.pos+2,c:te[1]}])}}return Pe})(we,ye,J)),ye=(function(Re,Pe,le,Ve,ae){if(!Pe)return Pe;if(Pe&&le.min&&!isNaN(le.min.date.getTime())){var X;for(Re.reset(),O(le).lastIndex=0;X=O(le).exec(le.inputFormat);){var te;if((te=D(X))&&te[3]){for(var me=te[1],de=Re[te[2]],Me=le.min[te[2]],Fe=le.max?le.max[te[2]]:Me+1,De=[],Ae=!1,Ie=0;Ie<Me.length;Ie++)Ve.validPositions[Ie+X.index]!==void 0||Ae?(De[Ie]=de[Ie],Ae=Ae||de[Ie]>Me[Ie]):(Ie+X.index==0&&de[Ie]<Me[Ie]?(De[Ie]=de[Ie],Ae=!0):De[Ie]=Me[Ie],te[2]==="year"&&de.length-1==Ie&&Me!=Fe&&(De=(parseInt(De.join(""))+1).toString().split("")),te[2]==="ampm"&&Me!=Fe&&le.min.date.getTime()>Re.date.getTime()&&(De[Ie]=Fe[Ie]));me.call(Re._date,De.join(""))}}Pe=le.min.date.getTime()<=Re.date.getTime(),Re.reInit()}return Pe&&le.max&&(isNaN(le.max.date.getTime())||(Pe=le.max.date.getTime()>=Re.date.getTime())),Pe})(we,ye=V.call(re,we,ye,J),J,Z)),B!==void 0&&ye&&z.pos!==B?{buffer:W(J.inputFormat,we,J).split(""),refreshFromBuffer:{start:B,end:z.pos},pos:z.caret||z.pos}:ye},onKeyDown:function(L,B,$,z){L.ctrlKey&&L.key===f.keys.ArrowRight&&(this.inputmask._valueSet(I(new Date,z)),T(this).trigger("setvalue"))},onUnMask:function(L,B,$){return B&&W($.outputFormat,N.call(this,L,$.inputFormat,$),$,!0)},casing:function(L,B,$,z){if(B.nativeDef.indexOf("[ap]")==0)return L.toLowerCase();if(B.nativeDef.indexOf("[AP]")==0)return L.toUpperCase();var J=h.getTest.call(this,[$-1]);return J.match.def.indexOf("[AP]")==0||$===0||J&&J.input===String.fromCharCode(f.keyCode.Space)||J&&J.match.def===String.fromCharCode(f.keyCode.Space)?L.toUpperCase():L.toLowerCase()},onBeforeMask:function(L,B){return Object.prototype.toString.call(L)==="[object Date]"&&(L=I(L,B)),L},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c};d.default.dependencyLib.extend(!0,d.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711),p=u(4713);function h(b){return(function(g){if(Array.isArray(g))return S(g)})(b)||(function(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)})(b)||(function(g,T){if(g){if(typeof g=="string")return S(g,T);var v=Object.prototype.toString.call(g).slice(8,-1);if(v==="Object"&&g.constructor&&(v=g.constructor.name),v==="Map"||v==="Set")return Array.from(g);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return S(g,T)}})(b)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function S(b,g){(g==null||g>b.length)&&(g=b.length);for(var T=0,v=new Array(g);T<g;T++)v[T]=b[T];return v}d.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var m=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function E(b,g,T,v,R){if(T-1>-1&&g.buffer[T-1]!=="."?(b=g.buffer[T-1]+b,b=T-2>-1&&g.buffer[T-2]!=="."?g.buffer[T-2]+b:"0"+b):b="00"+b,R.greedy&&parseInt(b)>255&&m.test("00"+b.charAt(2))){var y=[].concat(h(g.buffer.slice(0,T)),[".",b.charAt(2)]);if(y.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:y,caret:T+2}}return m.test(b)}d.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:E},j:{validator:E},k:{validator:E},l:{validator:E}},onUnMask:function(b,g,T){return b},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(b){var g=b.separator,T=b.quantifier,v="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",R=v;if(g)for(var y=0;y<T;y++)R+="[".concat(g).concat(v,"]");return R},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(b,g){return(b=b.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(b,g,T){return b},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(b,g,T,v,R,y,M){var C=p.getMaskTemplate.call(this,!0,f.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(C.join(""))}}})},207:function(a,l,u){var c=h(u(7184)),d=h(u(2394)),f=u(2839),p=u(8711);function h(v){return v&&v.__esModule?v:{default:v}}var S=d.default.dependencyLib;function m(v,R){for(var y="",M=0;M<v.length;M++)d.default.prototype.definitions[v.charAt(M)]||R.definitions[v.charAt(M)]||R.optionalmarker[0]===v.charAt(M)||R.optionalmarker[1]===v.charAt(M)||R.quantifiermarker[0]===v.charAt(M)||R.quantifiermarker[1]===v.charAt(M)||R.groupmarker[0]===v.charAt(M)||R.groupmarker[1]===v.charAt(M)||R.alternatormarker===v.charAt(M)?y+="\\"+v.charAt(M):y+=v.charAt(M);return y}function E(v,R,y,M){if(v.length>0&&R>0&&(!y.digitsOptional||M)){var C=v.indexOf(y.radixPoint),x=!1;y.negationSymbol.back===v[v.length-1]&&(x=!0,v.length--),C===-1&&(v.push(y.radixPoint),C=v.length-1);for(var w=1;w<=R;w++)isFinite(v[C+w])||(v[C+w]="0")}return x&&v.push(y.negationSymbol.back),v}function b(v,R){var y=0;for(var M in v==="+"&&(y=p.seekNext.call(this,R.validPositions.length-1)),R.tests)if((M=parseInt(M))>=y){for(var C=0,x=R.tests[M].length;C<x;C++)if((R.validPositions[M]===void 0||v==="-")&&R.tests[M][C].match.def===v)return M+(R.validPositions[M]!==void 0&&v!=="-"?1:0)}return y}function g(v,R){for(var y=-1,M=0,C=R.validPositions.length;M<C;M++){var x=R.validPositions[M];if(x&&x.match.def===v){y=M;break}}return y}function T(v,R,y,M,C){var x=R.buffer?R.buffer.indexOf(C.radixPoint):-1,w=(x!==-1||M&&C.jitMasking)&&new RegExp(C.definitions[9].validator).test(v);return!M&&C._radixDance&&x!==-1&&w&&R.validPositions[x]==null?{insert:{pos:x===y?x+1:x,c:C.radixPoint},pos:y}:w}d.default.extendAliases({numeric:{mask:function(v){v.repeat=0,v.groupSeparator===v.radixPoint&&v.digits&&v.digits!=="0"&&(v.radixPoint==="."?v.groupSeparator=",":v.radixPoint===","?v.groupSeparator=".":v.groupSeparator=""),v.groupSeparator===" "&&(v.skipOptionalPartCharacter=void 0),v.placeholder.length>1&&(v.placeholder=v.placeholder.charAt(0)),v.positionCaretOnClick==="radixFocus"&&v.placeholder===""&&(v.positionCaretOnClick="lvp");var R="0",y=v.radixPoint;v.numericInput===!0&&v.__financeInput===void 0?(R="1",v.positionCaretOnClick=v.positionCaretOnClick==="radixFocus"?"lvp":v.positionCaretOnClick,v.digitsOptional=!1,isNaN(v.digits)&&(v.digits=2),v._radixDance=!1,y=v.radixPoint===","?"?":"!",v.radixPoint!==""&&v.definitions[y]===void 0&&(v.definitions[y]={},v.definitions[y].validator="["+v.radixPoint+"]",v.definitions[y].placeholder=v.radixPoint,v.definitions[y].static=!0,v.definitions[y].generated=!0)):(v.__financeInput=!1,v.numericInput=!0);var M,C="[+]";if(C+=m(v.prefix,v),v.groupSeparator!==""?(v.definitions[v.groupSeparator]===void 0&&(v.definitions[v.groupSeparator]={},v.definitions[v.groupSeparator].validator="["+v.groupSeparator+"]",v.definitions[v.groupSeparator].placeholder=v.groupSeparator,v.definitions[v.groupSeparator].static=!0,v.definitions[v.groupSeparator].generated=!0),C+=v._mask(v)):C+="9{+}",v.digits!==void 0&&v.digits!==0){var x=v.digits.toString().split(",");isFinite(x[0])&&x[1]&&isFinite(x[1])?C+=y+R+"{"+v.digits+"}":(isNaN(v.digits)||parseInt(v.digits)>0)&&(v.digitsOptional||v.jitMasking?(M=C+y+R+"{0,"+v.digits+"}",v.keepStatic=!0):C+=y+R+"{"+v.digits+"}")}else v.inputmode="numeric";return C+=m(v.suffix,v),C+="[-]",M&&(C=[M+m(v.suffix,v)+"[-]",C]),v.greedy=!1,(function(w){w.parseMinMaxOptions===void 0&&(w.min!==null&&(w.min=w.min.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.min=w.min.replace(w.radixPoint,".")),w.min=isFinite(w.min)?parseFloat(w.min):NaN,isNaN(w.min)&&(w.min=Number.MIN_VALUE)),w.max!==null&&(w.max=w.max.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.max=w.max.replace(w.radixPoint,".")),w.max=isFinite(w.max)?parseFloat(w.max):NaN,isNaN(w.max)&&(w.max=Number.MAX_VALUE)),w.parseMinMaxOptions="done")})(v),v.radixPoint!==""&&v.substituteRadixPoint&&(v.substitutes[v.radixPoint=="."?",":"."]=v.radixPoint),C},_mask:function(v){return"("+v.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:T},1:{validator:T,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(v,R,y,M,C){return C.allowMinus&&(v==="-"||v===C.negationSymbol.front)}},"-":{validator:function(v,R,y,M,C){return C.allowMinus&&v===C.negationSymbol.back}}},preValidation:function(v,R,y,M,C,x,w,_){var D=this;if(C.__financeInput!==!1&&y===C.radixPoint)return!1;var O=v.indexOf(C.radixPoint),V=R;if(R=(function(q,L,B,$,z){return z._radixDance&&z.numericInput&&L!==z.negationSymbol.back&&q<=B&&(B>0||L==z.radixPoint)&&($.validPositions[q-1]===void 0||$.validPositions[q-1].input!==z.negationSymbol.back)&&(q-=1),q})(R,y,O,x,C),y==="-"||y===C.negationSymbol.front){if(C.allowMinus!==!0)return!1;var W=!1,Y=g("+",x),N=g("-",x);return Y!==-1&&(W=[Y],N!==-1&&W.push(N)),W!==!1?{remove:W,caret:V-C.negationSymbol.back.length}:{insert:[{pos:b.call(D,"+",x),c:C.negationSymbol.front,fromIsValid:!0},{pos:b.call(D,"-",x),c:C.negationSymbol.back,fromIsValid:void 0}],caret:V+C.negationSymbol.back.length}}if(y===C.groupSeparator)return{caret:V};if(_)return!0;if(O!==-1&&C._radixDance===!0&&M===!1&&y===C.radixPoint&&C.digits!==void 0&&(isNaN(C.digits)||parseInt(C.digits)>0)&&O!==R){var I=b.call(D,C.radixPoint,x);return x.validPositions[I]&&(x.validPositions[I].generatedInput=x.validPositions[I].generated||!1),{caret:C._radixDance&&R===O-1?O+1:O}}if(C.__financeInput===!1){if(M){if(C.digitsOptional)return{rewritePosition:w.end};if(!C.digitsOptional){if(w.begin>O&&w.end<=O)return y===C.radixPoint?{insert:{pos:O+1,c:"0",fromIsValid:!0},rewritePosition:O}:{rewritePosition:O+1};if(w.begin<O)return{rewritePosition:w.begin-1}}}else if(!C.showMaskOnHover&&!C.showMaskOnFocus&&!C.digitsOptional&&C.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:O}}return{rewritePosition:R}},postValidation:function(v,R,y,M,C,x,w){if(M===!1)return M;if(w)return!0;if(C.min!==null||C.max!==null){var _=C.onUnMask(v.slice().reverse().join(""),void 0,S.extend({},C,{unmaskAsNumber:!0}));if(C.min!==null&&_<C.min&&(_.toString().length>C.min.toString().length||_<0))return!1;if(C.max!==null&&_>C.max)return!!C.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:E(C.max.toString().replace(".",C.radixPoint).split(""),C.digits,C).reverse()}}return M},onUnMask:function(v,R,y){if(R===""&&y.nullable===!0)return R;var M=v.replace(y.prefix,"");return M=(M=M.replace(y.suffix,"")).replace(new RegExp((0,c.default)(y.groupSeparator),"g"),""),y.placeholder.charAt(0)!==""&&(M=M.replace(new RegExp(y.placeholder.charAt(0),"g"),"0")),y.unmaskAsNumber?(y.radixPoint!==""&&M.indexOf(y.radixPoint)!==-1&&(M=M.replace(c.default.call(this,y.radixPoint),".")),M=(M=M.replace(new RegExp("^"+(0,c.default)(y.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(y.negationSymbol.back)+"$"),""),Number(M)):M},isComplete:function(v,R){var y=(R.numericInput?v.slice().reverse():v).join("");return y=(y=(y=(y=(y=y.replace(new RegExp("^"+(0,c.default)(R.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(R.negationSymbol.back)+"$"),"")).replace(R.prefix,"")).replace(R.suffix,"")).replace(new RegExp((0,c.default)(R.groupSeparator)+"([0-9]{3})","g"),"$1"),R.radixPoint===","&&(y=y.replace((0,c.default)(R.radixPoint),".")),isFinite(y)},onBeforeMask:function(v,R){var y;v=(y=v)!==null&&y!==void 0?y:"";var M=R.radixPoint||",";isFinite(R.digits)&&(R.digits=parseInt(R.digits)),typeof v!="number"&&R.inputType!=="number"||M===""||(v=v.toString().replace(".",M));var C=v.charAt(0)==="-"||v.charAt(0)===R.negationSymbol.front,x=v.split(M),w=x[0].replace(/[^\-0-9]/g,""),_=x.length>1?x[1].replace(/[^0-9]/g,""):"",D=x.length>1;v=w+(_!==""?M+_:_);var O=0;if(M!==""&&(O=R.digitsOptional?R.digits<_.length?R.digits:_.length:R.digits,_!==""||!R.digitsOptional)){var V=Math.pow(10,O||1);v=v.replace((0,c.default)(M),"."),isNaN(parseFloat(v))||(v=(R.roundingFN(parseFloat(v)*V)/V).toFixed(O)),v=v.toString().replace(".",M)}if(R.digits===0&&v.indexOf(M)!==-1&&(v=v.substring(0,v.indexOf(M))),R.min!==null||R.max!==null){var W=v.toString().replace(M,".");R.min!==null&&W<R.min?v=R.min.toString().replace(".",M):R.max!==null&&W>R.max&&(v=R.max.toString().replace(".",M))}return C&&v.charAt(0)!=="-"&&(v="-"+v),E(v.toString().split(""),O,R,D).join("")},onBeforeWrite:function(v,R,y,M){function C(N,I){if(M.__financeInput!==!1||I){var q=N.indexOf(M.radixPoint);q!==-1&&N.splice(q,1)}if(M.groupSeparator!=="")for(;(q=N.indexOf(M.groupSeparator))!==-1;)N.splice(q,1);return N}var x,w;if(M.stripLeadingZeroes&&(w=(function(N,I){var q=new RegExp("(^"+(I.negationSymbol.front!==""?(0,c.default)(I.negationSymbol.front)+"?":"")+(0,c.default)(I.prefix)+")(.*)("+(0,c.default)(I.suffix)+(I.negationSymbol.back!=""?(0,c.default)(I.negationSymbol.back)+"?":"")+"$)").exec(N.slice().reverse().join("")),L=q?q[2]:"",B=!1;return L&&(L=L.split(I.radixPoint.charAt(0))[0],B=new RegExp("^[0"+I.groupSeparator+"]*").exec(L)),!(!B||!(B[0].length>1||B[0].length>0&&B[0].length<L.length))&&B})(R,M)))for(var _=R.join("").lastIndexOf(w[0].split("").reverse().join(""))-(w[0]==w.input?0:1),D=w[0]==w.input?1:0,O=w[0].length-D;O>0;O--)this.maskset.validPositions.splice(_+O,1),delete R[_+O];if(v)switch(v.type){case"blur":case"checkval":if(M.min!==null){var V=M.onUnMask(R.slice().reverse().join(""),void 0,S.extend({},M,{unmaskAsNumber:!0}));if(M.min!==null&&V<M.min)return{refreshFromBuffer:!0,buffer:E(M.min.toString().replace(".",M.radixPoint).split(""),M.digits,M).reverse()}}if(R[R.length-1]===M.negationSymbol.front){var W=new RegExp("(^"+(M.negationSymbol.front!=""?(0,c.default)(M.negationSymbol.front)+"?":"")+(0,c.default)(M.prefix)+")(.*)("+(0,c.default)(M.suffix)+(M.negationSymbol.back!=""?(0,c.default)(M.negationSymbol.back)+"?":"")+"$)").exec(C(R.slice(),!0).reverse().join(""));(W?W[2]:"")==0&&(x={refreshFromBuffer:!0,buffer:[0]})}else M.radixPoint!==""&&R.indexOf(M.radixPoint)===M.suffix.length&&(x&&x.buffer?x.buffer.splice(0,1+M.suffix.length):(R.splice(0,1+M.suffix.length),x={refreshFromBuffer:!0,buffer:C(R)}));if(M.enforceDigitsOnBlur){var Y=(x=x||{})&&x.buffer||R.slice().reverse();x.refreshFromBuffer=!0,x.buffer=E(Y,M.digits,M,!0).reverse()}}return x},onKeyDown:function(v,R,y,M){var C,x=S(this);if(v.location!=3){var w,_=v.key;if((w=M.shortcuts&&M.shortcuts[_])&&w.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(w)),x.trigger("setvalue"),!1}if(v.ctrlKey)switch(v.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(M.step)),x.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(M.step)),x.trigger("setvalue"),!1}if(!v.shiftKey&&(v.key===f.keys.Delete||v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI)&&y.begin!==R.length){if(R[v.key===f.keys.Delete?y.begin-1:y.end]===M.negationSymbol.front)return C=R.slice().reverse(),M.negationSymbol.front!==""&&C.shift(),M.negationSymbol.back!==""&&C.pop(),x.trigger("setvalue",[C.join(""),y.begin]),!1;if(M._radixDance===!0){var D,O=R.indexOf(M.radixPoint);if(M.digitsOptional){if(O===0)return(C=R.slice().reverse()).pop(),x.trigger("setvalue",[C.join(""),y.begin>=C.length?C.length:y.begin]),!1}else if(O!==-1&&(y.begin<O||y.end<O||v.key===f.keys.Delete&&(y.begin===O||y.begin-1===O)))return y.begin===y.end&&(v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI?y.begin++:v.key===f.keys.Delete&&y.begin-1===O&&(D=S.extend({},y),y.begin--,y.end--)),(C=R.slice().reverse()).splice(C.length-y.begin,y.begin-y.end+1),C=E(C,M.digits,M).join(""),D&&(y=D),x.trigger("setvalue",[C,y.begin>=C.length?O+1:y.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(v){return"("+v.groupSeparator+"99){*|1}("+v.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=!(typeof window>"u"||!window.document||!window.document.createElement);l.default=u?window:{}},7760:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.HandleNativePlaceholder=function(T,v){var R=T?T.inputmask:this;if(c.ie){if(T.inputmask._valueGet()!==v&&(T.placeholder!==v||T.placeholder==="")){var y=p.getBuffer.call(R).slice(),M=T.inputmask._valueGet();if(M!==v){var C=p.getLastValidPosition.call(R);C===-1&&M===p.getBufferTemplate.call(R).join("")?y=[]:C!==-1&&E.call(R,y),g(T,y)}}}else T.placeholder!==v&&(T.placeholder=v,T.placeholder===""&&T.removeAttribute("placeholder"))},l.applyInputValue=m,l.checkVal=b,l.clearOptionalTail=E,l.unmaskedvalue=function(T){var v=T?T.inputmask:this,R=v.opts,y=v.maskset;if(T){if(T.inputmask===void 0)return T.value;T.inputmask&&T.inputmask.refreshValue&&m(T,T.inputmask._valueGet(!0))}for(var M=[],C=y.validPositions,x=0,w=C.length;x<w;x++)C[x]&&C[x].match&&(C[x].match.static!=1||Array.isArray(y.metadata)&&C[x].generatedInput!==!0)&&M.push(C[x].input);var _=M.length===0?"":(v.isRTL?M.reverse():M).join("");if(typeof R.onUnMask=="function"){var D=(v.isRTL?p.getBuffer.call(v).slice().reverse():p.getBuffer.call(v)).join("");_=R.onUnMask.call(v,D,_,R)}return _},l.writeBuffer=g;var c=u(9845),d=u(6030),f=u(2839),p=u(8711),h=u(7215),S=u(4713);function m(T,v,R){var y=T?T.inputmask:this,M=y.opts;T.inputmask.refreshValue=!1,typeof M.onBeforeMask=="function"&&(v=M.onBeforeMask.call(y,v,M)||v),b(T,!0,!1,v=(v||"").toString().split(""),R),y.undoValue=y._valueGet(!0),(M.clearMaskOnLostFocus||M.clearIncomplete)&&T.inputmask._valueGet()===p.getBufferTemplate.call(y).join("")&&p.getLastValidPosition.call(y)===-1&&T.inputmask._valueSet("")}function E(T){T.length=0;for(var v,R=S.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(v=R.shift())!==void 0;)T.push(v);return T}function b(T,v,R,y,M){var C,x=T?T.inputmask:this,w=x.maskset,_=x.opts,D=x.dependencyLib,O=y.slice(),V="",W=-1,Y=_.skipOptionalPartCharacter;_.skipOptionalPartCharacter="",p.resetMaskSet.call(x,!1),x.clicked=0,W=_.radixPoint?p.determineNewCaretPosition.call(x,{begin:0,end:0},!1,_.__financeInput===!1?"radixFocus":void 0).begin:0,w.p=W,x.caretPos={begin:W};var N=[],I=x.caretPos;if(O.forEach((function(J,Z){if(J!==void 0){var U=new D.Event("_checkval");U.key=J,V+=J;var ie=p.getLastValidPosition.call(x,void 0,!0);(function(j,H){for(var re=S.getMaskTemplate.call(x,!0,0).slice(j,p.seekNext.call(x,j,!1,!1)).join("").replace(/'/g,""),ee=re.indexOf(H);ee>0&&re[ee-1]===" ";)ee--;var Q=ee===0&&!p.isMask.call(x,j)&&(S.getTest.call(x,j).match.nativeDef===H.charAt(0)||S.getTest.call(x,j).match.static===!0&&S.getTest.call(x,j).match.nativeDef==="'"+H.charAt(0)||S.getTest.call(x,j).match.nativeDef===" "&&(S.getTest.call(x,j+1).match.nativeDef===H.charAt(0)||S.getTest.call(x,j+1).match.static===!0&&S.getTest.call(x,j+1).match.nativeDef==="'"+H.charAt(0)));if(!Q&&ee>0&&!p.isMask.call(x,j,!1,!0)){var pe=p.seekNext.call(x,j);x.caretPos.begin<pe&&(x.caretPos={begin:pe})}return Q})(W,V)?C=d.EventHandlers.keypressEvent.call(x,U,!0,!1,R,ie+1):(C=d.EventHandlers.keypressEvent.call(x,U,!0,!1,R,x.caretPos.begin))&&(W=x.caretPos.begin+1,V=""),C?(C.pos!==void 0&&w.validPositions[C.pos]&&w.validPositions[C.pos].match.static===!0&&w.validPositions[C.pos].alternation===void 0&&(N.push(C.pos),x.isRTL||(C.forwardPosition=C.pos+1)),g.call(x,void 0,p.getBuffer.call(x),C.forwardPosition,U,!1),x.caretPos={begin:C.forwardPosition,end:C.forwardPosition},I=x.caretPos):w.validPositions[Z]===void 0&&O[Z]===S.getPlaceholder.call(x,Z)&&p.isMask.call(x,Z,!0)?x.caretPos.begin++:x.caretPos=I}})),N.length>0){var q,L,B=p.seekNext.call(x,-1,void 0,!1);if(!h.isComplete.call(x,p.getBuffer.call(x))&&N.length<=B||h.isComplete.call(x,p.getBuffer.call(x))&&N.length>0&&N.length!==B&&N[0]===0){for(var $=B;(q=N.shift())!==void 0;)if(q<$){var z=new D.Event("_checkval");if((L=w.validPositions[q]).generatedInput=!0,z.key=L.input,(C=d.EventHandlers.keypressEvent.call(x,z,!0,!1,R,$))&&C.pos!==void 0&&C.pos!==q&&w.validPositions[C.pos]&&w.validPositions[C.pos].match.static===!0)N.push(C.pos);else if(!C)break;$++}}}v&&g.call(x,T,p.getBuffer.call(x),C?C.forwardPosition:x.caretPos.begin,M||new D.Event("checkval"),M&&(M.type==="input"&&x.undoValue!==p.getBuffer.call(x).join("")||M.type==="paste")),_.skipOptionalPartCharacter=Y}function g(T,v,R,y,M){var C=T?T.inputmask:this,x=C.opts,w=C.dependencyLib;if(y&&typeof x.onBeforeWrite=="function"){var _=x.onBeforeWrite.call(C,y,v,R,x);if(_){if(_.refreshFromBuffer){var D=_.refreshFromBuffer;h.refreshFromBuffer.call(C,D===!0?D:D.start,D.end,_.buffer||v),v=p.getBuffer.call(C,!0)}R!==void 0&&(R=_.caret!==void 0?_.caret:R)}}if(T!==void 0&&(T.inputmask._valueSet(v.join("")),R===void 0||y!==void 0&&y.type==="blur"||p.caret.call(C,T,R,void 0,void 0,y!==void 0&&y.type==="keydown"&&(y.key===f.keys.Delete||y.key===f.keys.Backspace)),T.inputmask.writeBufferHook===void 0||T.inputmask.writeBufferHook(R),M===!0)){var O=w(T),V=T.inputmask._valueGet();T.inputmask.skipInputEvent=!0,O.trigger("input"),setTimeout((function(){V===p.getBufferTemplate.call(C).join("")?O.trigger("cleared"):h.isComplete.call(C,v)===!0&&O.trigger("complete")}),0)}}},2394:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=R(u(3976)),d=R(u(7392)),f=R(u(4963)),p=u(9716),h=R(u(9380)),S=u(7760),m=u(157),E=u(2391),b=u(8711),g=u(7215),T=u(4713);function v(w){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},v(w)}function R(w){return w&&w.__esModule?w:{default:w}}var y=h.default.document,M="_inputmask_opts";function C(w,_,D){if(!(this instanceof C))return new C(w,_,D);this.dependencyLib=f.default,this.el=void 0,this.events={},this.maskset=void 0,D!==!0&&(Object.prototype.toString.call(w)==="[object Object]"?_=w:(_=_||{},w&&(_.alias=w)),this.opts=f.default.extend(!0,{},this.defaults,_),this.noMasksCache=_&&_.definitions!==void 0,this.userOptions=_||{},x(this.opts.alias,_,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function x(w,_,D){var O=C.prototype.aliases[w];return O?(O.alias&&x(O.alias,void 0,D),f.default.extend(!0,D,O),f.default.extend(!0,D,_),!0):(D.mask===null&&(D.mask=w),!1)}C.prototype={dataAttribute:"data-inputmask",defaults:c.default,definitions:d.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(w){var _=this;return typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:Array.isArray(w)?w:[].slice.call(w)).forEach((function(D,O){var V=f.default.extend(!0,{},_.opts);if((function(Y,N,I,q){function L(U,ie){var j=q===""?U:q+"-"+U;(ie=ie!==void 0?ie:Y.getAttribute(j))!==null&&(typeof ie=="string"&&(U.indexOf("on")===0?ie=h.default[ie]:ie==="false"?ie=!1:ie==="true"&&(ie=!0)),I[U]=ie)}if(N.importDataAttributes===!0){var B,$,z,J,Z=Y.getAttribute(q);if(Z&&Z!==""&&(Z=Z.replace(/'/g,'"'),$=JSON.parse("{"+Z+"}")),$){for(J in z=void 0,$)if(J.toLowerCase()==="alias"){z=$[J];break}}for(B in L("alias",z),I.alias&&x(I.alias,I,N),N){if($){for(J in z=void 0,$)if(J.toLowerCase()===B.toLowerCase()){z=$[J];break}}L(B,z)}}return f.default.extend(!0,N,I),(Y.dir==="rtl"||N.rightAlign)&&(Y.style.textAlign="right"),(Y.dir==="rtl"||N.numericInput)&&(Y.dir="ltr",Y.removeAttribute("dir"),N.isRTL=!0),Object.keys(I).length})(D,V,f.default.extend(!0,{},_.userOptions),_.dataAttribute)){var W=(0,E.generateMaskSet)(V,_.noMasksCache);W!==void 0&&(D.inputmask!==void 0&&(D.inputmask.opts.autoUnmask=!0,D.inputmask.remove()),D.inputmask=new C(void 0,void 0,!0),D.inputmask.opts=V,D.inputmask.noMasksCache=_.noMasksCache,D.inputmask.userOptions=f.default.extend(!0,{},_.userOptions),D.inputmask.el=D,D.inputmask.$el=(0,f.default)(D),D.inputmask.maskset=W,f.default.data(D,M,_.userOptions),m.mask.call(D.inputmask))}})),w&&w[0]&&w[0].inputmask||this},option:function(w,_){return typeof w=="string"?this.opts[w]:v(w)==="object"?(f.default.extend(this.userOptions,w),this.el&&_!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(w){if(this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||w!==void 0){var _=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!1,!1,_),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,b.getBuffer.call(this),0,this.opts)}return S.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){f.default.data(this.el,M,null);var w=this.opts.autoUnmask?(0,S.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);w!==b.getBufferTemplate.call(this).join("")?this._valueSet(w,this.opts.autoUnmask):this._valueSet(""),p.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):y.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?b.getBufferTemplate.call(this).reverse():b.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),g.isComplete.call(this,b.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var w=T.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(_){return _.mask!==w||(w=_,!1)})),w}return this.maskset.metadata},isValid:function(w){if(this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),w){var _=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,_)}else w=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");for(var D=b.getBuffer.call(this),O=b.determineLastRequiredPosition.call(this),V=D.length-1;V>O&&!b.isMask.call(this,V);V--);return D.splice(O,V+1-O),g.isComplete.call(this,D)&&w===(this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join(""))},format:function(w,_){this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache);var D=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,D);var O=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");return _?{value:O,metadata:this.getmetadata()}:O},setValue:function(w){this.el&&(0,f.default)(this.el).trigger("setvalue",[w])},analyseMask:E.analyseMask},C.extendDefaults=function(w){f.default.extend(!0,C.prototype.defaults,w)},C.extendDefinitions=function(w){f.default.extend(!0,C.prototype.definitions,w)},C.extendAliases=function(w){f.default.extend(!0,C.prototype.aliases,w)},C.format=function(w,_,D){return C(_).format(w,D)},C.unmask=function(w,_){return C(_).unmaskedvalue(w)},C.isValid=function(w,_){return C(_).isValid(w)},C.remove=function(w){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(_){_.inputmask&&_.inputmask.remove()}))},C.setValue=function(w,_){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(D){D.inputmask?D.inputmask.setValue(_):(0,f.default)(D).trigger("setvalue",[_])}))},C.dependencyLib=f.default,h.default.Inputmask=C,l.default=C},5296:function(a,l,u){function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(y)}var d=T(u(9380)),f=T(u(2394));function p(y,M){for(var C=0;C<M.length;C++){var x=M[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,(w=x.key,_=void 0,_=(function(D,O){if(c(D)!=="object"||D===null)return D;var V=D[Symbol.toPrimitive];if(V!==void 0){var W=V.call(D,O);if(c(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(D)})(w,"string"),c(_)==="symbol"?_:String(_)),x)}var w,_}function h(y){var M=E();return function(){var C,x=g(y);if(M){var w=g(this).constructor;C=Reflect.construct(x,arguments,w)}else C=x.apply(this,arguments);return(function(_,D){if(D&&(c(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O})(_)})(this,C)}}function S(y){var M=typeof Map=="function"?new Map:void 0;return S=function(C){if(C===null||!(function(w){try{return Function.toString.call(w).indexOf("[native code]")!==-1}catch{return typeof w=="function"}})(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(M!==void 0){if(M.has(C))return M.get(C);M.set(C,x)}function x(){return m(C,arguments,g(this).constructor)}return x.prototype=Object.create(C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b(x,C)},S(y)}function m(y,M,C){return m=E()?Reflect.construct.bind():function(x,w,_){var D=[null];D.push.apply(D,w);var O=new(Function.bind.apply(x,D));return _&&b(O,_.prototype),O},m.apply(null,arguments)}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function b(y,M){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,x){return C.__proto__=x,C},b(y,M)}function g(y){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},g(y)}function T(y){return y&&y.__esModule?y:{default:y}}var v=d.default.document;if(v&&v.head&&v.head.attachShadow&&d.default.customElements&&d.default.customElements.get("input-mask")===void 0){var R=(function(y){(function(_,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(D&&D.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),D&&b(_,D)})(w,y);var M,C,x=h(w);function w(){var _;(function(Y,N){if(!(Y instanceof N))throw new TypeError("Cannot call a class as a function")})(this,w);var D=(_=x.call(this)).getAttributeNames(),O=_.attachShadow({mode:"closed"});for(var V in _.input=v.createElement("input"),_.input.type="text",O.appendChild(_.input),D)Object.prototype.hasOwnProperty.call(D,V)&&_.input.setAttribute(D[V],_.getAttribute(D[V]));var W=new f.default;return W.dataAttribute="",W.mask(_.input),_.input.inputmask.shadowRoot=O,_}return M=w,(C=[{key:"attributeChangedCallback",value:function(_,D,O){this.input.setAttribute(_,O)}},{key:"value",get:function(){return this.input.value},set:function(_){this.input.value=_}}])&&p(M.prototype,C),Object.defineProperty(M,"prototype",{writable:!1}),w})(S(HTMLElement));d.default.customElements.define("input-mask",R)}},2839:function(a,l){function u(m){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},u(m)}function c(m,E){return(function(b){if(Array.isArray(b))return b})(m)||(function(b,g){var T=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(T!=null){var v,R,y,M,C=[],x=!0,w=!1;try{if(y=(T=T.call(b)).next,g!==0)for(;!(x=(v=y.call(T)).done)&&(C.push(v.value),C.length!==g);x=!0);}catch(_){w=!0,R=_}finally{try{if(!x&&T.return!=null&&(M=T.return(),Object(M)!==M))return}finally{if(w)throw R}}return C}})(m,E)||(function(b,g){if(b){if(typeof b=="string")return d(b,g);var T=Object.prototype.toString.call(b).slice(8,-1);if(T==="Object"&&b.constructor&&(T=b.constructor.name),T==="Map"||T==="Set")return Array.from(b);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return d(b,g)}})(m,E)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function d(m,E){(E==null||E>m.length)&&(E=m.length);for(var b=0,g=new Array(E);b<E;b++)g[b]=m[b];return g}function f(m,E){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);E&&(g=g.filter((function(T){return Object.getOwnPropertyDescriptor(m,T).enumerable}))),b.push.apply(b,g)}return b}function p(m,E,b){return(E=(function(g){var T=(function(v,R){if(u(v)!=="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var M=y.call(v,R);if(u(M)!=="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(v)})(g,"string");return u(T)==="symbol"?T:String(T)})(E))in m?Object.defineProperty(m,E,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[E]=b,m}Object.defineProperty(l,"__esModule",{value:!0}),l.keys=l.keyCode=void 0,l.toKey=function(m,E){return S[m]||(E?String.fromCharCode(m):String.fromCharCode(m).toLowerCase())},l.toKeyCode=function(m){return h[m]};var h=l.keyCode=(function(m){for(var E=1;E<arguments.length;E++){var b=arguments[E]!=null?arguments[E]:{};E%2?f(Object(b),!0).forEach((function(g){p(m,g,b[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):f(Object(b)).forEach((function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(b,g))}))}return m})({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),S=Object.entries(h).reduce((function(m,E){var b=c(E,2),g=b[0],T=b[1];return m[T]=m[T]===void 0?g:m[T],m}),{});l.keys=Object.entries(h).reduce((function(m,E){var b=c(E,2),g=b[0];return b[1],m[g]=g==="Space"?" ":g,m}),{})},2391:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.analyseMask=function(E,b,g){var T,v,R,y,M,C,x=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,w=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,_=!1,D=new p.default,O=[],V=[],W=!1;function Y(ee,Q,pe){pe=pe!==void 0?pe:ee.matches.length;var ue=ee.matches[pe-1];if(b){if(Q.indexOf("[")===0||_&&/\\d|\\s|\\w|\\p/i.test(Q)||Q==="."){var ye=g.casing?"i":"";/\\p\{.*}/i.test(Q)&&(ye+="u"),ee.matches.splice(pe++,0,{fn:new RegExp(Q,ye),static:!1,optionality:!1,newBlockMarker:ue===void 0?"master":ue.def!==Q,casing:null,def:Q,placeholder:h(g.placeholder)==="object"?g.placeholder[D.matches.length]:void 0,nativeDef:Q})}else _&&(Q=Q[Q.length-1]),Q.split("").forEach((function(Re,Pe){ue=ee.matches[pe-1],ee.matches.splice(pe++,0,{fn:/[a-z]/i.test(g.staticDefinitionSymbol||Re)?new RegExp("["+(g.staticDefinitionSymbol||Re)+"]",g.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:ue===void 0?"master":ue.def!==Re&&ue.static!==!0,casing:null,def:g.staticDefinitionSymbol||Re,placeholder:g.staticDefinitionSymbol!==void 0?Re:h(g.placeholder)==="object"?g.placeholder[D.matches.length]:void 0,nativeDef:(_?"'":"")+Re})}));_=!1}else{var we=g.definitions&&g.definitions[Q]||g.usePrototypeDefinitions&&f.default.prototype.definitions[Q];we&&!_?ee.matches.splice(pe++,0,{fn:we.validator?typeof we.validator=="string"?new RegExp(we.validator,g.casing?"i":""):new function(){this.test=we.validator}:/./,static:we.static||!1,optionality:we.optional||!1,defOptionality:we.optional||!1,newBlockMarker:ue===void 0||we.optional?"master":ue.def!==(we.definitionSymbol||Q),casing:we.casing,def:we.definitionSymbol||Q,placeholder:we.placeholder,nativeDef:Q,generated:we.generated}):(ee.matches.splice(pe++,0,{fn:/[a-z]/i.test(g.staticDefinitionSymbol||Q)?new RegExp("["+(g.staticDefinitionSymbol||Q)+"]",g.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:ue===void 0?"master":ue.def!==Q&&ue.static!==!0,casing:null,def:g.staticDefinitionSymbol||Q,placeholder:g.staticDefinitionSymbol!==void 0?Q:void 0,nativeDef:(_?"'":"")+Q}),_=!1)}}function N(){if(O.length>0){if(Y(y=O[O.length-1],v),y.isAlternator){M=O.pop();for(var ee=0;ee<M.matches.length;ee++)M.matches[ee].isGroup&&(M.matches[ee].isGroup=!1);O.length>0?(y=O[O.length-1]).matches.push(M):D.matches.push(M)}}else Y(D,v)}function I(ee){var Q=new p.default(!0);return Q.openGroup=!1,Q.matches=ee,Q}function q(){if((R=O.pop()).openGroup=!1,R!==void 0)if(O.length>0){if((y=O[O.length-1]).matches.push(R),y.isAlternator){M=O.pop();for(var ee=0;ee<M.matches.length;ee++)M.matches[ee].isGroup=!1,M.matches[ee].alternatorGroup=!1;O.length>0?(y=O[O.length-1]).matches.push(M):D.matches.push(M)}}else D.matches.push(R);else N()}function L(ee){var Q=ee.pop();return Q.isQuantifier&&(Q=I([ee.pop(),Q])),Q}for(b&&(g.optionalmarker[0]=void 0,g.optionalmarker[1]=void 0);T=b?w.exec(E):x.exec(E);){if(v=T[0],b){switch(v.charAt(0)){case"?":v="{0,1}";break;case"+":case"*":v="{"+v+"}";break;case"|":if(O.length===0){var B=I(D.matches);B.openGroup=!0,O.push(B),D.matches=[],W=!0}}switch(v){case"\\d":v="[0-9]";break;case"\\p":v+=w.exec(E)[0],v+=w.exec(E)[0]}}if(_)N();else switch(v.charAt(0)){case"$":case"^":b||N();break;case g.escapeChar:_=!0,b&&N();break;case g.optionalmarker[1]:case g.groupmarker[1]:q();break;case g.optionalmarker[0]:O.push(new p.default(!1,!0));break;case g.groupmarker[0]:O.push(new p.default(!0));break;case g.quantifiermarker[0]:var $=new p.default(!1,!1,!0),z=(v=v.replace(/[{}?]/g,"")).split("|"),J=z[0].split(","),Z=isNaN(J[0])?J[0]:parseInt(J[0]),U=J.length===1?Z:isNaN(J[1])?J[1]:parseInt(J[1]),ie=isNaN(z[1])?z[1]:parseInt(z[1]);Z!=="*"&&Z!=="+"||(Z=U==="*"?0:1),$.quantifier={min:Z,max:U,jit:ie};var j=O.length>0?O[O.length-1].matches:D.matches;(T=j.pop()).isGroup||(T=I([T])),j.push(T),j.push($);break;case g.alternatormarker:if(O.length>0){var H=(y=O[O.length-1]).matches[y.matches.length-1];C=y.openGroup&&(H.matches===void 0||H.isGroup===!1&&H.isAlternator===!1)?O.pop():L(y.matches)}else C=L(D.matches);if(C.isAlternator)O.push(C);else if(C.alternatorGroup?(M=O.pop(),C.alternatorGroup=!1):M=new p.default(!1,!1,!1,!0),M.matches.push(C),O.push(M),C.openGroup){C.openGroup=!1;var re=new p.default(!0);re.alternatorGroup=!0,O.push(re)}break;default:N()}}for(W&&q();O.length>0;)R=O.pop(),D.matches.push(R);return D.matches.length>0&&((function ee(Q){Q&&Q.matches&&Q.matches.forEach((function(pe,ue){var ye=Q.matches[ue+1];(ye===void 0||ye.matches===void 0||ye.isQuantifier===!1)&&pe&&pe.isGroup&&(pe.isGroup=!1,b||(Y(pe,g.groupmarker[0],0),pe.openGroup!==!0&&Y(pe,g.groupmarker[1]))),ee(pe)}))})(D),V.push(D)),(g.numericInput||g.isRTL)&&(function ee(Q){for(var pe in Q.matches=Q.matches.reverse(),Q.matches)if(Object.prototype.hasOwnProperty.call(Q.matches,pe)){var ue=parseInt(pe);if(Q.matches[pe].isQuantifier&&Q.matches[ue+1]&&Q.matches[ue+1].isGroup){var ye=Q.matches[pe];Q.matches.splice(pe,1),Q.matches.splice(ue+1,0,ye)}Q.matches[pe].matches!==void 0?Q.matches[pe]=ee(Q.matches[pe]):Q.matches[pe]=((we=Q.matches[pe])===g.optionalmarker[0]?we=g.optionalmarker[1]:we===g.optionalmarker[1]?we=g.optionalmarker[0]:we===g.groupmarker[0]?we=g.groupmarker[1]:we===g.groupmarker[1]&&(we=g.groupmarker[0]),we)}var we;return Q})(V[0]),V},l.generateMaskSet=function(E,b){var g;function T(y,M){var C=M.repeat,x=M.groupmarker,w=M.quantifiermarker,_=M.keepStatic;if(C>0||C==="*"||C==="+"){var D=C==="*"?0:C==="+"?1:C;if(D!=C)y=x[0]+y+x[1]+w[0]+D+","+C+w[1];else for(var O=y,V=1;V<D;V++)y+=O}if(_===!0){var W=y.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));W&&W.forEach((function(Y,N){var I=(function(B,$){return(function(z){if(Array.isArray(z))return z})(B)||(function(z,J){var Z=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(Z!=null){var U,ie,j,H,re=[],ee=!0,Q=!1;try{if(j=(Z=Z.call(z)).next,J!==0)for(;!(ee=(U=j.call(Z)).done)&&(re.push(U.value),re.length!==J);ee=!0);}catch(pe){Q=!0,ie=pe}finally{try{if(!ee&&Z.return!=null&&(H=Z.return(),Object(H)!==H))return}finally{if(Q)throw ie}}return re}})(B,$)||(function(z,J){if(z){if(typeof z=="string")return S(z,J);var Z=Object.prototype.toString.call(z).slice(8,-1);if(Z==="Object"&&z.constructor&&(Z=z.constructor.name),Z==="Map"||Z==="Set")return Array.from(z);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return S(z,J)}})(B,$)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(Y.split("["),2),q=I[0],L=I[1];L=L.replace("]",""),y=y.replace(new RegExp("".concat((0,d.default)(q),"\\[").concat((0,d.default)(L),"\\]")),q.charAt(0)===L.charAt(0)?"(".concat(q,"|").concat(q).concat(L,")"):"".concat(q,"[").concat(L,"]"))}))}return y}function v(y,M,C){var x,w,_=!1;return y!==null&&y!==""||((_=C.regex!==null)?y=(y=C.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(_=!0,y=".*")),y.length===1&&C.greedy===!1&&C.repeat!==0&&(C.placeholder=""),y=T(y,C),w=_?"regex_"+C.regex:C.numericInput?y.split("").reverse().join(""):y,C.keepStatic!==null&&(w="ks_"+C.keepStatic+w),h(C.placeholder)==="object"&&(w="ph_"+JSON.stringify(C.placeholder)+w),f.default.prototype.masksCache[w]===void 0||b===!0?(x={mask:y,maskToken:f.default.prototype.analyseMask(y,_,C),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:M,maskLength:void 0,jitOffset:{}},b!==!0&&(f.default.prototype.masksCache[w]=x,x=c.default.extend(!0,{},f.default.prototype.masksCache[w]))):x=c.default.extend(!0,{},f.default.prototype.masksCache[w]),x}if(typeof E.mask=="function"&&(E.mask=E.mask(E)),Array.isArray(E.mask)){if(E.mask.length>1){E.keepStatic===null&&(E.keepStatic=!0);var R=E.groupmarker[0];return(E.isRTL?E.mask.reverse():E.mask).forEach((function(y){R.length>1&&(R+=E.alternatormarker),y.mask!==void 0&&typeof y.mask!="function"?R+=y.mask:R+=y})),v(R+=E.groupmarker[1],E.mask,E)}E.mask=E.mask.pop()}return g=E.mask&&E.mask.mask!==void 0&&typeof E.mask.mask!="function"?v(E.mask.mask,E.mask,E):v(E.mask,E.mask,E),E.keepStatic===null&&(E.keepStatic=!1),g};var c=m(u(4963)),d=m(u(7184)),f=m(u(2394)),p=m(u(9695));function h(E){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},h(E)}function S(E,b){(b==null||b>E.length)&&(b=E.length);for(var g=0,T=new Array(b);g<b;g++)T[g]=E[g];return T}function m(E){return E&&E.__esModule?E:{default:E}}},157:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mask=function(){var m=this,E=this.opts,b=this.el,g=this.dependencyLib;f.EventRuler.off(b);var T=(function(y,M){var C=y.getAttribute("type"),x=y.tagName.toLowerCase()==="input"&&M.supportsInputType.includes(C)||y.isContentEditable||y.tagName.toLowerCase()==="textarea";if(!x)if(y.tagName.toLowerCase()==="input"){var w=document.createElement("input");w.setAttribute("type",C),x=w.type==="text",w=null}else x="partial";return x!==!1?(function(_){var D,O;function V(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():h.getLastValidPosition.call(m)!==-1||M.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&M.clearMaskOnLostFocus?(m.isRTL?p.clearOptionalTail.call(m,h.getBuffer.call(m).slice()).reverse():p.clearOptionalTail.call(m,h.getBuffer.call(m).slice())).join(""):D.call(this):"":D.call(this)}function W(N){O.call(this,N),this.inputmask&&(0,p.applyInputValue)(this,N)}if(!_.inputmask.__valueGet){if(M.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var Y=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(_),"value"):void 0;Y&&Y.get&&Y.set?(D=Y.get,O=Y.set,Object.defineProperty(_,"value",{get:V,set:W,configurable:!0})):_.tagName.toLowerCase()!=="input"&&(D=function(){return this.textContent},O=function(N){this.textContent=N},Object.defineProperty(_,"value",{get:V,set:W,configurable:!0}))}else document.__lookupGetter__&&_.__lookupGetter__("value")&&(D=_.__lookupGetter__("value"),O=_.__lookupSetter__("value"),_.__defineGetter__("value",V),_.__defineSetter__("value",W));_.inputmask.__valueGet=D,_.inputmask.__valueSet=O}_.inputmask._valueGet=function(N){return m.isRTL&&N!==!0?D.call(this.el).split("").reverse().join(""):D.call(this.el)},_.inputmask._valueSet=function(N,I){O.call(this.el,N==null?"":I!==!0&&m.isRTL?N.split("").reverse().join(""):N)},D===void 0&&(D=function(){return this.value},O=function(N){this.value=N},(function(N){if(g.valHooks&&(g.valHooks[N]===void 0||g.valHooks[N].inputmaskpatch!==!0)){var I=g.valHooks[N]&&g.valHooks[N].get?g.valHooks[N].get:function(L){return L.value},q=g.valHooks[N]&&g.valHooks[N].set?g.valHooks[N].set:function(L,B){return L.value=B,L};g.valHooks[N]={get:function(L){if(L.inputmask){if(L.inputmask.opts.autoUnmask)return L.inputmask.unmaskedvalue();var B=I(L);return h.getLastValidPosition.call(m,void 0,void 0,L.inputmask.maskset.validPositions)!==-1||M.nullable!==!0?B:""}return I(L)},set:function(L,B){var $=q(L,B);return L.inputmask&&(0,p.applyInputValue)(L,B),$},inputmaskpatch:!0}}})(_.type),(function(N){f.EventRuler.on(N,"mouseenter",(function(){var I=this,q=I.inputmask._valueGet(!0);q!=(I.inputmask.isRTL?h.getBuffer.call(I.inputmask).slice().reverse():h.getBuffer.call(I.inputmask)).join("")&&(0,p.applyInputValue)(I,q)}))})(_))}})(y):y.inputmask=void 0,x})(b,E);if(T!==!1){m.originalPlaceholder=b.placeholder,m.maxLength=b!==void 0?b.maxLength:void 0,m.maxLength===-1&&(m.maxLength=void 0),"inputMode"in b&&b.getAttribute("inputmode")===null&&(b.inputMode=E.inputmode,b.setAttribute("inputmode",E.inputmode)),T===!0&&(E.showMaskOnFocus=E.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(b.autocomplete)===-1,c.iphone&&(E.insertModeVisual=!1,b.setAttribute("autocorrect","off")),f.EventRuler.on(b,"submit",d.EventHandlers.submitEvent),f.EventRuler.on(b,"reset",d.EventHandlers.resetEvent),f.EventRuler.on(b,"blur",d.EventHandlers.blurEvent),f.EventRuler.on(b,"focus",d.EventHandlers.focusEvent),f.EventRuler.on(b,"invalid",d.EventHandlers.invalidEvent),f.EventRuler.on(b,"click",d.EventHandlers.clickEvent),f.EventRuler.on(b,"mouseleave",d.EventHandlers.mouseleaveEvent),f.EventRuler.on(b,"mouseenter",d.EventHandlers.mouseenterEvent),f.EventRuler.on(b,"paste",d.EventHandlers.pasteEvent),f.EventRuler.on(b,"cut",d.EventHandlers.cutEvent),f.EventRuler.on(b,"complete",E.oncomplete),f.EventRuler.on(b,"incomplete",E.onincomplete),f.EventRuler.on(b,"cleared",E.oncleared),E.inputEventOnly!==!0&&f.EventRuler.on(b,"keydown",d.EventHandlers.keyEvent),(c.mobile||E.inputEventOnly)&&b.removeAttribute("maxLength"),f.EventRuler.on(b,"input",d.EventHandlers.inputFallBackEvent)),f.EventRuler.on(b,"setvalue",d.EventHandlers.setValueEvent),m.applyMaskHook===void 0||m.applyMaskHook(),h.getBufferTemplate.call(m).join(""),m.undoValue=m._valueGet(!0);var v=(b.inputmask.shadowRoot||b.ownerDocument).activeElement;if(b.inputmask._valueGet(!0)!==""||E.clearMaskOnLostFocus===!1||v===b){(0,p.applyInputValue)(b,b.inputmask._valueGet(!0),E);var R=h.getBuffer.call(m).slice();S.isComplete.call(m,R)===!1&&E.clearIncomplete&&h.resetMaskSet.call(m,!1),E.clearMaskOnLostFocus&&v!==b&&(h.getLastValidPosition.call(m)===-1?R=[]:p.clearOptionalTail.call(m,R)),(E.clearMaskOnLostFocus===!1||E.showMaskOnFocus&&v===b||b.inputmask._valueGet(!0)!=="")&&(0,p.writeBuffer)(b,R),v===b&&h.caret.call(m,b,h.seekNext.call(m,h.getLastValidPosition.call(m)))}}};var c=u(9845),d=u(6030),f=u(9716),p=u(7760),h=u(8711),S=u(7215)},9695:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d,f){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=c||!1,this.isQuantifier=d||!1,this.isAlternator=f||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(a,l){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),c=u.length>>>0;if(c===0)return!1;for(var d=0|l,f=Math.max(d>=0?d:c-Math.abs(d),0);f<c;){if(u[f]===a)return!0;f++}return!1}})},9302:function(){var a=Function.bind.call(Function.call,Array.prototype.reduce),l=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),c=Object.keys;Object.entries||(Object.entries=function(d){return a(c(d),(function(f,p){return u(f,typeof p=="string"&&l(d,p)?[[p,d[p]]]:[])}),[])})},7149:function(){function a(l){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},a(l)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=a("test".__proto__)==="object"?function(l){return l.__proto__}:function(l){return l.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(a,l){return typeof l!="number"&&(l=0),!(l+a.length>this.length)&&this.indexOf(a,l)!==-1})},8711:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.caret=function(g,T,v,R,y){var M,C=this,x=this.opts;if(T===void 0)return"selectionStart"in g&&"selectionEnd"in g?(T=g.selectionStart,v=g.selectionEnd):d.default.getSelection?(M=d.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==g&&M.commonAncestorContainer!==g||(T=M.startOffset,v=M.endOffset):document.selection&&document.selection.createRange&&(v=(T=0-(M=document.selection.createRange()).duplicate().moveStart("character",-g.inputmask._valueGet().length))+M.text.length),{begin:R?T:b.call(C,T),end:R?v:b.call(C,v)};if(Array.isArray(T)&&(v=C.isRTL?T[0]:T[1],T=C.isRTL?T[1]:T[0]),T.begin!==void 0&&(v=C.isRTL?T.begin:T.end,T=C.isRTL?T.end:T.begin),typeof T=="number"){T=R?T:b.call(C,T),v=typeof(v=R?v:b.call(C,v))=="number"?v:T;var w=parseInt(((g.ownerDocument.defaultView||d.default).getComputedStyle?(g.ownerDocument.defaultView||d.default).getComputedStyle(g,null):g.currentStyle).fontSize)*v;if(g.scrollLeft=w>g.scrollWidth?w:0,g.inputmask.caretPos={begin:T,end:v},x.insertModeVisual&&x.insertMode===!1&&T===v&&(y||v++),g===(g.inputmask.shadowRoot||g.ownerDocument).activeElement){if("setSelectionRange"in g)g.setSelectionRange(T,v);else if(d.default.getSelection){if(M=document.createRange(),g.firstChild===void 0||g.firstChild===null){var _=document.createTextNode("");g.appendChild(_)}M.setStart(g.firstChild,T<g.inputmask._valueGet().length?T:g.inputmask._valueGet().length),M.setEnd(g.firstChild,v<g.inputmask._valueGet().length?v:g.inputmask._valueGet().length),M.collapse(!0);var D=d.default.getSelection();D.removeAllRanges(),D.addRange(M)}else g.createTextRange&&((M=g.createTextRange()).collapse(!0),M.moveEnd("character",v),M.moveStart("character",T),M.select());g.inputmask.caretHook===void 0||g.inputmask.caretHook.call(C,{begin:T,end:v})}}},l.determineLastRequiredPosition=function(g){var T,v,R=this,y=R.maskset,M=R.dependencyLib,C=S.call(R),x={},w=y.validPositions[C],_=p.getMaskTemplate.call(R,!0,S.call(R),!0,!0),D=_.length,O=w!==void 0?w.locator.slice():void 0;for(T=C+1;T<_.length;T++)O=(v=p.getTestTemplate.call(R,T,O,T-1)).locator.slice(),x[T]=M.extend(!0,{},v);var V=w&&w.alternation!==void 0?w.locator[w.alternation]:void 0;for(T=D-1;T>C&&((v=x[T]).match.optionality||v.match.optionalQuantifier&&v.match.newBlockMarker||V&&(V!==x[T].locator[w.alternation]&&v.match.static!==!0||v.match.static===!0&&v.locator[w.alternation]&&f.checkAlternationMatch.call(R,v.locator[w.alternation].toString().split(","),V.toString().split(","))&&p.getTests.call(R,T)[0].def!==""))&&_[T]===p.getPlaceholder.call(R,T,v.match);T--)D--;return g?{l:D,def:x[D]?x[D].match:void 0}:D},l.determineNewCaretPosition=function(g,T,v){var R,y,M,C=this,x=C.maskset,w=C.opts;if(T&&(C.isRTL?g.end=g.begin:g.begin=g.end),g.begin===g.end){switch(v=v||w.positionCaretOnClick){case"none":break;case"select":g={begin:0,end:h.call(C).length};break;case"ignore":g.end=g.begin=E.call(C,S.call(C));break;case"radixFocus":if(C.clicked>1&&x.validPositions.length===0)break;if((function(Y){if(w.radixPoint!==""&&w.digits!==0){var N=x.validPositions;if(N[Y]===void 0||N[Y].input===void 0){if(Y<E.call(C,-1))return!0;var I=h.call(C).indexOf(w.radixPoint);if(I!==-1){for(var q=0,L=N.length;q<L;q++)if(N[q]&&I<q&&N[q].input!==p.getPlaceholder.call(C,q))return!1;return!0}}}return!1})(g.begin)){var _=h.call(C).join("").indexOf(w.radixPoint);g.end=g.begin=w.numericInput?E.call(C,_):_;break}default:if(R=g.begin,y=S.call(C,R,!0),R<=(M=E.call(C,y!==-1||m.call(C,0)?y:-1)))g.end=g.begin=m.call(C,R,!1,!0)?R:E.call(C,R);else{var D=x.validPositions[y],O=p.getTestTemplate.call(C,M,D?D.match.locator:void 0,D),V=p.getPlaceholder.call(C,M,O.match);if(V!==""&&h.call(C)[M]!==V&&O.match.optionalQuantifier!==!0&&O.match.newBlockMarker!==!0||!m.call(C,M,w.keepStatic,!0)&&O.match.def===V){var W=E.call(C,M);(R>=W||R===M)&&(M=W)}g.end=g.begin=M}}return g}},l.getBuffer=h,l.getBufferTemplate=function(){var g=this.maskset;return g._buffer===void 0&&(g._buffer=p.getMaskTemplate.call(this,!1,1),g.buffer===void 0&&(g.buffer=g._buffer.slice())),g._buffer},l.getLastValidPosition=S,l.isMask=m,l.resetMaskSet=function(g){var T=this.maskset;T.buffer=void 0,g!==!0&&(T.validPositions=[],T.p=0),g===!1&&(T.tests={},T.jitOffset={})},l.seekNext=E,l.seekPrevious=function(g,T){var v=this,R=g-1;if(g<=0)return 0;for(;R>0&&(T===!0&&(p.getTest.call(v,R).match.newBlockMarker!==!0||!m.call(v,R,void 0,!0))||T!==!0&&!m.call(v,R,void 0,!0));)R--;return R},l.translatePosition=b;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=u(7215),p=u(4713);function h(g){var T=this,v=T.maskset;return v.buffer!==void 0&&g!==!0||(v.buffer=p.getMaskTemplate.call(T,!0,S.call(T),!0),v._buffer===void 0&&(v._buffer=v.buffer.slice())),v.buffer}function S(g,T,v){var R=this.maskset,y=-1,M=-1,C=v||R.validPositions;g===void 0&&(g=-1);for(var x=0,w=C.length;x<w;x++)C[x]&&(T||C[x].generatedInput!==!0)&&(x<=g&&(y=x),x>=g&&(M=x));return y===-1||y===g?M:M===-1||g-y<M-g?y:M}function m(g,T,v){var R=this,y=this.maskset,M=p.getTestTemplate.call(R,g).match;if(M.def===""&&(M=p.getTest.call(R,g).match),M.static!==!0)return M.fn;if(v===!0&&y.validPositions[g]!==void 0&&y.validPositions[g].generatedInput!==!0)return!0;if(T!==!0&&g>-1){if(v){var C=p.getTests.call(R,g);return C.length>1+(C[C.length-1].match.def===""?1:0)}var x=p.determineTestTemplate.call(R,g,p.getTests.call(R,g)),w=p.getPlaceholder.call(R,g,x.match);return x.match.def!==w}return!1}function E(g,T,v){var R=this;v===void 0&&(v=!0);for(var y=g+1;p.getTest.call(R,y).match.def!==""&&(T===!0&&(p.getTest.call(R,y).match.newBlockMarker!==!0||!m.call(R,y,void 0,!0))||T!==!0&&!m.call(R,y,void 0,v));)y++;return y}function b(g){var T=this.opts,v=this.el;return!this.isRTL||typeof g!="number"||T.greedy&&T.placeholder===""||!v||(g=this._valueGet().length-g)<0&&(g=0),g}},4713:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.determineTestTemplate=b,l.getDecisionTaker=S,l.getMaskTemplate=function(R,y,M,C,x){var w=this,_=this.opts,D=this.maskset,O=_.greedy;x&&_.greedy&&(_.greedy=!1,w.maskset.tests={}),y=y||0;var V,W,Y,N,I=[],q=0;do{if(R===!0&&D.validPositions[q])W=(Y=x&&D.validPositions[q].match.optionality&&D.validPositions[q+1]===void 0&&(D.validPositions[q].generatedInput===!0||D.validPositions[q].input==_.skipOptionalPartCharacter&&q>0)?b.call(w,q,v.call(w,q,V,q-1)):D.validPositions[q]).match,V=Y.locator.slice(),I.push(M===!0?Y.input:M===!1?W.nativeDef:m.call(w,q,W));else{W=(Y=E.call(w,q,V,q-1)).match,V=Y.locator.slice();var L=C!==!0&&(_.jitMasking!==!1?_.jitMasking:W.jit);(N=(N||D.validPositions[q-1])&&W.static&&W.def!==_.groupSeparator&&W.fn===null)||L===!1||L===void 0||typeof L=="number"&&isFinite(L)&&L>q?I.push(M===!1?W.nativeDef:m.call(w,I.length,W)):N=!1}q++}while(W.static!==!0||W.def!==""||y>q);return I[I.length-1]===""&&I.pop(),M===!1&&D.maskLength!==void 0||(D.maskLength=q-1),_.greedy=O,I},l.getPlaceholder=m,l.getTest=g,l.getTestTemplate=E,l.getTests=v,l.isSubsetOf=T;var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711);function p(R){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},p(R)}function h(R,y){var M=(R.alternation!=null?R.mloc[S(R)]:R.locator).join("");if(M!=="")for(M=M.split(":")[0];M.length<y;)M+="0";return M}function S(R){var y=R.locator[R.alternation];return typeof y=="string"&&y.length>0&&(y=y.split(",")[0]),y!==void 0?y.toString():""}function m(R,y,M){var C=this,x=this.opts,w=this.maskset;if((y=y||g.call(C,R).match).placeholder!==void 0||M===!0){if(y.placeholder!==""&&y.static===!0&&y.generated!==!0){var _=f.getLastValidPosition.call(C,R),D=f.seekNext.call(C,_);return(M?R<=D:R<D)?x.staticDefinitionSymbol&&y.static?y.nativeDef:y.def:typeof y.placeholder=="function"?y.placeholder(x):y.placeholder}return typeof y.placeholder=="function"?y.placeholder(x):y.placeholder}if(y.static===!0){if(R>-1&&w.validPositions[R]===void 0){var O,V=v.call(C,R),W=[];if(typeof x.placeholder=="string"&&V.length>1+(V[V.length-1].match.def===""?1:0)){for(var Y=0;Y<V.length;Y++)if(V[Y].match.def!==""&&V[Y].match.optionality!==!0&&V[Y].match.optionalQuantifier!==!0&&(V[Y].match.static===!0||O===void 0||V[Y].match.fn.test(O.match.def,w,R,!0,x)!==!1)&&(W.push(V[Y]),V[Y].match.static===!0&&(O=V[Y]),W.length>1&&/[0-9a-bA-Z]/.test(W[0].match.def)))return x.placeholder.charAt(R%x.placeholder.length)}}return y.def}return p(x.placeholder)==="object"?y.def:x.placeholder.charAt(R%x.placeholder.length)}function E(R,y,M){return this.maskset.validPositions[R]||b.call(this,R,v.call(this,R,y&&y.slice(),M))}function b(R,y){var M=this.opts,C=0,x=(function(N,I){var q=0,L=!1;return I.forEach((function(B){B.match.optionality&&(q!==0&&q!==B.match.optionality&&(L=!0),(q===0||q>B.match.optionality)&&(q=B.match.optionality))})),q&&(N==0||I.length==1?q=0:L||(q=0)),q})(R,y);R=R>0?R-1:0;var w,_,D,O=h(g.call(this,R));M.greedy&&y.length>1&&y[y.length-1].match.def===""&&(C=1);for(var V=0;V<y.length-C;V++){var W=y[V];w=h(W,O.length);var Y=Math.abs(w-O);(W.unMatchedAlternationStopped!==!0||y.filter((function(N){return N.unMatchedAlternationStopped!==!0})).length<=1)&&(_===void 0||w!==""&&Y<_||D&&!M.greedy&&D.match.optionality&&D.match.optionality-x>0&&D.match.newBlockMarker==="master"&&(!W.match.optionality||W.match.optionality-x<1||!W.match.newBlockMarker)||D&&!M.greedy&&D.match.optionalQuantifier&&!W.match.optionalQuantifier)&&(_=Y,D=W)}return D}function g(R,y){var M=this.maskset;return M.validPositions[R]?M.validPositions[R]:(y||v.call(this,R))[0]}function T(R,y,M){function C(x){for(var w,_=[],D=-1,O=0,V=x.length;O<V;O++)if(x.charAt(O)==="-")for(w=x.charCodeAt(O+1);++D<w;)_.push(String.fromCharCode(D));else D=x.charCodeAt(O),_.push(x.charAt(O));return _.join("")}return R.match.def===y.match.nativeDef||!(!(M.regex||R.match.fn instanceof RegExp&&y.match.fn instanceof RegExp)||R.match.static===!0||y.match.static===!0)&&(y.match.fn.source==="."||C(y.match.fn.source.replace(/[[\]/]/g,"")).indexOf(C(R.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function v(R,y,M){var C,x,w=this,_=this.dependencyLib,D=this.maskset,O=this.opts,V=this.el,W=D.maskToken,Y=y?M:0,N=y?y.slice():[0],I=[],q=!1,L=y?y.join(""):"",B=!1;function $(ie,j,H,re){function ee(ue,ye,we){function Re(X,te){var me=te.matches.indexOf(X)===0;return me||te.matches.every((function(de,Me){return de.isQuantifier===!0?me=Re(X,te.matches[Me-1]):Object.prototype.hasOwnProperty.call(de,"matches")&&(me=Re(X,de)),!me})),me}function Pe(X,te,me){var de,Me;if((D.tests[X]||D.validPositions[X])&&(D.validPositions[X]?[D.validPositions[X]]:D.tests[X]).every((function(Ae,Ie){if(Ae.mloc[te])return de=Ae,!1;var ot=me!==void 0?me:Ae.alternation,he=Ae.locator[ot]!==void 0?Ae.locator[ot].toString().indexOf(te):-1;return(Me===void 0||he<Me)&&he!==-1&&(de=Ae,Me=he),!0})),de){var Fe=de.locator[de.alternation],De=de.mloc[te]||de.mloc[Fe]||de.locator;return De[De.length-1].toString().indexOf(":")!==-1&&De.pop(),De.slice((me!==void 0?me:de.alternation)+1)}return me!==void 0?Pe(X,te):void 0}function le(X,te){return X.match.static===!0&&te.match.static!==!0&&te.match.fn.test(X.match.def,D,R,!1,O,!1)}function Ve(X,te){var me=X.alternation,de=te===void 0||me<=te.alternation&&X.locator[me].toString().indexOf(te.locator[me])===-1;if(!de&&me>te.alternation){for(var Me=0;Me<me;Me++)if(X.locator[Me]!==te.locator[Me]){me=Me,de=!0;break}}return!!de&&(function(Fe){X.mloc=X.mloc||{};var De=X.locator[Fe];if(De!==void 0){if(typeof De=="string"&&(De=De.split(",")[0]),X.mloc[De]===void 0&&(X.mloc[De]=X.locator.slice(),X.mloc[De].push(":".concat(X.alternation))),te!==void 0){for(var Ae in te.mloc)typeof Ae=="string"&&(Ae=parseInt(Ae.split(",")[0])),X.mloc[Ae+0]=te.mloc[Ae];X.locator[Fe]=Object.keys(X.mloc).join(",")}return X.alternation>Fe&&(X.alternation=Fe),!0}return X.alternation=void 0,!1})(me)}function ae(X,te){if(X.locator.length!==te.locator.length)return!1;for(var me=X.alternation+1;me<X.locator.length;me++)if(X.locator[me]!==te.locator[me])return!1;return!0}if(Y>R+O._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(D.mask));if(Y===R&&ue.matches===void 0){if(I.push({match:ue,locator:ye.reverse(),cd:L,mloc:{}}),!ue.optionality||we!==void 0||!(O.definitions&&O.definitions[ue.nativeDef]&&O.definitions[ue.nativeDef].optional||d.default.prototype.definitions[ue.nativeDef]&&d.default.prototype.definitions[ue.nativeDef].optional))return!0;q=!0,Y=R}else if(ue.matches!==void 0){if(ue.isGroup&&we!==ue)return(function(){if(ue=ee(ie.matches[ie.matches.indexOf(ue)+1],ye,we))return!0})();if(ue.isOptional)return(function(){var X=ue,te=I.length;if(ue=$(ue,j,ye,we),I.length>0){if(I.forEach((function(me,de){de>=te&&(me.match.optionality=me.match.optionality?me.match.optionality+1:1)})),C=I[I.length-1].match,we!==void 0||!Re(C,X))return ue;q=!0,Y=R}})();if(ue.isAlternator)return(function(){function X(P){for(var k,A=P.matches[0].matches?P.matches[0].matches.length:1,F=0;F<P.matches.length&&A===(k=P.matches[F].matches?P.matches[F].matches.length:1);F++);return A!==k}w.hasAlternator=!0;var te,me=ue,de=[],Me=I.slice(),Fe=ye.length,De=j.length>0?j.shift():-1;if(De===-1||typeof De=="string"){var Ae,Ie=Y,ot=j.slice(),he=[];if(typeof De=="string")he=De.split(",");else for(Ae=0;Ae<me.matches.length;Ae++)he.push(Ae.toString());if(D.excludes[R]!==void 0){for(var ke=he.slice(),Be=0,Se=D.excludes[R].length;Be<Se;Be++){var K=D.excludes[R][Be].toString().split(":");ye.length==K[1]&&he.splice(he.indexOf(K[0]),1)}he.length===0&&(delete D.excludes[R],he=ke)}(O.keepStatic===!0||isFinite(parseInt(O.keepStatic))&&Ie>=O.keepStatic)&&(he=he.slice(0,1));for(var ne=0;ne<he.length;ne++){Ae=parseInt(he[ne]),I=[],j=typeof De=="string"&&Pe(Y,Ae,Fe)||ot.slice();var ze=me.matches[Ae];if(ze&&ee(ze,[Ae].concat(ye),we))ue=!0;else if(ne===0&&(B=X(me)),ze&&ze.matches&&ze.matches.length>me.matches[0].matches.length)break;te=I.slice(),Y=Ie,I=[];for(var Ue=0;Ue<te.length;Ue++){var Le=te[Ue],Te=!1;Le.alternation=Le.alternation||Fe,Ve(Le);for(var bt=0;bt<de.length;bt++){var nt=de[bt];if(typeof De!="string"||Le.alternation!==void 0&&he.includes(Le.locator[Le.alternation].toString())){if(Le.match.nativeDef===nt.match.nativeDef){Te=!0,Ve(nt,Le);break}if(T(Le,nt,O)){Ve(Le,nt)&&(Te=!0,de.splice(de.indexOf(nt),0,Le));break}if(T(nt,Le,O)){Ve(nt,Le);break}if(le(Le,nt)){ae(Le,nt)||V.inputmask.userOptions.keepStatic!==void 0?Ve(Le,nt)&&(Te=!0,de.splice(de.indexOf(nt),0,Le)):O.keepStatic=!0;break}if(le(nt,Le)){Ve(nt,Le);break}}}Te||de.push(Le)}}I=Me.concat(de),Y=R,q=I.length>0&&B,ue=de.length>0&&!B,B&&q&&!ue&&I.forEach((function(P,k){P.unMatchedAlternationStopped=!0})),j=ot.slice()}else ue=ee(me.matches[De]||ie.matches[De],[De].concat(ye),we);if(ue)return!0})();if(ue.isQuantifier&&we!==ie.matches[ie.matches.indexOf(ue)-1])return(function(){for(var X=ue,te=!1,me=j.length>0?j.shift():0;me<(isNaN(X.quantifier.max)?me+1:X.quantifier.max)&&Y<=R;me++){var de=ie.matches[ie.matches.indexOf(X)-1];if(ue=ee(de,[me].concat(ye),de)){if(I.forEach((function(Me,Fe){(C=z(de,Me.match)?Me.match:I[I.length-1].match).optionalQuantifier=me>=X.quantifier.min,C.jit=(me+1)*(de.matches.indexOf(C)+1)>X.quantifier.jit,C.optionalQuantifier&&Re(C,de)&&(q=!0,Y=R,O.greedy&&D.validPositions[R-1]==null&&me>X.quantifier.min&&["*","+"].indexOf(X.quantifier.max)!=-1&&(I.pop(),L=void 0),te=!0,ue=!1),!te&&C.jit&&(D.jitOffset[R]=de.matches.length-de.matches.indexOf(C))})),te)break;return!0}}})();if(ue=$(ue,j,ye,we))return!0}else Y++}for(var Q=j.length>0?j.shift():0;Q<ie.matches.length;Q++)if(ie.matches[Q].isQuantifier!==!0){var pe=ee(ie.matches[Q],[Q].concat(H),re);if(pe&&Y===R)return pe;if(Y>R)break}}function z(ie,j){var H=ie.matches.indexOf(j)!=-1;return H||ie.matches.forEach((function(re,ee){re.matches===void 0||H||(H=z(re,j))})),H}if(R>-1){if(y===void 0){for(var J,Z=R-1;(J=D.validPositions[Z]||D.tests[Z])===void 0&&Z>-1;)Z--;J!==void 0&&Z>-1&&(N=(function(ie,j){var H,re=[];return Array.isArray(j)||(j=[j]),j.length>0&&(j[0].alternation===void 0||O.keepStatic===!0?(re=b.call(w,ie,j.slice()).locator.slice()).length===0&&(re=j[0].locator.slice()):j.forEach((function(ee){ee.def!==""&&(re.length===0?(H=ee.alternation,re=ee.locator.slice()):ee.locator[H]&&re[H].toString().indexOf(ee.locator[H])===-1&&(re[H]+=","+ee.locator[H]))}))),re})(Z,J),L=N.join(""),Y=Z)}if(D.tests[R]&&D.tests[R][0].cd===L)return D.tests[R];for(var U=N.shift();U<W.length&&!($(W[U],N,[U])&&Y===R||Y>R);U++);}return(I.length===0||q)&&I.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:B&&I.filter((function(ie){return ie.unMatchedAlternationStopped!==!0})).length===0?[0]:[],mloc:{},cd:L}),y!==void 0&&D.tests[R]?x=_.extend(!0,[],I):(D.tests[R]=_.extend(!0,[],I),x=D.tests[R]),I.forEach((function(ie){ie.match.optionality=ie.match.defOptionality||!1})),x}},7215:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.alternate=h,l.checkAlternationMatch=function(y,M,C){for(var x,w=this.opts.greedy?M:M.slice(0,1),_=!1,D=C!==void 0?C.split(","):[],O=0;O<D.length;O++)(x=y.indexOf(D[O]))!==-1&&y.splice(x,1);for(var V=0;V<y.length;V++)if(w.includes(y[V])){_=!0;break}return _},l.handleRemove=function(y,M,C,x,w){var _=this,D=this.maskset,O=this.opts;if((O.numericInput||_.isRTL)&&(M===d.keys.Backspace?M=d.keys.Delete:M===d.keys.Delete&&(M=d.keys.Backspace),_.isRTL)){var V=C.end;C.end=C.begin,C.begin=V}var W,Y=f.getLastValidPosition.call(_,void 0,!0);C.end>=f.getBuffer.call(_).length&&Y>=C.end&&(C.end=Y+1),M===d.keys.Backspace?C.end-C.begin<1&&(C.begin=f.seekPrevious.call(_,C.begin)):M===d.keys.Delete&&C.begin===C.end&&(C.end=f.isMask.call(_,C.end,!0,!0)?C.end+1:f.seekNext.call(_,C.end)+1),(W=R.call(_,C))!==!1&&((x!==!0&&O.keepStatic!==!1||O.regex!==null&&p.getTest.call(_,C.begin).match.def.indexOf("|")!==-1)&&h.call(_,!0),x!==!0&&(D.p=M===d.keys.Delete?C.begin+W:C.begin,D.p=f.determineNewCaretPosition.call(_,{begin:D.p,end:D.p},!1,O.insertMode===!1&&M===d.keys.Backspace?"none":void 0).begin))},l.isComplete=m,l.isSelection=E,l.isValid=b,l.refreshFromBuffer=T,l.revalidateMask=R;var c=u(6030),d=u(2839),f=u(8711),p=u(4713);function h(y,M,C,x,w,_){var D=this,O=this.dependencyLib,V=this.opts,W=D.maskset;if(!D.hasAlternator)return!1;var Y,N,I,q,L,B,$,z,J,Z,U,ie=O.extend(!0,[],W.validPositions),j=O.extend(!0,{},W.tests),H=!1,re=!1,ee=w!==void 0?w:f.getLastValidPosition.call(D);if(_&&(Z=_.begin,U=_.end,_.begin>_.end&&(Z=_.end,U=_.begin)),ee===-1&&w===void 0)Y=0,N=(q=p.getTest.call(D,Y)).alternation;else for(;ee>=0;ee--)if((I=W.validPositions[ee])&&I.alternation!==void 0){if(ee<=(y||0)&&q&&q.locator[I.alternation]!==I.locator[I.alternation])break;Y=ee,N=W.validPositions[Y].alternation,q=I}if(N!==void 0){$=parseInt(Y),W.excludes[$]=W.excludes[$]||[],y!==!0&&W.excludes[$].push((0,p.getDecisionTaker)(q)+":"+q.alternation);var Q=[],pe=-1;for(L=$;$<f.getLastValidPosition.call(D,void 0,!0)+1;L++)pe===-1&&y<=L&&M!==void 0&&(Q.push(M),pe=Q.length-1),(B=W.validPositions[$])&&B.generatedInput!==!0&&(_===void 0||L<Z||L>=U)&&Q.push(B.input),W.validPositions.splice($,1);for(pe===-1&&M!==void 0&&(Q.push(M),pe=Q.length-1);W.excludes[$]!==void 0&&W.excludes[$].length<10;){for(W.tests={},f.resetMaskSet.call(D,!0),H=!0,L=0;L<Q.length&&(z=H.caret||V.insertMode==0&&z!=null?f.seekNext.call(D,z):f.getLastValidPosition.call(D,void 0,!0)+1,J=Q[L],H=b.call(D,z,J,!1,x,!0));L++)L===pe&&(re=H),y==1&&H&&(re={caretPos:L});if(H)break;if(f.resetMaskSet.call(D),q=p.getTest.call(D,$),W.validPositions=O.extend(!0,[],ie),W.tests=O.extend(!0,{},j),!W.excludes[$]){re=h.call(D,y,M,C,x,$-1,_);break}if(q.alternation!=null){var ue=(0,p.getDecisionTaker)(q);if(W.excludes[$].indexOf(ue+":"+q.alternation)!==-1){re=h.call(D,y,M,C,x,$-1,_);break}for(W.excludes[$].push(ue+":"+q.alternation),L=$;L<f.getLastValidPosition.call(D,void 0,!0)+1;L++)W.validPositions.splice($)}else delete W.excludes[$]}}return re&&V.keepStatic===!1||delete W.excludes[$],re}function S(y,M,C){var x=this.opts,w=this.maskset;switch(x.casing||M.casing){case"upper":y=y.toUpperCase();break;case"lower":y=y.toLowerCase();break;case"title":var _=w.validPositions[C-1];y=C===0||_&&_.input===String.fromCharCode(d.keyCode.Space)?y.toUpperCase():y.toLowerCase();break;default:if(typeof x.casing=="function"){var D=Array.prototype.slice.call(arguments);D.push(w.validPositions),y=x.casing.apply(this,D)}}return y}function m(y){var M=this,C=this.opts,x=this.maskset;if(typeof C.isComplete=="function")return C.isComplete(y,C);if(C.repeat!=="*"){var w=!1,_=f.determineLastRequiredPosition.call(M,!0),D=_.l;if(_.def===void 0||_.def.newBlockMarker||_.def.optionality||_.def.optionalQuantifier){w=!0;for(var O=0;O<=D;O++){var V=p.getTestTemplate.call(M,O).match;if(V.static!==!0&&x.validPositions[O]===void 0&&(V.optionality===!1||V.optionality===void 0||V.optionality&&V.newBlockMarker==0)&&(V.optionalQuantifier===!1||V.optionalQuantifier===void 0)||V.static===!0&&V.def!=""&&y[O]!==p.getPlaceholder.call(M,O,V)){w=!1;break}}}return w}}function E(y){var M=this.opts.insertMode?0:1;return this.isRTL?y.begin-y.end>M:y.end-y.begin>M}function b(y,M,C,x,w,_,D){var O=this,V=this.dependencyLib,W=this.opts,Y=O.maskset;C=C===!0;var N=y;function I(H){if(H!==void 0){if(H.remove!==void 0&&(Array.isArray(H.remove)||(H.remove=[H.remove]),H.remove.sort((function(ee,Q){return O.isRTL?ee.pos-Q.pos:Q.pos-ee.pos})).forEach((function(ee){R.call(O,{begin:ee,end:ee+1})})),H.remove=void 0),H.insert!==void 0&&(Array.isArray(H.insert)||(H.insert=[H.insert]),H.insert.sort((function(ee,Q){return O.isRTL?Q.pos-ee.pos:ee.pos-Q.pos})).forEach((function(ee){ee.c!==""&&b.call(O,ee.pos,ee.c,ee.strict===void 0||ee.strict,ee.fromIsValid!==void 0?ee.fromIsValid:x)})),H.insert=void 0),H.refreshFromBuffer&&H.buffer){var re=H.refreshFromBuffer;T.call(O,re===!0?re:re.start,re.end,H.buffer),H.refreshFromBuffer=void 0}H.rewritePosition!==void 0&&(N=H.rewritePosition,H=!0)}return H}function q(H,re,ee){var Q=!1;return p.getTests.call(O,H).every((function(pe,ue){var ye=pe.match;if(f.getBuffer.call(O,!0),(Q=(!ye.jit||Y.validPositions[f.seekPrevious.call(O,H)]!==void 0)&&(ye.fn!=null?ye.fn.test(re,Y,H,ee,W,E.call(O,y)):(re===ye.def||re===W.skipOptionalPartCharacter)&&ye.def!==""&&{c:p.getPlaceholder.call(O,H,ye,!0)||ye.def,pos:H}))!==!1){var we=Q.c!==void 0?Q.c:re,Re=H;return we=we===W.skipOptionalPartCharacter&&ye.static===!0?p.getPlaceholder.call(O,H,ye,!0)||ye.def:we,(Q=I(Q))!==!0&&Q.pos!==void 0&&Q.pos!==H&&(Re=Q.pos),Q!==!0&&Q.pos===void 0&&Q.c===void 0||R.call(O,y,V.extend({},pe,{input:S.call(O,we,ye,Re)}),x,Re)===!1&&(Q=!1),!1}return!0})),Q}y.begin!==void 0&&(N=O.isRTL?y.end:y.begin);var L=!0,B=V.extend(!0,[],Y.validPositions);if(W.keepStatic===!1&&Y.excludes[N]!==void 0&&w!==!0&&x!==!0)for(var $=N;$<(O.isRTL?y.begin:y.end);$++)Y.excludes[$]!==void 0&&(Y.excludes[$]=void 0,delete Y.tests[$]);if(typeof W.preValidation=="function"&&x!==!0&&_!==!0&&(L=I(L=W.preValidation.call(O,f.getBuffer.call(O),N,M,E.call(O,y),W,Y,y,C||w))),L===!0){if(L=q(N,M,C),(!C||x===!0)&&L===!1&&_!==!0){var z=Y.validPositions[N];if(!z||z.match.static!==!0||z.match.def!==M&&M!==W.skipOptionalPartCharacter){if(W.insertMode||Y.validPositions[f.seekNext.call(O,N)]===void 0||y.end>N){var J=!1;if(Y.jitOffset[N]&&Y.validPositions[f.seekNext.call(O,N)]===void 0&&(L=b.call(O,N+Y.jitOffset[N],M,!0,!0))!==!1&&(w!==!0&&(L.caret=N),J=!0),y.end>N&&(Y.validPositions[N]=void 0),!J&&!f.isMask.call(O,N,W.keepStatic&&N===0)){for(var Z=N+1,U=f.seekNext.call(O,N,!1,N!==0);Z<=U;Z++)if((L=q(Z,M,C))!==!1){L=v.call(O,N,L.pos!==void 0?L.pos:Z)||L,N=Z;break}}}}else L={caret:f.seekNext.call(O,N)}}O.hasAlternator&&w!==!0&&!C&&(w=!0,L===!1&&W.keepStatic&&(m.call(O,f.getBuffer.call(O))||N===0)?L=h.call(O,N,M,C,x,void 0,y):(E.call(O,y)&&Y.tests[N]&&Y.tests[N].length>1&&W.keepStatic||L==1&&W.numericInput!==!0&&Y.tests[N]&&Y.tests[N].length>1&&f.getLastValidPosition.call(O,void 0,!0)>N)&&(L=h.call(O,!0))),L===!0&&(L={pos:N})}if(typeof W.postValidation=="function"&&x!==!0&&_!==!0){var ie=W.postValidation.call(O,f.getBuffer.call(O,!0),y.begin!==void 0?O.isRTL?y.end:y.begin:y,M,L,W,Y,C,D);ie!==void 0&&(L=ie===!0?L:ie)}L&&L.pos===void 0&&(L.pos=N),L===!1||_===!0?(f.resetMaskSet.call(O,!0),Y.validPositions=V.extend(!0,[],B)):v.call(O,void 0,N,!0);var j=I(L);return O.maxLength!==void 0&&f.getBuffer.call(O).length>O.maxLength&&!x&&(f.resetMaskSet.call(O,!0),Y.validPositions=V.extend(!0,[],B),j=!1),j}function g(y,M,C){for(var x=this.maskset,w=!1,_=p.getTests.call(this,y),D=0;D<_.length;D++){if(_[D].match&&(_[D].match.nativeDef===M.match[C.shiftPositions?"def":"nativeDef"]&&(!C.shiftPositions||!M.match.static)||_[D].match.nativeDef===M.match.nativeDef||C.regex&&!_[D].match.static&&_[D].match.fn.test(M.input,x,y,!1,C))){w=!0;break}if(_[D].match&&_[D].match.def===M.match.nativeDef){w=void 0;break}}return w===!1&&x.jitOffset[y]!==void 0&&(w=g.call(this,y+x.jitOffset[y],M,C)),w}function T(y,M,C){var x,w,_=this,D=this.maskset,O=this.opts,V=this.dependencyLib,W=O.skipOptionalPartCharacter,Y=_.isRTL?C.slice().reverse():C;if(O.skipOptionalPartCharacter="",y===!0)f.resetMaskSet.call(_,!1),y=0,M=C.length,w=f.determineNewCaretPosition.call(_,{begin:0,end:0},!1).begin;else{for(x=y;x<M;x++)D.validPositions.splice(y,0);w=y}var N=new V.Event("keypress");for(x=y;x<M;x++){N.key=Y[x].toString(),_.ignorable=!1;var I=c.EventHandlers.keypressEvent.call(_,N,!0,!1,!1,w);I!==!1&&I!==void 0&&(w=I.forwardPosition)}O.skipOptionalPartCharacter=W}function v(y,M,C){var x=this,w=this.maskset,_=this.dependencyLib;if(y===void 0)for(y=M-1;y>0&&!w.validPositions[y];y--);for(var D=y;D<M;D++)if(w.validPositions[D]===void 0&&!f.isMask.call(x,D,!1)&&(D==0?p.getTest.call(x,D):w.validPositions[D-1])){var O=p.getTests.call(x,D).slice();O[O.length-1].match.def===""&&O.pop();var V,W=p.determineTestTemplate.call(x,D,O);if(W&&(W.match.jit!==!0||W.match.newBlockMarker==="master"&&(V=w.validPositions[D+1])&&V.match.optionalQuantifier===!0)&&((W=_.extend({},W,{input:p.getPlaceholder.call(x,D,W.match,!0)||W.match.def})).generatedInput=!0,R.call(x,D,W,!0),C!==!0)){var Y=w.validPositions[M].input;return w.validPositions[M]=void 0,b.call(x,M,Y,!0,!0)}}}function R(y,M,C,x){var w=this,_=this.maskset,D=this.opts,O=this.dependencyLib;function V(j,H,re){var ee=H[j];if(ee!==void 0&&ee.match.static===!0&&ee.match.optionality!==!0&&(H[0]===void 0||H[0].alternation===void 0)){var Q=re.begin<=j-1?H[j-1]&&H[j-1].match.static===!0&&H[j-1]:H[j-1],pe=re.end>j+1?H[j+1]&&H[j+1].match.static===!0&&H[j+1]:H[j+1];return Q&&pe}return!1}var W=0,Y=y.begin!==void 0?y.begin:y,N=y.end!==void 0?y.end:y,I=!0;if(y.begin>y.end&&(Y=y.end,N=y.begin),x=x!==void 0?x:Y,C===void 0&&(Y!==N||D.insertMode&&_.validPositions[x]!==void 0||M===void 0||M.match.optionalQuantifier||M.match.optionality)){var q,L=O.extend(!0,[],_.validPositions),B=f.getLastValidPosition.call(w,void 0,!0);_.p=Y;var $=E.call(w,y)?Y:x;for(q=B;q>=$;q--)_.validPositions.splice(q,1),M===void 0&&delete _.tests[q+1];var z,J,Z=x,U=Z;for(M&&(_.validPositions[x]=O.extend(!0,{},M),U++,Z++),L[N]==null&&_.jitOffset[N]&&(N+=_.jitOffset[N]+1),q=M?N:N-1;q<=B;q++){if((z=L[q])!==void 0&&z.generatedInput!==!0&&(q>=N||q>=Y&&V(q,L,{begin:Y,end:N}))){for(;p.getTest.call(w,U).match.def!=="";){if((J=g.call(w,U,z,D))!==!1||z.match.def==="+"){z.match.def==="+"&&f.getBuffer.call(w,!0);var ie=b.call(w,U,z.input,z.match.def!=="+",!0);if(I=ie!==!1,Z=(ie.pos||U)+1,!I&&J)break}else I=!1;if(I){M===void 0&&z.match.static&&q===y.begin&&W++;break}if(!I&&f.getBuffer.call(w),U>_.maskLength)break;U++}p.getTest.call(w,U).match.def==""&&(I=!1),U=Z}if(!I)break}if(!I)return _.validPositions=O.extend(!0,[],L),f.resetMaskSet.call(w,!0),!1}else M&&p.getTest.call(w,x).match.cd===M.match.cd&&(_.validPositions[x]=O.extend(!0,{},M));return f.resetMaskSet.call(w,!0),W}}},i={};function r(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return t[a](u,u.exports,r),u.exports}var s={};return(function(){var a=s;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(7149),r(3194),r(9302),r(4013),r(3851),r(219),r(207),r(5296);var l,u=(l=r(2394))&&l.__esModule?l:{default:l};a.default=u.default})(),s})()}))})(_n)),_n.exports}var wh=yh();const Ch=Ya(wh);//! moment.js
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(g,T){(T==null||T>g.length)&&(T=g.length);for(var v=0,R=new Array(T);v<T;v++)R[v]=g[v];return R}function S(g){return g&&g.__esModule?g:{default:g}}var m=c.default.document;function E(g){return g instanceof Element}var b=l.Event=void 0;typeof c.default.CustomEvent=="function"?l.Event=b=c.default.CustomEvent:c.default.Event&&m&&m.createEvent?(l.Event=b=function(g,T){T=T||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var v=m.createEvent("CustomEvent");return v.initCustomEvent(g,T.bubbles,T.cancelable,T.detail),v},b.prototype=c.default.Event.prototype):typeof Event<"u"&&(l.Event=b=Event)},600:function(a,l){function u(c){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(c)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=function c(){var d,f,p,h,S,m,E=arguments[0]||{},b=1,g=arguments.length,T=!1;for(typeof E=="boolean"&&(T=E,E=arguments[b]||{},b++),u(E)!=="object"&&typeof E!="function"&&(E={});b<g;b++)if((d=arguments[b])!=null)for(f in d)p=E[f],E!==(h=d[f])&&(T&&h&&(Object.prototype.toString.call(h)==="[object Object]"||(S=Array.isArray(h)))?(S?(S=!1,m=p&&Array.isArray(p)?p:[]):m=p&&Object.prototype.toString.call(p)==="[object Object]"?p:{},E[f]=c(T,m,h)):h!==void 0&&(E[f]=h));return E}},4963:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=h(u(9380)),d=h(u(253)),f=u(3776),p=h(u(600));function h(E){return E&&E.__esModule?E:{default:E}}var S=c.default.document;function m(E){return E instanceof m?E:this instanceof m?void(E!=null&&E!==c.default&&(this[0]=E.nodeName?E:E[0]!==void 0&&E[0].nodeName?E[0]:S.querySelector(E),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new m(E)}m.prototype={on:f.on,off:f.off,trigger:f.trigger},m.extend=p.default,m.data=d.default,m.Event=f.Event,l.default=m},9845:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mobile=l.iphone=l.ie=void 0;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=d.default.navigator&&d.default.navigator.userAgent||"";l.ie=f.indexOf("MSIE ")>0||f.indexOf("Trident/")>0,l.mobile=d.default.navigator&&d.default.navigator.userAgentData&&d.default.navigator.userAgentData.mobile||d.default.navigator&&d.default.navigator.maxTouchPoints||"ontouchstart"in d.default,l.iphone=/iphone/i.test(f)},7184:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c.replace(u,"\\$1")};var u=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(a,l,u){function c(x){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(x)}Object.defineProperty(l,"__esModule",{value:!0}),l.EventHandlers=void 0;var d,f=u(9845),p=(d=u(9380))&&d.__esModule?d:{default:d},h=u(7760),S=u(2839),m=u(8711),E=u(7215),b=u(4713);function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return w};var x,w={},_=Object.prototype,D=_.hasOwnProperty,O=Object.defineProperty||function(Y,J,Z){Y[J]=Z.value},V=typeof Symbol=="function"?Symbol:{},W=V.iterator||"@@iterator",U=V.asyncIterator||"@@asyncIterator",N=V.toStringTag||"@@toStringTag";function I(Y,J,Z){return Object.defineProperty(Y,J,{value:Z,enumerable:!0,configurable:!0,writable:!0}),Y[J]}try{I({},"")}catch{I=function(J,Z,de){return J[Z]=de}}function K(Y,J,Z,de){var ue=J&&J.prototype instanceof G?J:G,xe=Object.create(ue.prototype),Pe=new He(de||[]);return O(xe,"_invoke",{value:ve(Y,Z,Pe)}),xe}function L(Y,J,Z){try{return{type:"normal",arg:Y.call(J,Z)}}catch(de){return{type:"throw",arg:de}}}w.wrap=K;var B="suspendedStart",q="suspendedYield",z="executing",Q="completed",ie={};function G(){}function ne(){}function j(){}var H={};I(H,W,(function(){return this}));var se=Object.getPrototypeOf,te=se&&se(se(Le([])));te&&te!==_&&D.call(te,W)&&(H=te);var ee=j.prototype=G.prototype=Object.create(H);function pe(Y){["next","throw","return"].forEach((function(J){I(Y,J,(function(Z){return this._invoke(J,Z)}))}))}function le(Y,J){function Z(ue,xe,Pe,Te){var _e=L(Y[ue],Y,xe);if(_e.type!=="throw"){var Ie=_e.arg,ot=Ie.value;return ot&&c(ot)=="object"&&D.call(ot,"__await")?J.resolve(ot.__await).then((function(he){Z("next",he,Pe,Te)}),(function(he){Z("throw",he,Pe,Te)})):J.resolve(ot).then((function(he){Ie.value=he,Pe(Ie)}),(function(he){return Z("throw",he,Pe,Te)}))}Te(_e.arg)}var de;O(this,"_invoke",{value:function(ue,xe){function Pe(){return new J((function(Te,_e){Z(ue,xe,Te,_e)}))}return de=de?de.then(Pe,Pe):Pe()}})}function ve(Y,J,Z){var de=B;return function(ue,xe){if(de===z)throw new Error("Generator is already running");if(de===Q){if(ue==="throw")throw xe;return{value:x,done:!0}}for(Z.method=ue,Z.arg=xe;;){var Pe=Z.delegate;if(Pe){var Te=ye(Pe,Z);if(Te){if(Te===ie)continue;return Te}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(de===B)throw de=Q,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);de=z;var _e=L(Y,J,Z);if(_e.type==="normal"){if(de=Z.done?Q:q,_e.arg===ie)continue;return{value:_e.arg,done:Z.done}}_e.type==="throw"&&(de=Q,Z.method="throw",Z.arg=_e.arg)}}}function ye(Y,J){var Z=J.method,de=Y.iterator[Z];if(de===x)return J.delegate=null,Z==="throw"&&Y.iterator.return&&(J.method="return",J.arg=x,ye(Y,J),J.method==="throw")||Z!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+Z+"' method")),ie;var ue=L(de,Y.iterator,J.arg);if(ue.type==="throw")return J.method="throw",J.arg=ue.arg,J.delegate=null,ie;var xe=ue.arg;return xe?xe.done?(J[Y.resultName]=xe.value,J.next=Y.nextLoc,J.method!=="return"&&(J.method="next",J.arg=x),J.delegate=null,ie):xe:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,ie)}function Me(Y){var J={tryLoc:Y[0]};1 in Y&&(J.catchLoc=Y[1]),2 in Y&&(J.finallyLoc=Y[2],J.afterLoc=Y[3]),this.tryEntries.push(J)}function Ne(Y){var J=Y.completion||{};J.type="normal",delete J.arg,Y.completion=J}function He(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(Me,this),this.reset(!0)}function Le(Y){if(Y||Y===""){var J=Y[W];if(J)return J.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var Z=-1,de=function ue(){for(;++Z<Y.length;)if(D.call(Y,Z))return ue.value=Y[Z],ue.done=!1,ue;return ue.value=x,ue.done=!0,ue};return de.next=de}}throw new TypeError(c(Y)+" is not iterable")}return ne.prototype=j,O(ee,"constructor",{value:j,configurable:!0}),O(j,"constructor",{value:ne,configurable:!0}),ne.displayName=I(j,N,"GeneratorFunction"),w.isGeneratorFunction=function(Y){var J=typeof Y=="function"&&Y.constructor;return!!J&&(J===ne||(J.displayName||J.name)==="GeneratorFunction")},w.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,j):(Y.__proto__=j,I(Y,N,"GeneratorFunction")),Y.prototype=Object.create(ee),Y},w.awrap=function(Y){return{__await:Y}},pe(le.prototype),I(le.prototype,U,(function(){return this})),w.AsyncIterator=le,w.async=function(Y,J,Z,de,ue){ue===void 0&&(ue=Promise);var xe=new le(K(Y,J,Z,de),ue);return w.isGeneratorFunction(J)?xe:xe.next().then((function(Pe){return Pe.done?Pe.value:xe.next()}))},pe(ee),I(ee,N,"Generator"),I(ee,W,(function(){return this})),I(ee,"toString",(function(){return"[object Generator]"})),w.keys=function(Y){var J=Object(Y),Z=[];for(var de in J)Z.push(de);return Z.reverse(),function ue(){for(;Z.length;){var xe=Z.pop();if(xe in J)return ue.value=xe,ue.done=!1,ue}return ue.done=!0,ue}},w.values=Le,He.prototype={constructor:He,reset:function(Y){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(Ne),!Y)for(var J in this)J.charAt(0)==="t"&&D.call(this,J)&&!isNaN(+J.slice(1))&&(this[J]=x)},stop:function(){this.done=!0;var Y=this.tryEntries[0].completion;if(Y.type==="throw")throw Y.arg;return this.rval},dispatchException:function(Y){if(this.done)throw Y;var J=this;function Z(_e,Ie){return xe.type="throw",xe.arg=Y,J.next=_e,Ie&&(J.method="next",J.arg=x),!!Ie}for(var de=this.tryEntries.length-1;de>=0;--de){var ue=this.tryEntries[de],xe=ue.completion;if(ue.tryLoc==="root")return Z("end");if(ue.tryLoc<=this.prev){var Pe=D.call(ue,"catchLoc"),Te=D.call(ue,"finallyLoc");if(Pe&&Te){if(this.prev<ue.catchLoc)return Z(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return Z(ue.finallyLoc)}else if(Pe){if(this.prev<ue.catchLoc)return Z(ue.catchLoc,!0)}else{if(!Te)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return Z(ue.finallyLoc)}}}},abrupt:function(Y,J){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var de=this.tryEntries[Z];if(de.tryLoc<=this.prev&&D.call(de,"finallyLoc")&&this.prev<de.finallyLoc){var ue=de;break}}ue&&(Y==="break"||Y==="continue")&&ue.tryLoc<=J&&J<=ue.finallyLoc&&(ue=null);var xe=ue?ue.completion:{};return xe.type=Y,xe.arg=J,ue?(this.method="next",this.next=ue.finallyLoc,ie):this.complete(xe)},complete:function(Y,J){if(Y.type==="throw")throw Y.arg;return Y.type==="break"||Y.type==="continue"?this.next=Y.arg:Y.type==="return"?(this.rval=this.arg=Y.arg,this.method="return",this.next="end"):Y.type==="normal"&&J&&(this.next=J),ie},finish:function(Y){for(var J=this.tryEntries.length-1;J>=0;--J){var Z=this.tryEntries[J];if(Z.finallyLoc===Y)return this.complete(Z.completion,Z.afterLoc),Ne(Z),ie}},catch:function(Y){for(var J=this.tryEntries.length-1;J>=0;--J){var Z=this.tryEntries[J];if(Z.tryLoc===Y){var de=Z.completion;if(de.type==="throw"){var ue=de.arg;Ne(Z)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(Y,J,Z){return this.delegate={iterator:Le(Y),resultName:J,nextLoc:Z},this.method==="next"&&(this.arg=x),ie}},w}function T(x,w){var _=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!_){if(Array.isArray(x)||(_=(function(N,I){if(N){if(typeof N=="string")return v(N,I);var K=Object.prototype.toString.call(N).slice(8,-1);if(K==="Object"&&N.constructor&&(K=N.constructor.name),K==="Map"||K==="Set")return Array.from(N);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return v(N,I)}})(x))||w){_&&(x=_);var D=0,O=function(){};return{s:O,n:function(){return D>=x.length?{done:!0}:{done:!1,value:x[D++]}},e:function(N){throw N},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,W=!0,U=!1;return{s:function(){_=_.call(x)},n:function(){var N=_.next();return W=N.done,N},e:function(N){U=!0,V=N},f:function(){try{W||_.return==null||_.return()}finally{if(U)throw V}}}}function v(x,w){(w==null||w>x.length)&&(w=x.length);for(var _=0,D=new Array(w);_<w;_++)D[_]=x[_];return D}function R(x,w,_,D,O,V,W){try{var U=x[V](W),N=U.value}catch(I){return void _(I)}U.done?w(N):Promise.resolve(N).then(D,O)}var y,M,C=l.EventHandlers={keyEvent:function(x,w,_,D,O){var V=this.inputmask,W=V.opts,U=V.dependencyLib,N=V.maskset,I=this,K=U(I),L=x.key,B=m.caret.call(V,I),q=W.onKeyDown.call(this,x,m.getBuffer.call(V),B,W);if(q!==void 0)return q;if(L===S.keys.Backspace||L===S.keys.Delete||f.iphone&&L===S.keys.BACKSPACE_SAFARI||x.ctrlKey&&L===S.keys.x&&!("oncut"in I))x.preventDefault(),E.handleRemove.call(V,I,L,B),(0,h.writeBuffer)(I,m.getBuffer.call(V,!0),N.p,x,I.inputmask._valueGet()!==m.getBuffer.call(V).join(""));else if(L===S.keys.End||L===S.keys.PageDown){x.preventDefault();var z=m.seekNext.call(V,m.getLastValidPosition.call(V));m.caret.call(V,I,x.shiftKey?B.begin:z,z,!0)}else L===S.keys.Home&&!x.shiftKey||L===S.keys.PageUp?(x.preventDefault(),m.caret.call(V,I,0,x.shiftKey?B.begin:0,!0)):W.undoOnEscape&&L===S.keys.Escape&&x.altKey!==!0?((0,h.checkVal)(I,!0,!1,V.undoValue.split("")),K.trigger("click")):L!==S.keys.Insert||x.shiftKey||x.ctrlKey||V.userOptions.insertMode!==void 0?W.tabThrough===!0&&L===S.keys.Tab?x.shiftKey===!0?(B.end=m.seekPrevious.call(V,B.end,!0),b.getTest.call(V,B.end-1).match.static===!0&&B.end--,B.begin=m.seekPrevious.call(V,B.end,!0),B.begin>=0&&B.end>0&&(x.preventDefault(),m.caret.call(V,I,B.begin,B.end))):(B.begin=m.seekNext.call(V,B.begin,!0),B.end=m.seekNext.call(V,B.begin,!0),B.end<N.maskLength&&B.end--,B.begin<=N.maskLength&&(x.preventDefault(),m.caret.call(V,I,B.begin,B.end))):x.shiftKey||(W.insertModeVisual&&W.insertMode===!1?L===S.keys.ArrowRight?setTimeout((function(){var Q=m.caret.call(V,I);m.caret.call(V,I,Q.begin)}),0):L===S.keys.ArrowLeft&&setTimeout((function(){var Q=m.translatePosition.call(V,I.inputmask.caretPos.begin);m.translatePosition.call(V,I.inputmask.caretPos.end),V.isRTL?m.caret.call(V,I,Q+(Q===N.maskLength?0:1)):m.caret.call(V,I,Q-(Q===0?0:1))}),0):V.keyEventHook===void 0||V.keyEventHook(x)):E.isSelection.call(V,B)?W.insertMode=!W.insertMode:(W.insertMode=!W.insertMode,m.caret.call(V,I,B.begin,B.begin));return V.isComposing=L==S.keys.Process||L==S.keys.Unidentified,V.ignorable=L.length>1&&!(I.tagName.toLowerCase()==="textarea"&&L==S.keys.Enter),C.keypressEvent.call(this,x,w,_,D,O)},keypressEvent:function(x,w,_,D,O){var V=this.inputmask||this,W=V.opts,U=V.dependencyLib,N=V.maskset,I=V.el,K=U(I),L=x.key;if(w===!0||x.ctrlKey&&x.altKey&&!V.ignorable||!(x.ctrlKey||x.metaKey||V.ignorable)){if(L){var B,q=w?{begin:O,end:O}:m.caret.call(V,I);w||(L=W.substitutes[L]||L),N.writeOutBuffer=!0;var z=E.isValid.call(V,q,L,D,void 0,void 0,void 0,w);if(z!==!1&&(m.resetMaskSet.call(V,!0),B=z.caret!==void 0?z.caret:m.seekNext.call(V,z.pos.begin?z.pos.begin:z.pos),N.p=B),B=W.numericInput&&z.caret===void 0?m.seekPrevious.call(V,B):B,_!==!1&&(setTimeout((function(){W.onKeyValidation.call(I,L,z)}),0),N.writeOutBuffer&&z!==!1)){var Q=m.getBuffer.call(V);(0,h.writeBuffer)(I,Q,B,x,w!==!0)}if(x.preventDefault(),w)return z!==!1&&(z.forwardPosition=B),z}}else L===S.keys.Enter&&V.undoValue!==V._valueGet(!0)&&(V.undoValue=V._valueGet(!0),setTimeout((function(){K.trigger("change")}),0))},pasteEvent:(y=g().mark((function x(w){var _,D,O,V,W,U;return g().wrap((function(N){for(;;)switch(N.prev=N.next){case 0:_=function(I,K,L,B,q){var z=m.caret.call(I,K,void 0,void 0,!0),Q=L.substr(0,z.begin),ie=L.substr(z.end,L.length);if(Q==(I.isRTL?m.getBufferTemplate.call(I).slice().reverse():m.getBufferTemplate.call(I)).slice(0,z.begin).join("")&&(Q=""),ie==(I.isRTL?m.getBufferTemplate.call(I).slice().reverse():m.getBufferTemplate.call(I)).slice(z.end).join("")&&(ie=""),B=Q+B+ie,I.isRTL&&V.numericInput!==!0){B=B.split("");var G,ne=T(m.getBufferTemplate.call(I));try{for(ne.s();!(G=ne.n()).done;){var j=G.value;B[0]===j&&B.shift()}}catch(se){ne.e(se)}finally{ne.f()}B=B.reverse().join("")}var H=B;if(typeof q=="function"){if((H=q.call(I,H,V))===!1)return!1;H||(H=L)}(0,h.checkVal)(K,!0,!1,H.toString().split(""),w)},D=this,O=this.inputmask,V=O.opts,W=O._valueGet(!0),O.skipInputEvent=!0,w.clipboardData&&w.clipboardData.getData?U=w.clipboardData.getData("text/plain"):p.default.clipboardData&&p.default.clipboardData.getData&&(U=p.default.clipboardData.getData("Text")),_(O,D,W,U,V.onBeforePaste),w.preventDefault();case 7:case"end":return N.stop()}}),x,this)})),M=function(){var x=this,w=arguments;return new Promise((function(_,D){var O=y.apply(x,w);function V(U){R(O,_,D,V,W,"next",U)}function W(U){R(O,_,D,V,W,"throw",U)}V(void 0)}))},function(x){return M.apply(this,arguments)}),inputFallBackEvent:function(x){var w=this.inputmask,_=w.opts,D=w.dependencyLib,O,V=this,W=V.inputmask._valueGet(!0),U=(w.isRTL?m.getBuffer.call(w).slice().reverse():m.getBuffer.call(w)).join(""),N=m.caret.call(w,V,void 0,void 0,!0);if(U!==W){if(O=(function(K,L,B){for(var q,z,Q,ie=K.substr(0,B.begin).split(""),G=K.substr(B.begin).split(""),ne=L.substr(0,B.begin).split(""),j=L.substr(B.begin).split(""),H=ie.length>=ne.length?ie.length:ne.length,se=G.length>=j.length?G.length:j.length,te="",ee=[],pe="~";ie.length<H;)ie.push(pe);for(;ne.length<H;)ne.push(pe);for(;G.length<se;)G.unshift(pe);for(;j.length<se;)j.unshift(pe);var le=ie.concat(G),ve=ne.concat(j);for(z=0,q=le.length;z<q;z++)switch(Q=b.getPlaceholder.call(w,m.translatePosition.call(w,z)),te){case"insertText":ve[z-1]===le[z]&&B.begin==le.length-1&&ee.push(le[z]),z=q;break;case"insertReplacementText":case"deleteContentBackward":le[z]===pe?B.end++:z=q;break;default:le[z]!==ve[z]&&(le[z+1]!==pe&&le[z+1]!==Q&&le[z+1]!==void 0||(ve[z]!==Q||ve[z+1]!==pe)&&ve[z]!==pe?ve[z+1]===pe&&ve[z]===le[z+1]?(te="insertText",ee.push(le[z]),B.begin--,B.end--):le[z]!==Q&&le[z]!==pe&&(le[z+1]===pe||ve[z]!==le[z]&&ve[z+1]===le[z+1])?(te="insertReplacementText",ee.push(le[z]),B.begin--):le[z]===pe?(te="deleteContentBackward",(m.isMask.call(w,m.translatePosition.call(w,z),!0)||ve[z]===_.radixPoint)&&B.end++):z=q:(te="insertText",ee.push(le[z]),B.begin--,B.end--))}return{action:te,data:ee,caret:B}})(W,U,N),(V.inputmask.shadowRoot||V.ownerDocument).activeElement!==V&&V.focus(),(0,h.writeBuffer)(V,m.getBuffer.call(w)),m.caret.call(w,V,N.begin,N.end,!0),!f.mobile&&w.skipNextInsert&&x.inputType==="insertText"&&O.action==="insertText"&&w.isComposing)return!1;switch(x.inputType==="insertCompositionText"&&O.action==="insertText"&&w.isComposing?w.skipNextInsert=!0:w.skipNextInsert=!1,O.action){case"insertText":case"insertReplacementText":O.data.forEach((function(K,L){var B=new D.Event("keypress");B.key=K,w.ignorable=!1,C.keypressEvent.call(V,B)})),setTimeout((function(){w.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var I=new D.Event("keydown");I.key=S.keys.Backspace,C.keyEvent.call(V,I);break;default:(0,h.applyInputValue)(V,W),m.caret.call(w,V,N.begin,N.end,!0)}x.preventDefault()}},setValueEvent:function(x){var w=this.inputmask,_=w.dependencyLib,D=this,O=x&&x.detail?x.detail[0]:arguments[1];O===void 0&&(O=D.inputmask._valueGet(!0)),(0,h.applyInputValue)(D,O,new _.Event("input")),(x.detail&&x.detail[1]!==void 0||arguments[2]!==void 0)&&m.caret.call(w,D,x.detail?x.detail[1]:arguments[2])},focusEvent:function(x){var w=this.inputmask,_=w.opts,D=w&&w._valueGet();_.showMaskOnFocus&&D!==m.getBuffer.call(w).join("")&&(0,h.writeBuffer)(this,m.getBuffer.call(w),m.seekNext.call(w,m.getLastValidPosition.call(w))),_.positionCaretOnTab!==!0||w.mouseEnter!==!1||E.isComplete.call(w,m.getBuffer.call(w))&&m.getLastValidPosition.call(w)!==-1||C.clickEvent.apply(this,[x,!0]),w.undoValue=w&&w._valueGet(!0)},invalidEvent:function(x){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var x=this.inputmask,w=x.opts,_=this;x.mouseEnter=!1,w.clearMaskOnLostFocus&&(_.inputmask.shadowRoot||_.ownerDocument).activeElement!==_&&(0,h.HandleNativePlaceholder)(_,x.originalPlaceholder)},clickEvent:function(x,w){var _=this.inputmask;_.clicked++;var D=this;if((D.inputmask.shadowRoot||D.ownerDocument).activeElement===D){var O=m.determineNewCaretPosition.call(_,m.caret.call(_,D),w);O!==void 0&&m.caret.call(_,D,O)}},cutEvent:function(x){var w=this.inputmask,_=w.maskset,D=this,O=m.caret.call(w,D),V=w.isRTL?m.getBuffer.call(w).slice(O.end,O.begin):m.getBuffer.call(w).slice(O.begin,O.end),W=w.isRTL?V.reverse().join(""):V.join("");p.default.navigator&&p.default.navigator.clipboard?p.default.navigator.clipboard.writeText(W):p.default.clipboardData&&p.default.clipboardData.getData&&p.default.clipboardData.setData("Text",W),E.handleRemove.call(w,D,S.keys.Delete,O),(0,h.writeBuffer)(D,m.getBuffer.call(w),_.p,x,w.undoValue!==w._valueGet(!0))},blurEvent:function(x){var w=this.inputmask,_=w.opts,D=w.dependencyLib;w.clicked=0;var O=D(this),V=this;if(V.inputmask){(0,h.HandleNativePlaceholder)(V,w.originalPlaceholder);var W=V.inputmask._valueGet(),U=m.getBuffer.call(w).slice();W!==""&&(_.clearMaskOnLostFocus&&(m.getLastValidPosition.call(w)===-1&&W===m.getBufferTemplate.call(w).join("")?U=[]:h.clearOptionalTail.call(w,U)),E.isComplete.call(w,U)===!1&&(setTimeout((function(){O.trigger("incomplete")}),0),_.clearIncomplete&&(m.resetMaskSet.call(w,!1),U=_.clearMaskOnLostFocus?[]:m.getBufferTemplate.call(w).slice())),(0,h.writeBuffer)(V,U,void 0,x)),W=w._valueGet(!0),w.undoValue!==W&&(W!=""||w.undoValue!=m.getBufferTemplate.call(w).join("")||w.undoValue==m.getBufferTemplate.call(w).join("")&&w.maskset.validPositions.length>0)&&(w.undoValue=W,O.trigger("change"))}},mouseenterEvent:function(){var x=this.inputmask,w=x.opts.showMaskOnHover,_=this;if(x.mouseEnter=!0,(_.inputmask.shadowRoot||_.ownerDocument).activeElement!==_){var D=(x.isRTL?m.getBufferTemplate.call(x).slice().reverse():m.getBufferTemplate.call(x)).join("");w&&(0,h.HandleNativePlaceholder)(_,D)}},submitEvent:function(){var x=this.inputmask,w=x.opts;x.undoValue!==x._valueGet(!0)&&x.$el.trigger("change"),m.getLastValidPosition.call(x)===-1&&x._valueGet&&x._valueGet()===m.getBufferTemplate.call(x).join("")&&x._valueSet(""),w.clearIncomplete&&E.isComplete.call(x,m.getBuffer.call(x))===!1&&x._valueSet(""),w.removeMaskOnSubmit&&(x._valueSet(x.unmaskedvalue(),!0),setTimeout((function(){(0,h.writeBuffer)(x.el,m.getBuffer.call(x))}),0))},resetEvent:function(){var x=this.inputmask;x.refreshValue=!0,setTimeout((function(){(0,h.applyInputValue)(x.el,x._valueGet(!0))}),0)}}},9716:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.EventRuler=void 0;var c,d=u(7760),f=(c=u(2394))&&c.__esModule?c:{default:c},p=u(2839),h=u(8711);l.EventRuler={on:function(S,m,E){var b=S.inputmask.dependencyLib,g=function(T){T.originalEvent&&(T=T.originalEvent||T,arguments[0]=T);var v,R=this,y=R.inputmask,M=y?y.opts:void 0;if(y===void 0&&this.nodeName!=="FORM"){var C=b.data(R,"_inputmask_opts");b(R).off(),C&&new f.default(C).mask(R)}else{if(["submit","reset","setvalue"].includes(T.type)||this.nodeName==="FORM"||!(R.disabled||R.readOnly&&!(T.type==="keydown"&&T.ctrlKey&&T.key===p.keys.c||M.tabThrough===!1&&T.key===p.keys.Tab))){switch(T.type){case"input":if(y.skipInputEvent===!0)return y.skipInputEvent=!1,T.preventDefault();break;case"click":case"focus":return y.validationEvent?(y.validationEvent=!1,S.blur(),(0,d.HandleNativePlaceholder)(S,(y.isRTL?h.getBufferTemplate.call(y).slice().reverse():h.getBufferTemplate.call(y)).join("")),setTimeout((function(){S.focus()}),M.validationEventTimeOut),!1):(v=arguments,void setTimeout((function(){S.inputmask&&E.apply(R,v)}),0))}var x=E.apply(R,arguments);return x===!1&&(T.preventDefault(),T.stopPropagation()),x}T.preventDefault()}};["submit","reset"].includes(m)?(g=g.bind(S),S.form!==null&&b(S.form).on(m,g)):b(S).on(m,g),S.inputmask.events[m]=S.inputmask.events[m]||[],S.inputmask.events[m].push(g)},off:function(S,m){if(S.inputmask&&S.inputmask.events){var E=S.inputmask.dependencyLib,b=S.inputmask.events;for(var g in m&&((b=[])[m]=S.inputmask.events[m]),b){for(var T=b[g];T.length>0;){var v=T.pop();["submit","reset"].includes(g)?S.form!==null&&E(S.form).off(g,v):E(S).off(g,v)}delete S.inputmask.events[g]}}}}},219:function(a,l,u){var c=g(u(7184)),d=g(u(2394)),f=u(2839),p=u(8711),h=u(4713);function S(L,B){return(function(q){if(Array.isArray(q))return q})(L)||(function(q,z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var ie,G,ne,j,H=[],se=!0,te=!1;try{if(ne=(Q=Q.call(q)).next,z!==0)for(;!(se=(ie=ne.call(Q)).done)&&(H.push(ie.value),H.length!==z);se=!0);}catch(ee){te=!0,G=ee}finally{try{if(!se&&Q.return!=null&&(j=Q.return(),Object(j)!==j))return}finally{if(te)throw G}}return H}})(L,B)||(function(q,z){if(q){if(typeof q=="string")return m(q,z);var Q=Object.prototype.toString.call(q).slice(8,-1);if(Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set")return Array.from(q);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return m(q,z)}})(L,B)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(L,B){(B==null||B>L.length)&&(B=L.length);for(var q=0,z=new Array(B);q<B;q++)z[q]=L[q];return z}function E(L){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},E(L)}function b(L,B){for(var q=0;q<B.length;q++){var z=B[q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,(Q=z.key,ie=void 0,ie=(function(G,ne){if(E(G)!=="object"||G===null)return G;var j=G[Symbol.toPrimitive];if(j!==void 0){var H=j.call(G,ne);if(E(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(G)})(Q,"string"),E(ie)==="symbol"?ie:String(ie)),z)}var Q,ie}function g(L){return L&&L.__esModule?L:{default:L}}u(1313);var T=d.default.dependencyLib,v=(function(){function L(z,Q,ie,G){(function(ne,j){if(!(ne instanceof j))throw new TypeError("Cannot call a class as a function")})(this,L),this.mask=z,this.format=Q,this.opts=ie,this.inputmask=G,this._date=new Date(1,0,1),this.initDateObject(z,this.opts,this.inputmask)}var B,q;return B=L,(q=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(z,Q,ie){var G;for(O(Q).lastIndex=0;G=O(Q).exec(this.format);){var ne=/\d+$/.exec(G[0]),j=ne?G[0][0]+"x":G[0],H=void 0;if(z!==void 0){if(ne){var se=O(Q).lastIndex,te=K.call(ie,G.index,Q,ie&&ie.maskset);O(Q).lastIndex=se,H=z.slice(0,z.indexOf(te.nextMatch[0]))}else{for(var ee=G[0][0],pe=G.index;ie&&(Q.placeholder[h.getTest.call(ie,pe).match.placeholder]||h.getTest.call(ie,pe).match.placeholder)===ee;)pe++;var le=pe-G.index;H=z.slice(0,le||C[j]&&C[j][4]||j.length)}z=z.slice(H.length)}Object.prototype.hasOwnProperty.call(C,j)&&this.setValue(this,H,j,C[j][2],C[j][1])}}},{key:"setValue",value:function(z,Q,ie,G,ne){if(Q!==void 0)switch(G){case"ampm":z[G]=Q,z["raw"+G]=Q.replace(/\s/g,"_");break;case"month":if(ie==="mmm"||ie==="mmmm"){z[G]=U(ie==="mmm"?y.monthNames.slice(0,12).findIndex((function(H){return Q.toLowerCase()===H.toLowerCase()}))+1:y.monthNames.slice(12,24).findIndex((function(H){return Q.toLowerCase()===H.toLowerCase()}))+1,2),z[G]=z[G]==="00"?"":z[G].toString(),z["raw"+G]=z[G];break}default:z[G]=Q.replace(/[^0-9]/g,"0"),z["raw"+G]=Q.replace(/\s/g,"_")}if(ne!==void 0){var j=z[G];(G==="day"&&parseInt(j)===29||G==="month"&&parseInt(j)===2)&&(parseInt(z.day)!==29||parseInt(z.month)!==2||z.year!==""&&z.year!==void 0||z._date.setFullYear(2012,1,29)),G==="day"&&(M=!0,parseInt(j)===0&&(j=1)),G==="month"&&(M=!0),G==="year"&&(M=!0,j.length<C[ie][4]&&(j=U(j,C[ie][4],!0))),(j!==""&&!isNaN(j)||G==="ampm")&&ne.call(z._date,j)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&b(B.prototype,q),Object.defineProperty(B,"prototype",{writable:!1}),L})(),R=new Date().getFullYear(),y=d.default.prototype.i18n,M=!1,C={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return U(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(L){var B=L?parseInt(L):0;return B>0&&B--,Date.prototype.setMonth.call(this,B)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(L){var B=L?parseInt(L):0;return B>0&&B--,Date.prototype.setMonth.call(this,B)},"month",function(){return U(Date.prototype.getMonth.call(this)+1,2)}],mmm:[y.monthNames.slice(0,12).join("|"),function(L){var B=y.monthNames.slice(0,12).findIndex((function(q){return L.toLowerCase()===q.toLowerCase()}));return B!==-1&&Date.prototype.setMonth.call(this,B)},"month",function(){return y.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[y.monthNames.slice(12,24).join("|"),function(L){var B=y.monthNames.slice(12,24).findIndex((function(q){return L.toLowerCase()===q.toLowerCase()}));return B!==-1&&Date.prototype.setMonth.call(this,B)},"month",function(){return y.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(L){var B=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(B).concat(L))},"year",function(){return U(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return U(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return U(Date.prototype.getHours.call(this),2)}],hx:[function(L){return"[0-9]{".concat(L,"}")},Date.prototype.setHours,"hours",function(L){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return U(Date.prototype.getHours.call(this),2)}],Hx:[function(L){return"[0-9]{".concat(L,"}")},Date.prototype.setHours,"hours",function(L){return function(){return U(Date.prototype.getHours.call(this),L)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return U(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return U(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return U(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return U(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",w,"ampm",_,1],tt:["[ap]m",w,"ampm",_,2],T:["[AP]",w,"ampm",_,1],TT:["[AP]M",w,"ampm",_,2],Z:[".*",void 0,"Z",function(){var L=this.toString().match(/\((.+)\)/)[1];return L.includes(" ")&&(L=(L=L.replace("-"," ").toUpperCase()).split(" ").map((function(B){return S(B,1)[0]})).join("")),L}],o:[""],S:[""]},x={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function w(L){var B=this.getHours();L.toLowerCase().includes("p")?this.setHours(B+12):L.toLowerCase().includes("a")&&B>=12&&this.setHours(B-12)}function _(){var L=this.getHours();return(L=L||12)>=12?"PM":"AM"}function D(L){var B=/\d+$/.exec(L[0]);if(B&&B[0]!==void 0){var q=C[L[0][0]+"x"].slice("");return q[0]=q[0](B[0]),q[3]=q[3](B[0]),q}if(C[L[0]])return C[L[0]]}function O(L){if(!L.tokenizer){var B=[],q=[];for(var z in C)if(/\.*x$/.test(z)){var Q=z[0]+"\\d+";q.indexOf(Q)===-1&&q.push(Q)}else B.indexOf(z[0])===-1&&B.push(z[0]);L.tokenizer="("+(q.length>0?q.join("|")+"|":"")+B.join("+|")+")+?|.",L.tokenizer=new RegExp(L.tokenizer,"g")}return L.tokenizer}function V(L,B,q){if(!M)return!0;if(L.rawday===void 0||!isFinite(L.rawday)&&new Date(L.date.getFullYear(),isFinite(L.rawmonth)?L.month:L.date.getMonth()+1,0).getDate()>=L.day||L.day=="29"&&(!isFinite(L.rawyear)||L.rawyear===void 0||L.rawyear==="")||new Date(L.date.getFullYear(),isFinite(L.rawmonth)?L.month:L.date.getMonth()+1,0).getDate()>=L.day)return B;if(L.day=="29"){var z=K.call(this,B.pos,q,this.maskset);if(z.targetMatch&&z.targetMatch[0]==="yyyy"&&B.pos-z.targetMatchIndex==2)return B.remove=B.pos+1,B}else if(L.date.getMonth()==2&&L.day=="30"&&B.c!==void 0)return L.day="03",L.date.setDate(3),L.date.setMonth(1),B.insert=[{pos:B.pos,c:"0"},{pos:B.pos+1,c:B.c}],B.caret=p.seekNext.call(this,B.pos+1),B;return!1}function W(L,B,q,z){var Q,ie,G="",ne=0,j={};for(O(q).lastIndex=0;Q=O(q).exec(L);){if(B===void 0)if(ie=D(Q))G+="("+ie[0]+")",q.placeholder&&q.placeholder!==""?(j[ne]=q.placeholder[Q.index%q.placeholder.length],j[q.placeholder[Q.index%q.placeholder.length]]=Q[0].charAt(0)):j[ne]=Q[0].charAt(0);else switch(Q[0]){case"[":G+="(";break;case"]":G+=")?";break;default:G+=(0,c.default)(Q[0]),j[ne]=Q[0].charAt(0)}else(ie=D(Q))?z!==!0&&ie[3]?G+=ie[3].call(B.date):ie[2]?G+=B["raw"+ie[2]]:G+=Q[0]:G+=Q[0];ne++}return B===void 0&&(q.placeholder=j),G}function U(L,B,q){for(L=String(L),B=B||2;L.length<B;)L=q?L+"0":"0"+L;return L}function N(L,B,q){return typeof L=="string"?new v(L,B,q,this):L&&E(L)==="object"&&Object.prototype.hasOwnProperty.call(L,"date")?L:void 0}function I(L,B){return W(B.inputFormat,{date:L},B)}function K(L,B,q){var z,Q,ie=this,G=q&&q.tests[L]?B.placeholder[q.tests[L][0].match.placeholder]||q.tests[L][0].match.placeholder:"",ne=0,j=0;for(O(B).lastIndex=0;Q=O(B).exec(B.inputFormat);){var H=/\d+$/.exec(Q[0]);if(H)j=parseInt(H[0]);else{for(var se=Q[0][0],te=ne;ie&&(B.placeholder[h.getTest.call(ie,te).match.placeholder]||h.getTest.call(ie,te).match.placeholder)===se;)te++;(j=te-ne)===0&&(j=Q[0].length)}if(ne+=j,Q[0].indexOf(G)!=-1||ne>=L+1){z=Q,Q=O(B).exec(B.inputFormat);break}}return{targetMatchIndex:ne-j,nextMatch:Q,targetMatch:z}}d.default.extendAliases({datetime:{mask:function(L){return L.numericInput=!1,C.S=y.ordinalSuffix.join("|"),L.inputFormat=x[L.inputFormat]||L.inputFormat,L.displayFormat=x[L.displayFormat]||L.displayFormat||L.inputFormat,L.outputFormat=x[L.outputFormat]||L.outputFormat||L.inputFormat,L.regex=W(L.inputFormat,void 0,L),L.min=N(L.min,L.inputFormat,L),L.max=N(L.max,L.inputFormat,L),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(L,B,q,z,Q,ie,G,ne){if(ne)return!0;if(isNaN(q)&&L[B]!==q){var j=K.call(this,B,Q,ie);if(j.nextMatch&&j.nextMatch[0]===q&&j.targetMatch[0].length>1){var H=D(j.targetMatch)[0];if(new RegExp(H).test("0"+L[B-1]))return L[B]=L[B-1],L[B-1]="0",{fuzzy:!0,buffer:L,refreshFromBuffer:{start:B-1,end:B+1},pos:B+1}}}return!0},postValidation:function(L,B,q,z,Q,ie,G,ne){var j,H,se=this;if(G)return!0;if(z===!1&&(((j=K.call(se,B+1,Q,ie)).targetMatch&&j.targetMatchIndex===B&&j.targetMatch[0].length>1&&C[j.targetMatch[0]]!==void 0||(j=K.call(se,B+2,Q,ie)).targetMatch&&j.targetMatchIndex===B+1&&j.targetMatch[0].length>1&&C[j.targetMatch[0]]!==void 0)&&(H=D(j.targetMatch)[0]),H!==void 0&&(ie.validPositions[B+1]!==void 0&&new RegExp(H).test(q+"0")?(L[B]=q,L[B+1]="0",z={pos:B+2,caret:B}):new RegExp(H).test("0"+q)&&(L[B]="0",L[B+1]=q,z={pos:B+2})),z===!1))return z;if(z.fuzzy&&(L=z.buffer,B=z.pos),(j=K.call(se,B,Q,ie)).targetMatch&&j.targetMatch[0]&&C[j.targetMatch[0]]!==void 0){var te=D(j.targetMatch);H=te[0];var ee=L.slice(j.targetMatchIndex,j.targetMatchIndex+j.targetMatch[0].length);if(new RegExp(H).test(ee.join(""))===!1&&j.targetMatch[0].length===2&&ie.validPositions[j.targetMatchIndex]&&ie.validPositions[j.targetMatchIndex+1]&&(ie.validPositions[j.targetMatchIndex+1].input="0"),te[2]=="year")for(var pe=h.getMaskTemplate.call(se,!1,1,void 0,!0),le=B+1;le<L.length;le++)L[le]=pe[le],ie.validPositions.splice(B+1,1)}var ve=z,ye=N.call(se,L.join(""),Q.inputFormat,Q);return ve&&!isNaN(ye.date.getTime())&&(Q.prefillYear&&(ve=(function(Me,Ne,He){if(Me.year!==Me.rawyear){var Le=R.toString(),Y=Me.rawyear.replace(/[^0-9]/g,""),J=Le.slice(0,Y.length),Z=Le.slice(Y.length);if(Y.length===2&&Y===J){var de=new Date(R,Me.month-1,Me.day);Me.day==de.getDate()&&(!He.max||He.max.date.getTime()>=de.getTime())&&(Me.date.setFullYear(R),Me.year=Le,Ne.insert=[{pos:Ne.pos+1,c:Z[0]},{pos:Ne.pos+2,c:Z[1]}])}}return Ne})(ye,ve,Q)),ve=(function(Me,Ne,He,Le,Y){if(!Ne)return Ne;if(Ne&&He.min&&!isNaN(He.min.date.getTime())){var J;for(Me.reset(),O(He).lastIndex=0;J=O(He).exec(He.inputFormat);){var Z;if((Z=D(J))&&Z[3]){for(var de=Z[1],ue=Me[Z[2]],xe=He.min[Z[2]],Pe=He.max?He.max[Z[2]]:xe+1,Te=[],_e=!1,Ie=0;Ie<xe.length;Ie++)Le.validPositions[Ie+J.index]!==void 0||_e?(Te[Ie]=ue[Ie],_e=_e||ue[Ie]>xe[Ie]):(Ie+J.index==0&&ue[Ie]<xe[Ie]?(Te[Ie]=ue[Ie],_e=!0):Te[Ie]=xe[Ie],Z[2]==="year"&&ue.length-1==Ie&&xe!=Pe&&(Te=(parseInt(Te.join(""))+1).toString().split("")),Z[2]==="ampm"&&xe!=Pe&&He.min.date.getTime()>Me.date.getTime()&&(Te[Ie]=Pe[Ie]));de.call(Me._date,Te.join(""))}}Ne=He.min.date.getTime()<=Me.date.getTime(),Me.reInit()}return Ne&&He.max&&(isNaN(He.max.date.getTime())||(Ne=He.max.date.getTime()>=Me.date.getTime())),Ne})(ye,ve=V.call(se,ye,ve,Q),Q,ie)),B!==void 0&&ve&&z.pos!==B?{buffer:W(Q.inputFormat,ye,Q).split(""),refreshFromBuffer:{start:B,end:z.pos},pos:z.caret||z.pos}:ve},onKeyDown:function(L,B,q,z){L.ctrlKey&&L.key===f.keys.ArrowRight&&(this.inputmask._valueSet(I(new Date,z)),T(this).trigger("setvalue"))},onUnMask:function(L,B,q){return B&&W(q.outputFormat,N.call(this,L,q.inputFormat,q),q,!0)},casing:function(L,B,q,z){if(B.nativeDef.indexOf("[ap]")==0)return L.toLowerCase();if(B.nativeDef.indexOf("[AP]")==0)return L.toUpperCase();var Q=h.getTest.call(this,[q-1]);return Q.match.def.indexOf("[AP]")==0||q===0||Q&&Q.input===String.fromCharCode(f.keyCode.Space)||Q&&Q.match.def===String.fromCharCode(f.keyCode.Space)?L.toUpperCase():L.toLowerCase()},onBeforeMask:function(L,B){return Object.prototype.toString.call(L)==="[object Date]"&&(L=I(L,B)),L},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c};d.default.dependencyLib.extend(!0,d.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711),p=u(4713);function h(b){return(function(g){if(Array.isArray(g))return S(g)})(b)||(function(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)})(b)||(function(g,T){if(g){if(typeof g=="string")return S(g,T);var v=Object.prototype.toString.call(g).slice(8,-1);if(v==="Object"&&g.constructor&&(v=g.constructor.name),v==="Map"||v==="Set")return Array.from(g);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return S(g,T)}})(b)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function S(b,g){(g==null||g>b.length)&&(g=b.length);for(var T=0,v=new Array(g);T<g;T++)v[T]=b[T];return v}d.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var m=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function E(b,g,T,v,R){if(T-1>-1&&g.buffer[T-1]!=="."?(b=g.buffer[T-1]+b,b=T-2>-1&&g.buffer[T-2]!=="."?g.buffer[T-2]+b:"0"+b):b="00"+b,R.greedy&&parseInt(b)>255&&m.test("00"+b.charAt(2))){var y=[].concat(h(g.buffer.slice(0,T)),[".",b.charAt(2)]);if(y.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:y,caret:T+2}}return m.test(b)}d.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:E},j:{validator:E},k:{validator:E},l:{validator:E}},onUnMask:function(b,g,T){return b},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(b){var g=b.separator,T=b.quantifier,v="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",R=v;if(g)for(var y=0;y<T;y++)R+="[".concat(g).concat(v,"]");return R},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(b,g){return(b=b.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(b,g,T){return b},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(b,g,T,v,R,y,M){var C=p.getMaskTemplate.call(this,!0,f.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(C.join(""))}}})},207:function(a,l,u){var c=h(u(7184)),d=h(u(2394)),f=u(2839),p=u(8711);function h(v){return v&&v.__esModule?v:{default:v}}var S=d.default.dependencyLib;function m(v,R){for(var y="",M=0;M<v.length;M++)d.default.prototype.definitions[v.charAt(M)]||R.definitions[v.charAt(M)]||R.optionalmarker[0]===v.charAt(M)||R.optionalmarker[1]===v.charAt(M)||R.quantifiermarker[0]===v.charAt(M)||R.quantifiermarker[1]===v.charAt(M)||R.groupmarker[0]===v.charAt(M)||R.groupmarker[1]===v.charAt(M)||R.alternatormarker===v.charAt(M)?y+="\\"+v.charAt(M):y+=v.charAt(M);return y}function E(v,R,y,M){if(v.length>0&&R>0&&(!y.digitsOptional||M)){var C=v.indexOf(y.radixPoint),x=!1;y.negationSymbol.back===v[v.length-1]&&(x=!0,v.length--),C===-1&&(v.push(y.radixPoint),C=v.length-1);for(var w=1;w<=R;w++)isFinite(v[C+w])||(v[C+w]="0")}return x&&v.push(y.negationSymbol.back),v}function b(v,R){var y=0;for(var M in v==="+"&&(y=p.seekNext.call(this,R.validPositions.length-1)),R.tests)if((M=parseInt(M))>=y){for(var C=0,x=R.tests[M].length;C<x;C++)if((R.validPositions[M]===void 0||v==="-")&&R.tests[M][C].match.def===v)return M+(R.validPositions[M]!==void 0&&v!=="-"?1:0)}return y}function g(v,R){for(var y=-1,M=0,C=R.validPositions.length;M<C;M++){var x=R.validPositions[M];if(x&&x.match.def===v){y=M;break}}return y}function T(v,R,y,M,C){var x=R.buffer?R.buffer.indexOf(C.radixPoint):-1,w=(x!==-1||M&&C.jitMasking)&&new RegExp(C.definitions[9].validator).test(v);return!M&&C._radixDance&&x!==-1&&w&&R.validPositions[x]==null?{insert:{pos:x===y?x+1:x,c:C.radixPoint},pos:y}:w}d.default.extendAliases({numeric:{mask:function(v){v.repeat=0,v.groupSeparator===v.radixPoint&&v.digits&&v.digits!=="0"&&(v.radixPoint==="."?v.groupSeparator=",":v.radixPoint===","?v.groupSeparator=".":v.groupSeparator=""),v.groupSeparator===" "&&(v.skipOptionalPartCharacter=void 0),v.placeholder.length>1&&(v.placeholder=v.placeholder.charAt(0)),v.positionCaretOnClick==="radixFocus"&&v.placeholder===""&&(v.positionCaretOnClick="lvp");var R="0",y=v.radixPoint;v.numericInput===!0&&v.__financeInput===void 0?(R="1",v.positionCaretOnClick=v.positionCaretOnClick==="radixFocus"?"lvp":v.positionCaretOnClick,v.digitsOptional=!1,isNaN(v.digits)&&(v.digits=2),v._radixDance=!1,y=v.radixPoint===","?"?":"!",v.radixPoint!==""&&v.definitions[y]===void 0&&(v.definitions[y]={},v.definitions[y].validator="["+v.radixPoint+"]",v.definitions[y].placeholder=v.radixPoint,v.definitions[y].static=!0,v.definitions[y].generated=!0)):(v.__financeInput=!1,v.numericInput=!0);var M,C="[+]";if(C+=m(v.prefix,v),v.groupSeparator!==""?(v.definitions[v.groupSeparator]===void 0&&(v.definitions[v.groupSeparator]={},v.definitions[v.groupSeparator].validator="["+v.groupSeparator+"]",v.definitions[v.groupSeparator].placeholder=v.groupSeparator,v.definitions[v.groupSeparator].static=!0,v.definitions[v.groupSeparator].generated=!0),C+=v._mask(v)):C+="9{+}",v.digits!==void 0&&v.digits!==0){var x=v.digits.toString().split(",");isFinite(x[0])&&x[1]&&isFinite(x[1])?C+=y+R+"{"+v.digits+"}":(isNaN(v.digits)||parseInt(v.digits)>0)&&(v.digitsOptional||v.jitMasking?(M=C+y+R+"{0,"+v.digits+"}",v.keepStatic=!0):C+=y+R+"{"+v.digits+"}")}else v.inputmode="numeric";return C+=m(v.suffix,v),C+="[-]",M&&(C=[M+m(v.suffix,v)+"[-]",C]),v.greedy=!1,(function(w){w.parseMinMaxOptions===void 0&&(w.min!==null&&(w.min=w.min.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.min=w.min.replace(w.radixPoint,".")),w.min=isFinite(w.min)?parseFloat(w.min):NaN,isNaN(w.min)&&(w.min=Number.MIN_VALUE)),w.max!==null&&(w.max=w.max.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.max=w.max.replace(w.radixPoint,".")),w.max=isFinite(w.max)?parseFloat(w.max):NaN,isNaN(w.max)&&(w.max=Number.MAX_VALUE)),w.parseMinMaxOptions="done")})(v),v.radixPoint!==""&&v.substituteRadixPoint&&(v.substitutes[v.radixPoint=="."?",":"."]=v.radixPoint),C},_mask:function(v){return"("+v.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:T},1:{validator:T,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(v,R,y,M,C){return C.allowMinus&&(v==="-"||v===C.negationSymbol.front)}},"-":{validator:function(v,R,y,M,C){return C.allowMinus&&v===C.negationSymbol.back}}},preValidation:function(v,R,y,M,C,x,w,_){var D=this;if(C.__financeInput!==!1&&y===C.radixPoint)return!1;var O=v.indexOf(C.radixPoint),V=R;if(R=(function(K,L,B,q,z){return z._radixDance&&z.numericInput&&L!==z.negationSymbol.back&&K<=B&&(B>0||L==z.radixPoint)&&(q.validPositions[K-1]===void 0||q.validPositions[K-1].input!==z.negationSymbol.back)&&(K-=1),K})(R,y,O,x,C),y==="-"||y===C.negationSymbol.front){if(C.allowMinus!==!0)return!1;var W=!1,U=g("+",x),N=g("-",x);return U!==-1&&(W=[U],N!==-1&&W.push(N)),W!==!1?{remove:W,caret:V-C.negationSymbol.back.length}:{insert:[{pos:b.call(D,"+",x),c:C.negationSymbol.front,fromIsValid:!0},{pos:b.call(D,"-",x),c:C.negationSymbol.back,fromIsValid:void 0}],caret:V+C.negationSymbol.back.length}}if(y===C.groupSeparator)return{caret:V};if(_)return!0;if(O!==-1&&C._radixDance===!0&&M===!1&&y===C.radixPoint&&C.digits!==void 0&&(isNaN(C.digits)||parseInt(C.digits)>0)&&O!==R){var I=b.call(D,C.radixPoint,x);return x.validPositions[I]&&(x.validPositions[I].generatedInput=x.validPositions[I].generated||!1),{caret:C._radixDance&&R===O-1?O+1:O}}if(C.__financeInput===!1){if(M){if(C.digitsOptional)return{rewritePosition:w.end};if(!C.digitsOptional){if(w.begin>O&&w.end<=O)return y===C.radixPoint?{insert:{pos:O+1,c:"0",fromIsValid:!0},rewritePosition:O}:{rewritePosition:O+1};if(w.begin<O)return{rewritePosition:w.begin-1}}}else if(!C.showMaskOnHover&&!C.showMaskOnFocus&&!C.digitsOptional&&C.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:O}}return{rewritePosition:R}},postValidation:function(v,R,y,M,C,x,w){if(M===!1)return M;if(w)return!0;if(C.min!==null||C.max!==null){var _=C.onUnMask(v.slice().reverse().join(""),void 0,S.extend({},C,{unmaskAsNumber:!0}));if(C.min!==null&&_<C.min&&(_.toString().length>C.min.toString().length||_<0))return!1;if(C.max!==null&&_>C.max)return!!C.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:E(C.max.toString().replace(".",C.radixPoint).split(""),C.digits,C).reverse()}}return M},onUnMask:function(v,R,y){if(R===""&&y.nullable===!0)return R;var M=v.replace(y.prefix,"");return M=(M=M.replace(y.suffix,"")).replace(new RegExp((0,c.default)(y.groupSeparator),"g"),""),y.placeholder.charAt(0)!==""&&(M=M.replace(new RegExp(y.placeholder.charAt(0),"g"),"0")),y.unmaskAsNumber?(y.radixPoint!==""&&M.indexOf(y.radixPoint)!==-1&&(M=M.replace(c.default.call(this,y.radixPoint),".")),M=(M=M.replace(new RegExp("^"+(0,c.default)(y.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(y.negationSymbol.back)+"$"),""),Number(M)):M},isComplete:function(v,R){var y=(R.numericInput?v.slice().reverse():v).join("");return y=(y=(y=(y=(y=y.replace(new RegExp("^"+(0,c.default)(R.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(R.negationSymbol.back)+"$"),"")).replace(R.prefix,"")).replace(R.suffix,"")).replace(new RegExp((0,c.default)(R.groupSeparator)+"([0-9]{3})","g"),"$1"),R.radixPoint===","&&(y=y.replace((0,c.default)(R.radixPoint),".")),isFinite(y)},onBeforeMask:function(v,R){var y;v=(y=v)!==null&&y!==void 0?y:"";var M=R.radixPoint||",";isFinite(R.digits)&&(R.digits=parseInt(R.digits)),typeof v!="number"&&R.inputType!=="number"||M===""||(v=v.toString().replace(".",M));var C=v.charAt(0)==="-"||v.charAt(0)===R.negationSymbol.front,x=v.split(M),w=x[0].replace(/[^\-0-9]/g,""),_=x.length>1?x[1].replace(/[^0-9]/g,""):"",D=x.length>1;v=w+(_!==""?M+_:_);var O=0;if(M!==""&&(O=R.digitsOptional?R.digits<_.length?R.digits:_.length:R.digits,_!==""||!R.digitsOptional)){var V=Math.pow(10,O||1);v=v.replace((0,c.default)(M),"."),isNaN(parseFloat(v))||(v=(R.roundingFN(parseFloat(v)*V)/V).toFixed(O)),v=v.toString().replace(".",M)}if(R.digits===0&&v.indexOf(M)!==-1&&(v=v.substring(0,v.indexOf(M))),R.min!==null||R.max!==null){var W=v.toString().replace(M,".");R.min!==null&&W<R.min?v=R.min.toString().replace(".",M):R.max!==null&&W>R.max&&(v=R.max.toString().replace(".",M))}return C&&v.charAt(0)!=="-"&&(v="-"+v),E(v.toString().split(""),O,R,D).join("")},onBeforeWrite:function(v,R,y,M){function C(N,I){if(M.__financeInput!==!1||I){var K=N.indexOf(M.radixPoint);K!==-1&&N.splice(K,1)}if(M.groupSeparator!=="")for(;(K=N.indexOf(M.groupSeparator))!==-1;)N.splice(K,1);return N}var x,w;if(M.stripLeadingZeroes&&(w=(function(N,I){var K=new RegExp("(^"+(I.negationSymbol.front!==""?(0,c.default)(I.negationSymbol.front)+"?":"")+(0,c.default)(I.prefix)+")(.*)("+(0,c.default)(I.suffix)+(I.negationSymbol.back!=""?(0,c.default)(I.negationSymbol.back)+"?":"")+"$)").exec(N.slice().reverse().join("")),L=K?K[2]:"",B=!1;return L&&(L=L.split(I.radixPoint.charAt(0))[0],B=new RegExp("^[0"+I.groupSeparator+"]*").exec(L)),!(!B||!(B[0].length>1||B[0].length>0&&B[0].length<L.length))&&B})(R,M)))for(var _=R.join("").lastIndexOf(w[0].split("").reverse().join(""))-(w[0]==w.input?0:1),D=w[0]==w.input?1:0,O=w[0].length-D;O>0;O--)this.maskset.validPositions.splice(_+O,1),delete R[_+O];if(v)switch(v.type){case"blur":case"checkval":if(M.min!==null){var V=M.onUnMask(R.slice().reverse().join(""),void 0,S.extend({},M,{unmaskAsNumber:!0}));if(M.min!==null&&V<M.min)return{refreshFromBuffer:!0,buffer:E(M.min.toString().replace(".",M.radixPoint).split(""),M.digits,M).reverse()}}if(R[R.length-1]===M.negationSymbol.front){var W=new RegExp("(^"+(M.negationSymbol.front!=""?(0,c.default)(M.negationSymbol.front)+"?":"")+(0,c.default)(M.prefix)+")(.*)("+(0,c.default)(M.suffix)+(M.negationSymbol.back!=""?(0,c.default)(M.negationSymbol.back)+"?":"")+"$)").exec(C(R.slice(),!0).reverse().join(""));(W?W[2]:"")==0&&(x={refreshFromBuffer:!0,buffer:[0]})}else M.radixPoint!==""&&R.indexOf(M.radixPoint)===M.suffix.length&&(x&&x.buffer?x.buffer.splice(0,1+M.suffix.length):(R.splice(0,1+M.suffix.length),x={refreshFromBuffer:!0,buffer:C(R)}));if(M.enforceDigitsOnBlur){var U=(x=x||{})&&x.buffer||R.slice().reverse();x.refreshFromBuffer=!0,x.buffer=E(U,M.digits,M,!0).reverse()}}return x},onKeyDown:function(v,R,y,M){var C,x=S(this);if(v.location!=3){var w,_=v.key;if((w=M.shortcuts&&M.shortcuts[_])&&w.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(w)),x.trigger("setvalue"),!1}if(v.ctrlKey)switch(v.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(M.step)),x.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(M.step)),x.trigger("setvalue"),!1}if(!v.shiftKey&&(v.key===f.keys.Delete||v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI)&&y.begin!==R.length){if(R[v.key===f.keys.Delete?y.begin-1:y.end]===M.negationSymbol.front)return C=R.slice().reverse(),M.negationSymbol.front!==""&&C.shift(),M.negationSymbol.back!==""&&C.pop(),x.trigger("setvalue",[C.join(""),y.begin]),!1;if(M._radixDance===!0){var D,O=R.indexOf(M.radixPoint);if(M.digitsOptional){if(O===0)return(C=R.slice().reverse()).pop(),x.trigger("setvalue",[C.join(""),y.begin>=C.length?C.length:y.begin]),!1}else if(O!==-1&&(y.begin<O||y.end<O||v.key===f.keys.Delete&&(y.begin===O||y.begin-1===O)))return y.begin===y.end&&(v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI?y.begin++:v.key===f.keys.Delete&&y.begin-1===O&&(D=S.extend({},y),y.begin--,y.end--)),(C=R.slice().reverse()).splice(C.length-y.begin,y.begin-y.end+1),C=E(C,M.digits,M).join(""),D&&(y=D),x.trigger("setvalue",[C,y.begin>=C.length?O+1:y.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(v){return"("+v.groupSeparator+"99){*|1}("+v.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=!(typeof window>"u"||!window.document||!window.document.createElement);l.default=u?window:{}},7760:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.HandleNativePlaceholder=function(T,v){var R=T?T.inputmask:this;if(c.ie){if(T.inputmask._valueGet()!==v&&(T.placeholder!==v||T.placeholder==="")){var y=p.getBuffer.call(R).slice(),M=T.inputmask._valueGet();if(M!==v){var C=p.getLastValidPosition.call(R);C===-1&&M===p.getBufferTemplate.call(R).join("")?y=[]:C!==-1&&E.call(R,y),g(T,y)}}}else T.placeholder!==v&&(T.placeholder=v,T.placeholder===""&&T.removeAttribute("placeholder"))},l.applyInputValue=m,l.checkVal=b,l.clearOptionalTail=E,l.unmaskedvalue=function(T){var v=T?T.inputmask:this,R=v.opts,y=v.maskset;if(T){if(T.inputmask===void 0)return T.value;T.inputmask&&T.inputmask.refreshValue&&m(T,T.inputmask._valueGet(!0))}for(var M=[],C=y.validPositions,x=0,w=C.length;x<w;x++)C[x]&&C[x].match&&(C[x].match.static!=1||Array.isArray(y.metadata)&&C[x].generatedInput!==!0)&&M.push(C[x].input);var _=M.length===0?"":(v.isRTL?M.reverse():M).join("");if(typeof R.onUnMask=="function"){var D=(v.isRTL?p.getBuffer.call(v).slice().reverse():p.getBuffer.call(v)).join("");_=R.onUnMask.call(v,D,_,R)}return _},l.writeBuffer=g;var c=u(9845),d=u(6030),f=u(2839),p=u(8711),h=u(7215),S=u(4713);function m(T,v,R){var y=T?T.inputmask:this,M=y.opts;T.inputmask.refreshValue=!1,typeof M.onBeforeMask=="function"&&(v=M.onBeforeMask.call(y,v,M)||v),b(T,!0,!1,v=(v||"").toString().split(""),R),y.undoValue=y._valueGet(!0),(M.clearMaskOnLostFocus||M.clearIncomplete)&&T.inputmask._valueGet()===p.getBufferTemplate.call(y).join("")&&p.getLastValidPosition.call(y)===-1&&T.inputmask._valueSet("")}function E(T){T.length=0;for(var v,R=S.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(v=R.shift())!==void 0;)T.push(v);return T}function b(T,v,R,y,M){var C,x=T?T.inputmask:this,w=x.maskset,_=x.opts,D=x.dependencyLib,O=y.slice(),V="",W=-1,U=_.skipOptionalPartCharacter;_.skipOptionalPartCharacter="",p.resetMaskSet.call(x,!1),x.clicked=0,W=_.radixPoint?p.determineNewCaretPosition.call(x,{begin:0,end:0},!1,_.__financeInput===!1?"radixFocus":void 0).begin:0,w.p=W,x.caretPos={begin:W};var N=[],I=x.caretPos;if(O.forEach((function(Q,ie){if(Q!==void 0){var G=new D.Event("_checkval");G.key=Q,V+=Q;var ne=p.getLastValidPosition.call(x,void 0,!0);(function(j,H){for(var se=S.getMaskTemplate.call(x,!0,0).slice(j,p.seekNext.call(x,j,!1,!1)).join("").replace(/'/g,""),te=se.indexOf(H);te>0&&se[te-1]===" ";)te--;var ee=te===0&&!p.isMask.call(x,j)&&(S.getTest.call(x,j).match.nativeDef===H.charAt(0)||S.getTest.call(x,j).match.static===!0&&S.getTest.call(x,j).match.nativeDef==="'"+H.charAt(0)||S.getTest.call(x,j).match.nativeDef===" "&&(S.getTest.call(x,j+1).match.nativeDef===H.charAt(0)||S.getTest.call(x,j+1).match.static===!0&&S.getTest.call(x,j+1).match.nativeDef==="'"+H.charAt(0)));if(!ee&&te>0&&!p.isMask.call(x,j,!1,!0)){var pe=p.seekNext.call(x,j);x.caretPos.begin<pe&&(x.caretPos={begin:pe})}return ee})(W,V)?C=d.EventHandlers.keypressEvent.call(x,G,!0,!1,R,ne+1):(C=d.EventHandlers.keypressEvent.call(x,G,!0,!1,R,x.caretPos.begin))&&(W=x.caretPos.begin+1,V=""),C?(C.pos!==void 0&&w.validPositions[C.pos]&&w.validPositions[C.pos].match.static===!0&&w.validPositions[C.pos].alternation===void 0&&(N.push(C.pos),x.isRTL||(C.forwardPosition=C.pos+1)),g.call(x,void 0,p.getBuffer.call(x),C.forwardPosition,G,!1),x.caretPos={begin:C.forwardPosition,end:C.forwardPosition},I=x.caretPos):w.validPositions[ie]===void 0&&O[ie]===S.getPlaceholder.call(x,ie)&&p.isMask.call(x,ie,!0)?x.caretPos.begin++:x.caretPos=I}})),N.length>0){var K,L,B=p.seekNext.call(x,-1,void 0,!1);if(!h.isComplete.call(x,p.getBuffer.call(x))&&N.length<=B||h.isComplete.call(x,p.getBuffer.call(x))&&N.length>0&&N.length!==B&&N[0]===0){for(var q=B;(K=N.shift())!==void 0;)if(K<q){var z=new D.Event("_checkval");if((L=w.validPositions[K]).generatedInput=!0,z.key=L.input,(C=d.EventHandlers.keypressEvent.call(x,z,!0,!1,R,q))&&C.pos!==void 0&&C.pos!==K&&w.validPositions[C.pos]&&w.validPositions[C.pos].match.static===!0)N.push(C.pos);else if(!C)break;q++}}}v&&g.call(x,T,p.getBuffer.call(x),C?C.forwardPosition:x.caretPos.begin,M||new D.Event("checkval"),M&&(M.type==="input"&&x.undoValue!==p.getBuffer.call(x).join("")||M.type==="paste")),_.skipOptionalPartCharacter=U}function g(T,v,R,y,M){var C=T?T.inputmask:this,x=C.opts,w=C.dependencyLib;if(y&&typeof x.onBeforeWrite=="function"){var _=x.onBeforeWrite.call(C,y,v,R,x);if(_){if(_.refreshFromBuffer){var D=_.refreshFromBuffer;h.refreshFromBuffer.call(C,D===!0?D:D.start,D.end,_.buffer||v),v=p.getBuffer.call(C,!0)}R!==void 0&&(R=_.caret!==void 0?_.caret:R)}}if(T!==void 0&&(T.inputmask._valueSet(v.join("")),R===void 0||y!==void 0&&y.type==="blur"||p.caret.call(C,T,R,void 0,void 0,y!==void 0&&y.type==="keydown"&&(y.key===f.keys.Delete||y.key===f.keys.Backspace)),T.inputmask.writeBufferHook===void 0||T.inputmask.writeBufferHook(R),M===!0)){var O=w(T),V=T.inputmask._valueGet();T.inputmask.skipInputEvent=!0,O.trigger("input"),setTimeout((function(){V===p.getBufferTemplate.call(C).join("")?O.trigger("cleared"):h.isComplete.call(C,v)===!0&&O.trigger("complete")}),0)}}},2394:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=R(u(3976)),d=R(u(7392)),f=R(u(4963)),p=u(9716),h=R(u(9380)),S=u(7760),m=u(157),E=u(2391),b=u(8711),g=u(7215),T=u(4713);function v(w){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},v(w)}function R(w){return w&&w.__esModule?w:{default:w}}var y=h.default.document,M="_inputmask_opts";function C(w,_,D){if(!(this instanceof C))return new C(w,_,D);this.dependencyLib=f.default,this.el=void 0,this.events={},this.maskset=void 0,D!==!0&&(Object.prototype.toString.call(w)==="[object Object]"?_=w:(_=_||{},w&&(_.alias=w)),this.opts=f.default.extend(!0,{},this.defaults,_),this.noMasksCache=_&&_.definitions!==void 0,this.userOptions=_||{},x(this.opts.alias,_,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function x(w,_,D){var O=C.prototype.aliases[w];return O?(O.alias&&x(O.alias,void 0,D),f.default.extend(!0,D,O),f.default.extend(!0,D,_),!0):(D.mask===null&&(D.mask=w),!1)}C.prototype={dataAttribute:"data-inputmask",defaults:c.default,definitions:d.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(w){var _=this;return typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:Array.isArray(w)?w:[].slice.call(w)).forEach((function(D,O){var V=f.default.extend(!0,{},_.opts);if((function(U,N,I,K){function L(G,ne){var j=K===""?G:K+"-"+G;(ne=ne!==void 0?ne:U.getAttribute(j))!==null&&(typeof ne=="string"&&(G.indexOf("on")===0?ne=h.default[ne]:ne==="false"?ne=!1:ne==="true"&&(ne=!0)),I[G]=ne)}if(N.importDataAttributes===!0){var B,q,z,Q,ie=U.getAttribute(K);if(ie&&ie!==""&&(ie=ie.replace(/'/g,'"'),q=JSON.parse("{"+ie+"}")),q){for(Q in z=void 0,q)if(Q.toLowerCase()==="alias"){z=q[Q];break}}for(B in L("alias",z),I.alias&&x(I.alias,I,N),N){if(q){for(Q in z=void 0,q)if(Q.toLowerCase()===B.toLowerCase()){z=q[Q];break}}L(B,z)}}return f.default.extend(!0,N,I),(U.dir==="rtl"||N.rightAlign)&&(U.style.textAlign="right"),(U.dir==="rtl"||N.numericInput)&&(U.dir="ltr",U.removeAttribute("dir"),N.isRTL=!0),Object.keys(I).length})(D,V,f.default.extend(!0,{},_.userOptions),_.dataAttribute)){var W=(0,E.generateMaskSet)(V,_.noMasksCache);W!==void 0&&(D.inputmask!==void 0&&(D.inputmask.opts.autoUnmask=!0,D.inputmask.remove()),D.inputmask=new C(void 0,void 0,!0),D.inputmask.opts=V,D.inputmask.noMasksCache=_.noMasksCache,D.inputmask.userOptions=f.default.extend(!0,{},_.userOptions),D.inputmask.el=D,D.inputmask.$el=(0,f.default)(D),D.inputmask.maskset=W,f.default.data(D,M,_.userOptions),m.mask.call(D.inputmask))}})),w&&w[0]&&w[0].inputmask||this},option:function(w,_){return typeof w=="string"?this.opts[w]:v(w)==="object"?(f.default.extend(this.userOptions,w),this.el&&_!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(w){if(this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||w!==void 0){var _=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!1,!1,_),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,b.getBuffer.call(this),0,this.opts)}return S.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){f.default.data(this.el,M,null);var w=this.opts.autoUnmask?(0,S.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);w!==b.getBufferTemplate.call(this).join("")?this._valueSet(w,this.opts.autoUnmask):this._valueSet(""),p.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):y.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?b.getBufferTemplate.call(this).reverse():b.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),g.isComplete.call(this,b.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var w=T.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(_){return _.mask!==w||(w=_,!1)})),w}return this.maskset.metadata},isValid:function(w){if(this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache),w){var _=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,_)}else w=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");for(var D=b.getBuffer.call(this),O=b.determineLastRequiredPosition.call(this),V=D.length-1;V>O&&!b.isMask.call(this,V);V--);return D.splice(O,V+1-O),g.isComplete.call(this,D)&&w===(this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join(""))},format:function(w,_){this.maskset=this.maskset||(0,E.generateMaskSet)(this.opts,this.noMasksCache);var D=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,D);var O=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");return _?{value:O,metadata:this.getmetadata()}:O},setValue:function(w){this.el&&(0,f.default)(this.el).trigger("setvalue",[w])},analyseMask:E.analyseMask},C.extendDefaults=function(w){f.default.extend(!0,C.prototype.defaults,w)},C.extendDefinitions=function(w){f.default.extend(!0,C.prototype.definitions,w)},C.extendAliases=function(w){f.default.extend(!0,C.prototype.aliases,w)},C.format=function(w,_,D){return C(_).format(w,D)},C.unmask=function(w,_){return C(_).unmaskedvalue(w)},C.isValid=function(w,_){return C(_).isValid(w)},C.remove=function(w){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(_){_.inputmask&&_.inputmask.remove()}))},C.setValue=function(w,_){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(D){D.inputmask?D.inputmask.setValue(_):(0,f.default)(D).trigger("setvalue",[_])}))},C.dependencyLib=f.default,h.default.Inputmask=C,l.default=C},5296:function(a,l,u){function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(y)}var d=T(u(9380)),f=T(u(2394));function p(y,M){for(var C=0;C<M.length;C++){var x=M[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,(w=x.key,_=void 0,_=(function(D,O){if(c(D)!=="object"||D===null)return D;var V=D[Symbol.toPrimitive];if(V!==void 0){var W=V.call(D,O);if(c(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(D)})(w,"string"),c(_)==="symbol"?_:String(_)),x)}var w,_}function h(y){var M=E();return function(){var C,x=g(y);if(M){var w=g(this).constructor;C=Reflect.construct(x,arguments,w)}else C=x.apply(this,arguments);return(function(_,D){if(D&&(c(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O})(_)})(this,C)}}function S(y){var M=typeof Map=="function"?new Map:void 0;return S=function(C){if(C===null||!(function(w){try{return Function.toString.call(w).indexOf("[native code]")!==-1}catch{return typeof w=="function"}})(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(M!==void 0){if(M.has(C))return M.get(C);M.set(C,x)}function x(){return m(C,arguments,g(this).constructor)}return x.prototype=Object.create(C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b(x,C)},S(y)}function m(y,M,C){return m=E()?Reflect.construct.bind():function(x,w,_){var D=[null];D.push.apply(D,w);var O=new(Function.bind.apply(x,D));return _&&b(O,_.prototype),O},m.apply(null,arguments)}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function b(y,M){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,x){return C.__proto__=x,C},b(y,M)}function g(y){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},g(y)}function T(y){return y&&y.__esModule?y:{default:y}}var v=d.default.document;if(v&&v.head&&v.head.attachShadow&&d.default.customElements&&d.default.customElements.get("input-mask")===void 0){var R=(function(y){(function(_,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(D&&D.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),D&&b(_,D)})(w,y);var M,C,x=h(w);function w(){var _;(function(U,N){if(!(U instanceof N))throw new TypeError("Cannot call a class as a function")})(this,w);var D=(_=x.call(this)).getAttributeNames(),O=_.attachShadow({mode:"closed"});for(var V in _.input=v.createElement("input"),_.input.type="text",O.appendChild(_.input),D)Object.prototype.hasOwnProperty.call(D,V)&&_.input.setAttribute(D[V],_.getAttribute(D[V]));var W=new f.default;return W.dataAttribute="",W.mask(_.input),_.input.inputmask.shadowRoot=O,_}return M=w,(C=[{key:"attributeChangedCallback",value:function(_,D,O){this.input.setAttribute(_,O)}},{key:"value",get:function(){return this.input.value},set:function(_){this.input.value=_}}])&&p(M.prototype,C),Object.defineProperty(M,"prototype",{writable:!1}),w})(S(HTMLElement));d.default.customElements.define("input-mask",R)}},2839:function(a,l){function u(m){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},u(m)}function c(m,E){return(function(b){if(Array.isArray(b))return b})(m)||(function(b,g){var T=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(T!=null){var v,R,y,M,C=[],x=!0,w=!1;try{if(y=(T=T.call(b)).next,g!==0)for(;!(x=(v=y.call(T)).done)&&(C.push(v.value),C.length!==g);x=!0);}catch(_){w=!0,R=_}finally{try{if(!x&&T.return!=null&&(M=T.return(),Object(M)!==M))return}finally{if(w)throw R}}return C}})(m,E)||(function(b,g){if(b){if(typeof b=="string")return d(b,g);var T=Object.prototype.toString.call(b).slice(8,-1);if(T==="Object"&&b.constructor&&(T=b.constructor.name),T==="Map"||T==="Set")return Array.from(b);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return d(b,g)}})(m,E)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function d(m,E){(E==null||E>m.length)&&(E=m.length);for(var b=0,g=new Array(E);b<E;b++)g[b]=m[b];return g}function f(m,E){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);E&&(g=g.filter((function(T){return Object.getOwnPropertyDescriptor(m,T).enumerable}))),b.push.apply(b,g)}return b}function p(m,E,b){return(E=(function(g){var T=(function(v,R){if(u(v)!=="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var M=y.call(v,R);if(u(M)!=="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(v)})(g,"string");return u(T)==="symbol"?T:String(T)})(E))in m?Object.defineProperty(m,E,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[E]=b,m}Object.defineProperty(l,"__esModule",{value:!0}),l.keys=l.keyCode=void 0,l.toKey=function(m,E){return S[m]||(E?String.fromCharCode(m):String.fromCharCode(m).toLowerCase())},l.toKeyCode=function(m){return h[m]};var h=l.keyCode=(function(m){for(var E=1;E<arguments.length;E++){var b=arguments[E]!=null?arguments[E]:{};E%2?f(Object(b),!0).forEach((function(g){p(m,g,b[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):f(Object(b)).forEach((function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(b,g))}))}return m})({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),S=Object.entries(h).reduce((function(m,E){var b=c(E,2),g=b[0],T=b[1];return m[T]=m[T]===void 0?g:m[T],m}),{});l.keys=Object.entries(h).reduce((function(m,E){var b=c(E,2),g=b[0];return b[1],m[g]=g==="Space"?" ":g,m}),{})},2391:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.analyseMask=function(E,b,g){var T,v,R,y,M,C,x=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,w=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,_=!1,D=new p.default,O=[],V=[],W=!1;function U(te,ee,pe){pe=pe!==void 0?pe:te.matches.length;var le=te.matches[pe-1];if(b){if(ee.indexOf("[")===0||_&&/\\d|\\s|\\w|\\p/i.test(ee)||ee==="."){var ve=g.casing?"i":"";/\\p\{.*}/i.test(ee)&&(ve+="u"),te.matches.splice(pe++,0,{fn:new RegExp(ee,ve),static:!1,optionality:!1,newBlockMarker:le===void 0?"master":le.def!==ee,casing:null,def:ee,placeholder:h(g.placeholder)==="object"?g.placeholder[D.matches.length]:void 0,nativeDef:ee})}else _&&(ee=ee[ee.length-1]),ee.split("").forEach((function(Me,Ne){le=te.matches[pe-1],te.matches.splice(pe++,0,{fn:/[a-z]/i.test(g.staticDefinitionSymbol||Me)?new RegExp("["+(g.staticDefinitionSymbol||Me)+"]",g.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:le===void 0?"master":le.def!==Me&&le.static!==!0,casing:null,def:g.staticDefinitionSymbol||Me,placeholder:g.staticDefinitionSymbol!==void 0?Me:h(g.placeholder)==="object"?g.placeholder[D.matches.length]:void 0,nativeDef:(_?"'":"")+Me})}));_=!1}else{var ye=g.definitions&&g.definitions[ee]||g.usePrototypeDefinitions&&f.default.prototype.definitions[ee];ye&&!_?te.matches.splice(pe++,0,{fn:ye.validator?typeof ye.validator=="string"?new RegExp(ye.validator,g.casing?"i":""):new function(){this.test=ye.validator}:/./,static:ye.static||!1,optionality:ye.optional||!1,defOptionality:ye.optional||!1,newBlockMarker:le===void 0||ye.optional?"master":le.def!==(ye.definitionSymbol||ee),casing:ye.casing,def:ye.definitionSymbol||ee,placeholder:ye.placeholder,nativeDef:ee,generated:ye.generated}):(te.matches.splice(pe++,0,{fn:/[a-z]/i.test(g.staticDefinitionSymbol||ee)?new RegExp("["+(g.staticDefinitionSymbol||ee)+"]",g.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:le===void 0?"master":le.def!==ee&&le.static!==!0,casing:null,def:g.staticDefinitionSymbol||ee,placeholder:g.staticDefinitionSymbol!==void 0?ee:void 0,nativeDef:(_?"'":"")+ee}),_=!1)}}function N(){if(O.length>0){if(U(y=O[O.length-1],v),y.isAlternator){M=O.pop();for(var te=0;te<M.matches.length;te++)M.matches[te].isGroup&&(M.matches[te].isGroup=!1);O.length>0?(y=O[O.length-1]).matches.push(M):D.matches.push(M)}}else U(D,v)}function I(te){var ee=new p.default(!0);return ee.openGroup=!1,ee.matches=te,ee}function K(){if((R=O.pop()).openGroup=!1,R!==void 0)if(O.length>0){if((y=O[O.length-1]).matches.push(R),y.isAlternator){M=O.pop();for(var te=0;te<M.matches.length;te++)M.matches[te].isGroup=!1,M.matches[te].alternatorGroup=!1;O.length>0?(y=O[O.length-1]).matches.push(M):D.matches.push(M)}}else D.matches.push(R);else N()}function L(te){var ee=te.pop();return ee.isQuantifier&&(ee=I([te.pop(),ee])),ee}for(b&&(g.optionalmarker[0]=void 0,g.optionalmarker[1]=void 0);T=b?w.exec(E):x.exec(E);){if(v=T[0],b){switch(v.charAt(0)){case"?":v="{0,1}";break;case"+":case"*":v="{"+v+"}";break;case"|":if(O.length===0){var B=I(D.matches);B.openGroup=!0,O.push(B),D.matches=[],W=!0}}switch(v){case"\\d":v="[0-9]";break;case"\\p":v+=w.exec(E)[0],v+=w.exec(E)[0]}}if(_)N();else switch(v.charAt(0)){case"$":case"^":b||N();break;case g.escapeChar:_=!0,b&&N();break;case g.optionalmarker[1]:case g.groupmarker[1]:K();break;case g.optionalmarker[0]:O.push(new p.default(!1,!0));break;case g.groupmarker[0]:O.push(new p.default(!0));break;case g.quantifiermarker[0]:var q=new p.default(!1,!1,!0),z=(v=v.replace(/[{}?]/g,"")).split("|"),Q=z[0].split(","),ie=isNaN(Q[0])?Q[0]:parseInt(Q[0]),G=Q.length===1?ie:isNaN(Q[1])?Q[1]:parseInt(Q[1]),ne=isNaN(z[1])?z[1]:parseInt(z[1]);ie!=="*"&&ie!=="+"||(ie=G==="*"?0:1),q.quantifier={min:ie,max:G,jit:ne};var j=O.length>0?O[O.length-1].matches:D.matches;(T=j.pop()).isGroup||(T=I([T])),j.push(T),j.push(q);break;case g.alternatormarker:if(O.length>0){var H=(y=O[O.length-1]).matches[y.matches.length-1];C=y.openGroup&&(H.matches===void 0||H.isGroup===!1&&H.isAlternator===!1)?O.pop():L(y.matches)}else C=L(D.matches);if(C.isAlternator)O.push(C);else if(C.alternatorGroup?(M=O.pop(),C.alternatorGroup=!1):M=new p.default(!1,!1,!1,!0),M.matches.push(C),O.push(M),C.openGroup){C.openGroup=!1;var se=new p.default(!0);se.alternatorGroup=!0,O.push(se)}break;default:N()}}for(W&&K();O.length>0;)R=O.pop(),D.matches.push(R);return D.matches.length>0&&((function te(ee){ee&&ee.matches&&ee.matches.forEach((function(pe,le){var ve=ee.matches[le+1];(ve===void 0||ve.matches===void 0||ve.isQuantifier===!1)&&pe&&pe.isGroup&&(pe.isGroup=!1,b||(U(pe,g.groupmarker[0],0),pe.openGroup!==!0&&U(pe,g.groupmarker[1]))),te(pe)}))})(D),V.push(D)),(g.numericInput||g.isRTL)&&(function te(ee){for(var pe in ee.matches=ee.matches.reverse(),ee.matches)if(Object.prototype.hasOwnProperty.call(ee.matches,pe)){var le=parseInt(pe);if(ee.matches[pe].isQuantifier&&ee.matches[le+1]&&ee.matches[le+1].isGroup){var ve=ee.matches[pe];ee.matches.splice(pe,1),ee.matches.splice(le+1,0,ve)}ee.matches[pe].matches!==void 0?ee.matches[pe]=te(ee.matches[pe]):ee.matches[pe]=((ye=ee.matches[pe])===g.optionalmarker[0]?ye=g.optionalmarker[1]:ye===g.optionalmarker[1]?ye=g.optionalmarker[0]:ye===g.groupmarker[0]?ye=g.groupmarker[1]:ye===g.groupmarker[1]&&(ye=g.groupmarker[0]),ye)}var ye;return ee})(V[0]),V},l.generateMaskSet=function(E,b){var g;function T(y,M){var C=M.repeat,x=M.groupmarker,w=M.quantifiermarker,_=M.keepStatic;if(C>0||C==="*"||C==="+"){var D=C==="*"?0:C==="+"?1:C;if(D!=C)y=x[0]+y+x[1]+w[0]+D+","+C+w[1];else for(var O=y,V=1;V<D;V++)y+=O}if(_===!0){var W=y.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));W&&W.forEach((function(U,N){var I=(function(B,q){return(function(z){if(Array.isArray(z))return z})(B)||(function(z,Q){var ie=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(ie!=null){var G,ne,j,H,se=[],te=!0,ee=!1;try{if(j=(ie=ie.call(z)).next,Q!==0)for(;!(te=(G=j.call(ie)).done)&&(se.push(G.value),se.length!==Q);te=!0);}catch(pe){ee=!0,ne=pe}finally{try{if(!te&&ie.return!=null&&(H=ie.return(),Object(H)!==H))return}finally{if(ee)throw ne}}return se}})(B,q)||(function(z,Q){if(z){if(typeof z=="string")return S(z,Q);var ie=Object.prototype.toString.call(z).slice(8,-1);if(ie==="Object"&&z.constructor&&(ie=z.constructor.name),ie==="Map"||ie==="Set")return Array.from(z);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return S(z,Q)}})(B,q)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(U.split("["),2),K=I[0],L=I[1];L=L.replace("]",""),y=y.replace(new RegExp("".concat((0,d.default)(K),"\\[").concat((0,d.default)(L),"\\]")),K.charAt(0)===L.charAt(0)?"(".concat(K,"|").concat(K).concat(L,")"):"".concat(K,"[").concat(L,"]"))}))}return y}function v(y,M,C){var x,w,_=!1;return y!==null&&y!==""||((_=C.regex!==null)?y=(y=C.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(_=!0,y=".*")),y.length===1&&C.greedy===!1&&C.repeat!==0&&(C.placeholder=""),y=T(y,C),w=_?"regex_"+C.regex:C.numericInput?y.split("").reverse().join(""):y,C.keepStatic!==null&&(w="ks_"+C.keepStatic+w),h(C.placeholder)==="object"&&(w="ph_"+JSON.stringify(C.placeholder)+w),f.default.prototype.masksCache[w]===void 0||b===!0?(x={mask:y,maskToken:f.default.prototype.analyseMask(y,_,C),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:M,maskLength:void 0,jitOffset:{}},b!==!0&&(f.default.prototype.masksCache[w]=x,x=c.default.extend(!0,{},f.default.prototype.masksCache[w]))):x=c.default.extend(!0,{},f.default.prototype.masksCache[w]),x}if(typeof E.mask=="function"&&(E.mask=E.mask(E)),Array.isArray(E.mask)){if(E.mask.length>1){E.keepStatic===null&&(E.keepStatic=!0);var R=E.groupmarker[0];return(E.isRTL?E.mask.reverse():E.mask).forEach((function(y){R.length>1&&(R+=E.alternatormarker),y.mask!==void 0&&typeof y.mask!="function"?R+=y.mask:R+=y})),v(R+=E.groupmarker[1],E.mask,E)}E.mask=E.mask.pop()}return g=E.mask&&E.mask.mask!==void 0&&typeof E.mask.mask!="function"?v(E.mask.mask,E.mask,E):v(E.mask,E.mask,E),E.keepStatic===null&&(E.keepStatic=!1),g};var c=m(u(4963)),d=m(u(7184)),f=m(u(2394)),p=m(u(9695));function h(E){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},h(E)}function S(E,b){(b==null||b>E.length)&&(b=E.length);for(var g=0,T=new Array(b);g<b;g++)T[g]=E[g];return T}function m(E){return E&&E.__esModule?E:{default:E}}},157:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mask=function(){var m=this,E=this.opts,b=this.el,g=this.dependencyLib;f.EventRuler.off(b);var T=(function(y,M){var C=y.getAttribute("type"),x=y.tagName.toLowerCase()==="input"&&M.supportsInputType.includes(C)||y.isContentEditable||y.tagName.toLowerCase()==="textarea";if(!x)if(y.tagName.toLowerCase()==="input"){var w=document.createElement("input");w.setAttribute("type",C),x=w.type==="text",w=null}else x="partial";return x!==!1?(function(_){var D,O;function V(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():h.getLastValidPosition.call(m)!==-1||M.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&M.clearMaskOnLostFocus?(m.isRTL?p.clearOptionalTail.call(m,h.getBuffer.call(m).slice()).reverse():p.clearOptionalTail.call(m,h.getBuffer.call(m).slice())).join(""):D.call(this):"":D.call(this)}function W(N){O.call(this,N),this.inputmask&&(0,p.applyInputValue)(this,N)}if(!_.inputmask.__valueGet){if(M.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var U=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(_),"value"):void 0;U&&U.get&&U.set?(D=U.get,O=U.set,Object.defineProperty(_,"value",{get:V,set:W,configurable:!0})):_.tagName.toLowerCase()!=="input"&&(D=function(){return this.textContent},O=function(N){this.textContent=N},Object.defineProperty(_,"value",{get:V,set:W,configurable:!0}))}else document.__lookupGetter__&&_.__lookupGetter__("value")&&(D=_.__lookupGetter__("value"),O=_.__lookupSetter__("value"),_.__defineGetter__("value",V),_.__defineSetter__("value",W));_.inputmask.__valueGet=D,_.inputmask.__valueSet=O}_.inputmask._valueGet=function(N){return m.isRTL&&N!==!0?D.call(this.el).split("").reverse().join(""):D.call(this.el)},_.inputmask._valueSet=function(N,I){O.call(this.el,N==null?"":I!==!0&&m.isRTL?N.split("").reverse().join(""):N)},D===void 0&&(D=function(){return this.value},O=function(N){this.value=N},(function(N){if(g.valHooks&&(g.valHooks[N]===void 0||g.valHooks[N].inputmaskpatch!==!0)){var I=g.valHooks[N]&&g.valHooks[N].get?g.valHooks[N].get:function(L){return L.value},K=g.valHooks[N]&&g.valHooks[N].set?g.valHooks[N].set:function(L,B){return L.value=B,L};g.valHooks[N]={get:function(L){if(L.inputmask){if(L.inputmask.opts.autoUnmask)return L.inputmask.unmaskedvalue();var B=I(L);return h.getLastValidPosition.call(m,void 0,void 0,L.inputmask.maskset.validPositions)!==-1||M.nullable!==!0?B:""}return I(L)},set:function(L,B){var q=K(L,B);return L.inputmask&&(0,p.applyInputValue)(L,B),q},inputmaskpatch:!0}}})(_.type),(function(N){f.EventRuler.on(N,"mouseenter",(function(){var I=this,K=I.inputmask._valueGet(!0);K!=(I.inputmask.isRTL?h.getBuffer.call(I.inputmask).slice().reverse():h.getBuffer.call(I.inputmask)).join("")&&(0,p.applyInputValue)(I,K)}))})(_))}})(y):y.inputmask=void 0,x})(b,E);if(T!==!1){m.originalPlaceholder=b.placeholder,m.maxLength=b!==void 0?b.maxLength:void 0,m.maxLength===-1&&(m.maxLength=void 0),"inputMode"in b&&b.getAttribute("inputmode")===null&&(b.inputMode=E.inputmode,b.setAttribute("inputmode",E.inputmode)),T===!0&&(E.showMaskOnFocus=E.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(b.autocomplete)===-1,c.iphone&&(E.insertModeVisual=!1,b.setAttribute("autocorrect","off")),f.EventRuler.on(b,"submit",d.EventHandlers.submitEvent),f.EventRuler.on(b,"reset",d.EventHandlers.resetEvent),f.EventRuler.on(b,"blur",d.EventHandlers.blurEvent),f.EventRuler.on(b,"focus",d.EventHandlers.focusEvent),f.EventRuler.on(b,"invalid",d.EventHandlers.invalidEvent),f.EventRuler.on(b,"click",d.EventHandlers.clickEvent),f.EventRuler.on(b,"mouseleave",d.EventHandlers.mouseleaveEvent),f.EventRuler.on(b,"mouseenter",d.EventHandlers.mouseenterEvent),f.EventRuler.on(b,"paste",d.EventHandlers.pasteEvent),f.EventRuler.on(b,"cut",d.EventHandlers.cutEvent),f.EventRuler.on(b,"complete",E.oncomplete),f.EventRuler.on(b,"incomplete",E.onincomplete),f.EventRuler.on(b,"cleared",E.oncleared),E.inputEventOnly!==!0&&f.EventRuler.on(b,"keydown",d.EventHandlers.keyEvent),(c.mobile||E.inputEventOnly)&&b.removeAttribute("maxLength"),f.EventRuler.on(b,"input",d.EventHandlers.inputFallBackEvent)),f.EventRuler.on(b,"setvalue",d.EventHandlers.setValueEvent),m.applyMaskHook===void 0||m.applyMaskHook(),h.getBufferTemplate.call(m).join(""),m.undoValue=m._valueGet(!0);var v=(b.inputmask.shadowRoot||b.ownerDocument).activeElement;if(b.inputmask._valueGet(!0)!==""||E.clearMaskOnLostFocus===!1||v===b){(0,p.applyInputValue)(b,b.inputmask._valueGet(!0),E);var R=h.getBuffer.call(m).slice();S.isComplete.call(m,R)===!1&&E.clearIncomplete&&h.resetMaskSet.call(m,!1),E.clearMaskOnLostFocus&&v!==b&&(h.getLastValidPosition.call(m)===-1?R=[]:p.clearOptionalTail.call(m,R)),(E.clearMaskOnLostFocus===!1||E.showMaskOnFocus&&v===b||b.inputmask._valueGet(!0)!=="")&&(0,p.writeBuffer)(b,R),v===b&&h.caret.call(m,b,h.seekNext.call(m,h.getLastValidPosition.call(m)))}}};var c=u(9845),d=u(6030),f=u(9716),p=u(7760),h=u(8711),S=u(7215)},9695:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d,f){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=c||!1,this.isQuantifier=d||!1,this.isAlternator=f||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(a,l){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),c=u.length>>>0;if(c===0)return!1;for(var d=0|l,f=Math.max(d>=0?d:c-Math.abs(d),0);f<c;){if(u[f]===a)return!0;f++}return!1}})},9302:function(){var a=Function.bind.call(Function.call,Array.prototype.reduce),l=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),c=Object.keys;Object.entries||(Object.entries=function(d){return a(c(d),(function(f,p){return u(f,typeof p=="string"&&l(d,p)?[[p,d[p]]]:[])}),[])})},7149:function(){function a(l){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},a(l)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=a("test".__proto__)==="object"?function(l){return l.__proto__}:function(l){return l.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(a,l){return typeof l!="number"&&(l=0),!(l+a.length>this.length)&&this.indexOf(a,l)!==-1})},8711:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.caret=function(g,T,v,R,y){var M,C=this,x=this.opts;if(T===void 0)return"selectionStart"in g&&"selectionEnd"in g?(T=g.selectionStart,v=g.selectionEnd):d.default.getSelection?(M=d.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==g&&M.commonAncestorContainer!==g||(T=M.startOffset,v=M.endOffset):document.selection&&document.selection.createRange&&(v=(T=0-(M=document.selection.createRange()).duplicate().moveStart("character",-g.inputmask._valueGet().length))+M.text.length),{begin:R?T:b.call(C,T),end:R?v:b.call(C,v)};if(Array.isArray(T)&&(v=C.isRTL?T[0]:T[1],T=C.isRTL?T[1]:T[0]),T.begin!==void 0&&(v=C.isRTL?T.begin:T.end,T=C.isRTL?T.end:T.begin),typeof T=="number"){T=R?T:b.call(C,T),v=typeof(v=R?v:b.call(C,v))=="number"?v:T;var w=parseInt(((g.ownerDocument.defaultView||d.default).getComputedStyle?(g.ownerDocument.defaultView||d.default).getComputedStyle(g,null):g.currentStyle).fontSize)*v;if(g.scrollLeft=w>g.scrollWidth?w:0,g.inputmask.caretPos={begin:T,end:v},x.insertModeVisual&&x.insertMode===!1&&T===v&&(y||v++),g===(g.inputmask.shadowRoot||g.ownerDocument).activeElement){if("setSelectionRange"in g)g.setSelectionRange(T,v);else if(d.default.getSelection){if(M=document.createRange(),g.firstChild===void 0||g.firstChild===null){var _=document.createTextNode("");g.appendChild(_)}M.setStart(g.firstChild,T<g.inputmask._valueGet().length?T:g.inputmask._valueGet().length),M.setEnd(g.firstChild,v<g.inputmask._valueGet().length?v:g.inputmask._valueGet().length),M.collapse(!0);var D=d.default.getSelection();D.removeAllRanges(),D.addRange(M)}else g.createTextRange&&((M=g.createTextRange()).collapse(!0),M.moveEnd("character",v),M.moveStart("character",T),M.select());g.inputmask.caretHook===void 0||g.inputmask.caretHook.call(C,{begin:T,end:v})}}},l.determineLastRequiredPosition=function(g){var T,v,R=this,y=R.maskset,M=R.dependencyLib,C=S.call(R),x={},w=y.validPositions[C],_=p.getMaskTemplate.call(R,!0,S.call(R),!0,!0),D=_.length,O=w!==void 0?w.locator.slice():void 0;for(T=C+1;T<_.length;T++)O=(v=p.getTestTemplate.call(R,T,O,T-1)).locator.slice(),x[T]=M.extend(!0,{},v);var V=w&&w.alternation!==void 0?w.locator[w.alternation]:void 0;for(T=D-1;T>C&&((v=x[T]).match.optionality||v.match.optionalQuantifier&&v.match.newBlockMarker||V&&(V!==x[T].locator[w.alternation]&&v.match.static!==!0||v.match.static===!0&&v.locator[w.alternation]&&f.checkAlternationMatch.call(R,v.locator[w.alternation].toString().split(","),V.toString().split(","))&&p.getTests.call(R,T)[0].def!==""))&&_[T]===p.getPlaceholder.call(R,T,v.match);T--)D--;return g?{l:D,def:x[D]?x[D].match:void 0}:D},l.determineNewCaretPosition=function(g,T,v){var R,y,M,C=this,x=C.maskset,w=C.opts;if(T&&(C.isRTL?g.end=g.begin:g.begin=g.end),g.begin===g.end){switch(v=v||w.positionCaretOnClick){case"none":break;case"select":g={begin:0,end:h.call(C).length};break;case"ignore":g.end=g.begin=E.call(C,S.call(C));break;case"radixFocus":if(C.clicked>1&&x.validPositions.length===0)break;if((function(U){if(w.radixPoint!==""&&w.digits!==0){var N=x.validPositions;if(N[U]===void 0||N[U].input===void 0){if(U<E.call(C,-1))return!0;var I=h.call(C).indexOf(w.radixPoint);if(I!==-1){for(var K=0,L=N.length;K<L;K++)if(N[K]&&I<K&&N[K].input!==p.getPlaceholder.call(C,K))return!1;return!0}}}return!1})(g.begin)){var _=h.call(C).join("").indexOf(w.radixPoint);g.end=g.begin=w.numericInput?E.call(C,_):_;break}default:if(R=g.begin,y=S.call(C,R,!0),R<=(M=E.call(C,y!==-1||m.call(C,0)?y:-1)))g.end=g.begin=m.call(C,R,!1,!0)?R:E.call(C,R);else{var D=x.validPositions[y],O=p.getTestTemplate.call(C,M,D?D.match.locator:void 0,D),V=p.getPlaceholder.call(C,M,O.match);if(V!==""&&h.call(C)[M]!==V&&O.match.optionalQuantifier!==!0&&O.match.newBlockMarker!==!0||!m.call(C,M,w.keepStatic,!0)&&O.match.def===V){var W=E.call(C,M);(R>=W||R===M)&&(M=W)}g.end=g.begin=M}}return g}},l.getBuffer=h,l.getBufferTemplate=function(){var g=this.maskset;return g._buffer===void 0&&(g._buffer=p.getMaskTemplate.call(this,!1,1),g.buffer===void 0&&(g.buffer=g._buffer.slice())),g._buffer},l.getLastValidPosition=S,l.isMask=m,l.resetMaskSet=function(g){var T=this.maskset;T.buffer=void 0,g!==!0&&(T.validPositions=[],T.p=0),g===!1&&(T.tests={},T.jitOffset={})},l.seekNext=E,l.seekPrevious=function(g,T){var v=this,R=g-1;if(g<=0)return 0;for(;R>0&&(T===!0&&(p.getTest.call(v,R).match.newBlockMarker!==!0||!m.call(v,R,void 0,!0))||T!==!0&&!m.call(v,R,void 0,!0));)R--;return R},l.translatePosition=b;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=u(7215),p=u(4713);function h(g){var T=this,v=T.maskset;return v.buffer!==void 0&&g!==!0||(v.buffer=p.getMaskTemplate.call(T,!0,S.call(T),!0),v._buffer===void 0&&(v._buffer=v.buffer.slice())),v.buffer}function S(g,T,v){var R=this.maskset,y=-1,M=-1,C=v||R.validPositions;g===void 0&&(g=-1);for(var x=0,w=C.length;x<w;x++)C[x]&&(T||C[x].generatedInput!==!0)&&(x<=g&&(y=x),x>=g&&(M=x));return y===-1||y===g?M:M===-1||g-y<M-g?y:M}function m(g,T,v){var R=this,y=this.maskset,M=p.getTestTemplate.call(R,g).match;if(M.def===""&&(M=p.getTest.call(R,g).match),M.static!==!0)return M.fn;if(v===!0&&y.validPositions[g]!==void 0&&y.validPositions[g].generatedInput!==!0)return!0;if(T!==!0&&g>-1){if(v){var C=p.getTests.call(R,g);return C.length>1+(C[C.length-1].match.def===""?1:0)}var x=p.determineTestTemplate.call(R,g,p.getTests.call(R,g)),w=p.getPlaceholder.call(R,g,x.match);return x.match.def!==w}return!1}function E(g,T,v){var R=this;v===void 0&&(v=!0);for(var y=g+1;p.getTest.call(R,y).match.def!==""&&(T===!0&&(p.getTest.call(R,y).match.newBlockMarker!==!0||!m.call(R,y,void 0,!0))||T!==!0&&!m.call(R,y,void 0,v));)y++;return y}function b(g){var T=this.opts,v=this.el;return!this.isRTL||typeof g!="number"||T.greedy&&T.placeholder===""||!v||(g=this._valueGet().length-g)<0&&(g=0),g}},4713:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.determineTestTemplate=b,l.getDecisionTaker=S,l.getMaskTemplate=function(R,y,M,C,x){var w=this,_=this.opts,D=this.maskset,O=_.greedy;x&&_.greedy&&(_.greedy=!1,w.maskset.tests={}),y=y||0;var V,W,U,N,I=[],K=0;do{if(R===!0&&D.validPositions[K])W=(U=x&&D.validPositions[K].match.optionality&&D.validPositions[K+1]===void 0&&(D.validPositions[K].generatedInput===!0||D.validPositions[K].input==_.skipOptionalPartCharacter&&K>0)?b.call(w,K,v.call(w,K,V,K-1)):D.validPositions[K]).match,V=U.locator.slice(),I.push(M===!0?U.input:M===!1?W.nativeDef:m.call(w,K,W));else{W=(U=E.call(w,K,V,K-1)).match,V=U.locator.slice();var L=C!==!0&&(_.jitMasking!==!1?_.jitMasking:W.jit);(N=(N||D.validPositions[K-1])&&W.static&&W.def!==_.groupSeparator&&W.fn===null)||L===!1||L===void 0||typeof L=="number"&&isFinite(L)&&L>K?I.push(M===!1?W.nativeDef:m.call(w,I.length,W)):N=!1}K++}while(W.static!==!0||W.def!==""||y>K);return I[I.length-1]===""&&I.pop(),M===!1&&D.maskLength!==void 0||(D.maskLength=K-1),_.greedy=O,I},l.getPlaceholder=m,l.getTest=g,l.getTestTemplate=E,l.getTests=v,l.isSubsetOf=T;var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711);function p(R){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},p(R)}function h(R,y){var M=(R.alternation!=null?R.mloc[S(R)]:R.locator).join("");if(M!=="")for(M=M.split(":")[0];M.length<y;)M+="0";return M}function S(R){var y=R.locator[R.alternation];return typeof y=="string"&&y.length>0&&(y=y.split(",")[0]),y!==void 0?y.toString():""}function m(R,y,M){var C=this,x=this.opts,w=this.maskset;if((y=y||g.call(C,R).match).placeholder!==void 0||M===!0){if(y.placeholder!==""&&y.static===!0&&y.generated!==!0){var _=f.getLastValidPosition.call(C,R),D=f.seekNext.call(C,_);return(M?R<=D:R<D)?x.staticDefinitionSymbol&&y.static?y.nativeDef:y.def:typeof y.placeholder=="function"?y.placeholder(x):y.placeholder}return typeof y.placeholder=="function"?y.placeholder(x):y.placeholder}if(y.static===!0){if(R>-1&&w.validPositions[R]===void 0){var O,V=v.call(C,R),W=[];if(typeof x.placeholder=="string"&&V.length>1+(V[V.length-1].match.def===""?1:0)){for(var U=0;U<V.length;U++)if(V[U].match.def!==""&&V[U].match.optionality!==!0&&V[U].match.optionalQuantifier!==!0&&(V[U].match.static===!0||O===void 0||V[U].match.fn.test(O.match.def,w,R,!0,x)!==!1)&&(W.push(V[U]),V[U].match.static===!0&&(O=V[U]),W.length>1&&/[0-9a-bA-Z]/.test(W[0].match.def)))return x.placeholder.charAt(R%x.placeholder.length)}}return y.def}return p(x.placeholder)==="object"?y.def:x.placeholder.charAt(R%x.placeholder.length)}function E(R,y,M){return this.maskset.validPositions[R]||b.call(this,R,v.call(this,R,y&&y.slice(),M))}function b(R,y){var M=this.opts,C=0,x=(function(N,I){var K=0,L=!1;return I.forEach((function(B){B.match.optionality&&(K!==0&&K!==B.match.optionality&&(L=!0),(K===0||K>B.match.optionality)&&(K=B.match.optionality))})),K&&(N==0||I.length==1?K=0:L||(K=0)),K})(R,y);R=R>0?R-1:0;var w,_,D,O=h(g.call(this,R));M.greedy&&y.length>1&&y[y.length-1].match.def===""&&(C=1);for(var V=0;V<y.length-C;V++){var W=y[V];w=h(W,O.length);var U=Math.abs(w-O);(W.unMatchedAlternationStopped!==!0||y.filter((function(N){return N.unMatchedAlternationStopped!==!0})).length<=1)&&(_===void 0||w!==""&&U<_||D&&!M.greedy&&D.match.optionality&&D.match.optionality-x>0&&D.match.newBlockMarker==="master"&&(!W.match.optionality||W.match.optionality-x<1||!W.match.newBlockMarker)||D&&!M.greedy&&D.match.optionalQuantifier&&!W.match.optionalQuantifier)&&(_=U,D=W)}return D}function g(R,y){var M=this.maskset;return M.validPositions[R]?M.validPositions[R]:(y||v.call(this,R))[0]}function T(R,y,M){function C(x){for(var w,_=[],D=-1,O=0,V=x.length;O<V;O++)if(x.charAt(O)==="-")for(w=x.charCodeAt(O+1);++D<w;)_.push(String.fromCharCode(D));else D=x.charCodeAt(O),_.push(x.charAt(O));return _.join("")}return R.match.def===y.match.nativeDef||!(!(M.regex||R.match.fn instanceof RegExp&&y.match.fn instanceof RegExp)||R.match.static===!0||y.match.static===!0)&&(y.match.fn.source==="."||C(y.match.fn.source.replace(/[[\]/]/g,"")).indexOf(C(R.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function v(R,y,M){var C,x,w=this,_=this.dependencyLib,D=this.maskset,O=this.opts,V=this.el,W=D.maskToken,U=y?M:0,N=y?y.slice():[0],I=[],K=!1,L=y?y.join(""):"",B=!1;function q(ne,j,H,se){function te(le,ve,ye){function Me(J,Z){var de=Z.matches.indexOf(J)===0;return de||Z.matches.every((function(ue,xe){return ue.isQuantifier===!0?de=Me(J,Z.matches[xe-1]):Object.prototype.hasOwnProperty.call(ue,"matches")&&(de=Me(J,ue)),!de})),de}function Ne(J,Z,de){var ue,xe;if((D.tests[J]||D.validPositions[J])&&(D.validPositions[J]?[D.validPositions[J]]:D.tests[J]).every((function(_e,Ie){if(_e.mloc[Z])return ue=_e,!1;var ot=de!==void 0?de:_e.alternation,he=_e.locator[ot]!==void 0?_e.locator[ot].toString().indexOf(Z):-1;return(xe===void 0||he<xe)&&he!==-1&&(ue=_e,xe=he),!0})),ue){var Pe=ue.locator[ue.alternation],Te=ue.mloc[Z]||ue.mloc[Pe]||ue.locator;return Te[Te.length-1].toString().indexOf(":")!==-1&&Te.pop(),Te.slice((de!==void 0?de:ue.alternation)+1)}return de!==void 0?Ne(J,Z):void 0}function He(J,Z){return J.match.static===!0&&Z.match.static!==!0&&Z.match.fn.test(J.match.def,D,R,!1,O,!1)}function Le(J,Z){var de=J.alternation,ue=Z===void 0||de<=Z.alternation&&J.locator[de].toString().indexOf(Z.locator[de])===-1;if(!ue&&de>Z.alternation){for(var xe=0;xe<de;xe++)if(J.locator[xe]!==Z.locator[xe]){de=xe,ue=!0;break}}return!!ue&&(function(Pe){J.mloc=J.mloc||{};var Te=J.locator[Pe];if(Te!==void 0){if(typeof Te=="string"&&(Te=Te.split(",")[0]),J.mloc[Te]===void 0&&(J.mloc[Te]=J.locator.slice(),J.mloc[Te].push(":".concat(J.alternation))),Z!==void 0){for(var _e in Z.mloc)typeof _e=="string"&&(_e=parseInt(_e.split(",")[0])),J.mloc[_e+0]=Z.mloc[_e];J.locator[Pe]=Object.keys(J.mloc).join(",")}return J.alternation>Pe&&(J.alternation=Pe),!0}return J.alternation=void 0,!1})(de)}function Y(J,Z){if(J.locator.length!==Z.locator.length)return!1;for(var de=J.alternation+1;de<J.locator.length;de++)if(J.locator[de]!==Z.locator[de])return!1;return!0}if(U>R+O._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(D.mask));if(U===R&&le.matches===void 0){if(I.push({match:le,locator:ve.reverse(),cd:L,mloc:{}}),!le.optionality||ye!==void 0||!(O.definitions&&O.definitions[le.nativeDef]&&O.definitions[le.nativeDef].optional||d.default.prototype.definitions[le.nativeDef]&&d.default.prototype.definitions[le.nativeDef].optional))return!0;K=!0,U=R}else if(le.matches!==void 0){if(le.isGroup&&ye!==le)return(function(){if(le=te(ne.matches[ne.matches.indexOf(le)+1],ve,ye))return!0})();if(le.isOptional)return(function(){var J=le,Z=I.length;if(le=q(le,j,ve,ye),I.length>0){if(I.forEach((function(de,ue){ue>=Z&&(de.match.optionality=de.match.optionality?de.match.optionality+1:1)})),C=I[I.length-1].match,ye!==void 0||!Me(C,J))return le;K=!0,U=R}})();if(le.isAlternator)return(function(){function J(P){for(var k,A=P.matches[0].matches?P.matches[0].matches.length:1,F=0;F<P.matches.length&&A===(k=P.matches[F].matches?P.matches[F].matches.length:1);F++);return A!==k}w.hasAlternator=!0;var Z,de=le,ue=[],xe=I.slice(),Pe=ve.length,Te=j.length>0?j.shift():-1;if(Te===-1||typeof Te=="string"){var _e,Ie=U,ot=j.slice(),he=[];if(typeof Te=="string")he=Te.split(",");else for(_e=0;_e<de.matches.length;_e++)he.push(_e.toString());if(D.excludes[R]!==void 0){for(var Ee=he.slice(),Fe=0,ke=D.excludes[R].length;Fe<ke;Fe++){var X=D.excludes[R][Fe].toString().split(":");ve.length==X[1]&&he.splice(he.indexOf(X[0]),1)}he.length===0&&(delete D.excludes[R],he=Ee)}(O.keepStatic===!0||isFinite(parseInt(O.keepStatic))&&Ie>=O.keepStatic)&&(he=he.slice(0,1));for(var re=0;re<he.length;re++){_e=parseInt(he[re]),I=[],j=typeof Te=="string"&&Ne(U,_e,Pe)||ot.slice();var ze=de.matches[_e];if(ze&&te(ze,[_e].concat(ve),ye))le=!0;else if(re===0&&(B=J(de)),ze&&ze.matches&&ze.matches.length>de.matches[0].matches.length)break;Z=I.slice(),U=Ie,I=[];for(var Ue=0;Ue<Z.length;Ue++){var Oe=Z[Ue],Re=!1;Oe.alternation=Oe.alternation||Pe,Le(Oe);for(var bt=0;bt<ue.length;bt++){var nt=ue[bt];if(typeof Te!="string"||Oe.alternation!==void 0&&he.includes(Oe.locator[Oe.alternation].toString())){if(Oe.match.nativeDef===nt.match.nativeDef){Re=!0,Le(nt,Oe);break}if(T(Oe,nt,O)){Le(Oe,nt)&&(Re=!0,ue.splice(ue.indexOf(nt),0,Oe));break}if(T(nt,Oe,O)){Le(nt,Oe);break}if(He(Oe,nt)){Y(Oe,nt)||V.inputmask.userOptions.keepStatic!==void 0?Le(Oe,nt)&&(Re=!0,ue.splice(ue.indexOf(nt),0,Oe)):O.keepStatic=!0;break}if(He(nt,Oe)){Le(nt,Oe);break}}}Re||ue.push(Oe)}}I=xe.concat(ue),U=R,K=I.length>0&&B,le=ue.length>0&&!B,B&&K&&!le&&I.forEach((function(P,k){P.unMatchedAlternationStopped=!0})),j=ot.slice()}else le=te(de.matches[Te]||ne.matches[Te],[Te].concat(ve),ye);if(le)return!0})();if(le.isQuantifier&&ye!==ne.matches[ne.matches.indexOf(le)-1])return(function(){for(var J=le,Z=!1,de=j.length>0?j.shift():0;de<(isNaN(J.quantifier.max)?de+1:J.quantifier.max)&&U<=R;de++){var ue=ne.matches[ne.matches.indexOf(J)-1];if(le=te(ue,[de].concat(ve),ue)){if(I.forEach((function(xe,Pe){(C=z(ue,xe.match)?xe.match:I[I.length-1].match).optionalQuantifier=de>=J.quantifier.min,C.jit=(de+1)*(ue.matches.indexOf(C)+1)>J.quantifier.jit,C.optionalQuantifier&&Me(C,ue)&&(K=!0,U=R,O.greedy&&D.validPositions[R-1]==null&&de>J.quantifier.min&&["*","+"].indexOf(J.quantifier.max)!=-1&&(I.pop(),L=void 0),Z=!0,le=!1),!Z&&C.jit&&(D.jitOffset[R]=ue.matches.length-ue.matches.indexOf(C))})),Z)break;return!0}}})();if(le=q(le,j,ve,ye))return!0}else U++}for(var ee=j.length>0?j.shift():0;ee<ne.matches.length;ee++)if(ne.matches[ee].isQuantifier!==!0){var pe=te(ne.matches[ee],[ee].concat(H),se);if(pe&&U===R)return pe;if(U>R)break}}function z(ne,j){var H=ne.matches.indexOf(j)!=-1;return H||ne.matches.forEach((function(se,te){se.matches===void 0||H||(H=z(se,j))})),H}if(R>-1){if(y===void 0){for(var Q,ie=R-1;(Q=D.validPositions[ie]||D.tests[ie])===void 0&&ie>-1;)ie--;Q!==void 0&&ie>-1&&(N=(function(ne,j){var H,se=[];return Array.isArray(j)||(j=[j]),j.length>0&&(j[0].alternation===void 0||O.keepStatic===!0?(se=b.call(w,ne,j.slice()).locator.slice()).length===0&&(se=j[0].locator.slice()):j.forEach((function(te){te.def!==""&&(se.length===0?(H=te.alternation,se=te.locator.slice()):te.locator[H]&&se[H].toString().indexOf(te.locator[H])===-1&&(se[H]+=","+te.locator[H]))}))),se})(ie,Q),L=N.join(""),U=ie)}if(D.tests[R]&&D.tests[R][0].cd===L)return D.tests[R];for(var G=N.shift();G<W.length&&!(q(W[G],N,[G])&&U===R||U>R);G++);}return(I.length===0||K)&&I.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:B&&I.filter((function(ne){return ne.unMatchedAlternationStopped!==!0})).length===0?[0]:[],mloc:{},cd:L}),y!==void 0&&D.tests[R]?x=_.extend(!0,[],I):(D.tests[R]=_.extend(!0,[],I),x=D.tests[R]),I.forEach((function(ne){ne.match.optionality=ne.match.defOptionality||!1})),x}},7215:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.alternate=h,l.checkAlternationMatch=function(y,M,C){for(var x,w=this.opts.greedy?M:M.slice(0,1),_=!1,D=C!==void 0?C.split(","):[],O=0;O<D.length;O++)(x=y.indexOf(D[O]))!==-1&&y.splice(x,1);for(var V=0;V<y.length;V++)if(w.includes(y[V])){_=!0;break}return _},l.handleRemove=function(y,M,C,x,w){var _=this,D=this.maskset,O=this.opts;if((O.numericInput||_.isRTL)&&(M===d.keys.Backspace?M=d.keys.Delete:M===d.keys.Delete&&(M=d.keys.Backspace),_.isRTL)){var V=C.end;C.end=C.begin,C.begin=V}var W,U=f.getLastValidPosition.call(_,void 0,!0);C.end>=f.getBuffer.call(_).length&&U>=C.end&&(C.end=U+1),M===d.keys.Backspace?C.end-C.begin<1&&(C.begin=f.seekPrevious.call(_,C.begin)):M===d.keys.Delete&&C.begin===C.end&&(C.end=f.isMask.call(_,C.end,!0,!0)?C.end+1:f.seekNext.call(_,C.end)+1),(W=R.call(_,C))!==!1&&((x!==!0&&O.keepStatic!==!1||O.regex!==null&&p.getTest.call(_,C.begin).match.def.indexOf("|")!==-1)&&h.call(_,!0),x!==!0&&(D.p=M===d.keys.Delete?C.begin+W:C.begin,D.p=f.determineNewCaretPosition.call(_,{begin:D.p,end:D.p},!1,O.insertMode===!1&&M===d.keys.Backspace?"none":void 0).begin))},l.isComplete=m,l.isSelection=E,l.isValid=b,l.refreshFromBuffer=T,l.revalidateMask=R;var c=u(6030),d=u(2839),f=u(8711),p=u(4713);function h(y,M,C,x,w,_){var D=this,O=this.dependencyLib,V=this.opts,W=D.maskset;if(!D.hasAlternator)return!1;var U,N,I,K,L,B,q,z,Q,ie,G,ne=O.extend(!0,[],W.validPositions),j=O.extend(!0,{},W.tests),H=!1,se=!1,te=w!==void 0?w:f.getLastValidPosition.call(D);if(_&&(ie=_.begin,G=_.end,_.begin>_.end&&(ie=_.end,G=_.begin)),te===-1&&w===void 0)U=0,N=(K=p.getTest.call(D,U)).alternation;else for(;te>=0;te--)if((I=W.validPositions[te])&&I.alternation!==void 0){if(te<=(y||0)&&K&&K.locator[I.alternation]!==I.locator[I.alternation])break;U=te,N=W.validPositions[U].alternation,K=I}if(N!==void 0){q=parseInt(U),W.excludes[q]=W.excludes[q]||[],y!==!0&&W.excludes[q].push((0,p.getDecisionTaker)(K)+":"+K.alternation);var ee=[],pe=-1;for(L=q;q<f.getLastValidPosition.call(D,void 0,!0)+1;L++)pe===-1&&y<=L&&M!==void 0&&(ee.push(M),pe=ee.length-1),(B=W.validPositions[q])&&B.generatedInput!==!0&&(_===void 0||L<ie||L>=G)&&ee.push(B.input),W.validPositions.splice(q,1);for(pe===-1&&M!==void 0&&(ee.push(M),pe=ee.length-1);W.excludes[q]!==void 0&&W.excludes[q].length<10;){for(W.tests={},f.resetMaskSet.call(D,!0),H=!0,L=0;L<ee.length&&(z=H.caret||V.insertMode==0&&z!=null?f.seekNext.call(D,z):f.getLastValidPosition.call(D,void 0,!0)+1,Q=ee[L],H=b.call(D,z,Q,!1,x,!0));L++)L===pe&&(se=H),y==1&&H&&(se={caretPos:L});if(H)break;if(f.resetMaskSet.call(D),K=p.getTest.call(D,q),W.validPositions=O.extend(!0,[],ne),W.tests=O.extend(!0,{},j),!W.excludes[q]){se=h.call(D,y,M,C,x,q-1,_);break}if(K.alternation!=null){var le=(0,p.getDecisionTaker)(K);if(W.excludes[q].indexOf(le+":"+K.alternation)!==-1){se=h.call(D,y,M,C,x,q-1,_);break}for(W.excludes[q].push(le+":"+K.alternation),L=q;L<f.getLastValidPosition.call(D,void 0,!0)+1;L++)W.validPositions.splice(q)}else delete W.excludes[q]}}return se&&V.keepStatic===!1||delete W.excludes[q],se}function S(y,M,C){var x=this.opts,w=this.maskset;switch(x.casing||M.casing){case"upper":y=y.toUpperCase();break;case"lower":y=y.toLowerCase();break;case"title":var _=w.validPositions[C-1];y=C===0||_&&_.input===String.fromCharCode(d.keyCode.Space)?y.toUpperCase():y.toLowerCase();break;default:if(typeof x.casing=="function"){var D=Array.prototype.slice.call(arguments);D.push(w.validPositions),y=x.casing.apply(this,D)}}return y}function m(y){var M=this,C=this.opts,x=this.maskset;if(typeof C.isComplete=="function")return C.isComplete(y,C);if(C.repeat!=="*"){var w=!1,_=f.determineLastRequiredPosition.call(M,!0),D=_.l;if(_.def===void 0||_.def.newBlockMarker||_.def.optionality||_.def.optionalQuantifier){w=!0;for(var O=0;O<=D;O++){var V=p.getTestTemplate.call(M,O).match;if(V.static!==!0&&x.validPositions[O]===void 0&&(V.optionality===!1||V.optionality===void 0||V.optionality&&V.newBlockMarker==0)&&(V.optionalQuantifier===!1||V.optionalQuantifier===void 0)||V.static===!0&&V.def!=""&&y[O]!==p.getPlaceholder.call(M,O,V)){w=!1;break}}}return w}}function E(y){var M=this.opts.insertMode?0:1;return this.isRTL?y.begin-y.end>M:y.end-y.begin>M}function b(y,M,C,x,w,_,D){var O=this,V=this.dependencyLib,W=this.opts,U=O.maskset;C=C===!0;var N=y;function I(H){if(H!==void 0){if(H.remove!==void 0&&(Array.isArray(H.remove)||(H.remove=[H.remove]),H.remove.sort((function(te,ee){return O.isRTL?te.pos-ee.pos:ee.pos-te.pos})).forEach((function(te){R.call(O,{begin:te,end:te+1})})),H.remove=void 0),H.insert!==void 0&&(Array.isArray(H.insert)||(H.insert=[H.insert]),H.insert.sort((function(te,ee){return O.isRTL?ee.pos-te.pos:te.pos-ee.pos})).forEach((function(te){te.c!==""&&b.call(O,te.pos,te.c,te.strict===void 0||te.strict,te.fromIsValid!==void 0?te.fromIsValid:x)})),H.insert=void 0),H.refreshFromBuffer&&H.buffer){var se=H.refreshFromBuffer;T.call(O,se===!0?se:se.start,se.end,H.buffer),H.refreshFromBuffer=void 0}H.rewritePosition!==void 0&&(N=H.rewritePosition,H=!0)}return H}function K(H,se,te){var ee=!1;return p.getTests.call(O,H).every((function(pe,le){var ve=pe.match;if(f.getBuffer.call(O,!0),(ee=(!ve.jit||U.validPositions[f.seekPrevious.call(O,H)]!==void 0)&&(ve.fn!=null?ve.fn.test(se,U,H,te,W,E.call(O,y)):(se===ve.def||se===W.skipOptionalPartCharacter)&&ve.def!==""&&{c:p.getPlaceholder.call(O,H,ve,!0)||ve.def,pos:H}))!==!1){var ye=ee.c!==void 0?ee.c:se,Me=H;return ye=ye===W.skipOptionalPartCharacter&&ve.static===!0?p.getPlaceholder.call(O,H,ve,!0)||ve.def:ye,(ee=I(ee))!==!0&&ee.pos!==void 0&&ee.pos!==H&&(Me=ee.pos),ee!==!0&&ee.pos===void 0&&ee.c===void 0||R.call(O,y,V.extend({},pe,{input:S.call(O,ye,ve,Me)}),x,Me)===!1&&(ee=!1),!1}return!0})),ee}y.begin!==void 0&&(N=O.isRTL?y.end:y.begin);var L=!0,B=V.extend(!0,[],U.validPositions);if(W.keepStatic===!1&&U.excludes[N]!==void 0&&w!==!0&&x!==!0)for(var q=N;q<(O.isRTL?y.begin:y.end);q++)U.excludes[q]!==void 0&&(U.excludes[q]=void 0,delete U.tests[q]);if(typeof W.preValidation=="function"&&x!==!0&&_!==!0&&(L=I(L=W.preValidation.call(O,f.getBuffer.call(O),N,M,E.call(O,y),W,U,y,C||w))),L===!0){if(L=K(N,M,C),(!C||x===!0)&&L===!1&&_!==!0){var z=U.validPositions[N];if(!z||z.match.static!==!0||z.match.def!==M&&M!==W.skipOptionalPartCharacter){if(W.insertMode||U.validPositions[f.seekNext.call(O,N)]===void 0||y.end>N){var Q=!1;if(U.jitOffset[N]&&U.validPositions[f.seekNext.call(O,N)]===void 0&&(L=b.call(O,N+U.jitOffset[N],M,!0,!0))!==!1&&(w!==!0&&(L.caret=N),Q=!0),y.end>N&&(U.validPositions[N]=void 0),!Q&&!f.isMask.call(O,N,W.keepStatic&&N===0)){for(var ie=N+1,G=f.seekNext.call(O,N,!1,N!==0);ie<=G;ie++)if((L=K(ie,M,C))!==!1){L=v.call(O,N,L.pos!==void 0?L.pos:ie)||L,N=ie;break}}}}else L={caret:f.seekNext.call(O,N)}}O.hasAlternator&&w!==!0&&!C&&(w=!0,L===!1&&W.keepStatic&&(m.call(O,f.getBuffer.call(O))||N===0)?L=h.call(O,N,M,C,x,void 0,y):(E.call(O,y)&&U.tests[N]&&U.tests[N].length>1&&W.keepStatic||L==1&&W.numericInput!==!0&&U.tests[N]&&U.tests[N].length>1&&f.getLastValidPosition.call(O,void 0,!0)>N)&&(L=h.call(O,!0))),L===!0&&(L={pos:N})}if(typeof W.postValidation=="function"&&x!==!0&&_!==!0){var ne=W.postValidation.call(O,f.getBuffer.call(O,!0),y.begin!==void 0?O.isRTL?y.end:y.begin:y,M,L,W,U,C,D);ne!==void 0&&(L=ne===!0?L:ne)}L&&L.pos===void 0&&(L.pos=N),L===!1||_===!0?(f.resetMaskSet.call(O,!0),U.validPositions=V.extend(!0,[],B)):v.call(O,void 0,N,!0);var j=I(L);return O.maxLength!==void 0&&f.getBuffer.call(O).length>O.maxLength&&!x&&(f.resetMaskSet.call(O,!0),U.validPositions=V.extend(!0,[],B),j=!1),j}function g(y,M,C){for(var x=this.maskset,w=!1,_=p.getTests.call(this,y),D=0;D<_.length;D++){if(_[D].match&&(_[D].match.nativeDef===M.match[C.shiftPositions?"def":"nativeDef"]&&(!C.shiftPositions||!M.match.static)||_[D].match.nativeDef===M.match.nativeDef||C.regex&&!_[D].match.static&&_[D].match.fn.test(M.input,x,y,!1,C))){w=!0;break}if(_[D].match&&_[D].match.def===M.match.nativeDef){w=void 0;break}}return w===!1&&x.jitOffset[y]!==void 0&&(w=g.call(this,y+x.jitOffset[y],M,C)),w}function T(y,M,C){var x,w,_=this,D=this.maskset,O=this.opts,V=this.dependencyLib,W=O.skipOptionalPartCharacter,U=_.isRTL?C.slice().reverse():C;if(O.skipOptionalPartCharacter="",y===!0)f.resetMaskSet.call(_,!1),y=0,M=C.length,w=f.determineNewCaretPosition.call(_,{begin:0,end:0},!1).begin;else{for(x=y;x<M;x++)D.validPositions.splice(y,0);w=y}var N=new V.Event("keypress");for(x=y;x<M;x++){N.key=U[x].toString(),_.ignorable=!1;var I=c.EventHandlers.keypressEvent.call(_,N,!0,!1,!1,w);I!==!1&&I!==void 0&&(w=I.forwardPosition)}O.skipOptionalPartCharacter=W}function v(y,M,C){var x=this,w=this.maskset,_=this.dependencyLib;if(y===void 0)for(y=M-1;y>0&&!w.validPositions[y];y--);for(var D=y;D<M;D++)if(w.validPositions[D]===void 0&&!f.isMask.call(x,D,!1)&&(D==0?p.getTest.call(x,D):w.validPositions[D-1])){var O=p.getTests.call(x,D).slice();O[O.length-1].match.def===""&&O.pop();var V,W=p.determineTestTemplate.call(x,D,O);if(W&&(W.match.jit!==!0||W.match.newBlockMarker==="master"&&(V=w.validPositions[D+1])&&V.match.optionalQuantifier===!0)&&((W=_.extend({},W,{input:p.getPlaceholder.call(x,D,W.match,!0)||W.match.def})).generatedInput=!0,R.call(x,D,W,!0),C!==!0)){var U=w.validPositions[M].input;return w.validPositions[M]=void 0,b.call(x,M,U,!0,!0)}}}function R(y,M,C,x){var w=this,_=this.maskset,D=this.opts,O=this.dependencyLib;function V(j,H,se){var te=H[j];if(te!==void 0&&te.match.static===!0&&te.match.optionality!==!0&&(H[0]===void 0||H[0].alternation===void 0)){var ee=se.begin<=j-1?H[j-1]&&H[j-1].match.static===!0&&H[j-1]:H[j-1],pe=se.end>j+1?H[j+1]&&H[j+1].match.static===!0&&H[j+1]:H[j+1];return ee&&pe}return!1}var W=0,U=y.begin!==void 0?y.begin:y,N=y.end!==void 0?y.end:y,I=!0;if(y.begin>y.end&&(U=y.end,N=y.begin),x=x!==void 0?x:U,C===void 0&&(U!==N||D.insertMode&&_.validPositions[x]!==void 0||M===void 0||M.match.optionalQuantifier||M.match.optionality)){var K,L=O.extend(!0,[],_.validPositions),B=f.getLastValidPosition.call(w,void 0,!0);_.p=U;var q=E.call(w,y)?U:x;for(K=B;K>=q;K--)_.validPositions.splice(K,1),M===void 0&&delete _.tests[K+1];var z,Q,ie=x,G=ie;for(M&&(_.validPositions[x]=O.extend(!0,{},M),G++,ie++),L[N]==null&&_.jitOffset[N]&&(N+=_.jitOffset[N]+1),K=M?N:N-1;K<=B;K++){if((z=L[K])!==void 0&&z.generatedInput!==!0&&(K>=N||K>=U&&V(K,L,{begin:U,end:N}))){for(;p.getTest.call(w,G).match.def!=="";){if((Q=g.call(w,G,z,D))!==!1||z.match.def==="+"){z.match.def==="+"&&f.getBuffer.call(w,!0);var ne=b.call(w,G,z.input,z.match.def!=="+",!0);if(I=ne!==!1,ie=(ne.pos||G)+1,!I&&Q)break}else I=!1;if(I){M===void 0&&z.match.static&&K===y.begin&&W++;break}if(!I&&f.getBuffer.call(w),G>_.maskLength)break;G++}p.getTest.call(w,G).match.def==""&&(I=!1),G=ie}if(!I)break}if(!I)return _.validPositions=O.extend(!0,[],L),f.resetMaskSet.call(w,!0),!1}else M&&p.getTest.call(w,x).match.cd===M.match.cd&&(_.validPositions[x]=O.extend(!0,{},M));return f.resetMaskSet.call(w,!0),W}}},i={};function r(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return t[a](u,u.exports,r),u.exports}var s={};return(function(){var a=s;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(7149),r(3194),r(9302),r(4013),r(3851),r(219),r(207),r(5296);var l,u=(l=r(2394))&&l.__esModule?l:{default:l};a.default=u.default})(),s})()}))})(_n)),_n.exports}var wh=yh();const Ch=Ya(wh);//! moment.js
17
17
  //! version : 2.30.1
18
18
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
19
19
  //! license : MIT
20
20
  //! momentjs.com
21
- var qo;function Ce(){return qo.apply(null,arguments)}function Eh(n){qo=n}function Bt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function vi(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function qe(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ws(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(qe(n,e))return!1;return!0}function wt(n){return n===void 0}function Xt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function Qi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Ko(n,e){var t=[],i,r=n.length;for(i=0;i<r;++i)t.push(e(n[i],i));return t}function ui(n,e){for(var t in e)qe(e,t)&&(n[t]=e[t]);return qe(e,"toString")&&(n.toString=e.toString),qe(e,"valueOf")&&(n.valueOf=e.valueOf),n}function jt(n,e,t,i){return El(n,e,t,i,!0).utc()}function kh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function je(n){return n._pf==null&&(n._pf=kh()),n._pf}var Cs;Array.prototype.some?Cs=Array.prototype.some:Cs=function(n){var e=Object(this),t=e.length>>>0,i;for(i=0;i<t;i++)if(i in e&&n.call(this,e[i],i,e))return!0;return!1};function Es(n){var e=null,t=!1,i=n._d&&!isNaN(n._d.getTime());if(i&&(e=je(n),t=Cs.call(e.parsedDateParts,function(r){return r!=null}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&t),n._strict&&(i=i&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(n))n._isValid=i;else return i;return n._isValid}function An(n){var e=jt(NaN);return n!=null?ui(je(e),n):je(e).userInvalidated=!0,e}var Jo=Ce.momentProperties=[],ks=!1;function Ss(n,e){var t,i,r,s=Jo.length;if(wt(e._isAMomentObject)||(n._isAMomentObject=e._isAMomentObject),wt(e._i)||(n._i=e._i),wt(e._f)||(n._f=e._f),wt(e._l)||(n._l=e._l),wt(e._strict)||(n._strict=e._strict),wt(e._tzm)||(n._tzm=e._tzm),wt(e._isUTC)||(n._isUTC=e._isUTC),wt(e._offset)||(n._offset=e._offset),wt(e._pf)||(n._pf=je(e)),wt(e._locale)||(n._locale=e._locale),s>0)for(t=0;t<s;t++)i=Jo[t],r=e[i],wt(r)||(n[i]=r);return n}function Zi(n){Ss(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ks===!1&&(ks=!0,Ce.updateOffset(this),ks=!1)}function Vt(n){return n instanceof Zi||n!=null&&n._isAMomentObject!=null}function Xo(n){Ce.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+n)}function Tt(n,e){var t=!0;return ui(function(){if(Ce.deprecationHandler!=null&&Ce.deprecationHandler(null,n),t){var i=[],r,s,a,l=arguments.length;for(s=0;s<l;s++){if(r="",typeof arguments[s]=="object"){r+=`
21
+ var qo;function we(){return qo.apply(null,arguments)}function Eh(n){qo=n}function Bt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function vi(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function qe(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ws(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(qe(n,e))return!1;return!0}function wt(n){return n===void 0}function Xt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function Qi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Ko(n,e){var t=[],i,r=n.length;for(i=0;i<r;++i)t.push(e(n[i],i));return t}function ui(n,e){for(var t in e)qe(e,t)&&(n[t]=e[t]);return qe(e,"toString")&&(n.toString=e.toString),qe(e,"valueOf")&&(n.valueOf=e.valueOf),n}function jt(n,e,t,i){return El(n,e,t,i,!0).utc()}function kh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function je(n){return n._pf==null&&(n._pf=kh()),n._pf}var Cs;Array.prototype.some?Cs=Array.prototype.some:Cs=function(n){var e=Object(this),t=e.length>>>0,i;for(i=0;i<t;i++)if(i in e&&n.call(this,e[i],i,e))return!0;return!1};function Es(n){var e=null,t=!1,i=n._d&&!isNaN(n._d.getTime());if(i&&(e=je(n),t=Cs.call(e.parsedDateParts,function(r){return r!=null}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&t),n._strict&&(i=i&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(n))n._isValid=i;else return i;return n._isValid}function An(n){var e=jt(NaN);return n!=null?ui(je(e),n):je(e).userInvalidated=!0,e}var Jo=we.momentProperties=[],ks=!1;function Ss(n,e){var t,i,r,s=Jo.length;if(wt(e._isAMomentObject)||(n._isAMomentObject=e._isAMomentObject),wt(e._i)||(n._i=e._i),wt(e._f)||(n._f=e._f),wt(e._l)||(n._l=e._l),wt(e._strict)||(n._strict=e._strict),wt(e._tzm)||(n._tzm=e._tzm),wt(e._isUTC)||(n._isUTC=e._isUTC),wt(e._offset)||(n._offset=e._offset),wt(e._pf)||(n._pf=je(e)),wt(e._locale)||(n._locale=e._locale),s>0)for(t=0;t<s;t++)i=Jo[t],r=e[i],wt(r)||(n[i]=r);return n}function Zi(n){Ss(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ks===!1&&(ks=!0,we.updateOffset(this),ks=!1)}function Vt(n){return n instanceof Zi||n!=null&&n._isAMomentObject!=null}function Xo(n){we.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+n)}function Tt(n,e){var t=!0;return ui(function(){if(we.deprecationHandler!=null&&we.deprecationHandler(null,n),t){var i=[],r,s,a,l=arguments.length;for(s=0;s<l;s++){if(r="",typeof arguments[s]=="object"){r+=`
22
22
  [`+s+"] ";for(a in arguments[0])qe(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[s];i.push(r)}Xo(n+`
23
23
  Arguments: `+Array.prototype.slice.call(i).join("")+`
24
- `+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var Qo={};function Zo(n,e){Ce.deprecationHandler!=null&&Ce.deprecationHandler(n,e),Qo[n]||(Xo(e),Qo[n]=!0)}Ce.suppressDeprecationWarnings=!1,Ce.deprecationHandler=null;function Wt(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function Sh(n){var e,t;for(t in n)qe(n,t)&&(e=n[t],Wt(e)?this[t]=e:this["_"+t]=e);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xs(n,e){var t=ui({},n),i;for(i in e)qe(e,i)&&(vi(n[i])&&vi(e[i])?(t[i]={},ui(t[i],n[i]),ui(t[i],e[i])):e[i]!=null?t[i]=e[i]:delete t[i]);for(i in n)qe(n,i)&&!qe(e,i)&&vi(n[i])&&(t[i]=ui({},t[i]));return t}function Ms(n){n!=null&&this.set(n)}var Rs;Object.keys?Rs=Object.keys:Rs=function(n){var e,t=[];for(e in n)qe(n,e)&&t.push(e);return t};var xh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Mh(n,e,t){var i=this._calendar[n]||this._calendar.sameElse;return Wt(i)?i.call(e,t):i}function Yt(n,e,t){var i=""+Math.abs(n),r=e-i.length,s=n>=0;return(s?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var Ts=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,On=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ds={},Ai={};function _e(n,e,t,i){var r=i;typeof i=="string"&&(r=function(){return this[i]()}),n&&(Ai[n]=r),e&&(Ai[e[0]]=function(){return Yt(r.apply(this,arguments),e[1],e[2])}),t&&(Ai[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),n)})}function Rh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Th(n){var e=n.match(Ts),t,i;for(t=0,i=e.length;t<i;t++)Ai[e[t]]?e[t]=Ai[e[t]]:e[t]=Rh(e[t]);return function(r){var s="",a;for(a=0;a<i;a++)s+=Wt(e[a])?e[a].call(r,n):e[a];return s}}function Ln(n,e){return n.isValid()?(e=el(e,n.localeData()),Ds[e]=Ds[e]||Th(e),Ds[e](n)):n.localeData().invalidDate()}function el(n,e){var t=5;function i(r){return e.longDateFormat(r)||r}for(On.lastIndex=0;t>=0&&On.test(n);)n=n.replace(On,i),On.lastIndex=0,t-=1;return n}var Dh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function _h(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(Ts).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[n])}var Ah="Invalid date";function Oh(){return this._invalidDate}var Lh="%d",Ph=/\d{1,2}/;function Fh(n){return this._ordinal.replace("%d",n)}var Bh={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Vh(n,e,t,i){var r=this._relativeTime[t];return Wt(r)?r(n,e,t,i):r.replace(/%d/i,n)}function Nh(n,e){var t=this._relativeTime[n>0?"future":"past"];return Wt(t)?t(e):t.replace(/%s/i,e)}var tl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Dt(n){return typeof n=="string"?tl[n]||tl[n.toLowerCase()]:void 0}function _s(n){var e={},t,i;for(i in n)qe(n,i)&&(t=Dt(i),t&&(e[t]=n[i]));return e}var Hh={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ih(n){var e=[],t;for(t in n)qe(n,t)&&e.push({unit:t,priority:Hh[t]});return e.sort(function(i,r){return i.priority-r.priority}),e}var il=/\d/,St=/\d\d/,nl=/\d{3}/,As=/\d{4}/,Pn=/[+-]?\d{6}/,tt=/\d\d?/,rl=/\d\d\d\d?/,sl=/\d\d\d\d\d\d?/,Fn=/\d{1,3}/,Os=/\d{1,4}/,Bn=/[+-]?\d{1,6}/,Oi=/\d+/,Vn=/[+-]?\d+/,zh=/Z|[+-]\d\d:?\d\d/gi,Nn=/Z|[+-]\d\d(?::?\d\d)?/gi,jh=/[+-]?\d+(\.\d{1,3})?/,en=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Li=/^[1-9]\d?/,Ls=/^([1-9]\d|\d)/,Hn;Hn={};function xe(n,e,t){Hn[n]=Wt(e)?e:function(i,r){return i&&t?t:e}}function Wh(n,e){return qe(Hn,n)?Hn[n](e._strict,e._locale):new RegExp(Yh(n))}function Yh(n){return Qt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,s){return t||i||r||s}))}function Qt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _t(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function Ge(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=_t(e)),t}var Ps={};function Qe(n,e){var t,i=e,r;for(typeof n=="string"&&(n=[n]),Xt(e)&&(i=function(s,a){a[e]=Ge(s)}),r=n.length,t=0;t<r;t++)Ps[n[t]]=i}function tn(n,e){Qe(n,function(t,i,r,s){r._w=r._w||{},e(t,r._w,r,s)})}function Uh(n,e,t){e!=null&&qe(Ps,n)&&Ps[n](e,t._a,t,n)}function In(n){return n%4===0&&n%100!==0||n%400===0}var ft=0,Zt=1,Ut=2,dt=3,Nt=4,ei=5,yi=6,Gh=7,$h=8;_e("Y",0,0,function(){var n=this.year();return n<=9999?Yt(n,4):"+"+n}),_e(0,["YY",2],0,function(){return this.year()%100}),_e(0,["YYYY",4],0,"year"),_e(0,["YYYYY",5],0,"year"),_e(0,["YYYYYY",6,!0],0,"year"),xe("Y",Vn),xe("YY",tt,St),xe("YYYY",Os,As),xe("YYYYY",Bn,Pn),xe("YYYYYY",Bn,Pn),Qe(["YYYYY","YYYYYY"],ft),Qe("YYYY",function(n,e){e[ft]=n.length===2?Ce.parseTwoDigitYear(n):Ge(n)}),Qe("YY",function(n,e){e[ft]=Ce.parseTwoDigitYear(n)}),Qe("Y",function(n,e){e[ft]=parseInt(n,10)});function nn(n){return In(n)?366:365}Ce.parseTwoDigitYear=function(n){return Ge(n)+(Ge(n)>68?1900:2e3)};var al=Pi("FullYear",!0);function qh(){return In(this.year())}function Pi(n,e){return function(t){return t!=null?(ol(this,n,t),Ce.updateOffset(this,e),this):rn(this,n)}}function rn(n,e){if(!n.isValid())return NaN;var t=n._d,i=n._isUTC;switch(e){case"Milliseconds":return i?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return i?t.getUTCSeconds():t.getSeconds();case"Minutes":return i?t.getUTCMinutes():t.getMinutes();case"Hours":return i?t.getUTCHours():t.getHours();case"Date":return i?t.getUTCDate():t.getDate();case"Day":return i?t.getUTCDay():t.getDay();case"Month":return i?t.getUTCMonth():t.getMonth();case"FullYear":return i?t.getUTCFullYear():t.getFullYear();default:return NaN}}function ol(n,e,t){var i,r,s,a,l;if(!(!n.isValid()||isNaN(t))){switch(i=n._d,r=n._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(t):i.setMilliseconds(t));case"Seconds":return void(r?i.setUTCSeconds(t):i.setSeconds(t));case"Minutes":return void(r?i.setUTCMinutes(t):i.setMinutes(t));case"Hours":return void(r?i.setUTCHours(t):i.setHours(t));case"Date":return void(r?i.setUTCDate(t):i.setDate(t));case"FullYear":break;default:return}s=t,a=n.month(),l=n.date(),l=l===29&&a===1&&!In(s)?28:l,r?i.setUTCFullYear(s,a,l):i.setFullYear(s,a,l)}}function Kh(n){return n=Dt(n),Wt(this[n])?this[n]():this}function Jh(n,e){if(typeof n=="object"){n=_s(n);var t=Ih(n),i,r=t.length;for(i=0;i<r;i++)this[t[i].unit](n[t[i].unit])}else if(n=Dt(n),Wt(this[n]))return this[n](e);return this}function Xh(n,e){return(n%e+e)%e}var ut;Array.prototype.indexOf?ut=Array.prototype.indexOf:ut=function(n){var e;for(e=0;e<this.length;++e)if(this[e]===n)return e;return-1};function Fs(n,e){if(isNaN(n)||isNaN(e))return NaN;var t=Xh(e,12);return n+=(e-t)/12,t===1?In(n)?29:28:31-t%7%2}_e("M",["MM",2],"Mo",function(){return this.month()+1}),_e("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),_e("MMMM",0,0,function(n){return this.localeData().months(this,n)}),xe("M",tt,Li),xe("MM",tt,St),xe("MMM",function(n,e){return e.monthsShortRegex(n)}),xe("MMMM",function(n,e){return e.monthsRegex(n)}),Qe(["M","MM"],function(n,e){e[Zt]=Ge(n)-1}),Qe(["MMM","MMMM"],function(n,e,t,i){var r=t._locale.monthsParse(n,i,t._strict);r!=null?e[Zt]=r:je(t).invalidMonth=n});var Qh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ll="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ul=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Zh=en,ef=en;function tf(n,e){return n?Bt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ul).test(e)?"format":"standalone"][n.month()]:Bt(this._months)?this._months:this._months.standalone}function nf(n,e){return n?Bt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ul.test(e)?"format":"standalone"][n.month()]:Bt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rf(n,e,t){var i,r,s,a=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=jt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return t?e==="MMM"?(r=ut.call(this._shortMonthsParse,a),r!==-1?r:null):(r=ut.call(this._longMonthsParse,a),r!==-1?r:null):e==="MMM"?(r=ut.call(this._shortMonthsParse,a),r!==-1?r:(r=ut.call(this._longMonthsParse,a),r!==-1?r:null)):(r=ut.call(this._longMonthsParse,a),r!==-1?r:(r=ut.call(this._shortMonthsParse,a),r!==-1?r:null))}function sf(n,e,t){var i,r,s;if(this._monthsParseExact)return rf.call(this,n,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=jt([2e3,i]),t&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[i].test(n))return i;if(t&&e==="MMM"&&this._shortMonthsParse[i].test(n))return i;if(!t&&this._monthsParse[i].test(n))return i}}function cl(n,e){if(!n.isValid())return n;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ge(e);else if(e=n.localeData().monthsParse(e),!Xt(e))return n}var t=e,i=n.date();return i=i<29?i:Math.min(i,Fs(n.year(),t)),n._isUTC?n._d.setUTCMonth(t,i):n._d.setMonth(t,i),n}function dl(n){return n!=null?(cl(this,n),Ce.updateOffset(this,!0),this):rn(this,"Month")}function af(){return Fs(this.year(),this.month())}function of(n){return this._monthsParseExact?(qe(this,"_monthsRegex")||hl.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(qe(this,"_monthsShortRegex")||(this._monthsShortRegex=Zh),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function lf(n){return this._monthsParseExact?(qe(this,"_monthsRegex")||hl.call(this),n?this._monthsStrictRegex:this._monthsRegex):(qe(this,"_monthsRegex")||(this._monthsRegex=ef),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function hl(){function n(u,c){return c.length-u.length}var e=[],t=[],i=[],r,s,a,l;for(r=0;r<12;r++)s=jt([2e3,r]),a=Qt(this.monthsShort(s,"")),l=Qt(this.months(s,"")),e.push(a),t.push(l),i.push(l),i.push(a);e.sort(n),t.sort(n),i.sort(n),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function uf(n,e,t,i,r,s,a){var l;return n<100&&n>=0?(l=new Date(n+400,e,t,i,r,s,a),isFinite(l.getFullYear())&&l.setFullYear(n)):l=new Date(n,e,t,i,r,s,a),l}function sn(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function zn(n,e,t){var i=7+e-t,r=(7+sn(n,0,i).getUTCDay()-e)%7;return-r+i-1}function fl(n,e,t,i,r){var s=(7+t-i)%7,a=zn(n,i,r),l=1+7*(e-1)+s+a,u,c;return l<=0?(u=n-1,c=nn(u)+l):l>nn(n)?(u=n+1,c=l-nn(n)):(u=n,c=l),{year:u,dayOfYear:c}}function an(n,e,t){var i=zn(n.year(),e,t),r=Math.floor((n.dayOfYear()-i-1)/7)+1,s,a;return r<1?(a=n.year()-1,s=r+ti(a,e,t)):r>ti(n.year(),e,t)?(s=r-ti(n.year(),e,t),a=n.year()+1):(a=n.year(),s=r),{week:s,year:a}}function ti(n,e,t){var i=zn(n,e,t),r=zn(n+1,e,t);return(nn(n)-i+r)/7}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),xe("w",tt,Li),xe("ww",tt,St),xe("W",tt,Li),xe("WW",tt,St),tn(["w","ww","W","WW"],function(n,e,t,i){e[i.substr(0,1)]=Ge(n)});function cf(n){return an(n,this._week.dow,this._week.doy).week}var df={dow:0,doy:6};function hf(){return this._week.dow}function ff(){return this._week.doy}function pf(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function mf(n){var e=an(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}_e("d",0,"do","day"),_e("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),_e("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),_e("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),xe("d",tt),xe("e",tt),xe("E",tt),xe("dd",function(n,e){return e.weekdaysMinRegex(n)}),xe("ddd",function(n,e){return e.weekdaysShortRegex(n)}),xe("dddd",function(n,e){return e.weekdaysRegex(n)}),tn(["dd","ddd","dddd"],function(n,e,t,i){var r=t._locale.weekdaysParse(n,i,t._strict);r!=null?e.d=r:je(t).invalidWeekday=n}),tn(["d","e","E"],function(n,e,t,i){e[i]=Ge(n)});function gf(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function bf(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function Bs(n,e){return n.slice(e,7).concat(n.slice(0,e))}var vf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yf="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wf=en,Cf=en,Ef=en;function kf(n,e){var t=Bt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?Bs(t,this._week.dow):n?t[n.day()]:t}function Sf(n){return n===!0?Bs(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function xf(n){return n===!0?Bs(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Mf(n,e,t){var i,r,s,a=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=jt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return t?e==="dddd"?(r=ut.call(this._weekdaysParse,a),r!==-1?r:null):e==="ddd"?(r=ut.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null):e==="dddd"?(r=ut.call(this._weekdaysParse,a),r!==-1||(r=ut.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null)):e==="ddd"?(r=ut.call(this._shortWeekdaysParse,a),r!==-1||(r=ut.call(this._weekdaysParse,a),r!==-1)?r:(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=ut.call(this._minWeekdaysParse,a),r!==-1||(r=ut.call(this._weekdaysParse,a),r!==-1)?r:(r=ut.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function Rf(n,e,t){var i,r,s;if(this._weekdaysParseExact)return Mf.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=jt([2e3,1]).day(i),t&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[i].test(n))return i;if(t&&e==="ddd"&&this._shortWeekdaysParse[i].test(n))return i;if(t&&e==="dd"&&this._minWeekdaysParse[i].test(n))return i;if(!t&&this._weekdaysParse[i].test(n))return i}}function Tf(n){if(!this.isValid())return n!=null?this:NaN;var e=rn(this,"Day");return n!=null?(n=gf(n,this.localeData()),this.add(n-e,"d")):e}function Df(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function _f(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=bf(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Af(n){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||Vs.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(qe(this,"_weekdaysRegex")||(this._weekdaysRegex=wf),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Of(n){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||Vs.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(qe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cf),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Lf(n){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||Vs.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(qe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ef),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vs(){function n(d,f){return f.length-d.length}var e=[],t=[],i=[],r=[],s,a,l,u,c;for(s=0;s<7;s++)a=jt([2e3,1]).day(s),l=Qt(this.weekdaysMin(a,"")),u=Qt(this.weekdaysShort(a,"")),c=Qt(this.weekdays(a,"")),e.push(l),t.push(u),i.push(c),r.push(l),r.push(u),r.push(c);e.sort(n),t.sort(n),i.sort(n),r.sort(n),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ns(){return this.hours()%12||12}function Pf(){return this.hours()||24}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Ns),_e("k",["kk",2],0,Pf),_e("hmm",0,0,function(){return""+Ns.apply(this)+Yt(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Ns.apply(this)+Yt(this.minutes(),2)+Yt(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+Yt(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+Yt(this.minutes(),2)+Yt(this.seconds(),2)});function ml(n,e){_e(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ml("a",!0),ml("A",!1);function gl(n,e){return e._meridiemParse}xe("a",gl),xe("A",gl),xe("H",tt,Ls),xe("h",tt,Li),xe("k",tt,Li),xe("HH",tt,St),xe("hh",tt,St),xe("kk",tt,St),xe("hmm",rl),xe("hmmss",sl),xe("Hmm",rl),xe("Hmmss",sl),Qe(["H","HH"],dt),Qe(["k","kk"],function(n,e,t){var i=Ge(n);e[dt]=i===24?0:i}),Qe(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n}),Qe(["h","hh"],function(n,e,t){e[dt]=Ge(n),je(t).bigHour=!0}),Qe("hmm",function(n,e,t){var i=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i)),je(t).bigHour=!0}),Qe("hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i,2)),e[ei]=Ge(n.substr(r)),je(t).bigHour=!0}),Qe("Hmm",function(n,e,t){var i=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i))}),Qe("Hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i,2)),e[ei]=Ge(n.substr(r))});function Ff(n){return(n+"").toLowerCase().charAt(0)==="p"}var Bf=/[ap]\.?m?\.?/i,Vf=Pi("Hours",!0);function Nf(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var bl={calendar:xh,longDateFormat:Dh,invalidDate:Ah,ordinal:Lh,dayOfMonthOrdinalParse:Ph,relativeTime:Bh,months:Qh,monthsShort:ll,week:df,weekdays:vf,weekdaysMin:yf,weekdaysShort:pl,meridiemParse:Bf},st={},on={},ln;function Hf(n,e){var t,i=Math.min(n.length,e.length);for(t=0;t<i;t+=1)if(n[t]!==e[t])return t;return i}function vl(n){return n&&n.toLowerCase().replace("_","-")}function If(n){for(var e=0,t,i,r,s;e<n.length;){for(s=vl(n[e]).split("-"),t=s.length,i=vl(n[e+1]),i=i?i.split("-"):null;t>0;){if(r=jn(s.slice(0,t).join("-")),r)return r;if(i&&i.length>=t&&Hf(s,i)>=t-1)break;t--}e++}return ln}function zf(n){return!!(n&&n.match("^[^/\\\\]*$"))}function jn(n){var e=null,t;if(st[n]===void 0&&typeof module<"u"&&module&&module.exports&&zf(n))try{e=ln._abbr,t=require,t("./locale/"+n),ci(e)}catch{st[n]=null}return st[n]}function ci(n,e){var t;return n&&(wt(e)?t=ii(n):t=Hs(n,e),t?ln=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ln._abbr}function Hs(n,e){if(e!==null){var t,i=bl;if(e.abbr=n,st[n]!=null)Zo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=st[n]._config;else if(e.parentLocale!=null)if(st[e.parentLocale]!=null)i=st[e.parentLocale]._config;else if(t=jn(e.parentLocale),t!=null)i=t._config;else return on[e.parentLocale]||(on[e.parentLocale]=[]),on[e.parentLocale].push({name:n,config:e}),null;return st[n]=new Ms(xs(i,e)),on[n]&&on[n].forEach(function(r){Hs(r.name,r.config)}),ci(n),st[n]}else return delete st[n],null}function jf(n,e){if(e!=null){var t,i,r=bl;st[n]!=null&&st[n].parentLocale!=null?st[n].set(xs(st[n]._config,e)):(i=jn(n),i!=null&&(r=i._config),e=xs(r,e),i==null&&(e.abbr=n),t=new Ms(e),t.parentLocale=st[n],st[n]=t),ci(n)}else st[n]!=null&&(st[n].parentLocale!=null?(st[n]=st[n].parentLocale,n===ci()&&ci(n)):st[n]!=null&&delete st[n]);return st[n]}function ii(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ln;if(!Bt(n)){if(e=jn(n),e)return e;n=[n]}return If(n)}function Wf(){return Rs(st)}function Is(n){var e,t=n._a;return t&&je(n).overflow===-2&&(e=t[Zt]<0||t[Zt]>11?Zt:t[Ut]<1||t[Ut]>Fs(t[ft],t[Zt])?Ut:t[dt]<0||t[dt]>24||t[dt]===24&&(t[Nt]!==0||t[ei]!==0||t[yi]!==0)?dt:t[Nt]<0||t[Nt]>59?Nt:t[ei]<0||t[ei]>59?ei:t[yi]<0||t[yi]>999?yi:-1,je(n)._overflowDayOfYear&&(e<ft||e>Ut)&&(e=Ut),je(n)._overflowWeeks&&e===-1&&(e=Gh),je(n)._overflowWeekday&&e===-1&&(e=$h),je(n).overflow=e),n}var Yf=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Uf=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gf=/Z|[+-]\d\d(?::?\d\d)?/,Wn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$f=/^\/?Date\((-?\d+)/i,qf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kf={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yl(n){var e,t,i=n._i,r=Yf.exec(i)||Uf.exec(i),s,a,l,u,c=Wn.length,d=zs.length;if(r){for(je(n).iso=!0,e=0,t=c;e<t;e++)if(Wn[e][1].exec(r[1])){a=Wn[e][0],s=Wn[e][2]!==!1;break}if(a==null){n._isValid=!1;return}if(r[3]){for(e=0,t=d;e<t;e++)if(zs[e][1].exec(r[3])){l=(r[2]||" ")+zs[e][0];break}if(l==null){n._isValid=!1;return}}if(!s&&l!=null){n._isValid=!1;return}if(r[4])if(Gf.exec(r[4]))u="Z";else{n._isValid=!1;return}n._f=a+(l||"")+(u||""),Ws(n)}else n._isValid=!1}function Jf(n,e,t,i,r,s){var a=[Xf(n),ll.indexOf(e),parseInt(t,10),parseInt(i,10),parseInt(r,10)];return s&&a.push(parseInt(s,10)),a}function Xf(n){var e=parseInt(n,10);return e<=49?2e3+e:e<=999?1900+e:e}function Qf(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Zf(n,e,t){if(n){var i=pl.indexOf(n),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return je(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function ep(n,e,t){if(n)return Kf[n];if(e)return 0;var i=parseInt(t,10),r=i%100,s=(i-r)/100;return s*60+r}function wl(n){var e=qf.exec(Qf(n._i)),t;if(e){if(t=Jf(e[4],e[3],e[2],e[5],e[6],e[7]),!Zf(e[1],t,n))return;n._a=t,n._tzm=ep(e[8],e[9],e[10]),n._d=sn.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),je(n).rfc2822=!0}else n._isValid=!1}function tp(n){var e=$f.exec(n._i);if(e!==null){n._d=new Date(+e[1]);return}if(yl(n),n._isValid===!1)delete n._isValid;else return;if(wl(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:Ce.createFromInputFallback(n)}Ce.createFromInputFallback=Tt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function Fi(n,e,t){return n??e??t}function ip(n){var e=new Date(Ce.now());return n._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function js(n){var e,t,i=[],r,s,a;if(!n._d){for(r=ip(n),n._w&&n._a[Ut]==null&&n._a[Zt]==null&&np(n),n._dayOfYear!=null&&(a=Fi(n._a[ft],r[ft]),(n._dayOfYear>nn(a)||n._dayOfYear===0)&&(je(n)._overflowDayOfYear=!0),t=sn(a,0,n._dayOfYear),n._a[Zt]=t.getUTCMonth(),n._a[Ut]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=i[e]=r[e];for(;e<7;e++)n._a[e]=i[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[dt]===24&&n._a[Nt]===0&&n._a[ei]===0&&n._a[yi]===0&&(n._nextDay=!0,n._a[dt]=0),n._d=(n._useUTC?sn:uf).apply(null,i),s=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[dt]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(je(n).weekdayMismatch=!0)}}function np(n){var e,t,i,r,s,a,l,u,c;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,a=4,t=Fi(e.GG,n._a[ft],an(it(),1,4).year),i=Fi(e.W,1),r=Fi(e.E,1),(r<1||r>7)&&(u=!0)):(s=n._locale._week.dow,a=n._locale._week.doy,c=an(it(),s,a),t=Fi(e.gg,n._a[ft],c.year),i=Fi(e.w,c.week),e.d!=null?(r=e.d,(r<0||r>6)&&(u=!0)):e.e!=null?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),i<1||i>ti(t,s,a)?je(n)._overflowWeeks=!0:u!=null?je(n)._overflowWeekday=!0:(l=fl(t,i,r,s,a),n._a[ft]=l.year,n._dayOfYear=l.dayOfYear)}Ce.ISO_8601=function(){},Ce.RFC_2822=function(){};function Ws(n){if(n._f===Ce.ISO_8601){yl(n);return}if(n._f===Ce.RFC_2822){wl(n);return}n._a=[],je(n).empty=!0;var e=""+n._i,t,i,r,s,a,l=e.length,u=0,c,d;for(r=el(n._f,n._locale).match(Ts)||[],d=r.length,t=0;t<d;t++)s=r[t],i=(e.match(Wh(s,n))||[])[0],i&&(a=e.substr(0,e.indexOf(i)),a.length>0&&je(n).unusedInput.push(a),e=e.slice(e.indexOf(i)+i.length),u+=i.length),Ai[s]?(i?je(n).empty=!1:je(n).unusedTokens.push(s),Uh(s,i,n)):n._strict&&!i&&je(n).unusedTokens.push(s);je(n).charsLeftOver=l-u,e.length>0&&je(n).unusedInput.push(e),n._a[dt]<=12&&je(n).bigHour===!0&&n._a[dt]>0&&(je(n).bigHour=void 0),je(n).parsedDateParts=n._a.slice(0),je(n).meridiem=n._meridiem,n._a[dt]=rp(n._locale,n._a[dt],n._meridiem),c=je(n).era,c!==null&&(n._a[ft]=n._locale.erasConvertYear(c,n._a[ft])),js(n),Is(n)}function rp(n,e,t){var i;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(i=n.isPM(t),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function sp(n){var e,t,i,r,s,a,l=!1,u=n._f.length;if(u===0){je(n).invalidFormat=!0,n._d=new Date(NaN);return}for(r=0;r<u;r++)s=0,a=!1,e=Ss({},n),n._useUTC!=null&&(e._useUTC=n._useUTC),e._f=n._f[r],Ws(e),Es(e)&&(a=!0),s+=je(e).charsLeftOver,s+=je(e).unusedTokens.length*10,je(e).score=s,l?s<i&&(i=s,t=e):(i==null||s<i||a)&&(i=s,t=e,a&&(l=!0));ui(n,t||e)}function ap(n){if(!n._d){var e=_s(n._i),t=e.day===void 0?e.date:e.day;n._a=Ko([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),js(n)}}function op(n){var e=new Zi(Is(Cl(n)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Cl(n){var e=n._i,t=n._f;return n._locale=n._locale||ii(n._l),e===null||t===void 0&&e===""?An({nullInput:!0}):(typeof e=="string"&&(n._i=e=n._locale.preparse(e)),Vt(e)?new Zi(Is(e)):(Qi(e)?n._d=e:Bt(t)?sp(n):t?Ws(n):lp(n),Es(n)||(n._d=null),n))}function lp(n){var e=n._i;wt(e)?n._d=new Date(Ce.now()):Qi(e)?n._d=new Date(e.valueOf()):typeof e=="string"?tp(n):Bt(e)?(n._a=Ko(e.slice(0),function(t){return parseInt(t,10)}),js(n)):vi(e)?ap(n):Xt(e)?n._d=new Date(e):Ce.createFromInputFallback(n)}function El(n,e,t,i,r){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(t===!0||t===!1)&&(i=t,t=void 0),(vi(n)&&ws(n)||Bt(n)&&n.length===0)&&(n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=t,s._i=n,s._f=e,s._strict=i,op(s)}function it(n,e,t,i){return El(n,e,t,i,!1)}var up=Tt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:An()}),cp=Tt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:An()});function kl(n,e){var t,i;if(e.length===1&&Bt(e[0])&&(e=e[0]),!e.length)return it();for(t=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][n](t))&&(t=e[i]);return t}function dp(){var n=[].slice.call(arguments,0);return kl("isBefore",n)}function hp(){var n=[].slice.call(arguments,0);return kl("isAfter",n)}var fp=function(){return Date.now?Date.now():+new Date},un=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(n){var e,t=!1,i,r=un.length;for(e in n)if(qe(n,e)&&!(ut.call(un,e)!==-1&&(n[e]==null||!isNaN(n[e]))))return!1;for(i=0;i<r;++i)if(n[un[i]]){if(t)return!1;parseFloat(n[un[i]])!==Ge(n[un[i]])&&(t=!0)}return!0}function mp(){return this._isValid}function gp(){return Ht(NaN)}function Yn(n){var e=_s(n),t=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,u=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=pp(e),this._milliseconds=+d+c*1e3+u*6e4+l*1e3*60*60,this._days=+a+s*7,this._months=+r+i*3+t*12,this._data={},this._locale=ii(),this._bubble()}function Un(n){return n instanceof Yn}function Ys(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function bp(n,e,t){var i=Math.min(n.length,e.length),r=Math.abs(n.length-e.length),s=0,a;for(a=0;a<i;a++)Ge(n[a])!==Ge(e[a])&&s++;return s+r}function Sl(n,e){_e(n,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Yt(~~(t/60),2)+e+Yt(~~t%60,2)})}Sl("Z",":"),Sl("ZZ",""),xe("Z",Nn),xe("ZZ",Nn),Qe(["Z","ZZ"],function(n,e,t){t._useUTC=!0,t._tzm=Us(Nn,n)});var vp=/([\+\-]|\d\d)/gi;function Us(n,e){var t=(e||"").match(n),i,r,s;return t===null?null:(i=t[t.length-1]||[],r=(i+"").match(vp)||["-",0,0],s=+(r[1]*60)+Ge(r[2]),s===0?0:r[0]==="+"?s:-s)}function Gs(n,e){var t,i;return e._isUTC?(t=e.clone(),i=(Vt(n)||Qi(n)?n.valueOf():it(n).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),Ce.updateOffset(t,!1),t):it(n).local()}function $s(n){return-Math.round(n._d.getTimezoneOffset())}Ce.updateOffset=function(){};function yp(n,e,t){var i=this._offset||0,r;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=Us(Nn,n),n===null)return this}else Math.abs(n)<16&&!t&&(n=n*60);return!this._isUTC&&e&&(r=$s(this)),this._offset=n,this._isUTC=!0,r!=null&&this.add(r,"m"),i!==n&&(!e||this._changeInProgress?Tl(this,Ht(n-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ce.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:$s(this)}function wp(n,e){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,e),this):-this.utcOffset()}function Cp(n){return this.utcOffset(0,n)}function Ep(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract($s(this),"m")),this}function kp(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=Us(zh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function Sp(n){return this.isValid()?(n=n?it(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function xp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mp(){if(!wt(this._isDSTShifted))return this._isDSTShifted;var n={},e;return Ss(n,this),n=Cl(n),n._a?(e=n._isUTC?jt(n._a):it(n._a),this._isDSTShifted=this.isValid()&&bp(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Rp(){return this.isValid()?!this._isUTC:!1}function Tp(){return this.isValid()?this._isUTC:!1}function xl(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Dp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(n,e){var t=n,i=null,r,s,a;return Un(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:Xt(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(i=Dp.exec(n))?(r=i[1]==="-"?-1:1,t={y:0,d:Ge(i[Ut])*r,h:Ge(i[dt])*r,m:Ge(i[Nt])*r,s:Ge(i[ei])*r,ms:Ge(Ys(i[yi]*1e3))*r}):(i=_p.exec(n))?(r=i[1]==="-"?-1:1,t={y:wi(i[2],r),M:wi(i[3],r),w:wi(i[4],r),d:wi(i[5],r),h:wi(i[6],r),m:wi(i[7],r),s:wi(i[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(a=Ap(it(t.from),it(t.to)),t={},t.ms=a.milliseconds,t.M=a.months),s=new Yn(t),Un(n)&&qe(n,"_locale")&&(s._locale=n._locale),Un(n)&&qe(n,"_isValid")&&(s._isValid=n._isValid),s}Ht.fn=Yn.prototype,Ht.invalid=gp;function wi(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function Ml(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Ap(n,e){var t;return n.isValid()&&e.isValid()?(e=Gs(e,n),n.isBefore(e)?t=Ml(n,e):(t=Ml(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Rl(n,e){return function(t,i){var r,s;return i!==null&&!isNaN(+i)&&(Zo(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=t,t=i,i=s),r=Ht(t,i),Tl(this,r,n),this}}function Tl(n,e,t,i){var r=e._milliseconds,s=Ys(e._days),a=Ys(e._months);n.isValid()&&(i=i??!0,a&&cl(n,rn(n,"Month")+a*t),s&&ol(n,"Date",rn(n,"Date")+s*t),r&&n._d.setTime(n._d.valueOf()+r*t),i&&Ce.updateOffset(n,s||a))}var Op=Rl(1,"add"),Lp=Rl(-1,"subtract");function Dl(n){return typeof n=="string"||n instanceof String}function Pp(n){return Vt(n)||Qi(n)||Dl(n)||Xt(n)||Bp(n)||Fp(n)||n===null||n===void 0}function Fp(n){var e=vi(n)&&!ws(n),t=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,s,a=i.length;for(r=0;r<a;r+=1)s=i[r],t=t||qe(n,s);return e&&t}function Bp(n){var e=Bt(n),t=!1;return e&&(t=n.filter(function(i){return!Xt(i)&&Dl(n)}).length===0),e&&t}function Vp(n){var e=vi(n)&&!ws(n),t=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,s;for(r=0;r<i.length;r+=1)s=i[r],t=t||qe(n,s);return e&&t}function Np(n,e){var t=n.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Hp(n,e){arguments.length===1&&(arguments[0]?Pp(arguments[0])?(n=arguments[0],e=void 0):Vp(arguments[0])&&(e=arguments[0],n=void 0):(n=void 0,e=void 0));var t=n||it(),i=Gs(t,this).startOf("day"),r=Ce.calendarFormat(this,i)||"sameElse",s=e&&(Wt(e[r])?e[r].call(this,t):e[r]);return this.format(s||this.localeData().calendar(r,this,it(t)))}function Ip(){return new Zi(this)}function zp(n,e){var t=Vt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Dt(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function jp(n,e){var t=Vt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Dt(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function Wp(n,e,t,i){var r=Vt(n)?n:it(n),s=Vt(e)?e:it(e);return this.isValid()&&r.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(i[1]===")"?this.isBefore(s,t):!this.isAfter(s,t))):!1}function Yp(n,e){var t=Vt(n)?n:it(n),i;return this.isValid()&&t.isValid()?(e=Dt(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(i=t.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function Up(n,e){return this.isSame(n,e)||this.isAfter(n,e)}function Gp(n,e){return this.isSame(n,e)||this.isBefore(n,e)}function $p(n,e,t){var i,r,s;if(!this.isValid())return NaN;if(i=Gs(n,this),!i.isValid())return NaN;switch(r=(i.utcOffset()-this.utcOffset())*6e4,e=Dt(e),e){case"year":s=Gn(this,i)/12;break;case"month":s=Gn(this,i);break;case"quarter":s=Gn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return t?s:_t(s)}function Gn(n,e){if(n.date()<e.date())return-Gn(e,n);var t=(e.year()-n.year())*12+(e.month()-n.month()),i=n.clone().add(t,"months"),r,s;return e-i<0?(r=n.clone().add(t-1,"months"),s=(e-i)/(i-r)):(r=n.clone().add(t+1,"months"),s=(e-i)/(r-i)),-(t+s)||0}Ce.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ce.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function qp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kp(n){if(!this.isValid())return null;var e=n!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?Ln(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Wt(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ln(t,"Z")):Ln(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,i,r,s;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(t+i+r+s)}function Xp(n){n||(n=this.isUtc()?Ce.defaultFormatUtc:Ce.defaultFormat);var e=Ln(this,n);return this.localeData().postformat(e)}function Qp(n,e){return this.isValid()&&(Vt(n)&&n.isValid()||it(n).isValid())?Ht({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zp(n){return this.from(it(),n)}function em(n,e){return this.isValid()&&(Vt(n)&&n.isValid()||it(n).isValid())?Ht({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function tm(n){return this.to(it(),n)}function _l(n){var e;return n===void 0?this._locale._abbr:(e=ii(n),e!=null&&(this._locale=e),this)}var Al=Tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Ol(){return this._locale}var $n=1e3,Bi=60*$n,qn=60*Bi,Ll=(365*400+97)*24*qn;function Vi(n,e){return(n%e+e)%e}function Pl(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Ll:new Date(n,e,t).valueOf()}function Fl(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Ll:Date.UTC(n,e,t)}function im(n){var e,t;if(n=Dt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Fl:Pl,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Vi(e+(this._isUTC?0:this.utcOffset()*Bi),qn);break;case"minute":e=this._d.valueOf(),e-=Vi(e,Bi);break;case"second":e=this._d.valueOf(),e-=Vi(e,$n);break}return this._d.setTime(e),Ce.updateOffset(this,!0),this}function nm(n){var e,t;if(n=Dt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Fl:Pl,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=qn-Vi(e+(this._isUTC?0:this.utcOffset()*Bi),qn)-1;break;case"minute":e=this._d.valueOf(),e+=Bi-Vi(e,Bi)-1;break;case"second":e=this._d.valueOf(),e+=$n-Vi(e,$n)-1;break}return this._d.setTime(e),Ce.updateOffset(this,!0),this}function rm(){return this._d.valueOf()-(this._offset||0)*6e4}function sm(){return Math.floor(this.valueOf()/1e3)}function am(){return new Date(this.valueOf())}function om(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function lm(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function um(){return this.isValid()?this.toISOString():null}function cm(){return Es(this)}function dm(){return ui({},je(this))}function hm(){return je(this).overflow}function fm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_e("N",0,0,"eraAbbr"),_e("NN",0,0,"eraAbbr"),_e("NNN",0,0,"eraAbbr"),_e("NNNN",0,0,"eraName"),_e("NNNNN",0,0,"eraNarrow"),_e("y",["y",1],"yo","eraYear"),_e("y",["yy",2],0,"eraYear"),_e("y",["yyy",3],0,"eraYear"),_e("y",["yyyy",4],0,"eraYear"),xe("N",qs),xe("NN",qs),xe("NNN",qs),xe("NNNN",Sm),xe("NNNNN",xm),Qe(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,i){var r=t._locale.erasParse(n,i,t._strict);r?je(t).era=r:je(t).invalidEra=n}),xe("y",Oi),xe("yy",Oi),xe("yyy",Oi),xe("yyyy",Oi),xe("yo",Mm),Qe(["y","yy","yyy","yyyy"],ft),Qe(["yo"],function(n,e,t,i){var r;t._locale._eraYearOrdinalRegex&&(r=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[ft]=t._locale.eraYearOrdinalParse(n,r):e[ft]=parseInt(n,10)});function pm(n,e){var t,i,r,s=this._eras||ii("en")._eras;for(t=0,i=s.length;t<i;++t){switch(typeof s[t].since){case"string":r=Ce(s[t].since).startOf("day"),s[t].since=r.valueOf();break}switch(typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":r=Ce(s[t].until).startOf("day").valueOf(),s[t].until=r.valueOf();break}}return s}function mm(n,e,t){var i,r,s=this.eras(),a,l,u;for(n=n.toUpperCase(),i=0,r=s.length;i<r;++i)if(a=s[i].name.toUpperCase(),l=s[i].abbr.toUpperCase(),u=s[i].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(l===n)return s[i];break;case"NNNN":if(a===n)return s[i];break;case"NNNNN":if(u===n)return s[i];break}else if([a,l,u].indexOf(n)>=0)return s[i]}function gm(n,e){var t=n.since<=n.until?1:-1;return e===void 0?Ce(n.since).year():Ce(n.since).year()+(e-n.offset)*t}function bm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].name;return""}function vm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].narrow;return""}function ym(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].abbr;return""}function wm(){var n,e,t,i,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=r[n].since<=r[n].until?1:-1,i=this.clone().startOf("day").valueOf(),r[n].since<=i&&i<=r[n].until||r[n].until<=i&&i<=r[n].since)return(this.year()-Ce(r[n].since).year())*t+r[n].offset;return this.year()}function Cm(n){return qe(this,"_erasNameRegex")||Ks.call(this),n?this._erasNameRegex:this._erasRegex}function Em(n){return qe(this,"_erasAbbrRegex")||Ks.call(this),n?this._erasAbbrRegex:this._erasRegex}function km(n){return qe(this,"_erasNarrowRegex")||Ks.call(this),n?this._erasNarrowRegex:this._erasRegex}function qs(n,e){return e.erasAbbrRegex(n)}function Sm(n,e){return e.erasNameRegex(n)}function xm(n,e){return e.erasNarrowRegex(n)}function Mm(n,e){return e._eraYearOrdinalRegex||Oi}function Ks(){var n=[],e=[],t=[],i=[],r,s,a,l,u,c=this.eras();for(r=0,s=c.length;r<s;++r)a=Qt(c[r].name),l=Qt(c[r].abbr),u=Qt(c[r].narrow),e.push(a),n.push(l),t.push(u),i.push(a),i.push(l),i.push(u);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}_e(0,["gg",2],0,function(){return this.weekYear()%100}),_e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kn(n,e){_e(0,[n,n.length],0,e)}Kn("gggg","weekYear"),Kn("ggggg","weekYear"),Kn("GGGG","isoWeekYear"),Kn("GGGGG","isoWeekYear"),xe("G",Vn),xe("g",Vn),xe("GG",tt,St),xe("gg",tt,St),xe("GGGG",Os,As),xe("gggg",Os,As),xe("GGGGG",Bn,Pn),xe("ggggg",Bn,Pn),tn(["gggg","ggggg","GGGG","GGGGG"],function(n,e,t,i){e[i.substr(0,2)]=Ge(n)}),tn(["gg","GG"],function(n,e,t,i){e[i]=Ce.parseTwoDigitYear(n)});function Rm(n){return Bl.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Tm(n){return Bl.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Dm(){return ti(this.year(),1,4)}function _m(){return ti(this.isoWeekYear(),1,4)}function Am(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function Om(){var n=this.localeData()._week;return ti(this.weekYear(),n.dow,n.doy)}function Bl(n,e,t,i,r){var s;return n==null?an(this,i,r).year:(s=ti(n,i,r),e>s&&(e=s),Lm.call(this,n,e,t,i,r))}function Lm(n,e,t,i,r){var s=fl(n,e,t,i,r),a=sn(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}_e("Q",0,"Qo","quarter"),xe("Q",il),Qe("Q",function(n,e){e[Zt]=(Ge(n)-1)*3});function Pm(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}_e("D",["DD",2],"Do","date"),xe("D",tt,Li),xe("DD",tt,St),xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Qe(["D","DD"],Ut),Qe("Do",function(n,e){e[Ut]=Ge(n.match(tt)[0])});var Vl=Pi("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),xe("DDD",Fn),xe("DDDD",nl),Qe(["DDD","DDDD"],function(n,e,t){t._dayOfYear=Ge(n)});function Fm(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}_e("m",["mm",2],0,"minute"),xe("m",tt,Ls),xe("mm",tt,St),Qe(["m","mm"],Nt);var Bm=Pi("Minutes",!1);_e("s",["ss",2],0,"second"),xe("s",tt,Ls),xe("ss",tt,St),Qe(["s","ss"],ei);var Vm=Pi("Seconds",!1);_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return this.millisecond()*10}),_e(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),xe("S",Fn,il),xe("SS",Fn,St),xe("SSS",Fn,nl);var di,Nl;for(di="SSSS";di.length<=9;di+="S")xe(di,Oi);function Nm(n,e){e[yi]=Ge(("0."+n)*1e3)}for(di="S";di.length<=9;di+="S")Qe(di,Nm);Nl=Pi("Milliseconds",!1),_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");function Hm(){return this._isUTC?"UTC":""}function Im(){return this._isUTC?"Coordinated Universal Time":""}var be=Zi.prototype;be.add=Op,be.calendar=Hp,be.clone=Ip,be.diff=$p,be.endOf=nm,be.format=Xp,be.from=Qp,be.fromNow=Zp,be.to=em,be.toNow=tm,be.get=Kh,be.invalidAt=hm,be.isAfter=zp,be.isBefore=jp,be.isBetween=Wp,be.isSame=Yp,be.isSameOrAfter=Up,be.isSameOrBefore=Gp,be.isValid=cm,be.lang=Al,be.locale=_l,be.localeData=Ol,be.max=cp,be.min=up,be.parsingFlags=dm,be.set=Jh,be.startOf=im,be.subtract=Lp,be.toArray=om,be.toObject=lm,be.toDate=am,be.toISOString=Kp,be.inspect=Jp,typeof Symbol<"u"&&Symbol.for!=null&&(be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),be.toJSON=um,be.toString=qp,be.unix=sm,be.valueOf=rm,be.creationData=fm,be.eraName=bm,be.eraNarrow=vm,be.eraAbbr=ym,be.eraYear=wm,be.year=al,be.isLeapYear=qh,be.weekYear=Rm,be.isoWeekYear=Tm,be.quarter=be.quarters=Pm,be.month=dl,be.daysInMonth=af,be.week=be.weeks=pf,be.isoWeek=be.isoWeeks=mf,be.weeksInYear=Am,be.weeksInWeekYear=Om,be.isoWeeksInYear=Dm,be.isoWeeksInISOWeekYear=_m,be.date=Vl,be.day=be.days=Tf,be.weekday=Df,be.isoWeekday=_f,be.dayOfYear=Fm,be.hour=be.hours=Vf,be.minute=be.minutes=Bm,be.second=be.seconds=Vm,be.millisecond=be.milliseconds=Nl,be.utcOffset=yp,be.utc=Cp,be.local=Ep,be.parseZone=kp,be.hasAlignedHourOffset=Sp,be.isDST=xp,be.isLocal=Rp,be.isUtcOffset=Tp,be.isUtc=xl,be.isUTC=xl,be.zoneAbbr=Hm,be.zoneName=Im,be.dates=Tt("dates accessor is deprecated. Use date instead.",Vl),be.months=Tt("months accessor is deprecated. Use month instead",dl),be.years=Tt("years accessor is deprecated. Use year instead",al),be.zone=Tt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wp),be.isDSTShifted=Tt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mp);function zm(n){return it(n*1e3)}function jm(){return it.apply(null,arguments).parseZone()}function Hl(n){return n}var Ke=Ms.prototype;Ke.calendar=Mh,Ke.longDateFormat=_h,Ke.invalidDate=Oh,Ke.ordinal=Fh,Ke.preparse=Hl,Ke.postformat=Hl,Ke.relativeTime=Vh,Ke.pastFuture=Nh,Ke.set=Sh,Ke.eras=pm,Ke.erasParse=mm,Ke.erasConvertYear=gm,Ke.erasAbbrRegex=Em,Ke.erasNameRegex=Cm,Ke.erasNarrowRegex=km,Ke.months=tf,Ke.monthsShort=nf,Ke.monthsParse=sf,Ke.monthsRegex=lf,Ke.monthsShortRegex=of,Ke.week=cf,Ke.firstDayOfYear=ff,Ke.firstDayOfWeek=hf,Ke.weekdays=kf,Ke.weekdaysMin=xf,Ke.weekdaysShort=Sf,Ke.weekdaysParse=Rf,Ke.weekdaysRegex=Af,Ke.weekdaysShortRegex=Of,Ke.weekdaysMinRegex=Lf,Ke.isPM=Ff,Ke.meridiem=Nf;function Jn(n,e,t,i){var r=ii(),s=jt().set(i,e);return r[t](s,n)}function Il(n,e,t){if(Xt(n)&&(e=n,n=void 0),n=n||"",e!=null)return Jn(n,e,t,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Jn(n,i,t,"month");return r}function Js(n,e,t,i){typeof n=="boolean"?(Xt(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,Xt(e)&&(t=e,e=void 0),e=e||"");var r=ii(),s=n?r._week.dow:0,a,l=[];if(t!=null)return Jn(e,(t+s)%7,i,"day");for(a=0;a<7;a++)l[a]=Jn(e,(a+s)%7,i,"day");return l}function Wm(n,e){return Il(n,e,"months")}function Ym(n,e){return Il(n,e,"monthsShort")}function Um(n,e,t){return Js(n,e,t,"weekdays")}function Gm(n,e,t){return Js(n,e,t,"weekdaysShort")}function $m(n,e,t){return Js(n,e,t,"weekdaysMin")}ci("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=Ge(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}}),Ce.lang=Tt("moment.lang is deprecated. Use moment.locale instead.",ci),Ce.langData=Tt("moment.langData is deprecated. Use moment.localeData instead.",ii);var ni=Math.abs;function qm(){var n=this._data;return this._milliseconds=ni(this._milliseconds),this._days=ni(this._days),this._months=ni(this._months),n.milliseconds=ni(n.milliseconds),n.seconds=ni(n.seconds),n.minutes=ni(n.minutes),n.hours=ni(n.hours),n.months=ni(n.months),n.years=ni(n.years),this}function zl(n,e,t,i){var r=Ht(e,t);return n._milliseconds+=i*r._milliseconds,n._days+=i*r._days,n._months+=i*r._months,n._bubble()}function Km(n,e){return zl(this,n,e,1)}function Jm(n,e){return zl(this,n,e,-1)}function jl(n){return n<0?Math.floor(n):Math.ceil(n)}function Xm(){var n=this._milliseconds,e=this._days,t=this._months,i=this._data,r,s,a,l,u;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=jl(Xs(t)+e)*864e5,e=0,t=0),i.milliseconds=n%1e3,r=_t(n/1e3),i.seconds=r%60,s=_t(r/60),i.minutes=s%60,a=_t(s/60),i.hours=a%24,e+=_t(a/24),u=_t(Wl(e)),t+=u,e-=jl(Xs(u)),l=_t(t/12),t%=12,i.days=e,i.months=t,i.years=l,this}function Wl(n){return n*4800/146097}function Xs(n){return n*146097/4800}function Qm(n){if(!this.isValid())return NaN;var e,t,i=this._milliseconds;if(n=Dt(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+i/864e5,t=this._months+Wl(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(Xs(this._months)),n){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+n)}}function ri(n){return function(){return this.as(n)}}var Yl=ri("ms"),Zm=ri("s"),eg=ri("m"),tg=ri("h"),ig=ri("d"),ng=ri("w"),rg=ri("M"),sg=ri("Q"),ag=ri("y"),og=Yl;function lg(){return Ht(this)}function ug(n){return n=Dt(n),this.isValid()?this[n+"s"]():NaN}function Ci(n){return function(){return this.isValid()?this._data[n]:NaN}}var cg=Ci("milliseconds"),dg=Ci("seconds"),hg=Ci("minutes"),fg=Ci("hours"),pg=Ci("days"),mg=Ci("months"),gg=Ci("years");function bg(){return _t(this.days()/7)}var si=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function vg(n,e,t,i,r){return r.relativeTime(e||1,!!t,n,i)}function yg(n,e,t,i){var r=Ht(n).abs(),s=si(r.as("s")),a=si(r.as("m")),l=si(r.as("h")),u=si(r.as("d")),c=si(r.as("M")),d=si(r.as("w")),f=si(r.as("y")),p=s<=t.ss&&["s",s]||s<t.s&&["ss",s]||a<=1&&["m"]||a<t.m&&["mm",a]||l<=1&&["h"]||l<t.h&&["hh",l]||u<=1&&["d"]||u<t.d&&["dd",u];return t.w!=null&&(p=p||d<=1&&["w"]||d<t.w&&["ww",d]),p=p||c<=1&&["M"]||c<t.M&&["MM",c]||f<=1&&["y"]||["yy",f],p[2]=e,p[3]=+n>0,p[4]=i,vg.apply(null,p)}function wg(n){return n===void 0?si:typeof n=="function"?(si=n,!0):!1}function Cg(n,e){return Ni[n]===void 0?!1:e===void 0?Ni[n]:(Ni[n]=e,n==="s"&&(Ni.ss=e-1),!0)}function Eg(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,i=Ni,r,s;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(i=Object.assign({},Ni,e),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),r=this.localeData(),s=yg(this,!t,i,r),t&&(s=r.pastFuture(+this,s)),r.postformat(s)}var Qs=Math.abs;function Hi(n){return(n>0)-(n<0)||+n}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var n=Qs(this._milliseconds)/1e3,e=Qs(this._days),t=Qs(this._months),i,r,s,a,l=this.asSeconds(),u,c,d,f;return l?(i=_t(n/60),r=_t(i/60),n%=60,i%=60,s=_t(t/12),t%=12,a=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Hi(this._months)!==Hi(l)?"-":"",d=Hi(this._days)!==Hi(l)?"-":"",f=Hi(this._milliseconds)!==Hi(l)?"-":"",u+"P"+(s?c+s+"Y":"")+(t?c+t+"M":"")+(e?d+e+"D":"")+(r||i||n?"T":"")+(r?f+r+"H":"")+(i?f+i+"M":"")+(n?f+a+"S":"")):"P0D"}var $e=Yn.prototype;$e.isValid=mp,$e.abs=qm,$e.add=Km,$e.subtract=Jm,$e.as=Qm,$e.asMilliseconds=Yl,$e.asSeconds=Zm,$e.asMinutes=eg,$e.asHours=tg,$e.asDays=ig,$e.asWeeks=ng,$e.asMonths=rg,$e.asQuarters=sg,$e.asYears=ag,$e.valueOf=og,$e._bubble=Xm,$e.clone=lg,$e.get=ug,$e.milliseconds=cg,$e.seconds=dg,$e.minutes=hg,$e.hours=fg,$e.days=pg,$e.weeks=bg,$e.months=mg,$e.years=gg,$e.humanize=Eg,$e.toISOString=Xn,$e.toString=Xn,$e.toJSON=Xn,$e.locale=_l,$e.localeData=Ol,$e.toIsoString=Tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),$e.lang=Al,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),xe("x",Vn),xe("X",jh),Qe("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)}),Qe("x",function(n,e,t){t._d=new Date(Ge(n))});//! moment.js
25
- Ce.version="2.30.1",Eh(it),Ce.fn=be,Ce.min=dp,Ce.max=hp,Ce.now=fp,Ce.utc=jt,Ce.unix=zm,Ce.months=Wm,Ce.isDate=Qi,Ce.locale=ci,Ce.invalid=An,Ce.duration=Ht,Ce.isMoment=Vt,Ce.weekdays=Um,Ce.parseZone=jm,Ce.localeData=ii,Ce.isDuration=Un,Ce.monthsShort=Ym,Ce.weekdaysMin=$m,Ce.defineLocale=Hs,Ce.updateLocale=jf,Ce.locales=Wf,Ce.weekdaysShort=Gm,Ce.normalizeUnits=Dt,Ce.relativeTimeRounding=wg,Ce.relativeTimeThreshold=Cg,Ce.calendarFormat=Np,Ce.prototype=be,Ce.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ul=n=>n===void 0||n==="auto"||n==="instant"||n==="smooth";function kg(n,e){this.scrollLeft=n,this.scrollTop=e}const Gl=(n,e,t="cannot convert to dictionary.")=>`Failed to execute '${n}' on '${e}': ${t}`,$l=(n,e,t)=>Gl(n,e,`The provided value '${t}' is not a valid enum value of type ScrollBehavior.`),ql=(n,e,t)=>{var i;const r=`__SEAMLESS.BACKUP$${e}`;return!n[r]&&n[e]&&!(!((i=n[e])===null||i===void 0)&&i.__isPolyfill)&&(n[r]=n[e]),n[r]||t},Sg=n=>{const e=typeof n;return n!==null&&(e==="object"||e==="function")},Zs=n=>n.ownerDocument.scrollingElement||n.ownerDocument.documentElement;function xg(n){if(typeof Event=="function")return new Event("scrollend",{bubbles:n,cancelable:!1});const e=document.createEvent("Event");return e.initEvent("scrollend",n,!1),e}const Mg=n=>.5*(1-Math.cos(Math.PI*n));function ea(){var n;let e;return!((n=window.performance)===null||n===void 0)&&n.now?e=()=>window.performance.now():e=()=>window.Date.now(),ea=e,e()}const Rg=500,Kl=n=>{const t=(ea()-n.timeStamp)/(n.duration||Rg);if(t>1){n.method(n.targetX,n.targetY),n.callback();return}const i=(n.timingFunc||Mg)(t),r=n.startX+(n.targetX-n.startX)*i,s=n.startY+(n.targetY-n.startY)*i;n.method(r,s),n.rafId=window.requestAnimationFrame(()=>{Kl(n)})},Qn=n=>isFinite(n)?Number(n):0,Tg=n=>{var e;return(e=n.isConnected)!==null&&e!==void 0?e:!n.ownerDocument||!(n.ownerDocument.compareDocumentPosition(n)&1)},Dg=(n,e,t)=>{var i,r;if(!Tg(n))return;const s=n.scrollLeft,a=n.scrollTop,l=Qn((i=e.left)!==null&&i!==void 0?i:s),u=Qn((r=e.top)!==null&&r!==void 0?r:a);if(l===s&&u===a)return;const c=ql(HTMLElement.prototype,"scroll",kg),d=ql(Object.getPrototypeOf(n),"scroll",c).bind(n);if(e.behavior!=="smooth"){d(l,u);return}const f=()=>{window.removeEventListener("wheel",S),window.removeEventListener("touchmove",S)},p=()=>{f();const m=n.nodeType===9;n.dispatchEvent(xg(m))},h=Object.assign(Object.assign({},t),{timeStamp:ea(),startX:s,startY:a,targetX:l,targetY:u,rafId:0,method:d,callback:p}),S=()=>{window.cancelAnimationFrame(h.rafId),f()};window.addEventListener("wheel",S,{passive:!0,once:!0}),window.addEventListener("touchmove",S,{passive:!0,once:!0}),Kl(h)},_g=n=>n.window===n,Ag=(n=>(e,t,i)=>{const[r,s]=_g(e)?[Zs(e.document.documentElement),"Window"]:[e,"Element"],a=t??{};if(!Sg(a))throw new TypeError(Gl(n,s));if(!Ul(a.behavior))throw new TypeError($l(n,s,a.behavior));n==="scrollBy"&&(a.left=Qn(a.left)+r.scrollLeft,a.top=Qn(a.top)+r.scrollTop),Dg(r,a,i)})("scroll"),Jl=n=>{switch(n){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},Xl=(n,e,t,i)=>{let r=0;switch(e||(r^=2),n){case 0:r=r>>1|(r&1)<<1,[t,i]=[i,t];break;case 1:case 3:r^=1;break;case 4:r^=2;break}return[r,t,i]},Og=n=>(Xl(Jl(n.writingMode),n.direction!=="rtl",void 0,void 0)[0]&1)===1,Lg=(n,e,t)=>{const[i,r,s]=Xl(e,t,n.block||"start",n.inline||"nearest");return[r,s].map((a,l)=>{switch(a){case"center":return 1;case"nearest":return 0;default:{const u=i>>l&1;return a==="start"==!u?2:3}}})},Ql=(n,e,t,i,r,s,a)=>n!==0?n:r<e&&s>t||r>e&&s<t?null:r<=e&&a<=i||s>=t&&a>=i?2:s>t&&a<i||r<e&&a>i?3:null,Zl=n=>n!=="visible"&&n!=="clip",Pg=n=>{var e;try{return((e=n.ownerDocument.defaultView)===null||e===void 0?void 0:e.frameElement)||null}catch{return null}},Fg=(n,e)=>n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth?Zl(e.overflowY)||Zl(e.overflowX)||n===Zs(n):!1,eu=n=>{const e=n.parentNode,t=n.parentElement;if(t===null&&e!==null){if(e.nodeType===11)return e.host;if(e.nodeType===9)return Pg(n)}return t},ta=(n,e,t)=>n<e?e:n>t?t:n,Bg=n=>["scroll-margin","scroll-snap-margin"].filter(e=>e in n.documentElement.style)[0],Vg=(n,e,t)=>{const{top:i,right:r,bottom:s,left:a}=e,l=Bg(n.ownerDocument);if(!l)return[i,r,s,a];const u=c=>{const d=t.getPropertyValue(`${l}-${c}`);return parseInt(d,10)||0};return[i-u("top"),r+u("right"),s+u("bottom"),a-u("left")]},Zn=(n,e,t)=>{switch(n){case 1:return(e+t)/2;case 3:return t;case 2:case 0:return e}},Ng=(n,e)=>{var t,i,r;const s=(t=n.ownerDocument.defaultView)===null||t===void 0?void 0:t.visualViewport,[a,l,u,c]=n===Zs(n)?[0,0,(i=s?.width)!==null&&i!==void 0?i:n.clientWidth,(r=s?.height)!==null&&r!==void 0?r:n.clientHeight]:[e.left,e.top,n.clientWidth,n.clientHeight],d=a+n.clientLeft,f=l+n.clientTop,p=d+u,h=f+c;return[f,p,h,d]},Hg=(n,e)=>{const t=[];let i=n.ownerDocument,r=i.defaultView;if(!r)return t;const s=window.getComputedStyle(n),a=s.direction!=="rtl",l=Jl(s.writingMode||s.getPropertyValue("-webkit-writing-mode")||s.getPropertyValue("-ms-writing-mode")),[u,c]=Lg(e,l,a);let[d,f,p,h]=Vg(n,n.getBoundingClientRect(),s);for(let S=eu(n);S!==null;S=eu(S)){if(i!==S.ownerDocument){if(i=S.ownerDocument,r=i.defaultView,!r)break;const{left:_,top:D}=S.getBoundingClientRect();d+=D,f+=_,p+=D,h+=_}const m=r.getComputedStyle(S);if(m.position==="fixed")break;if(!Fg(S,m))continue;const E=S.getBoundingClientRect(),[b,g,T,v]=Ng(S,E),R=Ql(u,v,g,S.clientWidth,h,f,f-h),y=Ql(c,b,T,S.clientHeight,d,p,p-d),M=R===null?0:Zn(R,h,f)-Zn(R,v,g),C=y===null?0:Zn(y,d,p)-Zn(y,b,T),x=Og(m)?ta(M,-S.scrollWidth+S.clientWidth-S.scrollLeft,-S.scrollLeft):ta(M,-S.scrollLeft,S.scrollWidth-S.clientWidth-S.scrollLeft),w=ta(C,-S.scrollTop,S.scrollHeight-S.clientHeight-S.scrollTop);t.push([S,{left:S.scrollLeft+x,top:S.scrollTop+w,behavior:e.behavior}]),d=Math.max(d-w,b),f=Math.min(f-x,g),p=Math.min(p-w,T),h=Math.max(h-x,v)}return t},tu=(n,e,t)=>{const i=e||{};if(!Ul(i.behavior))throw new TypeError($l("scrollIntoView","Element",i.behavior));Hg(n,i).forEach(([s,a])=>{Ag(s,a,t)})},iu=(n,e)=>e.some(t=>n.includes(t)),nu=(n,e)=>e.every(t=>n.includes(t));function ru(n){return Array.isArray(n)?n.map(e=>({id:e.id,label:e.name,all:e})):[]}function su(){setTimeout(()=>{const e=document.querySelectorAll(".not-valid")[0];e&&tu(e,{behavior:"smooth",block:"center"})})}function au(n,e){const t=document.querySelector(n);t&&tu(t,{behavior:"smooth",block:"center",...e})}function ou(){return navigator?.language?.split("-")[0]}function ia(){return["ru","en","kz"]}function lu(n){return ia().includes(n)}function na(n,e){let t;return function(...i){t&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function uu(n,e){let t;return function(...i){t||(n(...i),t=!0,setTimeout(()=>t=!1,e))}}function ra(n){const e={};for(const[t,i]of Object.entries(n))i&&(e[t]=i);return e}function cu(n){return n.map(e=>ra(e))}function du(n){return n.reduce((e,t)=>e+t,0)}const hu=()=>({alias:"email"}),fu=(n="ru")=>({ru:{mask:"+7(999)999-99-99"},kz:{mask:"+7(999)999-99-99"},us:{mask:"+1(999)999-9999"}})[n],pu=()=>({regex:"^[0-9]{10,12}$"}),mu=()=>({mask:"999999999"}),gu=()=>({mask:"999-999-999 99"}),bu=()=>({mask:"9999 999999"});function sa(n){return typeof n!="string"?!1:Ce(n).isValid()}function vu(n,e={}){const{withTime:t=!1,locale:i="ru"}=e;if(!n||n.length===0||!sa(n))return"";const r=new Date(n),s=r.getHours()>=10?r.getHours():`0${r.getHours()}`,a=r.getMinutes()>=10?r.getMinutes():`0${r.getMinutes()}`,l=r.getFullYear(),u=r.getMonth()+1>=10?r.getMonth()+1:`0${r.getMonth()+1}`,c=r.getDate()>=10?r.getDate():`0${r.getDate()}`;return i==="ru"?t?`${c}.${u}.${l} ${s}:${a}`:`${c}.${u}.${l}`:t?`${u}.${c}.${l} ${s}:${a}`:`${u}.${c}.${l}`}function yu(n,e={}){const{locale:t="ru",currency:i="RUB"}=e,r={ru:"ru-RU",en:"en-US",kz:"kk-KZ"},a={style:"currency",maximumSignificantDigits:2,currency:{ru:"RUB",en:"USD",kz:"KZT"}[t]||i};return new Intl.NumberFormat(r[t]||"en-US",a).format(Number(n))}function wu(n){return Ce(new Date).format(n)}function Cu(n,e){const t=new Date(n);return t.setDate(t.getDate()+e),t}function Eu(n,e){const t=new Date(n);return t.setMonth(t.getMonth()+e),t}function ku(n,e){const t=new Date(n);return t.setFullYear(t.getFullYear()+e),t}function Su(n,e,t,i){let r=Math.abs(n);return r%=100,r>=5&&r<=20?i:(r%=10,r===1?e:r>=2&&r<=4?t:i)}function xu(n){return!n||n.length===0?n:n[0].toUpperCase()+n.slice(1)}function Mu(n){return n.replace(/\b\w/g,e=>e.toUpperCase())}function Ru(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}function Tu(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function Du(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1_$2").toLowerCase()}function _u(n,e,t="..."){return n.length<=e?n:n.substring(0,e)+t}function Au(n){let e=n.replace(/\D/g,"").slice(0,8);return e.length>=5?`${e.slice(0,2)}.${e.slice(2,4)}.${e.slice(4)}`:e.length>=3?`${e.slice(0,2)}.${e.slice(2)}`:e}function Ou({str:n,limit:e=null}){return!e||!n?n:n.substring(0,e)}function Lu(n,e){let t="";for(const[i,r]of n.entries()){const s=n.length>i+1?", ":" ";if(t+=`${r.name}${s}`,t.length>e){let a=n.length-(i+1);const l=a>0?`+${a}`:"";t=`${t.substr(0,e)}...${l}`;break}}return t}function Pu(n){return[...new Set(n)]}function Fu(n,e){return n.reduce((t,i)=>{const r=String(i[e]);return t[r]=t[r]||[],t[r].push(i),t},{})}function Bu(n,e,t="asc"){return[...n].sort((i,r)=>{const s=i[e],a=r[e];return s<a?t==="asc"?-1:1:s>a?t==="asc"?1:-1:0})}function Vu(n,e){const t=[];for(let i=0;i<n.length;i+=e)t.push(n.slice(i,i+e));return t}function Nu(n){return typeof n=="object"&&n!==null}function hi(n){return n===void 0?n:JSON.parse(JSON.stringify(n))}function aa(n,e){return JSON.stringify(n)===JSON.stringify(e)}function Hu(n,e){return n.sort().toString()===e.sort().toString()}function Iu(n,e){let t=n.length,i=e.length;if(t!==i)return!1;n.sort(),e.sort();for(let r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}const zu=n=>{const e=hi(n),t={};for(const[i,r]of Object.entries(e)){const s=i.split(".");let a=t;for(const[u,c]of s.slice(0,-1).entries()){if(!a[c]){const d=Number.isInteger(Number(s[+u+1]));a[c]=d?[]:{}}a=a[c]}const l=s.pop();l&&(a[l]=r)}return t},oa=n=>{let e=hi(n),t={};for(const i in e){if(typeof e[i]!="object"||e[i]===null){t[i]=e[i];continue}const r=oa(e[i]);for(const s in r)t[`${i}.${s}`]=r[s]}return t};function ju(n,e){const t={};return e.forEach(i=>{i in n&&(t[i]=n[i])}),t}function Wu(n,e){const t={...n};return e.forEach(i=>{delete t[i]}),t}function cn(n,e,t,i=!1){if(i)return o.render(null,n),!0;const r=o.h(e,t);return o.render(r,n),!0}function Ei(){const n=Date.now(),e=Math.floor(Math.random()*9999);return n+e}function Yu(n=""){return`${n}${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function Uu(n){throw new Error(`${n} is required.`)}function Gu(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}function $u(n){return/^[\+]?[1-9][\d]{0,15}$/.test(n.replace(/\D/g,""))}function qu(n){try{return new URL(n),!0}catch{return!1}}function Ku(n,e){try{localStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to localStorage:",t)}}function Ju(n,e){try{const t=localStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from localStorage:",t),e||null}}function Xu(n){try{localStorage.removeItem(n)}catch(e){console.error("Error removing from localStorage:",e)}}function Qu(n,e){try{sessionStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to sessionStorage:",t)}}function Zu(n,e){try{const t=sessionStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from sessionStorage:",t),e||null}}function ec(n){try{sessionStorage.removeItem(n)}catch(e){console.error("Error removing from sessionStorage:",e)}}function tc(n){const e=new Map;return((...t)=>{const i=JSON.stringify(t);if(e.has(i))return e.get(i);const r=n(...t);return e.set(i,r),r})}function ic(n){let e=!1,t;return((...i)=>(e||(e=!0,t=n(...i)),t))}function nc(n,e,t){return Math.min(Math.max(n,e),t)}function rc(n,e,t){return n+(e-n)*t}function sc(n,e){return Math.floor(Math.random()*(e-n+1))+n}function ac(n,e){return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}const Ig=Object.freeze(Object.defineProperty({__proto__:null,addDays:Cu,addMonths:Eu,addYears:ku,areArraysEqual:Iu,arrayToCutString:Lu,camelCase:Ru,capitalize:Mu,chunk:Vu,clamp:nc,cutString:Ou,debounce:na,default:{prepareSelectOptions:ru,scrollToError:su,scrollToElement:au,getBrowserLocale:ou,getSupportedLocales:ia,isValidLocale:lu,debounce:na,throttle:uu,getValueFromObjectItem:ra,getValueFromArr:cu,sumOfArrayNumbers:du,initEmailMask:hu,initPhoneMask:fu,initInnMask:pu,initKppMask:mu,initSnilsMask:gu,initPassportMask:bu,isValidDate:sa,formatDate:vu,formatMoney:yu,getNowDate:wu,addDays:Cu,addMonths:Eu,addYears:ku,getDeclinationFromNumber:Su,firstToUppercase:xu,capitalize:Mu,camelCase:Ru,kebabCase:Tu,snakeCase:Du,truncate:_u,maskDate:Au,cutString:Ou,arrayToCutString:Lu,findOne:iu,findAll:nu,unique:Pu,groupBy:Fu,sortBy:Bu,chunk:Vu,isObject:Nu,getDeepCopyObject:hi,isEqual:aa,isArraysEqual:Hu,areArraysEqual:Iu,unflatenObject:zu,flattenObject:oa,pick:ju,omit:Wu,mountSubFilter:cn,getUniqueKey:Ei,generateId:Yu,required:Uu,isValidEmail:Gu,isValidPhone:$u,isValidUrl:qu,setLocalStorage:Ku,getLocalStorage:Ju,removeLocalStorage:Xu,setSessionStorage:Qu,getSessionStorage:Zu,removeSessionStorage:ec,memoize:tc,once:ic,clamp:nc,lerp:rc,random:sc,roundToDecimals:ac},findAll:nu,findOne:iu,firstToUppercase:xu,flattenObject:oa,formatDate:vu,formatMoney:yu,generateId:Yu,getBrowserLocale:ou,getDeclinationFromNumber:Su,getDeepCopyObject:hi,getLocalStorage:Ju,getNowDate:wu,getSessionStorage:Zu,getSupportedLocales:ia,getUniqueKey:Ei,getValueFromArr:cu,getValueFromObjectItem:ra,groupBy:Fu,initEmailMask:hu,initInnMask:pu,initKppMask:mu,initPassportMask:bu,initPhoneMask:fu,initSnilsMask:gu,isArraysEqual:Hu,isEqual:aa,isObject:Nu,isValidDate:sa,isValidEmail:Gu,isValidLocale:lu,isValidPhone:$u,isValidUrl:qu,kebabCase:Tu,lerp:rc,maskDate:Au,memoize:tc,mountSubFilter:cn,omit:Wu,once:ic,pick:ju,prepareSelectOptions:ru,random:sc,removeLocalStorage:Xu,removeSessionStorage:ec,required:Uu,roundToDecimals:ac,scrollToElement:au,scrollToError:su,setLocalStorage:Ku,setSessionStorage:Qu,snakeCase:Du,sortBy:Bu,sumOfArrayNumbers:du,throttle:uu,truncate:_u,unflatenObject:zu,unique:Pu},Symbol.toStringTag,{value:"Module"})),zg={class:"lh-1","data-test":"FormError"},ki={__name:"FormError",props:{errors:{type:Array,default:()=>[]}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",zg,[n.errors?.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(n.errors,(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:"text-danger small",key:r},o.toDisplayString(i),1))),128)):o.createCommentVNode("",!0)]))}},jg={class:"position-relative"},Wg=["type","name","value","placeholder","disabled"],er=He({__name:"CustomInput",props:{modelValue:{type:[String,Number],default:""},titleClass:{type:String,default:""},title:{type:String,default:""},name:{type:String,default:""},min:{type:[String,Number],default:""},max:{type:[String,Number],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[String,Object],default:""},type:{type:String,default:"text"},error:{type:[String,Object,Array],default:""},maskOptions:{type:[String,Object],default:()=>({})},maxNumber:{type:[String,Number],default:null}},emits:["change","blur","update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=f=>{let p=f.target.value;t.max&&(p=a(p),f.target.value=p),t.maxNumber&&(Number(p)>=Number(t.maxNumber)&&(p=t.maxNumber.toString()),f.target.value=p),i("update:modelValue",p)},a=f=>f.substring(0,t.max),l=()=>{i("update:modelValue",null),i("change",null),r.value&&(r.value.value=null)},u=()=>{if(t.maskOptions===""||!r.value)return!1;Ch({...t.maskOptions}).mask(r.value)};o.onMounted(()=>{u()}),o.watch(()=>t.maskOptions,(f,p)=>{aa(f,p)||u()},{deep:!0});const c=o.computed(()=>!(!t.modelValue||t.disabled)),d=o.computed(()=>Array.isArray(t.error)?t.error.filter(Boolean):typeof t.error=="string"&&t.error?[t.error]:[]);return(f,p)=>(o.openBlock(),o.createElementBlock("div",null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["mb-1 fw-bold",[n.titleClass]])},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",jg,[o.createElementVNode("input",{ref_key:"inputEl",ref:r,type:n.type,name:n.name,class:o.normalizeClass(["form-control outline-none",{[n.inputClass]:n.inputClass,"not-valid":d.value.length>0,"is-invalid":d.value.length>0}]),value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onBlur:p[0]||(p[0]=h=>i("blur")),onInput:s},null,42,Wg),c.value?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["bi bi-x-lg remove-button position-absolute",[n.modelValue?"":"d-none",n.disabled?"d-none":""]]),onClick:l},null,2)):o.createCommentVNode("",!0)]),o.createVNode(ki,{errors:d.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b055e3b"]]),Yg={class:"position-relative"},Ug=["type","value"],Gg=He({__name:"PasswordInput",props:{modelValue:{type:String,default:""},error:{type:[String,Array],default:""},initialVisibility:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n){const e=n,t=o.ref(e.initialVisibility);o.watch(()=>e.initialVisibility,r=>{t.value=r});const i=o.computed(()=>Array.isArray(e.error)?e.error.filter(Boolean):typeof e.error=="string"&&e.error?[e.error]:[]);return(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Yg,[o.createElementVNode("input",{class:o.normalizeClass(["form-control password-input outline-none",{"is-invalid":i.value.length>0}]),type:t.value?"text":"password",value:n.modelValue,autocomplete:"new-password",onInput:s[0]||(s[0]=a=>r.$emit("update:modelValue",a.target.value))},null,42,Ug),o.createElementVNode("div",{class:"toggle-pass",onClick:s[1]||(s[1]=a=>t.value=!t.value)},[o.createElementVNode("i",{class:o.normalizeClass(["bi",[t.value?"bi-eye-slash-fill":"bi-eye-fill"]]),style:{"font-size":"20px"}},null,2)])]),o.createVNode(ki,{errors:i.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b5f1918"]]),$g={class:"form-check d-flex align-items-center"},qg=["id","name","checked"],Kg=["for"],Jg={__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},name:{type:String,required:!0},label:{type:String,default:""},id:{type:String,default:()=>`checkbox-${Math.random().toString(36).slice(2,9)}`},size:{type:String,default:"sm",validator:n=>["sm","md","lg"].includes(n)},clickableLabel:{type:Boolean,default:!0},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=o.computed(()=>t.size==="sm"?"5px":t.size==="md"?"10px":t.size==="lg"?"15px":"5px"),a=l=>{i("update:modelValue",l.target.checked)};return o.watch(()=>t.indeterminate,l=>{r.value&&(r.value.indeterminate=l)}),o.onMounted(()=>{r.value&&(r.value.indeterminate=t.indeterminate)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",$g,[o.createElementVNode("input",{ref_key:"inputRef",ref:r,class:"form-check-input mr-2 mt-0",type:"checkbox",id:n.id,name:n.name,style:o.normalizeStyle({padding:s.value}),checked:n.modelValue,onChange:a},null,44,qg),n.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:o.normalizeClass(["form-check-label lh-n",{"cursor-pointer":n.clickableLabel}]),for:n.clickableLabel?n.id:void 0},o.toDisplayString(n.label),11,Kg)):o.createCommentVNode("",!0)]))}};var Xg=Object.defineProperty,Qg=Object.defineProperties,Zg=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,tb=Object.prototype.propertyIsEnumerable,lc=(n,e,t)=>e in n?Xg(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ii=(n,e)=>{for(var t in e||(e={}))eb.call(e,t)&&lc(n,t,e[t]);if(oc)for(var t of oc(e))tb.call(e,t)&&lc(n,t,e[t]);return n},uc=(n,e)=>Qg(n,Zg(e));const ib={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(n){this.autoscroll&&n&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var n;const e=((n=this.$refs.dropdownMenu)==null?void 0:n.children[this.typeAheadPointer])||!1;if(e){const t=this.getDropdownViewport(),{top:i,bottom:r,height:s}=e.getBoundingClientRect();if(i<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-s)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},nb={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let n=0;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},open(n){n&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let n=this.typeAheadPointer-1;n>=0;n--)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadDown(){for(let n=this.typeAheadPointer+1;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadSelect(){const n=this.filteredOptions[this.typeAheadPointer];n&&this.selectable(n)&&this.select(n)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},rb={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(n){this.mutableLoading=n}},methods:{toggleLoading(n=null){return n==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=n}}},la=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},sb={},ab={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},ob=o.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),lb=[ob];function ub(n,e){return o.openBlock(),o.createElementBlock("svg",ab,lb)}const cb=la(sb,[["render",ub]]),db={},hb={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},fb=o.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),pb=[fb];function mb(n,e){return o.openBlock(),o.createElementBlock("svg",hb,pb)}const gb=la(db,[["render",mb]]),cc={Deselect:cb,OpenIndicator:gb},bb={mounted(n,{instance:e}){if(e.appendToBody){const{height:t,top:i,left:r,width:s}=e.$refs.toggle.getBoundingClientRect();let a=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;n.unbindPosition=e.calculatePosition(n,e,{width:s+"px",left:a+r+"px",top:l+i+t+"px"}),document.body.appendChild(n)}},unmounted(n,{instance:e}){e.appendToBody&&(n.unbindPosition&&typeof n.unbindPosition=="function"&&n.unbindPosition(),n.parentNode&&n.parentNode.removeChild(n))}};function vb(n){const e={};return Object.keys(n).sort().forEach(t=>{e[t]=n[t]}),JSON.stringify(e)}let yb=0;function wb(){return++yb}const Cb={components:Ii({},cc),directives:{appendToBody:bb},mixins:[ib,nb,rb],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:n=>n},selectable:{type:Function,default:n=>!0},getOptionLabel:{type:Function,default(n){return typeof n=="object"?n.hasOwnProperty(this.label)?n[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(n)}.
24
+ `+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var Qo={};function Zo(n,e){we.deprecationHandler!=null&&we.deprecationHandler(n,e),Qo[n]||(Xo(e),Qo[n]=!0)}we.suppressDeprecationWarnings=!1,we.deprecationHandler=null;function Wt(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function Sh(n){var e,t;for(t in n)qe(n,t)&&(e=n[t],Wt(e)?this[t]=e:this["_"+t]=e);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xs(n,e){var t=ui({},n),i;for(i in e)qe(e,i)&&(vi(n[i])&&vi(e[i])?(t[i]={},ui(t[i],n[i]),ui(t[i],e[i])):e[i]!=null?t[i]=e[i]:delete t[i]);for(i in n)qe(n,i)&&!qe(e,i)&&vi(n[i])&&(t[i]=ui({},t[i]));return t}function Ms(n){n!=null&&this.set(n)}var Rs;Object.keys?Rs=Object.keys:Rs=function(n){var e,t=[];for(e in n)qe(n,e)&&t.push(e);return t};var xh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Mh(n,e,t){var i=this._calendar[n]||this._calendar.sameElse;return Wt(i)?i.call(e,t):i}function Yt(n,e,t){var i=""+Math.abs(n),r=e-i.length,s=n>=0;return(s?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var Ts=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,On=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ds={},Ai={};function De(n,e,t,i){var r=i;typeof i=="string"&&(r=function(){return this[i]()}),n&&(Ai[n]=r),e&&(Ai[e[0]]=function(){return Yt(r.apply(this,arguments),e[1],e[2])}),t&&(Ai[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),n)})}function Rh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Th(n){var e=n.match(Ts),t,i;for(t=0,i=e.length;t<i;t++)Ai[e[t]]?e[t]=Ai[e[t]]:e[t]=Rh(e[t]);return function(r){var s="",a;for(a=0;a<i;a++)s+=Wt(e[a])?e[a].call(r,n):e[a];return s}}function Ln(n,e){return n.isValid()?(e=el(e,n.localeData()),Ds[e]=Ds[e]||Th(e),Ds[e](n)):n.localeData().invalidDate()}function el(n,e){var t=5;function i(r){return e.longDateFormat(r)||r}for(On.lastIndex=0;t>=0&&On.test(n);)n=n.replace(On,i),On.lastIndex=0,t-=1;return n}var Dh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function _h(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(Ts).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[n])}var Ah="Invalid date";function Oh(){return this._invalidDate}var Lh="%d",Ph=/\d{1,2}/;function Fh(n){return this._ordinal.replace("%d",n)}var Bh={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Vh(n,e,t,i){var r=this._relativeTime[t];return Wt(r)?r(n,e,t,i):r.replace(/%d/i,n)}function Nh(n,e){var t=this._relativeTime[n>0?"future":"past"];return Wt(t)?t(e):t.replace(/%s/i,e)}var tl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Dt(n){return typeof n=="string"?tl[n]||tl[n.toLowerCase()]:void 0}function _s(n){var e={},t,i;for(i in n)qe(n,i)&&(t=Dt(i),t&&(e[t]=n[i]));return e}var Hh={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ih(n){var e=[],t;for(t in n)qe(n,t)&&e.push({unit:t,priority:Hh[t]});return e.sort(function(i,r){return i.priority-r.priority}),e}var il=/\d/,St=/\d\d/,nl=/\d{3}/,As=/\d{4}/,Pn=/[+-]?\d{6}/,tt=/\d\d?/,rl=/\d\d\d\d?/,sl=/\d\d\d\d\d\d?/,Fn=/\d{1,3}/,Os=/\d{1,4}/,Bn=/[+-]?\d{1,6}/,Oi=/\d+/,Vn=/[+-]?\d+/,zh=/Z|[+-]\d\d:?\d\d/gi,Nn=/Z|[+-]\d\d(?::?\d\d)?/gi,jh=/[+-]?\d+(\.\d{1,3})?/,en=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Li=/^[1-9]\d?/,Ls=/^([1-9]\d|\d)/,Hn;Hn={};function Se(n,e,t){Hn[n]=Wt(e)?e:function(i,r){return i&&t?t:e}}function Wh(n,e){return qe(Hn,n)?Hn[n](e._strict,e._locale):new RegExp(Yh(n))}function Yh(n){return Qt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,s){return t||i||r||s}))}function Qt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _t(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function Ge(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=_t(e)),t}var Ps={};function Qe(n,e){var t,i=e,r;for(typeof n=="string"&&(n=[n]),Xt(e)&&(i=function(s,a){a[e]=Ge(s)}),r=n.length,t=0;t<r;t++)Ps[n[t]]=i}function tn(n,e){Qe(n,function(t,i,r,s){r._w=r._w||{},e(t,r._w,r,s)})}function Uh(n,e,t){e!=null&&qe(Ps,n)&&Ps[n](e,t._a,t,n)}function In(n){return n%4===0&&n%100!==0||n%400===0}var ft=0,Zt=1,Ut=2,dt=3,Nt=4,ei=5,yi=6,Gh=7,$h=8;De("Y",0,0,function(){var n=this.year();return n<=9999?Yt(n,4):"+"+n}),De(0,["YY",2],0,function(){return this.year()%100}),De(0,["YYYY",4],0,"year"),De(0,["YYYYY",5],0,"year"),De(0,["YYYYYY",6,!0],0,"year"),Se("Y",Vn),Se("YY",tt,St),Se("YYYY",Os,As),Se("YYYYY",Bn,Pn),Se("YYYYYY",Bn,Pn),Qe(["YYYYY","YYYYYY"],ft),Qe("YYYY",function(n,e){e[ft]=n.length===2?we.parseTwoDigitYear(n):Ge(n)}),Qe("YY",function(n,e){e[ft]=we.parseTwoDigitYear(n)}),Qe("Y",function(n,e){e[ft]=parseInt(n,10)});function nn(n){return In(n)?366:365}we.parseTwoDigitYear=function(n){return Ge(n)+(Ge(n)>68?1900:2e3)};var al=Pi("FullYear",!0);function qh(){return In(this.year())}function Pi(n,e){return function(t){return t!=null?(ol(this,n,t),we.updateOffset(this,e),this):rn(this,n)}}function rn(n,e){if(!n.isValid())return NaN;var t=n._d,i=n._isUTC;switch(e){case"Milliseconds":return i?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return i?t.getUTCSeconds():t.getSeconds();case"Minutes":return i?t.getUTCMinutes():t.getMinutes();case"Hours":return i?t.getUTCHours():t.getHours();case"Date":return i?t.getUTCDate():t.getDate();case"Day":return i?t.getUTCDay():t.getDay();case"Month":return i?t.getUTCMonth():t.getMonth();case"FullYear":return i?t.getUTCFullYear():t.getFullYear();default:return NaN}}function ol(n,e,t){var i,r,s,a,l;if(!(!n.isValid()||isNaN(t))){switch(i=n._d,r=n._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(t):i.setMilliseconds(t));case"Seconds":return void(r?i.setUTCSeconds(t):i.setSeconds(t));case"Minutes":return void(r?i.setUTCMinutes(t):i.setMinutes(t));case"Hours":return void(r?i.setUTCHours(t):i.setHours(t));case"Date":return void(r?i.setUTCDate(t):i.setDate(t));case"FullYear":break;default:return}s=t,a=n.month(),l=n.date(),l=l===29&&a===1&&!In(s)?28:l,r?i.setUTCFullYear(s,a,l):i.setFullYear(s,a,l)}}function Kh(n){return n=Dt(n),Wt(this[n])?this[n]():this}function Jh(n,e){if(typeof n=="object"){n=_s(n);var t=Ih(n),i,r=t.length;for(i=0;i<r;i++)this[t[i].unit](n[t[i].unit])}else if(n=Dt(n),Wt(this[n]))return this[n](e);return this}function Xh(n,e){return(n%e+e)%e}var ut;Array.prototype.indexOf?ut=Array.prototype.indexOf:ut=function(n){var e;for(e=0;e<this.length;++e)if(this[e]===n)return e;return-1};function Fs(n,e){if(isNaN(n)||isNaN(e))return NaN;var t=Xh(e,12);return n+=(e-t)/12,t===1?In(n)?29:28:31-t%7%2}De("M",["MM",2],"Mo",function(){return this.month()+1}),De("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),De("MMMM",0,0,function(n){return this.localeData().months(this,n)}),Se("M",tt,Li),Se("MM",tt,St),Se("MMM",function(n,e){return e.monthsShortRegex(n)}),Se("MMMM",function(n,e){return e.monthsRegex(n)}),Qe(["M","MM"],function(n,e){e[Zt]=Ge(n)-1}),Qe(["MMM","MMMM"],function(n,e,t,i){var r=t._locale.monthsParse(n,i,t._strict);r!=null?e[Zt]=r:je(t).invalidMonth=n});var Qh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ll="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ul=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Zh=en,ef=en;function tf(n,e){return n?Bt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ul).test(e)?"format":"standalone"][n.month()]:Bt(this._months)?this._months:this._months.standalone}function nf(n,e){return n?Bt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ul.test(e)?"format":"standalone"][n.month()]:Bt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rf(n,e,t){var i,r,s,a=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=jt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return t?e==="MMM"?(r=ut.call(this._shortMonthsParse,a),r!==-1?r:null):(r=ut.call(this._longMonthsParse,a),r!==-1?r:null):e==="MMM"?(r=ut.call(this._shortMonthsParse,a),r!==-1?r:(r=ut.call(this._longMonthsParse,a),r!==-1?r:null)):(r=ut.call(this._longMonthsParse,a),r!==-1?r:(r=ut.call(this._shortMonthsParse,a),r!==-1?r:null))}function sf(n,e,t){var i,r,s;if(this._monthsParseExact)return rf.call(this,n,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=jt([2e3,i]),t&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[i].test(n))return i;if(t&&e==="MMM"&&this._shortMonthsParse[i].test(n))return i;if(!t&&this._monthsParse[i].test(n))return i}}function cl(n,e){if(!n.isValid())return n;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ge(e);else if(e=n.localeData().monthsParse(e),!Xt(e))return n}var t=e,i=n.date();return i=i<29?i:Math.min(i,Fs(n.year(),t)),n._isUTC?n._d.setUTCMonth(t,i):n._d.setMonth(t,i),n}function dl(n){return n!=null?(cl(this,n),we.updateOffset(this,!0),this):rn(this,"Month")}function af(){return Fs(this.year(),this.month())}function of(n){return this._monthsParseExact?(qe(this,"_monthsRegex")||hl.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(qe(this,"_monthsShortRegex")||(this._monthsShortRegex=Zh),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function lf(n){return this._monthsParseExact?(qe(this,"_monthsRegex")||hl.call(this),n?this._monthsStrictRegex:this._monthsRegex):(qe(this,"_monthsRegex")||(this._monthsRegex=ef),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function hl(){function n(u,c){return c.length-u.length}var e=[],t=[],i=[],r,s,a,l;for(r=0;r<12;r++)s=jt([2e3,r]),a=Qt(this.monthsShort(s,"")),l=Qt(this.months(s,"")),e.push(a),t.push(l),i.push(l),i.push(a);e.sort(n),t.sort(n),i.sort(n),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function uf(n,e,t,i,r,s,a){var l;return n<100&&n>=0?(l=new Date(n+400,e,t,i,r,s,a),isFinite(l.getFullYear())&&l.setFullYear(n)):l=new Date(n,e,t,i,r,s,a),l}function sn(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function zn(n,e,t){var i=7+e-t,r=(7+sn(n,0,i).getUTCDay()-e)%7;return-r+i-1}function fl(n,e,t,i,r){var s=(7+t-i)%7,a=zn(n,i,r),l=1+7*(e-1)+s+a,u,c;return l<=0?(u=n-1,c=nn(u)+l):l>nn(n)?(u=n+1,c=l-nn(n)):(u=n,c=l),{year:u,dayOfYear:c}}function an(n,e,t){var i=zn(n.year(),e,t),r=Math.floor((n.dayOfYear()-i-1)/7)+1,s,a;return r<1?(a=n.year()-1,s=r+ti(a,e,t)):r>ti(n.year(),e,t)?(s=r-ti(n.year(),e,t),a=n.year()+1):(a=n.year(),s=r),{week:s,year:a}}function ti(n,e,t){var i=zn(n,e,t),r=zn(n+1,e,t);return(nn(n)-i+r)/7}De("w",["ww",2],"wo","week"),De("W",["WW",2],"Wo","isoWeek"),Se("w",tt,Li),Se("ww",tt,St),Se("W",tt,Li),Se("WW",tt,St),tn(["w","ww","W","WW"],function(n,e,t,i){e[i.substr(0,1)]=Ge(n)});function cf(n){return an(n,this._week.dow,this._week.doy).week}var df={dow:0,doy:6};function hf(){return this._week.dow}function ff(){return this._week.doy}function pf(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function mf(n){var e=an(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}De("d",0,"do","day"),De("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),De("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),De("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),De("e",0,0,"weekday"),De("E",0,0,"isoWeekday"),Se("d",tt),Se("e",tt),Se("E",tt),Se("dd",function(n,e){return e.weekdaysMinRegex(n)}),Se("ddd",function(n,e){return e.weekdaysShortRegex(n)}),Se("dddd",function(n,e){return e.weekdaysRegex(n)}),tn(["dd","ddd","dddd"],function(n,e,t,i){var r=t._locale.weekdaysParse(n,i,t._strict);r!=null?e.d=r:je(t).invalidWeekday=n}),tn(["d","e","E"],function(n,e,t,i){e[i]=Ge(n)});function gf(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function bf(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function Bs(n,e){return n.slice(e,7).concat(n.slice(0,e))}var vf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yf="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wf=en,Cf=en,Ef=en;function kf(n,e){var t=Bt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?Bs(t,this._week.dow):n?t[n.day()]:t}function Sf(n){return n===!0?Bs(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function xf(n){return n===!0?Bs(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Mf(n,e,t){var i,r,s,a=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=jt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return t?e==="dddd"?(r=ut.call(this._weekdaysParse,a),r!==-1?r:null):e==="ddd"?(r=ut.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null):e==="dddd"?(r=ut.call(this._weekdaysParse,a),r!==-1||(r=ut.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null)):e==="ddd"?(r=ut.call(this._shortWeekdaysParse,a),r!==-1||(r=ut.call(this._weekdaysParse,a),r!==-1)?r:(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=ut.call(this._minWeekdaysParse,a),r!==-1||(r=ut.call(this._weekdaysParse,a),r!==-1)?r:(r=ut.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function Rf(n,e,t){var i,r,s;if(this._weekdaysParseExact)return Mf.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=jt([2e3,1]).day(i),t&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[i].test(n))return i;if(t&&e==="ddd"&&this._shortWeekdaysParse[i].test(n))return i;if(t&&e==="dd"&&this._minWeekdaysParse[i].test(n))return i;if(!t&&this._weekdaysParse[i].test(n))return i}}function Tf(n){if(!this.isValid())return n!=null?this:NaN;var e=rn(this,"Day");return n!=null?(n=gf(n,this.localeData()),this.add(n-e,"d")):e}function Df(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function _f(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=bf(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Af(n){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||Vs.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(qe(this,"_weekdaysRegex")||(this._weekdaysRegex=wf),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Of(n){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||Vs.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(qe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cf),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Lf(n){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||Vs.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(qe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ef),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vs(){function n(d,f){return f.length-d.length}var e=[],t=[],i=[],r=[],s,a,l,u,c;for(s=0;s<7;s++)a=jt([2e3,1]).day(s),l=Qt(this.weekdaysMin(a,"")),u=Qt(this.weekdaysShort(a,"")),c=Qt(this.weekdays(a,"")),e.push(l),t.push(u),i.push(c),r.push(l),r.push(u),r.push(c);e.sort(n),t.sort(n),i.sort(n),r.sort(n),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ns(){return this.hours()%12||12}function Pf(){return this.hours()||24}De("H",["HH",2],0,"hour"),De("h",["hh",2],0,Ns),De("k",["kk",2],0,Pf),De("hmm",0,0,function(){return""+Ns.apply(this)+Yt(this.minutes(),2)}),De("hmmss",0,0,function(){return""+Ns.apply(this)+Yt(this.minutes(),2)+Yt(this.seconds(),2)}),De("Hmm",0,0,function(){return""+this.hours()+Yt(this.minutes(),2)}),De("Hmmss",0,0,function(){return""+this.hours()+Yt(this.minutes(),2)+Yt(this.seconds(),2)});function ml(n,e){De(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ml("a",!0),ml("A",!1);function gl(n,e){return e._meridiemParse}Se("a",gl),Se("A",gl),Se("H",tt,Ls),Se("h",tt,Li),Se("k",tt,Li),Se("HH",tt,St),Se("hh",tt,St),Se("kk",tt,St),Se("hmm",rl),Se("hmmss",sl),Se("Hmm",rl),Se("Hmmss",sl),Qe(["H","HH"],dt),Qe(["k","kk"],function(n,e,t){var i=Ge(n);e[dt]=i===24?0:i}),Qe(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n}),Qe(["h","hh"],function(n,e,t){e[dt]=Ge(n),je(t).bigHour=!0}),Qe("hmm",function(n,e,t){var i=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i)),je(t).bigHour=!0}),Qe("hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i,2)),e[ei]=Ge(n.substr(r)),je(t).bigHour=!0}),Qe("Hmm",function(n,e,t){var i=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i))}),Qe("Hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[dt]=Ge(n.substr(0,i)),e[Nt]=Ge(n.substr(i,2)),e[ei]=Ge(n.substr(r))});function Ff(n){return(n+"").toLowerCase().charAt(0)==="p"}var Bf=/[ap]\.?m?\.?/i,Vf=Pi("Hours",!0);function Nf(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var bl={calendar:xh,longDateFormat:Dh,invalidDate:Ah,ordinal:Lh,dayOfMonthOrdinalParse:Ph,relativeTime:Bh,months:Qh,monthsShort:ll,week:df,weekdays:vf,weekdaysMin:yf,weekdaysShort:pl,meridiemParse:Bf},st={},on={},ln;function Hf(n,e){var t,i=Math.min(n.length,e.length);for(t=0;t<i;t+=1)if(n[t]!==e[t])return t;return i}function vl(n){return n&&n.toLowerCase().replace("_","-")}function If(n){for(var e=0,t,i,r,s;e<n.length;){for(s=vl(n[e]).split("-"),t=s.length,i=vl(n[e+1]),i=i?i.split("-"):null;t>0;){if(r=jn(s.slice(0,t).join("-")),r)return r;if(i&&i.length>=t&&Hf(s,i)>=t-1)break;t--}e++}return ln}function zf(n){return!!(n&&n.match("^[^/\\\\]*$"))}function jn(n){var e=null,t;if(st[n]===void 0&&typeof module<"u"&&module&&module.exports&&zf(n))try{e=ln._abbr,t=require,t("./locale/"+n),ci(e)}catch{st[n]=null}return st[n]}function ci(n,e){var t;return n&&(wt(e)?t=ii(n):t=Hs(n,e),t?ln=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ln._abbr}function Hs(n,e){if(e!==null){var t,i=bl;if(e.abbr=n,st[n]!=null)Zo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=st[n]._config;else if(e.parentLocale!=null)if(st[e.parentLocale]!=null)i=st[e.parentLocale]._config;else if(t=jn(e.parentLocale),t!=null)i=t._config;else return on[e.parentLocale]||(on[e.parentLocale]=[]),on[e.parentLocale].push({name:n,config:e}),null;return st[n]=new Ms(xs(i,e)),on[n]&&on[n].forEach(function(r){Hs(r.name,r.config)}),ci(n),st[n]}else return delete st[n],null}function jf(n,e){if(e!=null){var t,i,r=bl;st[n]!=null&&st[n].parentLocale!=null?st[n].set(xs(st[n]._config,e)):(i=jn(n),i!=null&&(r=i._config),e=xs(r,e),i==null&&(e.abbr=n),t=new Ms(e),t.parentLocale=st[n],st[n]=t),ci(n)}else st[n]!=null&&(st[n].parentLocale!=null?(st[n]=st[n].parentLocale,n===ci()&&ci(n)):st[n]!=null&&delete st[n]);return st[n]}function ii(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ln;if(!Bt(n)){if(e=jn(n),e)return e;n=[n]}return If(n)}function Wf(){return Rs(st)}function Is(n){var e,t=n._a;return t&&je(n).overflow===-2&&(e=t[Zt]<0||t[Zt]>11?Zt:t[Ut]<1||t[Ut]>Fs(t[ft],t[Zt])?Ut:t[dt]<0||t[dt]>24||t[dt]===24&&(t[Nt]!==0||t[ei]!==0||t[yi]!==0)?dt:t[Nt]<0||t[Nt]>59?Nt:t[ei]<0||t[ei]>59?ei:t[yi]<0||t[yi]>999?yi:-1,je(n)._overflowDayOfYear&&(e<ft||e>Ut)&&(e=Ut),je(n)._overflowWeeks&&e===-1&&(e=Gh),je(n)._overflowWeekday&&e===-1&&(e=$h),je(n).overflow=e),n}var Yf=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Uf=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gf=/Z|[+-]\d\d(?::?\d\d)?/,Wn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$f=/^\/?Date\((-?\d+)/i,qf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kf={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yl(n){var e,t,i=n._i,r=Yf.exec(i)||Uf.exec(i),s,a,l,u,c=Wn.length,d=zs.length;if(r){for(je(n).iso=!0,e=0,t=c;e<t;e++)if(Wn[e][1].exec(r[1])){a=Wn[e][0],s=Wn[e][2]!==!1;break}if(a==null){n._isValid=!1;return}if(r[3]){for(e=0,t=d;e<t;e++)if(zs[e][1].exec(r[3])){l=(r[2]||" ")+zs[e][0];break}if(l==null){n._isValid=!1;return}}if(!s&&l!=null){n._isValid=!1;return}if(r[4])if(Gf.exec(r[4]))u="Z";else{n._isValid=!1;return}n._f=a+(l||"")+(u||""),Ws(n)}else n._isValid=!1}function Jf(n,e,t,i,r,s){var a=[Xf(n),ll.indexOf(e),parseInt(t,10),parseInt(i,10),parseInt(r,10)];return s&&a.push(parseInt(s,10)),a}function Xf(n){var e=parseInt(n,10);return e<=49?2e3+e:e<=999?1900+e:e}function Qf(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Zf(n,e,t){if(n){var i=pl.indexOf(n),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return je(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function ep(n,e,t){if(n)return Kf[n];if(e)return 0;var i=parseInt(t,10),r=i%100,s=(i-r)/100;return s*60+r}function wl(n){var e=qf.exec(Qf(n._i)),t;if(e){if(t=Jf(e[4],e[3],e[2],e[5],e[6],e[7]),!Zf(e[1],t,n))return;n._a=t,n._tzm=ep(e[8],e[9],e[10]),n._d=sn.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),je(n).rfc2822=!0}else n._isValid=!1}function tp(n){var e=$f.exec(n._i);if(e!==null){n._d=new Date(+e[1]);return}if(yl(n),n._isValid===!1)delete n._isValid;else return;if(wl(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:we.createFromInputFallback(n)}we.createFromInputFallback=Tt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function Fi(n,e,t){return n??e??t}function ip(n){var e=new Date(we.now());return n._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function js(n){var e,t,i=[],r,s,a;if(!n._d){for(r=ip(n),n._w&&n._a[Ut]==null&&n._a[Zt]==null&&np(n),n._dayOfYear!=null&&(a=Fi(n._a[ft],r[ft]),(n._dayOfYear>nn(a)||n._dayOfYear===0)&&(je(n)._overflowDayOfYear=!0),t=sn(a,0,n._dayOfYear),n._a[Zt]=t.getUTCMonth(),n._a[Ut]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=i[e]=r[e];for(;e<7;e++)n._a[e]=i[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[dt]===24&&n._a[Nt]===0&&n._a[ei]===0&&n._a[yi]===0&&(n._nextDay=!0,n._a[dt]=0),n._d=(n._useUTC?sn:uf).apply(null,i),s=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[dt]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(je(n).weekdayMismatch=!0)}}function np(n){var e,t,i,r,s,a,l,u,c;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,a=4,t=Fi(e.GG,n._a[ft],an(it(),1,4).year),i=Fi(e.W,1),r=Fi(e.E,1),(r<1||r>7)&&(u=!0)):(s=n._locale._week.dow,a=n._locale._week.doy,c=an(it(),s,a),t=Fi(e.gg,n._a[ft],c.year),i=Fi(e.w,c.week),e.d!=null?(r=e.d,(r<0||r>6)&&(u=!0)):e.e!=null?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),i<1||i>ti(t,s,a)?je(n)._overflowWeeks=!0:u!=null?je(n)._overflowWeekday=!0:(l=fl(t,i,r,s,a),n._a[ft]=l.year,n._dayOfYear=l.dayOfYear)}we.ISO_8601=function(){},we.RFC_2822=function(){};function Ws(n){if(n._f===we.ISO_8601){yl(n);return}if(n._f===we.RFC_2822){wl(n);return}n._a=[],je(n).empty=!0;var e=""+n._i,t,i,r,s,a,l=e.length,u=0,c,d;for(r=el(n._f,n._locale).match(Ts)||[],d=r.length,t=0;t<d;t++)s=r[t],i=(e.match(Wh(s,n))||[])[0],i&&(a=e.substr(0,e.indexOf(i)),a.length>0&&je(n).unusedInput.push(a),e=e.slice(e.indexOf(i)+i.length),u+=i.length),Ai[s]?(i?je(n).empty=!1:je(n).unusedTokens.push(s),Uh(s,i,n)):n._strict&&!i&&je(n).unusedTokens.push(s);je(n).charsLeftOver=l-u,e.length>0&&je(n).unusedInput.push(e),n._a[dt]<=12&&je(n).bigHour===!0&&n._a[dt]>0&&(je(n).bigHour=void 0),je(n).parsedDateParts=n._a.slice(0),je(n).meridiem=n._meridiem,n._a[dt]=rp(n._locale,n._a[dt],n._meridiem),c=je(n).era,c!==null&&(n._a[ft]=n._locale.erasConvertYear(c,n._a[ft])),js(n),Is(n)}function rp(n,e,t){var i;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(i=n.isPM(t),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function sp(n){var e,t,i,r,s,a,l=!1,u=n._f.length;if(u===0){je(n).invalidFormat=!0,n._d=new Date(NaN);return}for(r=0;r<u;r++)s=0,a=!1,e=Ss({},n),n._useUTC!=null&&(e._useUTC=n._useUTC),e._f=n._f[r],Ws(e),Es(e)&&(a=!0),s+=je(e).charsLeftOver,s+=je(e).unusedTokens.length*10,je(e).score=s,l?s<i&&(i=s,t=e):(i==null||s<i||a)&&(i=s,t=e,a&&(l=!0));ui(n,t||e)}function ap(n){if(!n._d){var e=_s(n._i),t=e.day===void 0?e.date:e.day;n._a=Ko([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),js(n)}}function op(n){var e=new Zi(Is(Cl(n)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Cl(n){var e=n._i,t=n._f;return n._locale=n._locale||ii(n._l),e===null||t===void 0&&e===""?An({nullInput:!0}):(typeof e=="string"&&(n._i=e=n._locale.preparse(e)),Vt(e)?new Zi(Is(e)):(Qi(e)?n._d=e:Bt(t)?sp(n):t?Ws(n):lp(n),Es(n)||(n._d=null),n))}function lp(n){var e=n._i;wt(e)?n._d=new Date(we.now()):Qi(e)?n._d=new Date(e.valueOf()):typeof e=="string"?tp(n):Bt(e)?(n._a=Ko(e.slice(0),function(t){return parseInt(t,10)}),js(n)):vi(e)?ap(n):Xt(e)?n._d=new Date(e):we.createFromInputFallback(n)}function El(n,e,t,i,r){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(t===!0||t===!1)&&(i=t,t=void 0),(vi(n)&&ws(n)||Bt(n)&&n.length===0)&&(n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=t,s._i=n,s._f=e,s._strict=i,op(s)}function it(n,e,t,i){return El(n,e,t,i,!1)}var up=Tt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:An()}),cp=Tt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:An()});function kl(n,e){var t,i;if(e.length===1&&Bt(e[0])&&(e=e[0]),!e.length)return it();for(t=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][n](t))&&(t=e[i]);return t}function dp(){var n=[].slice.call(arguments,0);return kl("isBefore",n)}function hp(){var n=[].slice.call(arguments,0);return kl("isAfter",n)}var fp=function(){return Date.now?Date.now():+new Date},un=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(n){var e,t=!1,i,r=un.length;for(e in n)if(qe(n,e)&&!(ut.call(un,e)!==-1&&(n[e]==null||!isNaN(n[e]))))return!1;for(i=0;i<r;++i)if(n[un[i]]){if(t)return!1;parseFloat(n[un[i]])!==Ge(n[un[i]])&&(t=!0)}return!0}function mp(){return this._isValid}function gp(){return Ht(NaN)}function Yn(n){var e=_s(n),t=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,u=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=pp(e),this._milliseconds=+d+c*1e3+u*6e4+l*1e3*60*60,this._days=+a+s*7,this._months=+r+i*3+t*12,this._data={},this._locale=ii(),this._bubble()}function Un(n){return n instanceof Yn}function Ys(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function bp(n,e,t){var i=Math.min(n.length,e.length),r=Math.abs(n.length-e.length),s=0,a;for(a=0;a<i;a++)Ge(n[a])!==Ge(e[a])&&s++;return s+r}function Sl(n,e){De(n,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Yt(~~(t/60),2)+e+Yt(~~t%60,2)})}Sl("Z",":"),Sl("ZZ",""),Se("Z",Nn),Se("ZZ",Nn),Qe(["Z","ZZ"],function(n,e,t){t._useUTC=!0,t._tzm=Us(Nn,n)});var vp=/([\+\-]|\d\d)/gi;function Us(n,e){var t=(e||"").match(n),i,r,s;return t===null?null:(i=t[t.length-1]||[],r=(i+"").match(vp)||["-",0,0],s=+(r[1]*60)+Ge(r[2]),s===0?0:r[0]==="+"?s:-s)}function Gs(n,e){var t,i;return e._isUTC?(t=e.clone(),i=(Vt(n)||Qi(n)?n.valueOf():it(n).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),we.updateOffset(t,!1),t):it(n).local()}function $s(n){return-Math.round(n._d.getTimezoneOffset())}we.updateOffset=function(){};function yp(n,e,t){var i=this._offset||0,r;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=Us(Nn,n),n===null)return this}else Math.abs(n)<16&&!t&&(n=n*60);return!this._isUTC&&e&&(r=$s(this)),this._offset=n,this._isUTC=!0,r!=null&&this.add(r,"m"),i!==n&&(!e||this._changeInProgress?Tl(this,Ht(n-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,we.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:$s(this)}function wp(n,e){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,e),this):-this.utcOffset()}function Cp(n){return this.utcOffset(0,n)}function Ep(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract($s(this),"m")),this}function kp(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=Us(zh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function Sp(n){return this.isValid()?(n=n?it(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function xp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mp(){if(!wt(this._isDSTShifted))return this._isDSTShifted;var n={},e;return Ss(n,this),n=Cl(n),n._a?(e=n._isUTC?jt(n._a):it(n._a),this._isDSTShifted=this.isValid()&&bp(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Rp(){return this.isValid()?!this._isUTC:!1}function Tp(){return this.isValid()?this._isUTC:!1}function xl(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Dp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(n,e){var t=n,i=null,r,s,a;return Un(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:Xt(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(i=Dp.exec(n))?(r=i[1]==="-"?-1:1,t={y:0,d:Ge(i[Ut])*r,h:Ge(i[dt])*r,m:Ge(i[Nt])*r,s:Ge(i[ei])*r,ms:Ge(Ys(i[yi]*1e3))*r}):(i=_p.exec(n))?(r=i[1]==="-"?-1:1,t={y:wi(i[2],r),M:wi(i[3],r),w:wi(i[4],r),d:wi(i[5],r),h:wi(i[6],r),m:wi(i[7],r),s:wi(i[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(a=Ap(it(t.from),it(t.to)),t={},t.ms=a.milliseconds,t.M=a.months),s=new Yn(t),Un(n)&&qe(n,"_locale")&&(s._locale=n._locale),Un(n)&&qe(n,"_isValid")&&(s._isValid=n._isValid),s}Ht.fn=Yn.prototype,Ht.invalid=gp;function wi(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function Ml(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Ap(n,e){var t;return n.isValid()&&e.isValid()?(e=Gs(e,n),n.isBefore(e)?t=Ml(n,e):(t=Ml(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Rl(n,e){return function(t,i){var r,s;return i!==null&&!isNaN(+i)&&(Zo(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=t,t=i,i=s),r=Ht(t,i),Tl(this,r,n),this}}function Tl(n,e,t,i){var r=e._milliseconds,s=Ys(e._days),a=Ys(e._months);n.isValid()&&(i=i??!0,a&&cl(n,rn(n,"Month")+a*t),s&&ol(n,"Date",rn(n,"Date")+s*t),r&&n._d.setTime(n._d.valueOf()+r*t),i&&we.updateOffset(n,s||a))}var Op=Rl(1,"add"),Lp=Rl(-1,"subtract");function Dl(n){return typeof n=="string"||n instanceof String}function Pp(n){return Vt(n)||Qi(n)||Dl(n)||Xt(n)||Bp(n)||Fp(n)||n===null||n===void 0}function Fp(n){var e=vi(n)&&!ws(n),t=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,s,a=i.length;for(r=0;r<a;r+=1)s=i[r],t=t||qe(n,s);return e&&t}function Bp(n){var e=Bt(n),t=!1;return e&&(t=n.filter(function(i){return!Xt(i)&&Dl(n)}).length===0),e&&t}function Vp(n){var e=vi(n)&&!ws(n),t=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,s;for(r=0;r<i.length;r+=1)s=i[r],t=t||qe(n,s);return e&&t}function Np(n,e){var t=n.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Hp(n,e){arguments.length===1&&(arguments[0]?Pp(arguments[0])?(n=arguments[0],e=void 0):Vp(arguments[0])&&(e=arguments[0],n=void 0):(n=void 0,e=void 0));var t=n||it(),i=Gs(t,this).startOf("day"),r=we.calendarFormat(this,i)||"sameElse",s=e&&(Wt(e[r])?e[r].call(this,t):e[r]);return this.format(s||this.localeData().calendar(r,this,it(t)))}function Ip(){return new Zi(this)}function zp(n,e){var t=Vt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Dt(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function jp(n,e){var t=Vt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Dt(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function Wp(n,e,t,i){var r=Vt(n)?n:it(n),s=Vt(e)?e:it(e);return this.isValid()&&r.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(i[1]===")"?this.isBefore(s,t):!this.isAfter(s,t))):!1}function Yp(n,e){var t=Vt(n)?n:it(n),i;return this.isValid()&&t.isValid()?(e=Dt(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(i=t.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function Up(n,e){return this.isSame(n,e)||this.isAfter(n,e)}function Gp(n,e){return this.isSame(n,e)||this.isBefore(n,e)}function $p(n,e,t){var i,r,s;if(!this.isValid())return NaN;if(i=Gs(n,this),!i.isValid())return NaN;switch(r=(i.utcOffset()-this.utcOffset())*6e4,e=Dt(e),e){case"year":s=Gn(this,i)/12;break;case"month":s=Gn(this,i);break;case"quarter":s=Gn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return t?s:_t(s)}function Gn(n,e){if(n.date()<e.date())return-Gn(e,n);var t=(e.year()-n.year())*12+(e.month()-n.month()),i=n.clone().add(t,"months"),r,s;return e-i<0?(r=n.clone().add(t-1,"months"),s=(e-i)/(i-r)):(r=n.clone().add(t+1,"months"),s=(e-i)/(r-i)),-(t+s)||0}we.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",we.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function qp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kp(n){if(!this.isValid())return null;var e=n!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?Ln(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Wt(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ln(t,"Z")):Ln(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,i,r,s;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(t+i+r+s)}function Xp(n){n||(n=this.isUtc()?we.defaultFormatUtc:we.defaultFormat);var e=Ln(this,n);return this.localeData().postformat(e)}function Qp(n,e){return this.isValid()&&(Vt(n)&&n.isValid()||it(n).isValid())?Ht({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zp(n){return this.from(it(),n)}function em(n,e){return this.isValid()&&(Vt(n)&&n.isValid()||it(n).isValid())?Ht({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function tm(n){return this.to(it(),n)}function _l(n){var e;return n===void 0?this._locale._abbr:(e=ii(n),e!=null&&(this._locale=e),this)}var Al=Tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Ol(){return this._locale}var $n=1e3,Bi=60*$n,qn=60*Bi,Ll=(365*400+97)*24*qn;function Vi(n,e){return(n%e+e)%e}function Pl(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Ll:new Date(n,e,t).valueOf()}function Fl(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Ll:Date.UTC(n,e,t)}function im(n){var e,t;if(n=Dt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Fl:Pl,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Vi(e+(this._isUTC?0:this.utcOffset()*Bi),qn);break;case"minute":e=this._d.valueOf(),e-=Vi(e,Bi);break;case"second":e=this._d.valueOf(),e-=Vi(e,$n);break}return this._d.setTime(e),we.updateOffset(this,!0),this}function nm(n){var e,t;if(n=Dt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Fl:Pl,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=qn-Vi(e+(this._isUTC?0:this.utcOffset()*Bi),qn)-1;break;case"minute":e=this._d.valueOf(),e+=Bi-Vi(e,Bi)-1;break;case"second":e=this._d.valueOf(),e+=$n-Vi(e,$n)-1;break}return this._d.setTime(e),we.updateOffset(this,!0),this}function rm(){return this._d.valueOf()-(this._offset||0)*6e4}function sm(){return Math.floor(this.valueOf()/1e3)}function am(){return new Date(this.valueOf())}function om(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function lm(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function um(){return this.isValid()?this.toISOString():null}function cm(){return Es(this)}function dm(){return ui({},je(this))}function hm(){return je(this).overflow}function fm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}De("N",0,0,"eraAbbr"),De("NN",0,0,"eraAbbr"),De("NNN",0,0,"eraAbbr"),De("NNNN",0,0,"eraName"),De("NNNNN",0,0,"eraNarrow"),De("y",["y",1],"yo","eraYear"),De("y",["yy",2],0,"eraYear"),De("y",["yyy",3],0,"eraYear"),De("y",["yyyy",4],0,"eraYear"),Se("N",qs),Se("NN",qs),Se("NNN",qs),Se("NNNN",Sm),Se("NNNNN",xm),Qe(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,i){var r=t._locale.erasParse(n,i,t._strict);r?je(t).era=r:je(t).invalidEra=n}),Se("y",Oi),Se("yy",Oi),Se("yyy",Oi),Se("yyyy",Oi),Se("yo",Mm),Qe(["y","yy","yyy","yyyy"],ft),Qe(["yo"],function(n,e,t,i){var r;t._locale._eraYearOrdinalRegex&&(r=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[ft]=t._locale.eraYearOrdinalParse(n,r):e[ft]=parseInt(n,10)});function pm(n,e){var t,i,r,s=this._eras||ii("en")._eras;for(t=0,i=s.length;t<i;++t){switch(typeof s[t].since){case"string":r=we(s[t].since).startOf("day"),s[t].since=r.valueOf();break}switch(typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":r=we(s[t].until).startOf("day").valueOf(),s[t].until=r.valueOf();break}}return s}function mm(n,e,t){var i,r,s=this.eras(),a,l,u;for(n=n.toUpperCase(),i=0,r=s.length;i<r;++i)if(a=s[i].name.toUpperCase(),l=s[i].abbr.toUpperCase(),u=s[i].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(l===n)return s[i];break;case"NNNN":if(a===n)return s[i];break;case"NNNNN":if(u===n)return s[i];break}else if([a,l,u].indexOf(n)>=0)return s[i]}function gm(n,e){var t=n.since<=n.until?1:-1;return e===void 0?we(n.since).year():we(n.since).year()+(e-n.offset)*t}function bm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].name;return""}function vm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].narrow;return""}function ym(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].abbr;return""}function wm(){var n,e,t,i,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=r[n].since<=r[n].until?1:-1,i=this.clone().startOf("day").valueOf(),r[n].since<=i&&i<=r[n].until||r[n].until<=i&&i<=r[n].since)return(this.year()-we(r[n].since).year())*t+r[n].offset;return this.year()}function Cm(n){return qe(this,"_erasNameRegex")||Ks.call(this),n?this._erasNameRegex:this._erasRegex}function Em(n){return qe(this,"_erasAbbrRegex")||Ks.call(this),n?this._erasAbbrRegex:this._erasRegex}function km(n){return qe(this,"_erasNarrowRegex")||Ks.call(this),n?this._erasNarrowRegex:this._erasRegex}function qs(n,e){return e.erasAbbrRegex(n)}function Sm(n,e){return e.erasNameRegex(n)}function xm(n,e){return e.erasNarrowRegex(n)}function Mm(n,e){return e._eraYearOrdinalRegex||Oi}function Ks(){var n=[],e=[],t=[],i=[],r,s,a,l,u,c=this.eras();for(r=0,s=c.length;r<s;++r)a=Qt(c[r].name),l=Qt(c[r].abbr),u=Qt(c[r].narrow),e.push(a),n.push(l),t.push(u),i.push(a),i.push(l),i.push(u);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}De(0,["gg",2],0,function(){return this.weekYear()%100}),De(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kn(n,e){De(0,[n,n.length],0,e)}Kn("gggg","weekYear"),Kn("ggggg","weekYear"),Kn("GGGG","isoWeekYear"),Kn("GGGGG","isoWeekYear"),Se("G",Vn),Se("g",Vn),Se("GG",tt,St),Se("gg",tt,St),Se("GGGG",Os,As),Se("gggg",Os,As),Se("GGGGG",Bn,Pn),Se("ggggg",Bn,Pn),tn(["gggg","ggggg","GGGG","GGGGG"],function(n,e,t,i){e[i.substr(0,2)]=Ge(n)}),tn(["gg","GG"],function(n,e,t,i){e[i]=we.parseTwoDigitYear(n)});function Rm(n){return Bl.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Tm(n){return Bl.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Dm(){return ti(this.year(),1,4)}function _m(){return ti(this.isoWeekYear(),1,4)}function Am(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function Om(){var n=this.localeData()._week;return ti(this.weekYear(),n.dow,n.doy)}function Bl(n,e,t,i,r){var s;return n==null?an(this,i,r).year:(s=ti(n,i,r),e>s&&(e=s),Lm.call(this,n,e,t,i,r))}function Lm(n,e,t,i,r){var s=fl(n,e,t,i,r),a=sn(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}De("Q",0,"Qo","quarter"),Se("Q",il),Qe("Q",function(n,e){e[Zt]=(Ge(n)-1)*3});function Pm(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}De("D",["DD",2],"Do","date"),Se("D",tt,Li),Se("DD",tt,St),Se("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Qe(["D","DD"],Ut),Qe("Do",function(n,e){e[Ut]=Ge(n.match(tt)[0])});var Vl=Pi("Date",!0);De("DDD",["DDDD",3],"DDDo","dayOfYear"),Se("DDD",Fn),Se("DDDD",nl),Qe(["DDD","DDDD"],function(n,e,t){t._dayOfYear=Ge(n)});function Fm(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}De("m",["mm",2],0,"minute"),Se("m",tt,Ls),Se("mm",tt,St),Qe(["m","mm"],Nt);var Bm=Pi("Minutes",!1);De("s",["ss",2],0,"second"),Se("s",tt,Ls),Se("ss",tt,St),Qe(["s","ss"],ei);var Vm=Pi("Seconds",!1);De("S",0,0,function(){return~~(this.millisecond()/100)}),De(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),De(0,["SSS",3],0,"millisecond"),De(0,["SSSS",4],0,function(){return this.millisecond()*10}),De(0,["SSSSS",5],0,function(){return this.millisecond()*100}),De(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),De(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),De(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),De(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Se("S",Fn,il),Se("SS",Fn,St),Se("SSS",Fn,nl);var di,Nl;for(di="SSSS";di.length<=9;di+="S")Se(di,Oi);function Nm(n,e){e[yi]=Ge(("0."+n)*1e3)}for(di="S";di.length<=9;di+="S")Qe(di,Nm);Nl=Pi("Milliseconds",!1),De("z",0,0,"zoneAbbr"),De("zz",0,0,"zoneName");function Hm(){return this._isUTC?"UTC":""}function Im(){return this._isUTC?"Coordinated Universal Time":""}var ge=Zi.prototype;ge.add=Op,ge.calendar=Hp,ge.clone=Ip,ge.diff=$p,ge.endOf=nm,ge.format=Xp,ge.from=Qp,ge.fromNow=Zp,ge.to=em,ge.toNow=tm,ge.get=Kh,ge.invalidAt=hm,ge.isAfter=zp,ge.isBefore=jp,ge.isBetween=Wp,ge.isSame=Yp,ge.isSameOrAfter=Up,ge.isSameOrBefore=Gp,ge.isValid=cm,ge.lang=Al,ge.locale=_l,ge.localeData=Ol,ge.max=cp,ge.min=up,ge.parsingFlags=dm,ge.set=Jh,ge.startOf=im,ge.subtract=Lp,ge.toArray=om,ge.toObject=lm,ge.toDate=am,ge.toISOString=Kp,ge.inspect=Jp,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=um,ge.toString=qp,ge.unix=sm,ge.valueOf=rm,ge.creationData=fm,ge.eraName=bm,ge.eraNarrow=vm,ge.eraAbbr=ym,ge.eraYear=wm,ge.year=al,ge.isLeapYear=qh,ge.weekYear=Rm,ge.isoWeekYear=Tm,ge.quarter=ge.quarters=Pm,ge.month=dl,ge.daysInMonth=af,ge.week=ge.weeks=pf,ge.isoWeek=ge.isoWeeks=mf,ge.weeksInYear=Am,ge.weeksInWeekYear=Om,ge.isoWeeksInYear=Dm,ge.isoWeeksInISOWeekYear=_m,ge.date=Vl,ge.day=ge.days=Tf,ge.weekday=Df,ge.isoWeekday=_f,ge.dayOfYear=Fm,ge.hour=ge.hours=Vf,ge.minute=ge.minutes=Bm,ge.second=ge.seconds=Vm,ge.millisecond=ge.milliseconds=Nl,ge.utcOffset=yp,ge.utc=Cp,ge.local=Ep,ge.parseZone=kp,ge.hasAlignedHourOffset=Sp,ge.isDST=xp,ge.isLocal=Rp,ge.isUtcOffset=Tp,ge.isUtc=xl,ge.isUTC=xl,ge.zoneAbbr=Hm,ge.zoneName=Im,ge.dates=Tt("dates accessor is deprecated. Use date instead.",Vl),ge.months=Tt("months accessor is deprecated. Use month instead",dl),ge.years=Tt("years accessor is deprecated. Use year instead",al),ge.zone=Tt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wp),ge.isDSTShifted=Tt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mp);function zm(n){return it(n*1e3)}function jm(){return it.apply(null,arguments).parseZone()}function Hl(n){return n}var Ke=Ms.prototype;Ke.calendar=Mh,Ke.longDateFormat=_h,Ke.invalidDate=Oh,Ke.ordinal=Fh,Ke.preparse=Hl,Ke.postformat=Hl,Ke.relativeTime=Vh,Ke.pastFuture=Nh,Ke.set=Sh,Ke.eras=pm,Ke.erasParse=mm,Ke.erasConvertYear=gm,Ke.erasAbbrRegex=Em,Ke.erasNameRegex=Cm,Ke.erasNarrowRegex=km,Ke.months=tf,Ke.monthsShort=nf,Ke.monthsParse=sf,Ke.monthsRegex=lf,Ke.monthsShortRegex=of,Ke.week=cf,Ke.firstDayOfYear=ff,Ke.firstDayOfWeek=hf,Ke.weekdays=kf,Ke.weekdaysMin=xf,Ke.weekdaysShort=Sf,Ke.weekdaysParse=Rf,Ke.weekdaysRegex=Af,Ke.weekdaysShortRegex=Of,Ke.weekdaysMinRegex=Lf,Ke.isPM=Ff,Ke.meridiem=Nf;function Jn(n,e,t,i){var r=ii(),s=jt().set(i,e);return r[t](s,n)}function Il(n,e,t){if(Xt(n)&&(e=n,n=void 0),n=n||"",e!=null)return Jn(n,e,t,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Jn(n,i,t,"month");return r}function Js(n,e,t,i){typeof n=="boolean"?(Xt(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,Xt(e)&&(t=e,e=void 0),e=e||"");var r=ii(),s=n?r._week.dow:0,a,l=[];if(t!=null)return Jn(e,(t+s)%7,i,"day");for(a=0;a<7;a++)l[a]=Jn(e,(a+s)%7,i,"day");return l}function Wm(n,e){return Il(n,e,"months")}function Ym(n,e){return Il(n,e,"monthsShort")}function Um(n,e,t){return Js(n,e,t,"weekdays")}function Gm(n,e,t){return Js(n,e,t,"weekdaysShort")}function $m(n,e,t){return Js(n,e,t,"weekdaysMin")}ci("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=Ge(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}}),we.lang=Tt("moment.lang is deprecated. Use moment.locale instead.",ci),we.langData=Tt("moment.langData is deprecated. Use moment.localeData instead.",ii);var ni=Math.abs;function qm(){var n=this._data;return this._milliseconds=ni(this._milliseconds),this._days=ni(this._days),this._months=ni(this._months),n.milliseconds=ni(n.milliseconds),n.seconds=ni(n.seconds),n.minutes=ni(n.minutes),n.hours=ni(n.hours),n.months=ni(n.months),n.years=ni(n.years),this}function zl(n,e,t,i){var r=Ht(e,t);return n._milliseconds+=i*r._milliseconds,n._days+=i*r._days,n._months+=i*r._months,n._bubble()}function Km(n,e){return zl(this,n,e,1)}function Jm(n,e){return zl(this,n,e,-1)}function jl(n){return n<0?Math.floor(n):Math.ceil(n)}function Xm(){var n=this._milliseconds,e=this._days,t=this._months,i=this._data,r,s,a,l,u;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=jl(Xs(t)+e)*864e5,e=0,t=0),i.milliseconds=n%1e3,r=_t(n/1e3),i.seconds=r%60,s=_t(r/60),i.minutes=s%60,a=_t(s/60),i.hours=a%24,e+=_t(a/24),u=_t(Wl(e)),t+=u,e-=jl(Xs(u)),l=_t(t/12),t%=12,i.days=e,i.months=t,i.years=l,this}function Wl(n){return n*4800/146097}function Xs(n){return n*146097/4800}function Qm(n){if(!this.isValid())return NaN;var e,t,i=this._milliseconds;if(n=Dt(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+i/864e5,t=this._months+Wl(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(Xs(this._months)),n){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+n)}}function ri(n){return function(){return this.as(n)}}var Yl=ri("ms"),Zm=ri("s"),eg=ri("m"),tg=ri("h"),ig=ri("d"),ng=ri("w"),rg=ri("M"),sg=ri("Q"),ag=ri("y"),og=Yl;function lg(){return Ht(this)}function ug(n){return n=Dt(n),this.isValid()?this[n+"s"]():NaN}function Ci(n){return function(){return this.isValid()?this._data[n]:NaN}}var cg=Ci("milliseconds"),dg=Ci("seconds"),hg=Ci("minutes"),fg=Ci("hours"),pg=Ci("days"),mg=Ci("months"),gg=Ci("years");function bg(){return _t(this.days()/7)}var si=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function vg(n,e,t,i,r){return r.relativeTime(e||1,!!t,n,i)}function yg(n,e,t,i){var r=Ht(n).abs(),s=si(r.as("s")),a=si(r.as("m")),l=si(r.as("h")),u=si(r.as("d")),c=si(r.as("M")),d=si(r.as("w")),f=si(r.as("y")),p=s<=t.ss&&["s",s]||s<t.s&&["ss",s]||a<=1&&["m"]||a<t.m&&["mm",a]||l<=1&&["h"]||l<t.h&&["hh",l]||u<=1&&["d"]||u<t.d&&["dd",u];return t.w!=null&&(p=p||d<=1&&["w"]||d<t.w&&["ww",d]),p=p||c<=1&&["M"]||c<t.M&&["MM",c]||f<=1&&["y"]||["yy",f],p[2]=e,p[3]=+n>0,p[4]=i,vg.apply(null,p)}function wg(n){return n===void 0?si:typeof n=="function"?(si=n,!0):!1}function Cg(n,e){return Ni[n]===void 0?!1:e===void 0?Ni[n]:(Ni[n]=e,n==="s"&&(Ni.ss=e-1),!0)}function Eg(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,i=Ni,r,s;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(i=Object.assign({},Ni,e),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),r=this.localeData(),s=yg(this,!t,i,r),t&&(s=r.pastFuture(+this,s)),r.postformat(s)}var Qs=Math.abs;function Hi(n){return(n>0)-(n<0)||+n}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var n=Qs(this._milliseconds)/1e3,e=Qs(this._days),t=Qs(this._months),i,r,s,a,l=this.asSeconds(),u,c,d,f;return l?(i=_t(n/60),r=_t(i/60),n%=60,i%=60,s=_t(t/12),t%=12,a=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Hi(this._months)!==Hi(l)?"-":"",d=Hi(this._days)!==Hi(l)?"-":"",f=Hi(this._milliseconds)!==Hi(l)?"-":"",u+"P"+(s?c+s+"Y":"")+(t?c+t+"M":"")+(e?d+e+"D":"")+(r||i||n?"T":"")+(r?f+r+"H":"")+(i?f+i+"M":"")+(n?f+a+"S":"")):"P0D"}var $e=Yn.prototype;$e.isValid=mp,$e.abs=qm,$e.add=Km,$e.subtract=Jm,$e.as=Qm,$e.asMilliseconds=Yl,$e.asSeconds=Zm,$e.asMinutes=eg,$e.asHours=tg,$e.asDays=ig,$e.asWeeks=ng,$e.asMonths=rg,$e.asQuarters=sg,$e.asYears=ag,$e.valueOf=og,$e._bubble=Xm,$e.clone=lg,$e.get=ug,$e.milliseconds=cg,$e.seconds=dg,$e.minutes=hg,$e.hours=fg,$e.days=pg,$e.weeks=bg,$e.months=mg,$e.years=gg,$e.humanize=Eg,$e.toISOString=Xn,$e.toString=Xn,$e.toJSON=Xn,$e.locale=_l,$e.localeData=Ol,$e.toIsoString=Tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),$e.lang=Al,De("X",0,0,"unix"),De("x",0,0,"valueOf"),Se("x",Vn),Se("X",jh),Qe("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)}),Qe("x",function(n,e,t){t._d=new Date(Ge(n))});//! moment.js
25
+ we.version="2.30.1",Eh(it),we.fn=ge,we.min=dp,we.max=hp,we.now=fp,we.utc=jt,we.unix=zm,we.months=Wm,we.isDate=Qi,we.locale=ci,we.invalid=An,we.duration=Ht,we.isMoment=Vt,we.weekdays=Um,we.parseZone=jm,we.localeData=ii,we.isDuration=Un,we.monthsShort=Ym,we.weekdaysMin=$m,we.defineLocale=Hs,we.updateLocale=jf,we.locales=Wf,we.weekdaysShort=Gm,we.normalizeUnits=Dt,we.relativeTimeRounding=wg,we.relativeTimeThreshold=Cg,we.calendarFormat=Np,we.prototype=ge,we.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ul=n=>n===void 0||n==="auto"||n==="instant"||n==="smooth";function kg(n,e){this.scrollLeft=n,this.scrollTop=e}const Gl=(n,e,t="cannot convert to dictionary.")=>`Failed to execute '${n}' on '${e}': ${t}`,$l=(n,e,t)=>Gl(n,e,`The provided value '${t}' is not a valid enum value of type ScrollBehavior.`),ql=(n,e,t)=>{var i;const r=`__SEAMLESS.BACKUP$${e}`;return!n[r]&&n[e]&&!(!((i=n[e])===null||i===void 0)&&i.__isPolyfill)&&(n[r]=n[e]),n[r]||t},Sg=n=>{const e=typeof n;return n!==null&&(e==="object"||e==="function")},Zs=n=>n.ownerDocument.scrollingElement||n.ownerDocument.documentElement;function xg(n){if(typeof Event=="function")return new Event("scrollend",{bubbles:n,cancelable:!1});const e=document.createEvent("Event");return e.initEvent("scrollend",n,!1),e}const Mg=n=>.5*(1-Math.cos(Math.PI*n));function ea(){var n;let e;return!((n=window.performance)===null||n===void 0)&&n.now?e=()=>window.performance.now():e=()=>window.Date.now(),ea=e,e()}const Rg=500,Kl=n=>{const t=(ea()-n.timeStamp)/(n.duration||Rg);if(t>1){n.method(n.targetX,n.targetY),n.callback();return}const i=(n.timingFunc||Mg)(t),r=n.startX+(n.targetX-n.startX)*i,s=n.startY+(n.targetY-n.startY)*i;n.method(r,s),n.rafId=window.requestAnimationFrame(()=>{Kl(n)})},Qn=n=>isFinite(n)?Number(n):0,Tg=n=>{var e;return(e=n.isConnected)!==null&&e!==void 0?e:!n.ownerDocument||!(n.ownerDocument.compareDocumentPosition(n)&1)},Dg=(n,e,t)=>{var i,r;if(!Tg(n))return;const s=n.scrollLeft,a=n.scrollTop,l=Qn((i=e.left)!==null&&i!==void 0?i:s),u=Qn((r=e.top)!==null&&r!==void 0?r:a);if(l===s&&u===a)return;const c=ql(HTMLElement.prototype,"scroll",kg),d=ql(Object.getPrototypeOf(n),"scroll",c).bind(n);if(e.behavior!=="smooth"){d(l,u);return}const f=()=>{window.removeEventListener("wheel",S),window.removeEventListener("touchmove",S)},p=()=>{f();const m=n.nodeType===9;n.dispatchEvent(xg(m))},h=Object.assign(Object.assign({},t),{timeStamp:ea(),startX:s,startY:a,targetX:l,targetY:u,rafId:0,method:d,callback:p}),S=()=>{window.cancelAnimationFrame(h.rafId),f()};window.addEventListener("wheel",S,{passive:!0,once:!0}),window.addEventListener("touchmove",S,{passive:!0,once:!0}),Kl(h)},_g=n=>n.window===n,Ag=(n=>(e,t,i)=>{const[r,s]=_g(e)?[Zs(e.document.documentElement),"Window"]:[e,"Element"],a=t??{};if(!Sg(a))throw new TypeError(Gl(n,s));if(!Ul(a.behavior))throw new TypeError($l(n,s,a.behavior));n==="scrollBy"&&(a.left=Qn(a.left)+r.scrollLeft,a.top=Qn(a.top)+r.scrollTop),Dg(r,a,i)})("scroll"),Jl=n=>{switch(n){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},Xl=(n,e,t,i)=>{let r=0;switch(e||(r^=2),n){case 0:r=r>>1|(r&1)<<1,[t,i]=[i,t];break;case 1:case 3:r^=1;break;case 4:r^=2;break}return[r,t,i]},Og=n=>(Xl(Jl(n.writingMode),n.direction!=="rtl",void 0,void 0)[0]&1)===1,Lg=(n,e,t)=>{const[i,r,s]=Xl(e,t,n.block||"start",n.inline||"nearest");return[r,s].map((a,l)=>{switch(a){case"center":return 1;case"nearest":return 0;default:{const u=i>>l&1;return a==="start"==!u?2:3}}})},Ql=(n,e,t,i,r,s,a)=>n!==0?n:r<e&&s>t||r>e&&s<t?null:r<=e&&a<=i||s>=t&&a>=i?2:s>t&&a<i||r<e&&a>i?3:null,Zl=n=>n!=="visible"&&n!=="clip",Pg=n=>{var e;try{return((e=n.ownerDocument.defaultView)===null||e===void 0?void 0:e.frameElement)||null}catch{return null}},Fg=(n,e)=>n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth?Zl(e.overflowY)||Zl(e.overflowX)||n===Zs(n):!1,eu=n=>{const e=n.parentNode,t=n.parentElement;if(t===null&&e!==null){if(e.nodeType===11)return e.host;if(e.nodeType===9)return Pg(n)}return t},ta=(n,e,t)=>n<e?e:n>t?t:n,Bg=n=>["scroll-margin","scroll-snap-margin"].filter(e=>e in n.documentElement.style)[0],Vg=(n,e,t)=>{const{top:i,right:r,bottom:s,left:a}=e,l=Bg(n.ownerDocument);if(!l)return[i,r,s,a];const u=c=>{const d=t.getPropertyValue(`${l}-${c}`);return parseInt(d,10)||0};return[i-u("top"),r+u("right"),s+u("bottom"),a-u("left")]},Zn=(n,e,t)=>{switch(n){case 1:return(e+t)/2;case 3:return t;case 2:case 0:return e}},Ng=(n,e)=>{var t,i,r;const s=(t=n.ownerDocument.defaultView)===null||t===void 0?void 0:t.visualViewport,[a,l,u,c]=n===Zs(n)?[0,0,(i=s?.width)!==null&&i!==void 0?i:n.clientWidth,(r=s?.height)!==null&&r!==void 0?r:n.clientHeight]:[e.left,e.top,n.clientWidth,n.clientHeight],d=a+n.clientLeft,f=l+n.clientTop,p=d+u,h=f+c;return[f,p,h,d]},Hg=(n,e)=>{const t=[];let i=n.ownerDocument,r=i.defaultView;if(!r)return t;const s=window.getComputedStyle(n),a=s.direction!=="rtl",l=Jl(s.writingMode||s.getPropertyValue("-webkit-writing-mode")||s.getPropertyValue("-ms-writing-mode")),[u,c]=Lg(e,l,a);let[d,f,p,h]=Vg(n,n.getBoundingClientRect(),s);for(let S=eu(n);S!==null;S=eu(S)){if(i!==S.ownerDocument){if(i=S.ownerDocument,r=i.defaultView,!r)break;const{left:_,top:D}=S.getBoundingClientRect();d+=D,f+=_,p+=D,h+=_}const m=r.getComputedStyle(S);if(m.position==="fixed")break;if(!Fg(S,m))continue;const E=S.getBoundingClientRect(),[b,g,T,v]=Ng(S,E),R=Ql(u,v,g,S.clientWidth,h,f,f-h),y=Ql(c,b,T,S.clientHeight,d,p,p-d),M=R===null?0:Zn(R,h,f)-Zn(R,v,g),C=y===null?0:Zn(y,d,p)-Zn(y,b,T),x=Og(m)?ta(M,-S.scrollWidth+S.clientWidth-S.scrollLeft,-S.scrollLeft):ta(M,-S.scrollLeft,S.scrollWidth-S.clientWidth-S.scrollLeft),w=ta(C,-S.scrollTop,S.scrollHeight-S.clientHeight-S.scrollTop);t.push([S,{left:S.scrollLeft+x,top:S.scrollTop+w,behavior:e.behavior}]),d=Math.max(d-w,b),f=Math.min(f-x,g),p=Math.min(p-w,T),h=Math.max(h-x,v)}return t},tu=(n,e,t)=>{const i=e||{};if(!Ul(i.behavior))throw new TypeError($l("scrollIntoView","Element",i.behavior));Hg(n,i).forEach(([s,a])=>{Ag(s,a,t)})},iu=(n,e)=>e.some(t=>n.includes(t)),nu=(n,e)=>e.every(t=>n.includes(t));function ru(n){return Array.isArray(n)?n.map(e=>({id:e.id,label:e.name,all:e})):[]}function su(){setTimeout(()=>{const e=document.querySelectorAll(".not-valid")[0];e&&tu(e,{behavior:"smooth",block:"center"})})}function au(n,e){const t=document.querySelector(n);t&&tu(t,{behavior:"smooth",block:"center",...e})}function ou(){return navigator?.language?.split("-")[0]}function ia(){return["ru","en","kz"]}function lu(n){return ia().includes(n)}function na(n,e){let t;return function(...i){t&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function uu(n,e){let t;return function(...i){t||(n(...i),t=!0,setTimeout(()=>t=!1,e))}}function ra(n){const e={};for(const[t,i]of Object.entries(n))i&&(e[t]=i);return e}function cu(n){return n.map(e=>ra(e))}function du(n){return n.reduce((e,t)=>e+t,0)}const hu=()=>({alias:"email"}),fu=(n="ru")=>({ru:{mask:"+7(999)999-99-99"},kz:{mask:"+7(999)999-99-99"},us:{mask:"+1(999)999-9999"}})[n],pu=()=>({regex:"^[0-9]{10,12}$"}),mu=()=>({mask:"999999999"}),gu=()=>({mask:"999-999-999 99"}),bu=()=>({mask:"9999 999999"});function sa(n){return typeof n!="string"?!1:we(n).isValid()}function vu(n,e={}){const{withTime:t=!1,locale:i="ru"}=e;if(!n||n.length===0||!sa(n))return"";const r=new Date(n),s=r.getHours()>=10?r.getHours():`0${r.getHours()}`,a=r.getMinutes()>=10?r.getMinutes():`0${r.getMinutes()}`,l=r.getFullYear(),u=r.getMonth()+1>=10?r.getMonth()+1:`0${r.getMonth()+1}`,c=r.getDate()>=10?r.getDate():`0${r.getDate()}`;return i==="ru"?t?`${c}.${u}.${l} ${s}:${a}`:`${c}.${u}.${l}`:t?`${u}.${c}.${l} ${s}:${a}`:`${u}.${c}.${l}`}function yu(n,e={}){const{locale:t="ru",currency:i="RUB"}=e,r={ru:"ru-RU",en:"en-US",kz:"kk-KZ"},a={style:"currency",maximumSignificantDigits:2,currency:{ru:"RUB",en:"USD",kz:"KZT"}[t]||i};return new Intl.NumberFormat(r[t]||"en-US",a).format(Number(n))}function wu(n){return we(new Date).format(n)}function Cu(n,e){const t=new Date(n);return t.setDate(t.getDate()+e),t}function Eu(n,e){const t=new Date(n);return t.setMonth(t.getMonth()+e),t}function ku(n,e){const t=new Date(n);return t.setFullYear(t.getFullYear()+e),t}function Su(n,e,t,i){let r=Math.abs(n);return r%=100,r>=5&&r<=20?i:(r%=10,r===1?e:r>=2&&r<=4?t:i)}function xu(n){return!n||n.length===0?n:n[0].toUpperCase()+n.slice(1)}function Mu(n){return n.replace(/\b\w/g,e=>e.toUpperCase())}function Ru(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}function Tu(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function Du(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1_$2").toLowerCase()}function _u(n,e,t="..."){return n.length<=e?n:n.substring(0,e)+t}function Au(n){let e=n.replace(/\D/g,"").slice(0,8);return e.length>=5?`${e.slice(0,2)}.${e.slice(2,4)}.${e.slice(4)}`:e.length>=3?`${e.slice(0,2)}.${e.slice(2)}`:e}function Ou({str:n,limit:e=null}){return!e||!n?n:n.substring(0,e)}function Lu(n,e){let t="";for(const[i,r]of n.entries()){const s=n.length>i+1?", ":" ";if(t+=`${r.name}${s}`,t.length>e){let a=n.length-(i+1);const l=a>0?`+${a}`:"";t=`${t.substr(0,e)}...${l}`;break}}return t}function Pu(n){return[...new Set(n)]}function Fu(n,e){return n.reduce((t,i)=>{const r=String(i[e]);return t[r]=t[r]||[],t[r].push(i),t},{})}function Bu(n,e,t="asc"){return[...n].sort((i,r)=>{const s=i[e],a=r[e];return s<a?t==="asc"?-1:1:s>a?t==="asc"?1:-1:0})}function Vu(n,e){const t=[];for(let i=0;i<n.length;i+=e)t.push(n.slice(i,i+e));return t}function Nu(n){return typeof n=="object"&&n!==null}function hi(n){return n===void 0?n:JSON.parse(JSON.stringify(n))}function aa(n,e){return JSON.stringify(n)===JSON.stringify(e)}function Hu(n,e){return n.sort().toString()===e.sort().toString()}function Iu(n,e){let t=n.length,i=e.length;if(t!==i)return!1;n.sort(),e.sort();for(let r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}const zu=n=>{const e=hi(n),t={};for(const[i,r]of Object.entries(e)){const s=i.split(".");let a=t;for(const[u,c]of s.slice(0,-1).entries()){if(!a[c]){const d=Number.isInteger(Number(s[+u+1]));a[c]=d?[]:{}}a=a[c]}const l=s.pop();l&&(a[l]=r)}return t},oa=n=>{let e=hi(n),t={};for(const i in e){if(typeof e[i]!="object"||e[i]===null){t[i]=e[i];continue}const r=oa(e[i]);for(const s in r)t[`${i}.${s}`]=r[s]}return t};function ju(n,e){const t={};return e.forEach(i=>{i in n&&(t[i]=n[i])}),t}function Wu(n,e){const t={...n};return e.forEach(i=>{delete t[i]}),t}function cn(n,e,t,i=!1){if(i)return o.render(null,n),!0;const r=o.h(e,t);return o.render(r,n),!0}function Ei(){const n=Date.now(),e=Math.floor(Math.random()*9999);return n+e}function Yu(n=""){return`${n}${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function Uu(n){throw new Error(`${n} is required.`)}function Gu(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}function $u(n){return/^[\+]?[1-9][\d]{0,15}$/.test(n.replace(/\D/g,""))}function qu(n){try{return new URL(n),!0}catch{return!1}}function Ku(n,e){try{localStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to localStorage:",t)}}function Ju(n,e){try{const t=localStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from localStorage:",t),e||null}}function Xu(n){try{localStorage.removeItem(n)}catch(e){console.error("Error removing from localStorage:",e)}}function Qu(n,e){try{sessionStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to sessionStorage:",t)}}function Zu(n,e){try{const t=sessionStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from sessionStorage:",t),e||null}}function ec(n){try{sessionStorage.removeItem(n)}catch(e){console.error("Error removing from sessionStorage:",e)}}function tc(n){const e=new Map;return((...t)=>{const i=JSON.stringify(t);if(e.has(i))return e.get(i);const r=n(...t);return e.set(i,r),r})}function ic(n){let e=!1,t;return((...i)=>(e||(e=!0,t=n(...i)),t))}function nc(n,e,t){return Math.min(Math.max(n,e),t)}function rc(n,e,t){return n+(e-n)*t}function sc(n,e){return Math.floor(Math.random()*(e-n+1))+n}function ac(n,e){return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}const Ig=Object.freeze(Object.defineProperty({__proto__:null,addDays:Cu,addMonths:Eu,addYears:ku,areArraysEqual:Iu,arrayToCutString:Lu,camelCase:Ru,capitalize:Mu,chunk:Vu,clamp:nc,cutString:Ou,debounce:na,default:{prepareSelectOptions:ru,scrollToError:su,scrollToElement:au,getBrowserLocale:ou,getSupportedLocales:ia,isValidLocale:lu,debounce:na,throttle:uu,getValueFromObjectItem:ra,getValueFromArr:cu,sumOfArrayNumbers:du,initEmailMask:hu,initPhoneMask:fu,initInnMask:pu,initKppMask:mu,initSnilsMask:gu,initPassportMask:bu,isValidDate:sa,formatDate:vu,formatMoney:yu,getNowDate:wu,addDays:Cu,addMonths:Eu,addYears:ku,getDeclinationFromNumber:Su,firstToUppercase:xu,capitalize:Mu,camelCase:Ru,kebabCase:Tu,snakeCase:Du,truncate:_u,maskDate:Au,cutString:Ou,arrayToCutString:Lu,findOne:iu,findAll:nu,unique:Pu,groupBy:Fu,sortBy:Bu,chunk:Vu,isObject:Nu,getDeepCopyObject:hi,isEqual:aa,isArraysEqual:Hu,areArraysEqual:Iu,unflatenObject:zu,flattenObject:oa,pick:ju,omit:Wu,mountSubFilter:cn,getUniqueKey:Ei,generateId:Yu,required:Uu,isValidEmail:Gu,isValidPhone:$u,isValidUrl:qu,setLocalStorage:Ku,getLocalStorage:Ju,removeLocalStorage:Xu,setSessionStorage:Qu,getSessionStorage:Zu,removeSessionStorage:ec,memoize:tc,once:ic,clamp:nc,lerp:rc,random:sc,roundToDecimals:ac},findAll:nu,findOne:iu,firstToUppercase:xu,flattenObject:oa,formatDate:vu,formatMoney:yu,generateId:Yu,getBrowserLocale:ou,getDeclinationFromNumber:Su,getDeepCopyObject:hi,getLocalStorage:Ju,getNowDate:wu,getSessionStorage:Zu,getSupportedLocales:ia,getUniqueKey:Ei,getValueFromArr:cu,getValueFromObjectItem:ra,groupBy:Fu,initEmailMask:hu,initInnMask:pu,initKppMask:mu,initPassportMask:bu,initPhoneMask:fu,initSnilsMask:gu,isArraysEqual:Hu,isEqual:aa,isObject:Nu,isValidDate:sa,isValidEmail:Gu,isValidLocale:lu,isValidPhone:$u,isValidUrl:qu,kebabCase:Tu,lerp:rc,maskDate:Au,memoize:tc,mountSubFilter:cn,omit:Wu,once:ic,pick:ju,prepareSelectOptions:ru,random:sc,removeLocalStorage:Xu,removeSessionStorage:ec,required:Uu,roundToDecimals:ac,scrollToElement:au,scrollToError:su,setLocalStorage:Ku,setSessionStorage:Qu,snakeCase:Du,sortBy:Bu,sumOfArrayNumbers:du,throttle:uu,truncate:_u,unflatenObject:zu,unique:Pu},Symbol.toStringTag,{value:"Module"})),zg={class:"lh-1","data-test":"FormError"},ki={__name:"FormError",props:{errors:{type:Array,default:()=>[]}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",zg,[n.errors?.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(n.errors,(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:"text-danger small",key:r},o.toDisplayString(i),1))),128)):o.createCommentVNode("",!0)]))}},jg={class:"position-relative"},Wg=["type","name","value","placeholder","disabled"],er=Ve({__name:"CustomInput",props:{modelValue:{type:[String,Number],default:""},titleClass:{type:String,default:""},title:{type:String,default:""},name:{type:String,default:""},min:{type:[String,Number],default:""},max:{type:[String,Number],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[String,Object],default:""},type:{type:String,default:"text"},error:{type:[String,Object,Array],default:""},maskOptions:{type:[String,Object],default:()=>({})},maxNumber:{type:[String,Number],default:null}},emits:["change","blur","update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=f=>{let p=f.target.value;t.max&&(p=a(p),f.target.value=p),t.maxNumber&&(Number(p)>=Number(t.maxNumber)&&(p=t.maxNumber.toString()),f.target.value=p),i("update:modelValue",p)},a=f=>f.substring(0,t.max),l=()=>{i("update:modelValue",null),i("change",null),r.value&&(r.value.value=null)},u=()=>{if(t.maskOptions===""||!r.value)return!1;Ch({...t.maskOptions}).mask(r.value)};o.onMounted(()=>{u()}),o.watch(()=>t.maskOptions,(f,p)=>{aa(f,p)||u()},{deep:!0});const c=o.computed(()=>!(!t.modelValue||t.disabled)),d=o.computed(()=>Array.isArray(t.error)?t.error.filter(Boolean):typeof t.error=="string"&&t.error?[t.error]:[]);return(f,p)=>(o.openBlock(),o.createElementBlock("div",null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["mb-1 fw-bold",[n.titleClass]])},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",jg,[o.createElementVNode("input",{ref_key:"inputEl",ref:r,type:n.type,name:n.name,class:o.normalizeClass(["form-control outline-none",{[n.inputClass]:n.inputClass,"not-valid":d.value.length>0,"is-invalid":d.value.length>0}]),value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onBlur:p[0]||(p[0]=h=>i("blur")),onInput:s},null,42,Wg),c.value?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["bi bi-x-lg remove-button position-absolute",[n.modelValue?"":"d-none",n.disabled?"d-none":""]]),onClick:l},null,2)):o.createCommentVNode("",!0)]),o.createVNode(ki,{errors:d.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b055e3b"]]),Yg={class:"position-relative"},Ug=["type","value"],Gg=Ve({__name:"PasswordInput",props:{modelValue:{type:String,default:""},error:{type:[String,Array],default:""},initialVisibility:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n){const e=n,t=o.ref(e.initialVisibility);o.watch(()=>e.initialVisibility,r=>{t.value=r});const i=o.computed(()=>Array.isArray(e.error)?e.error.filter(Boolean):typeof e.error=="string"&&e.error?[e.error]:[]);return(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Yg,[o.createElementVNode("input",{class:o.normalizeClass(["form-control password-input outline-none",{"is-invalid":i.value.length>0}]),type:t.value?"text":"password",value:n.modelValue,autocomplete:"new-password",onInput:s[0]||(s[0]=a=>r.$emit("update:modelValue",a.target.value))},null,42,Ug),o.createElementVNode("div",{class:"toggle-pass",onClick:s[1]||(s[1]=a=>t.value=!t.value)},[o.createElementVNode("i",{class:o.normalizeClass(["bi",[t.value?"bi-eye-slash-fill":"bi-eye-fill"]]),style:{"font-size":"20px"}},null,2)])]),o.createVNode(ki,{errors:i.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b5f1918"]]),$g={class:"form-check d-flex align-items-center"},qg=["id","name","checked"],Kg=["for"],Jg={__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},name:{type:String,required:!0},label:{type:String,default:""},id:{type:String,default:()=>`checkbox-${Math.random().toString(36).slice(2,9)}`},size:{type:String,default:"sm",validator:n=>["sm","md","lg"].includes(n)},clickableLabel:{type:Boolean,default:!0},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=o.computed(()=>t.size==="sm"?"5px":t.size==="md"?"10px":t.size==="lg"?"15px":"5px"),a=l=>{i("update:modelValue",l.target.checked)};return o.watch(()=>t.indeterminate,l=>{r.value&&(r.value.indeterminate=l)}),o.onMounted(()=>{r.value&&(r.value.indeterminate=t.indeterminate)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",$g,[o.createElementVNode("input",{ref_key:"inputRef",ref:r,class:"form-check-input mr-2 mt-0",type:"checkbox",id:n.id,name:n.name,style:o.normalizeStyle({padding:s.value}),checked:n.modelValue,onChange:a},null,44,qg),n.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:o.normalizeClass(["form-check-label lh-n",{"cursor-pointer":n.clickableLabel}]),for:n.clickableLabel?n.id:void 0},o.toDisplayString(n.label),11,Kg)):o.createCommentVNode("",!0)]))}};var Xg=Object.defineProperty,Qg=Object.defineProperties,Zg=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,tb=Object.prototype.propertyIsEnumerable,lc=(n,e,t)=>e in n?Xg(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ii=(n,e)=>{for(var t in e||(e={}))eb.call(e,t)&&lc(n,t,e[t]);if(oc)for(var t of oc(e))tb.call(e,t)&&lc(n,t,e[t]);return n},uc=(n,e)=>Qg(n,Zg(e));const ib={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(n){this.autoscroll&&n&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var n;const e=((n=this.$refs.dropdownMenu)==null?void 0:n.children[this.typeAheadPointer])||!1;if(e){const t=this.getDropdownViewport(),{top:i,bottom:r,height:s}=e.getBoundingClientRect();if(i<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-s)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},nb={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let n=0;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},open(n){n&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let n=this.typeAheadPointer-1;n>=0;n--)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadDown(){for(let n=this.typeAheadPointer+1;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadSelect(){const n=this.filteredOptions[this.typeAheadPointer];n&&this.selectable(n)&&this.select(n)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},rb={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(n){this.mutableLoading=n}},methods:{toggleLoading(n=null){return n==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=n}}},la=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},sb={},ab={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},ob=o.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),lb=[ob];function ub(n,e){return o.openBlock(),o.createElementBlock("svg",ab,lb)}const cb=la(sb,[["render",ub]]),db={},hb={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},fb=o.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),pb=[fb];function mb(n,e){return o.openBlock(),o.createElementBlock("svg",hb,pb)}const gb=la(db,[["render",mb]]),cc={Deselect:cb,OpenIndicator:gb},bb={mounted(n,{instance:e}){if(e.appendToBody){const{height:t,top:i,left:r,width:s}=e.$refs.toggle.getBoundingClientRect();let a=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;n.unbindPosition=e.calculatePosition(n,e,{width:s+"px",left:a+r+"px",top:l+i+t+"px"}),document.body.appendChild(n)}},unmounted(n,{instance:e}){e.appendToBody&&(n.unbindPosition&&typeof n.unbindPosition=="function"&&n.unbindPosition(),n.parentNode&&n.parentNode.removeChild(n))}};function vb(n){const e={};return Object.keys(n).sort().forEach(t=>{e[t]=n[t]}),JSON.stringify(e)}let yb=0;function wb(){return++yb}const Cb={components:Ii({},cc),directives:{appendToBody:bb},mixins:[ib,nb,rb],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:n=>n},selectable:{type:Function,default:n=>!0},getOptionLabel:{type:Function,default(n){return typeof n=="object"?n.hasOwnProperty(this.label)?n[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(n)}.
26
26
  https://vue-select.org/api/props.html#getoptionlabel`):n}},getOptionKey:{type:Function,default(n){if(typeof n!="object")return n;try{return n.hasOwnProperty("id")?n.id:vb(n)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
27
- https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(n,e,t){return(e||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},filter:{type:Function,default(n,e){return n.filter(t=>{let i=this.getOptionLabel(t);return typeof i=="number"&&(i=i.toString()),this.filterBy(t,i,e)})}},createOption:{type:Function,default(n){return typeof this.optionList[0]=="object"?{[this.label]:n}:n}},resetOnOptionsChange:{default:!1,validator:n=>["function","boolean"].includes(typeof n)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:n,multiple:e}){return n&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(n,e)=>n},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(n,e,{width:t,top:i,left:r}){n.style.top=i,n.style.left=r,n.style.width=t}},dropdownShouldOpen:{type:Function,default({noDrop:n,open:e,mutableLoading:t}){return n?!1:e&&!t}},uid:{type:[String,Number],default:()=>wb()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let n=this.modelValue;return this.isTrackingValues&&(n=this.$data._value),n!=null&&n!==""?[].concat(n):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const n={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Ii({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:n,listFooter:n,header:uc(Ii({},n),{deselect:this.deselect}),footer:uc(Ii({},n),{deselect:this.deselect})}},childComponents(){return Ii(Ii({},cc),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const n=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return n;const e=this.search.length?this.filter(n,this.search,this):n;if(this.taggable&&this.search.length){const t=this.createOption(this.search);this.optionExists(t)||e.unshift(t)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(n,e){const t=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(n,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&t()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(n){this.isTrackingValues&&this.setInternalValueFromOptions(n)}},multiple(){this.clearSelection()},open(n){this.$emit(n?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(n){Array.isArray(n)?this.$data._value=n.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(n)},select(n){this.$emit("option:selecting",n),this.isOptionSelected(n)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(n):(this.taggable&&!this.optionExists(n)&&(this.$emit("option:created",n),this.pushTag(n)),this.multiple&&(n=this.selectedValue.concat(n)),this.updateValue(n),this.$emit("option:selected",n)),this.onAfterSelect(n)},deselect(n){this.$emit("option:deselecting",n),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,n))),this.$emit("option:deselected",n)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(n){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(n){typeof this.modelValue>"u"&&(this.$data._value=n),n!==null&&(Array.isArray(n)?n=n.map(e=>this.reduce(e)):n=this.reduce(n)),this.$emit("update:modelValue",n)},toggleDropdown(n){const e=n.target!==this.searchEl;e&&n.preventDefault();const t=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||t.filter(Boolean).some(i=>i.contains(n.target)||i===n.target)){n.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(n){return this.selectedValue.some(e=>this.optionComparator(e,n))},isOptionDeselectable(n){return this.isOptionSelected(n)&&this.deselectFromDropdown},optionComparator(n,e){return this.getOptionKey(n)===this.getOptionKey(e)},findOptionFromReducedValue(n){const e=i=>JSON.stringify(this.reduce(i))===JSON.stringify(n),t=[...this.options,...this.pushedTags].filter(e);return t.length===1?t[0]:t.find(i=>this.optionComparator(i,this.$data._value))||n},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let n=null;this.multiple&&(n=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(n)}},optionExists(n){return this.optionList.some(e=>this.optionComparator(e,n))},normalizeOptionForSlot(n){return typeof n=="object"?n:{[this.label]:n}},pushTag(n){this.pushedTags.push(n)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:n,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:n,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(n){const e=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),t={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>t[r]=e);const i=this.mapKeydown(t,this);if(typeof i[n.keyCode]=="function")return i[n.keyCode](n)}}},Eb=["dir"],kb=["id","aria-expanded","aria-owns"],Sb={ref:"selectedOptions",class:"vs__selected-options"},xb=["disabled","title","aria-label","onClick"],Mb={ref:"actions",class:"vs__actions"},Rb=["disabled"],Tb={class:"vs__spinner"},Db=["id"],_b=["id","aria-selected","onMouseover","onClick"],Ab={key:0,class:"vs__no-options"},Ob=o.createTextVNode(" Sorry, no matching options. "),Lb=["id"];function Pb(n,e,t,i,r,s){const a=o.resolveDirective("append-to-body");return o.openBlock(),o.createElementBlock("div",{dir:t.dir,class:o.normalizeClass(["v-select",s.stateClasses])},[o.renderSlot(n.$slots,"header",o.normalizeProps(o.guardReactiveProps(s.scope.header))),o.createElementVNode("div",{id:`vs${t.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":s.dropdownOpen.toString(),"aria-owns":`vs${t.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=l=>s.toggleDropdown(l))},[o.createElementVNode("div",Sb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.selectedValue,(l,u)=>o.renderSlot(n.$slots,"selected-option-container",{option:s.normalizeOptionForSlot(l),deselect:s.deselect,multiple:t.multiple,disabled:t.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{key:t.getOptionKey(l),class:"vs__selected"},[o.renderSlot(n.$slots,"selected-option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)]),t.multiple?(o.openBlock(),o.createElementBlock("button",{key:0,ref_for:!0,ref:c=>r.deselectButtons[u]=c,disabled:t.disabled,type:"button",class:"vs__deselect",title:`Deselect ${t.getOptionLabel(l)}`,"aria-label":`Deselect ${t.getOptionLabel(l)}`,onClick:c=>s.deselect(l)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,xb)):o.createCommentVNode("",!0)]))])),256)),o.renderSlot(n.$slots,"search",o.normalizeProps(o.guardReactiveProps(s.scope.search)),()=>[o.createElementVNode("input",o.mergeProps({class:"vs__search"},s.scope.search.attributes,o.toHandlers(s.scope.search.events)),null,16)])],512),o.createElementVNode("div",Mb,[o.withDirectives(o.createElementVNode("button",{ref:"clearButton",disabled:t.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...l)=>s.clearSelection&&s.clearSelection(...l))},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,Rb),[[o.vShow,s.showClearButton]]),o.renderSlot(n.$slots,"open-indicator",o.normalizeProps(o.guardReactiveProps(s.scope.openIndicator)),()=>[t.noDrop?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.OpenIndicator),o.normalizeProps(o.mergeProps({key:0},s.scope.openIndicator.attributes)),null,16))]),o.renderSlot(n.$slots,"spinner",o.normalizeProps(o.guardReactiveProps(s.scope.spinner)),()=>[o.withDirectives(o.createElementVNode("div",Tb,"Loading...",512),[[o.vShow,n.mutableLoading]])])],512)],40,kb),o.createVNode(o.Transition,{name:t.transition},{default:o.withCtx(()=>[s.dropdownOpen?o.withDirectives((o.openBlock(),o.createElementBlock("ul",{id:`vs${t.uid}__listbox`,ref:"dropdownMenu",key:`vs${t.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=o.withModifiers((...l)=>s.onMousedown&&s.onMousedown(...l),["prevent"])),onMouseup:e[3]||(e[3]=(...l)=>s.onMouseUp&&s.onMouseUp(...l))},[o.renderSlot(n.$slots,"list-header",o.normalizeProps(o.guardReactiveProps(s.scope.listHeader))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filteredOptions,(l,u)=>(o.openBlock(),o.createElementBlock("li",{id:`vs${t.uid}__option-${u}`,key:t.getOptionKey(l),role:"option",class:o.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":s.isOptionDeselectable(l)&&u===n.typeAheadPointer,"vs__dropdown-option--selected":s.isOptionSelected(l),"vs__dropdown-option--highlight":u===n.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(l)}]),"aria-selected":u===n.typeAheadPointer?!0:null,onMouseover:c=>t.selectable(l)?n.typeAheadPointer=u:null,onClick:o.withModifiers(c=>t.selectable(l)?s.select(l):null,["prevent","stop"])},[o.renderSlot(n.$slots,"option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)])],42,_b))),128)),s.filteredOptions.length===0?(o.openBlock(),o.createElementBlock("li",Ab,[o.renderSlot(n.$slots,"no-options",o.normalizeProps(o.guardReactiveProps(s.scope.noOptions)),()=>[Ob])])):o.createCommentVNode("",!0),o.renderSlot(n.$slots,"list-footer",o.normalizeProps(o.guardReactiveProps(s.scope.listFooter)))],40,Db)),[[a]]):(o.openBlock(),o.createElementBlock("ul",{key:1,id:`vs${t.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Lb))]),_:3},8,["name"]),o.renderSlot(n.$slots,"footer",o.normalizeProps(o.guardReactiveProps(s.scope.footer)))],10,Eb)}const Fb=la(Cb,[["render",Pb]]);var Ct="top",At="bottom",Ot="right",Et="left",ua="auto",dn=[Ct,At,Ot,Et],zi="start",hn="end",Bb="clippingParents",dc="viewport",fn="popper",Vb="reference",hc=dn.reduce(function(n,e){return n.concat([e+"-"+zi,e+"-"+hn])},[]),fc=[].concat(dn,[ua]).reduce(function(n,e){return n.concat([e,e+"-"+zi,e+"-"+hn])},[]),Nb="beforeRead",Hb="read",Ib="afterRead",zb="beforeMain",jb="main",Wb="afterMain",Yb="beforeWrite",Ub="write",Gb="afterWrite",$b=[Nb,Hb,Ib,zb,jb,Wb,Yb,Ub,Gb];function Gt(n){return n?(n.nodeName||"").toLowerCase():null}function xt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Si(n){var e=xt(n).Element;return n instanceof e||n instanceof Element}function Lt(n){var e=xt(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function ca(n){if(typeof ShadowRoot>"u")return!1;var e=xt(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function qb(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Lt(s)||!Gt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Kb(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),l=a.reduce(function(u,c){return u[c]="",u},{});!Lt(r)||!Gt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const Jb={name:"applyStyles",enabled:!0,phase:"write",fn:qb,effect:Kb,requires:["computeStyles"]};function $t(n){return n.split("-")[0]}var xi=Math.max,tr=Math.min,ji=Math.round;function da(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pc(){return!/^((?!chrome|android).)*safari/i.test(da())}function Wi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Lt(n)&&(r=n.offsetWidth>0&&ji(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&ji(i.height)/n.offsetHeight||1);var a=Si(n)?xt(n):window,l=a.visualViewport,u=!pc()&&t,c=(i.left+(u&&l?l.offsetLeft:0))/r,d=(i.top+(u&&l?l.offsetTop:0))/s,f=i.width/r,p=i.height/s;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ha(n){var e=Wi(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function mc(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&ca(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ai(n){return xt(n).getComputedStyle(n)}function Xb(n){return["table","td","th"].indexOf(Gt(n))>=0}function fi(n){return((Si(n)?n.ownerDocument:n.document)||window.document).documentElement}function ir(n){return Gt(n)==="html"?n:n.assignedSlot||n.parentNode||(ca(n)?n.host:null)||fi(n)}function gc(n){return!Lt(n)||ai(n).position==="fixed"?null:n.offsetParent}function Qb(n){var e=/firefox/i.test(da()),t=/Trident/i.test(da());if(t&&Lt(n)){var i=ai(n);if(i.position==="fixed")return null}var r=ir(n);for(ca(r)&&(r=r.host);Lt(r)&&["html","body"].indexOf(Gt(r))<0;){var s=ai(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function pn(n){for(var e=xt(n),t=gc(n);t&&Xb(t)&&ai(t).position==="static";)t=gc(t);return t&&(Gt(t)==="html"||Gt(t)==="body"&&ai(t).position==="static")?e:t||Qb(n)||e}function fa(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function mn(n,e,t){return xi(n,tr(e,t))}function Zb(n,e,t){var i=mn(n,e,t);return i>t?t:i}function bc(){return{top:0,right:0,bottom:0,left:0}}function vc(n){return Object.assign({},bc(),n)}function yc(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var ev=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vc(typeof e!="number"?e:yc(e,dn))};function tv(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,a=t.modifiersData.popperOffsets,l=$t(t.placement),u=fa(l),c=[Et,Ot].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!a)){var f=ev(r.padding,t),p=ha(s),h=u==="y"?Ct:Et,S=u==="y"?At:Ot,m=t.rects.reference[d]+t.rects.reference[u]-a[u]-t.rects.popper[d],E=a[u]-t.rects.reference[u],b=pn(s),g=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,T=m/2-E/2,v=f[h],R=g-p[d]-f[S],y=g/2-p[d]/2+T,M=mn(v,y,R),C=u;t.modifiersData[i]=(e={},e[C]=M,e.centerOffset=M-y,e)}}function iv(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||mc(e.elements.popper,r)&&(e.elements.arrow=r))}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:iv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(n){return n.split("-")[1]}var rv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sv(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:ji(t*r)/r||0,y:ji(i*r)/r||0}}function wc(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,a=n.offsets,l=n.position,u=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,f=n.isFixed,p=a.x,h=p===void 0?0:p,S=a.y,m=S===void 0?0:S,E=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=E.x,m=E.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),T=Et,v=Ct,R=window;if(c){var y=pn(t),M="clientHeight",C="clientWidth";if(y===xt(t)&&(y=fi(t),ai(y).position!=="static"&&l==="absolute"&&(M="scrollHeight",C="scrollWidth")),y=y,r===Ct||(r===Et||r===Ot)&&s===hn){v=At;var x=f&&y===R&&R.visualViewport?R.visualViewport.height:y[M];m-=x-i.height,m*=u?1:-1}if(r===Et||(r===Ct||r===At)&&s===hn){T=Ot;var w=f&&y===R&&R.visualViewport?R.visualViewport.width:y[C];h-=w-i.width,h*=u?1:-1}}var _=Object.assign({position:l},c&&rv),D=d===!0?sv({x:h,y:m},xt(t)):{x:h,y:m};if(h=D.x,m=D.y,u){var O;return Object.assign({},_,(O={},O[v]=g?"0":"",O[T]=b?"0":"",O.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O))}return Object.assign({},_,(e={},e[v]=g?m+"px":"",e[T]=b?h+"px":"",e.transform="",e))}function av(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,a=s===void 0?!0:s,l=t.roundOffsets,u=l===void 0?!0:l,c={placement:$t(e.placement),variation:Yi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,wc(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,wc(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ov={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var nr={passive:!0};function lv(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,a=i.resize,l=a===void 0?!0:a,u=xt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,nr)}),l&&u.addEventListener("resize",t.update,nr),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,nr)}),l&&u.removeEventListener("resize",t.update,nr)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(n){return n.replace(/left|right|bottom|top/g,function(e){return cv[e]})}var dv={start:"end",end:"start"};function Cc(n){return n.replace(/start|end/g,function(e){return dv[e]})}function pa(n){var e=xt(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function ma(n){return Wi(fi(n)).left+pa(n).scrollLeft}function hv(n,e){var t=xt(n),i=fi(n),r=t.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(r){s=r.width,a=r.height;var c=pc();(c||!c&&e==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:a,x:l+ma(n),y:u}}function fv(n){var e,t=fi(n),i=pa(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=xi(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=xi(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+ma(n),u=-i.scrollTop;return ai(r||t).direction==="rtl"&&(l+=xi(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function ga(n){var e=ai(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Ec(n){return["html","body","#document"].indexOf(Gt(n))>=0?n.ownerDocument.body:Lt(n)&&ga(n)?n:Ec(ir(n))}function gn(n,e){var t;e===void 0&&(e=[]);var i=Ec(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=xt(i),a=r?[s].concat(s.visualViewport||[],ga(i)?i:[]):i,l=e.concat(a);return r?l:l.concat(gn(ir(a)))}function ba(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function pv(n,e){var t=Wi(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function kc(n,e,t){return e===dc?ba(hv(n,t)):Si(e)?pv(e,t):ba(fv(fi(n)))}function mv(n){var e=gn(ir(n)),t=["absolute","fixed"].indexOf(ai(n).position)>=0,i=t&&Lt(n)?pn(n):n;return Si(i)?e.filter(function(r){return Si(r)&&mc(r,i)&&Gt(r)!=="body"}):[]}function gv(n,e,t,i){var r=e==="clippingParents"?mv(n):[].concat(e),s=[].concat(r,[t]),a=s[0],l=s.reduce(function(u,c){var d=kc(n,c,i);return u.top=xi(d.top,u.top),u.right=tr(d.right,u.right),u.bottom=tr(d.bottom,u.bottom),u.left=xi(d.left,u.left),u},kc(n,a,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Sc(n){var e=n.reference,t=n.element,i=n.placement,r=i?$t(i):null,s=i?Yi(i):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(r){case Ct:u={x:a,y:e.y-t.height};break;case At:u={x:a,y:e.y+e.height};break;case Ot:u={x:e.x+e.width,y:l};break;case Et:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var c=r?fa(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case zi:u[c]=u[c]-(e[d]/2-t[d]/2);break;case hn:u[c]=u[c]+(e[d]/2-t[d]/2);break}}return u}function bn(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,a=s===void 0?n.strategy:s,l=t.boundary,u=l===void 0?Bb:l,c=t.rootBoundary,d=c===void 0?dc:c,f=t.elementContext,p=f===void 0?fn:f,h=t.altBoundary,S=h===void 0?!1:h,m=t.padding,E=m===void 0?0:m,b=vc(typeof E!="number"?E:yc(E,dn)),g=p===fn?Vb:fn,T=n.rects.popper,v=n.elements[S?g:p],R=gv(Si(v)?v:v.contextElement||fi(n.elements.popper),u,d,a),y=Wi(n.elements.reference),M=Sc({reference:y,element:T,placement:r}),C=ba(Object.assign({},T,M)),x=p===fn?C:y,w={top:R.top-x.top+b.top,bottom:x.bottom-R.bottom+b.bottom,left:R.left-x.left+b.left,right:x.right-R.right+b.right},_=n.modifiersData.offset;if(p===fn&&_){var D=_[r];Object.keys(w).forEach(function(O){var V=[Ot,At].indexOf(O)>=0?1:-1,W=[Ct,At].indexOf(O)>=0?"y":"x";w[O]+=D[W]*V})}return w}function bv(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,a=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,c=u===void 0?fc:u,d=Yi(i),f=d?l?hc:hc.filter(function(S){return Yi(S)===d}):dn,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var h=p.reduce(function(S,m){return S[m]=bn(n,{placement:m,boundary:r,rootBoundary:s,padding:a})[$t(m)],S},{});return Object.keys(h).sort(function(S,m){return h[S]-h[m]})}function vv(n){if($t(n)===ua)return[];var e=rr(n);return[Cc(n),e,Cc(e)]}function yv(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!0:a,u=t.fallbackPlacements,c=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,S=h===void 0?!0:h,m=t.allowedAutoPlacements,E=e.options.placement,b=$t(E),g=b===E,T=u||(g||!S?[rr(E)]:vv(E)),v=[E].concat(T).reduce(function(J,Z){return J.concat($t(Z)===ua?bv(e,{placement:Z,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:m}):Z)},[]),R=e.rects.reference,y=e.rects.popper,M=new Map,C=!0,x=v[0],w=0;w<v.length;w++){var _=v[w],D=$t(_),O=Yi(_)===zi,V=[Ct,At].indexOf(D)>=0,W=V?"width":"height",Y=bn(e,{placement:_,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),N=V?O?Ot:Et:O?At:Ct;R[W]>y[W]&&(N=rr(N));var I=rr(N),q=[];if(s&&q.push(Y[D]<=0),l&&q.push(Y[N]<=0,Y[I]<=0),q.every(function(J){return J})){x=_,C=!1;break}M.set(_,q)}if(C)for(var L=S?3:1,B=function(Z){var U=v.find(function(ie){var j=M.get(ie);if(j)return j.slice(0,Z).every(function(H){return H})});if(U)return x=U,"break"},$=L;$>0;$--){var z=B($);if(z==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const wv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function xc(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Mc(n){return[Ct,Ot,At,Et].some(function(e){return n[e]>=0})}function Cv(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=bn(e,{elementContext:"reference"}),l=bn(e,{altBoundary:!0}),u=xc(a,i),c=xc(l,r,s),d=Mc(u),f=Mc(c);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Ev={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cv};function kv(n,e,t){var i=$t(n),r=[Et,Ct].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,a=s[0],l=s[1];return a=a||0,l=(l||0)*r,[Et,Ot].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}function Sv(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,a=fc.reduce(function(d,f){return d[f]=kv(f,e.rects,s),d},{}),l=a[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}const xv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Sv};function Mv(n){var e=n.state,t=n.name;e.modifiersData[t]=Sc({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Rv={name:"popperOffsets",enabled:!0,phase:"read",fn:Mv,data:{}};function Tv(n){return n==="x"?"y":"x"}function Dv(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!1:a,u=t.boundary,c=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,S=t.tetherOffset,m=S===void 0?0:S,E=bn(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=$t(e.placement),g=Yi(e.placement),T=!g,v=fa(b),R=Tv(v),y=e.modifiersData.popperOffsets,M=e.rects.reference,C=e.rects.popper,x=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,w=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),_=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(y){if(s){var O,V=v==="y"?Ct:Et,W=v==="y"?At:Ot,Y=v==="y"?"height":"width",N=y[v],I=N+E[V],q=N-E[W],L=h?-C[Y]/2:0,B=g===zi?M[Y]:C[Y],$=g===zi?-C[Y]:-M[Y],z=e.elements.arrow,J=h&&z?ha(z):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:bc(),U=Z[V],ie=Z[W],j=mn(0,M[Y],J[Y]),H=T?M[Y]/2-L-j-U-w.mainAxis:B-j-U-w.mainAxis,re=T?-M[Y]/2+L+j+ie+w.mainAxis:$+j+ie+w.mainAxis,ee=e.elements.arrow&&pn(e.elements.arrow),Q=ee?v==="y"?ee.clientTop||0:ee.clientLeft||0:0,pe=(O=_?.[v])!=null?O:0,ue=N+H-pe-Q,ye=N+re-pe,we=mn(h?tr(I,ue):I,N,h?xi(q,ye):q);y[v]=we,D[v]=we-N}if(l){var Re,Pe=v==="x"?Ct:Et,le=v==="x"?At:Ot,Ve=y[R],ae=R==="y"?"height":"width",X=Ve+E[Pe],te=Ve-E[le],me=[Ct,Et].indexOf(b)!==-1,de=(Re=_?.[R])!=null?Re:0,Me=me?X:Ve-M[ae]-C[ae]-de+w.altAxis,Fe=me?Ve+M[ae]+C[ae]-de-w.altAxis:te,De=h&&me?Zb(Me,Ve,Fe):mn(h?Me:X,Ve,h?Fe:te);y[R]=De,D[R]=De-Ve}e.modifiersData[i]=D}}const _v={name:"preventOverflow",enabled:!0,phase:"main",fn:Dv,requiresIfExists:["offset"]};function Av(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Ov(n){return n===xt(n)||!Lt(n)?pa(n):Av(n)}function Lv(n){var e=n.getBoundingClientRect(),t=ji(e.width)/n.offsetWidth||1,i=ji(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Pv(n,e,t){t===void 0&&(t=!1);var i=Lt(e),r=Lt(e)&&Lv(e),s=fi(e),a=Wi(n,r,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!t)&&((Gt(e)!=="body"||ga(s))&&(l=Ov(e)),Lt(e)?(u=Wi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ma(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function Fv(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&r(u)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function Bv(n){var e=Fv(n);return $b.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Vv(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Nv(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Tc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Hv(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?Rc:r;return function(l,u,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;m(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:Si(l)?gn(l):l.contextElement?gn(l.contextElement):[],popper:gn(u)};var T=Bv(Nv([].concat(i,d.options.modifiers)));return d.orderedModifiers=T.filter(function(v){return v.enabled}),S(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,g=b.reference,T=b.popper;if(Tc(g,T)){d.rects={reference:Pv(g,pn(T),d.options.strategy==="fixed"),popper:ha(T)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var R=d.orderedModifiers[v],y=R.fn,M=R.options,C=M===void 0?{}:M,x=R.name;typeof y=="function"&&(d=y({state:d,options:C,name:x,instance:h})||d)}}}},update:Vv(function(){return new Promise(function(E){h.forceUpdate(),E(d)})}),destroy:function(){m(),p=!0}};if(!Tc(l,u))return h;h.setOptions(c).then(function(E){!p&&c.onFirstUpdate&&c.onFirstUpdate(E)});function S(){d.orderedModifiers.forEach(function(E){var b=E.name,g=E.options,T=g===void 0?{}:g,v=E.effect;if(typeof v=="function"){var R=v({state:d,name:b,instance:h,options:T}),y=function(){};f.push(R||y)}})}function m(){f.forEach(function(E){return E()}),f=[]}return h}}var Iv=[uv,Rv,ov,Jb,xv,wv,_v,nv,Ev],zv=Hv({defaultModifiers:Iv});function jv(n,e,{width:t}){n.style.width=t;const i=zv(e.$refs.toggle,n,{placement:e.$attrs.placement,modifiers:[{name:"offset",options:{offset:[0,-1]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:r}){e.$el.classList.toggle("drop-up",r.placement==="top")}}]});return()=>i.destroy()}const Wv={class:"text-muted"},Yv={key:0,class:"py-1"},Uv={class:"text-wrap"},Gv=["innerHTML"],$v={key:1,class:"text-muted p-0"},qv={class:"text-wrap"},Kv={key:2,class:"text-muted p-0 small d-flex justify-content-center"},Jv={class:"text-wrap px-2"},Xv={class:"selected"},Qv=["innerHTML"],Zv={key:0,style:{"border-left-color":"rgba(88, 151, 251, 0.71)"},class:"vs__spinner"},oi={__name:"VSelect",props:{modelValue:[String,Object,Number],reduce:{type:Function,default:n=>n.id},hint:{type:String,default:""},classes:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},title:{type:String},disabled:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},searchTimout:{type:Number,default:1e3},dropDownPlacement:{type:String,default:"bottom",validator(n,e){return["bottom","top"].includes(n)}},error:{type:[Array,String],default:null}},emits:["update:modelValue","search","blur","focus"],setup(n,{emit:e}){const t=e,i=n,r=i.multiple?[]:null;o.getCurrentInstance();const s=o.ref(r),a=na(u,i.searchTimout),l=o.computed(()=>{const f=hi(i.options);return f?f.map(p=>{const h=i.modelValue;return h?{...p,disabled:p.id===h}:p}):[]});function u(f){t("search",f)}const c=f=>!(!f.id||f.disabled),d=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean):typeof i.error=="string"&&i.error?[i.error]:[]);return o.watch(()=>i.modelValue,f=>{s.value=i.modelValue},{deep:!0}),o.watch(()=>s.value,f=>{t("update:modelValue",f)},{deep:!0}),o.onMounted(()=>{s.value=i.modelValue}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(f.titleClass)},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createVNode(o.unref(Fb),o.mergeProps({class:"style-chooser"},f.$attrs,{modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=h=>s.value=h),reduce:n.reduce,options:l.value,multiple:n.multiple,placeholder:n.placeholder,disabled:n.disabled,loading:n.isLoading,clearable:n.allowClear,placement:n.dropDownPlacement,appendToBody:n.dropDownPlacement==="top","calculate-position":o.unref(jv),selectable:h=>c(h),"onSearch:blur":p[1]||(p[1]=h=>t("blur")),"onSearch:focus":p[2]||(p[2]=h=>t("focus")),onSearch:o.unref(a),class:[...n.classes,n.error?"not-valid":""]}),{"no-options":o.withCtx(({search:h,searching:S,loading:m})=>[o.createElementVNode("span",Wv,o.toDisplayString(n.hint),1)]),option:o.withCtx(({label:h,html:S,id:m,disabled:E})=>[m?(o.openBlock(),o.createElementBlock("div",Yv,[o.createElementVNode("div",Uv,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Gv)):o.createCommentVNode("",!0)])):E?(o.openBlock(),o.createElementBlock("div",$v,[o.createElementVNode("div",qv,o.toDisplayString(h)+"disabled",1)])):(o.openBlock(),o.createElementBlock("div",Kv,[p[3]||(p[3]=o.createElementVNode("span",null,"-",-1)),o.createElementVNode("span",Jv,o.toDisplayString(h),1),p[4]||(p[4]=o.createElementVNode("span",null,"-",-1))]))]),"selected-option":o.withCtx(({label:h,html:S})=>[o.createElementVNode("div",Xv,[o.createElementVNode("div",null,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Qv)):o.createCommentVNode("",!0)])]),spinner:o.withCtx(({loading:h})=>[h?(o.openBlock(),o.createElementBlock("div",Zv)):o.createCommentVNode("",!0)]),_:1},16,["modelValue","reduce","options","multiple","placeholder","disabled","loading","clearable","placement","appendToBody","calculate-position","selectable","onSearch","class"]),o.createVNode(ki,{errors:d.value},null,8,["errors"])],64))}},ey={class:"form-check"},ty=["type","id","name"],iy=["for"],Dc=He(o.defineComponent({__name:"BooleanCheckbox",props:{defaultValue:{default:null},trueValue:{default:"1"},modelValue:{default:void 0},name:{default:""},group:{default:""},type:{default:"checkbox"},label:{default:""},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(),s=Ei(),a=o.computed(()=>t.group.length?t.group:t.name),l=()=>{i("update:modelValue",r.value?.checked?t.trueValue:t.defaultValue)},u=o.computed(()=>!t.modelValue||t.modelValue!==t.trueValue?(r.value&&(r.value.checked=!1),c(),null):(r.value&&(r.value.checked=!0),c(),!0)),c=()=>{if(!t.setFilterParamsStringsHandler)return!1;const f=r.value?.checked?"Да":null;t.setFilterParamsStringsHandler(t.name,f)},d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>t.modelValue,f=>{r.value&&(r.value.checked=!!f)}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",ey,[(o.openBlock(),o.createElementBlock("input",{class:o.normalizeClass(["form-check-input",[f.error?"not-valid":""]]),ref_key:"input",ref:r,type:f.type,id:String(o.unref(s)),name:a.value,key:String(u.value),onClick:l},null,10,ty)),o.createElementVNode("label",{class:o.normalizeClass(["form-check-label",[f.error?"text-danger":""]]),for:String(o.unref(s))},o.toDisplayString(f.label),11,iy)]),o.createVNode(ki,{errors:d.value},null,8,["errors"])],64))}}),[["__scopeId","data-v-b2a37180"]]),ny={class:"multi-checkbox"},ry=["checked","onClick","id","value","name"],sy=["for"],ay=He(o.defineComponent({__name:"MultiCheckbox",props:{modelValue:{default:()=>[]},inputClass:{default:""},options:{default:()=>[]},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue"),s=o.toRef(t,"options"),a=o.toRef(t,"name");function l(f,p){const h=String(p);let S=[...r.value];r.value.includes(h)?S=r.value.filter(m=>String(m)!==h):S.push(h),i("update:modelValue",S)}const u=o.computed(()=>f=>r.value.includes(String(f)));function c(f){if(!t.setFilterParamsStringsHandler)return;let p=f.map(S=>String(S));const h=s.value.filter(S=>p.includes(String(S.id))).map(S=>S.text);if(p.length===0){t.setFilterParamsStringsHandler(a.value,null);return}t.setFilterParamsStringsHandler(a.value,h.join(", "))}const d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>r.value,f=>{c(f)},{deep:!0}),(f,p)=>(o.openBlock(),o.createElementBlock("div",ny,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,h=>(o.openBlock(),o.createElementBlock("div",{class:"form-check",key:h.id},[o.createElementVNode("input",{class:o.normalizeClass(["form-check-input",[f.inputClass,{"not-valid":f.error}]]),type:"checkbox",checked:u.value(h.id),onClick:S=>l(S,h.id),id:`${a.value}-${h.id}`,value:h.id,name:`${a.value}-${h.id}`},null,10,ry),o.createElementVNode("label",{class:"form-check-label d-block",for:`${a.value}-${h.id}`},o.toDisplayString(h.text),9,sy)]))),128)),o.createVNode(ki,{errors:d.value},null,8,["errors"])]))}}),[["__scopeId","data-v-e23ac74b"]]),oy={class:"multi-input"},ly={class:"col"},uy={class:"col-auto"},cy=["onClick"],dy=He(o.defineComponent({__name:"MultiInput",props:{modelValue:{default:()=>[]},title:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},inputClass:{default:""},error:{default:""},maskOptions:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue");o.toRef(t,"title");const s=o.toRef(t,"placeholder");o.toRef(t,"disabled");const a=o.toRef(t,"error"),l=o.toRef(t,"maskOptions"),u=o.ref([]),c=o.ref(!1),d={value:"",disabled:!1,uniqueKey:1};function f(){const b=hi(d);b.uniqueKey=Ei(),u.value.push(b)}function p(b,g){b.value=g}const h=o.computed(()=>u.value.length>1);function S(b){u.value=u.value.filter(g=>g.uniqueKey!==b.uniqueKey)}function m(){u.value=[],f()}function E(b){const g=b.map(v=>v.value);if(i("update:modelValue",g),!t.setFilterParamsStringsHandler)return;const T=g.filter(v=>v&&v.length>0);if(T.length===0){t.setFilterParamsStringsHandler(t.name,null);return}t.setFilterParamsStringsHandler(t.name,T.join(", "))}return o.watch(()=>u.value,b=>{c.value||E(b)},{deep:!0}),o.watch(()=>r.value,b=>{c.value=!0,!b||b.length===0?m():u.value.length!==b.length?u.value=b.map((g,T)=>({value:g,disabled:!1,uniqueKey:Ei()+T})):b.forEach((g,T)=>{u.value[T]&&(u.value[T].value=g)}),o.nextTick(()=>{c.value=!1})},{deep:!0}),o.onMounted(()=>{r.value&&r.value.length>0?u.value=r.value.map((b,g)=>({value:b,disabled:!1,uniqueKey:Ei()+g})):f()}),(b,g)=>(o.openBlock(),o.createElementBlock("div",oy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(T,v)=>(o.openBlock(),o.createElementBlock("div",{class:"row mb-2",key:T.uniqueKey},[o.createElementVNode("div",ly,[o.createVNode(er,{"model-value":T.value,"onUpdate:modelValue":R=>p(T,R),name:b.name,placeholder:s.value,class:o.normalizeClass(b.inputClass),disabled:T.disabled,"mask-options":l.value,error:a.value},null,8,["model-value","onUpdate:modelValue","name","placeholder","class","disabled","mask-options","error"])]),o.createElementVNode("div",uy,[h.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"d-flex remove-button p-2",style:{cursor:"pointer"},onClick:R=>S(T)},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-trash-fill"},null,-1)])],8,cy)):o.createCommentVNode("",!0)])]))),128)),o.createVNode(ja,{onClick:f})]))}}),[["__scopeId","data-v-9337052b"]]);var va=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ui={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},vn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},kt=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Pt=function(n){return n===!0?1:0};function _c(n,e){var t;return function(){var i=this,r=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,r)},e)}}var ya=function(n){return n instanceof Array?n:[n]};function vt(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function Je(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function sr(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ac(n,e){if(e(n))return n;if(n.parentNode)return Ac(n.parentNode,e)}function ar(n,e){var t=Je("div","numInputWrapper"),i=Je("input","numInput "+n),r=Je("span","arrowUp"),s=Je("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var a in e)i.setAttribute(a,e[a]);return t.appendChild(i),t.appendChild(r),t.appendChild(s),t}function Mt(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var wa=function(){},or=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},hy={D:wa,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Pt(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),r=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return r.setDate(r.getDate()-r.getDay()+t.firstDayOfWeek),r},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:wa,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:wa,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},Mi={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},yn={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[yn.w(n,e,t)]},F:function(n,e,t){return or(yn.n(n,e,t)-1,!1,e)},G:function(n,e,t){return kt(yn.h(n,e,t))},H:function(n){return kt(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Pt(n.getHours()>11)]},M:function(n,e){return or(n.getMonth(),!0,e)},S:function(n){return kt(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return kt(n.getFullYear(),4)},d:function(n){return kt(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return kt(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return kt(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},Oc=function(n){var e=n.config,t=e===void 0?Ui:e,i=n.l10n,r=i===void 0?vn:i,s=n.isMobile,a=s===void 0?!1:s;return function(l,u,c){var d=c||r;return t.formatDate!==void 0&&!a?t.formatDate(l,u,d):u.split("").map(function(f,p,h){return yn[f]&&h[p-1]!=="\\"?yn[f](l,d,t):f!=="\\"?f:""}).join("")}},Ca=function(n){var e=n.config,t=e===void 0?Ui:e,i=n.l10n,r=i===void 0?vn:i;return function(s,a,l,u){if(!(s!==0&&!s)){var c=u||r,d,f=s;if(s instanceof Date)d=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)d=new Date(s);else if(typeof s=="string"){var p=a||(t||Ui).dateFormat,h=String(s).trim();if(h==="today")d=new Date,l=!0;else if(t&&t.parseDate)d=t.parseDate(s,p);else if(/Z$/.test(h)||/GMT$/.test(h))d=new Date(s);else{for(var S=void 0,m=[],E=0,b=0,g="";E<p.length;E++){var T=p[E],v=T==="\\",R=p[E-1]==="\\"||v;if(Mi[T]&&!R){g+=Mi[T];var y=new RegExp(g).exec(s);y&&(S=!0)&&m[T!=="Y"?"push":"unshift"]({fn:hy[T],val:y[++b]})}else v||(g+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(M){var C=M.fn,x=M.val;return d=C(d,x,c)||d}),d=S?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&d.setHours(0,0,0,0),d}}};function Rt(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var fy=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Ea=function(n,e,t){return n*3600+e*60+t},py=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},my={DAY:864e5};function ka(n){var e=n.defaultHour,t=n.defaultMinute,i=n.defaultSeconds;if(n.minDate!==void 0){var r=n.minDate.getHours(),s=n.minDate.getMinutes(),a=n.minDate.getSeconds();e<r&&(e=r),e===r&&t<s&&(t=s),e===r&&t===s&&i<a&&(i=n.minDate.getSeconds())}if(n.maxDate!==void 0){var l=n.maxDate.getHours(),u=n.maxDate.getMinutes();e=Math.min(e,l),e===l&&(t=Math.min(u,t)),e===l&&t===u&&(i=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:i}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(l){l&&Object.keys(l).forEach(function(u){return n[u]=l[u]})},r=0,s=e;r<s.length;r++){var a=s[r];i(a)}return n});var pt=function(){return pt=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},pt.apply(this,arguments)},Lc=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var i=Array(n),r=0,e=0;e<t;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,r++)i[r]=s[a];return i},gy=300;function by(n,e){var t={config:pt(pt({},Ui),ct.defaultConfig),l10n:vn};t.parseDate=Ca({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=m,t._setHoursFromDate=p,t._positionCalendar=le,t.changeMonth=B,t.changeYear=ie,t.clear=$,t.close=z,t.onMouseOver=Q,t._createElement=Je,t.createDay=y,t.destroy=J,t.isEnabled=j,t.jumpToDate=g,t.updateValue=Te,t.open=ue,t.redraw=X,t.set=Me,t.setDate=De,t.toggle=Be;function i(){t.utils={getDaysInMonth:function(P,k){return P===void 0&&(P=t.currentMonth),k===void 0&&(k=t.currentYear),P===1&&(k%4===0&&k%100!==0||k%400===0)?29:t.l10n.daysInMonth[P]}}}function r(){t.element=t.input=n,t.isOpen=!1,we(),Pe(),ot(),Ie(),i(),t.isMobile||R(),b(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&p(t.config.noCalendar?t.latestSelectedDateObj:void 0),Te(!1)),l();var P=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&P&&le(),Se("onReady")}function s(){var P;return((P=t.calendarContainer)===null||P===void 0?void 0:P.getRootNode()).activeElement||document.activeElement}function a(P){return P.bind(t)}function l(){var P=t.config;P.weekNumbers===!1&&P.showMonths===1||P.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var k=(t.days.offsetWidth+1)*P.showMonths;t.daysContainer.style.width=k+"px",t.calendarContainer.style.width=k+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(P){if(t.selectedDates.length===0){var k=t.config.minDate===void 0||Rt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),A=ka(t.config);k.setHours(A.hours,A.minutes,A.seconds,k.getMilliseconds()),t.selectedDates=[k],t.latestSelectedDateObj=k}P!==void 0&&P.type!=="blur"&&nt(P);var F=t._input.value;f(),Te(),t._input.value!==F&&t._debouncedChange()}function c(P,k){return P%12+12*Pt(k===t.l10n.amPM[1])}function d(P){switch(P%24){case 0:case 12:return 12;default:return P%12}}function f(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var P=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,k=(parseInt(t.minuteElement.value,10)||0)%60,A=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(P=c(P,t.amPM.textContent));var F=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.minDate,!0)===0,G=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var se=Ea(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),oe=Ea(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),ce=Ea(P,k,A);if(ce>oe&&ce<se){var fe=py(se);P=fe[0],k=fe[1],A=fe[2]}}else{if(G){var ge=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;P=Math.min(P,ge.getHours()),P===ge.getHours()&&(k=Math.min(k,ge.getMinutes())),k===ge.getMinutes()&&(A=Math.min(A,ge.getSeconds()))}if(F){var ve=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;P=Math.max(P,ve.getHours()),P===ve.getHours()&&k<ve.getMinutes()&&(k=ve.getMinutes()),k===ve.getMinutes()&&(A=Math.max(A,ve.getSeconds()))}}h(P,k,A)}}function p(P){var k=P||t.latestSelectedDateObj;k&&k instanceof Date&&h(k.getHours(),k.getMinutes(),k.getSeconds())}function h(P,k,A){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(P%24,k,A||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=kt(t.config.time_24hr?P:(12+P)%12+12*Pt(P%12===0)),t.minuteElement.value=kt(k),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[Pt(P>=12)]),t.secondElement!==void 0&&(t.secondElement.value=kt(A)))}function S(P){var k=Mt(P),A=parseInt(k.value)+(P.delta||0);(A/1e3>1||P.key==="Enter"&&!/[^\d]/.test(A.toString()))&&ie(A)}function m(P,k,A,F){if(k instanceof Array)return k.forEach(function(G){return m(P,G,A,F)});if(P instanceof Array)return P.forEach(function(G){return m(G,k,A,F)});P.addEventListener(k,A,F),t._handlers.push({remove:function(){return P.removeEventListener(k,A,F)}})}function E(){Se("onChange")}function b(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(A){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+A+"]"),function(F){return m(F,"click",t[A])})}),t.isMobile){ke();return}var P=_c(pe,50);if(t._debouncedChange=_c(E,gy),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(t.daysContainer,"mouseover",function(A){t.config.mode==="range"&&Q(Mt(A))}),m(t._input,"keydown",ee),t.calendarContainer!==void 0&&m(t.calendarContainer,"keydown",ee),!t.config.inline&&!t.config.static&&m(window,"resize",P),window.ontouchstart!==void 0?m(window.document,"touchstart",U):m(window.document,"mousedown",U),m(window.document,"focus",U,{capture:!0}),t.config.clickOpens===!0&&(m(t._input,"focus",t.open),m(t._input,"click",t.open)),t.daysContainer!==void 0&&(m(t.monthNav,"click",bt),m(t.monthNav,["keyup","increment"],S),m(t.daysContainer,"click",me)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var k=function(A){return Mt(A).select()};m(t.timeContainer,["increment"],u),m(t.timeContainer,"blur",u,{capture:!0}),m(t.timeContainer,"click",T),m([t.hourElement,t.minuteElement],["focus","click"],k),t.secondElement!==void 0&&m(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&m(t.amPM,"click",function(A){u(A)})}t.config.allowInput&&m(t._input,"blur",re)}function g(P,k){var A=P!==void 0?t.parseDate(P):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),F=t.currentYear,G=t.currentMonth;try{A!==void 0&&(t.currentYear=A.getFullYear(),t.currentMonth=A.getMonth())}catch(se){se.message="Invalid date supplied: "+A,t.config.errorHandler(se)}k&&t.currentYear!==F&&(Se("onYearChange"),O()),k&&(t.currentYear!==F||t.currentMonth!==G)&&Se("onMonthChange"),t.redraw()}function T(P){var k=Mt(P);~k.className.indexOf("arrow")&&v(P,k.classList.contains("arrowUp")?1:-1)}function v(P,k,A){var F=P&&Mt(P),G=A||F&&F.parentNode&&F.parentNode.firstChild,se=K("increment");se.delta=k,G&&G.dispatchEvent(se)}function R(){var P=window.document.createDocumentFragment();if(t.calendarContainer=Je("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(P.appendChild(Y()),t.innerContainer=Je("div","flatpickr-innerContainer"),t.config.weekNumbers){var k=L(),A=k.weekWrapper,F=k.weekNumbers;t.innerContainer.appendChild(A),t.weekNumbers=F,t.weekWrapper=A}t.rContainer=Je("div","flatpickr-rContainer"),t.rContainer.appendChild(I()),t.daysContainer||(t.daysContainer=Je("div","flatpickr-days"),t.daysContainer.tabIndex=-1),D(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),P.appendChild(t.innerContainer)}t.config.enableTime&&P.appendChild(N()),vt(t.calendarContainer,"rangeMode",t.config.mode==="range"),vt(t.calendarContainer,"animate",t.config.animate===!0),vt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(P);var G=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!G&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var se=Je("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(se,t.element),se.appendChild(t.element),t.altInput&&se.appendChild(t.altInput),se.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function y(P,k,A,F){var G=j(k,!0),se=Je("span",P,k.getDate().toString());return se.dateObj=k,se.$i=F,se.setAttribute("aria-label",t.formatDate(k,t.config.ariaDateFormat)),P.indexOf("hidden")===-1&&Rt(k,t.now)===0&&(t.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),G?(se.tabIndex=-1,ne(k)&&(se.classList.add("selected"),t.selectedDateElem=se,t.config.mode==="range"&&(vt(se,"startRange",t.selectedDates[0]&&Rt(k,t.selectedDates[0],!0)===0),vt(se,"endRange",t.selectedDates[1]&&Rt(k,t.selectedDates[1],!0)===0),P==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),t.config.mode==="range"&&ze(k)&&!ne(k)&&se.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&P!=="prevMonthDay"&&F%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(k)+"</span>"),Se("onDayCreate",se),se}function M(P){P.focus(),t.config.mode==="range"&&Q(P)}function C(P){for(var k=P>0?0:t.config.showMonths-1,A=P>0?t.config.showMonths:-1,F=k;F!=A;F+=P)for(var G=t.daysContainer.children[F],se=P>0?0:G.children.length-1,oe=P>0?G.children.length:-1,ce=se;ce!=oe;ce+=P){var fe=G.children[ce];if(fe.className.indexOf("hidden")===-1&&j(fe.dateObj))return fe}}function x(P,k){for(var A=P.className.indexOf("Month")===-1?P.dateObj.getMonth():t.currentMonth,F=k>0?t.config.showMonths:-1,G=k>0?1:-1,se=A-t.currentMonth;se!=F;se+=G)for(var oe=t.daysContainer.children[se],ce=A-t.currentMonth===se?P.$i+k:k<0?oe.children.length-1:0,fe=oe.children.length,ge=ce;ge>=0&&ge<fe&&ge!=(k>0?fe:-1);ge+=G){var ve=oe.children[ge];if(ve.className.indexOf("hidden")===-1&&j(ve.dateObj)&&Math.abs(P.$i-ge)>=Math.abs(k))return M(ve)}t.changeMonth(G),w(C(G),0)}function w(P,k){var A=s(),F=H(A||document.body),G=P!==void 0?P:F?A:t.selectedDateElem!==void 0&&H(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&H(t.todayDateElem)?t.todayDateElem:C(k>0?1:-1);G===void 0?t._input.focus():F?x(G,k):M(G)}function _(P,k){for(var A=(new Date(P,k,1).getDay()-t.l10n.firstDayOfWeek+7)%7,F=t.utils.getDaysInMonth((k-1+12)%12,P),G=t.utils.getDaysInMonth(k,P),se=window.document.createDocumentFragment(),oe=t.config.showMonths>1,ce=oe?"prevMonthDay hidden":"prevMonthDay",fe=oe?"nextMonthDay hidden":"nextMonthDay",ge=F+1-A,ve=0;ge<=F;ge++,ve++)se.appendChild(y("flatpickr-day "+ce,new Date(P,k-1,ge),ge,ve));for(ge=1;ge<=G;ge++,ve++)se.appendChild(y("flatpickr-day",new Date(P,k,ge),ge,ve));for(var Oe=G+1;Oe<=42-A&&(t.config.showMonths===1||ve%7!==0);Oe++,ve++)se.appendChild(y("flatpickr-day "+fe,new Date(P,k+1,Oe%G),Oe,ve));var Ye=Je("div","dayContainer");return Ye.appendChild(se),Ye}function D(){if(t.daysContainer!==void 0){sr(t.daysContainer),t.weekNumbers&&sr(t.weekNumbers);for(var P=document.createDocumentFragment(),k=0;k<t.config.showMonths;k++){var A=new Date(t.currentYear,t.currentMonth,1);A.setMonth(t.currentMonth+k),P.appendChild(_(A.getFullYear(),A.getMonth()))}t.daysContainer.appendChild(P),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&Q()}}function O(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var P=function(F){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&F<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&F>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var k=0;k<12;k++)if(P(k)){var A=Je("option","flatpickr-monthDropdown-month");A.value=new Date(t.currentYear,k).getMonth().toString(),A.textContent=or(k,t.config.shorthandCurrentMonth,t.l10n),A.tabIndex=-1,t.currentMonth===k&&(A.selected=!0),t.monthsDropdownContainer.appendChild(A)}}}function V(){var P=Je("div","flatpickr-month"),k=window.document.createDocumentFragment(),A;t.config.showMonths>1||t.config.monthSelectorType==="static"?A=Je("span","cur-month"):(t.monthsDropdownContainer=Je("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),m(t.monthsDropdownContainer,"change",function(oe){var ce=Mt(oe),fe=parseInt(ce.value,10);t.changeMonth(fe-t.currentMonth),Se("onMonthChange")}),O(),A=t.monthsDropdownContainer);var F=ar("cur-year",{tabindex:"-1"}),G=F.getElementsByTagName("input")[0];G.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&G.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(G.setAttribute("max",t.config.maxDate.getFullYear().toString()),G.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var se=Je("div","flatpickr-current-month");return se.appendChild(A),se.appendChild(F),k.appendChild(se),P.appendChild(k),{container:P,yearElement:G,monthElement:A}}function W(){sr(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var P=t.config.showMonths;P--;){var k=V();t.yearElements.push(k.yearElement),t.monthElements.push(k.monthElement),t.monthNav.appendChild(k.container)}t.monthNav.appendChild(t.nextMonthNav)}function Y(){return t.monthNav=Je("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Je("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Je("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,W(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(P){t.__hidePrevMonthArrow!==P&&(vt(t.prevMonthNav,"flatpickr-disabled",P),t.__hidePrevMonthArrow=P)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(P){t.__hideNextMonthArrow!==P&&(vt(t.nextMonthNav,"flatpickr-disabled",P),t.__hideNextMonthArrow=P)}}),t.currentYearElement=t.yearElements[0],Ue(),t.monthNav}function N(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var P=ka(t.config);t.timeContainer=Je("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var k=Je("span","flatpickr-time-separator",":"),A=ar("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=A.getElementsByTagName("input")[0];var F=ar("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=F.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=kt(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?P.hours:d(P.hours)),t.minuteElement.value=kt(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():P.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(A),t.timeContainer.appendChild(k),t.timeContainer.appendChild(F),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var G=ar("flatpickr-second");t.secondElement=G.getElementsByTagName("input")[0],t.secondElement.value=kt(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():P.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Je("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(G)}return t.config.time_24hr||(t.amPM=Je("span","flatpickr-am-pm",t.l10n.amPM[Pt((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function I(){t.weekdayContainer?sr(t.weekdayContainer):t.weekdayContainer=Je("div","flatpickr-weekdays");for(var P=t.config.showMonths;P--;){var k=Je("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(k)}return q(),t.weekdayContainer}function q(){if(t.weekdayContainer){var P=t.l10n.firstDayOfWeek,k=Lc(t.l10n.weekdays.shorthand);P>0&&P<k.length&&(k=Lc(k.splice(P,k.length),k.splice(0,P)));for(var A=t.config.showMonths;A--;)t.weekdayContainer.children[A].innerHTML=`
27
+ https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(n,e,t){return(e||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},filter:{type:Function,default(n,e){return n.filter(t=>{let i=this.getOptionLabel(t);return typeof i=="number"&&(i=i.toString()),this.filterBy(t,i,e)})}},createOption:{type:Function,default(n){return typeof this.optionList[0]=="object"?{[this.label]:n}:n}},resetOnOptionsChange:{default:!1,validator:n=>["function","boolean"].includes(typeof n)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:n,multiple:e}){return n&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(n,e)=>n},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(n,e,{width:t,top:i,left:r}){n.style.top=i,n.style.left=r,n.style.width=t}},dropdownShouldOpen:{type:Function,default({noDrop:n,open:e,mutableLoading:t}){return n?!1:e&&!t}},uid:{type:[String,Number],default:()=>wb()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let n=this.modelValue;return this.isTrackingValues&&(n=this.$data._value),n!=null&&n!==""?[].concat(n):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const n={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Ii({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:n,listFooter:n,header:uc(Ii({},n),{deselect:this.deselect}),footer:uc(Ii({},n),{deselect:this.deselect})}},childComponents(){return Ii(Ii({},cc),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const n=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return n;const e=this.search.length?this.filter(n,this.search,this):n;if(this.taggable&&this.search.length){const t=this.createOption(this.search);this.optionExists(t)||e.unshift(t)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(n,e){const t=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(n,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&t()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(n){this.isTrackingValues&&this.setInternalValueFromOptions(n)}},multiple(){this.clearSelection()},open(n){this.$emit(n?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(n){Array.isArray(n)?this.$data._value=n.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(n)},select(n){this.$emit("option:selecting",n),this.isOptionSelected(n)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(n):(this.taggable&&!this.optionExists(n)&&(this.$emit("option:created",n),this.pushTag(n)),this.multiple&&(n=this.selectedValue.concat(n)),this.updateValue(n),this.$emit("option:selected",n)),this.onAfterSelect(n)},deselect(n){this.$emit("option:deselecting",n),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,n))),this.$emit("option:deselected",n)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(n){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(n){typeof this.modelValue>"u"&&(this.$data._value=n),n!==null&&(Array.isArray(n)?n=n.map(e=>this.reduce(e)):n=this.reduce(n)),this.$emit("update:modelValue",n)},toggleDropdown(n){const e=n.target!==this.searchEl;e&&n.preventDefault();const t=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||t.filter(Boolean).some(i=>i.contains(n.target)||i===n.target)){n.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(n){return this.selectedValue.some(e=>this.optionComparator(e,n))},isOptionDeselectable(n){return this.isOptionSelected(n)&&this.deselectFromDropdown},optionComparator(n,e){return this.getOptionKey(n)===this.getOptionKey(e)},findOptionFromReducedValue(n){const e=i=>JSON.stringify(this.reduce(i))===JSON.stringify(n),t=[...this.options,...this.pushedTags].filter(e);return t.length===1?t[0]:t.find(i=>this.optionComparator(i,this.$data._value))||n},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let n=null;this.multiple&&(n=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(n)}},optionExists(n){return this.optionList.some(e=>this.optionComparator(e,n))},normalizeOptionForSlot(n){return typeof n=="object"?n:{[this.label]:n}},pushTag(n){this.pushedTags.push(n)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:n,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:n,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(n){const e=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),t={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>t[r]=e);const i=this.mapKeydown(t,this);if(typeof i[n.keyCode]=="function")return i[n.keyCode](n)}}},Eb=["dir"],kb=["id","aria-expanded","aria-owns"],Sb={ref:"selectedOptions",class:"vs__selected-options"},xb=["disabled","title","aria-label","onClick"],Mb={ref:"actions",class:"vs__actions"},Rb=["disabled"],Tb={class:"vs__spinner"},Db=["id"],_b=["id","aria-selected","onMouseover","onClick"],Ab={key:0,class:"vs__no-options"},Ob=o.createTextVNode(" Sorry, no matching options. "),Lb=["id"];function Pb(n,e,t,i,r,s){const a=o.resolveDirective("append-to-body");return o.openBlock(),o.createElementBlock("div",{dir:t.dir,class:o.normalizeClass(["v-select",s.stateClasses])},[o.renderSlot(n.$slots,"header",o.normalizeProps(o.guardReactiveProps(s.scope.header))),o.createElementVNode("div",{id:`vs${t.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":s.dropdownOpen.toString(),"aria-owns":`vs${t.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=l=>s.toggleDropdown(l))},[o.createElementVNode("div",Sb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.selectedValue,(l,u)=>o.renderSlot(n.$slots,"selected-option-container",{option:s.normalizeOptionForSlot(l),deselect:s.deselect,multiple:t.multiple,disabled:t.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{key:t.getOptionKey(l),class:"vs__selected"},[o.renderSlot(n.$slots,"selected-option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)]),t.multiple?(o.openBlock(),o.createElementBlock("button",{key:0,ref_for:!0,ref:c=>r.deselectButtons[u]=c,disabled:t.disabled,type:"button",class:"vs__deselect",title:`Deselect ${t.getOptionLabel(l)}`,"aria-label":`Deselect ${t.getOptionLabel(l)}`,onClick:c=>s.deselect(l)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,xb)):o.createCommentVNode("",!0)]))])),256)),o.renderSlot(n.$slots,"search",o.normalizeProps(o.guardReactiveProps(s.scope.search)),()=>[o.createElementVNode("input",o.mergeProps({class:"vs__search"},s.scope.search.attributes,o.toHandlers(s.scope.search.events)),null,16)])],512),o.createElementVNode("div",Mb,[o.withDirectives(o.createElementVNode("button",{ref:"clearButton",disabled:t.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...l)=>s.clearSelection&&s.clearSelection(...l))},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,Rb),[[o.vShow,s.showClearButton]]),o.renderSlot(n.$slots,"open-indicator",o.normalizeProps(o.guardReactiveProps(s.scope.openIndicator)),()=>[t.noDrop?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.OpenIndicator),o.normalizeProps(o.mergeProps({key:0},s.scope.openIndicator.attributes)),null,16))]),o.renderSlot(n.$slots,"spinner",o.normalizeProps(o.guardReactiveProps(s.scope.spinner)),()=>[o.withDirectives(o.createElementVNode("div",Tb,"Loading...",512),[[o.vShow,n.mutableLoading]])])],512)],40,kb),o.createVNode(o.Transition,{name:t.transition},{default:o.withCtx(()=>[s.dropdownOpen?o.withDirectives((o.openBlock(),o.createElementBlock("ul",{id:`vs${t.uid}__listbox`,ref:"dropdownMenu",key:`vs${t.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=o.withModifiers((...l)=>s.onMousedown&&s.onMousedown(...l),["prevent"])),onMouseup:e[3]||(e[3]=(...l)=>s.onMouseUp&&s.onMouseUp(...l))},[o.renderSlot(n.$slots,"list-header",o.normalizeProps(o.guardReactiveProps(s.scope.listHeader))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filteredOptions,(l,u)=>(o.openBlock(),o.createElementBlock("li",{id:`vs${t.uid}__option-${u}`,key:t.getOptionKey(l),role:"option",class:o.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":s.isOptionDeselectable(l)&&u===n.typeAheadPointer,"vs__dropdown-option--selected":s.isOptionSelected(l),"vs__dropdown-option--highlight":u===n.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(l)}]),"aria-selected":u===n.typeAheadPointer?!0:null,onMouseover:c=>t.selectable(l)?n.typeAheadPointer=u:null,onClick:o.withModifiers(c=>t.selectable(l)?s.select(l):null,["prevent","stop"])},[o.renderSlot(n.$slots,"option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)])],42,_b))),128)),s.filteredOptions.length===0?(o.openBlock(),o.createElementBlock("li",Ab,[o.renderSlot(n.$slots,"no-options",o.normalizeProps(o.guardReactiveProps(s.scope.noOptions)),()=>[Ob])])):o.createCommentVNode("",!0),o.renderSlot(n.$slots,"list-footer",o.normalizeProps(o.guardReactiveProps(s.scope.listFooter)))],40,Db)),[[a]]):(o.openBlock(),o.createElementBlock("ul",{key:1,id:`vs${t.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Lb))]),_:3},8,["name"]),o.renderSlot(n.$slots,"footer",o.normalizeProps(o.guardReactiveProps(s.scope.footer)))],10,Eb)}const Fb=la(Cb,[["render",Pb]]);var Ct="top",At="bottom",Ot="right",Et="left",ua="auto",dn=[Ct,At,Ot,Et],zi="start",hn="end",Bb="clippingParents",dc="viewport",fn="popper",Vb="reference",hc=dn.reduce(function(n,e){return n.concat([e+"-"+zi,e+"-"+hn])},[]),fc=[].concat(dn,[ua]).reduce(function(n,e){return n.concat([e,e+"-"+zi,e+"-"+hn])},[]),Nb="beforeRead",Hb="read",Ib="afterRead",zb="beforeMain",jb="main",Wb="afterMain",Yb="beforeWrite",Ub="write",Gb="afterWrite",$b=[Nb,Hb,Ib,zb,jb,Wb,Yb,Ub,Gb];function Gt(n){return n?(n.nodeName||"").toLowerCase():null}function xt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Si(n){var e=xt(n).Element;return n instanceof e||n instanceof Element}function Lt(n){var e=xt(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function ca(n){if(typeof ShadowRoot>"u")return!1;var e=xt(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function qb(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Lt(s)||!Gt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Kb(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),l=a.reduce(function(u,c){return u[c]="",u},{});!Lt(r)||!Gt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const Jb={name:"applyStyles",enabled:!0,phase:"write",fn:qb,effect:Kb,requires:["computeStyles"]};function $t(n){return n.split("-")[0]}var xi=Math.max,tr=Math.min,ji=Math.round;function da(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pc(){return!/^((?!chrome|android).)*safari/i.test(da())}function Wi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Lt(n)&&(r=n.offsetWidth>0&&ji(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&ji(i.height)/n.offsetHeight||1);var a=Si(n)?xt(n):window,l=a.visualViewport,u=!pc()&&t,c=(i.left+(u&&l?l.offsetLeft:0))/r,d=(i.top+(u&&l?l.offsetTop:0))/s,f=i.width/r,p=i.height/s;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ha(n){var e=Wi(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function mc(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&ca(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ai(n){return xt(n).getComputedStyle(n)}function Xb(n){return["table","td","th"].indexOf(Gt(n))>=0}function fi(n){return((Si(n)?n.ownerDocument:n.document)||window.document).documentElement}function ir(n){return Gt(n)==="html"?n:n.assignedSlot||n.parentNode||(ca(n)?n.host:null)||fi(n)}function gc(n){return!Lt(n)||ai(n).position==="fixed"?null:n.offsetParent}function Qb(n){var e=/firefox/i.test(da()),t=/Trident/i.test(da());if(t&&Lt(n)){var i=ai(n);if(i.position==="fixed")return null}var r=ir(n);for(ca(r)&&(r=r.host);Lt(r)&&["html","body"].indexOf(Gt(r))<0;){var s=ai(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function pn(n){for(var e=xt(n),t=gc(n);t&&Xb(t)&&ai(t).position==="static";)t=gc(t);return t&&(Gt(t)==="html"||Gt(t)==="body"&&ai(t).position==="static")?e:t||Qb(n)||e}function fa(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function mn(n,e,t){return xi(n,tr(e,t))}function Zb(n,e,t){var i=mn(n,e,t);return i>t?t:i}function bc(){return{top:0,right:0,bottom:0,left:0}}function vc(n){return Object.assign({},bc(),n)}function yc(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var ev=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vc(typeof e!="number"?e:yc(e,dn))};function tv(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,a=t.modifiersData.popperOffsets,l=$t(t.placement),u=fa(l),c=[Et,Ot].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!a)){var f=ev(r.padding,t),p=ha(s),h=u==="y"?Ct:Et,S=u==="y"?At:Ot,m=t.rects.reference[d]+t.rects.reference[u]-a[u]-t.rects.popper[d],E=a[u]-t.rects.reference[u],b=pn(s),g=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,T=m/2-E/2,v=f[h],R=g-p[d]-f[S],y=g/2-p[d]/2+T,M=mn(v,y,R),C=u;t.modifiersData[i]=(e={},e[C]=M,e.centerOffset=M-y,e)}}function iv(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||mc(e.elements.popper,r)&&(e.elements.arrow=r))}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:iv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(n){return n.split("-")[1]}var rv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sv(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:ji(t*r)/r||0,y:ji(i*r)/r||0}}function wc(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,a=n.offsets,l=n.position,u=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,f=n.isFixed,p=a.x,h=p===void 0?0:p,S=a.y,m=S===void 0?0:S,E=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=E.x,m=E.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),T=Et,v=Ct,R=window;if(c){var y=pn(t),M="clientHeight",C="clientWidth";if(y===xt(t)&&(y=fi(t),ai(y).position!=="static"&&l==="absolute"&&(M="scrollHeight",C="scrollWidth")),y=y,r===Ct||(r===Et||r===Ot)&&s===hn){v=At;var x=f&&y===R&&R.visualViewport?R.visualViewport.height:y[M];m-=x-i.height,m*=u?1:-1}if(r===Et||(r===Ct||r===At)&&s===hn){T=Ot;var w=f&&y===R&&R.visualViewport?R.visualViewport.width:y[C];h-=w-i.width,h*=u?1:-1}}var _=Object.assign({position:l},c&&rv),D=d===!0?sv({x:h,y:m},xt(t)):{x:h,y:m};if(h=D.x,m=D.y,u){var O;return Object.assign({},_,(O={},O[v]=g?"0":"",O[T]=b?"0":"",O.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O))}return Object.assign({},_,(e={},e[v]=g?m+"px":"",e[T]=b?h+"px":"",e.transform="",e))}function av(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,a=s===void 0?!0:s,l=t.roundOffsets,u=l===void 0?!0:l,c={placement:$t(e.placement),variation:Yi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,wc(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,wc(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ov={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var nr={passive:!0};function lv(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,a=i.resize,l=a===void 0?!0:a,u=xt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,nr)}),l&&u.addEventListener("resize",t.update,nr),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,nr)}),l&&u.removeEventListener("resize",t.update,nr)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(n){return n.replace(/left|right|bottom|top/g,function(e){return cv[e]})}var dv={start:"end",end:"start"};function Cc(n){return n.replace(/start|end/g,function(e){return dv[e]})}function pa(n){var e=xt(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function ma(n){return Wi(fi(n)).left+pa(n).scrollLeft}function hv(n,e){var t=xt(n),i=fi(n),r=t.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(r){s=r.width,a=r.height;var c=pc();(c||!c&&e==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:a,x:l+ma(n),y:u}}function fv(n){var e,t=fi(n),i=pa(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=xi(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=xi(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+ma(n),u=-i.scrollTop;return ai(r||t).direction==="rtl"&&(l+=xi(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function ga(n){var e=ai(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Ec(n){return["html","body","#document"].indexOf(Gt(n))>=0?n.ownerDocument.body:Lt(n)&&ga(n)?n:Ec(ir(n))}function gn(n,e){var t;e===void 0&&(e=[]);var i=Ec(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=xt(i),a=r?[s].concat(s.visualViewport||[],ga(i)?i:[]):i,l=e.concat(a);return r?l:l.concat(gn(ir(a)))}function ba(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function pv(n,e){var t=Wi(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function kc(n,e,t){return e===dc?ba(hv(n,t)):Si(e)?pv(e,t):ba(fv(fi(n)))}function mv(n){var e=gn(ir(n)),t=["absolute","fixed"].indexOf(ai(n).position)>=0,i=t&&Lt(n)?pn(n):n;return Si(i)?e.filter(function(r){return Si(r)&&mc(r,i)&&Gt(r)!=="body"}):[]}function gv(n,e,t,i){var r=e==="clippingParents"?mv(n):[].concat(e),s=[].concat(r,[t]),a=s[0],l=s.reduce(function(u,c){var d=kc(n,c,i);return u.top=xi(d.top,u.top),u.right=tr(d.right,u.right),u.bottom=tr(d.bottom,u.bottom),u.left=xi(d.left,u.left),u},kc(n,a,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Sc(n){var e=n.reference,t=n.element,i=n.placement,r=i?$t(i):null,s=i?Yi(i):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(r){case Ct:u={x:a,y:e.y-t.height};break;case At:u={x:a,y:e.y+e.height};break;case Ot:u={x:e.x+e.width,y:l};break;case Et:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var c=r?fa(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case zi:u[c]=u[c]-(e[d]/2-t[d]/2);break;case hn:u[c]=u[c]+(e[d]/2-t[d]/2);break}}return u}function bn(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,a=s===void 0?n.strategy:s,l=t.boundary,u=l===void 0?Bb:l,c=t.rootBoundary,d=c===void 0?dc:c,f=t.elementContext,p=f===void 0?fn:f,h=t.altBoundary,S=h===void 0?!1:h,m=t.padding,E=m===void 0?0:m,b=vc(typeof E!="number"?E:yc(E,dn)),g=p===fn?Vb:fn,T=n.rects.popper,v=n.elements[S?g:p],R=gv(Si(v)?v:v.contextElement||fi(n.elements.popper),u,d,a),y=Wi(n.elements.reference),M=Sc({reference:y,element:T,placement:r}),C=ba(Object.assign({},T,M)),x=p===fn?C:y,w={top:R.top-x.top+b.top,bottom:x.bottom-R.bottom+b.bottom,left:R.left-x.left+b.left,right:x.right-R.right+b.right},_=n.modifiersData.offset;if(p===fn&&_){var D=_[r];Object.keys(w).forEach(function(O){var V=[Ot,At].indexOf(O)>=0?1:-1,W=[Ct,At].indexOf(O)>=0?"y":"x";w[O]+=D[W]*V})}return w}function bv(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,a=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,c=u===void 0?fc:u,d=Yi(i),f=d?l?hc:hc.filter(function(S){return Yi(S)===d}):dn,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var h=p.reduce(function(S,m){return S[m]=bn(n,{placement:m,boundary:r,rootBoundary:s,padding:a})[$t(m)],S},{});return Object.keys(h).sort(function(S,m){return h[S]-h[m]})}function vv(n){if($t(n)===ua)return[];var e=rr(n);return[Cc(n),e,Cc(e)]}function yv(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!0:a,u=t.fallbackPlacements,c=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,S=h===void 0?!0:h,m=t.allowedAutoPlacements,E=e.options.placement,b=$t(E),g=b===E,T=u||(g||!S?[rr(E)]:vv(E)),v=[E].concat(T).reduce(function(Q,ie){return Q.concat($t(ie)===ua?bv(e,{placement:ie,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:m}):ie)},[]),R=e.rects.reference,y=e.rects.popper,M=new Map,C=!0,x=v[0],w=0;w<v.length;w++){var _=v[w],D=$t(_),O=Yi(_)===zi,V=[Ct,At].indexOf(D)>=0,W=V?"width":"height",U=bn(e,{placement:_,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),N=V?O?Ot:Et:O?At:Ct;R[W]>y[W]&&(N=rr(N));var I=rr(N),K=[];if(s&&K.push(U[D]<=0),l&&K.push(U[N]<=0,U[I]<=0),K.every(function(Q){return Q})){x=_,C=!1;break}M.set(_,K)}if(C)for(var L=S?3:1,B=function(ie){var G=v.find(function(ne){var j=M.get(ne);if(j)return j.slice(0,ie).every(function(H){return H})});if(G)return x=G,"break"},q=L;q>0;q--){var z=B(q);if(z==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const wv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function xc(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Mc(n){return[Ct,Ot,At,Et].some(function(e){return n[e]>=0})}function Cv(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=bn(e,{elementContext:"reference"}),l=bn(e,{altBoundary:!0}),u=xc(a,i),c=xc(l,r,s),d=Mc(u),f=Mc(c);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Ev={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cv};function kv(n,e,t){var i=$t(n),r=[Et,Ct].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,a=s[0],l=s[1];return a=a||0,l=(l||0)*r,[Et,Ot].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}function Sv(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,a=fc.reduce(function(d,f){return d[f]=kv(f,e.rects,s),d},{}),l=a[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}const xv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Sv};function Mv(n){var e=n.state,t=n.name;e.modifiersData[t]=Sc({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Rv={name:"popperOffsets",enabled:!0,phase:"read",fn:Mv,data:{}};function Tv(n){return n==="x"?"y":"x"}function Dv(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!1:a,u=t.boundary,c=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,S=t.tetherOffset,m=S===void 0?0:S,E=bn(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=$t(e.placement),g=Yi(e.placement),T=!g,v=fa(b),R=Tv(v),y=e.modifiersData.popperOffsets,M=e.rects.reference,C=e.rects.popper,x=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,w=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),_=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(y){if(s){var O,V=v==="y"?Ct:Et,W=v==="y"?At:Ot,U=v==="y"?"height":"width",N=y[v],I=N+E[V],K=N-E[W],L=h?-C[U]/2:0,B=g===zi?M[U]:C[U],q=g===zi?-C[U]:-M[U],z=e.elements.arrow,Q=h&&z?ha(z):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:bc(),G=ie[V],ne=ie[W],j=mn(0,M[U],Q[U]),H=T?M[U]/2-L-j-G-w.mainAxis:B-j-G-w.mainAxis,se=T?-M[U]/2+L+j+ne+w.mainAxis:q+j+ne+w.mainAxis,te=e.elements.arrow&&pn(e.elements.arrow),ee=te?v==="y"?te.clientTop||0:te.clientLeft||0:0,pe=(O=_?.[v])!=null?O:0,le=N+H-pe-ee,ve=N+se-pe,ye=mn(h?tr(I,le):I,N,h?xi(K,ve):K);y[v]=ye,D[v]=ye-N}if(l){var Me,Ne=v==="x"?Ct:Et,He=v==="x"?At:Ot,Le=y[R],Y=R==="y"?"height":"width",J=Le+E[Ne],Z=Le-E[He],de=[Ct,Et].indexOf(b)!==-1,ue=(Me=_?.[R])!=null?Me:0,xe=de?J:Le-M[Y]-C[Y]-ue+w.altAxis,Pe=de?Le+M[Y]+C[Y]-ue-w.altAxis:Z,Te=h&&de?Zb(xe,Le,Pe):mn(h?xe:J,Le,h?Pe:Z);y[R]=Te,D[R]=Te-Le}e.modifiersData[i]=D}}const _v={name:"preventOverflow",enabled:!0,phase:"main",fn:Dv,requiresIfExists:["offset"]};function Av(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Ov(n){return n===xt(n)||!Lt(n)?pa(n):Av(n)}function Lv(n){var e=n.getBoundingClientRect(),t=ji(e.width)/n.offsetWidth||1,i=ji(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Pv(n,e,t){t===void 0&&(t=!1);var i=Lt(e),r=Lt(e)&&Lv(e),s=fi(e),a=Wi(n,r,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!t)&&((Gt(e)!=="body"||ga(s))&&(l=Ov(e)),Lt(e)?(u=Wi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ma(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function Fv(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&r(u)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function Bv(n){var e=Fv(n);return $b.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Vv(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Nv(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Tc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Hv(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?Rc:r;return function(l,u,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;m(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:Si(l)?gn(l):l.contextElement?gn(l.contextElement):[],popper:gn(u)};var T=Bv(Nv([].concat(i,d.options.modifiers)));return d.orderedModifiers=T.filter(function(v){return v.enabled}),S(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,g=b.reference,T=b.popper;if(Tc(g,T)){d.rects={reference:Pv(g,pn(T),d.options.strategy==="fixed"),popper:ha(T)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var R=d.orderedModifiers[v],y=R.fn,M=R.options,C=M===void 0?{}:M,x=R.name;typeof y=="function"&&(d=y({state:d,options:C,name:x,instance:h})||d)}}}},update:Vv(function(){return new Promise(function(E){h.forceUpdate(),E(d)})}),destroy:function(){m(),p=!0}};if(!Tc(l,u))return h;h.setOptions(c).then(function(E){!p&&c.onFirstUpdate&&c.onFirstUpdate(E)});function S(){d.orderedModifiers.forEach(function(E){var b=E.name,g=E.options,T=g===void 0?{}:g,v=E.effect;if(typeof v=="function"){var R=v({state:d,name:b,instance:h,options:T}),y=function(){};f.push(R||y)}})}function m(){f.forEach(function(E){return E()}),f=[]}return h}}var Iv=[uv,Rv,ov,Jb,xv,wv,_v,nv,Ev],zv=Hv({defaultModifiers:Iv});function jv(n,e,{width:t}){n.style.width=t;const i=zv(e.$refs.toggle,n,{placement:e.$attrs.placement,modifiers:[{name:"offset",options:{offset:[0,-1]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:r}){e.$el.classList.toggle("drop-up",r.placement==="top")}}]});return()=>i.destroy()}const Wv={class:"text-muted"},Yv={key:0,class:"py-1"},Uv={class:"text-wrap"},Gv=["innerHTML"],$v={key:1,class:"text-muted p-0"},qv={class:"text-wrap"},Kv={key:2,class:"text-muted p-0 small d-flex justify-content-center"},Jv={class:"text-wrap px-2"},Xv={class:"selected"},Qv=["innerHTML"],Zv={key:0,style:{"border-left-color":"rgba(88, 151, 251, 0.71)"},class:"vs__spinner"},oi={__name:"VSelect",props:{modelValue:[String,Object,Number],reduce:{type:Function,default:n=>n.id},hint:{type:String,default:""},classes:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},title:{type:String},disabled:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},searchTimout:{type:Number,default:1e3},dropDownPlacement:{type:String,default:"bottom",validator(n,e){return["bottom","top"].includes(n)}},error:{type:[Array,String],default:null}},emits:["update:modelValue","search","blur","focus"],setup(n,{emit:e}){const t=e,i=n,r=i.multiple?[]:null;o.getCurrentInstance();const s=o.ref(r),a=na(u,i.searchTimout),l=o.computed(()=>{const f=hi(i.options);return f?f.map(p=>{const h=i.modelValue;return h?{...p,disabled:p.id===h}:p}):[]});function u(f){t("search",f)}const c=f=>!(!f.id||f.disabled),d=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean):typeof i.error=="string"&&i.error?[i.error]:[]);return o.watch(()=>i.modelValue,f=>{s.value=i.modelValue},{deep:!0}),o.watch(()=>s.value,f=>{t("update:modelValue",f)},{deep:!0}),o.onMounted(()=>{s.value=i.modelValue}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(f.titleClass)},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createVNode(o.unref(Fb),o.mergeProps({class:"style-chooser"},f.$attrs,{modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=h=>s.value=h),reduce:n.reduce,options:l.value,multiple:n.multiple,placeholder:n.placeholder,disabled:n.disabled,loading:n.isLoading,clearable:n.allowClear,placement:n.dropDownPlacement,appendToBody:n.dropDownPlacement==="top","calculate-position":o.unref(jv),selectable:h=>c(h),"onSearch:blur":p[1]||(p[1]=h=>t("blur")),"onSearch:focus":p[2]||(p[2]=h=>t("focus")),onSearch:o.unref(a),class:[...n.classes,n.error?"not-valid":""]}),{"no-options":o.withCtx(({search:h,searching:S,loading:m})=>[o.createElementVNode("span",Wv,o.toDisplayString(n.hint),1)]),option:o.withCtx(({label:h,html:S,id:m,disabled:E})=>[m?(o.openBlock(),o.createElementBlock("div",Yv,[o.createElementVNode("div",Uv,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Gv)):o.createCommentVNode("",!0)])):E?(o.openBlock(),o.createElementBlock("div",$v,[o.createElementVNode("div",qv,o.toDisplayString(h)+"disabled",1)])):(o.openBlock(),o.createElementBlock("div",Kv,[p[3]||(p[3]=o.createElementVNode("span",null,"-",-1)),o.createElementVNode("span",Jv,o.toDisplayString(h),1),p[4]||(p[4]=o.createElementVNode("span",null,"-",-1))]))]),"selected-option":o.withCtx(({label:h,html:S})=>[o.createElementVNode("div",Xv,[o.createElementVNode("div",null,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Qv)):o.createCommentVNode("",!0)])]),spinner:o.withCtx(({loading:h})=>[h?(o.openBlock(),o.createElementBlock("div",Zv)):o.createCommentVNode("",!0)]),_:1},16,["modelValue","reduce","options","multiple","placeholder","disabled","loading","clearable","placement","appendToBody","calculate-position","selectable","onSearch","class"]),o.createVNode(ki,{errors:d.value},null,8,["errors"])],64))}},ey={class:"form-check"},ty=["type","id","name"],iy=["for"],Dc=Ve(o.defineComponent({__name:"BooleanCheckbox",props:{defaultValue:{default:null},trueValue:{default:"1"},modelValue:{default:void 0},name:{default:""},group:{default:""},type:{default:"checkbox"},label:{default:""},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(),s=Ei(),a=o.computed(()=>t.group.length?t.group:t.name),l=()=>{i("update:modelValue",r.value?.checked?t.trueValue:t.defaultValue)},u=o.computed(()=>!t.modelValue||t.modelValue!==t.trueValue?(r.value&&(r.value.checked=!1),c(),null):(r.value&&(r.value.checked=!0),c(),!0)),c=()=>{if(!t.setFilterParamsStringsHandler)return!1;const f=r.value?.checked?"Да":null;t.setFilterParamsStringsHandler(t.name,f)},d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>t.modelValue,f=>{r.value&&(r.value.checked=!!f)}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",ey,[(o.openBlock(),o.createElementBlock("input",{class:o.normalizeClass(["form-check-input",[f.error?"not-valid":""]]),ref_key:"input",ref:r,type:f.type,id:String(o.unref(s)),name:a.value,key:String(u.value),onClick:l},null,10,ty)),o.createElementVNode("label",{class:o.normalizeClass(["form-check-label",[f.error?"text-danger":""]]),for:String(o.unref(s))},o.toDisplayString(f.label),11,iy)]),o.createVNode(ki,{errors:d.value},null,8,["errors"])],64))}}),[["__scopeId","data-v-b2a37180"]]),ny={class:"multi-checkbox"},ry=["checked","onClick","id","value","name"],sy=["for"],ay=Ve(o.defineComponent({__name:"MultiCheckbox",props:{modelValue:{default:()=>[]},inputClass:{default:""},options:{default:()=>[]},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue"),s=o.toRef(t,"options"),a=o.toRef(t,"name");function l(f,p){const h=String(p);let S=[...r.value];r.value.includes(h)?S=r.value.filter(m=>String(m)!==h):S.push(h),i("update:modelValue",S)}const u=o.computed(()=>f=>r.value.includes(String(f)));function c(f){if(!t.setFilterParamsStringsHandler)return;let p=f.map(S=>String(S));const h=s.value.filter(S=>p.includes(String(S.id))).map(S=>S.text);if(p.length===0){t.setFilterParamsStringsHandler(a.value,null);return}t.setFilterParamsStringsHandler(a.value,h.join(", "))}const d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>r.value,f=>{c(f)},{deep:!0}),(f,p)=>(o.openBlock(),o.createElementBlock("div",ny,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,h=>(o.openBlock(),o.createElementBlock("div",{class:"form-check",key:h.id},[o.createElementVNode("input",{class:o.normalizeClass(["form-check-input",[f.inputClass,{"not-valid":f.error}]]),type:"checkbox",checked:u.value(h.id),onClick:S=>l(S,h.id),id:`${a.value}-${h.id}`,value:h.id,name:`${a.value}-${h.id}`},null,10,ry),o.createElementVNode("label",{class:"form-check-label d-block",for:`${a.value}-${h.id}`},o.toDisplayString(h.text),9,sy)]))),128)),o.createVNode(ki,{errors:d.value},null,8,["errors"])]))}}),[["__scopeId","data-v-e23ac74b"]]),oy={class:"multi-input"},ly={class:"col"},uy={class:"col-auto"},cy=["onClick"],dy=Ve(o.defineComponent({__name:"MultiInput",props:{modelValue:{default:()=>[]},title:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},inputClass:{default:""},error:{default:""},maskOptions:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue");o.toRef(t,"title");const s=o.toRef(t,"placeholder");o.toRef(t,"disabled");const a=o.toRef(t,"error"),l=o.toRef(t,"maskOptions"),u=o.ref([]),c=o.ref(!1),d={value:"",disabled:!1,uniqueKey:1};function f(){const b=hi(d);b.uniqueKey=Ei(),u.value.push(b)}function p(b,g){b.value=g}const h=o.computed(()=>u.value.length>1);function S(b){u.value=u.value.filter(g=>g.uniqueKey!==b.uniqueKey)}function m(){u.value=[],f()}function E(b){const g=b.map(v=>v.value);if(i("update:modelValue",g),!t.setFilterParamsStringsHandler)return;const T=g.filter(v=>v&&v.length>0);if(T.length===0){t.setFilterParamsStringsHandler(t.name,null);return}t.setFilterParamsStringsHandler(t.name,T.join(", "))}return o.watch(()=>u.value,b=>{c.value||E(b)},{deep:!0}),o.watch(()=>r.value,b=>{c.value=!0,!b||b.length===0?m():u.value.length!==b.length?u.value=b.map((g,T)=>({value:g,disabled:!1,uniqueKey:Ei()+T})):b.forEach((g,T)=>{u.value[T]&&(u.value[T].value=g)}),o.nextTick(()=>{c.value=!1})},{deep:!0}),o.onMounted(()=>{r.value&&r.value.length>0?u.value=r.value.map((b,g)=>({value:b,disabled:!1,uniqueKey:Ei()+g})):f()}),(b,g)=>(o.openBlock(),o.createElementBlock("div",oy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(T,v)=>(o.openBlock(),o.createElementBlock("div",{class:"row mb-2",key:T.uniqueKey},[o.createElementVNode("div",ly,[o.createVNode(er,{"model-value":T.value,"onUpdate:modelValue":R=>p(T,R),name:b.name,placeholder:s.value,class:o.normalizeClass(b.inputClass),disabled:T.disabled,"mask-options":l.value,error:a.value},null,8,["model-value","onUpdate:modelValue","name","placeholder","class","disabled","mask-options","error"])]),o.createElementVNode("div",uy,[h.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"d-flex remove-button p-2",style:{cursor:"pointer"},onClick:R=>S(T)},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-trash-fill"},null,-1)])],8,cy)):o.createCommentVNode("",!0)])]))),128)),o.createVNode(ja,{onClick:f})]))}}),[["__scopeId","data-v-9337052b"]]);var va=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ui={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},vn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},kt=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Pt=function(n){return n===!0?1:0};function _c(n,e){var t;return function(){var i=this,r=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,r)},e)}}var ya=function(n){return n instanceof Array?n:[n]};function vt(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function Je(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function sr(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ac(n,e){if(e(n))return n;if(n.parentNode)return Ac(n.parentNode,e)}function ar(n,e){var t=Je("div","numInputWrapper"),i=Je("input","numInput "+n),r=Je("span","arrowUp"),s=Je("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var a in e)i.setAttribute(a,e[a]);return t.appendChild(i),t.appendChild(r),t.appendChild(s),t}function Mt(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var wa=function(){},or=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},hy={D:wa,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Pt(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),r=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return r.setDate(r.getDate()-r.getDay()+t.firstDayOfWeek),r},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:wa,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:wa,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},Mi={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},yn={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[yn.w(n,e,t)]},F:function(n,e,t){return or(yn.n(n,e,t)-1,!1,e)},G:function(n,e,t){return kt(yn.h(n,e,t))},H:function(n){return kt(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Pt(n.getHours()>11)]},M:function(n,e){return or(n.getMonth(),!0,e)},S:function(n){return kt(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return kt(n.getFullYear(),4)},d:function(n){return kt(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return kt(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return kt(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},Oc=function(n){var e=n.config,t=e===void 0?Ui:e,i=n.l10n,r=i===void 0?vn:i,s=n.isMobile,a=s===void 0?!1:s;return function(l,u,c){var d=c||r;return t.formatDate!==void 0&&!a?t.formatDate(l,u,d):u.split("").map(function(f,p,h){return yn[f]&&h[p-1]!=="\\"?yn[f](l,d,t):f!=="\\"?f:""}).join("")}},Ca=function(n){var e=n.config,t=e===void 0?Ui:e,i=n.l10n,r=i===void 0?vn:i;return function(s,a,l,u){if(!(s!==0&&!s)){var c=u||r,d,f=s;if(s instanceof Date)d=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)d=new Date(s);else if(typeof s=="string"){var p=a||(t||Ui).dateFormat,h=String(s).trim();if(h==="today")d=new Date,l=!0;else if(t&&t.parseDate)d=t.parseDate(s,p);else if(/Z$/.test(h)||/GMT$/.test(h))d=new Date(s);else{for(var S=void 0,m=[],E=0,b=0,g="";E<p.length;E++){var T=p[E],v=T==="\\",R=p[E-1]==="\\"||v;if(Mi[T]&&!R){g+=Mi[T];var y=new RegExp(g).exec(s);y&&(S=!0)&&m[T!=="Y"?"push":"unshift"]({fn:hy[T],val:y[++b]})}else v||(g+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(M){var C=M.fn,x=M.val;return d=C(d,x,c)||d}),d=S?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&d.setHours(0,0,0,0),d}}};function Rt(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var fy=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Ea=function(n,e,t){return n*3600+e*60+t},py=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},my={DAY:864e5};function ka(n){var e=n.defaultHour,t=n.defaultMinute,i=n.defaultSeconds;if(n.minDate!==void 0){var r=n.minDate.getHours(),s=n.minDate.getMinutes(),a=n.minDate.getSeconds();e<r&&(e=r),e===r&&t<s&&(t=s),e===r&&t===s&&i<a&&(i=n.minDate.getSeconds())}if(n.maxDate!==void 0){var l=n.maxDate.getHours(),u=n.maxDate.getMinutes();e=Math.min(e,l),e===l&&(t=Math.min(u,t)),e===l&&t===u&&(i=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:i}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(l){l&&Object.keys(l).forEach(function(u){return n[u]=l[u]})},r=0,s=e;r<s.length;r++){var a=s[r];i(a)}return n});var pt=function(){return pt=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},pt.apply(this,arguments)},Lc=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var i=Array(n),r=0,e=0;e<t;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,r++)i[r]=s[a];return i},gy=300;function by(n,e){var t={config:pt(pt({},Ui),ct.defaultConfig),l10n:vn};t.parseDate=Ca({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=m,t._setHoursFromDate=p,t._positionCalendar=He,t.changeMonth=B,t.changeYear=ne,t.clear=q,t.close=z,t.onMouseOver=ee,t._createElement=Je,t.createDay=y,t.destroy=Q,t.isEnabled=j,t.jumpToDate=g,t.updateValue=Re,t.open=le,t.redraw=J,t.set=xe,t.setDate=Te,t.toggle=Fe;function i(){t.utils={getDaysInMonth:function(P,k){return P===void 0&&(P=t.currentMonth),k===void 0&&(k=t.currentYear),P===1&&(k%4===0&&k%100!==0||k%400===0)?29:t.l10n.daysInMonth[P]}}}function r(){t.element=t.input=n,t.isOpen=!1,ye(),Ne(),ot(),Ie(),i(),t.isMobile||R(),b(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&p(t.config.noCalendar?t.latestSelectedDateObj:void 0),Re(!1)),l();var P=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&P&&He(),ke("onReady")}function s(){var P;return((P=t.calendarContainer)===null||P===void 0?void 0:P.getRootNode()).activeElement||document.activeElement}function a(P){return P.bind(t)}function l(){var P=t.config;P.weekNumbers===!1&&P.showMonths===1||P.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var k=(t.days.offsetWidth+1)*P.showMonths;t.daysContainer.style.width=k+"px",t.calendarContainer.style.width=k+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(P){if(t.selectedDates.length===0){var k=t.config.minDate===void 0||Rt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),A=ka(t.config);k.setHours(A.hours,A.minutes,A.seconds,k.getMilliseconds()),t.selectedDates=[k],t.latestSelectedDateObj=k}P!==void 0&&P.type!=="blur"&&nt(P);var F=t._input.value;f(),Re(),t._input.value!==F&&t._debouncedChange()}function c(P,k){return P%12+12*Pt(k===t.l10n.amPM[1])}function d(P){switch(P%24){case 0:case 12:return 12;default:return P%12}}function f(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var P=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,k=(parseInt(t.minuteElement.value,10)||0)%60,A=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(P=c(P,t.amPM.textContent));var F=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.minDate,!0)===0,$=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var ae=Ea(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),oe=Ea(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),ce=Ea(P,k,A);if(ce>oe&&ce<ae){var fe=py(ae);P=fe[0],k=fe[1],A=fe[2]}}else{if($){var me=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;P=Math.min(P,me.getHours()),P===me.getHours()&&(k=Math.min(k,me.getMinutes())),k===me.getMinutes()&&(A=Math.min(A,me.getSeconds()))}if(F){var be=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;P=Math.max(P,be.getHours()),P===be.getHours()&&k<be.getMinutes()&&(k=be.getMinutes()),k===be.getMinutes()&&(A=Math.max(A,be.getSeconds()))}}h(P,k,A)}}function p(P){var k=P||t.latestSelectedDateObj;k&&k instanceof Date&&h(k.getHours(),k.getMinutes(),k.getSeconds())}function h(P,k,A){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(P%24,k,A||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=kt(t.config.time_24hr?P:(12+P)%12+12*Pt(P%12===0)),t.minuteElement.value=kt(k),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[Pt(P>=12)]),t.secondElement!==void 0&&(t.secondElement.value=kt(A)))}function S(P){var k=Mt(P),A=parseInt(k.value)+(P.delta||0);(A/1e3>1||P.key==="Enter"&&!/[^\d]/.test(A.toString()))&&ne(A)}function m(P,k,A,F){if(k instanceof Array)return k.forEach(function($){return m(P,$,A,F)});if(P instanceof Array)return P.forEach(function($){return m($,k,A,F)});P.addEventListener(k,A,F),t._handlers.push({remove:function(){return P.removeEventListener(k,A,F)}})}function E(){ke("onChange")}function b(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(A){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+A+"]"),function(F){return m(F,"click",t[A])})}),t.isMobile){Ee();return}var P=_c(pe,50);if(t._debouncedChange=_c(E,gy),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(t.daysContainer,"mouseover",function(A){t.config.mode==="range"&&ee(Mt(A))}),m(t._input,"keydown",te),t.calendarContainer!==void 0&&m(t.calendarContainer,"keydown",te),!t.config.inline&&!t.config.static&&m(window,"resize",P),window.ontouchstart!==void 0?m(window.document,"touchstart",G):m(window.document,"mousedown",G),m(window.document,"focus",G,{capture:!0}),t.config.clickOpens===!0&&(m(t._input,"focus",t.open),m(t._input,"click",t.open)),t.daysContainer!==void 0&&(m(t.monthNav,"click",bt),m(t.monthNav,["keyup","increment"],S),m(t.daysContainer,"click",de)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var k=function(A){return Mt(A).select()};m(t.timeContainer,["increment"],u),m(t.timeContainer,"blur",u,{capture:!0}),m(t.timeContainer,"click",T),m([t.hourElement,t.minuteElement],["focus","click"],k),t.secondElement!==void 0&&m(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&m(t.amPM,"click",function(A){u(A)})}t.config.allowInput&&m(t._input,"blur",se)}function g(P,k){var A=P!==void 0?t.parseDate(P):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),F=t.currentYear,$=t.currentMonth;try{A!==void 0&&(t.currentYear=A.getFullYear(),t.currentMonth=A.getMonth())}catch(ae){ae.message="Invalid date supplied: "+A,t.config.errorHandler(ae)}k&&t.currentYear!==F&&(ke("onYearChange"),O()),k&&(t.currentYear!==F||t.currentMonth!==$)&&ke("onMonthChange"),t.redraw()}function T(P){var k=Mt(P);~k.className.indexOf("arrow")&&v(P,k.classList.contains("arrowUp")?1:-1)}function v(P,k,A){var F=P&&Mt(P),$=A||F&&F.parentNode&&F.parentNode.firstChild,ae=X("increment");ae.delta=k,$&&$.dispatchEvent(ae)}function R(){var P=window.document.createDocumentFragment();if(t.calendarContainer=Je("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(P.appendChild(U()),t.innerContainer=Je("div","flatpickr-innerContainer"),t.config.weekNumbers){var k=L(),A=k.weekWrapper,F=k.weekNumbers;t.innerContainer.appendChild(A),t.weekNumbers=F,t.weekWrapper=A}t.rContainer=Je("div","flatpickr-rContainer"),t.rContainer.appendChild(I()),t.daysContainer||(t.daysContainer=Je("div","flatpickr-days"),t.daysContainer.tabIndex=-1),D(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),P.appendChild(t.innerContainer)}t.config.enableTime&&P.appendChild(N()),vt(t.calendarContainer,"rangeMode",t.config.mode==="range"),vt(t.calendarContainer,"animate",t.config.animate===!0),vt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(P);var $=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!$&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var ae=Je("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(ae,t.element),ae.appendChild(t.element),t.altInput&&ae.appendChild(t.altInput),ae.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function y(P,k,A,F){var $=j(k,!0),ae=Je("span",P,k.getDate().toString());return ae.dateObj=k,ae.$i=F,ae.setAttribute("aria-label",t.formatDate(k,t.config.ariaDateFormat)),P.indexOf("hidden")===-1&&Rt(k,t.now)===0&&(t.todayDateElem=ae,ae.classList.add("today"),ae.setAttribute("aria-current","date")),$?(ae.tabIndex=-1,re(k)&&(ae.classList.add("selected"),t.selectedDateElem=ae,t.config.mode==="range"&&(vt(ae,"startRange",t.selectedDates[0]&&Rt(k,t.selectedDates[0],!0)===0),vt(ae,"endRange",t.selectedDates[1]&&Rt(k,t.selectedDates[1],!0)===0),P==="nextMonthDay"&&ae.classList.add("inRange")))):ae.classList.add("flatpickr-disabled"),t.config.mode==="range"&&ze(k)&&!re(k)&&ae.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&P!=="prevMonthDay"&&F%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(k)+"</span>"),ke("onDayCreate",ae),ae}function M(P){P.focus(),t.config.mode==="range"&&ee(P)}function C(P){for(var k=P>0?0:t.config.showMonths-1,A=P>0?t.config.showMonths:-1,F=k;F!=A;F+=P)for(var $=t.daysContainer.children[F],ae=P>0?0:$.children.length-1,oe=P>0?$.children.length:-1,ce=ae;ce!=oe;ce+=P){var fe=$.children[ce];if(fe.className.indexOf("hidden")===-1&&j(fe.dateObj))return fe}}function x(P,k){for(var A=P.className.indexOf("Month")===-1?P.dateObj.getMonth():t.currentMonth,F=k>0?t.config.showMonths:-1,$=k>0?1:-1,ae=A-t.currentMonth;ae!=F;ae+=$)for(var oe=t.daysContainer.children[ae],ce=A-t.currentMonth===ae?P.$i+k:k<0?oe.children.length-1:0,fe=oe.children.length,me=ce;me>=0&&me<fe&&me!=(k>0?fe:-1);me+=$){var be=oe.children[me];if(be.className.indexOf("hidden")===-1&&j(be.dateObj)&&Math.abs(P.$i-me)>=Math.abs(k))return M(be)}t.changeMonth($),w(C($),0)}function w(P,k){var A=s(),F=H(A||document.body),$=P!==void 0?P:F?A:t.selectedDateElem!==void 0&&H(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&H(t.todayDateElem)?t.todayDateElem:C(k>0?1:-1);$===void 0?t._input.focus():F?x($,k):M($)}function _(P,k){for(var A=(new Date(P,k,1).getDay()-t.l10n.firstDayOfWeek+7)%7,F=t.utils.getDaysInMonth((k-1+12)%12,P),$=t.utils.getDaysInMonth(k,P),ae=window.document.createDocumentFragment(),oe=t.config.showMonths>1,ce=oe?"prevMonthDay hidden":"prevMonthDay",fe=oe?"nextMonthDay hidden":"nextMonthDay",me=F+1-A,be=0;me<=F;me++,be++)ae.appendChild(y("flatpickr-day "+ce,new Date(P,k-1,me),me,be));for(me=1;me<=$;me++,be++)ae.appendChild(y("flatpickr-day",new Date(P,k,me),me,be));for(var Ae=$+1;Ae<=42-A&&(t.config.showMonths===1||be%7!==0);Ae++,be++)ae.appendChild(y("flatpickr-day "+fe,new Date(P,k+1,Ae%$),Ae,be));var Ye=Je("div","dayContainer");return Ye.appendChild(ae),Ye}function D(){if(t.daysContainer!==void 0){sr(t.daysContainer),t.weekNumbers&&sr(t.weekNumbers);for(var P=document.createDocumentFragment(),k=0;k<t.config.showMonths;k++){var A=new Date(t.currentYear,t.currentMonth,1);A.setMonth(t.currentMonth+k),P.appendChild(_(A.getFullYear(),A.getMonth()))}t.daysContainer.appendChild(P),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&ee()}}function O(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var P=function(F){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&F<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&F>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var k=0;k<12;k++)if(P(k)){var A=Je("option","flatpickr-monthDropdown-month");A.value=new Date(t.currentYear,k).getMonth().toString(),A.textContent=or(k,t.config.shorthandCurrentMonth,t.l10n),A.tabIndex=-1,t.currentMonth===k&&(A.selected=!0),t.monthsDropdownContainer.appendChild(A)}}}function V(){var P=Je("div","flatpickr-month"),k=window.document.createDocumentFragment(),A;t.config.showMonths>1||t.config.monthSelectorType==="static"?A=Je("span","cur-month"):(t.monthsDropdownContainer=Je("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),m(t.monthsDropdownContainer,"change",function(oe){var ce=Mt(oe),fe=parseInt(ce.value,10);t.changeMonth(fe-t.currentMonth),ke("onMonthChange")}),O(),A=t.monthsDropdownContainer);var F=ar("cur-year",{tabindex:"-1"}),$=F.getElementsByTagName("input")[0];$.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&$.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&($.setAttribute("max",t.config.maxDate.getFullYear().toString()),$.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var ae=Je("div","flatpickr-current-month");return ae.appendChild(A),ae.appendChild(F),k.appendChild(ae),P.appendChild(k),{container:P,yearElement:$,monthElement:A}}function W(){sr(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var P=t.config.showMonths;P--;){var k=V();t.yearElements.push(k.yearElement),t.monthElements.push(k.monthElement),t.monthNav.appendChild(k.container)}t.monthNav.appendChild(t.nextMonthNav)}function U(){return t.monthNav=Je("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Je("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Je("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,W(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(P){t.__hidePrevMonthArrow!==P&&(vt(t.prevMonthNav,"flatpickr-disabled",P),t.__hidePrevMonthArrow=P)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(P){t.__hideNextMonthArrow!==P&&(vt(t.nextMonthNav,"flatpickr-disabled",P),t.__hideNextMonthArrow=P)}}),t.currentYearElement=t.yearElements[0],Ue(),t.monthNav}function N(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var P=ka(t.config);t.timeContainer=Je("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var k=Je("span","flatpickr-time-separator",":"),A=ar("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=A.getElementsByTagName("input")[0];var F=ar("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=F.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=kt(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?P.hours:d(P.hours)),t.minuteElement.value=kt(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():P.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(A),t.timeContainer.appendChild(k),t.timeContainer.appendChild(F),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var $=ar("flatpickr-second");t.secondElement=$.getElementsByTagName("input")[0],t.secondElement.value=kt(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():P.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Je("span","flatpickr-time-separator",":")),t.timeContainer.appendChild($)}return t.config.time_24hr||(t.amPM=Je("span","flatpickr-am-pm",t.l10n.amPM[Pt((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function I(){t.weekdayContainer?sr(t.weekdayContainer):t.weekdayContainer=Je("div","flatpickr-weekdays");for(var P=t.config.showMonths;P--;){var k=Je("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(k)}return K(),t.weekdayContainer}function K(){if(t.weekdayContainer){var P=t.l10n.firstDayOfWeek,k=Lc(t.l10n.weekdays.shorthand);P>0&&P<k.length&&(k=Lc(k.splice(P,k.length),k.splice(0,P)));for(var A=t.config.showMonths;A--;)t.weekdayContainer.children[A].innerHTML=`
28
28
  <span class='flatpickr-weekday'>
29
29
  `+k.join("</span><span class='flatpickr-weekday'>")+`
30
30
  </span>
31
- `}}function L(){t.calendarContainer.classList.add("hasWeeks");var P=Je("div","flatpickr-weekwrapper");P.appendChild(Je("span","flatpickr-weekday",t.l10n.weekAbbreviation));var k=Je("div","flatpickr-weeks");return P.appendChild(k),{weekWrapper:P,weekNumbers:k}}function B(P,k){k===void 0&&(k=!0);var A=k?P:P-t.currentMonth;A<0&&t._hidePrevMonthArrow===!0||A>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=A,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Se("onYearChange"),O()),D(),Se("onMonthChange"),Ue())}function $(P,k){if(P===void 0&&(P=!0),k===void 0&&(k=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,k===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var A=ka(t.config),F=A.hours,G=A.minutes,se=A.seconds;h(F,G,se)}t.redraw(),P&&Se("onChange")}function z(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Se("onClose")}function J(){t.config!==void 0&&Se("onDestroy");for(var P=t._handlers.length;P--;)t._handlers[P].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var k=t.calendarContainer.parentNode;if(k.lastChild&&k.removeChild(k.lastChild),k.parentNode){for(;k.firstChild;)k.parentNode.insertBefore(k.firstChild,k);k.parentNode.removeChild(k)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(A){try{delete t[A]}catch{}})}function Z(P){return t.calendarContainer.contains(P)}function U(P){if(t.isOpen&&!t.config.inline){var k=Mt(P),A=Z(k),F=k===t.input||k===t.altInput||t.element.contains(k)||P.path&&P.path.indexOf&&(~P.path.indexOf(t.input)||~P.path.indexOf(t.altInput)),G=!F&&!A&&!Z(P.relatedTarget),se=!t.config.ignoredFocusElements.some(function(oe){return oe.contains(k)});G&&se&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ie(P){if(!(!P||t.config.minDate&&P<t.config.minDate.getFullYear()||t.config.maxDate&&P>t.config.maxDate.getFullYear())){var k=P,A=t.currentYear!==k;t.currentYear=k||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),A&&(t.redraw(),Se("onYearChange"),O())}}function j(P,k){var A;k===void 0&&(k=!0);var F=t.parseDate(P,void 0,k);if(t.config.minDate&&F&&Rt(F,t.config.minDate,k!==void 0?k:!t.minDateHasTime)<0||t.config.maxDate&&F&&Rt(F,t.config.maxDate,k!==void 0?k:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(F===void 0)return!1;for(var G=!!t.config.enable,se=(A=t.config.enable)!==null&&A!==void 0?A:t.config.disable,oe=0,ce=void 0;oe<se.length;oe++){if(ce=se[oe],typeof ce=="function"&&ce(F))return G;if(ce instanceof Date&&F!==void 0&&ce.getTime()===F.getTime())return G;if(typeof ce=="string"){var fe=t.parseDate(ce,void 0,!0);return fe&&fe.getTime()===F.getTime()?G:!G}else if(typeof ce=="object"&&F!==void 0&&ce.from&&ce.to&&F.getTime()>=ce.from.getTime()&&F.getTime()<=ce.to.getTime())return G}return!G}function H(P){return t.daysContainer!==void 0?P.className.indexOf("hidden")===-1&&P.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(P):!1}function re(P){var k=P.target===t._input,A=t._input.value.trimEnd()!==Le();k&&A&&!(P.relatedTarget&&Z(P.relatedTarget))&&t.setDate(t._input.value,!0,P.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ee(P){var k=Mt(P),A=t.config.wrap?n.contains(k):k===t._input,F=t.config.allowInput,G=t.isOpen&&(!F||!A),se=t.config.inline&&A&&!F;if(P.keyCode===13&&A){if(F)return t.setDate(t._input.value,!0,k===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),k.blur();t.open()}else if(Z(k)||G||se){var oe=!!t.timeContainer&&t.timeContainer.contains(k);switch(P.keyCode){case 13:oe?(P.preventDefault(),u(),te()):me(P);break;case 27:P.preventDefault(),te();break;case 8:case 46:A&&!t.config.allowInput&&(P.preventDefault(),t.clear());break;case 37:case 39:if(!oe&&!A){P.preventDefault();var ce=s();if(t.daysContainer!==void 0&&(F===!1||ce&&H(ce))){var fe=P.keyCode===39?1:-1;P.ctrlKey?(P.stopPropagation(),B(fe),w(C(1),0)):w(void 0,fe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:P.preventDefault();var ge=P.keyCode===40?1:-1;t.daysContainer&&k.$i!==void 0||k===t.input||k===t.altInput?P.ctrlKey?(P.stopPropagation(),ie(t.currentYear-ge),w(C(1),0)):oe||w(void 0,ge*7):k===t.currentYearElement?ie(t.currentYear-ge):t.config.enableTime&&(!oe&&t.hourElement&&t.hourElement.focus(),u(P),t._debouncedChange());break;case 9:if(oe){var ve=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Ne){return Ne}),Oe=ve.indexOf(k);if(Oe!==-1){var Ye=ve[Oe+(P.shiftKey?-1:1)];P.preventDefault(),(Ye||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(k)&&P.shiftKey&&(P.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&k===t.amPM)switch(P.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Te();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Te();break}(A||Z(k))&&Se("onKeyDown",P)}function Q(P,k){if(k===void 0&&(k="flatpickr-day"),!(t.selectedDates.length!==1||P&&(!P.classList.contains(k)||P.classList.contains("flatpickr-disabled")))){for(var A=P?P.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),F=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),G=Math.min(A,t.selectedDates[0].getTime()),se=Math.max(A,t.selectedDates[0].getTime()),oe=!1,ce=0,fe=0,ge=G;ge<se;ge+=my.DAY)j(new Date(ge),!0)||(oe=oe||ge>G&&ge<se,ge<F&&(!ce||ge>ce)?ce=ge:ge>F&&(!fe||ge<fe)&&(fe=ge));var ve=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+k));ve.forEach(function(Oe){var Ye=Oe.dateObj,Ne=Ye.getTime(),Xe=ce>0&&Ne<ce||fe>0&&Ne>fe;if(Xe){Oe.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(et){Oe.classList.remove(et)});return}else if(oe&&!Xe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(et){Oe.classList.remove(et)}),P!==void 0&&(P.classList.add(A<=t.selectedDates[0].getTime()?"startRange":"endRange"),F<A&&Ne===F?Oe.classList.add("startRange"):F>A&&Ne===F&&Oe.classList.add("endRange"),Ne>=ce&&(fe===0||Ne<=fe)&&fy(Ne,F,A)&&Oe.classList.add("inRange"))})}}function pe(){t.isOpen&&!t.config.static&&!t.config.inline&&le()}function ue(P,k){if(k===void 0&&(k=t._positionElement),t.isMobile===!0){if(P){P.preventDefault();var A=Mt(P);A&&A.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Se("onOpen");return}else if(t._input.disabled||t.config.inline)return;var F=t.isOpen;t.isOpen=!0,F||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Se("onOpen"),le(k)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(P===void 0||!t.timeContainer.contains(P.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ye(P){return function(k){var A=t.config["_"+P+"Date"]=t.parseDate(k,t.config.dateFormat),F=t.config["_"+(P==="min"?"max":"min")+"Date"];A!==void 0&&(t[P==="min"?"minDateHasTime":"maxDateHasTime"]=A.getHours()>0||A.getMinutes()>0||A.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(G){return j(G)}),!t.selectedDates.length&&P==="min"&&p(A),Te()),t.daysContainer&&(X(),A!==void 0?t.currentYearElement[P]=A.getFullYear().toString():t.currentYearElement.removeAttribute(P),t.currentYearElement.disabled=!!F&&A!==void 0&&F.getFullYear()===A.getFullYear())}}function we(){var P=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],k=pt(pt({},JSON.parse(JSON.stringify(n.dataset||{}))),e),A={};t.config.parseDate=k.parseDate,t.config.formatDate=k.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(ve){t.config._enable=Ae(ve)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(ve){t.config._disable=Ae(ve)}});var F=k.mode==="time";if(!k.dateFormat&&(k.enableTime||F)){var G=ct.defaultConfig.dateFormat||Ui.dateFormat;A.dateFormat=k.noCalendar||F?"H:i"+(k.enableSeconds?":S":""):G+" H:i"+(k.enableSeconds?":S":"")}if(k.altInput&&(k.enableTime||F)&&!k.altFormat){var se=ct.defaultConfig.altFormat||Ui.altFormat;A.altFormat=k.noCalendar||F?"h:i"+(k.enableSeconds?":S K":" K"):se+(" h:i"+(k.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ye("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ye("max")});var oe=function(ve){return function(Oe){t.config[ve==="min"?"_minTime":"_maxTime"]=t.parseDate(Oe,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:oe("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:oe("max")}),k.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,A,k);for(var ce=0;ce<P.length;ce++)t.config[P[ce]]=t.config[P[ce]]===!0||t.config[P[ce]]==="true";va.filter(function(ve){return t.config[ve]!==void 0}).forEach(function(ve){t.config[ve]=ya(t.config[ve]||[]).map(a)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ce=0;ce<t.config.plugins.length;ce++){var fe=t.config.plugins[ce](t)||{};for(var ge in fe)va.indexOf(ge)>-1?t.config[ge]=ya(fe[ge]).map(a).concat(t.config[ge]):typeof k[ge]>"u"&&(t.config[ge]=fe[ge])}k.altInputClass||(t.config.altInputClass=Re().className+" "+t.config.altInputClass),Se("onParseConfig")}function Re(){return t.config.wrap?n.querySelector("[data-input]"):n}function Pe(){typeof t.config.locale!="object"&&typeof ct.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=pt(pt({},ct.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ct.l10ns[t.config.locale]:void 0),Mi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Mi.l="("+t.l10n.weekdays.longhand.join("|")+")",Mi.M="("+t.l10n.months.shorthand.join("|")+")",Mi.F="("+t.l10n.months.longhand.join("|")+")",Mi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var P=pt(pt({},e),JSON.parse(JSON.stringify(n.dataset||{})));P.time_24hr===void 0&&ct.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Oc(t),t.parseDate=Ca({config:t.config,l10n:t.l10n})}function le(P){if(typeof t.config.position=="function")return void t.config.position(t,P);if(t.calendarContainer!==void 0){Se("onPreCalendarPosition");var k=P||t._positionElement,A=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,jx){return Di+jx.offsetHeight}),0),F=t.calendarContainer.offsetWidth,G=t.config.position.split(" "),se=G[0],oe=G.length>1?G[1]:null,ce=k.getBoundingClientRect(),fe=window.innerHeight-ce.bottom,ge=se==="above"||se!=="below"&&fe<A&&ce.top>A,ve=window.pageYOffset+ce.top+(ge?-A-2:k.offsetHeight+2);if(vt(t.calendarContainer,"arrowTop",!ge),vt(t.calendarContainer,"arrowBottom",ge),!t.config.inline){var Oe=window.pageXOffset+ce.left,Ye=!1,Ne=!1;oe==="center"?(Oe-=(F-ce.width)/2,Ye=!0):oe==="right"&&(Oe-=F-ce.width,Ne=!0),vt(t.calendarContainer,"arrowLeft",!Ye&&!Ne),vt(t.calendarContainer,"arrowCenter",Ye),vt(t.calendarContainer,"arrowRight",Ne);var Xe=window.document.body.offsetWidth-(window.pageXOffset+ce.right),et=Oe+F>window.document.body.offsetWidth,lt=Xe+F>window.document.body.offsetWidth;if(vt(t.calendarContainer,"rightMost",et),!t.config.static)if(t.calendarContainer.style.top=ve+"px",!et)t.calendarContainer.style.left=Oe+"px",t.calendarContainer.style.right="auto";else if(!lt)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=Xe+"px";else{var rt=Ve();if(rt===void 0)return;var bi=window.document.body.offsetWidth,Ti=Math.max(0,bi/2-F/2),li=".flatpickr-calendar.centerMost:before",zt=".flatpickr-calendar.centerMost:after",Jt=rt.cssRules.length,Xi="{left:"+ce.left+"px;right:auto;}";vt(t.calendarContainer,"rightMost",!1),vt(t.calendarContainer,"centerMost",!0),rt.insertRule(li+","+zt+Xi,Jt),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ve(){for(var P=null,k=0;k<document.styleSheets.length;k++){var A=document.styleSheets[k];if(A.cssRules){try{A.cssRules}catch{continue}P=A;break}}return P??ae()}function ae(){var P=document.createElement("style");return document.head.appendChild(P),P.sheet}function X(){t.config.noCalendar||t.isMobile||(O(),Ue(),D())}function te(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function me(P){P.preventDefault(),P.stopPropagation();var k=function(ve){return ve.classList&&ve.classList.contains("flatpickr-day")&&!ve.classList.contains("flatpickr-disabled")&&!ve.classList.contains("notAllowed")},A=Ac(Mt(P),k);if(A!==void 0){var F=A,G=t.latestSelectedDateObj=new Date(F.dateObj.getTime()),se=(G.getMonth()<t.currentMonth||G.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=F,t.config.mode==="single")t.selectedDates=[G];else if(t.config.mode==="multiple"){var oe=ne(G);oe?t.selectedDates.splice(parseInt(oe),1):t.selectedDates.push(G)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=G,t.selectedDates.push(G),Rt(G,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(ve,Oe){return ve.getTime()-Oe.getTime()}));if(f(),se){var ce=t.currentYear!==G.getFullYear();t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth(),ce&&(Se("onYearChange"),O()),Se("onMonthChange")}if(Ue(),D(),Te(),!se&&t.config.mode!=="range"&&t.config.showMonths===1?M(F):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var fe=t.config.mode==="single"&&!t.config.enableTime,ge=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(fe||ge)&&te()}E()}}var de={locale:[Pe,q],showMonths:[W,l,I],minDate:[g],maxDate:[g],positionElement:[he],clickOpens:[function(){t.config.clickOpens===!0?(m(t._input,"focus",t.open),m(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Me(P,k){if(P!==null&&typeof P=="object"){Object.assign(t.config,P);for(var A in P)de[A]!==void 0&&de[A].forEach(function(F){return F()})}else t.config[P]=k,de[P]!==void 0?de[P].forEach(function(F){return F()}):va.indexOf(P)>-1&&(t.config[P]=ya(k));t.redraw(),Te(!0)}function Fe(P,k){var A=[];if(P instanceof Array)A=P.map(function(F){return t.parseDate(F,k)});else if(P instanceof Date||typeof P=="number")A=[t.parseDate(P,k)];else if(typeof P=="string")switch(t.config.mode){case"single":case"time":A=[t.parseDate(P,k)];break;case"multiple":A=P.split(t.config.conjunction).map(function(F){return t.parseDate(F,k)});break;case"range":A=P.split(t.l10n.rangeSeparator).map(function(F){return t.parseDate(F,k)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(P)));t.selectedDates=t.config.allowInvalidPreload?A:A.filter(function(F){return F instanceof Date&&j(F,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(F,G){return F.getTime()-G.getTime()})}function De(P,k,A){if(k===void 0&&(k=!1),A===void 0&&(A=t.config.dateFormat),P!==0&&!P||P instanceof Array&&P.length===0)return t.clear(k);Fe(P,A),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,k),p(),t.selectedDates.length===0&&t.clear(!1),Te(k),k&&Se("onChange")}function Ae(P){return P.slice().map(function(k){return typeof k=="string"||typeof k=="number"||k instanceof Date?t.parseDate(k,void 0,!0):k&&typeof k=="object"&&k.from&&k.to?{from:t.parseDate(k.from,void 0),to:t.parseDate(k.to,void 0)}:k}).filter(function(k){return k})}function Ie(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var P=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);P&&Fe(P,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function ot(){if(t.input=Re(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Je(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),he()}function he(){t._positionElement=t.config.positionElement||t._input}function ke(){var P=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Je("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=P,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=P==="datetime-local"?"Y-m-d\\TH:i:S":P==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}m(t.mobileInput,"change",function(k){t.setDate(Mt(k).value,!1,t.mobileFormatStr),Se("onChange"),Se("onClose")})}function Be(P){if(t.isOpen===!0)return t.close();t.open(P)}function Se(P,k){if(t.config!==void 0){var A=t.config[P];if(A!==void 0&&A.length>0)for(var F=0;A[F]&&F<A.length;F++)A[F](t.selectedDates,t.input.value,t,k);P==="onChange"&&(t.input.dispatchEvent(K("change")),t.input.dispatchEvent(K("input")))}}function K(P){var k=document.createEvent("Event");return k.initEvent(P,!0,!0),k}function ne(P){for(var k=0;k<t.selectedDates.length;k++){var A=t.selectedDates[k];if(A instanceof Date&&Rt(A,P)===0)return""+k}return!1}function ze(P){return t.config.mode!=="range"||t.selectedDates.length<2?!1:Rt(P,t.selectedDates[0])>=0&&Rt(P,t.selectedDates[1])<=0}function Ue(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(P,k){var A=new Date(t.currentYear,t.currentMonth,1);A.setMonth(t.currentMonth+k),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[k].textContent=or(A.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=A.getMonth().toString(),P.value=A.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Le(P){var k=P||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(A){return t.formatDate(A,k)}).filter(function(A,F,G){return t.config.mode!=="range"||t.config.enableTime||G.indexOf(A)===F}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Te(P){P===void 0&&(P=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Le(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Le(t.config.altFormat)),P!==!1&&Se("onValueUpdate")}function bt(P){var k=Mt(P),A=t.prevMonthNav.contains(k),F=t.nextMonthNav.contains(k);A||F?B(A?-1:1):t.yearElements.indexOf(k)>=0?k.select():k.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):k.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function nt(P){P.preventDefault();var k=P.type==="keydown",A=Mt(P),F=A;t.amPM!==void 0&&A===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Pt(t.amPM.textContent===t.l10n.amPM[0])]);var G=parseFloat(F.getAttribute("min")),se=parseFloat(F.getAttribute("max")),oe=parseFloat(F.getAttribute("step")),ce=parseInt(F.value,10),fe=P.delta||(k?P.which===38?1:-1:0),ge=ce+oe*fe;if(typeof F.value<"u"&&F.value.length===2){var ve=F===t.hourElement,Oe=F===t.minuteElement;ge<G?(ge=se+ge+Pt(!ve)+(Pt(ve)&&Pt(!t.amPM)),Oe&&v(void 0,-1,t.hourElement)):ge>se&&(ge=F===t.hourElement?ge-se-Pt(!t.amPM):G,Oe&&v(void 0,1,t.hourElement)),t.amPM&&ve&&(oe===1?ge+ce===23:Math.abs(ge-ce)>oe)&&(t.amPM.textContent=t.l10n.amPM[Pt(t.amPM.textContent===t.l10n.amPM[0])]),F.value=kt(ge)}}return r(),t}function Gi(n,e){for(var t=Array.prototype.slice.call(n).filter(function(a){return a instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=by(s,e||{}),i.push(s._flatpickr)}catch(a){console.error(a)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Gi(this,n)},HTMLElement.prototype.flatpickr=function(n){return Gi([this],n)});var ct=function(n,e){return typeof n=="string"?Gi(window.document.querySelectorAll(n),e):n instanceof Node?Gi([n],e):Gi(n,e)};ct.defaultConfig={},ct.l10ns={en:pt({},vn),default:pt({},vn)},ct.localize=function(n){ct.l10ns.default=pt(pt({},ct.l10ns.default),n)},ct.setDefaults=function(n){ct.defaultConfig=pt(pt({},ct.defaultConfig),n)},ct.parseDate=Ca({}),ct.formatDate=Oc({}),ct.compareDates=Rt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Gi(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ct);var wn={exports:{}},vy=wn.exports,Pc;function yy(){return Pc||(Pc=1,(function(n,e){(function(t,i){i(e)})(vy,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(wn,wn.exports)),wn.exports}var wy=yy();const Cy=["value","id","name","disabled","required","placeholder"],Ey=["title"],ky=["title"],Sy=He(o.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(),a=o.ref(null),l=o.ref(!1),u=o.ref(""),c=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),d=b=>{if(!b)return"";const g=new Date(b);if(isNaN(g.getTime()))return"";const T=String(g.getDate()).padStart(2,"0"),v=String(g.getMonth()+1).padStart(2,"0"),R=g.getFullYear();return i.format==="DD.MM.YYYY"?`${T}.${v}.${R}`:i.format==="MM/DD/YYYY"?`${v}/${T}/${R}`:i.format==="YYYY-MM-DD"?`${R}-${v}-${T}`:`${T}.${v}.${R}`},f=b=>{if(!b)return"";if(/^\d{4}-\d{2}-\d{2}/.test(b))return b;if(i.format==="DD.MM.YYYY"){const g=b.split(".");if(g.length===3){const[T,v,R]=g;return`${R}-${v.padStart(2,"0")}-${T.padStart(2,"0")}`}}if(i.format==="MM/DD/YYYY"){const g=b.split("/");if(g.length===3){const[T,v,R]=g;return`${R}-${T.padStart(2,"0")}-${v.padStart(2,"0")}`}}return i.format==="YYYY-MM-DD",b},p=()=>{if(!s.value)return;const b={locale:i.locale==="ru"?wy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(g,T,v)=>{const R=g.length>0;if(!(i.modelValue!==T))return!1;if(!R)return h({instance:v}),!1;o.nextTick(()=>{if(i.mode==="multiple"){const M=g.map(C=>d(C));r("update:modelValue",M)}else if(i.mode==="range"){const M=g.map(C=>d(C));r("update:modelValue",M)}else r("update:modelValue",T);r("change",g.map(M=>M.toISOString()),T,v)})},onOpen:g=>{r("open",g)},onReady:g=>{r("ready",g)},...i.config};i.minDate&&i.minDate&&(b.minDate=i.minDate),i.maxDate&&(b.maxDate=i.maxDate),i.defaultDate&&(b.defaultDate=i.defaultDate),a.value=ct(s.value,b),h({instance:a.value})},h=({instance:b})=>{b?._input&&(i.modelValue?o.nextTick(()=>{Array.isArray(i.modelValue)?b._input.value=i.modelValue.map(g=>d(g)).join(", "):b._input.value=d(i.modelValue),l.value=!0}):o.nextTick(()=>{b._input.value="",l.value=!1}))},S=()=>{i.disabled||!a.value||(a.value.clear(),a.value._input.value="",r("update:modelValue",""),l.value=!1)},m=b=>{const g=b.target;u.value=g.value},E=()=>{if(u.value){const b=f(u.value);b&&r("update:modelValue",b)}};return o.watch(()=>i.modelValue,b=>{if(!b){l.value=!1,a.value?._input&&(a.value._input.value=""),u.value="";return}Array.isArray(b)?u.value=b.map(g=>d(g)).join(", "):u.value=d(b),l.value=!0},{deep:!0}),o.watch(()=>i.disabled,b=>{a.value?._input&&(a.value._input.disabled=b)}),o.onMounted(()=>{p()}),o.onBeforeUnmount(()=>{a.value&&a.value.destroy()}),e({datapicker:a}),(b,g)=>(o.openBlock(),o.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[o.createElementVNode("div",{class:o.normalizeClass({"not-valid":c.value.length})},[o.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:b.id,name:b.name,disabled:b.disabled,required:b.required,placeholder:b.placeholder,"data-input":"",onInput:m,onBlur:E},null,40,Cy)],2),l.value&&!b.disabled?(o.openBlock(),o.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:S,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:b.resetTitle},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Ey)):o.createCommentVNode("",!0),o.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:b.calendarTitle},[...g[1]||(g[1]=[o.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,ky),o.createVNode(ki,{errors:c.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-805e83fd"]]);function xy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,a=o.ref(""),l=o.ref([]),u=o.ref(!1),c=o.ref(r),d=o.ref(!1),f=o.ref(!1),p=o.computed(()=>a.value&&a.value.length>0&&a.value.length<s?`Введите минимум ${s} символа`:t),h=o.computed(()=>i);return{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{a.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{a.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:y=>{l.value=y},setLoading:y=>{u.value=y},setGlobalLoading:y=>{f.value=y}}}const My=["disabled"],Ry={key:1,class:"bi bi-three-dots-vertical"},Ty=He(o.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:S,onSelect:m,clearSearch:E,toggleSettings:b,hideSettings:g}=xy(s),T=o.ref();o.computed(()=>i.options.length>0?i.options:l.value),o.computed(()=>i.isSearchLoading||u.value),o.computed(()=>i.isLoading||f.value);const v=x=>{const w=x||"";S(w),r("search",w,c.value)},R=x=>{m(x),r("select",x)},y=o.computed(()=>i.searchTypeName);o.watch(c,x=>{r("searchTypeChange",x),g()});const M=x=>{const w=x.target;C.value?.contains(w)||g()},C=o.ref();return o.onMounted(()=>{document.addEventListener("click",M)}),o.onUnmounted(()=>{document.removeEventListener("click",M)}),e({clearSearch:E,setOptions:x=>{l.value=x},setLoading:x=>{u.value=x},setGlobalLoading:x=>{f.value=x},focus:()=>{T.value?.$el?.querySelector("input")?.focus()}}),(x,w)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:C,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(o.openBlock(),o.createBlock(oi,{ref_key:"selectRef",ref:T,key:o.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:o.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=_=>o.isRef(a)?a.value=_:null),R],reduce:_=>_,options:x.options,placeholder:x.placeholder,onSearch:v,onBlur:o.unref(E),onFocus:o.unref(g),isLoading:x.isSearchLoading,hint:o.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),o.createElementVNode("button",{class:"btn btn-light px-2",onClick:w[1]||(w[1]=(..._)=>o.unref(b)&&o.unref(b)(..._)),disabled:x.isLoading},[x.isLoading?(o.openBlock(),o.createBlock(kr,{key:0,isSmall:!0})):(o.openBlock(),o.createElementBlock("i",Ry))],8,My),o.unref(d)?(o.openBlock(),o.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:w[3]||(w[3]=o.withModifiers(()=>{},["stop"]))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),_=>(o.openBlock(),o.createElementBlock("li",{key:_.value,class:"setting-item"},[o.createVNode(Dc,{name:y.value,label:_.label,modelValue:o.unref(c),"onUpdate:modelValue":w[2]||(w[2]=D=>o.isRef(c)?c.value=D:null),type:"radio",group:y.value,trueValue:_.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Dy(n={}){const{loadRegions:e,loadDistricts:t,loadLocalities:i,loadStreets:r,regionKey:s="region_id",districtKey:a="district_id",localityKey:l="locality_id",streetKey:u="street_id",houseKey:c="house",buildingKey:d="building",apartmentKey:f="apartment",regionLabel:p="Регион",districtLabel:h="Район",localityLabel:S="Населенный пункт",streetLabel:m="Улица",houseLabel:E="Дом",buildingLabel:b="Корпус",apartmentLabel:g="Квартира",columnWidth:T="12",prefix:v="",multiLocalities:R=!1,multiStreets:y=!1,showHouseFields:M=!0}=n,C=o.ref({}),x=o.ref(!1),w=o.ref(!1),_=o.ref(!1),D=o.ref(!1),O=o.ref(!1),V=o.ref([]),W=o.ref([]),Y=o.ref([]),N=o.ref([]),I=o.computed(()=>`${v}${s}`),q=o.computed(()=>`${v}${a}`),L=o.computed(()=>`${v}${l}`),B=o.computed(()=>`${v}${u}`),$=o.computed(()=>`${v}${c}`),z=o.computed(()=>`${v}${d}`),J=o.computed(()=>`${v}${f}`),Z=o.computed(()=>({region:p,district:h,locality:S,street:m,house:E,building:b,apartment:g})),U=async he=>{if(e){w.value=!0;try{V.value=await e(he)}finally{w.value=!1}}},ie=async he=>{if(t){_.value=!0;try{W.value=await t(he)}finally{_.value=!1}}},j=async he=>{if(i){D.value=!0;try{Y.value=await i(he)}finally{D.value=!1}}},H=async he=>{if(r){O.value=!0;try{N.value=await r(he)}finally{O.value=!1}}},re=(he,ke=!1)=>{if(ke){const Se={...C.value,[I.value]:he};C.value=Se;return}const Be={...C.value,[I.value]:he,[q.value]:null,[L.value]:null,[B.value]:null,[$.value]:null,[z.value]:null,[J.value]:null};C.value=Be,W.value=[],Y.value=[],N.value=[]},ee=(he,ke=!1)=>{if(ke){const Se={...C.value,[q.value]:he};C.value=Se;return}const Be={...C.value,[q.value]:he,[L.value]:null,[B.value]:null,[$.value]:null,[z.value]:null,[J.value]:null};C.value=Be},Q=(he,ke=!1)=>{if(ke){const Se={...C.value,[L.value]:he};C.value=Se;return}const Be={...C.value,[L.value]:he,[B.value]:null,[$.value]:null,[z.value]:null,[J.value]:null};C.value=Be,N.value=[]},pe=async he=>{re(he),he&&(await ie(he),await j(he),await H(he))},ue=async he=>{if(ee(he),!he){const ke=C.value[I.value];ke&&await pe(ke);return}await j(he)},ye=async he=>{Q(he),he&&await H(he)},we=(he,ke=!1)=>{if(ke){const Se={...C.value,[B.value]:he};C.value=Se;return}const Be={...C.value,[B.value]:he,[$.value]:null,[z.value]:null,[J.value]:null};C.value=Be},Re=he=>{const ke=he.target,Be={...C.value,[$.value]:ke.value};C.value=Be},Pe=he=>{const ke=he.target,Be={...C.value,[z.value]:ke.value};C.value=Be},le=he=>{const ke=he.target,Be={...C.value,[J.value]:ke.value};C.value=Be},Ve=async he=>{console.log("🔄 Auto-filling form with data:",he),C.value={...he};const ke=he[I.value],Be=he[q.value],Se=he[L.value],K=he[B.value];try{ke&&!Be&&!Se&&!K?(console.log("📍 Case 1: Only region ID provided"),e&&await U(),t&&await ie(ke)):ke&&Be&&!Se&&!K?(console.log("📍 Case 2: Region + District IDs provided"),e&&await U(),t&&await ie(ke),i&&await j(Be)):ke&&!Be&&Se&&!K?(console.log("📍 Case 3: Region + Locality IDs (no district)"),e&&await U(),t&&await ie(ke),i&&await j(ke)):ke&&Be&&Se&&!K?(console.log("📍 Case 4: Region + District + Locality IDs"),e&&await U(),t&&await ie(ke),i&&await j(Be),r&&await H(Se)):ke&&!Be&&Se&&K?(console.log("📍 Case 5: Region + Locality + Street IDs (no district)"),e&&await U(),t&&await ie(ke),i&&await j(ke),r&&await H(Se)):ke&&Be&&Se&&K?(console.log("📍 Case 6: Full hierarchy"),e&&await U(),t&&await ie(ke),i&&await j(Be),r&&await H(Se)):!ke&&!Be&&!Se&&!K?console.log("📍 Case 7: Only text fields provided"):!ke&&Se?(console.log("📍 Case 8: Only locality ID (no region) - trying to load by locality"),i&&console.warn("Cannot load localities without region ID"),r&&K&&await H(Se)):!ke&&!Be&&!Se&&K&&console.log("📍 Case 9: Only street ID - cannot determine hierarchy"),console.log("✅ Auto-fill completed successfully")}catch(ne){console.error("❌ Error during auto-fill:",ne)}},ae=async he=>{console.log("🔄 Auto-filling form with data (skip reset mode):",he),C.value={...he};const ke=he[I.value],Be=he[q.value],Se=he[L.value],K=he[B.value];try{ke&&!Be&&!Se&&!K?(console.log("📍 Case 1: Only region ID provided"),e&&await U(),t&&await ie(ke)):ke&&Be&&!Se&&!K?(console.log("📍 Case 2: Region + District IDs provided"),e&&await U(),t&&await ie(ke),i&&await j(Be)):ke&&!Be&&Se&&!K?(console.log("📍 Case 3: Region + Locality IDs (no district)"),e&&await U(),t&&await ie(ke),i&&await j(ke)):ke&&Be&&Se&&!K?(console.log("📍 Case 4: Region + District + Locality IDs"),e&&await U(),t&&await ie(ke),i&&await j(Be),r&&await H(Se)):ke&&!Be&&Se&&K?(console.log("📍 Case 5: Region + Locality + Street IDs (no district)"),e&&await U(),t&&await ie(ke),i&&await j(ke),r&&await H(Se)):ke&&Be&&Se&&K?(console.log("📍 Case 6: Full hierarchy"),e&&await U(),t&&await ie(ke),i&&await j(Be),r&&await H(Se)):!ke&&!Be&&!Se&&!K?console.log("📍 Case 7: Only text fields provided"):!ke&&Se?(console.log("📍 Case 8: Only locality ID (no region) - trying to load by locality"),i&&console.warn("Cannot load localities without region ID"),r&&K&&await H(Se)):!ke&&!Be&&!Se&&K&&console.log("📍 Case 9: Only street ID - cannot determine hierarchy"),console.log("✅ Auto-fill completed successfully (skip reset mode)")}catch(ne){console.error("❌ Error during auto-fill (skip reset mode):",ne)}},X=o.computed(()=>{const he=C.value[I.value];return he&&V.value.find(ke=>String(ke.id)===String(he))?.label||""}),te=o.computed(()=>{const he=C.value[q.value];return he&&W.value.find(ke=>String(ke.id)===String(he))?.label||""}),me=o.computed(()=>{const he=C.value[L.value];return he&&Y.value.find(ke=>String(ke.id)===String(he))?.label||""}),de=o.computed(()=>{const he=C.value[B.value];return he&&N.value.find(ke=>String(ke.id)===String(he))?.label||""}),Me=o.computed(()=>{const he=C.value[$.value];return he?`${E} ${he}`:""}),Fe=o.computed(()=>{const he=C.value[z.value];return he?`${b} ${he}`:""}),De=o.computed(()=>{const he=C.value[J.value];return he?`${g} ${he}`:""}),Ae=o.computed(()=>[X.value,te.value,me.value,de.value,Me.value,Fe.value,De.value].filter(Boolean).join(", ")),Ie=o.computed(()=>{const he=C.value[L.value];return Array.isArray(he)?he.length>1:!1}),ot=o.computed(()=>y?!1:M);return{modelValue:C,isLoading:x,isRegionLoading:w,isDistrictLoading:_,isLocalityLoading:D,isStreetLoading:O,regionOptions:V,districtOptions:W,localityOptions:Y,streetOptions:N,finalRegionKey:I,finalDistrictKey:q,finalLocalityKey:L,finalStreetKey:B,finalHouseKey:$,finalBuildingKey:z,finalApartmentKey:J,labels:Z,selectedRegionLabel:X,selectedDistrictLabel:te,selectedLocalityLabel:me,selectedStreetLabel:de,selectedHouseLabel:Me,selectedBuildingLabel:Fe,selectedApartmentLabel:De,fullAddress:Ae,isMultiLocalitiesSelected:Ie,shouldShowHouseFields:ot,loadRegionOptions:U,loadDistrictOptions:ie,loadLocalityOptions:j,loadStreetOptions:H,onRegionSelect:pe,onDistrictSelect:ue,onLocalitySelect:ye,onStreetSelect:we,onHouseInput:Re,onBuildingInput:Pe,onApartmentInput:le,resetFieldsByRegion:re,resetFieldsByDistrict:ee,resetFieldsByLocality:Q,autoFillForm:Ve,autoFillFormSkipReset:ae}}const _y={class:"address-form"},Ay={class:"row"},Oy={class:"form-label"},Ly={class:"form-label"},Py={class:"form-label"},Fy={class:"form-label"},By={class:"form-label"},Vy=["value","disabled"],Ny={class:"form-label"},Hy=["value","disabled"],Iy={class:"form-label"},zy=["value","disabled"],jy={key:0,class:"mt-3"},Wy={class:"alert alert-info"},Yy=He(o.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:a,isRegionLoading:l,isDistrictLoading:u,isLocalityLoading:c,isStreetLoading:d,regionOptions:f,districtOptions:p,localityOptions:h,streetOptions:S,finalRegionKey:m,finalDistrictKey:E,finalLocalityKey:b,finalStreetKey:g,finalHouseKey:T,finalBuildingKey:v,finalApartmentKey:R,labels:y,selectedRegionLabel:M,selectedDistrictLabel:C,selectedLocalityLabel:x,selectedStreetLabel:w,selectedHouseLabel:_,selectedBuildingLabel:D,selectedApartmentLabel:O,fullAddress:V,isMultiLocalitiesSelected:W,shouldShowHouseFields:Y,loadRegionOptions:N,onRegionSelect:I,onDistrictSelect:q,onLocalitySelect:L,onStreetSelect:B,onHouseInput:$,onBuildingInput:z,onApartmentInput:J,autoFillForm:Z,autoFillFormSkipReset:U}=Dy(s);let ie=!1,j=!1;o.watch(()=>i.modelValue,async le=>{if(ie||j)return;if(le&&(le[m.value]||le[E.value]||le[b.value]||le[g.value])){console.log("🔄 Auto-filling form with existing data (skip reset mode):",le),j=!0;try{await U(le)}catch(ae){console.error("❌ Error during auto-fill:",ae)}finally{j=!1}}else a.value={...le}},{immediate:!0,deep:!0}),o.watch(a,le=>{ie=!0,r("update:modelValue",{...le}),r("change",{...le}),o.nextTick(()=>{ie=!1})},{deep:!0});let H=!1;o.watch(()=>i.countryId,async(le,Ve)=>{if(!H&&le!=null&&i.loadRegions){if(le!==Ve){const ae={...a.value,[m.value]:null,[E.value]:null,[b.value]:null,[g.value]:null,[T.value]:null,[v.value]:null,[R.value]:null};a.value=ae}try{H=!0,await N(le)}catch(ae){console.error("❌ AddressForm: Error loading regions",ae)}finally{H=!1}}},{immediate:!0});const re=async le=>{await I(le),r("regionChange",le)},ee=async le=>{await q(le),r("districtChange",le)},Q=async le=>{await L(le),r("localityChange",le)},pe=le=>{B(le),r("streetChange",le)},ue=le=>{$(le)},ye=le=>{z(le)},we=le=>{J(le)},Re=o.computed(()=>{if(!i.multiLocalities)return!1;const le=a.value[g.value];return!Array.isArray(le)||le?.length<2});function Pe(){return[M.value,C.value,x.value,w.value,_.value,D.value,O.value].filter(Boolean).join(", ")}return o.watch(()=>_.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),o.watch(()=>D.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),o.watch(()=>O.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),o.watch(()=>w.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),o.watch(()=>x.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),o.watch(()=>C.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),o.watch(()=>M.value,async le=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Pe())},{deep:!0}),e({loadRegionOptions:N,resetForm:()=>{a.value={},f.value=[],p.value=[],h.value=[],S.value=[]},getFullAddress:()=>V.value,getValue:()=>Pe(),autoFillForm:async le=>{j=!0;try{await Z(le)}finally{j=!1}},autoFillFormSkipReset:async le=>{j=!0;try{await U(le)}finally{j=!1}}}),(le,Ve)=>(o.openBlock(),o.createElementBlock("div",_y,[o.createElementVNode("div",Ay,[o.createElementVNode("div",{class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",Oy,o.toDisplayString(o.unref(y).region),1),o.createVNode(oi,{modelValue:le.modelValue[o.unref(m)],options:o.unref(f),disabled:le.disabledFields?.region||o.unref(l),"onUpdate:modelValue":re,allowClear:le.allowClear?.region,isLoading:o.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",Ly,o.toDisplayString(o.unref(y).district),1),o.createVNode(oi,{modelValue:le.modelValue[o.unref(E)],disabled:le.disabledFields?.district||o.unref(u),options:o.unref(p),"onUpdate:modelValue":ee,allowClear:le.allowClear?.district,isLoading:o.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",Py,o.toDisplayString(o.unref(y).locality),1),o.createVNode(oi,{modelValue:le.modelValue[o.unref(b)],disabled:le.disabledFields?.locality||o.unref(c),"onUpdate:modelValue":Q,options:o.unref(h),name:o.unref(b),showAddButton:Re.value,isLoading:o.unref(c),multiple:le.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),o.unref(W)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",Fy,o.toDisplayString(o.unref(y).street),1),o.createVNode(oi,{modelValue:le.modelValue[o.unref(g)],disabled:le.disabledFields?.street||o.unref(d),options:o.unref(S),"onUpdate:modelValue":pe,allowClear:le.allowClear?.street,isLoading:o.unref(d),multiple:le.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),o.unref(Y)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",By,o.toDisplayString(o.unref(y).house),1),o.createElementVNode("input",{type:"text",class:"form-control",value:le.modelValue[o.unref(T)]||"",disabled:le.disabledFields?.house,onInput:ue},null,40,Vy)],2)):o.createCommentVNode("",!0),o.unref(Y)?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",Ny,o.toDisplayString(o.unref(y).building),1),o.createElementVNode("input",{type:"text",class:"form-control",value:le.modelValue[o.unref(v)]||"",disabled:le.disabledFields?.building,onInput:ye},null,40,Hy)],2)):o.createCommentVNode("",!0),o.unref(Y)?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(`col-${le.columnWidth} mb-2`)},[o.createElementVNode("label",Iy,o.toDisplayString(o.unref(y).apartment),1),o.createElementVNode("input",{type:"text",class:"form-control",value:le.modelValue[o.unref(R)]||"",disabled:le.disabledFields?.apartment,onInput:we},null,40,zy)],2)):o.createCommentVNode("",!0)],64))]),le.showFullAddress&&o.unref(V)?(o.openBlock(),o.createElementBlock("div",jy,[o.createElementVNode("div",Wy,[Ve[0]||(Ve[0]=o.createElementVNode("strong",null,"Полный адрес:",-1)),o.createTextVNode(" "+o.toDisplayString(o.unref(V)),1)])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ae772fbc"]]),Uy={class:"age-from-to-form"},Gy={class:"form-group"},$y={key:0,class:"form-label mb-2"},qy={class:"row align-items-center mb-2"},Ky={class:"col-auto"},Jy={class:"form-label mb-0"},Xy={class:"col"},Qy={class:"col"},Zy={class:"row align-items-center mb-2"},ew={class:"col-auto"},tw={class:"form-label mb-0"},iw={class:"col"},nw={class:"col"},rw=He(o.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:"От"},placeholderTo:{default:"До"},timeTypeOptions:{default:()=>[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}]},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={age_from:null,age_to:null,time_type_from:null,time_type_to:null},a=o.ref({...s}),l=o.computed(()=>{const h=a.value.age_from;if(!h)return null;const S=a.value.time_type_from,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),u=o.computed(()=>{const h=a.value.age_to;if(!h)return null;const S=a.value.time_type_to,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),c=()=>{a.value={...s}},d=()=>{i.onFilterUpdate&&(i.onFilterUpdate(i.nameFrom,l.value),i.onFilterUpdate(i.nameTo,u.value))},f=h=>{if(!h.age_from&&!h.age_to&&!h.time_type_from&&!h.time_type_to){r("update:modelValue",null),r("change",{...s}),d();return}const m=[];h.age_from&&h.time_type_from&&m.push(`age_from[time_type]=${h.time_type_from}&age_from[value]=${h.age_from}`),h.age_to&&h.time_type_to&&m.push(`age_to[time_type]=${h.time_type_to}&age_to[value]=${h.age_to}`);const E=m.length>0?m.join("&")+"&":"";r("update:modelValue",E||null),r("change",{...h}),d()},p=h=>{if(h)try{const S=new URLSearchParams(h),m=S.get("age_from[value]"),E=S.get("age_from[time_type]"),b=S.get("age_to[value]"),g=S.get("age_to[time_type]");a.value={age_from:m?Number(m):null,age_to:b?Number(b):null,time_type_from:E?Number(E):null,time_type_to:g?Number(g):null}}catch(S){console.warn("Error parsing query string:",S)}};return o.watch(()=>i.modelValue,(h,S)=>{h!==S&&(h===null?c():p(h))},{immediate:!0}),o.watch(()=>a.value,h=>{f(h)},{deep:!0}),o.onMounted(()=>{i.modelValue&&p(i.modelValue)}),e({reset:c,getFormData:()=>({age_from:a.value.age_from?Number(a.value.age_from):null,age_to:a.value.age_to?Number(a.value.age_to):null,time_type_from:a.value.time_type_from?Number(a.value.time_type_from):null,time_type_to:a.value.time_type_to?Number(a.value.time_type_to):null}),getFilterStrings:()=>({from:l.value,to:u.value})}),(h,S)=>(o.openBlock(),o.createElementBlock("div",Uy,[o.createElementVNode("div",Gy,[h.title?(o.openBlock(),o.createElementBlock("label",$y,o.toDisplayString(h.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",qy,[o.createElementVNode("div",Ky,[o.createElementVNode("label",Jy,o.toDisplayString(h.placeholderFrom),1)]),o.createElementVNode("div",Xy,[o.createVNode(er,{modelValue:a.value.age_from,"onUpdate:modelValue":S[0]||(S[0]=m=>a.value.age_from=m),name:h.nameFrom,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderFrom.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",Qy,[o.createVNode(oi,{modelValue:a.value.time_type_from,"onUpdate:modelValue":S[1]||(S[1]=m=>a.value.time_type_from=m),name:`${h.nameFrom}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])]),o.createElementVNode("div",Zy,[o.createElementVNode("div",ew,[o.createElementVNode("label",tw,o.toDisplayString(h.placeholderTo),1)]),o.createElementVNode("div",iw,[o.createVNode(er,{modelValue:a.value.age_to,"onUpdate:modelValue":S[2]||(S[2]=m=>a.value.age_to=m),name:h.nameTo,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderTo.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",nw,[o.createVNode(oi,{modelValue:a.value.time_type_to,"onUpdate:modelValue":S[3]||(S[3]=m=>a.value.time_type_to=m),name:`${h.nameTo}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])])])]))}}),[["__scopeId","data-v-4b5f9814"]]),sw={key:0,class:"modal-wrapper"},aw={class:"modal-header pb-4 border-bottom-0"},ow={key:0,class:"modal-title"},lw={key:0,class:"modal-body pt-0"},uw={key:1,class:"modal-footer row justify-content-start pt-3"},Fc=He(o.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},size:{type:String,default:""},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},a=l=>{l.key==="Escape"&&s()};return o.watch(()=>t.modelValue,l=>{l?(document.body.style.overflow="hidden",window.addEventListener("keydown",a)):(document.body.style.overflow="",window.removeEventListener("keydown",a))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}),(l,u)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",{class:"overlay",onClick:s}),o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered,"modal-sm":n.size==="sm","modal-lg":n.size==="lg","modal-xl":n.size==="xl"}])},[o.createElementVNode("div",{class:"modal-content p-3",style:o.normalizeStyle(n.style)},[o.createElementVNode("div",aw,[n.title?(o.openBlock(),o.createElementBlock("h4",ow,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),o.unref(r)["modal-body"]||o.unref(r).body?(o.openBlock(),o.createElementBlock("div",lw,[o.renderSlot(l.$slots,"modal-body",{},void 0,!0),o.renderSlot(l.$slots,"body",{},void 0,!0)])):o.createCommentVNode("",!0),o.unref(r)["modal-footer"]||o.unref(r).footer?(o.openBlock(),o.createElementBlock("div",uw,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0),o.renderSlot(l.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],4)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a60564b8"]]),cw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFSa9lVVgjJPSCxe1l1KPpM6/7rfRwweXyO8I5+AoM4KfANO2539hIY+zc74irX3hcqkXm0iYJwnZhVNtH8Bk/BKbeSiY5ZPzBmBFC/ZoVgUqnvGG/kQLKR0Kw3dcvqtcCB5GICAW1jdRrb7xGrFr5rFSN3oYgHJdOb1vvl8n2UuAgTMQ9XZ3L/mF5oFyd+rSgt+KjyF4JHISJuDnZ2LdldVZ5bzHJp4REbmvbIIyFp19kLwSmMbcOBnEnXijUvPZc4M0+Ie7/aZNisfVeiuyFwCSubo5L4m57O1CJvojH5lqEu9BUiIurRVFOl4/3K1UOYiA8wE2BKYihm+fSmEtmGX0dEvmIdK3yL/SDy7glcBCJCFUn5C2/tiywvI+NuekRxWwMDFwCl3FrDP4MGqeK5rnrXwo83qunQhZRI161bka83OjBtCoU1DZQEIOLa46sKJe4OR473YODSPTeTiaOE2q3rQtUgJMWSYh/IYySq+ACATjLI9oKjbtPLpbWw2d2NckDmj5H//qGxGL92Weh9Y6bpSgYQVbE85Td0ng3TLWTPTiERLSqk7tmixV+rQpRFsbKKmVi7XZl8rE0WRhnq1799G+KW++ajR2hIsnvIaRNOhlbKVyENjiIkwLrHCv14UX3/z3rcXhMuEbOnrc4XnaKjAtTrp0mVD37cKB6tI9evgRsF0bHtsNBnHKyymBwrF5dFngBHvOTX8mF18+PL+mpuMR7m5WSy26ILaEvCHxCBsY7PTd2qgeTaQ4lK344VncvkYtWvBGfa2wnS3LpRUL9hDHCvulTEE2myW6tU/LNkugoU/OPy8Vyv0y2073YCYEpFFmnbXjvlcBPvZwWUa+7+o74E9o2mnsvnC9W/uJHUv2pfve2hXLx6j/FZ2nbaGxWh5fH4A+OjsVOmOiF2grlJXk957353vgD2jp57xRY6UpcgpIMKp8WH6MvRLKtuQXDSua3l8Af+uG0rPFwCLsC01JgmbZhdqnoaVbGPUvkFC+5pwkEt98k7Vs0T9QtgGyqUYp3NWEAfIDGYjiEXYFv1Fao5zzxoLQDHvLulrgubZXGfysW5Oc/lupzz0NnBmdbDAPKX5QL4A/9lAiGwAHsCqxzagrGCl2aRKcxesx2AivXTRVrtPWdu5Xu7lFynlggCAewI3Byf24nC2Z6G9T49QpZJ64aoYraGf9v+baoy8E+eAi+TZnK1Lk8Ett4ymADO6HKkLZC5vm7Nwuehv9ouqOt9z/NXpAib6jQqq0faPanB5NfUfnW/wQm6DUCixvbHBPYD/M8fYoYzT4L5Z2fYZzoqPf+jX7+RLWi+xWj5SBfJwwL2BF4mrZSdLHwCTyGzHGxgwGJdRvlYdq6XYtglQI1KPPuZkXbNA0WsToGJw846eTOWdKnyHDer1V0Y/rwocI++MC8W1P2YyUPk+kxVgXWiUvOzehekIqzdbt+p6AfVomgZ0khU0NzEBZwRODBZ2Z+tkbp/PZSbcDEjzm9lpF5KV8uS2eCWBU4qK2MHA5mFs+tQOL+WV1N0rbNLhF9TVQ4NyelB3sqcJ62MuECIWMFNhN3yiSh2u/tq7lDUqzimbCAVS9aN+DnDEYrMox0iQGUu/27JwOu5Ef1hPODzvRgqwIHtRWn559uc9t9cvHbG+MlX8f0gRKW9kslnmlc22TJi3akBxsjQCwTmtM+64NtSrG2LUP2J/sncKZMkczEJW/5+UcCy2+/yZ85bzpMYuqeCpxxkFk2itsXtrD2CYHJoVLXjXXi0nkgfWGXo9vbR5lg1TvINwYxnntUWo0+gFWBdUf1+ZXa0l2MWR8UxGB9r5TJM7V0PKIjAjd9rvQHwxjnug/c5V8IsruYPFP/BN7REPct86ErXl0r6xbtM2VhxOSZRmABqwLresCnETAr8MFD0PWETFkYMWarqByFBRzpwSYZCMxyTg4yQmA6oNzQFIEFrAqsS8850IwcMIrRugwckBlz3j3RlHywCCxgdR6sE3jPXqXHm728YsoliEb3C51Lf9MnC0yfXpvk8JGUTmMp583q3iQKmx3WNvy7OmtRb8jqYAGaIl1QHFtmaB4MC560nTFY9436/Wr5fHAc4eVVstEiWr6oy04ka7O2UvNPZQw4jrBha9y4ZWYzLGJH4LXayoc7FUsL0pxUdjfB2FnCsIgdgXVmg2K9xq0knJ5DgRmTM0XCsIgdgVPG4U217HrTmcKKVcpkQ9PbsHFNj93VpJQ9tWAMOkLp+vntpSOmxh6gwrqVMRnq1sIGEuwRUcvdajmNKnIcWWogoXHyxezkaF14rbz4w5249NhxZFPZ+IFSxNpnTEJ3MqlWcKqmiXruPWo5CYvY7cH0AXS9+DevxEvBCNRb6TgGY7tqBpmzNARduGVoot5r2TwTTiz460wILc2xYgbTLYKc/Jq95U3KOjE5/ulZ2MQJgcMweHms9GJa99UerpLksokic+vBDz4VNx76EobF8KQWp1J2HtVWWOnFFDqlS7a0bXQK0BuMpcdS7637GMYr8hzJF3PyKEPdYWh0oMlnW7LKwQB0/dymD+K5487HITpRB4wx5LLYz5q/1PkKEbWMgAPY9aK1NEFzngR5rPsPoqVkuuj7Ax2ZK7QWXyEemDBWPAbGoOMa/rpN5zkTN8Hi8qARJ7MqwzCMxZVvxWexnpDnJ2SaV1Wl+CsVcPCiaTcOBKdjDTuz8PNHoL5hY5bnB5NmApNuiM01GXvJNEfgEE6aaILmbDQFCSUbWo7g3IbdaL3lW+Jn4HRCOy1U3+A6QzM5q7YiV0bcSHxfCoN7v25DvMTPY3pZg54F7W40NEdguKnGCdza2UBOQmcEho4FpAND+XicEJeehWHrKj2rq+ACbgkcgWFuTEtgV86K9WmRaeFjzqL4vSbLgfSsInABp8dgLX9DIo/o8mTDiVacsfUf8TO/N0eyHaHJRK6cKS/YmxqOJHGfhEt4cTmlLgBCTByH2m3rsirQh5g0o72sriFlrTcMl0xzEi92F6ZM2usaMHnSjFhZXzDXZJbTiBtB4tm4iq8XRNPR+a8vE5czcKWNK5BDRWOuyZJlBImeG4HLeCUwEYSJyH5fguEWr6+Rh33/UVOHKgKPxCW8FJgIwkRkWtKbcY1Yxdoqj1XSneIDj8Ul3PSizUhmgJBnHUw2UqpPw6fKhev/Es/Jz0M0mCtm3LlbBI235Clv2aYU0//J8OMwEuIegId4LTBB+UUkMlmPkPYHB5qRu3ajUhjZhxMsrEL1BFoVuueh+H3/aYHZIeKUmTEHNnKrrOK1iTZyPxIXWqYcEUQbtV9/RnyB9bG5fIWc//wr8dI0t62RxaJ57jPwCb8FJoIwGZeT0Jz56cXietaE7kJYgoI5jq3rWoUFgZMsheF6Wi2UITJ7hljdncuu3KQbwlKvJZO8FAzAksBEEIkHMzfdG2haNWEs6u+cKdZ6dQcwibqpVhkTrlGmm3jGWsJqmQefe60W1gROEkLiSpngqd5EYo8ajsarp4r182eicXSe5Mj+ZPKGX3oT+bXb4/kf7kRhuvuHNYSRGGvDYAxWBU5ShkRvDnXnzRQZG3wGDo0cLkTHjxX25QzCicJxaMkbilaj+NUd69N0K/iuCLLpnJEDzUrOnr36Q9O6IAxGhc00aL9OBRKnCig+F/oM5BWHwHGc5GWYa+C9qO93/G1Lp776Besm+lQkr9ajMg0WT0Q/BeSt0876tbBxhILfZLLARpJ3OVEJInGvxKCOfw9Cas87oikk4NGOVyoRZKigHA6Hw+FwOBwOh8PhcDgcDofD4XA4jvJfXpsrRXCs/isAAAAASUVORK5CYII=",dw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsQSURBVHgB7Z1/UFTXFccPYBAQlF3AXyzyFAcnEZQ20RGiyUZmQnV0QjuNjTOtEKf+Uf+oZtI/2plOizPpTP5IJvEf0wwzCXbSMZGkMSPT1HaM64+A0U6DYmohUV5gHUF+LMrCWhToPd195HF5iLx339vLcj4zZ9h7Wcflfffee+65954LQBAEQRAEQRAEQRAEQRAEQRAEYYE4iB3SmSnMipitjbxWIvWa6emLmKr7+S2zxoj1QQwwkwVGwVDM55h5I69FgiL7mJ2O/IwJwWUHRa1kdopZgNmog3Yq8n+nAyEcL7M3wHlRJ7N3QXyPYQuyd9FeZr+P/JyStEce6V6RmtqSmZzc42HGXvescbt7lqSkhPLS0gb1773W359yc3Aw+XJvb0bv0FDKldu3PW3BoCcwNJTZffduDjwcPmaHmdWApMgqsBceQlgUdLXLdWnLkiWNZR6PnxfRLCj+kevX8z/r6FirBoOr+u/dy5jin6jMXmJ2DCRDNoEVCHd/3snekBgfP7hp4cKTTy1a1LL30UdbwAE+bG31HG5tLfkqECiaQuwaCAstjUMmk8D7mFXBJE6MZ9685j0rV9Y5JepkvHLpUtFHbW2b/QMDqyZ5Cwr8JkiCDAIr8IBWK4uwPGc6OzOqGhu3NQUCJdyvXgSJxuRoCzxpq5VVWB4Uet+FCxXYovEz/3njxt89lp39adY77/SDBERTYJz27OcrcYzduXz50dfWrWuAGQqbRw3FjY7WZ33wQdS/nNEQGFvrx2DQJa+cP7/xvU2bDovyhqNN/PBwU0ZtbVS/qE4LrEA4IqToK7HVbs3Orqt+8smTEGPEj4z0jKSm/j1aXbaTAitgIG7anDk9NZs2vc6mPT0Qq8TF9UNycl00RHZKYAUMxM1MSvLXlZa+Hitd8gOJkshOCKyAgbiFLld9dUlJ7awQNwI6X/fi4uqyjxzpBodwQuAvgQvMo7iflZUdhtmIwy05HuwFp0Ikrp7R0TQIhbZ17d6dBg5gp8AYxBg3z8Uxd1aLq8FEjg8Gn/16y5a5YDN2CaxAOEI1BnrLbxcXHwLi/4zEx2e4U1O/DzZjl8DoVI2FH3GeG/NTIROMJCQUdjz/fCHYiB0C4zquoq/AIAaJa0x8QsLjdo7Hc0AsCnBdM3OqGmSIUKlsEf8PTU0b8HVFXt6ljZJ84dg0JhGCQS97eRxsQPQ0CZf9KrWCLFGqc2zFZ9e5cy9ri/X4uf5RVvaKTHPw4eHhhsW1tU0gGJFdtBd04iI/ys09LkPXfPjatbX6nRj99+9nvNrUVAwSgV21HV61SIHf1RdwbVSWJT8maIpBXTJIBHbV6S5XAQhGlMCVwDlWB9evp/nuNBkdGSkU3YpFCVyhL6BjRV7z9LGjFYsQGEORXn1FVVGRLR7hbEB0KxYh8D59AXdlUOs1j+hWbFVgjFaV6yt+tnx5zO3KcBpsxSAIqwKjuGMhSZxfyr4LciaArbjrhReWggCsCvycvrDa7W4EQggj3KzELFYEntg95+XVAyGEfefP48xkXGTQDFZi0V59AbvnHbm5fiAs86uLF4vfV9XKSBF/qhA+yThtrLRgr76gpKXR2CsIfyjEH3ArB5NYEfhpfWHz0qVfAiGEggUL+J7waTCJWYG1/Bhj7FSUr4EQws4VK/jeEJ+1qdQRZgUeJ25mUlL7bNr+ajf4LPFwO1etgAmECJyemEiRK8EY+DSmcoKYFVjRF3JTU9uBEMrCpCS+0TgqcK6+UOBykcCCwSQyXNUCMIEVJ2sM95w5ISCEsmL+/Ki2YEVfeMzt7gVCKAXp6bzAjnrRlO3NeaInsHfRIsdOy80WDNbUHRWYmCGQwDEOCRzjmBV4XKo+X2dnJhBCwXyZXJWp9IhCBCbEc2NwkN+YHz2B/93b6wZCKFf6+vg1YRVMYFZgVV+4HgxOlW6XmCa9d+/yXfRtMIFZgb/VFwx2IBAWwQTlXJUKJjAr8Ljdk7dCIXKyBNMWDPJZ51UwgRCB1f7+fCCEEhga4ntFU1uShYzBeN7WwK0nTILP0uDeCB+YwIoXPe4bdcLv9wAhBLwvgqsyfaDASiTrtL7w6c2bptYriYn4OjrWclWnwSRWBPbpC1/19kor8FNZWRP2bMu8C4VNO/n7IHxgEqsCjwU8cByWNWSJB+JKFy8+jvm60Mpzco7+trDwEkhIbWtrjsHNLj4wiZWjK9o47NUq/tjcvIGtDdeBhLzv9eLnkvKz6flTayufHOYTsBAatrqa9Im+cLajoxQIS+DdTFzVMbCAVYFrQPftGhoZSTl09SrNiU2CdzIZdM9RFRjFHZdNp/qbb7YDYYqP2tr4HrAGLK7ciVjwH/cN8w8M5FMrnj6YjQ+fHVd9ECwiQmAfcF6ejK0Yc1Xuqa/fjIYPEyQDb1HjqnxgIcChkQBiwNWlSq1wh40jqQkJLeuysqQ4s4SClp869evLgcC6/9y+XfBXv79oW05Og3vu3HsgAfj5Dl69WslVHwABAovak+UDiVux7Lkq9zQ0/IKrUkHQ/YciN90d0BdwPEGvECRA5lyVmK7BYGHhRRCESIF9wLXit5qbK2RYZZI1VIld81/a2viergYsRK54RI3BGhgUr2SWhIXh0dFHLnR3L6hYudLyWGIF9AX+1d2NG9lyEuLi7m33eD5+7Yknop4Jd/fnn+9om3gP8Q9B4KZGO+5NqoJwWv8xypctO1pdUkIZ8HQwb770WFvbDq4ah7kqEIgdG9+rgPP+mNe6TcapSbTAZ4HPhKtWQbC4iF0nG8Z1MxjC3HX27Mu06+O76wXwmeiq8Vk9AzYgegzWwA/8X2Y/0CrwDzrW3l6wJTv7n7LMP50Ggy0/OXNmX9/Q0GLuV79h9jewAbsERs4zczHboFUM3r8/XwanK1psPXny5wbhSBx3XwWbcOJySrwky6uvWONyNZwsK6uBWcTmEycqmwIBPrjiA5u6Zg0nBMaDy5gFT9FXzhaRsVveXV+/w0Bcldn3wOZzXlG/ILq6uPiQLJdUiQYdKhaG3MsiVUanFJ4Bk5vZp4OdY7Ae/Jbi7o9y0KUiwDEZA/+PZ2Q0LktNjalMPR+2tnr2fvGFkUOlgkPiIk61YA0FDFoyboTb6vHUxUowBIMYOM/lpkKICg6KizjVgjW0HSA4fRr7ZmNIky3jrT5x40ZmXlpa+0xtzTjeoqdcf+tWKf5N3K99EBa3AxzEaYGRu8zeBm4KhXSyVRXsstsHBgafzc6eUcnFcVXopYsXf9k1cWUIwZ0ZOyH8tzuK0100z34Ix60npAjCDLbMAXtLdgfsUHNzfnVLy3aD+S2CPRbOc9+EKBFtgREFDMZlDZxOHSgqOi6b0FMIi2AwB0O2KkQRGQTWqAJuFUqPZ968lj35+cf3rloV1asDHkJYbLXYJVeBBMgkMKJA+MFUTPYGvPyjwO1u3JWXV/9jhy4BQVHPdHauOtvRsdnAM9bjg/BuDBUkQTaBNXC+/AZMkeVcE3t9VlbLTxWlRRGUdR694fdUNf9CV1f+lUDAaDM6jw/CY60PJENWgTUqIdyavQ/zZoyMuRITu9k0q73A5fK7ExMH16Sn93hSUkK8+Nr69OW+vozrd+5kYJ6RrlAoszUYzH8IQTV8IKmwMw0vhPcqjUpgAQh7xV4ghIPTqUoIe91Oi4r/536YYamUZe+iHwQ+aC+Ex2s8ES96iy5Oc3AToQ+4s9AziZksMI92lxOaAuF7JdIjr9NhYsvr05kK4dMZjRFTgdI1EgRBEARBEARBEARBEARBEARBAPwPLw1v/6g+hXsAAAAASUVORK5CYII=",hw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsQSURBVHgB7Z1/UFTXFccPYBAQlF3AXyzyFAcnEZQ20RGiyUZmQnV0QjuNjTOtEKf+Uf+oZtI/2plOizPpTP5IJvEf0wwzCXbSMZGkMSPT1HaM64+A0U6DYmohUV5gHUF+LMrCWhToPd195HF5iLx339vLcj4zZ9h7Wcflfffee+65954LQBAEQRAEQRAEQRAEQRAEQRAEYYE4iB3SmSnMipitjbxWIvWa6emLmKr7+S2zxoj1QQwwkwVGwVDM55h5I69FgiL7mJ2O/IwJwWUHRa1kdopZgNmog3Yq8n+nAyEcL7M3wHlRJ7N3QXyPYQuyd9FeZr+P/JyStEce6V6RmtqSmZzc42HGXvescbt7lqSkhPLS0gb1773W359yc3Aw+XJvb0bv0FDKldu3PW3BoCcwNJTZffduDjwcPmaHmdWApMgqsBceQlgUdLXLdWnLkiWNZR6PnxfRLCj+kevX8z/r6FirBoOr+u/dy5jin6jMXmJ2DCRDNoEVCHd/3snekBgfP7hp4cKTTy1a1LL30UdbwAE+bG31HG5tLfkqECiaQuwaCAstjUMmk8D7mFXBJE6MZ9685j0rV9Y5JepkvHLpUtFHbW2b/QMDqyZ5Cwr8JkiCDAIr8IBWK4uwPGc6OzOqGhu3NQUCJdyvXgSJxuRoCzxpq5VVWB4Uet+FCxXYovEz/3njxt89lp39adY77/SDBERTYJz27OcrcYzduXz50dfWrWuAGQqbRw3FjY7WZ33wQdS/nNEQGFvrx2DQJa+cP7/xvU2bDovyhqNN/PBwU0ZtbVS/qE4LrEA4IqToK7HVbs3Orqt+8smTEGPEj4z0jKSm/j1aXbaTAitgIG7anDk9NZs2vc6mPT0Qq8TF9UNycl00RHZKYAUMxM1MSvLXlZa+Hitd8gOJkshOCKyAgbiFLld9dUlJ7awQNwI6X/fi4uqyjxzpBodwQuAvgQvMo7iflZUdhtmIwy05HuwFp0Ikrp7R0TQIhbZ17d6dBg5gp8AYxBg3z8Uxd1aLq8FEjg8Gn/16y5a5YDN2CaxAOEI1BnrLbxcXHwLi/4zEx2e4U1O/DzZjl8DoVI2FH3GeG/NTIROMJCQUdjz/fCHYiB0C4zquoq/AIAaJa0x8QsLjdo7Hc0AsCnBdM3OqGmSIUKlsEf8PTU0b8HVFXt6ljZJ84dg0JhGCQS97eRxsQPQ0CZf9KrWCLFGqc2zFZ9e5cy9ri/X4uf5RVvaKTHPw4eHhhsW1tU0gGJFdtBd04iI/ys09LkPXfPjatbX6nRj99+9nvNrUVAwSgV21HV61SIHf1RdwbVSWJT8maIpBXTJIBHbV6S5XAQhGlMCVwDlWB9evp/nuNBkdGSkU3YpFCVyhL6BjRV7z9LGjFYsQGEORXn1FVVGRLR7hbEB0KxYh8D59AXdlUOs1j+hWbFVgjFaV6yt+tnx5zO3KcBpsxSAIqwKjuGMhSZxfyr4LciaArbjrhReWggCsCvycvrDa7W4EQggj3KzELFYEntg95+XVAyGEfefP48xkXGTQDFZi0V59AbvnHbm5fiAs86uLF4vfV9XKSBF/qhA+yThtrLRgr76gpKXR2CsIfyjEH3ArB5NYEfhpfWHz0qVfAiGEggUL+J7waTCJWYG1/Bhj7FSUr4EQws4VK/jeEJ+1qdQRZgUeJ25mUlL7bNr+ajf4LPFwO1etgAmECJyemEiRK8EY+DSmcoKYFVjRF3JTU9uBEMrCpCS+0TgqcK6+UOBykcCCwSQyXNUCMIEVJ2sM95w5ISCEsmL+/Ki2YEVfeMzt7gVCKAXp6bzAjnrRlO3NeaInsHfRIsdOy80WDNbUHRWYmCGQwDEOCRzjmBV4XKo+X2dnJhBCwXyZXJWp9IhCBCbEc2NwkN+YHz2B/93b6wZCKFf6+vg1YRVMYFZgVV+4HgxOlW6XmCa9d+/yXfRtMIFZgb/VFwx2IBAWwQTlXJUKJjAr8Ljdk7dCIXKyBNMWDPJZ51UwgRCB1f7+fCCEEhga4ntFU1uShYzBeN7WwK0nTILP0uDeCB+YwIoXPe4bdcLv9wAhBLwvgqsyfaDASiTrtL7w6c2bptYriYn4OjrWclWnwSRWBPbpC1/19kor8FNZWRP2bMu8C4VNO/n7IHxgEqsCjwU8cByWNWSJB+JKFy8+jvm60Mpzco7+trDwEkhIbWtrjsHNLj4wiZWjK9o47NUq/tjcvIGtDdeBhLzv9eLnkvKz6flTayufHOYTsBAatrqa9Im+cLajoxQIS+DdTFzVMbCAVYFrQPftGhoZSTl09SrNiU2CdzIZdM9RFRjFHZdNp/qbb7YDYYqP2tr4HrAGLK7ciVjwH/cN8w8M5FMrnj6YjQ+fHVd9ECwiQmAfcF6ejK0Yc1Xuqa/fjIYPEyQDb1HjqnxgIcChkQBiwNWlSq1wh40jqQkJLeuysqQ4s4SClp869evLgcC6/9y+XfBXv79oW05Og3vu3HsgAfj5Dl69WslVHwABAovak+UDiVux7Lkq9zQ0/IKrUkHQ/YciN90d0BdwPEGvECRA5lyVmK7BYGHhRRCESIF9wLXit5qbK2RYZZI1VIld81/a2viergYsRK54RI3BGhgUr2SWhIXh0dFHLnR3L6hYudLyWGIF9AX+1d2NG9lyEuLi7m33eD5+7Yknop4Jd/fnn+9om3gP8Q9B4KZGO+5NqoJwWv8xypctO1pdUkIZ8HQwb770WFvbDq4ah7kqEIgdG9+rgPP+mNe6TcapSbTAZ4HPhKtWQbC4iF0nG8Z1MxjC3HX27Mu06+O76wXwmeiq8Vk9AzYgegzWwA/8X2Y/0CrwDzrW3l6wJTv7n7LMP50Ggy0/OXNmX9/Q0GLuV79h9jewAbsERs4zczHboFUM3r8/XwanK1psPXny5wbhSBx3XwWbcOJySrwky6uvWONyNZwsK6uBWcTmEycqmwIBPrjiA5u6Zg0nBMaDy5gFT9FXzhaRsVveXV+/w0Bcldn3wOZzXlG/ILq6uPiQLJdUiQYdKhaG3MsiVUanFJ4Bk5vZp4OdY7Ae/Jbi7o9y0KUiwDEZA/+PZ2Q0LktNjalMPR+2tnr2fvGFkUOlgkPiIk61YA0FDFoyboTb6vHUxUowBIMYOM/lpkKICg6KizjVgjW0HSA4fRr7ZmNIky3jrT5x40ZmXlpa+0xtzTjeoqdcf+tWKf5N3K99EBa3AxzEaYGRu8zeBm4KhXSyVRXsstsHBgafzc6eUcnFcVXopYsXf9k1cWUIwZ0ZOyH8tzuK0100z34Ix60npAjCDLbMAXtLdgfsUHNzfnVLy3aD+S2CPRbOc9+EKBFtgREFDMZlDZxOHSgqOi6b0FMIi2AwB0O2KkQRGQTWqAJuFUqPZ968lj35+cf3rloV1asDHkJYbLXYJVeBBMgkMKJA+MFUTPYGvPyjwO1u3JWXV/9jhy4BQVHPdHauOtvRsdnAM9bjg/BuDBUkQTaBNXC+/AZMkeVcE3t9VlbLTxWlRRGUdR694fdUNf9CV1f+lUDAaDM6jw/CY60PJENWgTUqIdyavQ/zZoyMuRITu9k0q73A5fK7ExMH16Sn93hSUkK8+Nr69OW+vozrd+5kYJ6RrlAoszUYzH8IQTV8IKmwMw0vhPcqjUpgAQh7xV4ghIPTqUoIe91Oi4r/536YYamUZe+iHwQ+aC+Ex2s8ES96iy5Oc3AToQ+4s9AziZksMI92lxOaAuF7JdIjr9NhYsvr05kK4dMZjRFTgdI1EgRBEARBEARBEARBEARBEARBAPwPLw1v/6g+hXsAAAAASUVORK5CYII=",fw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAx0SURBVHgB7Z0LcFTVGce/u5uEsIEERCwqCWuxCegIEeuMoNWlGa1aHNEp4LMkU6TYcSo01WmnCrRDW6yNaOvQglDCDMprBoIB2pEiQcqjDyCI5RFeSwKKQiAE2Lx293r/7N7M3ZPdkNx77mM35zdzZnPOLiS5/3znfOec73yHSCAQCAQCgUAgEAgEAoFAIBAIBAKBwAASpQ79lOJVSqFSRkbrhdFXtWhpiBa/5vWkUqqjpYFSgGQWWBXwcaX4ol/zBCJXKWVr9DUlBHc6ELVYKVuUckEpsoVlbfR79yMBd3xKmUfWi5qoLCH+PYYpOL2L9illVvT1mmRnSfVD81w1gwZK5/JudNUPHSLVj7otrX7wzdRUkJcW0H72cG3Qc+o09d5zIDigvoE8nx4KDT5eG8493ygPOHtezqWuUaWUpUopJ4fiVIF91AVhIeiI4a7qe0el1ZRMSKthRdQLxF+yOpj/0bbgyKN1oYJLl2nANf6JXyklFBHcUThNYC9Fuj9fog9kpFOgaHTa5rH3uGte+VFmDVnAsoq2wQtWt4zZdyhUeA2xy5UygxzkkDlJYFjsdErgxOTdKB1+6fmM9VaJmohflDUXflDZWlT3hZyf4CMQ+G1yCE4Q2EsRDzWu0+IUYVk27wwOeOWN5nF7D4bGMG+hqy4nh2C3wC8rZTbFsVqnCssCoUt+GSiGReNn/nBB1syR91zeKN1Al8kB2Ckwpj3T2UaMsSVPpq/66288OylZkaRWCkm7peEX9pPN2CEwrBVdso99o+AWV/W6hb2X8vKGbccV3i9965Ktf6hWC+ylyCqUV9sIqx3/YPr6lfM8mynVkORL1K+x0q4u20qBvRRH3L59qH7tu1llytSnnlIVG0W2SmAvxRH3+gF06l8rsspSpkvuDIgckj+Shl+y9A/ZCoEx5u4lRtw7h7t3LP9T5uoeIa7KVecrVGmlyFYIDHFj5rgQd09Fn6XUE7G4u3aRuWB1SoirRZb6UkP2Y/JX1IcswEyB1UWMdjDmolumng5Ers/5nvwZZZDJmCWwlxhx4S2vKMua36PG3M5wKZsWvfreRSZj1hh8gjROFea5G9/LmpPSUyG9hF07zVzxMsOCMe56tQ1YxBDiJsAt32XmeMzbgr0Usd527rzNvXPP2j7lJEiMFP5cyr+0nkyAtwXP0lYw7r75amYlCTpHdt0kH+x/B5kAT4F9FIk6bOeZ76dXiq65i6CrNsGr5tlFxzhWA6+T6r7amT2HBF0nTMoW48XdxBFeFlxMjGO1/C3PX0jQPdzSHbytmJfAk7UVOFaia9aBLGeQO4frWMxDYCxF+rQNwrEyAGcr5iHwy9oK4pKE9RqAsxUbFVg9K9TOc+MyUi8qw2oUKyZOGBV4vLaCee9vf565j3oIOAGRN7axVCq4uKDg4cYXUSceKFYs+z03EgeMCvy4tjJymLuaeggQ8ztPBUrrPo8EwNeckAtnzmsdTbxocnuJA0YERvccY8FTf5CevKGu3eTxqU2Tz9bLg7Vt/fsSt52y4l81F1PkGE8xGSCN9OPTVtA9P/9ErzrqAYx64nLx4RPhmEAG7HXPmJLBZXiaNrNp9NI1bcXRKl79pPNgmxEL9mkrt+a5HX0CgRf3P3tl4t4DoZiumPded+0XYfaA23jSiRGBH9BWHrk3bS+lOI9OvfLYtv8Fi7RtZoT9jhjmPsU0PUA60Suwmh+jnR9OTDtCKQzE/fvW4Dhtm1kx3VMm9GJ7QzWZTLfRK3CMuNhYSOVQHCvFBbfmSQEcbmeavaQDLgL3z6GUXbmyWlyVoXmuw0yTrpwgegX2aitDc90p6T2/MCswhhUX8WXzX/fMN3s5dtDADhZsqcBDtJU7C1JPYIi7aEVbzC4ZxF08x1P23Pj0U2QySCLDNOWQDow4We1c15+aKIVATg5WXDCjJH2pFeICZAhimuzrogtvS53dI4g75bWmUrb9hUnp5XNLPZYtxY7q+Ewt9aJjvhnyUFEKgHQMELelTY7ZNJj4aPqqhRZnHBhys5t9pvYJnApTJIj75EuBDuI+cn9apR0H0zFVYposFdgyTNuS06CK23hZjlkihLgb38syJV7ZKhwv8LxFbSO1W3LYouMpciqLCxwvcEOj3Ftbxxbdg5MDLxIHUl1coFfgmFR9ZnSbKnN+1nuXshQaMzWBRWPLjgyAnzmeuPd9273ZCeIerZXZZ6orPSIXgZG1lUwCzsaOlX3LWJGxZadXZDUagxUXh9O3vd9nFTmAk6dD7DO1T+DqA8FrZWM1BERe/pZnPtaAte16RYa4bDQGcnQ5KfPAno7P1E860CtwTOTCkZOyqQIDrP1igT+eyNgQ6Or/gz8IVlxEYyABGzkI5LBmmi6SDrhYcJwIBFNIJDI2BLoiMsRlozGcmsoJCcqZJj/pQK/AMUt2Z87J15NF6BUZ75kdasOTY3UhNuu8n3TAReBjteF8spDuimzXnq4RLlwk1mh0rYPrFdivrcAbNXOqFI+uipyM4mKKdPa8zHbRugR2kz6aKRLpN0htyM50HS8ak/YlWcg3c11Nud9wH96wte3uUJjS1fajJ8P5/9kfkt6vbCtINnHBHxa13L59d+huTRPEfYd0YGQla6u28sneYAHZAPZnsQmPzXhtO4SNF42RDIlPcRkI07SVdGJE4Apt5dNDYdvuEUokshY1GiMZTj4eqwuzxlJFOtHbRQNMlaYpJROVllby9PVQzZhR9jzAEcPcjZm96MSm7R3uULhK+e89c62KxjDC0nUtuSs3BB9mmrH23kw6MGLBEDhm4N+8K2SpN82C+x0QeaG1ZHyNtmQQFyxeFWQPsK0jA9f0GE3CUkyRA1JXwcNs+SxnBtkMdonK/tYyOidLCkyZlLEvmQ6k59zV+DtmjdzQLS5GBUaUwQnSRBv88dVeZaUOvynFqeBOpjcWtmi3QmG5t5ABCza6H4xvHLOG+86y1i6vCwti+WB9axHTBEdWt7iAx4Z/jDeNvdqyxc22jsXJCIYVNXJFg665rxYeAlcR48YLK+4+uEWNaaoinatXWniF7PxaWxFW3D1gvXGuyOOyfckzlSFuVfGpldybpJraLdllJLgmN4xufJ1Ze/ZTxLkyDM+guw5WjFQEJOgUPKM4GwslxAmeAlcRMxYvWdM60epdpmQCXfPyDW2sv1JOHC+aNiMhOFI5tM+L82+Rqg//I1skJo3DqPGXJ8cZe9E1+4kTRtai44E5G6IBfWpDfQMNOng83DTh4fQTJGhn0oxAkWLB7JozhrkK4ogZge+ziXHvKza1jUN3RIKr4Fms2xRkp0V+Ym6q4YFZJxueIM0KTGsbXQ0yF+NxwkNueFZjyQTMEthPjFeNBXTe54qSDfzuT5cGfsIG3FPkWfnJBHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",pw={class:"row mb-3"},mw={class:"col-auto"},gw={class:"image-container",style:{width:"90px",height:"90px"}},bw=["src","alt"],vw=["src"],yw=["src"],ww=["src"],Cw=["src"],Ew={class:"col"},kw={class:"confirmation-content"},Sw={key:0,class:"mb-3"},xw={key:1,class:"text-muted"},Mw={key:0,class:"row"},Rw={class:"col-auto"},Tw=["disabled"],Dw={class:"col"},_w=["disabled"],Aw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Ow=He(o.defineComponent({__name:"ConfirmationModal",props:{title:{default:"Подтверждение"},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},a=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(o.openBlock(),o.createBlock(Fc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":o.withCtx(()=>[o.createElementVNode("div",pw,[o.createElementVNode("div",mw,[o.createElementVNode("div",gw,[d.imageSrc?(o.openBlock(),o.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,bw)):d.mode==="success"?(o.openBlock(),o.createElementBlock("img",{key:1,class:"w-100",src:o.unref(fw),alt:"Успех",onError:c},null,40,vw)):d.mode==="warning"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"w-100",src:o.unref(hw),alt:"Предупреждение",onError:c},null,40,yw)):d.mode==="error"?(o.openBlock(),o.createElementBlock("img",{key:3,class:"w-100",src:o.unref(dw),alt:"Ошибка",onError:c},null,40,ww)):(o.openBlock(),o.createElementBlock("img",{key:4,class:"w-100",src:o.unref(cw),alt:"Подтверждение",onError:c},null,40,Cw))])]),o.createElementVNode("div",Ew,[o.createElementVNode("div",kw,[d.message?(o.openBlock(),o.createElementBlock("h5",Sw,o.toDisplayString(d.message),1)):o.createCommentVNode("",!0),d.description?(o.openBlock(),o.createElementBlock("p",xw,o.toDisplayString(d.description),1)):o.createCommentVNode("",!0)])])]),o.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":o.withCtx(()=>[o.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(o.openBlock(),o.createElementBlock("div",Mw,[o.createElementVNode("div",Rw,[d.mode==="confirmation"?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},o.toDisplayString(d.cancelText),9,Tw)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Dw,[o.createElementVNode("button",{class:o.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(o.openBlock(),o.createElementBlock("span",Aw)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(a()),1)],10,_w)])])):o.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-5b40270e"]]),Lw={key:0,class:"filter-modal-wrapper"},Pw={class:"filter-modal-dialog"},Fw={class:"filter-modal-content"},Bw={class:"filter-modal-header"},Vw={key:0,class:"filter-modal-title"},Nw={class:"filter-modal-body"},Hw={class:"filter-modal-footer"},Iw=He(o.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=a=>{a.key==="Escape"&&r()};return o.watch(()=>t.modalVisibility,a=>{a?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(a,l)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[a.modalVisibility?(o.openBlock(),o.createElementBlock("div",Lw,[o.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),o.createElementVNode("div",Pw,[o.createElementVNode("div",Fw,[o.createElementVNode("div",Bw,[a.title?(o.openBlock(),o.createElementBlock("h4",Vw,o.toDisplayString(a.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),o.createElementVNode("div",Nw,[o.renderSlot(a.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Hw,[o.renderSlot(a.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),zw={key:0,class:"px-0"},jw={class:"modal-dialog modal-dialog-centered modal-xl"},Ww={class:"modal-content py-2 px-4"},Yw={class:"modal-header mb-3"},Uw={class:"modal-title"},Gw={class:"modal-body row"},$w={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Bc=He(o.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(o.openBlock(),o.createElementBlock("div",zw,[o.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),o.createElementVNode("div",jw,[o.createElementVNode("div",Ww,[o.createElementVNode("div",Yw,[o.createElementVNode("h3",Uw,o.toDisplayString(t.title),1),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),o.createElementVNode("div",Gw,[o.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",$w,[o.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),qw={class:"row mb-4 mx-0","data-test":"PageTitle"},Kw={class:"col-12"},Jw={class:"row align-items-center"},Xw={class:"col-auto"},Qw={class:"col d-flex justify-content-end"},Zw=He(o.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",qw,[o.createElementVNode("div",Kw,[o.createElementVNode("div",Jw,[o.createElementVNode("div",Xw,[o.createElementVNode("h2",{class:o.normalizeClass(["mb-0",e.titleClass]),style:o.normalizeStyle(e.titleStyle)},o.toDisplayString(e.title),7),e.subtitle?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:o.normalizeStyle(e.subtitleStyle)},o.toDisplayString(e.subtitle),7)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Qw,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),eC={class:"card-body"},tC={class:"card-text"},iC=He({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",n.bodyClass])},[o.createElementVNode("div",eC,[o.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),o.createElementVNode("p",tC,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),nC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},rC=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("footer",nC,o.toDisplayString(e.copyrightText)+" "+o.toDisplayString(o.unref(Ce)().year()),1))}}),sC={class:"custom-dropdown"},aC={style:{"border-bottom":"2px solid #000"}},oC={class:"dropdown-list-wrapper"},lC={key:0,class:"custom-dropdown-menu"},uC=["onClick"],Sa=He({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=o.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},a=o.computed(()=>e.type==="profile");return(l,u)=>(o.openBlock(),o.createElementBlock("div",sC,[a.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(n.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[o.createElementVNode("span",aC,o.toDisplayString(n.title),1),u[1]||(u[1]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),o.createElementVNode("div",oC,[t.value?(o.openBlock(),o.createElementBlock("ul",lC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.links,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d},[c.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onClick:f=>r(c?.action)},o.toDisplayString(c?.title),11,uC))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-efc16eec"]]),cC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBjlpzhAyj/IExyNLH0AbQI+Z3W63++5krcuRFTlpzgi2bTcBrGJ6N8wVQrRyV+viICfNGaBer7eOUb7i+r6/kq/5v3jISXPKmJYwzOwxcyOfWS4uYqRxHMc6ODjI7EJMMxIuLS0dN8cw1bVqtVoVwXr5v4yOMXPfNM3vp9knbGTvcUd7uVvMk6znn/ZiMd4tOyjgbuSggEc39o+9/RO/LVcg6D6YqxBcBSjoOwQPDA8GXPzfwTO63Z/4m3i3XEEBD7NfHO9A8OjL/an3fuMdy8KlxWWAb4GoCpb5L4IHcB9Emxhgi27ux/77GGlG+2lNaUOPmXtCiLWkDiYVo0nFhKnwff9aUvsyEdhk5kdIiRvkPmGbvu9vTCLD0tJSxTCM1W63uzKtrZpdYlLBzK3TTDzybrkCEzp7PLq+f+1Y7RXwBJxJ1PDAeEo39lP7Ff/zi2Uoq04zgagPwRuT2gckWT5bbMKgR2CeNDlo7Y4VbMqs87SoElHDMIznSbOJEOKu7nhWMLOXRsjBYLAj3aDUG0FEFQDNNFtHePXqlUdEy47jTJ1DGQwGy7gghAEAGGgk2FPhHWuq38dvLjdRoJ2MhAGACgirvFdOn3WZj9dHmK2g/f9OXWTHu+UKLi3ugLCagTBAgt26Kudjl40TUcU0zaQbM2s5unY7IhkzZB7RRyCiShbiAOgfHR09mqZtiUzfOQvC8G65AkJyXFUqZr53/EO5BebH2k7H8ADqAXAB0rljjfSOzTP2EWrybllLZN67UkWBkqvAA9uTXMiI3ZGCTRkLRG4GM29C02GJyEJABNVIp16vO2rsoJnBerLtTDAMIxYY27bdTAiyXSHEJhFtAfgFwOcIZsNVhG5aiOT3Ui7dJ6Km4zgbWWMN6Zpl6YhnUwtmphAGABbMW0gYlMLgN5eb0N1vRgtFatNff47kjni33ICBVVC4o1KTd8vP6KYmDlFnLqJNgNf11hgWWDSh9j+T7wOItM275QrgfwdWvBCGB+Ymfj/cGsVc0o1dRVClETZmbHeENKZpVoQQkVMHg8Ha69evE2+oLtj1ff9W2HDZiSIGCyHa29vbG0ntToJsUx21+oZhrMjNJcJ4h6BTtG3bbgORYFNL8hB6AKpHR0ePAWSKbXzfnzhiMrPX7XZPfWsl3rtSBfxoByDaBPPy+L3gKoBUMYB3yxUwR+83wwOZD+jGT9r+QTf327x3pQcSzyMzk65jB3ZGG/BFm756n6gi8tvKFoaHbyNts2YmKdBjMEePM9r47eBbVaCQgf8K/1D2QIjGSAGZ3Ih7pos70ggDAN1ut60ek7PQGLpONBwOZ5JUZWY9jL7v+7c1hImgWCw2oezWIuu/tBBCjDbga9y5c6eZxbbhcPiXtM9H+y5naWt2+Gpg3Qbzs6hBGVzb2GxFfQjco+t6wozPuv5TTzNbNGInmpqY1xepVQ90zesDHL2+0vd4r9yIDBAAwPDoxv5KmqJHN/bXoBAbgMM7lqWup1E790QpT474qedoyNifRMY0SCVOdfeaWaRh13X7tm2vAbgvt2/1kOKaSBcPAGAYxuM7d+5ge3s7wWUYf2eSGNFSbR2pf0IIPimXjffK8eDfxxpM04qM6kFVdXI7u+UK1I4uRItuvs8mxRcWNzA47IPIA9M7FMQvsXN8NZ7hPv3P/6b2kWD2U9wz5igRCA/ByhdFqjsexlOo7t+fFu6qpInFHZNaHQwGOn9Z/Z76p8y0x7AQ4hHRR7VcujqZcw2dTmcdQGrHH6Hb7fZs2+5DxnqGYTyu1Wq30uR1qdAlYV19LEZYniYiF8DMpJGKmPLf8DrdfO/x24qFQcQVqvCOZSWOvOosw/Doq/eZXetgRkD6+URVcLh30+Q+YlITMUbQ2NPQkgpo63IvCRfoxVzGAn2caaQIEIEsMddCjowtZm4o3/G63e4z5XS1batWq2XOkodHXvlQo8h0e4y80rRoAxi7ZkTUME2zUavV2qZpPjNN080iEjCzVyqVYoQI53NYHSmPi88Wo0ugGR4EbQBBJ+Y3l/uRWCBQ0JI6qhKgT/ZApkFA4oNoH0m4Bu9YFv5jsQpgFaq3wfAg8NHtL9F9+Aqp/CkGJN/vw4wfDs80uil6eUQmIrJY3mQiqkp1KOaGMEf9V50ih0DJyiov9hAaeX3fj0mKvu+faskJET1j5lg8Q0QNIURDCAHbtl3DMDZevHixycxWeCYcgZkbKrlqtZrqQs2803+CxNxSRlgP4f88QUGTAXp05iTE4tjg3D9XQebk/MevB73IrDY80PQFakr3MozADnVyGRsQzKTj90KNZbiX2aUEgAIqumuNSUNEsUCMiBrK+9RrMHNLo4jNmp+JjDhy6W/4UD/JTbJtO+n2Rr7f6XQ+Tzvh5cuXrm3bLtJL+h3f9z0AmwkxTdLa/IgIIYSY/YlmOndKLZVh7iH83yQpaAZXIJRjvx58r70uFZ6AM+RaSsXbCBPUoFuxGSEYoDMmXakPIVpxl5GqEYZNO0OSYYGVH8/wwurZLJ3bFUI4ugBWR8Ypcaz4SOduZmxfi2KxuIJgdE7D6HM11+UVi0WtWxCKf/pCiExiRhqCmSGmTsXdV1OJGZIUNOKYEpgY+2QhjC7AF8dcjMfwwGjh/3+/phKG31YsTQJ2unsrRFxV/fXg+wIwjhPUHzxSlkaI/TAhRJOINicsiIq0KxOamaRbACiVSh/C79VRPCkGkOvts1wiE2lc1/Ucx7k3oZ5s1FbkcyJqJcU8zNwCgJNbealIzAwPJWzx23LUZnX2SHKXRbaOx2/KTqLbFL1Q/H7HyeaCpQtIZMlKAUW942aqGHFwYMXiESMx458EVZnr0e1+vwAAw+EwdsOEEJHydF0BIhE53W430XAdGZnZ3d7ePvVVh4ZhEPSSeeRGpIkdKiYRZzAYvJO/edzRmLmdpuxpRJNjQysxEyoY4K3mbPVAuoIWOk97dAhP1rdFESQIK6H3mmy92iZv0o33kXsWSzYaaPHf/7w1SZaOID4AJEJ7L0HrwaUxzuBHsLCwEPFbXdf1iCiSESeiZdu2E0u5dWTE7IFuZKRLknc7nc56p9O5F35JFysCIYTeP09A6KljkWCYmb3Xr1/31N8shDiTLZP0EvOU0NWgMWIDHP/rctxlu7nv0Y39p+pLTTbCV5KRRSPeRyg+G8WTjWShaCbWsell5WziU+K9lMqcEdhI6ujr6VwFWWqiKifrSVXAOjKewOIq1a5q1ipkTWVCooiQBtd1vU6ns8LM4TjHldcY/2Zmbp/ZyktVYj4OAgVNgRkf5IZiOX5eHLx3pRqLK34/jP7/mspm+nJf30ficrGTVKApoXgRvJypovvSn6KzIwDwR/VxRJrMyUciUl0NK6kKWFOkObO+T0QxdyYhwRqDpjJhplmv2+22O53ONWZeMU3zGQAYhjHuUMyslWZPGlqJOVDH2qkvVuITEQ/k6fpPPZAaC1BTulXpIBHLo8TdP+WazMl9LyjyjPahtGLUmFpGFi4tpq7X4b3L6wBH+zPDw28H4zCkoKvITfPzdfJrUhWwxnWaOQchr+8hOhI06/X6h5cvX2qTnMr+YmNME8+kYVR/J+MZR7btndmSZY3EDEEPJmW++c3lx4jkn5LKf3gdUQWuAhPP+Z/lVnhV5jjxKODAwN1Y8lGtEwuuqcjCEyoBTNqEH2nX4d2yo62aLixuYHjYVGY7h/fKb0FYGa345B3Lwn9+5kD4q9rlCWQ+CJO9kFCRm2q4YRjrQkRGEevw8PAhQqUSCYpcw7btTFP7CMzsqOqcYRjfap4ruVqr1R5K2/vAmLRVTlhwdFKkGeHo6Gh5pNgR0Zm4Zdq6MDXJlwQDnlIlond1CosbODpoREv8UYFAG5cWwW8u9+V1LTCC9cA6JU0VAfauVMG+Wq6f/p8YC08hDlvRqumg+jh2uWten/9xeQ0G1NinAsZz3isHqz6ZLQgB7ZYZjIZaxW1kEQFUmKa5BSW2MAwj8scliAAWghki80snZ8use2xWkY8CXyaihkzMOkhOkPUm/c5pQUThaf0kdsycjGAJ80dMUxfGpN5brctF17w+BO7F3LlxO6zLiahow1dda82APfRT/xNZx6a6vYmxDX318zpYk6caIcluhgeYt3X7Jxi6xWGT8gWu6/bVchkA1fCj6WZd3jy6VNIH3W53TUecjG02Op3O7ZPcwEL+9nAnqNbr9VOtidPLoikdRMVAxMtmNMoYINWooDp4ijiN+mC04OMaXd9fibmLRMqAPbmyGQAw5LhMbyYv76Ab+2vwsZJIep3Nvx3cTlr2UGDmD7KyNjA7o8tiGMaWeq4kiguMk5AzuT9CiNS1Md1ud81xnKdSCBjtQKNivAl4hkTsscHMMemdmVdt277r+/6KYRiWEOJYal0i/HhuZJqdZejmvsc/KPVdh5yYER4v0Notr8Gk+yA40iUL7eQilzwT9+jLn9NjuiE/gxEKBTimjCbZ4fKbL5YhRHjxWep36eZ+G0Cb33xxH+w7QSxFwQxpUA8sPDD18NvvE3fOmbt9z2q12nikLJVKH85qf2Pbtp8juTbNJaI1IcQT0zS/nbRQLsfFxtyR5qwh1cdHzPy9ugeBRB9Ar1gsPhgMBr8AABHdm2b/tRwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",dC=["src","alt"],Vc=He(o.defineComponent({__name:"Logo",props:{src:{default:cC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=o.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=o.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=o.computed(()=>"r3ui-logo-container"),a=o.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",s.value])},[o.createElementVNode("img",{src:t.value,alt:l.alt,class:o.normalizeClass(i.value),style:o.normalizeStyle(r.value)},null,14,dC),l.brandText&&l.brandText.trim()&&l.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(a.value)},o.toDisplayString(l.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),hC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},fC={class:"row align-items-center"},pC={class:"col-auto pe-0"},mC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},gC={class:"row"},bC={class:"col-auto d-flex align-items-center"},vC={key:1,class:"text-muted"},yC={class:"col-auto"},wC=He(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,a)=>(o.openBlock(),o.createElementBlock("div",hC,[o.createElementVNode("div",{class:o.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:a[0]||(a[0]=o.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",fC,[o.createElementVNode("div",pC,[o.renderSlot(s.$slots,"logo",{},()=>[o.createVNode(Vc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",mC,o.toDisplayString(t.brandText),1)])]),o.createElementVNode("div",gC,[o.createElementVNode("div",bC,[t.isAuthenticated?(o.openBlock(),o.createBlock(Sa,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):o.createCommentVNode("",!0),t.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vC,o.toDisplayString(t.loginText),1))]),o.createElementVNode("div",yC,[o.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),CC={class:"col-12 divider divider__wrapper","data-test":"Divider"},xa={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("div",CC,[o.createElementVNode("div",{class:o.normalizeClass(e.className),style:o.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},EC=n=>{const e=o.inject("sidebarContentVisibility"),t=o.inject("toggleSidebar"),i=o.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=o.computed(()=>n.value),a=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return o.provide("expandAccordion",r),o.provide("expandedAccordion",i),o.watch(n,()=>{a()},{deep:!0}),o.watch(()=>e?.value,()=>{a()},{deep:!0}),o.onMounted(()=>{a()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},kC={key:0},SC=["href","target","rel"],xC=["innerHTML"],MC={key:1},RC=["id"],TC=["innerHTML"],DC=["id"],_C={class:"accordion-body"},Nc=He(o.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("SidebarLink",!0);return o.openBlock(),o.createElementBlock("div",null,[n.sidebarLink.childrens?.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",kC,[o.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal?"_blank":void 0,rel:n.sidebarLink.isExternal?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=o.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,xC),o.createElementVNode("span",null,o.toDisplayString(n.sidebarLink.label),1)],2)):o.createCommentVNode("",!0)],8,SC)])),n.sidebarLink.childrens?.length?(o.openBlock(),o.createElementBlock("div",MC,[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[o.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:o.unref(r)&&o.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>o.unref(i)&&o.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,TC),o.createTextVNode(" "+o.toDisplayString(n.sidebarLink.label),1)],2)],8,RC),o.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:o.normalizeClass(["accordion-collapse collapse",{show:o.unref(r)&&o.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[o.createElementVNode("div",_C,[o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.sidebarLink.childrens,c=>(o.openBlock(),o.createElementBlock("li",{key:c.uniqueKey},[o.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,DC)],2)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-e09a8337"]]),AC={key:0},OC={key:0},LC=["title"],PC=["innerHTML"],FC={key:1},BC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},VC={class:"hidden-div"},NC={key:1},HC=["href","target","rel"],IC=["title"],zC=["innerHTML"],jC={key:0,class:"ms-2"},WC={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},YC={key:0,class:"ms-2"},Hc=He(o.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(o.openBlock(),o.createElementBlock("div",AC,[n.link.childrens?.length?(o.openBlock(),o.createElementBlock("div",OC,[o.createElementVNode("button",{title:n.link.label,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>o.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,PC)):(o.openBlock(),o.createElementBlock("span",FC,o.toDisplayString(n.link.label),1))],10,LC),o.unref(r)&&o.unref(r)[n.link.level]===n.link.uniqueKey?(o.openBlock(),o.createElementBlock("div",BC,[o.createElementVNode("div",VC,[o.createElementVNode("h5",null,o.toDisplayString(n.link.label),1),l[3]||(l[3]=o.createElementVNode("hr",{size:"1"},null,-1)),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.link.childrens,c=>(o.openBlock(),o.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[o.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",NC,[o.createElementVNode("a",{href:n.link.href,target:n.link.isExternal?"_blank":void 0,rel:n.link.isExternal?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=o.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(o.openBlock(),o.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.link.icon},null,8,zC),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",jC,"↗")):o.createCommentVNode("",!0)],8,IC)):(o.openBlock(),o.createElementBlock("button",WC,[o.createElementVNode("span",null,o.toDisplayString(n.link.label),1),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",YC,"↗")):o.createCommentVNode("",!0)]))],8,HC)]))])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-1ba91f9e"]]),UC={key:0},GC={class:"accordion accordion-flush",id:"accordionMenu"},$C={key:1},qC={class:"row"},KC={class:"col-12"},JC={class:"sidebar-footer p-3"},Ic=o.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:a}=EC(o.computed(()=>t.links));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{id:"sidebarContent",class:o.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(o.openBlock(),o.createElementBlock("div",UC,[o.createElementVNode("div",GC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Nc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",$C,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Hc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),o.createElementVNode("div",qC,[o.createElementVNode("div",KC,[o.createVNode(xa)])]),o.createElementVNode("div",JC,[o.renderSlot(l.$slots,"footer")])],2))}}),XC=n=>{const e=o.ref(!0),t=o.ref(null),i=o.ref(null),r=o.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},a=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():a()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():a()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;d>0&&f>0&&(i.value=d-f-20)},50)};return o.provide("sidebarContentVisibility",e),o.provide("toggleSidebar",l),o.watch(r,()=>{c()},{deep:!0}),o.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},QC={class:"container-fluid p-0"},ZC={class:"py-4",style:{"min-height":"90vh"}},e0=o.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:a,sidebarContentVisibility:l}=XC(o.computed(()=>t.isAuthenticated));return(u,c)=>(o.openBlock(),o.createElementBlock("div",QC,[o.createElementVNode("div",{class:o.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(o.openBlock(),o.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:o.normalizeStyle(`background: #efefef; transition: .2s; width:${o.unref(a)}px;`)},[o.createVNode(Ic,{links:t.sidebarLinks,"is-collapsed":!o.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{id:"content-div",style:o.normalizeStyle(`transition: .2s; width:${o.unref(r)}px;`)},[o.createElementVNode("div",ZC,[o.renderSlot(u.$slots,"breadcrumbs"),o.renderSlot(u.$slots,"default")])],4)],2)]))}}),t0={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},i0={class:"col"},n0={"aria-label":"breadcrumb"},r0={class:"breadcrumb row"},s0=["aria-current"],a0=["href","onClick"],o0={key:1,class:"text-nowrap"},l0=He(o.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(o.openBlock(),o.createElementBlock("div",t0,[o.createElementVNode("div",i0,[o.createElementVNode("nav",n0,[o.createElementVNode("ol",r0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.crumbs,(a,l)=>(o.openBlock(),o.createElementBlock("li",{key:l,class:o.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:a.isActive}]),"aria-current":a.isActive?"page":void 0},[a.isActive?(o.openBlock(),o.createElementBlock("span",o0,o.toDisplayString(a.text),1)):(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:o.withModifiers(()=>i("navigate",a.href),["prevent"])},o.toDisplayString(a.text),9,a0))],10,s0))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),u0={key:0,class:"card-header"},c0={class:"card-title mb-0"},d0={class:"card-body"},h0={class:"row"},f0={class:"row align-items-center"},p0={class:"col-auto label pe-0"},m0={class:"col-auto"},g0={key:0,class:"mt-3"},b0=He(o.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",t.value])},[i.title?(o.openBlock(),o.createElementBlock("div",u0,[o.createElementVNode("h5",c0,o.toDisplayString(i.title),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",d0,[o.createElementVNode("div",h0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.fields,(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"col-12 mb-2",key:a},[o.createElementVNode("div",f0,[o.createElementVNode("div",p0,o.toDisplayString(s.label)+":",1),o.createElementVNode("div",m0,[o.createElementVNode("span",{class:o.normalizeClass(["value",s.valueClass]),style:o.normalizeStyle(s.valueStyle)},o.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(o.openBlock(),o.createElementBlock("div",g0,[o.renderSlot(i.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),v0={class:"page-card"},y0={class:"row hide-to-print card-header mx-0 w-100"},w0={class:"col"},C0={class:"row flex-nowrap align-items-center"},E0={class:"col-auto"},k0={key:0,class:"col-auto"},S0={class:"row",style:{padding:"20px"}},x0={class:"d-flex align-items-start"},M0={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},R0=["onClick"],T0={class:"tab-content",id:"v-pills-tabContent"},D0={key:0,class:"title"},_0={key:1},A0={key:0},O0=["title"],L0={class:"row"},P0={class:"col-12"},F0=He(o.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(0),s=o.ref(!1),a=o.ref(!1),l=o.useSlots(),u=p=>{i("click",p)},c=()=>{a.value=!!l.header&&l.header().length>0},d=()=>{s.value=!!l.footer&&l.footer().length>0},f=p=>{r.value=p,i("active-tab",t.tabs[p])};return o.onMounted(()=>{c(),d()}),(p,h)=>(o.openBlock(),o.createElementBlock("div",v0,[o.createElementVNode("div",y0,[o.createElementVNode("div",w0,[o.createElementVNode("div",C0,[o.createElementVNode("div",E0,[a.value?o.renderSlot(p.$slots,"header",{key:0},void 0,!0):o.createCommentVNode("",!0)])])]),p.actionLinks.length>0?(o.openBlock(),o.createElementBlock("div",k0,[o.createVNode(Sa,{title:p.actionsTitle,links:p.actionLinks,onClick:u},null,8,["title","links"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",S0,[o.createElementVNode("div",x0,[o.createElementVNode("div",M0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:m,class:o.normalizeClass(["nav-link me-5",[m===r.value?"active":""]]),onClick:E=>f(m)},o.toDisplayString(S.navLink),11,R0)),[[o.vShow,S.navLink]])),128))]),o.createElementVNode("div",T0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(["tab-pane fade row",[m===r.value?"show active d-flex":""]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.contents,(E,b)=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(`col-${p.col} mb-3`)},[E.subtitle?(o.openBlock(),o.createElementBlock("div",D0,o.toDisplayString(E.subtitle)+": ",1)):o.createCommentVNode("",!0),typeof E.text=="string"?(o.openBlock(),o.createElementBlock("div",_0,o.toDisplayString(E.text),1)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(E.text,(g,T)=>(o.openBlock(),o.createElementBlock("div",{key:T},[typeof g=="string"?(o.openBlock(),o.createElementBlock("div",A0,o.toDisplayString(g),1)):o.createCommentVNode("",!0),typeof g=="object"?(o.openBlock(),o.createElementBlock("div",{key:1,title:g?.description||""},o.toDisplayString(g.name),9,O0)):o.createCommentVNode("",!0)]))),128))],2))),128))],2))),128))])]),s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(xa,{class:"mt-3"}),o.createElementVNode("div",L0,[o.createElementVNode("div",P0,[o.renderSlot(p.$slots,"footer",{},void 0,!0)])])],64)):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-89706e0a"]]),B0={key:0,class:"row w-100 parent"},V0={class:"col-12 wrapper w-100"},N0=["innerHTML"],zc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=o.ref(e.message);o.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(o.openBlock(),o.createElementBlock("div",B0,[o.createElementVNode("div",V0,[o.createElementVNode("div",{class:o.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,N0),o.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):o.createCommentVNode("",!0)}},H0={key:0,class:"row","data-test":"ErrorMessageComponent"},I0={class:"col-12",id:"alert"},z0={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},j0=["innerHTML"],W0=He(o.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=o.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(o.openBlock(),o.createElementBlock("div",H0,[o.createElementVNode("div",I0,[o.createElementVNode("div",{class:o.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(o.openBlock(),o.createElementBlock("i",z0)):o.createCommentVNode("",!0),r.asHtml?(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:i.value},null,8,j0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(i.value),1)],64))],2)])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),Y0={class:"accordion-header",style:{background:"transparent"}},U0=["aria-expanded","aria-controls"],G0={key:0},$0=["id"],q0={class:"accordion-body px-0"},K0=He(o.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=o.ref(Math.random().toString(36).substr(2,9)),a=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return o.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[o.createElementVNode("div",{class:o.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[o.createElementVNode("h2",Y0,[o.createElementVNode("button",{onClick:l,class:o.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:o.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},o.toDisplayString(u.title),15,U0)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a("accordion-body")?(o.openBlock(),o.createElementBlock("div",G0,[o.withDirectives(o.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[o.createElementVNode("div",q0,[o.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,$0),[[o.vShow,!u.isCollapsed]])])):o.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),J0={class:"accordion-header",style:{background:"transparent"}},X0=["onClick"],Q0={class:"d-flex align-items-center w-100"},Z0={class:"d-flex align-items-center flex-grow-1"},eE=["value","id","onChange"],tE={class:"form-check-label ps-2 text-body flex-grow-1"},iE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},nE={class:"col d-flex flex-wrap px-4"},rE={class:"form-check"},sE=["value","id"],aE=["for"],oE=He(o.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref([]),a=o.ref([]),l=o.ref(null),u=o.ref([]),c=(S,m)=>{const E=S.target;if(E.tagName==="INPUT"||E.closest(".form-check-input"))return!1;if(E.tagName==="SPAN"||E.closest(".form-check-label"))return l.value!==Number(m)?(l.value=Number(m),!0):(l.value=null,!0);if(l.value!==Number(m))return l.value=Number(m),!0;l.value=null},d=S=>{const m=i.kindGroups.find(b=>b.id===S);if(!m)return;if(s.value.includes(String(S))){const b=m.kinds.map(T=>String(T.id)),g=[...a.value];b.forEach(T=>{g.includes(T)||g.push(T)}),a.value=g}else{const b=m.kinds.map(g=>String(g.id));a.value=a.value.filter(g=>!b.includes(String(g)))}},f=()=>{o.nextTick(()=>{p()})},p=()=>{const S=[];i.kindGroups.forEach((b,g)=>{const T=u.value?.[g];if(!T)return;const v=b.kinds.map(y=>String(y.id)),R=a.value.filter(y=>v.includes(String(y)));R.length===0?(T.indeterminate=!1,T.checked=!1):R.length===v.length?(T.indeterminate=!1,T.checked=!0,S.push(String(b.id))):(T.indeterminate=!0,T.checked=!1)});const m=s.value.map(String).sort(),E=S.map(String).sort();JSON.stringify(m)!==JSON.stringify(E)&&(s.value=S)};o.watch(()=>a.value,S=>{r("emitSelectedKinds",S)},{deep:!0}),o.watch(()=>s.value,S=>{r("emitSelectedKindGroups",S)},{deep:!0}),o.onMounted(()=>{i.defaultSelectedKinds.length>0&&(a.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),o.nextTick(()=>{p()})});const h=o.computed(()=>c);return e({toggleAccordion:c}),(S,m)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups,(E,b)=>(o.openBlock(),o.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:E.id},[S.kindGroups[b].kinds.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",J0,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(b)}]),type:"button",style:{background:"transparent"},onClick:g=>h.value(g,b)},[o.createElementVNode("div",Q0,[o.createElementVNode("div",Z0,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${E.id}`,id:`${S.checkboxName}_${b}`,name:"kind_group","onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),onClick:m[1]||(m[1]=o.withModifiers(()=>{},["stop"])),onChange:g=>d(E.id)},null,40,eE),[[o.vModelCheckbox,s.value]]),o.createElementVNode("span",tE,o.toDisplayString(E.name),1)]),o.createElementVNode("i",{class:o.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(b)}])},null,2)])],10,X0)]),o.withDirectives(o.createElementVNode("div",iE,[o.createElementVNode("div",nE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups[b].kinds,(g,T)=>(o.openBlock(),o.createElementBlock("div",{class:"col-6 mb-2",key:T},[o.createElementVNode("div",rE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${g.id}`,id:`${S.checkboxName}_${g.id}`,name:"kinds","onUpdate:modelValue":m[2]||(m[2]=v=>a.value=v),onChange:f},null,40,sE),[[o.vModelCheckbox,a.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${S.checkboxName}_${g.id}`},[o.createElementVNode("small",null,o.toDisplayString(g.name),1)],8,aE)])]))),128))])],512),[[o.vShow,l.value===Number(b)]])],64)):o.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class ht{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class Ze{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var r=e?t.split(e):[t],s=r.length,a;for(let l=0;l<s&&(i=i[r[l]],a=i,!!i);l++);return a}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let l=e[a],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[a]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[a]=this.deepClone(l,c,i)))}return t}}let lE=class bd extends ht{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Ze.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Ze.elOffset(e),r,s,a;switch(this.container!==document.body&&(r=Ze.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,r,s,a,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),a=l.offset,i=l.x,r=l.y):typeof e=="number"?(a={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var a=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new bd(this.table,e,this),this.childPopup}};class We extends ht{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(r=>r.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new lE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var uE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class lr extends We{static moduleName="accessor";static accessors=uE;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":lr.accessors[e]?t=lr.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.getComponent(),s=Ze.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var l,u,c,d;a.modules.accessor&&(u=a.modules.accessor[i]||a.modules.accessor.accessor||!1,u&&(l=a.getFieldValue(s),l!="undefined"&&(d=a.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,a.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var cE={method:"GET"};function Ma(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ma(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ma(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function dE(n){var e=Ma(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function jc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+dE(t)),n}function hE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ra(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ra(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ra(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var fE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ra(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class $i extends We{static moduleName="ajax";static defaultConfig=cE;static defaultURLGenerator=jc;static defaultLoaderPromise=hE;static contentTypeFormatters=fE;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=$i.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||$i.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||$i.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},$i.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var pE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},mE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
31
+ `}}function L(){t.calendarContainer.classList.add("hasWeeks");var P=Je("div","flatpickr-weekwrapper");P.appendChild(Je("span","flatpickr-weekday",t.l10n.weekAbbreviation));var k=Je("div","flatpickr-weeks");return P.appendChild(k),{weekWrapper:P,weekNumbers:k}}function B(P,k){k===void 0&&(k=!0);var A=k?P:P-t.currentMonth;A<0&&t._hidePrevMonthArrow===!0||A>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=A,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ke("onYearChange"),O()),D(),ke("onMonthChange"),Ue())}function q(P,k){if(P===void 0&&(P=!0),k===void 0&&(k=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,k===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var A=ka(t.config),F=A.hours,$=A.minutes,ae=A.seconds;h(F,$,ae)}t.redraw(),P&&ke("onChange")}function z(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),ke("onClose")}function Q(){t.config!==void 0&&ke("onDestroy");for(var P=t._handlers.length;P--;)t._handlers[P].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var k=t.calendarContainer.parentNode;if(k.lastChild&&k.removeChild(k.lastChild),k.parentNode){for(;k.firstChild;)k.parentNode.insertBefore(k.firstChild,k);k.parentNode.removeChild(k)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(A){try{delete t[A]}catch{}})}function ie(P){return t.calendarContainer.contains(P)}function G(P){if(t.isOpen&&!t.config.inline){var k=Mt(P),A=ie(k),F=k===t.input||k===t.altInput||t.element.contains(k)||P.path&&P.path.indexOf&&(~P.path.indexOf(t.input)||~P.path.indexOf(t.altInput)),$=!F&&!A&&!ie(P.relatedTarget),ae=!t.config.ignoredFocusElements.some(function(oe){return oe.contains(k)});$&&ae&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ne(P){if(!(!P||t.config.minDate&&P<t.config.minDate.getFullYear()||t.config.maxDate&&P>t.config.maxDate.getFullYear())){var k=P,A=t.currentYear!==k;t.currentYear=k||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),A&&(t.redraw(),ke("onYearChange"),O())}}function j(P,k){var A;k===void 0&&(k=!0);var F=t.parseDate(P,void 0,k);if(t.config.minDate&&F&&Rt(F,t.config.minDate,k!==void 0?k:!t.minDateHasTime)<0||t.config.maxDate&&F&&Rt(F,t.config.maxDate,k!==void 0?k:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(F===void 0)return!1;for(var $=!!t.config.enable,ae=(A=t.config.enable)!==null&&A!==void 0?A:t.config.disable,oe=0,ce=void 0;oe<ae.length;oe++){if(ce=ae[oe],typeof ce=="function"&&ce(F))return $;if(ce instanceof Date&&F!==void 0&&ce.getTime()===F.getTime())return $;if(typeof ce=="string"){var fe=t.parseDate(ce,void 0,!0);return fe&&fe.getTime()===F.getTime()?$:!$}else if(typeof ce=="object"&&F!==void 0&&ce.from&&ce.to&&F.getTime()>=ce.from.getTime()&&F.getTime()<=ce.to.getTime())return $}return!$}function H(P){return t.daysContainer!==void 0?P.className.indexOf("hidden")===-1&&P.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(P):!1}function se(P){var k=P.target===t._input,A=t._input.value.trimEnd()!==Oe();k&&A&&!(P.relatedTarget&&ie(P.relatedTarget))&&t.setDate(t._input.value,!0,P.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function te(P){var k=Mt(P),A=t.config.wrap?n.contains(k):k===t._input,F=t.config.allowInput,$=t.isOpen&&(!F||!A),ae=t.config.inline&&A&&!F;if(P.keyCode===13&&A){if(F)return t.setDate(t._input.value,!0,k===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),k.blur();t.open()}else if(ie(k)||$||ae){var oe=!!t.timeContainer&&t.timeContainer.contains(k);switch(P.keyCode){case 13:oe?(P.preventDefault(),u(),Z()):de(P);break;case 27:P.preventDefault(),Z();break;case 8:case 46:A&&!t.config.allowInput&&(P.preventDefault(),t.clear());break;case 37:case 39:if(!oe&&!A){P.preventDefault();var ce=s();if(t.daysContainer!==void 0&&(F===!1||ce&&H(ce))){var fe=P.keyCode===39?1:-1;P.ctrlKey?(P.stopPropagation(),B(fe),w(C(1),0)):w(void 0,fe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:P.preventDefault();var me=P.keyCode===40?1:-1;t.daysContainer&&k.$i!==void 0||k===t.input||k===t.altInput?P.ctrlKey?(P.stopPropagation(),ne(t.currentYear-me),w(C(1),0)):oe||w(void 0,me*7):k===t.currentYearElement?ne(t.currentYear-me):t.config.enableTime&&(!oe&&t.hourElement&&t.hourElement.focus(),u(P),t._debouncedChange());break;case 9:if(oe){var be=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Be){return Be}),Ae=be.indexOf(k);if(Ae!==-1){var Ye=be[Ae+(P.shiftKey?-1:1)];P.preventDefault(),(Ye||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(k)&&P.shiftKey&&(P.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&k===t.amPM)switch(P.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Re();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Re();break}(A||ie(k))&&ke("onKeyDown",P)}function ee(P,k){if(k===void 0&&(k="flatpickr-day"),!(t.selectedDates.length!==1||P&&(!P.classList.contains(k)||P.classList.contains("flatpickr-disabled")))){for(var A=P?P.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),F=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),$=Math.min(A,t.selectedDates[0].getTime()),ae=Math.max(A,t.selectedDates[0].getTime()),oe=!1,ce=0,fe=0,me=$;me<ae;me+=my.DAY)j(new Date(me),!0)||(oe=oe||me>$&&me<ae,me<F&&(!ce||me>ce)?ce=me:me>F&&(!fe||me<fe)&&(fe=me));var be=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+k));be.forEach(function(Ae){var Ye=Ae.dateObj,Be=Ye.getTime(),Xe=ce>0&&Be<ce||fe>0&&Be>fe;if(Xe){Ae.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(et){Ae.classList.remove(et)});return}else if(oe&&!Xe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(et){Ae.classList.remove(et)}),P!==void 0&&(P.classList.add(A<=t.selectedDates[0].getTime()?"startRange":"endRange"),F<A&&Be===F?Ae.classList.add("startRange"):F>A&&Be===F&&Ae.classList.add("endRange"),Be>=ce&&(fe===0||Be<=fe)&&fy(Be,F,A)&&Ae.classList.add("inRange"))})}}function pe(){t.isOpen&&!t.config.static&&!t.config.inline&&He()}function le(P,k){if(k===void 0&&(k=t._positionElement),t.isMobile===!0){if(P){P.preventDefault();var A=Mt(P);A&&A.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),ke("onOpen");return}else if(t._input.disabled||t.config.inline)return;var F=t.isOpen;t.isOpen=!0,F||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ke("onOpen"),He(k)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(P===void 0||!t.timeContainer.contains(P.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ve(P){return function(k){var A=t.config["_"+P+"Date"]=t.parseDate(k,t.config.dateFormat),F=t.config["_"+(P==="min"?"max":"min")+"Date"];A!==void 0&&(t[P==="min"?"minDateHasTime":"maxDateHasTime"]=A.getHours()>0||A.getMinutes()>0||A.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function($){return j($)}),!t.selectedDates.length&&P==="min"&&p(A),Re()),t.daysContainer&&(J(),A!==void 0?t.currentYearElement[P]=A.getFullYear().toString():t.currentYearElement.removeAttribute(P),t.currentYearElement.disabled=!!F&&A!==void 0&&F.getFullYear()===A.getFullYear())}}function ye(){var P=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],k=pt(pt({},JSON.parse(JSON.stringify(n.dataset||{}))),e),A={};t.config.parseDate=k.parseDate,t.config.formatDate=k.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(be){t.config._enable=_e(be)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(be){t.config._disable=_e(be)}});var F=k.mode==="time";if(!k.dateFormat&&(k.enableTime||F)){var $=ct.defaultConfig.dateFormat||Ui.dateFormat;A.dateFormat=k.noCalendar||F?"H:i"+(k.enableSeconds?":S":""):$+" H:i"+(k.enableSeconds?":S":"")}if(k.altInput&&(k.enableTime||F)&&!k.altFormat){var ae=ct.defaultConfig.altFormat||Ui.altFormat;A.altFormat=k.noCalendar||F?"h:i"+(k.enableSeconds?":S K":" K"):ae+(" h:i"+(k.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ve("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ve("max")});var oe=function(be){return function(Ae){t.config[be==="min"?"_minTime":"_maxTime"]=t.parseDate(Ae,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:oe("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:oe("max")}),k.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,A,k);for(var ce=0;ce<P.length;ce++)t.config[P[ce]]=t.config[P[ce]]===!0||t.config[P[ce]]==="true";va.filter(function(be){return t.config[be]!==void 0}).forEach(function(be){t.config[be]=ya(t.config[be]||[]).map(a)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ce=0;ce<t.config.plugins.length;ce++){var fe=t.config.plugins[ce](t)||{};for(var me in fe)va.indexOf(me)>-1?t.config[me]=ya(fe[me]).map(a).concat(t.config[me]):typeof k[me]>"u"&&(t.config[me]=fe[me])}k.altInputClass||(t.config.altInputClass=Me().className+" "+t.config.altInputClass),ke("onParseConfig")}function Me(){return t.config.wrap?n.querySelector("[data-input]"):n}function Ne(){typeof t.config.locale!="object"&&typeof ct.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=pt(pt({},ct.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ct.l10ns[t.config.locale]:void 0),Mi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Mi.l="("+t.l10n.weekdays.longhand.join("|")+")",Mi.M="("+t.l10n.months.shorthand.join("|")+")",Mi.F="("+t.l10n.months.longhand.join("|")+")",Mi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var P=pt(pt({},e),JSON.parse(JSON.stringify(n.dataset||{})));P.time_24hr===void 0&&ct.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Oc(t),t.parseDate=Ca({config:t.config,l10n:t.l10n})}function He(P){if(typeof t.config.position=="function")return void t.config.position(t,P);if(t.calendarContainer!==void 0){ke("onPreCalendarPosition");var k=P||t._positionElement,A=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,jx){return Di+jx.offsetHeight}),0),F=t.calendarContainer.offsetWidth,$=t.config.position.split(" "),ae=$[0],oe=$.length>1?$[1]:null,ce=k.getBoundingClientRect(),fe=window.innerHeight-ce.bottom,me=ae==="above"||ae!=="below"&&fe<A&&ce.top>A,be=window.pageYOffset+ce.top+(me?-A-2:k.offsetHeight+2);if(vt(t.calendarContainer,"arrowTop",!me),vt(t.calendarContainer,"arrowBottom",me),!t.config.inline){var Ae=window.pageXOffset+ce.left,Ye=!1,Be=!1;oe==="center"?(Ae-=(F-ce.width)/2,Ye=!0):oe==="right"&&(Ae-=F-ce.width,Be=!0),vt(t.calendarContainer,"arrowLeft",!Ye&&!Be),vt(t.calendarContainer,"arrowCenter",Ye),vt(t.calendarContainer,"arrowRight",Be);var Xe=window.document.body.offsetWidth-(window.pageXOffset+ce.right),et=Ae+F>window.document.body.offsetWidth,lt=Xe+F>window.document.body.offsetWidth;if(vt(t.calendarContainer,"rightMost",et),!t.config.static)if(t.calendarContainer.style.top=be+"px",!et)t.calendarContainer.style.left=Ae+"px",t.calendarContainer.style.right="auto";else if(!lt)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=Xe+"px";else{var rt=Le();if(rt===void 0)return;var bi=window.document.body.offsetWidth,Ti=Math.max(0,bi/2-F/2),li=".flatpickr-calendar.centerMost:before",zt=".flatpickr-calendar.centerMost:after",Jt=rt.cssRules.length,Xi="{left:"+ce.left+"px;right:auto;}";vt(t.calendarContainer,"rightMost",!1),vt(t.calendarContainer,"centerMost",!0),rt.insertRule(li+","+zt+Xi,Jt),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Le(){for(var P=null,k=0;k<document.styleSheets.length;k++){var A=document.styleSheets[k];if(A.cssRules){try{A.cssRules}catch{continue}P=A;break}}return P??Y()}function Y(){var P=document.createElement("style");return document.head.appendChild(P),P.sheet}function J(){t.config.noCalendar||t.isMobile||(O(),Ue(),D())}function Z(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function de(P){P.preventDefault(),P.stopPropagation();var k=function(be){return be.classList&&be.classList.contains("flatpickr-day")&&!be.classList.contains("flatpickr-disabled")&&!be.classList.contains("notAllowed")},A=Ac(Mt(P),k);if(A!==void 0){var F=A,$=t.latestSelectedDateObj=new Date(F.dateObj.getTime()),ae=($.getMonth()<t.currentMonth||$.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=F,t.config.mode==="single")t.selectedDates=[$];else if(t.config.mode==="multiple"){var oe=re($);oe?t.selectedDates.splice(parseInt(oe),1):t.selectedDates.push($)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=$,t.selectedDates.push($),Rt($,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(be,Ae){return be.getTime()-Ae.getTime()}));if(f(),ae){var ce=t.currentYear!==$.getFullYear();t.currentYear=$.getFullYear(),t.currentMonth=$.getMonth(),ce&&(ke("onYearChange"),O()),ke("onMonthChange")}if(Ue(),D(),Re(),!ae&&t.config.mode!=="range"&&t.config.showMonths===1?M(F):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var fe=t.config.mode==="single"&&!t.config.enableTime,me=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(fe||me)&&Z()}E()}}var ue={locale:[Ne,K],showMonths:[W,l,I],minDate:[g],maxDate:[g],positionElement:[he],clickOpens:[function(){t.config.clickOpens===!0?(m(t._input,"focus",t.open),m(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function xe(P,k){if(P!==null&&typeof P=="object"){Object.assign(t.config,P);for(var A in P)ue[A]!==void 0&&ue[A].forEach(function(F){return F()})}else t.config[P]=k,ue[P]!==void 0?ue[P].forEach(function(F){return F()}):va.indexOf(P)>-1&&(t.config[P]=ya(k));t.redraw(),Re(!0)}function Pe(P,k){var A=[];if(P instanceof Array)A=P.map(function(F){return t.parseDate(F,k)});else if(P instanceof Date||typeof P=="number")A=[t.parseDate(P,k)];else if(typeof P=="string")switch(t.config.mode){case"single":case"time":A=[t.parseDate(P,k)];break;case"multiple":A=P.split(t.config.conjunction).map(function(F){return t.parseDate(F,k)});break;case"range":A=P.split(t.l10n.rangeSeparator).map(function(F){return t.parseDate(F,k)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(P)));t.selectedDates=t.config.allowInvalidPreload?A:A.filter(function(F){return F instanceof Date&&j(F,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(F,$){return F.getTime()-$.getTime()})}function Te(P,k,A){if(k===void 0&&(k=!1),A===void 0&&(A=t.config.dateFormat),P!==0&&!P||P instanceof Array&&P.length===0)return t.clear(k);Pe(P,A),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,k),p(),t.selectedDates.length===0&&t.clear(!1),Re(k),k&&ke("onChange")}function _e(P){return P.slice().map(function(k){return typeof k=="string"||typeof k=="number"||k instanceof Date?t.parseDate(k,void 0,!0):k&&typeof k=="object"&&k.from&&k.to?{from:t.parseDate(k.from,void 0),to:t.parseDate(k.to,void 0)}:k}).filter(function(k){return k})}function Ie(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var P=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);P&&Pe(P,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function ot(){if(t.input=Me(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Je(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),he()}function he(){t._positionElement=t.config.positionElement||t._input}function Ee(){var P=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Je("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=P,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=P==="datetime-local"?"Y-m-d\\TH:i:S":P==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}m(t.mobileInput,"change",function(k){t.setDate(Mt(k).value,!1,t.mobileFormatStr),ke("onChange"),ke("onClose")})}function Fe(P){if(t.isOpen===!0)return t.close();t.open(P)}function ke(P,k){if(t.config!==void 0){var A=t.config[P];if(A!==void 0&&A.length>0)for(var F=0;A[F]&&F<A.length;F++)A[F](t.selectedDates,t.input.value,t,k);P==="onChange"&&(t.input.dispatchEvent(X("change")),t.input.dispatchEvent(X("input")))}}function X(P){var k=document.createEvent("Event");return k.initEvent(P,!0,!0),k}function re(P){for(var k=0;k<t.selectedDates.length;k++){var A=t.selectedDates[k];if(A instanceof Date&&Rt(A,P)===0)return""+k}return!1}function ze(P){return t.config.mode!=="range"||t.selectedDates.length<2?!1:Rt(P,t.selectedDates[0])>=0&&Rt(P,t.selectedDates[1])<=0}function Ue(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(P,k){var A=new Date(t.currentYear,t.currentMonth,1);A.setMonth(t.currentMonth+k),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[k].textContent=or(A.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=A.getMonth().toString(),P.value=A.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Oe(P){var k=P||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(A){return t.formatDate(A,k)}).filter(function(A,F,$){return t.config.mode!=="range"||t.config.enableTime||$.indexOf(A)===F}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Re(P){P===void 0&&(P=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),P!==!1&&ke("onValueUpdate")}function bt(P){var k=Mt(P),A=t.prevMonthNav.contains(k),F=t.nextMonthNav.contains(k);A||F?B(A?-1:1):t.yearElements.indexOf(k)>=0?k.select():k.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):k.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function nt(P){P.preventDefault();var k=P.type==="keydown",A=Mt(P),F=A;t.amPM!==void 0&&A===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Pt(t.amPM.textContent===t.l10n.amPM[0])]);var $=parseFloat(F.getAttribute("min")),ae=parseFloat(F.getAttribute("max")),oe=parseFloat(F.getAttribute("step")),ce=parseInt(F.value,10),fe=P.delta||(k?P.which===38?1:-1:0),me=ce+oe*fe;if(typeof F.value<"u"&&F.value.length===2){var be=F===t.hourElement,Ae=F===t.minuteElement;me<$?(me=ae+me+Pt(!be)+(Pt(be)&&Pt(!t.amPM)),Ae&&v(void 0,-1,t.hourElement)):me>ae&&(me=F===t.hourElement?me-ae-Pt(!t.amPM):$,Ae&&v(void 0,1,t.hourElement)),t.amPM&&be&&(oe===1?me+ce===23:Math.abs(me-ce)>oe)&&(t.amPM.textContent=t.l10n.amPM[Pt(t.amPM.textContent===t.l10n.amPM[0])]),F.value=kt(me)}}return r(),t}function Gi(n,e){for(var t=Array.prototype.slice.call(n).filter(function(a){return a instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=by(s,e||{}),i.push(s._flatpickr)}catch(a){console.error(a)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Gi(this,n)},HTMLElement.prototype.flatpickr=function(n){return Gi([this],n)});var ct=function(n,e){return typeof n=="string"?Gi(window.document.querySelectorAll(n),e):n instanceof Node?Gi([n],e):Gi(n,e)};ct.defaultConfig={},ct.l10ns={en:pt({},vn),default:pt({},vn)},ct.localize=function(n){ct.l10ns.default=pt(pt({},ct.l10ns.default),n)},ct.setDefaults=function(n){ct.defaultConfig=pt(pt({},ct.defaultConfig),n)},ct.parseDate=Ca({}),ct.formatDate=Oc({}),ct.compareDates=Rt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Gi(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ct);var wn={exports:{}},vy=wn.exports,Pc;function yy(){return Pc||(Pc=1,(function(n,e){(function(t,i){i(e)})(vy,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(wn,wn.exports)),wn.exports}var wy=yy();const Cy=["value","id","name","disabled","required","placeholder"],Ey=["title"],ky=["title"],Sy=Ve(o.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(),a=o.ref(null),l=o.ref(!1),u=o.ref(""),c=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),d=b=>{if(!b)return"";const g=new Date(b);if(isNaN(g.getTime()))return"";const T=String(g.getDate()).padStart(2,"0"),v=String(g.getMonth()+1).padStart(2,"0"),R=g.getFullYear();return i.format==="DD.MM.YYYY"?`${T}.${v}.${R}`:i.format==="MM/DD/YYYY"?`${v}/${T}/${R}`:i.format==="YYYY-MM-DD"?`${R}-${v}-${T}`:`${T}.${v}.${R}`},f=b=>{if(!b)return"";if(/^\d{4}-\d{2}-\d{2}/.test(b))return b;if(i.format==="DD.MM.YYYY"){const g=b.split(".");if(g.length===3){const[T,v,R]=g;return`${R}-${v.padStart(2,"0")}-${T.padStart(2,"0")}`}}if(i.format==="MM/DD/YYYY"){const g=b.split("/");if(g.length===3){const[T,v,R]=g;return`${R}-${T.padStart(2,"0")}-${v.padStart(2,"0")}`}}return i.format==="YYYY-MM-DD",b},p=()=>{if(!s.value)return;const b={locale:i.locale==="ru"?wy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(g,T,v)=>{const R=g.length>0;if(!(i.modelValue!==T))return!1;if(!R)return h({instance:v}),!1;o.nextTick(()=>{if(i.mode==="multiple"){const M=g.map(C=>d(C));r("update:modelValue",M)}else if(i.mode==="range"){const M=g.map(C=>d(C));r("update:modelValue",M)}else r("update:modelValue",T);r("change",g.map(M=>M.toISOString()),T,v)})},onOpen:g=>{r("open",g)},onReady:g=>{r("ready",g)},...i.config};i.minDate&&i.minDate&&(b.minDate=i.minDate),i.maxDate&&(b.maxDate=i.maxDate),i.defaultDate&&(b.defaultDate=i.defaultDate),a.value=ct(s.value,b),h({instance:a.value})},h=({instance:b})=>{b?._input&&(i.modelValue?o.nextTick(()=>{Array.isArray(i.modelValue)?b._input.value=i.modelValue.map(g=>d(g)).join(", "):b._input.value=d(i.modelValue),l.value=!0}):o.nextTick(()=>{b._input.value="",l.value=!1}))},S=()=>{i.disabled||!a.value||(a.value.clear(),a.value._input.value="",r("update:modelValue",""),l.value=!1)},m=b=>{const g=b.target;u.value=g.value},E=()=>{if(u.value){const b=f(u.value);b&&r("update:modelValue",b)}};return o.watch(()=>i.modelValue,b=>{if(!b){l.value=!1,a.value?._input&&(a.value._input.value=""),u.value="";return}Array.isArray(b)?u.value=b.map(g=>d(g)).join(", "):u.value=d(b),l.value=!0},{deep:!0}),o.watch(()=>i.disabled,b=>{a.value?._input&&(a.value._input.disabled=b)}),o.onMounted(()=>{p()}),o.onBeforeUnmount(()=>{a.value&&a.value.destroy()}),e({datapicker:a}),(b,g)=>(o.openBlock(),o.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[o.createElementVNode("div",{class:o.normalizeClass({"not-valid":c.value.length})},[o.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:b.id,name:b.name,disabled:b.disabled,required:b.required,placeholder:b.placeholder,"data-input":"",onInput:m,onBlur:E},null,40,Cy)],2),l.value&&!b.disabled?(o.openBlock(),o.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:S,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:b.resetTitle},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Ey)):o.createCommentVNode("",!0),o.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:b.calendarTitle},[...g[1]||(g[1]=[o.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,ky),o.createVNode(ki,{errors:c.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-805e83fd"]]);function xy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,a=o.ref(""),l=o.ref([]),u=o.ref(!1),c=o.ref(r),d=o.ref(!1),f=o.ref(!1),p=o.computed(()=>a.value&&a.value.length>0&&a.value.length<s?`Введите минимум ${s} символа`:t),h=o.computed(()=>i);return{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{a.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{a.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:y=>{l.value=y},setLoading:y=>{u.value=y},setGlobalLoading:y=>{f.value=y}}}const My=["disabled"],Ry={key:1,class:"bi bi-three-dots-vertical"},Ty=Ve(o.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:S,onSelect:m,clearSearch:E,toggleSettings:b,hideSettings:g}=xy(s),T=o.ref();o.computed(()=>i.options.length>0?i.options:l.value),o.computed(()=>i.isSearchLoading||u.value),o.computed(()=>i.isLoading||f.value);const v=x=>{const w=x||"";S(w),r("search",w,c.value)},R=x=>{m(x),r("select",x)},y=o.computed(()=>i.searchTypeName);o.watch(c,x=>{r("searchTypeChange",x),g()});const M=x=>{const w=x.target;C.value?.contains(w)||g()},C=o.ref();return o.onMounted(()=>{document.addEventListener("click",M)}),o.onUnmounted(()=>{document.removeEventListener("click",M)}),e({clearSearch:E,setOptions:x=>{l.value=x},setLoading:x=>{u.value=x},setGlobalLoading:x=>{f.value=x},focus:()=>{T.value?.$el?.querySelector("input")?.focus()}}),(x,w)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:C,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(o.openBlock(),o.createBlock(oi,{ref_key:"selectRef",ref:T,key:o.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:o.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=_=>o.isRef(a)?a.value=_:null),R],reduce:_=>_,options:x.options,placeholder:x.placeholder,onSearch:v,onBlur:o.unref(E),onFocus:o.unref(g),isLoading:x.isSearchLoading,hint:o.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),o.createElementVNode("button",{class:"btn btn-light px-2",onClick:w[1]||(w[1]=(..._)=>o.unref(b)&&o.unref(b)(..._)),disabled:x.isLoading},[x.isLoading?(o.openBlock(),o.createBlock(kr,{key:0,isSmall:!0})):(o.openBlock(),o.createElementBlock("i",Ry))],8,My),o.unref(d)?(o.openBlock(),o.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:w[3]||(w[3]=o.withModifiers(()=>{},["stop"]))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),_=>(o.openBlock(),o.createElementBlock("li",{key:_.value,class:"setting-item"},[o.createVNode(Dc,{name:y.value,label:_.label,modelValue:o.unref(c),"onUpdate:modelValue":w[2]||(w[2]=D=>o.isRef(c)?c.value=D:null),type:"radio",group:y.value,trueValue:_.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Dy(n={}){const{loadRegions:e,loadDistricts:t,loadLocalities:i,loadStreets:r,regionKey:s="region_id",districtKey:a="district_id",localityKey:l="locality_id",streetKey:u="street_id",houseKey:c="house",buildingKey:d="building",apartmentKey:f="apartment",regionLabel:p="Регион",districtLabel:h="Район",localityLabel:S="Населенный пункт",streetLabel:m="Улица",houseLabel:E="Дом",buildingLabel:b="Корпус",apartmentLabel:g="Квартира",columnWidth:T="12",prefix:v="",multiLocalities:R=!1,multiStreets:y=!1,showHouseFields:M=!0}=n,C=o.ref({}),x=o.ref(!1),w=o.ref(!1),_=o.ref(!1),D=o.ref(!1),O=o.ref(!1),V=o.ref([]),W=o.ref([]),U=o.ref([]),N=o.ref([]),I=o.computed(()=>`${v}${s}`),K=o.computed(()=>`${v}${a}`),L=o.computed(()=>`${v}${l}`),B=o.computed(()=>`${v}${u}`),q=o.computed(()=>`${v}${c}`),z=o.computed(()=>`${v}${d}`),Q=o.computed(()=>`${v}${f}`),ie=o.computed(()=>({region:p,district:h,locality:S,street:m,house:E,building:b,apartment:g})),G=async he=>{if(e){w.value=!0;try{V.value=await e(he)}finally{w.value=!1}}},ne=async he=>{if(t){_.value=!0;try{W.value=await t(he)}finally{_.value=!1}}},j=async he=>{if(i){D.value=!0;try{U.value=await i(he)}finally{D.value=!1}}},H=async he=>{if(r){O.value=!0;try{N.value=await r(he)}finally{O.value=!1}}},se=(he,Ee=!1)=>{if(Ee){const ke={...C.value,[I.value]:he};C.value=ke;return}const Fe={...C.value,[I.value]:he,[K.value]:null,[L.value]:null,[B.value]:null,[q.value]:null,[z.value]:null,[Q.value]:null};C.value=Fe,W.value=[],U.value=[],N.value=[]},te=(he,Ee=!1)=>{if(Ee){const ke={...C.value,[K.value]:he};C.value=ke;return}const Fe={...C.value,[K.value]:he,[L.value]:null,[B.value]:null,[q.value]:null,[z.value]:null,[Q.value]:null};C.value=Fe},ee=(he,Ee=!1)=>{if(Ee){const ke={...C.value,[L.value]:he};C.value=ke;return}const Fe={...C.value,[L.value]:he,[B.value]:null,[q.value]:null,[z.value]:null,[Q.value]:null};C.value=Fe,N.value=[]},pe=async he=>{se(he),he&&(await ne(he),await j(he),await H(he))},le=async he=>{if(te(he),!he){const Ee=C.value[I.value];Ee&&await pe(Ee);return}await j(he)},ve=async he=>{ee(he),he&&await H(he)},ye=(he,Ee=!1)=>{if(Ee){const ke={...C.value,[B.value]:he};C.value=ke;return}const Fe={...C.value,[B.value]:he,[q.value]:null,[z.value]:null,[Q.value]:null};C.value=Fe},Me=he=>{const Ee=he.target,Fe={...C.value,[q.value]:Ee.value};C.value=Fe},Ne=he=>{const Ee=he.target,Fe={...C.value,[z.value]:Ee.value};C.value=Fe},He=he=>{const Ee=he.target,Fe={...C.value,[Q.value]:Ee.value};C.value=Fe},Le=async he=>{console.log("🔄 Auto-filling form with data:",he),Object.assign(C.value,he);const Ee=he[I.value],Fe=he[K.value],ke=he[L.value],X=he[B.value];try{Ee&&!Fe&&!ke&&!X?(console.log("📍 Case 1: Only region ID provided"),e&&await G(),t&&await ne(Ee)):Ee&&Fe&&!ke&&!X?(console.log("📍 Case 2: Region + District IDs provided"),e&&await G(),t&&await ne(Ee),i&&await j(Fe)):Ee&&!Fe&&ke&&!X?(console.log("📍 Case 3: Region + Locality IDs (no district)"),e&&await G(),t&&await ne(Ee),i&&await j(Ee)):Ee&&Fe&&ke&&!X?(console.log("📍 Case 4: Region + District + Locality IDs"),e&&await G(),t&&await ne(Ee),i&&await j(Fe),r&&await H(ke)):Ee&&!Fe&&ke&&X?(console.log("📍 Case 5: Region + Locality + Street IDs (no district)"),e&&await G(),t&&await ne(Ee),i&&await j(Ee),r&&await H(ke)):Ee&&Fe&&ke&&X?(console.log("📍 Case 6: Full hierarchy"),e&&await G(),t&&await ne(Ee),i&&await j(Fe),r&&await H(ke)):!Ee&&!Fe&&!ke&&!X?console.log("📍 Case 7: Only text fields provided"):!Ee&&ke?(console.log("📍 Case 8: Only locality ID (no region) - trying to load by locality"),i&&console.warn("Cannot load localities without region ID"),r&&X&&await H(ke)):!Ee&&!Fe&&!ke&&X&&console.log("📍 Case 9: Only street ID - cannot determine hierarchy"),console.log("✅ Auto-fill completed successfully")}catch(re){console.error("❌ Error during auto-fill:",re)}},Y=async he=>{console.log("🔄 Auto-filling form with data (skip reset mode):",he),Object.assign(C.value,he);const Ee=he[I.value],Fe=he[K.value],ke=he[L.value],X=he[B.value];try{Ee&&!Fe&&!ke&&!X?(console.log("📍 Case 1: Only region ID provided"),e&&await G(),t&&await ne(Ee)):Ee&&Fe&&!ke&&!X?(console.log("📍 Case 2: Region + District IDs provided"),e&&await G(),t&&await ne(Ee),i&&await j(Fe)):Ee&&!Fe&&ke&&!X?(console.log("📍 Case 3: Region + Locality IDs (no district)"),e&&await G(),t&&await ne(Ee),i&&await j(Ee)):Ee&&Fe&&ke&&!X?(console.log("📍 Case 4: Region + District + Locality IDs"),e&&await G(),t&&await ne(Ee),i&&await j(Fe),r&&await H(ke)):Ee&&!Fe&&ke&&X?(console.log("📍 Case 5: Region + Locality + Street IDs (no district)"),e&&await G(),t&&await ne(Ee),i&&await j(Ee),r&&await H(ke)):Ee&&Fe&&ke&&X?(console.log("📍 Case 6: Full hierarchy"),e&&await G(),t&&await ne(Ee),i&&await j(Fe),r&&await H(ke)):!Ee&&!Fe&&!ke&&!X?console.log("📍 Case 7: Only text fields provided"):!Ee&&ke?(console.log("📍 Case 8: Only locality ID (no region) - trying to load by locality"),i&&console.warn("Cannot load localities without region ID"),r&&X&&await H(ke)):!Ee&&!Fe&&!ke&&X&&console.log("📍 Case 9: Only street ID - cannot determine hierarchy"),console.log("✅ Auto-fill completed successfully (skip reset mode)")}catch(re){console.error("❌ Error during auto-fill (skip reset mode):",re)}},J=o.computed(()=>{const he=C.value[I.value];return he&&V.value.find(Ee=>String(Ee.id)===String(he))?.label||""}),Z=o.computed(()=>{const he=C.value[K.value];return he&&W.value.find(Ee=>String(Ee.id)===String(he))?.label||""}),de=o.computed(()=>{const he=C.value[L.value];return he&&U.value.find(Ee=>String(Ee.id)===String(he))?.label||""}),ue=o.computed(()=>{const he=C.value[B.value];return he&&N.value.find(Ee=>String(Ee.id)===String(he))?.label||""}),xe=o.computed(()=>{const he=C.value[q.value];return he?`${E} ${he}`:""}),Pe=o.computed(()=>{const he=C.value[z.value];return he?`${b} ${he}`:""}),Te=o.computed(()=>{const he=C.value[Q.value];return he?`${g} ${he}`:""}),_e=o.computed(()=>[J.value,Z.value,de.value,ue.value,xe.value,Pe.value,Te.value].filter(Boolean).join(", ")),Ie=o.computed(()=>{const he=C.value[L.value];return Array.isArray(he)?he.length>1:!1}),ot=o.computed(()=>y?!1:M);return{modelValue:C,isLoading:x,isRegionLoading:w,isDistrictLoading:_,isLocalityLoading:D,isStreetLoading:O,regionOptions:V,districtOptions:W,localityOptions:U,streetOptions:N,finalRegionKey:I,finalDistrictKey:K,finalLocalityKey:L,finalStreetKey:B,finalHouseKey:q,finalBuildingKey:z,finalApartmentKey:Q,labels:ie,selectedRegionLabel:J,selectedDistrictLabel:Z,selectedLocalityLabel:de,selectedStreetLabel:ue,selectedHouseLabel:xe,selectedBuildingLabel:Pe,selectedApartmentLabel:Te,fullAddress:_e,isMultiLocalitiesSelected:Ie,shouldShowHouseFields:ot,loadRegionOptions:G,loadDistrictOptions:ne,loadLocalityOptions:j,loadStreetOptions:H,onRegionSelect:pe,onDistrictSelect:le,onLocalitySelect:ve,onStreetSelect:ye,onHouseInput:Me,onBuildingInput:Ne,onApartmentInput:He,resetFieldsByRegion:se,resetFieldsByDistrict:te,resetFieldsByLocality:ee,autoFillForm:Le,autoFillFormSkipReset:Y}}const _y={class:"address-form"},Ay={class:"row"},Oy={class:"form-label"},Ly={class:"form-label"},Py={class:"form-label"},Fy={class:"form-label"},By={class:"form-label"},Vy=["value","disabled"],Ny={class:"form-label"},Hy=["value","disabled"],Iy={class:"form-label"},zy=["value","disabled"],jy={key:0,class:"mt-3"},Wy={class:"alert alert-info"},Yy=Ve(o.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:a,isRegionLoading:l,isDistrictLoading:u,isLocalityLoading:c,isStreetLoading:d,regionOptions:f,districtOptions:p,localityOptions:h,streetOptions:S,finalRegionKey:m,finalDistrictKey:E,finalLocalityKey:b,finalStreetKey:g,finalHouseKey:T,finalBuildingKey:v,finalApartmentKey:R,labels:y,selectedRegionLabel:M,selectedDistrictLabel:C,selectedLocalityLabel:x,selectedStreetLabel:w,selectedHouseLabel:_,selectedBuildingLabel:D,selectedApartmentLabel:O,fullAddress:V,isMultiLocalitiesSelected:W,shouldShowHouseFields:U,loadRegionOptions:N,onRegionSelect:I,onDistrictSelect:K,onLocalitySelect:L,onStreetSelect:B,onHouseInput:q,onBuildingInput:z,onApartmentInput:Q,autoFillForm:ie,autoFillFormSkipReset:G}=Dy(s);let ne=!1,j=!1,H=!1;const se=(Y,J)=>{if(Y===J)return!0;if(!Y||!J||typeof Y!="object"||typeof J!="object")return!1;const Z=Object.keys(Y),de=Object.keys(J);if(Z.length!==de.length)return!1;for(const ue of Z)if(Y[ue]!==J[ue])return!1;return!0};o.watch(()=>i.modelValue,async Y=>{if(ne||j||H||se(a.value,Y))return;if(Y&&(Y[m.value]||Y[E.value]||Y[b.value]||Y[g.value])){console.log("🔄 Auto-filling form with existing data (skip reset mode):",Y),j=!0;try{await G(Y)}catch(Z){console.error("❌ Error during auto-fill:",Z)}finally{j=!1}}else a.value={...Y}},{immediate:!0,deep:!0}),o.watch(a,Y=>{H||j||se(i.modelValue,Y)||(ne=!0,H=!0,r("update:modelValue",{...Y}),r("change",{...Y}),o.nextTick(()=>{ne=!1,H=!1}))},{deep:!0});let te=!1;o.watch(()=>i.countryId,async(Y,J)=>{if(!te&&Y!=null&&i.loadRegions){if(Y!==J){const Z={...a.value,[m.value]:null,[E.value]:null,[b.value]:null,[g.value]:null,[T.value]:null,[v.value]:null,[R.value]:null};a.value=Z}try{te=!0,await N(Y)}catch(Z){console.error("❌ AddressForm: Error loading regions",Z)}finally{te=!1}}},{immediate:!0});const ee=async Y=>{await I(Y),r("regionChange",Y)},pe=async Y=>{await K(Y),r("districtChange",Y)},le=async Y=>{await L(Y),r("localityChange",Y)},ve=Y=>{B(Y),r("streetChange",Y)},ye=Y=>{q(Y)},Me=Y=>{z(Y)},Ne=Y=>{Q(Y)},He=o.computed(()=>{if(!i.multiLocalities)return!1;const Y=a.value[g.value];return!Array.isArray(Y)||Y?.length<2});function Le(){return[M.value,C.value,x.value,w.value,_.value,D.value,O.value].filter(Boolean).join(", ")}return o.watch(()=>_.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>D.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>O.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>w.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>x.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>C.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>M.value,async Y=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),e({loadRegionOptions:N,resetForm:()=>{a.value={},f.value=[],p.value=[],h.value=[],S.value=[]},getFullAddress:()=>V.value,getValue:()=>Le(),autoFillForm:async Y=>{j=!0;try{await ie(Y)}finally{j=!1}},autoFillFormSkipReset:async Y=>{j=!0;try{await G(Y)}finally{j=!1}}}),(Y,J)=>(o.openBlock(),o.createElementBlock("div",_y,[o.createElementVNode("div",Ay,[o.createElementVNode("div",{class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",Oy,o.toDisplayString(o.unref(y).region),1),o.createVNode(oi,{modelValue:Y.modelValue[o.unref(m)],options:o.unref(f),disabled:Y.disabledFields?.region||o.unref(l),"onUpdate:modelValue":ee,allowClear:Y.allowClear?.region,isLoading:o.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",Ly,o.toDisplayString(o.unref(y).district),1),o.createVNode(oi,{modelValue:Y.modelValue[o.unref(E)],disabled:Y.disabledFields?.district||o.unref(u),options:o.unref(p),"onUpdate:modelValue":pe,allowClear:Y.allowClear?.district,isLoading:o.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",Py,o.toDisplayString(o.unref(y).locality),1),o.createVNode(oi,{modelValue:Y.modelValue[o.unref(b)],disabled:Y.disabledFields?.locality||o.unref(c),"onUpdate:modelValue":le,options:o.unref(h),name:o.unref(b),showAddButton:He.value,isLoading:o.unref(c),multiple:Y.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),o.unref(W)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",Fy,o.toDisplayString(o.unref(y).street),1),o.createVNode(oi,{modelValue:Y.modelValue[o.unref(g)],disabled:Y.disabledFields?.street||o.unref(d),options:o.unref(S),"onUpdate:modelValue":ve,allowClear:Y.allowClear?.street,isLoading:o.unref(d),multiple:Y.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),o.unref(U)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",By,o.toDisplayString(o.unref(y).house),1),o.createElementVNode("input",{type:"text",class:"form-control",value:Y.modelValue[o.unref(T)]||"",disabled:Y.disabledFields?.house,onInput:ye},null,40,Vy)],2)):o.createCommentVNode("",!0),o.unref(U)?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",Ny,o.toDisplayString(o.unref(y).building),1),o.createElementVNode("input",{type:"text",class:"form-control",value:Y.modelValue[o.unref(v)]||"",disabled:Y.disabledFields?.building,onInput:Me},null,40,Hy)],2)):o.createCommentVNode("",!0),o.unref(U)?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(`col-${Y.columnWidth} mb-2`)},[o.createElementVNode("label",Iy,o.toDisplayString(o.unref(y).apartment),1),o.createElementVNode("input",{type:"text",class:"form-control",value:Y.modelValue[o.unref(R)]||"",disabled:Y.disabledFields?.apartment,onInput:Ne},null,40,zy)],2)):o.createCommentVNode("",!0)],64))]),Y.showFullAddress&&o.unref(V)?(o.openBlock(),o.createElementBlock("div",jy,[o.createElementVNode("div",Wy,[J[0]||(J[0]=o.createElementVNode("strong",null,"Полный адрес:",-1)),o.createTextVNode(" "+o.toDisplayString(o.unref(V)),1)])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-03b1b9ad"]]),Uy={class:"age-from-to-form"},Gy={class:"form-group"},$y={key:0,class:"form-label mb-2"},qy={class:"row align-items-center mb-2"},Ky={class:"col-auto"},Jy={class:"form-label mb-0"},Xy={class:"col"},Qy={class:"col"},Zy={class:"row align-items-center mb-2"},ew={class:"col-auto"},tw={class:"form-label mb-0"},iw={class:"col"},nw={class:"col"},rw=Ve(o.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:"От"},placeholderTo:{default:"До"},timeTypeOptions:{default:()=>[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}]},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={age_from:null,age_to:null,time_type_from:null,time_type_to:null},a=o.ref({...s}),l=o.computed(()=>{const h=a.value.age_from;if(!h)return null;const S=a.value.time_type_from,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),u=o.computed(()=>{const h=a.value.age_to;if(!h)return null;const S=a.value.time_type_to,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),c=()=>{a.value={...s}},d=()=>{i.onFilterUpdate&&(i.onFilterUpdate(i.nameFrom,l.value),i.onFilterUpdate(i.nameTo,u.value))},f=h=>{if(!h.age_from&&!h.age_to&&!h.time_type_from&&!h.time_type_to){r("update:modelValue",null),r("change",{...s}),d();return}const m=[];h.age_from&&h.time_type_from&&m.push(`age_from[time_type]=${h.time_type_from}&age_from[value]=${h.age_from}`),h.age_to&&h.time_type_to&&m.push(`age_to[time_type]=${h.time_type_to}&age_to[value]=${h.age_to}`);const E=m.length>0?m.join("&")+"&":"";r("update:modelValue",E||null),r("change",{...h}),d()},p=h=>{if(h)try{const S=new URLSearchParams(h),m=S.get("age_from[value]"),E=S.get("age_from[time_type]"),b=S.get("age_to[value]"),g=S.get("age_to[time_type]");a.value={age_from:m?Number(m):null,age_to:b?Number(b):null,time_type_from:E?Number(E):null,time_type_to:g?Number(g):null}}catch(S){console.warn("Error parsing query string:",S)}};return o.watch(()=>i.modelValue,(h,S)=>{h!==S&&(h===null?c():p(h))},{immediate:!0}),o.watch(()=>a.value,h=>{f(h)},{deep:!0}),o.onMounted(()=>{i.modelValue&&p(i.modelValue)}),e({reset:c,getFormData:()=>({age_from:a.value.age_from?Number(a.value.age_from):null,age_to:a.value.age_to?Number(a.value.age_to):null,time_type_from:a.value.time_type_from?Number(a.value.time_type_from):null,time_type_to:a.value.time_type_to?Number(a.value.time_type_to):null}),getFilterStrings:()=>({from:l.value,to:u.value})}),(h,S)=>(o.openBlock(),o.createElementBlock("div",Uy,[o.createElementVNode("div",Gy,[h.title?(o.openBlock(),o.createElementBlock("label",$y,o.toDisplayString(h.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",qy,[o.createElementVNode("div",Ky,[o.createElementVNode("label",Jy,o.toDisplayString(h.placeholderFrom),1)]),o.createElementVNode("div",Xy,[o.createVNode(er,{modelValue:a.value.age_from,"onUpdate:modelValue":S[0]||(S[0]=m=>a.value.age_from=m),name:h.nameFrom,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderFrom.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",Qy,[o.createVNode(oi,{modelValue:a.value.time_type_from,"onUpdate:modelValue":S[1]||(S[1]=m=>a.value.time_type_from=m),name:`${h.nameFrom}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])]),o.createElementVNode("div",Zy,[o.createElementVNode("div",ew,[o.createElementVNode("label",tw,o.toDisplayString(h.placeholderTo),1)]),o.createElementVNode("div",iw,[o.createVNode(er,{modelValue:a.value.age_to,"onUpdate:modelValue":S[2]||(S[2]=m=>a.value.age_to=m),name:h.nameTo,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderTo.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",nw,[o.createVNode(oi,{modelValue:a.value.time_type_to,"onUpdate:modelValue":S[3]||(S[3]=m=>a.value.time_type_to=m),name:`${h.nameTo}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])])])]))}}),[["__scopeId","data-v-4b5f9814"]]),sw={key:0,class:"modal-wrapper"},aw={class:"modal-header pb-4 border-bottom-0"},ow={key:0,class:"modal-title"},lw={key:0,class:"modal-body pt-0"},uw={key:1,class:"modal-footer row justify-content-start pt-3"},Fc=Ve(o.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},size:{type:String,default:""},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},a=l=>{l.key==="Escape"&&s()};return o.watch(()=>t.modelValue,l=>{l?(document.body.style.overflow="hidden",window.addEventListener("keydown",a)):(document.body.style.overflow="",window.removeEventListener("keydown",a))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}),(l,u)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",{class:"overlay",onClick:s}),o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered,"modal-sm":n.size==="sm","modal-lg":n.size==="lg","modal-xl":n.size==="xl"}])},[o.createElementVNode("div",{class:"modal-content p-3",style:o.normalizeStyle(n.style)},[o.createElementVNode("div",aw,[n.title?(o.openBlock(),o.createElementBlock("h4",ow,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),o.unref(r)["modal-body"]||o.unref(r).body?(o.openBlock(),o.createElementBlock("div",lw,[o.renderSlot(l.$slots,"modal-body",{},void 0,!0),o.renderSlot(l.$slots,"body",{},void 0,!0)])):o.createCommentVNode("",!0),o.unref(r)["modal-footer"]||o.unref(r).footer?(o.openBlock(),o.createElementBlock("div",uw,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0),o.renderSlot(l.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],4)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a60564b8"]]),cw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFSa9lVVgjJPSCxe1l1KPpM6/7rfRwweXyO8I5+AoM4KfANO2539hIY+zc74irX3hcqkXm0iYJwnZhVNtH8Bk/BKbeSiY5ZPzBmBFC/ZoVgUqnvGG/kQLKR0Kw3dcvqtcCB5GICAW1jdRrb7xGrFr5rFSN3oYgHJdOb1vvl8n2UuAgTMQ9XZ3L/mF5oFyd+rSgt+KjyF4JHISJuDnZ2LdldVZ5bzHJp4REbmvbIIyFp19kLwSmMbcOBnEnXijUvPZc4M0+Ie7/aZNisfVeiuyFwCSubo5L4m57O1CJvojH5lqEu9BUiIurRVFOl4/3K1UOYiA8wE2BKYihm+fSmEtmGX0dEvmIdK3yL/SDy7glcBCJCFUn5C2/tiywvI+NuekRxWwMDFwCl3FrDP4MGqeK5rnrXwo83qunQhZRI161bka83OjBtCoU1DZQEIOLa46sKJe4OR473YODSPTeTiaOE2q3rQtUgJMWSYh/IYySq+ACATjLI9oKjbtPLpbWw2d2NckDmj5H//qGxGL92Weh9Y6bpSgYQVbE85Td0ng3TLWTPTiERLSqk7tmixV+rQpRFsbKKmVi7XZl8rE0WRhnq1799G+KW++ajR2hIsnvIaRNOhlbKVyENjiIkwLrHCv14UX3/z3rcXhMuEbOnrc4XnaKjAtTrp0mVD37cKB6tI9evgRsF0bHtsNBnHKyymBwrF5dFngBHvOTX8mF18+PL+mpuMR7m5WSy26ILaEvCHxCBsY7PTd2qgeTaQ4lK344VncvkYtWvBGfa2wnS3LpRUL9hDHCvulTEE2myW6tU/LNkugoU/OPy8Vyv0y2073YCYEpFFmnbXjvlcBPvZwWUa+7+o74E9o2mnsvnC9W/uJHUv2pfve2hXLx6j/FZ2nbaGxWh5fH4A+OjsVOmOiF2grlJXk957353vgD2jp57xRY6UpcgpIMKp8WH6MvRLKtuQXDSua3l8Af+uG0rPFwCLsC01JgmbZhdqnoaVbGPUvkFC+5pwkEt98k7Vs0T9QtgGyqUYp3NWEAfIDGYjiEXYFv1Fao5zzxoLQDHvLulrgubZXGfysW5Oc/lupzz0NnBmdbDAPKX5QL4A/9lAiGwAHsCqxzagrGCl2aRKcxesx2AivXTRVrtPWdu5Xu7lFynlggCAewI3Byf24nC2Z6G9T49QpZJ64aoYraGf9v+baoy8E+eAi+TZnK1Lk8Ett4ymADO6HKkLZC5vm7Nwuehv9ouqOt9z/NXpAib6jQqq0faPanB5NfUfnW/wQm6DUCixvbHBPYD/M8fYoYzT4L5Z2fYZzoqPf+jX7+RLWi+xWj5SBfJwwL2BF4mrZSdLHwCTyGzHGxgwGJdRvlYdq6XYtglQI1KPPuZkXbNA0WsToGJw846eTOWdKnyHDer1V0Y/rwocI++MC8W1P2YyUPk+kxVgXWiUvOzehekIqzdbt+p6AfVomgZ0khU0NzEBZwRODBZ2Z+tkbp/PZSbcDEjzm9lpF5KV8uS2eCWBU4qK2MHA5mFs+tQOL+WV1N0rbNLhF9TVQ4NyelB3sqcJ62MuECIWMFNhN3yiSh2u/tq7lDUqzimbCAVS9aN+DnDEYrMox0iQGUu/27JwOu5Ef1hPODzvRgqwIHtRWn559uc9t9cvHbG+MlX8f0gRKW9kslnmlc22TJi3akBxsjQCwTmtM+64NtSrG2LUP2J/sncKZMkczEJW/5+UcCy2+/yZ85bzpMYuqeCpxxkFk2itsXtrD2CYHJoVLXjXXi0nkgfWGXo9vbR5lg1TvINwYxnntUWo0+gFWBdUf1+ZXa0l2MWR8UxGB9r5TJM7V0PKIjAjd9rvQHwxjnug/c5V8IsruYPFP/BN7REPct86ErXl0r6xbtM2VhxOSZRmABqwLresCnETAr8MFD0PWETFkYMWarqByFBRzpwSYZCMxyTg4yQmA6oNzQFIEFrAqsS8850IwcMIrRugwckBlz3j3RlHywCCxgdR6sE3jPXqXHm728YsoliEb3C51Lf9MnC0yfXpvk8JGUTmMp583q3iQKmx3WNvy7OmtRb8jqYAGaIl1QHFtmaB4MC560nTFY9436/Wr5fHAc4eVVstEiWr6oy04ka7O2UvNPZQw4jrBha9y4ZWYzLGJH4LXayoc7FUsL0pxUdjfB2FnCsIgdgXVmg2K9xq0knJ5DgRmTM0XCsIgdgVPG4U217HrTmcKKVcpkQ9PbsHFNj93VpJQ9tWAMOkLp+vntpSOmxh6gwrqVMRnq1sIGEuwRUcvdajmNKnIcWWogoXHyxezkaF14rbz4w5249NhxZFPZ+IFSxNpnTEJ3MqlWcKqmiXruPWo5CYvY7cH0AXS9+DevxEvBCNRb6TgGY7tqBpmzNARduGVoot5r2TwTTiz460wILc2xYgbTLYKc/Jq95U3KOjE5/ulZ2MQJgcMweHms9GJa99UerpLksokic+vBDz4VNx76EobF8KQWp1J2HtVWWOnFFDqlS7a0bXQK0BuMpcdS7637GMYr8hzJF3PyKEPdYWh0oMlnW7LKwQB0/dymD+K5487HITpRB4wx5LLYz5q/1PkKEbWMgAPY9aK1NEFzngR5rPsPoqVkuuj7Ax2ZK7QWXyEemDBWPAbGoOMa/rpN5zkTN8Hi8qARJ7MqwzCMxZVvxWexnpDnJ2SaV1Wl+CsVcPCiaTcOBKdjDTuz8PNHoL5hY5bnB5NmApNuiM01GXvJNEfgEE6aaILmbDQFCSUbWo7g3IbdaL3lW+Jn4HRCOy1U3+A6QzM5q7YiV0bcSHxfCoN7v25DvMTPY3pZg54F7W40NEdguKnGCdza2UBOQmcEho4FpAND+XicEJeehWHrKj2rq+ACbgkcgWFuTEtgV86K9WmRaeFjzqL4vSbLgfSsInABp8dgLX9DIo/o8mTDiVacsfUf8TO/N0eyHaHJRK6cKS/YmxqOJHGfhEt4cTmlLgBCTByH2m3rsirQh5g0o72sriFlrTcMl0xzEi92F6ZM2usaMHnSjFhZXzDXZJbTiBtB4tm4iq8XRNPR+a8vE5czcKWNK5BDRWOuyZJlBImeG4HLeCUwEYSJyH5fguEWr6+Rh33/UVOHKgKPxCW8FJgIwkRkWtKbcY1Yxdoqj1XSneIDj8Ul3PSizUhmgJBnHUw2UqpPw6fKhev/Es/Jz0M0mCtm3LlbBI235Clv2aYU0//J8OMwEuIegId4LTBB+UUkMlmPkPYHB5qRu3ajUhjZhxMsrEL1BFoVuueh+H3/aYHZIeKUmTEHNnKrrOK1iTZyPxIXWqYcEUQbtV9/RnyB9bG5fIWc//wr8dI0t62RxaJ57jPwCb8FJoIwGZeT0Jz56cXietaE7kJYgoI5jq3rWoUFgZMsheF6Wi2UITJ7hljdncuu3KQbwlKvJZO8FAzAksBEEIkHMzfdG2haNWEs6u+cKdZ6dQcwibqpVhkTrlGmm3jGWsJqmQefe60W1gROEkLiSpngqd5EYo8ajsarp4r182eicXSe5Mj+ZPKGX3oT+bXb4/kf7kRhuvuHNYSRGGvDYAxWBU5ShkRvDnXnzRQZG3wGDo0cLkTHjxX25QzCicJxaMkbilaj+NUd69N0K/iuCLLpnJEDzUrOnr36Q9O6IAxGhc00aL9OBRKnCig+F/oM5BWHwHGc5GWYa+C9qO93/G1Lp776Besm+lQkr9ajMg0WT0Q/BeSt0876tbBxhILfZLLARpJ3OVEJInGvxKCOfw9Cas87oikk4NGOVyoRZKigHA6Hw+FwOBwOh8PhcDgcDofD4XA4jvJfXpsrRXCs/isAAAAASUVORK5CYII=",dw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsQSURBVHgB7Z1/UFTXFccPYBAQlF3AXyzyFAcnEZQ20RGiyUZmQnV0QjuNjTOtEKf+Uf+oZtI/2plOizPpTP5IJvEf0wwzCXbSMZGkMSPT1HaM64+A0U6DYmohUV5gHUF+LMrCWhToPd195HF5iLx339vLcj4zZ9h7Wcflfffee+65954LQBAEQRAEQRAEQRAEQRAEQRAEYYE4iB3SmSnMipitjbxWIvWa6emLmKr7+S2zxoj1QQwwkwVGwVDM55h5I69FgiL7mJ2O/IwJwWUHRa1kdopZgNmog3Yq8n+nAyEcL7M3wHlRJ7N3QXyPYQuyd9FeZr+P/JyStEce6V6RmtqSmZzc42HGXvescbt7lqSkhPLS0gb1773W359yc3Aw+XJvb0bv0FDKldu3PW3BoCcwNJTZffduDjwcPmaHmdWApMgqsBceQlgUdLXLdWnLkiWNZR6PnxfRLCj+kevX8z/r6FirBoOr+u/dy5jin6jMXmJ2DCRDNoEVCHd/3snekBgfP7hp4cKTTy1a1LL30UdbwAE+bG31HG5tLfkqECiaQuwaCAstjUMmk8D7mFXBJE6MZ9685j0rV9Y5JepkvHLpUtFHbW2b/QMDqyZ5Cwr8JkiCDAIr8IBWK4uwPGc6OzOqGhu3NQUCJdyvXgSJxuRoCzxpq5VVWB4Uet+FCxXYovEz/3njxt89lp39adY77/SDBERTYJz27OcrcYzduXz50dfWrWuAGQqbRw3FjY7WZ33wQdS/nNEQGFvrx2DQJa+cP7/xvU2bDovyhqNN/PBwU0ZtbVS/qE4LrEA4IqToK7HVbs3Orqt+8smTEGPEj4z0jKSm/j1aXbaTAitgIG7anDk9NZs2vc6mPT0Qq8TF9UNycl00RHZKYAUMxM1MSvLXlZa+Hitd8gOJkshOCKyAgbiFLld9dUlJ7awQNwI6X/fi4uqyjxzpBodwQuAvgQvMo7iflZUdhtmIwy05HuwFp0Ikrp7R0TQIhbZ17d6dBg5gp8AYxBg3z8Uxd1aLq8FEjg8Gn/16y5a5YDN2CaxAOEI1BnrLbxcXHwLi/4zEx2e4U1O/DzZjl8DoVI2FH3GeG/NTIROMJCQUdjz/fCHYiB0C4zquoq/AIAaJa0x8QsLjdo7Hc0AsCnBdM3OqGmSIUKlsEf8PTU0b8HVFXt6ljZJ84dg0JhGCQS97eRxsQPQ0CZf9KrWCLFGqc2zFZ9e5cy9ri/X4uf5RVvaKTHPw4eHhhsW1tU0gGJFdtBd04iI/ys09LkPXfPjatbX6nRj99+9nvNrUVAwSgV21HV61SIHf1RdwbVSWJT8maIpBXTJIBHbV6S5XAQhGlMCVwDlWB9evp/nuNBkdGSkU3YpFCVyhL6BjRV7z9LGjFYsQGEORXn1FVVGRLR7hbEB0KxYh8D59AXdlUOs1j+hWbFVgjFaV6yt+tnx5zO3KcBpsxSAIqwKjuGMhSZxfyr4LciaArbjrhReWggCsCvycvrDa7W4EQggj3KzELFYEntg95+XVAyGEfefP48xkXGTQDFZi0V59AbvnHbm5fiAs86uLF4vfV9XKSBF/qhA+yThtrLRgr76gpKXR2CsIfyjEH3ArB5NYEfhpfWHz0qVfAiGEggUL+J7waTCJWYG1/Bhj7FSUr4EQws4VK/jeEJ+1qdQRZgUeJ25mUlL7bNr+ajf4LPFwO1etgAmECJyemEiRK8EY+DSmcoKYFVjRF3JTU9uBEMrCpCS+0TgqcK6+UOBykcCCwSQyXNUCMIEVJ2sM95w5ISCEsmL+/Ki2YEVfeMzt7gVCKAXp6bzAjnrRlO3NeaInsHfRIsdOy80WDNbUHRWYmCGQwDEOCRzjmBV4XKo+X2dnJhBCwXyZXJWp9IhCBCbEc2NwkN+YHz2B/93b6wZCKFf6+vg1YRVMYFZgVV+4HgxOlW6XmCa9d+/yXfRtMIFZgb/VFwx2IBAWwQTlXJUKJjAr8Ljdk7dCIXKyBNMWDPJZ51UwgRCB1f7+fCCEEhga4ntFU1uShYzBeN7WwK0nTILP0uDeCB+YwIoXPe4bdcLv9wAhBLwvgqsyfaDASiTrtL7w6c2bptYriYn4OjrWclWnwSRWBPbpC1/19kor8FNZWRP2bMu8C4VNO/n7IHxgEqsCjwU8cByWNWSJB+JKFy8+jvm60Mpzco7+trDwEkhIbWtrjsHNLj4wiZWjK9o47NUq/tjcvIGtDdeBhLzv9eLnkvKz6flTayufHOYTsBAatrqa9Im+cLajoxQIS+DdTFzVMbCAVYFrQPftGhoZSTl09SrNiU2CdzIZdM9RFRjFHZdNp/qbb7YDYYqP2tr4HrAGLK7ciVjwH/cN8w8M5FMrnj6YjQ+fHVd9ECwiQmAfcF6ejK0Yc1Xuqa/fjIYPEyQDb1HjqnxgIcChkQBiwNWlSq1wh40jqQkJLeuysqQ4s4SClp869evLgcC6/9y+XfBXv79oW05Og3vu3HsgAfj5Dl69WslVHwABAovak+UDiVux7Lkq9zQ0/IKrUkHQ/YciN90d0BdwPEGvECRA5lyVmK7BYGHhRRCESIF9wLXit5qbK2RYZZI1VIld81/a2viergYsRK54RI3BGhgUr2SWhIXh0dFHLnR3L6hYudLyWGIF9AX+1d2NG9lyEuLi7m33eD5+7Yknop4Jd/fnn+9om3gP8Q9B4KZGO+5NqoJwWv8xypctO1pdUkIZ8HQwb770WFvbDq4ah7kqEIgdG9+rgPP+mNe6TcapSbTAZ4HPhKtWQbC4iF0nG8Z1MxjC3HX27Mu06+O76wXwmeiq8Vk9AzYgegzWwA/8X2Y/0CrwDzrW3l6wJTv7n7LMP50Ggy0/OXNmX9/Q0GLuV79h9jewAbsERs4zczHboFUM3r8/XwanK1psPXny5wbhSBx3XwWbcOJySrwky6uvWONyNZwsK6uBWcTmEycqmwIBPrjiA5u6Zg0nBMaDy5gFT9FXzhaRsVveXV+/w0Bcldn3wOZzXlG/ILq6uPiQLJdUiQYdKhaG3MsiVUanFJ4Bk5vZp4OdY7Ae/Jbi7o9y0KUiwDEZA/+PZ2Q0LktNjalMPR+2tnr2fvGFkUOlgkPiIk61YA0FDFoyboTb6vHUxUowBIMYOM/lpkKICg6KizjVgjW0HSA4fRr7ZmNIky3jrT5x40ZmXlpa+0xtzTjeoqdcf+tWKf5N3K99EBa3AxzEaYGRu8zeBm4KhXSyVRXsstsHBgafzc6eUcnFcVXopYsXf9k1cWUIwZ0ZOyH8tzuK0100z34Ix60npAjCDLbMAXtLdgfsUHNzfnVLy3aD+S2CPRbOc9+EKBFtgREFDMZlDZxOHSgqOi6b0FMIi2AwB0O2KkQRGQTWqAJuFUqPZ968lj35+cf3rloV1asDHkJYbLXYJVeBBMgkMKJA+MFUTPYGvPyjwO1u3JWXV/9jhy4BQVHPdHauOtvRsdnAM9bjg/BuDBUkQTaBNXC+/AZMkeVcE3t9VlbLTxWlRRGUdR694fdUNf9CV1f+lUDAaDM6jw/CY60PJENWgTUqIdyavQ/zZoyMuRITu9k0q73A5fK7ExMH16Sn93hSUkK8+Nr69OW+vozrd+5kYJ6RrlAoszUYzH8IQTV8IKmwMw0vhPcqjUpgAQh7xV4ghIPTqUoIe91Oi4r/536YYamUZe+iHwQ+aC+Ex2s8ES96iy5Oc3AToQ+4s9AziZksMI92lxOaAuF7JdIjr9NhYsvr05kK4dMZjRFTgdI1EgRBEARBEARBEARBEARBEARBAPwPLw1v/6g+hXsAAAAASUVORK5CYII=",hw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsQSURBVHgB7Z1/UFTXFccPYBAQlF3AXyzyFAcnEZQ20RGiyUZmQnV0QjuNjTOtEKf+Uf+oZtI/2plOizPpTP5IJvEf0wwzCXbSMZGkMSPT1HaM64+A0U6DYmohUV5gHUF+LMrCWhToPd195HF5iLx339vLcj4zZ9h7Wcflfffee+65954LQBAEQRAEQRAEQRAEQRAEQRAEYYE4iB3SmSnMipitjbxWIvWa6emLmKr7+S2zxoj1QQwwkwVGwVDM55h5I69FgiL7mJ2O/IwJwWUHRa1kdopZgNmog3Yq8n+nAyEcL7M3wHlRJ7N3QXyPYQuyd9FeZr+P/JyStEce6V6RmtqSmZzc42HGXvescbt7lqSkhPLS0gb1773W359yc3Aw+XJvb0bv0FDKldu3PW3BoCcwNJTZffduDjwcPmaHmdWApMgqsBceQlgUdLXLdWnLkiWNZR6PnxfRLCj+kevX8z/r6FirBoOr+u/dy5jin6jMXmJ2DCRDNoEVCHd/3snekBgfP7hp4cKTTy1a1LL30UdbwAE+bG31HG5tLfkqECiaQuwaCAstjUMmk8D7mFXBJE6MZ9685j0rV9Y5JepkvHLpUtFHbW2b/QMDqyZ5Cwr8JkiCDAIr8IBWK4uwPGc6OzOqGhu3NQUCJdyvXgSJxuRoCzxpq5VVWB4Uet+FCxXYovEz/3njxt89lp39adY77/SDBERTYJz27OcrcYzduXz50dfWrWuAGQqbRw3FjY7WZ33wQdS/nNEQGFvrx2DQJa+cP7/xvU2bDovyhqNN/PBwU0ZtbVS/qE4LrEA4IqToK7HVbs3Orqt+8smTEGPEj4z0jKSm/j1aXbaTAitgIG7anDk9NZs2vc6mPT0Qq8TF9UNycl00RHZKYAUMxM1MSvLXlZa+Hitd8gOJkshOCKyAgbiFLld9dUlJ7awQNwI6X/fi4uqyjxzpBodwQuAvgQvMo7iflZUdhtmIwy05HuwFp0Ikrp7R0TQIhbZ17d6dBg5gp8AYxBg3z8Uxd1aLq8FEjg8Gn/16y5a5YDN2CaxAOEI1BnrLbxcXHwLi/4zEx2e4U1O/DzZjl8DoVI2FH3GeG/NTIROMJCQUdjz/fCHYiB0C4zquoq/AIAaJa0x8QsLjdo7Hc0AsCnBdM3OqGmSIUKlsEf8PTU0b8HVFXt6ljZJ84dg0JhGCQS97eRxsQPQ0CZf9KrWCLFGqc2zFZ9e5cy9ri/X4uf5RVvaKTHPw4eHhhsW1tU0gGJFdtBd04iI/ys09LkPXfPjatbX6nRj99+9nvNrUVAwSgV21HV61SIHf1RdwbVSWJT8maIpBXTJIBHbV6S5XAQhGlMCVwDlWB9evp/nuNBkdGSkU3YpFCVyhL6BjRV7z9LGjFYsQGEORXn1FVVGRLR7hbEB0KxYh8D59AXdlUOs1j+hWbFVgjFaV6yt+tnx5zO3KcBpsxSAIqwKjuGMhSZxfyr4LciaArbjrhReWggCsCvycvrDa7W4EQggj3KzELFYEntg95+XVAyGEfefP48xkXGTQDFZi0V59AbvnHbm5fiAs86uLF4vfV9XKSBF/qhA+yThtrLRgr76gpKXR2CsIfyjEH3ArB5NYEfhpfWHz0qVfAiGEggUL+J7waTCJWYG1/Bhj7FSUr4EQws4VK/jeEJ+1qdQRZgUeJ25mUlL7bNr+ajf4LPFwO1etgAmECJyemEiRK8EY+DSmcoKYFVjRF3JTU9uBEMrCpCS+0TgqcK6+UOBykcCCwSQyXNUCMIEVJ2sM95w5ISCEsmL+/Ki2YEVfeMzt7gVCKAXp6bzAjnrRlO3NeaInsHfRIsdOy80WDNbUHRWYmCGQwDEOCRzjmBV4XKo+X2dnJhBCwXyZXJWp9IhCBCbEc2NwkN+YHz2B/93b6wZCKFf6+vg1YRVMYFZgVV+4HgxOlW6XmCa9d+/yXfRtMIFZgb/VFwx2IBAWwQTlXJUKJjAr8Ljdk7dCIXKyBNMWDPJZ51UwgRCB1f7+fCCEEhga4ntFU1uShYzBeN7WwK0nTILP0uDeCB+YwIoXPe4bdcLv9wAhBLwvgqsyfaDASiTrtL7w6c2bptYriYn4OjrWclWnwSRWBPbpC1/19kor8FNZWRP2bMu8C4VNO/n7IHxgEqsCjwU8cByWNWSJB+JKFy8+jvm60Mpzco7+trDwEkhIbWtrjsHNLj4wiZWjK9o47NUq/tjcvIGtDdeBhLzv9eLnkvKz6flTayufHOYTsBAatrqa9Im+cLajoxQIS+DdTFzVMbCAVYFrQPftGhoZSTl09SrNiU2CdzIZdM9RFRjFHZdNp/qbb7YDYYqP2tr4HrAGLK7ciVjwH/cN8w8M5FMrnj6YjQ+fHVd9ECwiQmAfcF6ejK0Yc1Xuqa/fjIYPEyQDb1HjqnxgIcChkQBiwNWlSq1wh40jqQkJLeuysqQ4s4SClp869evLgcC6/9y+XfBXv79oW05Og3vu3HsgAfj5Dl69WslVHwABAovak+UDiVux7Lkq9zQ0/IKrUkHQ/YciN90d0BdwPEGvECRA5lyVmK7BYGHhRRCESIF9wLXit5qbK2RYZZI1VIld81/a2viergYsRK54RI3BGhgUr2SWhIXh0dFHLnR3L6hYudLyWGIF9AX+1d2NG9lyEuLi7m33eD5+7Yknop4Jd/fnn+9om3gP8Q9B4KZGO+5NqoJwWv8xypctO1pdUkIZ8HQwb770WFvbDq4ah7kqEIgdG9+rgPP+mNe6TcapSbTAZ4HPhKtWQbC4iF0nG8Z1MxjC3HX27Mu06+O76wXwmeiq8Vk9AzYgegzWwA/8X2Y/0CrwDzrW3l6wJTv7n7LMP50Ggy0/OXNmX9/Q0GLuV79h9jewAbsERs4zczHboFUM3r8/XwanK1psPXny5wbhSBx3XwWbcOJySrwky6uvWONyNZwsK6uBWcTmEycqmwIBPrjiA5u6Zg0nBMaDy5gFT9FXzhaRsVveXV+/w0Bcldn3wOZzXlG/ILq6uPiQLJdUiQYdKhaG3MsiVUanFJ4Bk5vZp4OdY7Ae/Jbi7o9y0KUiwDEZA/+PZ2Q0LktNjalMPR+2tnr2fvGFkUOlgkPiIk61YA0FDFoyboTb6vHUxUowBIMYOM/lpkKICg6KizjVgjW0HSA4fRr7ZmNIky3jrT5x40ZmXlpa+0xtzTjeoqdcf+tWKf5N3K99EBa3AxzEaYGRu8zeBm4KhXSyVRXsstsHBgafzc6eUcnFcVXopYsXf9k1cWUIwZ0ZOyH8tzuK0100z34Ix60npAjCDLbMAXtLdgfsUHNzfnVLy3aD+S2CPRbOc9+EKBFtgREFDMZlDZxOHSgqOi6b0FMIi2AwB0O2KkQRGQTWqAJuFUqPZ968lj35+cf3rloV1asDHkJYbLXYJVeBBMgkMKJA+MFUTPYGvPyjwO1u3JWXV/9jhy4BQVHPdHauOtvRsdnAM9bjg/BuDBUkQTaBNXC+/AZMkeVcE3t9VlbLTxWlRRGUdR694fdUNf9CV1f+lUDAaDM6jw/CY60PJENWgTUqIdyavQ/zZoyMuRITu9k0q73A5fK7ExMH16Sn93hSUkK8+Nr69OW+vozrd+5kYJ6RrlAoszUYzH8IQTV8IKmwMw0vhPcqjUpgAQh7xV4ghIPTqUoIe91Oi4r/536YYamUZe+iHwQ+aC+Ex2s8ES96iy5Oc3AToQ+4s9AziZksMI92lxOaAuF7JdIjr9NhYsvr05kK4dMZjRFTgdI1EgRBEARBEARBEARBEARBEARBAPwPLw1v/6g+hXsAAAAASUVORK5CYII=",fw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAx0SURBVHgB7Z0LcFTVGce/u5uEsIEERCwqCWuxCegIEeuMoNWlGa1aHNEp4LMkU6TYcSo01WmnCrRDW6yNaOvQglDCDMprBoIB2pEiQcqjDyCI5RFeSwKKQiAE2Lx293r/7N7M3ZPdkNx77mM35zdzZnPOLiS5/3znfOec73yHSCAQCAQCgUAgEAgEAoFAIBAIBAKBwAASpQ79lOJVSqFSRkbrhdFXtWhpiBa/5vWkUqqjpYFSgGQWWBXwcaX4ol/zBCJXKWVr9DUlBHc6ELVYKVuUckEpsoVlbfR79yMBd3xKmUfWi5qoLCH+PYYpOL2L9illVvT1mmRnSfVD81w1gwZK5/JudNUPHSLVj7otrX7wzdRUkJcW0H72cG3Qc+o09d5zIDigvoE8nx4KDT5eG8493ygPOHtezqWuUaWUpUopJ4fiVIF91AVhIeiI4a7qe0el1ZRMSKthRdQLxF+yOpj/0bbgyKN1oYJLl2nANf6JXyklFBHcUThNYC9Fuj9fog9kpFOgaHTa5rH3uGte+VFmDVnAsoq2wQtWt4zZdyhUeA2xy5UygxzkkDlJYFjsdErgxOTdKB1+6fmM9VaJmohflDUXflDZWlT3hZyf4CMQ+G1yCE4Q2EsRDzWu0+IUYVk27wwOeOWN5nF7D4bGMG+hqy4nh2C3wC8rZTbFsVqnCssCoUt+GSiGReNn/nBB1syR91zeKN1Al8kB2Ckwpj3T2UaMsSVPpq/66288OylZkaRWCkm7peEX9pPN2CEwrBVdso99o+AWV/W6hb2X8vKGbccV3i9965Ktf6hWC+ylyCqUV9sIqx3/YPr6lfM8mynVkORL1K+x0q4u20qBvRRH3L59qH7tu1llytSnnlIVG0W2SmAvxRH3+gF06l8rsspSpkvuDIgckj+Shl+y9A/ZCoEx5u4lRtw7h7t3LP9T5uoeIa7KVecrVGmlyFYIDHFj5rgQd09Fn6XUE7G4u3aRuWB1SoirRZb6UkP2Y/JX1IcswEyB1UWMdjDmolumng5Ers/5nvwZZZDJmCWwlxhx4S2vKMua36PG3M5wKZsWvfreRSZj1hh8gjROFea5G9/LmpPSUyG9hF07zVzxMsOCMe56tQ1YxBDiJsAt32XmeMzbgr0Usd527rzNvXPP2j7lJEiMFP5cyr+0nkyAtwXP0lYw7r75amYlCTpHdt0kH+x/B5kAT4F9FIk6bOeZ76dXiq65i6CrNsGr5tlFxzhWA6+T6r7amT2HBF0nTMoW48XdxBFeFlxMjGO1/C3PX0jQPdzSHbytmJfAk7UVOFaia9aBLGeQO4frWMxDYCxF+rQNwrEyAGcr5iHwy9oK4pKE9RqAsxUbFVg9K9TOc+MyUi8qw2oUKyZOGBV4vLaCee9vf565j3oIOAGRN7axVCq4uKDg4cYXUSceKFYs+z03EgeMCvy4tjJymLuaeggQ8ztPBUrrPo8EwNeckAtnzmsdTbxocnuJA0YERvccY8FTf5CevKGu3eTxqU2Tz9bLg7Vt/fsSt52y4l81F1PkGE8xGSCN9OPTVtA9P/9ErzrqAYx64nLx4RPhmEAG7HXPmJLBZXiaNrNp9NI1bcXRKl79pPNgmxEL9mkrt+a5HX0CgRf3P3tl4t4DoZiumPded+0XYfaA23jSiRGBH9BWHrk3bS+lOI9OvfLYtv8Fi7RtZoT9jhjmPsU0PUA60Suwmh+jnR9OTDtCKQzE/fvW4Dhtm1kx3VMm9GJ7QzWZTLfRK3CMuNhYSOVQHCvFBbfmSQEcbmeavaQDLgL3z6GUXbmyWlyVoXmuw0yTrpwgegX2aitDc90p6T2/MCswhhUX8WXzX/fMN3s5dtDADhZsqcBDtJU7C1JPYIi7aEVbzC4ZxF08x1P23Pj0U2QySCLDNOWQDow4We1c15+aKIVATg5WXDCjJH2pFeICZAhimuzrogtvS53dI4g75bWmUrb9hUnp5XNLPZYtxY7q+Ewt9aJjvhnyUFEKgHQMELelTY7ZNJj4aPqqhRZnHBhys5t9pvYJnApTJIj75EuBDuI+cn9apR0H0zFVYposFdgyTNuS06CK23hZjlkihLgb38syJV7ZKhwv8LxFbSO1W3LYouMpciqLCxwvcEOj3Ftbxxbdg5MDLxIHUl1coFfgmFR9ZnSbKnN+1nuXshQaMzWBRWPLjgyAnzmeuPd9273ZCeIerZXZZ6orPSIXgZG1lUwCzsaOlX3LWJGxZadXZDUagxUXh9O3vd9nFTmAk6dD7DO1T+DqA8FrZWM1BERe/pZnPtaAte16RYa4bDQGcnQ5KfPAno7P1E860CtwTOTCkZOyqQIDrP1igT+eyNgQ6Or/gz8IVlxEYyABGzkI5LBmmi6SDrhYcJwIBFNIJDI2BLoiMsRlozGcmsoJCcqZJj/pQK/AMUt2Z87J15NF6BUZ75kdasOTY3UhNuu8n3TAReBjteF8spDuimzXnq4RLlwk1mh0rYPrFdivrcAbNXOqFI+uipyM4mKKdPa8zHbRugR2kz6aKRLpN0htyM50HS8ak/YlWcg3c11Nud9wH96wte3uUJjS1fajJ8P5/9kfkt6vbCtINnHBHxa13L59d+huTRPEfYd0YGQla6u28sneYAHZAPZnsQmPzXhtO4SNF42RDIlPcRkI07SVdGJE4Apt5dNDYdvuEUokshY1GiMZTj4eqwuzxlJFOtHbRQNMlaYpJROVllby9PVQzZhR9jzAEcPcjZm96MSm7R3uULhK+e89c62KxjDC0nUtuSs3BB9mmrH23kw6MGLBEDhm4N+8K2SpN82C+x0QeaG1ZHyNtmQQFyxeFWQPsK0jA9f0GE3CUkyRA1JXwcNs+SxnBtkMdonK/tYyOidLCkyZlLEvmQ6k59zV+DtmjdzQLS5GBUaUwQnSRBv88dVeZaUOvynFqeBOpjcWtmi3QmG5t5ABCza6H4xvHLOG+86y1i6vCwti+WB9axHTBEdWt7iAx4Z/jDeNvdqyxc22jsXJCIYVNXJFg665rxYeAlcR48YLK+4+uEWNaaoinatXWniF7PxaWxFW3D1gvXGuyOOyfckzlSFuVfGpldybpJraLdllJLgmN4xufJ1Ze/ZTxLkyDM+guw5WjFQEJOgUPKM4GwslxAmeAlcRMxYvWdM60epdpmQCXfPyDW2sv1JOHC+aNiMhOFI5tM+L82+Rqg//I1skJo3DqPGXJ8cZe9E1+4kTRtai44E5G6IBfWpDfQMNOng83DTh4fQTJGhn0oxAkWLB7JozhrkK4ogZge+ziXHvKza1jUN3RIKr4Fms2xRkp0V+Ym6q4YFZJxueIM0KTGsbXQ0yF+NxwkNueFZjyQTMEthPjFeNBXTe54qSDfzuT5cGfsIG3FPkWfnJBHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",pw={class:"row mb-3"},mw={class:"col-auto"},gw={class:"image-container",style:{width:"90px",height:"90px"}},bw=["src","alt"],vw=["src"],yw=["src"],ww=["src"],Cw=["src"],Ew={class:"col"},kw={class:"confirmation-content"},Sw={key:0,class:"mb-3"},xw={key:1,class:"text-muted"},Mw={key:0,class:"row"},Rw={class:"col-auto"},Tw=["disabled"],Dw={class:"col"},_w=["disabled"],Aw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Ow=Ve(o.defineComponent({__name:"ConfirmationModal",props:{title:{default:"Подтверждение"},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},a=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(o.openBlock(),o.createBlock(Fc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":o.withCtx(()=>[o.createElementVNode("div",pw,[o.createElementVNode("div",mw,[o.createElementVNode("div",gw,[d.imageSrc?(o.openBlock(),o.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,bw)):d.mode==="success"?(o.openBlock(),o.createElementBlock("img",{key:1,class:"w-100",src:o.unref(fw),alt:"Успех",onError:c},null,40,vw)):d.mode==="warning"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"w-100",src:o.unref(hw),alt:"Предупреждение",onError:c},null,40,yw)):d.mode==="error"?(o.openBlock(),o.createElementBlock("img",{key:3,class:"w-100",src:o.unref(dw),alt:"Ошибка",onError:c},null,40,ww)):(o.openBlock(),o.createElementBlock("img",{key:4,class:"w-100",src:o.unref(cw),alt:"Подтверждение",onError:c},null,40,Cw))])]),o.createElementVNode("div",Ew,[o.createElementVNode("div",kw,[d.message?(o.openBlock(),o.createElementBlock("h5",Sw,o.toDisplayString(d.message),1)):o.createCommentVNode("",!0),d.description?(o.openBlock(),o.createElementBlock("p",xw,o.toDisplayString(d.description),1)):o.createCommentVNode("",!0)])])]),o.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":o.withCtx(()=>[o.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(o.openBlock(),o.createElementBlock("div",Mw,[o.createElementVNode("div",Rw,[d.mode==="confirmation"?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},o.toDisplayString(d.cancelText),9,Tw)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Dw,[o.createElementVNode("button",{class:o.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(o.openBlock(),o.createElementBlock("span",Aw)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(a()),1)],10,_w)])])):o.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-5b40270e"]]),Lw={key:0,class:"filter-modal-wrapper"},Pw={class:"filter-modal-dialog"},Fw={class:"filter-modal-content"},Bw={class:"filter-modal-header"},Vw={key:0,class:"filter-modal-title"},Nw={class:"filter-modal-body"},Hw={class:"filter-modal-footer"},Iw=Ve(o.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=a=>{a.key==="Escape"&&r()};return o.watch(()=>t.modalVisibility,a=>{a?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(a,l)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[a.modalVisibility?(o.openBlock(),o.createElementBlock("div",Lw,[o.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),o.createElementVNode("div",Pw,[o.createElementVNode("div",Fw,[o.createElementVNode("div",Bw,[a.title?(o.openBlock(),o.createElementBlock("h4",Vw,o.toDisplayString(a.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),o.createElementVNode("div",Nw,[o.renderSlot(a.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Hw,[o.renderSlot(a.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),zw={key:0,class:"px-0"},jw={class:"modal-dialog modal-dialog-centered modal-xl"},Ww={class:"modal-content py-2 px-4"},Yw={class:"modal-header mb-3"},Uw={class:"modal-title"},Gw={class:"modal-body row"},$w={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Bc=Ve(o.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(o.openBlock(),o.createElementBlock("div",zw,[o.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),o.createElementVNode("div",jw,[o.createElementVNode("div",Ww,[o.createElementVNode("div",Yw,[o.createElementVNode("h3",Uw,o.toDisplayString(t.title),1),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),o.createElementVNode("div",Gw,[o.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",$w,[o.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),qw={class:"row mb-4 mx-0","data-test":"PageTitle"},Kw={class:"col-12"},Jw={class:"row align-items-center"},Xw={class:"col-auto"},Qw={class:"col d-flex justify-content-end"},Zw=Ve(o.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",qw,[o.createElementVNode("div",Kw,[o.createElementVNode("div",Jw,[o.createElementVNode("div",Xw,[o.createElementVNode("h2",{class:o.normalizeClass(["mb-0",e.titleClass]),style:o.normalizeStyle(e.titleStyle)},o.toDisplayString(e.title),7),e.subtitle?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:o.normalizeStyle(e.subtitleStyle)},o.toDisplayString(e.subtitle),7)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Qw,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),eC={class:"card-body"},tC={class:"card-text"},iC=Ve({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",n.bodyClass])},[o.createElementVNode("div",eC,[o.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),o.createElementVNode("p",tC,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),nC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},rC=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("footer",nC,o.toDisplayString(e.copyrightText)+" "+o.toDisplayString(o.unref(we)().year()),1))}}),sC={class:"custom-dropdown"},aC={style:{"border-bottom":"2px solid #000"}},oC={class:"dropdown-list-wrapper"},lC={key:0,class:"custom-dropdown-menu"},uC=["onClick"],Sa=Ve({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=o.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},a=o.computed(()=>e.type==="profile");return(l,u)=>(o.openBlock(),o.createElementBlock("div",sC,[a.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(n.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[o.createElementVNode("span",aC,o.toDisplayString(n.title),1),u[1]||(u[1]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),o.createElementVNode("div",oC,[t.value?(o.openBlock(),o.createElementBlock("ul",lC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.links,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d},[c.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onClick:f=>r(c?.action)},o.toDisplayString(c?.title),11,uC))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-efc16eec"]]),cC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBjlpzhAyj/IExyNLH0AbQI+Z3W63++5krcuRFTlpzgi2bTcBrGJ6N8wVQrRyV+viICfNGaBer7eOUb7i+r6/kq/5v3jISXPKmJYwzOwxcyOfWS4uYqRxHMc6ODjI7EJMMxIuLS0dN8cw1bVqtVoVwXr5v4yOMXPfNM3vp9knbGTvcUd7uVvMk6znn/ZiMd4tOyjgbuSggEc39o+9/RO/LVcg6D6YqxBcBSjoOwQPDA8GXPzfwTO63Z/4m3i3XEEBD7NfHO9A8OjL/an3fuMdy8KlxWWAb4GoCpb5L4IHcB9Emxhgi27ux/77GGlG+2lNaUOPmXtCiLWkDiYVo0nFhKnwff9aUvsyEdhk5kdIiRvkPmGbvu9vTCLD0tJSxTCM1W63uzKtrZpdYlLBzK3TTDzybrkCEzp7PLq+f+1Y7RXwBJxJ1PDAeEo39lP7Ff/zi2Uoq04zgagPwRuT2gckWT5bbMKgR2CeNDlo7Y4VbMqs87SoElHDMIznSbOJEOKu7nhWMLOXRsjBYLAj3aDUG0FEFQDNNFtHePXqlUdEy47jTJ1DGQwGy7gghAEAGGgk2FPhHWuq38dvLjdRoJ2MhAGACgirvFdOn3WZj9dHmK2g/f9OXWTHu+UKLi3ugLCagTBAgt26Kudjl40TUcU0zaQbM2s5unY7IhkzZB7RRyCiShbiAOgfHR09mqZtiUzfOQvC8G65AkJyXFUqZr53/EO5BebH2k7H8ADqAXAB0rljjfSOzTP2EWrybllLZN67UkWBkqvAA9uTXMiI3ZGCTRkLRG4GM29C02GJyEJABNVIp16vO2rsoJnBerLtTDAMIxYY27bdTAiyXSHEJhFtAfgFwOcIZsNVhG5aiOT3Ui7dJ6Km4zgbWWMN6Zpl6YhnUwtmphAGABbMW0gYlMLgN5eb0N1vRgtFatNff47kjni33ICBVVC4o1KTd8vP6KYmDlFnLqJNgNf11hgWWDSh9j+T7wOItM275QrgfwdWvBCGB+Ymfj/cGsVc0o1dRVClETZmbHeENKZpVoQQkVMHg8Ha69evE2+oLtj1ff9W2HDZiSIGCyHa29vbG0ntToJsUx21+oZhrMjNJcJ4h6BTtG3bbgORYFNL8hB6AKpHR0ePAWSKbXzfnzhiMrPX7XZPfWsl3rtSBfxoByDaBPPy+L3gKoBUMYB3yxUwR+83wwOZD+jGT9r+QTf327x3pQcSzyMzk65jB3ZGG/BFm756n6gi8tvKFoaHbyNts2YmKdBjMEePM9r47eBbVaCQgf8K/1D2QIjGSAGZ3Ih7pos70ggDAN1ut60ek7PQGLpONBwOZ5JUZWY9jL7v+7c1hImgWCw2oezWIuu/tBBCjDbga9y5c6eZxbbhcPiXtM9H+y5naWt2+Gpg3Qbzs6hBGVzb2GxFfQjco+t6wozPuv5TTzNbNGInmpqY1xepVQ90zesDHL2+0vd4r9yIDBAAwPDoxv5KmqJHN/bXoBAbgMM7lqWup1E790QpT474qedoyNifRMY0SCVOdfeaWaRh13X7tm2vAbgvt2/1kOKaSBcPAGAYxuM7d+5ge3s7wWUYf2eSGNFSbR2pf0IIPimXjffK8eDfxxpM04qM6kFVdXI7u+UK1I4uRItuvs8mxRcWNzA47IPIA9M7FMQvsXN8NZ7hPv3P/6b2kWD2U9wz5igRCA/ByhdFqjsexlOo7t+fFu6qpInFHZNaHQwGOn9Z/Z76p8y0x7AQ4hHRR7VcujqZcw2dTmcdQGrHH6Hb7fZs2+5DxnqGYTyu1Wq30uR1qdAlYV19LEZYniYiF8DMpJGKmPLf8DrdfO/x24qFQcQVqvCOZSWOvOosw/Doq/eZXetgRkD6+URVcLh30+Q+YlITMUbQ2NPQkgpo63IvCRfoxVzGAn2caaQIEIEsMddCjowtZm4o3/G63e4z5XS1batWq2XOkodHXvlQo8h0e4y80rRoAxi7ZkTUME2zUavV2qZpPjNN080iEjCzVyqVYoQI53NYHSmPi88Wo0ugGR4EbQBBJ+Y3l/uRWCBQ0JI6qhKgT/ZApkFA4oNoH0m4Bu9YFv5jsQpgFaq3wfAg8NHtL9F9+Aqp/CkGJN/vw4wfDs80uil6eUQmIrJY3mQiqkp1KOaGMEf9V50ih0DJyiov9hAaeX3fj0mKvu+faskJET1j5lg8Q0QNIURDCAHbtl3DMDZevHixycxWeCYcgZkbKrlqtZrqQs2803+CxNxSRlgP4f88QUGTAXp05iTE4tjg3D9XQebk/MevB73IrDY80PQFakr3MozADnVyGRsQzKTj90KNZbiX2aUEgAIqumuNSUNEsUCMiBrK+9RrMHNLo4jNmp+JjDhy6W/4UD/JTbJtO+n2Rr7f6XQ+Tzvh5cuXrm3bLtJL+h3f9z0AmwkxTdLa/IgIIYSY/YlmOndKLZVh7iH83yQpaAZXIJRjvx58r70uFZ6AM+RaSsXbCBPUoFuxGSEYoDMmXakPIVpxl5GqEYZNO0OSYYGVH8/wwurZLJ3bFUI4ugBWR8Ypcaz4SOduZmxfi2KxuIJgdE7D6HM11+UVi0WtWxCKf/pCiExiRhqCmSGmTsXdV1OJGZIUNOKYEpgY+2QhjC7AF8dcjMfwwGjh/3+/phKG31YsTQJ2unsrRFxV/fXg+wIwjhPUHzxSlkaI/TAhRJOINicsiIq0KxOamaRbACiVSh/C79VRPCkGkOvts1wiE2lc1/Ucx7k3oZ5s1FbkcyJqJcU8zNwCgJNbealIzAwPJWzx23LUZnX2SHKXRbaOx2/KTqLbFL1Q/H7HyeaCpQtIZMlKAUW942aqGHFwYMXiESMx458EVZnr0e1+vwAAw+EwdsOEEJHydF0BIhE53W430XAdGZnZ3d7ePvVVh4ZhEPSSeeRGpIkdKiYRZzAYvJO/edzRmLmdpuxpRJNjQysxEyoY4K3mbPVAuoIWOk97dAhP1rdFESQIK6H3mmy92iZv0o33kXsWSzYaaPHf/7w1SZaOID4AJEJ7L0HrwaUxzuBHsLCwEPFbXdf1iCiSESeiZdu2E0u5dWTE7IFuZKRLknc7nc56p9O5F35JFysCIYTeP09A6KljkWCYmb3Xr1/31N8shDiTLZP0EvOU0NWgMWIDHP/rctxlu7nv0Y39p+pLTTbCV5KRRSPeRyg+G8WTjWShaCbWsell5WziU+K9lMqcEdhI6ujr6VwFWWqiKifrSVXAOjKewOIq1a5q1ipkTWVCooiQBtd1vU6ns8LM4TjHldcY/2Zmbp/ZyktVYj4OAgVNgRkf5IZiOX5eHLx3pRqLK34/jP7/mspm+nJf30ficrGTVKApoXgRvJypovvSn6KzIwDwR/VxRJrMyUciUl0NK6kKWFOkObO+T0QxdyYhwRqDpjJhplmv2+22O53ONWZeMU3zGQAYhjHuUMyslWZPGlqJOVDH2qkvVuITEQ/k6fpPPZAaC1BTulXpIBHLo8TdP+WazMl9LyjyjPahtGLUmFpGFi4tpq7X4b3L6wBH+zPDw28H4zCkoKvITfPzdfJrUhWwxnWaOQchr+8hOhI06/X6h5cvX2qTnMr+YmNME8+kYVR/J+MZR7btndmSZY3EDEEPJmW++c3lx4jkn5LKf3gdUQWuAhPP+Z/lVnhV5jjxKODAwN1Y8lGtEwuuqcjCEyoBTNqEH2nX4d2yo62aLixuYHjYVGY7h/fKb0FYGa345B3Lwn9+5kD4q9rlCWQ+CJO9kFCRm2q4YRjrQkRGEevw8PAhQqUSCYpcw7btTFP7CMzsqOqcYRjfap4ruVqr1R5K2/vAmLRVTlhwdFKkGeHo6Gh5pNgR0Zm4Zdq6MDXJlwQDnlIlond1CosbODpoREv8UYFAG5cWwW8u9+V1LTCC9cA6JU0VAfauVMG+Wq6f/p8YC08hDlvRqumg+jh2uWten/9xeQ0G1NinAsZz3isHqz6ZLQgB7ZYZjIZaxW1kEQFUmKa5BSW2MAwj8scliAAWghki80snZ8use2xWkY8CXyaihkzMOkhOkPUm/c5pQUThaf0kdsycjGAJ80dMUxfGpN5brctF17w+BO7F3LlxO6zLiahow1dda82APfRT/xNZx6a6vYmxDX318zpYk6caIcluhgeYt3X7Jxi6xWGT8gWu6/bVchkA1fCj6WZd3jy6VNIH3W53TUecjG02Op3O7ZPcwEL+9nAnqNbr9VOtidPLoikdRMVAxMtmNMoYINWooDp4ijiN+mC04OMaXd9fibmLRMqAPbmyGQAw5LhMbyYv76Ab+2vwsZJIep3Nvx3cTlr2UGDmD7KyNjA7o8tiGMaWeq4kiguMk5AzuT9CiNS1Md1ud81xnKdSCBjtQKNivAl4hkTsscHMMemdmVdt277r+/6KYRiWEOJYal0i/HhuZJqdZejmvsc/KPVdh5yYER4v0Notr8Gk+yA40iUL7eQilzwT9+jLn9NjuiE/gxEKBTimjCbZ4fKbL5YhRHjxWep36eZ+G0Cb33xxH+w7QSxFwQxpUA8sPDD18NvvE3fOmbt9z2q12nikLJVKH85qf2Pbtp8juTbNJaI1IcQT0zS/nbRQLsfFxtyR5qwh1cdHzPy9ugeBRB9Ar1gsPhgMBr8AABHdm2b/tRwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",dC=["src","alt"],Vc=Ve(o.defineComponent({__name:"Logo",props:{src:{default:cC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=o.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=o.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=o.computed(()=>"r3ui-logo-container"),a=o.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",s.value])},[o.createElementVNode("img",{src:t.value,alt:l.alt,class:o.normalizeClass(i.value),style:o.normalizeStyle(r.value)},null,14,dC),l.brandText&&l.brandText.trim()&&l.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(a.value)},o.toDisplayString(l.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),hC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},fC={class:"row align-items-center"},pC={class:"col-auto pe-0"},mC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},gC={class:"row"},bC={class:"col-auto d-flex align-items-center"},vC={key:1,class:"text-muted"},yC={class:"col-auto"},wC=Ve(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,a)=>(o.openBlock(),o.createElementBlock("div",hC,[o.createElementVNode("div",{class:o.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:a[0]||(a[0]=o.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",fC,[o.createElementVNode("div",pC,[o.renderSlot(s.$slots,"logo",{},()=>[o.createVNode(Vc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",mC,o.toDisplayString(t.brandText),1)])]),o.createElementVNode("div",gC,[o.createElementVNode("div",bC,[t.isAuthenticated?(o.openBlock(),o.createBlock(Sa,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):o.createCommentVNode("",!0),t.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vC,o.toDisplayString(t.loginText),1))]),o.createElementVNode("div",yC,[o.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),CC={class:"col-12 divider divider__wrapper","data-test":"Divider"},xa={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("div",CC,[o.createElementVNode("div",{class:o.normalizeClass(e.className),style:o.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},EC=n=>{const e=o.inject("sidebarContentVisibility"),t=o.inject("toggleSidebar"),i=o.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=o.computed(()=>n.value),a=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return o.provide("expandAccordion",r),o.provide("expandedAccordion",i),o.watch(n,()=>{a()},{deep:!0}),o.watch(()=>e?.value,()=>{a()},{deep:!0}),o.onMounted(()=>{a()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},kC={key:0},SC=["href","target","rel"],xC=["innerHTML"],MC={key:1},RC=["id"],TC=["innerHTML"],DC=["id"],_C={class:"accordion-body"},Nc=Ve(o.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("SidebarLink",!0);return o.openBlock(),o.createElementBlock("div",null,[n.sidebarLink.childrens?.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",kC,[o.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal?"_blank":void 0,rel:n.sidebarLink.isExternal?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=o.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,xC),o.createElementVNode("span",null,o.toDisplayString(n.sidebarLink.label),1)],2)):o.createCommentVNode("",!0)],8,SC)])),n.sidebarLink.childrens?.length?(o.openBlock(),o.createElementBlock("div",MC,[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[o.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:o.unref(r)&&o.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>o.unref(i)&&o.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,TC),o.createTextVNode(" "+o.toDisplayString(n.sidebarLink.label),1)],2)],8,RC),o.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:o.normalizeClass(["accordion-collapse collapse",{show:o.unref(r)&&o.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[o.createElementVNode("div",_C,[o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.sidebarLink.childrens,c=>(o.openBlock(),o.createElementBlock("li",{key:c.uniqueKey},[o.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,DC)],2)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-e09a8337"]]),AC={key:0},OC={key:0},LC=["title"],PC=["innerHTML"],FC={key:1},BC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},VC={class:"hidden-div"},NC={key:1},HC=["href","target","rel"],IC=["title"],zC=["innerHTML"],jC={key:0,class:"ms-2"},WC={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},YC={key:0,class:"ms-2"},Hc=Ve(o.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(o.openBlock(),o.createElementBlock("div",AC,[n.link.childrens?.length?(o.openBlock(),o.createElementBlock("div",OC,[o.createElementVNode("button",{title:n.link.label,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>o.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,PC)):(o.openBlock(),o.createElementBlock("span",FC,o.toDisplayString(n.link.label),1))],10,LC),o.unref(r)&&o.unref(r)[n.link.level]===n.link.uniqueKey?(o.openBlock(),o.createElementBlock("div",BC,[o.createElementVNode("div",VC,[o.createElementVNode("h5",null,o.toDisplayString(n.link.label),1),l[3]||(l[3]=o.createElementVNode("hr",{size:"1"},null,-1)),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.link.childrens,c=>(o.openBlock(),o.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[o.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",NC,[o.createElementVNode("a",{href:n.link.href,target:n.link.isExternal?"_blank":void 0,rel:n.link.isExternal?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=o.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(o.openBlock(),o.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.link.icon},null,8,zC),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",jC,"↗")):o.createCommentVNode("",!0)],8,IC)):(o.openBlock(),o.createElementBlock("button",WC,[o.createElementVNode("span",null,o.toDisplayString(n.link.label),1),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",YC,"↗")):o.createCommentVNode("",!0)]))],8,HC)]))])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-1ba91f9e"]]),UC={key:0},GC={class:"accordion accordion-flush",id:"accordionMenu"},$C={key:1},qC={class:"row"},KC={class:"col-12"},JC={class:"sidebar-footer p-3"},Ic=o.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:a}=EC(o.computed(()=>t.links));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{id:"sidebarContent",class:o.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(o.openBlock(),o.createElementBlock("div",UC,[o.createElementVNode("div",GC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Nc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",$C,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Hc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),o.createElementVNode("div",qC,[o.createElementVNode("div",KC,[o.createVNode(xa)])]),o.createElementVNode("div",JC,[o.renderSlot(l.$slots,"footer")])],2))}}),XC=n=>{const e=o.ref(!0),t=o.ref(null),i=o.ref(null),r=o.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},a=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():a()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():a()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;d>0&&f>0&&(i.value=d-f-20)},50)};return o.provide("sidebarContentVisibility",e),o.provide("toggleSidebar",l),o.watch(r,()=>{c()},{deep:!0}),o.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},QC={class:"container-fluid p-0"},ZC={class:"py-4",style:{"min-height":"90vh"}},e0=o.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:a,sidebarContentVisibility:l}=XC(o.computed(()=>t.isAuthenticated));return(u,c)=>(o.openBlock(),o.createElementBlock("div",QC,[o.createElementVNode("div",{class:o.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(o.openBlock(),o.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:o.normalizeStyle(`background: #efefef; transition: .2s; width:${o.unref(a)}px;`)},[o.createVNode(Ic,{links:t.sidebarLinks,"is-collapsed":!o.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{id:"content-div",style:o.normalizeStyle(`transition: .2s; width:${o.unref(r)}px;`)},[o.createElementVNode("div",ZC,[o.renderSlot(u.$slots,"breadcrumbs"),o.renderSlot(u.$slots,"default")])],4)],2)]))}}),t0={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},i0={class:"col"},n0={"aria-label":"breadcrumb"},r0={class:"breadcrumb row"},s0=["aria-current"],a0=["href","onClick"],o0={key:1,class:"text-nowrap"},l0=Ve(o.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(o.openBlock(),o.createElementBlock("div",t0,[o.createElementVNode("div",i0,[o.createElementVNode("nav",n0,[o.createElementVNode("ol",r0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.crumbs,(a,l)=>(o.openBlock(),o.createElementBlock("li",{key:l,class:o.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:a.isActive}]),"aria-current":a.isActive?"page":void 0},[a.isActive?(o.openBlock(),o.createElementBlock("span",o0,o.toDisplayString(a.text),1)):(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:o.withModifiers(()=>i("navigate",a.href),["prevent"])},o.toDisplayString(a.text),9,a0))],10,s0))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),u0={key:0,class:"card-header"},c0={class:"card-title mb-0"},d0={class:"card-body"},h0={class:"row"},f0={class:"row align-items-center"},p0={class:"col-auto label pe-0"},m0={class:"col-auto"},g0={key:0,class:"mt-3"},b0=Ve(o.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",t.value])},[i.title?(o.openBlock(),o.createElementBlock("div",u0,[o.createElementVNode("h5",c0,o.toDisplayString(i.title),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",d0,[o.createElementVNode("div",h0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.fields,(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"col-12 mb-2",key:a},[o.createElementVNode("div",f0,[o.createElementVNode("div",p0,o.toDisplayString(s.label)+":",1),o.createElementVNode("div",m0,[o.createElementVNode("span",{class:o.normalizeClass(["value",s.valueClass]),style:o.normalizeStyle(s.valueStyle)},o.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(o.openBlock(),o.createElementBlock("div",g0,[o.renderSlot(i.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),v0={class:"page-card"},y0={class:"row hide-to-print card-header mx-0 w-100"},w0={class:"col"},C0={class:"row flex-nowrap align-items-center"},E0={class:"col-auto"},k0={key:0,class:"col-auto"},S0={class:"row",style:{padding:"20px"}},x0={class:"d-flex align-items-start"},M0={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},R0=["onClick"],T0={class:"tab-content",id:"v-pills-tabContent"},D0={key:0,class:"title"},_0={key:1},A0={key:0},O0=["title"],L0={class:"row"},P0={class:"col-12"},F0=Ve(o.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(0),s=o.ref(!1),a=o.ref(!1),l=o.useSlots(),u=p=>{i("click",p)},c=()=>{a.value=!!l.header&&l.header().length>0},d=()=>{s.value=!!l.footer&&l.footer().length>0},f=p=>{r.value=p,i("active-tab",t.tabs[p])};return o.onMounted(()=>{c(),d()}),(p,h)=>(o.openBlock(),o.createElementBlock("div",v0,[o.createElementVNode("div",y0,[o.createElementVNode("div",w0,[o.createElementVNode("div",C0,[o.createElementVNode("div",E0,[a.value?o.renderSlot(p.$slots,"header",{key:0},void 0,!0):o.createCommentVNode("",!0)])])]),p.actionLinks.length>0?(o.openBlock(),o.createElementBlock("div",k0,[o.createVNode(Sa,{title:p.actionsTitle,links:p.actionLinks,onClick:u},null,8,["title","links"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",S0,[o.createElementVNode("div",x0,[o.createElementVNode("div",M0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:m,class:o.normalizeClass(["nav-link me-5",[m===r.value?"active":""]]),onClick:E=>f(m)},o.toDisplayString(S.navLink),11,R0)),[[o.vShow,S.navLink]])),128))]),o.createElementVNode("div",T0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(["tab-pane fade row",[m===r.value?"show active d-flex":""]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.contents,(E,b)=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(`col-${p.col} mb-3`)},[E.subtitle?(o.openBlock(),o.createElementBlock("div",D0,o.toDisplayString(E.subtitle)+": ",1)):o.createCommentVNode("",!0),typeof E.text=="string"?(o.openBlock(),o.createElementBlock("div",_0,o.toDisplayString(E.text),1)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(E.text,(g,T)=>(o.openBlock(),o.createElementBlock("div",{key:T},[typeof g=="string"?(o.openBlock(),o.createElementBlock("div",A0,o.toDisplayString(g),1)):o.createCommentVNode("",!0),typeof g=="object"?(o.openBlock(),o.createElementBlock("div",{key:1,title:g?.description||""},o.toDisplayString(g.name),9,O0)):o.createCommentVNode("",!0)]))),128))],2))),128))],2))),128))])]),s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(xa,{class:"mt-3"}),o.createElementVNode("div",L0,[o.createElementVNode("div",P0,[o.renderSlot(p.$slots,"footer",{},void 0,!0)])])],64)):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-89706e0a"]]),B0={key:0,class:"row w-100 parent"},V0={class:"col-12 wrapper w-100"},N0=["innerHTML"],zc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=o.ref(e.message);o.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(o.openBlock(),o.createElementBlock("div",B0,[o.createElementVNode("div",V0,[o.createElementVNode("div",{class:o.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,N0),o.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):o.createCommentVNode("",!0)}},H0={key:0,class:"row","data-test":"ErrorMessageComponent"},I0={class:"col-12",id:"alert"},z0={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},j0=["innerHTML"],W0=Ve(o.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=o.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(o.openBlock(),o.createElementBlock("div",H0,[o.createElementVNode("div",I0,[o.createElementVNode("div",{class:o.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(o.openBlock(),o.createElementBlock("i",z0)):o.createCommentVNode("",!0),r.asHtml?(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:i.value},null,8,j0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(i.value),1)],64))],2)])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),Y0={class:"accordion-header",style:{background:"transparent"}},U0=["aria-expanded","aria-controls"],G0={key:0},$0=["id"],q0={class:"accordion-body px-0"},K0=Ve(o.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=o.ref(Math.random().toString(36).substr(2,9)),a=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return o.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[o.createElementVNode("div",{class:o.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[o.createElementVNode("h2",Y0,[o.createElementVNode("button",{onClick:l,class:o.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:o.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},o.toDisplayString(u.title),15,U0)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a("accordion-body")?(o.openBlock(),o.createElementBlock("div",G0,[o.withDirectives(o.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[o.createElementVNode("div",q0,[o.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,$0),[[o.vShow,!u.isCollapsed]])])):o.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),J0={class:"accordion-header",style:{background:"transparent"}},X0=["onClick"],Q0={class:"d-flex align-items-center w-100"},Z0={class:"d-flex align-items-center flex-grow-1"},eE=["value","id","onChange"],tE={class:"form-check-label ps-2 text-body flex-grow-1"},iE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},nE={class:"col d-flex flex-wrap px-4"},rE={class:"form-check"},sE=["value","id"],aE=["for"],oE=Ve(o.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref([]),a=o.ref([]),l=o.ref(null),u=o.ref([]),c=(S,m)=>{const E=S.target;if(E.tagName==="INPUT"||E.closest(".form-check-input"))return!1;if(E.tagName==="SPAN"||E.closest(".form-check-label"))return l.value!==Number(m)?(l.value=Number(m),!0):(l.value=null,!0);if(l.value!==Number(m))return l.value=Number(m),!0;l.value=null},d=S=>{const m=i.kindGroups.find(b=>b.id===S);if(!m)return;if(s.value.includes(String(S))){const b=m.kinds.map(T=>String(T.id)),g=[...a.value];b.forEach(T=>{g.includes(T)||g.push(T)}),a.value=g}else{const b=m.kinds.map(g=>String(g.id));a.value=a.value.filter(g=>!b.includes(String(g)))}},f=()=>{o.nextTick(()=>{p()})},p=()=>{const S=[];i.kindGroups.forEach((b,g)=>{const T=u.value?.[g];if(!T)return;const v=b.kinds.map(y=>String(y.id)),R=a.value.filter(y=>v.includes(String(y)));R.length===0?(T.indeterminate=!1,T.checked=!1):R.length===v.length?(T.indeterminate=!1,T.checked=!0,S.push(String(b.id))):(T.indeterminate=!0,T.checked=!1)});const m=s.value.map(String).sort(),E=S.map(String).sort();JSON.stringify(m)!==JSON.stringify(E)&&(s.value=S)};o.watch(()=>a.value,S=>{r("emitSelectedKinds",S)},{deep:!0}),o.watch(()=>s.value,S=>{r("emitSelectedKindGroups",S)},{deep:!0}),o.onMounted(()=>{i.defaultSelectedKinds.length>0&&(a.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),o.nextTick(()=>{p()})});const h=o.computed(()=>c);return e({toggleAccordion:c}),(S,m)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups,(E,b)=>(o.openBlock(),o.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:E.id},[S.kindGroups[b].kinds.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",J0,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(b)}]),type:"button",style:{background:"transparent"},onClick:g=>h.value(g,b)},[o.createElementVNode("div",Q0,[o.createElementVNode("div",Z0,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${E.id}`,id:`${S.checkboxName}_${b}`,name:"kind_group","onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),onClick:m[1]||(m[1]=o.withModifiers(()=>{},["stop"])),onChange:g=>d(E.id)},null,40,eE),[[o.vModelCheckbox,s.value]]),o.createElementVNode("span",tE,o.toDisplayString(E.name),1)]),o.createElementVNode("i",{class:o.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(b)}])},null,2)])],10,X0)]),o.withDirectives(o.createElementVNode("div",iE,[o.createElementVNode("div",nE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups[b].kinds,(g,T)=>(o.openBlock(),o.createElementBlock("div",{class:"col-6 mb-2",key:T},[o.createElementVNode("div",rE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${g.id}`,id:`${S.checkboxName}_${g.id}`,name:"kinds","onUpdate:modelValue":m[2]||(m[2]=v=>a.value=v),onChange:f},null,40,sE),[[o.vModelCheckbox,a.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${S.checkboxName}_${g.id}`},[o.createElementVNode("small",null,o.toDisplayString(g.name),1)],8,aE)])]))),128))])],512),[[o.vShow,l.value===Number(b)]])],64)):o.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class ht{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class Ze{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var r=e?t.split(e):[t],s=r.length,a;for(let l=0;l<s&&(i=i[r[l]],a=i,!!i);l++);return a}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let l=e[a],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[a]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[a]=this.deepClone(l,c,i)))}return t}}let lE=class bd extends ht{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Ze.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Ze.elOffset(e),r,s,a;switch(this.container!==document.body&&(r=Ze.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,r,s,a,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),a=l.offset,i=l.x,r=l.y):typeof e=="number"?(a={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var a=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new bd(this.table,e,this),this.childPopup}};class We extends ht{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(r=>r.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new lE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var uE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class lr extends We{static moduleName="accessor";static accessors=uE;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":lr.accessors[e]?t=lr.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.getComponent(),s=Ze.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var l,u,c,d;a.modules.accessor&&(u=a.modules.accessor[i]||a.modules.accessor.accessor||!1,u&&(l=a.getFieldValue(s),l!="undefined"&&(d=a.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,a.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var cE={method:"GET"};function Ma(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ma(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ma(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function dE(n){var e=Ma(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function jc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+dE(t)),n}function hE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ra(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ra(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ra(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var fE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ra(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class $i extends We{static moduleName="ajax";static defaultConfig=cE;static defaultURLGenerator=jc;static defaultLoaderPromise=hE;static contentTypeFormatters=fE;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=$i.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||$i.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||$i.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},$i.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var pE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},mE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
32
32
  `),n.forEach(function(a){e.push(a.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(a){var l=i.find(function(u){return a&&u.definition.title&&a.trim()&&u.definition.title.trim()===a.trim()});l?r.push(l):t=!1}),t||(t=!0,r=[],e[0].forEach(function(a){var l=i.find(function(u){return a&&u.field&&a.trim()&&u.field.trim()===a.trim()});l?r.push(l):t=!1}),t||(r=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(a){var l={};a.forEach(function(u,c){r[c]&&(l[r[c].field]=u)}),s.push(l)}),s):!1}},gE={copyToClipboard:["ctrl + 67","meta + 67"]},bE={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},vE={keybindings:{bindings:gE,actions:bE}};class ur extends We{static moduleName="clipboard";static moduleExtensions=vE;static pasteActions=pE;static pasteParsers=mE;constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,(this.mode===!0||this.mode==="copy")&&this.table.element.addEventListener("copy",e=>{var t,i,r;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(r=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),i=this.table.modules.export.generateHTMLTable(r),t=i?this.generatePlainContent(r):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),i=this.table.options.clipboardCopyFormatter("html",i))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),i&&e.clipboardData.setData("text/html",i)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),i&&e.originalEvent.clipboardData.setData("text/html",i)),this.dispatchExternal("clipboardCopied",t,i),this.reset())}),(this.mode===!0||this.mode==="paste")&&this.table.element.addEventListener("paste",e=>{this.paste(e)}),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach(i=>{var r=[];i.columns.forEach(s=>{var a="";if(s)if(i.type==="group"&&(s.value=s.component.getKey()),s.value===null)a="";else switch(typeof s.value){case"object":a=JSON.stringify(s.value);break;case"undefined":a="";break;default:a=s.value}r.push(a)}),t.push(r.join(" "))}),t.join(`
33
33
  `)}copy(e,t){var i,r;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(r=document.body.createTextRange(),r.moveToElementText(this.table.element),r.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=ur.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=ur.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,r;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),r=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,r)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}}class yE{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class Wc{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class Cn extends ht{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},r={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=r[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var s=this.column.definition.cssClass.split(" ");s.forEach(a=>{e.classList.add(a)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var r=this.setValueProcessData(e,t,i);r&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var r=!1;return(this.value!==e||i)&&(r=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),r&&this.dispatch("cell-value-changed",this),r}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new Wc(this)),this.component}}class Yc{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var Uc={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};class qt extends ht{static defaultOptionList=Uc;constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((r,s)=>{var a=new qt(r,this);this.attachColumn(a)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(qt.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{qt.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",r=>{r.stopPropagation(),i.focus()}),i.addEventListener("mousedown",r=>{r.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,r=>{i.value=r||e.title||"&nbsp;"}):i.value=e.title||"&nbsp;"}else e.field?this.langBind("columns|"+e.field,r=>{this._formatColumnHeaderTitle(t,r||e.title||"&nbsp;")}):this._formatColumnHeaderTitle(t,e.title||"&nbsp;");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,r=i.length,s;for(let a=0;a<r&&(t=t[i[a]],s=t,!!t);a++);return s}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,r=this.fieldStructure,s=r.length;for(let a=0;a<s;a++)if(a==s-1)i[r[a]]=t;else{if(!i[r[a]])if(typeof t<"u")i[r[a]]={};else break;i=i[r[a]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(r){r.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(r){r.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let r=0;r<i;r++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new Cn(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(r=>{r.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(r=>{var s=r.getWidth();s>t&&(t=s)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new Yc(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof qt?this.parent.getComponent():!1}}class cr{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class mt extends ht{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&Ze.elVisible(this.element),i={},r;return new Promise((s,a)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),r=this.chain("row-data-changing",[this,i,e],null,e);for(let l in r)this.data[l]=r[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(c=>{let d=this.getCell(c.getField());if(d){let f=c.getFieldValue(r);d.getValue()!==f&&(d.setValueProcessData(f),t&&d.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),s()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new cr(this)),this.component}}var wE={avg:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:2;return n.length&&(i=n.reduce(function(s,a){return Number(s)+Number(a)}),i=i/n.length,i=r!==!1?i.toFixed(r):i),parseFloat(i).toString()},max:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s>i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},min:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s<i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},sum:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:!1;return n.length&&n.forEach(function(s){s=Number(s),i+=isNaN(s)?0:Number(s)}),r!==!1?i.toFixed(r):i},concat:function(n,e,t){var i=0;return n.length&&(i=n.reduce(function(r,s){return String(r)+String(s)})),i},count:function(n,e,t){var i=0;return n.length&&n.forEach(function(r){r&&i++}),i},unique:function(n,e,t){var i=n.filter((r,s)=>(n||r===0)&&n.indexOf(r)===s);return i.length}};class qi extends We{static moduleName="columnCalcs";static calculations=wE;constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new qt({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":qi.calculations[t.topCalc]?i.topCalc=qi.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":qi.calculations[t.bottomCalc]?i.botCalc=qi.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,r=this.table.modules.dataTree;return e.forEach(s=>{t.push(s.getData()),i&&s.modules.dataTree?.open&&this.rowsToData(r.getFilteredTreeChildren(s)).forEach(a=>{t.push(s)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),r;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),r=new mt(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),r.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),r.component=!1,r.getComponent=()=>(r.component||(r.component=new yE(r)),r.component),r.generateCells=()=>{var s=[];this.table.columnManager.columnsByIndex.forEach(a=>{this.genColumn.setField(a.getField()),this.genColumn.hozAlign=a.hozAlign,a.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(a.definition[e+"CalcFormatter"]),params:a.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=a.definition.cssClass;var l=new Cn(this.genColumn,r);l.getElement(),l.column=a,l.setWidth(),a.cells.push(l),s.push(l),a.visible||l.hide()}),r.cells=s},r}generateRowData(e,t){var i={},r=e=="top"?this.topCalcs:this.botCalcs,s=e=="top"?"topCalc":"botCalc",a,l;return r.forEach(function(u){var c=[];u.modules.columnCalcs&&u.modules.columnCalcs[s]&&(t.forEach(function(d){c.push(u.getFieldValue(d))}),l=s+"Params",a=typeof u.modules.columnCalcs[l]=="function"?u.modules.columnCalcs[l](c,t):u.modules.columnCalcs[l],u.setFieldValue(i,u.modules.columnCalcs[s](c,t,a)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),r={},s={};return i.forEach(a=>{r[a.getKey()]=this.getGroupResults(a)}),s={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:r},s}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}}class CE extends We{static moduleName="dataTree";constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,r){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,r){return t.dataTreeStartExpanded[r]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),r=i||!i&&typeof t=="object"&&t!==null;!r&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!r&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:r?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&r?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&r?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:r}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),r=e.modules.dataTree;r.branchEl&&(r.branchEl.parentNode&&r.branchEl.parentNode.removeChild(r.branchEl),r.branchEl=!1),r.controlEl&&(r.controlEl.parentNode&&r.controlEl.parentNode.removeChild(r.controlEl),r.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+r.index),r.index&&(this.branchEl?(r.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(r.branchEl,i.firstChild),this.table.rtl?r.branchEl.style.marginRight=(r.branchEl.offsetWidth+r.branchEl.style.marginLeft)*(r.index-1)+r.index*this.indent+"px":r.branchEl.style.marginLeft=(r.branchEl.offsetWidth+r.branchEl.style.marginRight)*(r.index-1)+r.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+r.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+r.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,r=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",s=>{s.stopPropagation()}),r&&r.parentNode===t?r.parentNode.replaceChild(i.controlEl,r):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,r)=>{var s,a;t.push(i),i instanceof mt&&(i.create(),s=i.modules.dataTree,!s.index&&s.children!==!1&&(a=this.getChildren(i,!1,!0),a.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var r=e.modules.dataTree,s=[],a=[];return r.children!==!1&&(r.open||t)&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?s=this.table.modules.filter.filter(r.children):s=r.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(s,i),s.forEach(l=>{a.push(l);var u=this.getChildren(l,!1,!0);u.forEach(c=>{a.push(c)})})),a}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(r=>{var s=new mt(r||{},this.table.rowManager);s.create(),s.modules.dataTree.index=e.modules.dataTree.index+1,s.modules.dataTree.parent=e,s.modules.dataTree.children&&(s.modules.dataTree.open=this.startOpen(s.getComponent(),s.modules.dataTree.index)),t.push(s)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],r;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?r=this.table.modules.filter.filter(t.children):r=t.children,r.forEach(s=>{s instanceof mt&&i.push(s)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof mt&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,r){var s=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof r<"u"&&(s=this.findChildIndex(r,e),s!==!1&&e.data[this.field].splice(i?s:s+1,0,t)),s===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof mt?i=e.data:e instanceof cr?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(r=>r instanceof mt?r.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(r=>r.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var r=e.modules.dataTree,s=[];return r&&r.children&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),r.children.forEach(a=>{a instanceof mt&&(s.push(t?a.getComponent():a),i&&this.getTreeChildren(a,t,i).forEach(l=>{s.push(l)}))})),s}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}function EE(n,e={},t){var i=e.delimiter?e.delimiter:",",r=[],s=[];n.forEach(a=>{var l=[];switch(a.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":a.columns.forEach((u,c)=>{u&&u.depth===1&&(s[c]=typeof u.value>"u"||u.value===null?"":'"'+String(u.value).split('"').join('""')+'"')});break;case"row":a.columns.forEach(u=>{if(u){switch(typeof u.value){case"object":u.value=u.value!==null?JSON.stringify(u.value):"";break;case"undefined":u.value="";break}l.push('"'+String(u.value).split('"').join('""')+'"')}}),r.push(l.join(i));break}}),s.length&&r.unshift(s.join(i)),r=r.join(`
34
34
  `),e.bom&&(r="\uFEFF"+r),t(r,"text/csv")}function kE(n,e,t){var i=[];n.forEach(r=>{var s={};switch(r.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(s);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function SE(n,e={},t){var i=[],r=[],s={},a=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},u=e.jsPDF||{},c=e.title?e.title:"",d,f;u.orientation||(u.orientation=e.orientation||"landscape"),u.unit||(u.unit="pt"),n.forEach(h=>{switch(h.type){case"header":i.push(p(h));break;case"group":r.push(p(h,a));break;case"calc":r.push(p(h,l));break;case"row":r.push(p(h));break}});function p(h,S){var m=[];return h.columns.forEach(E=>{var b;if(E){switch(typeof E.value){case"object":E.value=E.value!==null?JSON.stringify(E.value):"";break;case"undefined":E.value="";break}b={content:E.value,colSpan:E.width,rowSpan:E.height},S&&(b.styles=S),m.push(b)}}),m}d=this.dependencyRegistry.lookup("jspdf","jsPDF"),f=new d(u),e.autoTable&&(typeof e.autoTable=="function"?s=e.autoTable(f)||{}:s=e.autoTable),c&&(s.didDrawPage=function(h){f.text(c,40,30)}),s.head=i,s.body=r,f.autoTable(s),e.documentProcessing&&e.documentProcessing(f),t(f.output("arraybuffer"),"application/pdf")}function xE(n,e,t){var i=this,r=e.sheetName||"Sheet1",s=this.dependencyRegistry.lookup("XLSX"),a=s.utils.book_new(),l=new ht(this),u="compress"in e?e.compress:!0,c=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:u},d;c.type="binary",a.SheetNames=[],a.Sheets={};function f(){var S=[],m=[],E={},b={s:{c:0,r:0},e:{c:n[0]?n[0].columns.reduce((g,T)=>g+(T&&T.width?T.width:1),0):0,r:n.length}};return n.forEach((g,T)=>{var v=[];g.columns.forEach(function(R,y){R?(v.push(!(R.value instanceof Date)&&typeof R.value=="object"?JSON.stringify(R.value):R.value),(R.width>1||R.height>-1)&&(R.height>1||R.width>1)&&m.push({s:{r:T,c:y},e:{r:T+R.height-1,c:y+R.width-1}})):v.push("")}),S.push(v)}),s.utils.sheet_add_aoa(E,S),E["!ref"]=s.utils.encode_range(b),m.length&&(E["!merges"]=m),E}if(e.sheetOnly){t(f());return}if(e.sheets)for(var p in e.sheets)e.sheets[p]===!0?(a.SheetNames.push(p),a.Sheets[p]=f()):(a.SheetNames.push(p),l.commsSend(e.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(S){a.Sheets[p]=S}}));else a.SheetNames.push(r),a.Sheets[r]=f();e.documentProcessing&&(a=e.documentProcessing(a));function h(S){for(var m=new ArrayBuffer(S.length),E=new Uint8Array(m),b=0;b!=S.length;++b)E[b]=S.charCodeAt(b)&255;return m}d=s.write(a,c),t(h(d),"application/octet-stream")}function ME(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function RE(n,e,t){const i=[];n.forEach(r=>{const s={};switch(r.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(JSON.stringify(s));break}}),t(i.join(`
@@ -51,4 +51,4 @@ Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}de
51
51
  Expecting: array
52
52
  Received: `,typeof e,`
53
53
  Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),r=this.activeRows.indexOf(e);r>-1&&this.activeRows.splice(r,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(s=>{var a=s.indexOf(e);a>-1&&s.splice(a,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,r){var s=this.addRowActual(e,t,i,r);return s}addRows(e,t,i,r){var s=[];return new Promise((a,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((u,c)=>{var d=this.addRow(u,t,i,!0);s.push(d),this.dispatch("row-added",d,u,t,i)}),this.refreshActiveData(r?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),a(s)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,r){var s=e instanceof mt?e:new mt(e||{},this),a=this.findAddRowPos(t),l=-1,u,c;return i||(c=this.chain("row-adding-position",[s,a],null,{index:i,top:a}),i=c.index,a=c.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[s,i,a],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(u=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var f=d.indexOf(i);f>-1&&d.splice(a?f:f+1,0,s)}),u>-1&&this.activeRows.splice(a?u:u+1,0,s),this.rows.splice(a?l:l+1,0,s)):a?(this.displayRowIterator(function(d){d.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(d){d.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),s}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(r=>{this.moveRowInArray(r,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,r){var s,a,l,u;if(t!==i&&(s=e.indexOf(t),s>-1&&(e.splice(s,1),a=e.indexOf(i),a>-1?r?e.splice(a+1,0,t):e.splice(a,0,t):e.splice(s,0,t)),e===this.getDisplayRows())){l=s<a?s:a,u=a>s?a:s+1;for(let c=l;c<=u;c++)e[c]&&this.styleRow(e[c],c)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i!==!1&&i<this.displayRowsCount-1&&(r=this.getDisplayRows()[i+1]),r&&(!(r instanceof mt)||r.type!="row")?this.nextDisplayRow(r,t):r}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i&&(r=this.getDisplayRows()[i-1]),t&&r&&(!(r instanceof mt)||r.type!="row")?this.prevDisplayRow(r,t):r}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],r=this.getRows(e);return r.forEach(function(s){s.type=="row"&&i.push(s.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(r){t.push(r.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var r=this.table,s="",a=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(a=this.dataPipeline.findIndex(u=>u.handler===e),a>-1)s="dataPipeline",t&&(a==this.dataPipeline.length-1?s="display":a++);else if(a=this.displayPipeline.findIndex(u=>u.handler===e),a>-1)s="displayPipeline",t&&(a==this.displayPipeline.length-1?s="end":a++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else s=e||"all",a=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===s&&a<this.redrawBlockRestoreConfig.index||l.indexOf(s)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:s,index:a});return}else Ze.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,s,a,i)):(this.refreshPipelines(e,s,a,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,s,a,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,r){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let s=i;s<this.dataPipeline.length;s++){let a=this.dataPipeline[s].handler(this.activeRowsPipeline[s].slice(0));this.activeRowsPipeline[s+1]=a||this.activeRowsPipeline[s].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let s=i;s<this.displayPipeline.length;s++){let a=this.displayPipeline[s].handler((s?this.getDisplayRows(s-1):this.activeRows).slice(0),r);this.setDisplayRows(a||this.getDisplayRows(s-1).slice(0),s)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:DS,basic:TS};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let r=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const s="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=s,this.element.style.maxHeight=s}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class AS extends ht{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class OS extends ht{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),r={row:["cell"],cell:["row"]};i=i.filter(s=>{var a=r[e];return s!==e&&(!a||a&&!a.includes(s))}),i.forEach(s=>{var a=this.pseudoTrackers[s].target;this.pseudoTrackers[s].target&&(this.dispatch(s+"-mouseleave",t,a),this.pseudoTrackers[s].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let r of e){let s=i+"-"+r;this.subscriptionChange(s,this.subscriptionChanged.bind(this,i,r))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var r=this.listeners[t].components,s=r.indexOf(e),a=!1;i?s===-1&&(r.push(e),a=!0):this.subscribed(e+"-"+t)||s>-1&&(r.splice(s,1),a=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),a&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,r=this.findTargets(i);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(r).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let r of e){let s=r.classList?[...r.classList]:[];if(s.filter(u=>this.abortClasses.includes(u)).length)break;let l=s.filter(u=>i.includes(u));for(let u of l)t[this.componentMap[u]]||(t[this.componentMap[u]]=r)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),r=this.listeners[e],s={},a={},l={};for(let u of i){let c,d=t[u],f=this.previousTargets[u];if(f&&f.target===d)c=f.component;else switch(u){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(c=this.table.rowManager.getVisibleRows(!0).find(h=>h.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[u]=!1));break;case"column":r.components.includes("column")&&(c=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof mt?c=s.row.findCell(d):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}c&&(s[u]=c,l[u]={target:d,component:c})}return this.previousTargets=l,Object.keys(t).forEach(u=>{let c=s[u];a[u]=c}),a}triggerEvents(e,t,i){var r=this.listeners[e];for(let s in i)i[s]&&r.components.includes(s)&&this.dispatch(s+"-"+e,t,i[s])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class LS{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class PS extends ht{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,r,s,a){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,s])){this.loading=!0,s||this.alertLoader(),t=this.chain("data-params",[e,i,s],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var u=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return u.then(c=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(c)&&typeof c=="object"&&(c=this.mapParams(c,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[c],null,c);l==this.requestOrder?(this.clearAlert(),d!==!1&&(this.dispatchExternal("dataLoaded",d),this.table.rowManager.setData(d,r,typeof a>"u"?!r:a))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(c=>{console.error("Data Load Error: ",c),this.dispatchExternal("dataLoadError",c),s||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,r,typeof a>"u"?!r:a),Promise.resolve()}mapParams(e,t){var i={};for(let r in e)i[t.hasOwnProperty(r)?t[r]:r]=e[r];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class FS{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(r=>r===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((r,s)=>{let a=r.apply(this.table,e);s||(i=a)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class BS{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((r,s)=>r.priority-s.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(r=>r.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,r){var s=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((a,l)=>{s=a.callback.apply(this,t.concat([s]))}),s):typeof r=="function"?r():r}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((r,s)=>{r.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class VS extends ht{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var r="";return typeof this.options(e)<"u"?(r="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(r=r+", Please use the %c"+t+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(r,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class NS extends ht{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const s of e){var r=this.lookup(s,t,!0);if(r)break}if(r)return r;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var r;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(r=this.lookupKey(e,i),r)return this.props[e]||(this.props[e]={}),this.props[e][t]=r[t]||r,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function HS(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function Jc(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function IS(n,e){var t=0,i=this.table.rowManager.element.clientWidth,r=0,s=!1;n.forEach((a,l)=>{a.widthFixed||a.reinitializeWidth(),(this.table.options.responsiveLayout?a.modules.responsive.visible:a.visible)&&(s=a),a.visible&&(t+=a.getWidth())}),s?(r=i-t+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?s.setWidth(r):s.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function zS(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,a=0,l=[],u=[],c=0,d=0,f=0;function p(S){var m;return typeof S=="string"?S.indexOf("%")>-1?m=t/100*parseInt(S):m=parseInt(S):m=S,m}function h(S,m,E,b){var g=[],T=0,v=0,R=0,y=s,M=0,C=0,x=[];function w(D){return E*(D.column.definition.widthGrow||1)}function _(D){return p(D.width)-E*(D.column.definition.widthShrink||0)}return S.forEach(function(D,O){var V=b?_(D):w(D);D.column.minWidth>=V?g.push(D):D.column.maxWidth&&D.column.maxWidth<V?(D.width=D.column.maxWidth,m-=D.column.maxWidth,y-=b?D.column.definition.widthShrink||1:D.column.definition.widthGrow||1,y&&(E=Math.floor(m/y))):(x.push(D),C+=b?D.column.definition.widthShrink||1:D.column.definition.widthGrow||1)}),g.length?(g.forEach(function(D){T+=b?D.width-D.column.minWidth:D.column.minWidth,D.width=D.column.minWidth}),v=m-T,R=C?Math.floor(v/C):v,M=h(x,v,R,b)):(M=C?m-Math.floor(m/C)*C:m,x.forEach(function(D){D.width=b?_(D):w(D)})),M}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),n.forEach(function(S){var m,E,b;S.visible&&(m=S.definition.width,E=parseInt(S.minWidth),m?(b=p(m),i+=b>E?b:E,S.definition.widthShrink&&(u.push({column:S,width:b>E?b:E}),c+=S.definition.widthShrink)):(l.push({column:S,width:0}),s+=S.definition.widthGrow||1))}),r=t-i,a=Math.floor(r/s),f=h(l,r,a,!1),l.length&&f>0&&(l[l.length-1].width+=f),l.forEach(function(S){r-=S.width}),d=Math.abs(f)+r,d>0&&c&&(f=h(u,d,Math.floor(d/c),!0)),f&&u.length&&(u[u.length-1].width-=f),l.forEach(function(S){S.column.setWidth(S.width)}),u.forEach(function(S){S.column.setWidth(S.width)})}var jS={fitData:HS,fitDataFill:Jc,fitDataTable:Jc,fitDataStretch:IS,fitColumns:zS};class br extends We{static moduleName="layout";static modes=jS;constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;br.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),br.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var WS={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class Fa extends We{static moduleName="localize";static langs=WS;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=Ze.deepClone(Fa.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,r){for(var s in i)typeof i[s]=="object"?(r[s]||(r[s]={}),t(i[s],r[s])):r[s]=i[s]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=Ze.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,r=i.split("|"),s=this._getLangElement(r,this.locale);return s||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(r){var s;i&&(s=i[r],typeof s<"u"?i=s:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}}class YS extends We{static moduleName="comms";constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(r=>{this.table!==r&&t.push(r)}),t}send(e,t,i,r){var s=this.getConnections(e);s.forEach(a=>{a.tableComms(this.table.element,t,i,r)}),!s.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,r){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,r);console.warn("Inter-table Comms Error - no such module:",t)}}var US=Object.freeze({__proto__:null,CommsModule:YS,LayoutModule:br,LocalizeModule:Fa});class Ft{static registry={tables:[],register(e){Ft.registry.tables.push(e)},deregister(e){var t=Ft.registry.tables.indexOf(e);t>-1&&Ft.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],r,s;if(typeof e=="string"){if(r=document.querySelectorAll(e),r.length)for(var a=0;a<r.length;a++)s=Ft.registry.matchElement(r[a]),s&&i.push(s)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof Ft?(s=Ft.registry.matchElement(e),s&&i.push(s)):Array.isArray(e)?e.forEach(function(l){i=i.concat(Ft.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return Ft.registry.tables.find(function(t){return e instanceof Ft?t===e:t.element===e})}};static findTable(e){var t=Ft.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}}class at extends Ft{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){at.modulesRegistered||(at.modulesRegistered=!0,at._registerModules(US,!0),e&&at._registerModules(e))}static _extendModule(e,t,i){if(at.moduleBindings[e]){var r=at.moduleBindings[e][t];if(r)if(typeof i=="object")for(let s in i)r[s]=i[s];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(r=>{r.prototype.moduleCore=!0}),at._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{at._registerModuleBinding(t),at._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?at.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let r=t[i];if(at.moduleBindings[i])for(let s in r)at._extendModule(i,s,r[s]);else{at.moduleExtensions[i]||(at.moduleExtensions[i]={});for(let s in r)at.moduleExtensions[i][s]||(at.moduleExtensions[i][s]={}),Object.assign(at.moduleExtensions[i][s],r[s])}}at._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=at.moduleExtensions[e.moduleName];if(t)for(let i in t)at._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var r in at.moduleBindings){let s=at.moduleBindings[r],a=new s(this);this.modules[r]=a,s.prototype.moduleCore?this.modulesCore.push(a):s.moduleInitOrder?s.moduleInitOrder<0?e.push(a):t.push(a):i.push(a)}e.sort((s,a)=>s.moduleInitOrder>a.moduleInitOrder?1:-1),t.sort((s,a)=>s.moduleInitOrder>a.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}}class GS extends ht{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class pi extends at{static defaultOptions=SS;static extendModule(){pi.initializeModuleBinder(),pi._extendModule(...arguments)}static registerModule(){pi.initializeModuleBinder(),pi._registerModule(...arguments)}constructor(e,t,i){super(),pi.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new LS(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new VS(this),this.optionsList=new Kc(this,"table constructor"),this.dependencyRegistry=new NS(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new RS(this),this.rowManager=new _S(this),this.footerManager=new AS(this),this.dataLoader=new PS(this),this.alertManager=new GS(this),this._bindModules(),this.options=this.optionsList.generate(pi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new FS(this,this.options,this.options.debugEventsExternal),this.eventBus=new BS(this.options.debugEventsInternal),this.interactionMonitor=new OS(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var r=e.attributes;for(var s in r)typeof r[s]=="object"&&i.setAttribute(r[s].name,r[s].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,r;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
54
- `),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var a=this.rowManager.findRow(s[this.options.index]);a?(t++,a.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(a=>{var l=[];a.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(a=>{var l=this.rowManager.findRow(a[this.options.index]);i++,l?l.updateData(a).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(a).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(r=>r[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(r=>r[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var a=this.columnManager.findColumn(e);return a?this.columnManager.scrollToColumn(a,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var xn=pi;class $S extends xn{static extendModule(){xn.initializeModuleBinder(Pa),xn._extendModule(...arguments)}static registerModule(){xn.initializeModuleBinder(Pa),xn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Pa)}}var qS=$S;const KS={key:0,class:"bi bi-chevron-up"},JS={key:1,class:"bi bi-chevron-down"},Xc=He({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(o.openBlock(),o.createElementBlock("i",KS)):(o.openBlock(),o.createElementBlock("i",JS))]))}},[["__scopeId","data-v-4810f2ed"]]),Qc={gender:{MALE:1,FEMALE:2,MIXED_GENDER:3,NOT_GENDER:4},address_fields:["postal_code","region_code","district_code","locality_code","sub_locality_code","street_code","house","flat"],userRoles:{ADMIN:1,VETERINARIAN:2,SHTP:3,LOCAL_EPIZOOTOLOGIST:4,ORGANIZATION_ADMIN:5,REGIONAL_REPRESENTATIVE:6,AGENCY:7,CENTRAL_WAREHOUSE:8,DISTRICT_REPRESENTATIVE:9,COUNTERPARTY:10,VETERINARIAN_REGISTRATOR:11,LABORATORY:12,INTEGRATOR:13},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},defaultTableOptions:{headerSortClickElement:"icon",printAsHtml:!0,printConfig:{},reactiveData:!0,movableColumns:!0,layout:"fitDataFill",layoutColumnsOnNewData:!0,resizableColumnFit:!0,pagination:!0,paginationMode:"remote",paginationCounter:"rows",paginationSize:10,columns:[]},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],bird_ids:[19,20,21,22,23,24,25],fish_ids:[38,39,40,41,42],animal_kinds:{COW:1,PIG:2,HORSE:3,BEE:4,DOG:5,CAT:6,DEER:7,MARAL:8,CAMEL:9,DONKEY:10,BISON:11,GOST:12,SHEEP:13,MULE:14,LOSHAK:15,ZEBU:16,BUFFALO:17,GRUNTING_OX:18,CHICKEN:19,DUCK:20,GOOSE:21,TURKEY:22,GUINEA_FOWL:23,QUAIL:24,OSTRICH:25,FOX:26,SABLE:27,MINK:28,FERRET:29,RABBIT:30,ARCTIC_FOX:31,RACCOON_DOG:32,NUTRIA:33,ALPACAS:34,PHEASANT:35,PEACOCK:36,RACCOON:37,STURGEON:38,SALMON:39,CARP:40,CATFISH:41,BASS:42},mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Qc);const XS=()=>({"en-en":{pagination:{first:"First11",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},data:{loading:"Loading...",error:"Error loading data."}},"ru-ru":{pagination:{first:"Первая",first_title:"Первая страница",last:"Последняя",last_title:"Последняя страница",prev:"Пред",prev_title:"Предыдущая страница",next:"След",next_title:"Следующая страница",all:"Все",counter:{showing:"Показано",of:"из",rows:"записей",pages:"страниц"}},data:{loading:"Загрузка...",error:"Ошибка загрузки данных."}}}),QS={class:"position-relative",style:{"min-height":"300px"}},ZS={key:0,class:"tabulator hide-to-print sticky-bottom bg-white"},e1={class:"row"},t1={key:0,class:"col-auto"},i1={class:"col"},n1={class:"tabulator-footer",ref:"footer"},r1=["id"],s1=["disabled"],a1={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},o1="",l1=o.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"ru-ru"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=o.inject("selectedTabIndex",o.ref()),s=o.inject("selectAll",o.ref(0)),a=o.ref(""),l=o.ref(null),u=o.ref({data:[],rows:[]}),c=o.ref(new Set(t.selectedRowsStorage)),d=o.ref(!1),f=o.ref(Ei()),p=o.ref(null),h=o.ref(null),S=o.ref(!1),m=o.ref(!1),E=o.computed(()=>t.options?.paginationMode==="remote"),b=o.computed(()=>Qc.customPerPageOptions),g=o.useSlots(),T=H=>!!g[H],v=()=>{a.value=""},R=H=>!H||!H.length?[]:H.map(re=>re),y=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");!H||t.isVisibleColumnSubFilter===null||cn(H,Xc,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":re=>i("updateIsVisibleColumnSubFilter",re)})},M=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");H&&(H.classList.add("position-relative"),y())},C=()=>{if(!h.value)return;const H=p.value?.parentNode?.querySelector(".tabulator-footer"),re=h.value.last_page;if(!re||isNaN(+re)){H&&H.classList.add("d-none");return}re>1?H&&H.classList.remove("d-none"):H&&H.classList.add("d-none")},x=()=>{m.value||(S.value=!0)},w=()=>{m.value||(S.value=!1)},_=H=>{m.value||(S.value=!1)},D=()=>{m.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},O=H=>{m.value||(setTimeout(()=>{m.value||i("savePaginationPage",H)}),E.value&&C(),s.value>0&&i("pageLoaded"),S.value=!1,M())},V=H=>{if(m.value)return;const re=H.getData(),ee=h.value?.options?.index||"id",Q=re[ee]??null;Q!==null&&(c.value.add(Q),u.value.data.push(re),u.value.rows.push(H),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:re,row:H}))},W=H=>{if(m.value)return;const re=H.getData(),ee=h.value?.options?.index||"id",Q=re[ee]??null;if(Q===null)return;c.value.delete(Q);const pe=u.value.data.findIndex(ue=>ue[ee]===Q);pe!==-1&&(u.value.data.splice(pe,1),u.value.rows.splice(pe,1)),i("updateUnselectedRows",{data:re,row:H}),i("unselectedRow",{data:re,row:H})},Y=function(){m.value||(h.value&&h.value.selectRow(Array.from(c.value)),S.value=!0)},N=(H,re)=>{if(m.value)return;if(re?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",H,re);return}const ee=[],Q=H.target;for(let pe=0;pe<Q.childNodes.length;pe++){const ue=Q.childNodes[pe];ue.nodeName==="INPUT"&&ue.type==="checkbox"&&ee.push("checkbox")}ee.includes("checkbox")||i("onTableRowClick",H,re._cell.row,t.parentComponent)},I=H=>{m.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},q=()=>{m.value||setTimeout(()=>{m.value||(S.value=!0)})},L=()=>{m.value||setTimeout(()=>{m.value||(S.value=!1,j())})},B=()=>{d.value=!1},$=()=>{if(!p.value||E.value&&!t.options.ajaxResponse||h.value)return;S.value=!0;const H={...t.options,...E.value?{}:{data:t.tableData},langs:XS(),locale:t.locale,columns:R(t.options.columns),dataLoaderLoading:`<img alt="" src="${o1}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};E.value&&(H.footerElement=`#tabulator-footer${f.value}`),h.value=new qS(p.value,H),h.value.on("dataLoading",x),h.value.on("dataLoaded",w),h.value.on("dataLoadError",_),h.value.on("tableBuilt",D),h.value.on("pageLoaded",O),h.value.on("rowSelected",V),h.value.on("rowDeselected",W),h.value.on("dataProcessed",Y),h.value.on("cellClick",N),h.value.on("columnMoved",I),h.value.on("renderStarted",q),h.value.on("renderComplete",L),h.value.on("tableDestroyed",B)},z=H=>{if(m.value||!d.value||!H||!h.value)return;const re=h.value.options.ajaxParams;re&&(re.per_page=Number(H)),h.value.options.paginationSize=Number(H),h.value.setPageSize(H)},J=()=>{if(m.value||!h.value)return;const H=640,re=h.value.options;if(E.value)re.ajaxParams?.per_page<H&&(re.ajaxParams.per_page+=40),h.value.setData();else{const ee=h.value.getPageSize();typeof ee=="number"&&ee<H&&h.value.setPageSize(ee+40)}re.paginationSize>=H&&(a.value=t.paginationLimitText)},Z=H=>{m.value||H===""||!h.value||(h.value.showColumn(H),i("onShowColumn",h.value.getColumnLayout()))},U=H=>{m.value||H===""||!h.value||(h.value.hideColumn(H),i("onHideColumn",h.value.getColumnLayout()))},ie=H=>{m.value||!h.value||(H.filter(({visible:re})=>!re).length===H.length?H.map(({field:re})=>{o.nextTick(()=>{!m.value&&h.value&&h.value.showColumn(re)})}):H.map(({field:re,visible:ee})=>{!m.value&&h.value&&(ee?h.value.showColumn(re):h.value.hideColumn(re))}))},j=()=>{o.nextTick(()=>{if(m.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return o.onMounted(()=>{$()}),o.onBeforeUnmount(()=>{m.value=!0,h.value&&(h.value.destroy(),h.value=null)}),o.watch(()=>t.columnShow,H=>{H&&Z(H)}),o.watch(()=>t.columnHide,H=>{H&&U(H)}),o.watch(()=>t.filters,H=>{m.value||!h.value||h.value.setFilter(H)},{deep:!0}),o.watch(()=>t.tableData,H=>{m.value||!h.value||E.value||h.value.setData(H)},{deep:!1}),o.watch(()=>t.options.ajaxResponse,H=>{m.value||(h.value&&H?h.value.options.ajaxResponse=H:E.value&&H&&!h.value&&o.nextTick(()=>{m.value||!p.value||$()}))}),o.watch(()=>t.options,H=>{m.value||E.value&&H.ajaxResponse&&!h.value&&o.nextTick(()=>{m.value||!p.value||$()})},{deep:!0}),o.watch(r,()=>{m.value||!h.value||h.value.deselectRow()}),o.watch(s,H=>{m.value||H<=0||!h.value||h.value.selectRow()}),o.watch(()=>t.options.columns,H=>{m.value||!d.value||!h.value||!H||(!H.find(({visible:re})=>re)&&t.showAllColumnsIfAllHidden?ie(H):h.value.setColumns(H))},{deep:!0}),o.watch(()=>t.selectedRowsStorage,H=>{m.value||!H||(c.value=new Set(H))},{deep:!0}),o.watch(d,H=>{m.value||!H||(t.showAllColumnsIfAllHidden&&ie(t.options.columns||[]),t.tableData.length>0&&!E.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(H,re)=>(o.openBlock(),o.createElementBlock("div",QS,[o.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),E.value?(o.openBlock(),o.createElementBlock("div",ZS,[o.createElementVNode("div",e1,[T("table-footer-left")?(o.openBlock(),o.createElementBlock("div",t1,[o.renderSlot(H.$slots,"table-footer-left")])):o.createCommentVNode("",!0),o.createElementVNode("div",i1,[o.createElementVNode("div",n1,[o.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[o.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:J,disabled:S.value},[o.createTextVNode(o.toDisplayString(n.loadMoreText)+" ",1),re[2]||(re[2]=o.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),S.value?(o.openBlock(),o.createElementBlock("div",a1)):o.createCommentVNode("",!0)],8,s1),o.createVNode(oi,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[re[0]||(re[0]=ee=>l.value=ee),re[1]||(re[1]=ee=>z(ee))],allowClear:!1,options:b.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,r1)],512)])])])):o.createCommentVNode("",!0),o.createVNode(zc,{message:a.value,onClearMessage:v},null,8,["message"])]))}}),u1={class:"r3-table-count__wrapper px-3"},c1={class:"r3-table-count__label pe-2"},d1={class:"r3-table-count__value"},h1=He(o.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.label||e.defaultLabel),i=o.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[o.createElementVNode("div",u1,[o.createElementVNode("span",c1,o.toDisplayString(t.value)+":",1),o.createElementVNode("span",d1,o.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),f1=He(o.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return cn(r,e.mountedComponent,e.dataProps),!1;cn(r,null,{},!0)}return o.watch(()=>e,()=>{t()},{deep:!0}),o.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),p1=He(o.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.computed(()=>"default-page"),a=o.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...hi(h),[s.value]:{[i.tableName]:d(a.value)}};const S=JSON.stringify(h);return localStorage.setItem("filters",S),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[S,m]of Object.entries(p))h[S]=hi(m._value||m);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const S=d(h[s.value][i.tableName]);return r("update:filters",{...S}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>o.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),m1={class:"row pt-3"},g1={class:"col-12"},b1=["onClick"],v1=He(o.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",m1,[o.createElementVNode("div",g1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.filterList,(a,l)=>(o.openBlock(),o.createElementBlock("button",{onClick:u=>i(a.name),class:o.normalizeClass(["btn filter-item",{active:r.defaultSelected===a.name,disabled:a.disabled}]),key:l},o.toDisplayString(a.title),11,b1))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),y1={key:0,class:"col-4 mb-2"},w1={class:"form-check"},C1=["checked","id","onChange"],E1=["for"],k1=["innerHTML"],S1={class:"col-auto"},x1={class:"col-auto ps-0"},M1={class:"col-auto ps-0"},Ba=He(o.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=o.ref([...t.columns]),s=o.ref([...t.columns]);o.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const a=o.ref(!0);function l(){const S=r.value.filter(m=>m.title).some(m=>!m.visible);a.value=S,o.triggerRef(a)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,S)=>{const m=h.target,E=r.value.findIndex(b=>b.field===S);E!==-1&&(r.value[E].visible=m.checked,l()),i("columnVisibilityChange",h,S)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(S=>({...S,visible:S.title?!0:S.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(S=>({...S,visible:S.title?!1:S.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,S)=>(o.openBlock(),o.createBlock(Bc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(m,E)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:E},[m.title?(o.openBlock(),o.createElementBlock("div",y1,[o.createElementVNode("div",w1,[o.createElementVNode("input",{checked:m.visible,class:"form-check-input",type:"checkbox",id:m.field,ref_for:!0,ref:"editColumns",onChange:b=>c(b,m.field)},null,40,C1),o.createElementVNode("label",{class:"form-check-label",for:m.field},[o.createElementVNode("span",{class:"lh-sm",innerHTML:m.title},null,8,k1)],8,E1)])])):o.createCommentVNode("",!0)],64))),128))]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",S1,[o.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},o.toDisplayString(h.applyText),1)]),o.createElementVNode("div",x1,[o.createElementVNode("div",M1,[a.value?(o.openBlock(),o.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},o.toDisplayString(h.selectAllText),1)):o.createCommentVNode("",!0),a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},o.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Va(n,e){const t=o.ref(!1),i=o.ref([...n]);o.watch(()=>n,S=>{i.value=[...S]},{deep:!0});function r(S){t.value=S}function s(S,m){const E=S.target,b=i.value.map(g=>g.field===m?{...g,visible:E.checked}:g);i.value=b,e&&e.value&&(e.value.columns=b)}function a(S){console.log("useTableColumns handleColumnsApply called, received columns:",S),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(S),u()}function l(S){S&&(i.value=[...S],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const S=i.value.map(m=>({...m,visible:m.title?!0:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}function d(){const S=i.value.map(m=>({...m,visible:m.title?!1:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}const f=o.computed(()=>i.value.filter(S=>S.visible));function p(S){i.value=[...S],e&&e.value&&(e.value.columns=S)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:a,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const R1=o.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Va(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,s.value=[...h],i("columns-changed",h),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(xr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Ba,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),T1=o.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Va(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,s.value=[...h],i("columns-changed",h),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(xr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Ba,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),D1={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},_1={key:2,class:"selected-count"},A1=He(o.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",D1,[s.selectedRows.length>0?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},o.toDisplayString(s.unselectAllText),1)):o.createCommentVNode("",!0),s.selectedRows.length===0?(o.openBlock(),o.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},o.toDisplayString(s.selectAllText),1)):o.createCommentVNode("",!0),s.showCount?(o.openBlock(),o.createElementBlock("div",_1,o.toDisplayString(s.selectedText)+": "+o.toDisplayString(s.selectedRows.length),1)):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),O1={class:"row pt-3"},L1={class:"col-12"},P1=["onClick"],F1=He(o.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return o.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((a,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(a.value=s[u])})},{immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",O1,[o.createElementVNode("div",L1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filterList,(l,u)=>(o.openBlock(),o.createElementBlock("button",{onClick:c=>r(u),class:o.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},o.toDisplayString(l.title),11,P1))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var mi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(mi||(mi={}));var yt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(yt||(yt={}));function B1(n){return vr(n)&&typeof n.from=="function"}function vr(n){return typeof n=="object"&&typeof n.to=="function"}function Zc(n){n.parentElement.removeChild(n)}function Na(n){return n!=null}function ed(n){n.preventDefault()}function V1(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function N1(n,e){return Math.round(n/e)*e}function H1(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=nd(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function It(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function td(n,e,t){t>0&&(gt(n,e),setTimeout(function(){wr(n,e)},t))}function id(n){return Math.max(Math.min(n,100),0)}function yr(n){return Array.isArray(n)?n:[n]}function I1(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function gt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function wr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function z1(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function nd(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function j1(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function W1(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function Y1(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Ha(n,e){return 100/(e-n)}function Ia(n,e,t){return e*100/(n[t+1]-n[t])}function U1(n,e){return Ia(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function G1(n,e){return e*(n[1]-n[0])/100+n[0]}function Mn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function $1(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Mn(t,n),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return a+U1([r,s],t)/Ha(a,l)}function q1(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Mn(t,e),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return G1([r,s],(t-a)*Ha(a,l))}function K1(n,e,t,i){if(i===100)return i;var r=Mn(i,n),s=n[r-1],a=n[r];return t?i-s>(a-s)/2?a:s:e[r-1]?n[r-1]+N1(i-n[r-1],e[r-1]):i}var rd=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(a){s.push([yr(e[a]),a])}),s.sort(function(a,l){return a[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=Ia(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,a=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*a+100-s*100>100?(c=u*s,a=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*a,a=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*a;return e+d},n.prototype.toStepping=function(e){return e=$1(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return q1(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=K1(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Mn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=Mn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(I1);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!It(i)||!It(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=Ia([this.xVal[e],this.xVal[e+1]],t,0)/Ha(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),sd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},ad={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},gi={tooltips:".__tooltips",aria:".__aria"};function J1(n,e){if(!It(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function X1(n,e){if(!It(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function Q1(n,e){if(!It(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function Z1(n,e){if(!It(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function ex(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new rd(e,n.snap||!1,n.singleStep)}function tx(n,e){if(e=yr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function ix(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function nx(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function rx(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function od(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function sx(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ld(n,e){if(!It(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function ax(n,e){if(!It(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ox(n,e){var t;if(!It(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||It(e[0])||It(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function lx(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ux(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ld(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:a,unconstrained:l,invertConnects:u}}function cx(n,e){if(e!==!1)if(e===!0||vr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=yr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!vr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function dx(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function hx(n,e){if(!vr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function fx(n,e){if(!B1(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function px(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function mx(n,e){n.documentElement=e}function gx(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function bx(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function ud(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:sd,format:sd},t={step:{r:!1,t:J1},keyboardPageMultiplier:{r:!1,t:X1},keyboardMultiplier:{r:!1,t:Q1},keyboardDefaultStep:{r:!1,t:Z1},start:{r:!0,t:tx},connect:{r:!0,t:od},direction:{r:!0,t:lx},snap:{r:!1,t:ix},animate:{r:!1,t:nx},animationDuration:{r:!1,t:rx},range:{r:!0,t:ex},orientation:{r:!1,t:sx},margin:{r:!1,t:ld},limit:{r:!1,t:ax},padding:{r:!1,t:ox},behaviour:{r:!0,t:ux},ariaFormat:{r:!1,t:hx},format:{r:!1,t:fx},tooltips:{r:!1,t:cx},keyboardSupport:{r:!0,t:px},documentElement:{r:!1,t:mx},cssPrefix:{r:!0,t:gx},cssClasses:{r:!0,t:bx},handleAttributes:{r:!1,t:dx}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ad,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!Na(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,Na(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,a=r.style.transform!==void 0;e.transformRule=a?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function vx(n,e,t){var i=j1(),r=Y1(),s=r&&W1(),a=n,l,u,c,d,f,p,h=e.spectrum,S=[],m=[],E=[],b=0,g={},T=!1,v=n.ownerDocument,R=e.documentElement||v.documentElement,y=v.body,M=v.dir==="rtl"||e.ort===1?0:100;function C(k,A){var F=v.createElement("div");return A&&gt(F,A),k.appendChild(F),F}function x(k,A){var F=C(k,e.cssClasses.origin),G=C(F,e.cssClasses.handle);if(C(G,e.cssClasses.touchArea),G.setAttribute("data-handle",String(A)),e.keyboardSupport&&(G.setAttribute("tabindex","0"),G.addEventListener("keydown",function(oe){return Pe(oe,A)})),e.handleAttributes!==void 0){var se=e.handleAttributes[A];Object.keys(se).forEach(function(oe){G.setAttribute(oe,se[oe])})}return G.setAttribute("role","slider"),G.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),A===0?gt(G,e.cssClasses.handleLower):A===e.handles-1&&gt(G,e.cssClasses.handleUpper),F.handle=G,F}function w(k,A){return A?C(k,e.cssClasses.connect):!1}function _(k,A){u=C(A,e.cssClasses.connects),c=[],d=[],d.push(w(u,k[0]));for(var F=0;F<e.handles;F++)c.push(x(A,F)),E[F]=F,d.push(w(u,k[F+1]))}function D(k){gt(k,e.cssClasses.target),e.dir===0?gt(k,e.cssClasses.ltr):gt(k,e.cssClasses.rtl),e.ort===0?gt(k,e.cssClasses.horizontal):gt(k,e.cssClasses.vertical);var A=getComputedStyle(k).direction;return A==="rtl"?gt(k,e.cssClasses.textDirectionRtl):gt(k,e.cssClasses.textDirectionLtr),C(k,e.cssClasses.base)}function O(k,A){return!e.tooltips||!e.tooltips[A]?!1:C(k.firstChild,e.cssClasses.tooltip)}function V(){return a.hasAttribute("disabled")}function W(k){var A=c[k];return A.hasAttribute("disabled")}function Y(k){k!=null?(c[k].setAttribute("disabled",""),c[k].handle.removeAttribute("tabindex")):(a.setAttribute("disabled",""),c.forEach(function(A){A.handle.removeAttribute("tabindex")}))}function N(k){k!=null?(c[k].removeAttribute("disabled"),c[k].handle.setAttribute("tabindex","0")):(a.removeAttribute("disabled"),c.forEach(function(A){A.removeAttribute("disabled"),A.handle.setAttribute("tabindex","0")}))}function I(){p&&(X("update"+gi.tooltips),p.forEach(function(k){k&&Zc(k)}),p=null)}function q(){I(),p=c.map(O),Ve("update"+gi.tooltips,function(k,A,F){if(!(!p||!e.tooltips)&&p[A]!==!1){var G=k[A];e.tooltips[A]!==!0&&(G=e.tooltips[A].to(F[A])),p[A].innerHTML=G}})}function L(){X("update"+gi.aria),Ve("update"+gi.aria,function(k,A,F,G,se){E.forEach(function(oe){var ce=c[oe],fe=me(m,oe,0,!0,!0,!0),ge=me(m,oe,100,!0,!0,!0),ve=se[oe],Oe=String(e.ariaFormat.to(F[oe]));fe=h.fromStepping(fe).toFixed(1),ge=h.fromStepping(ge).toFixed(1),ve=h.fromStepping(ve).toFixed(1),ce.children[0].setAttribute("aria-valuemin",fe),ce.children[0].setAttribute("aria-valuemax",ge),ce.children[0].setAttribute("aria-valuenow",ve),ce.children[0].setAttribute("aria-valuetext",Oe)})})}function B(k){if(k.mode===mi.Range||k.mode===mi.Steps)return h.xVal;if(k.mode===mi.Count){if(k.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var A=k.values-1,F=100/A,G=[];A--;)G[A]=A*F;return G.push(100),$(G,k.stepped)}return k.mode===mi.Positions?$(k.values,k.stepped):k.mode===mi.Values?k.stepped?k.values.map(function(se){return h.fromStepping(h.getStep(h.toStepping(se)))}):k.values:[]}function $(k,A){return k.map(function(F){return h.fromStepping(A?h.getStep(F):F)})}function z(k){function A(ve,Oe){return Number((ve+Oe).toFixed(7))}var F=B(k),G={},se=h.xVal[0],oe=h.xVal[h.xVal.length-1],ce=!1,fe=!1,ge=0;return F=V1(F.slice().sort(function(ve,Oe){return ve-Oe})),F[0]!==se&&(F.unshift(se),ce=!0),F[F.length-1]!==oe&&(F.push(oe),fe=!0),F.forEach(function(ve,Oe){var Ye,Ne,Xe,et=ve,lt=F[Oe+1],rt,bi,Ti,li,zt,Jt,Xi,Di=k.mode===mi.Steps;for(Di&&(Ye=h.xNumSteps[Oe]),Ye||(Ye=lt-et),lt===void 0&&(lt=et),Ye=Math.max(Ye,1e-7),Ne=et;Ne<=lt;Ne=A(Ne,Ye)){for(rt=h.toStepping(Ne),bi=rt-ge,zt=bi/(k.density||1),Jt=Math.round(zt),Xi=bi/Jt,Xe=1;Xe<=Jt;Xe+=1)Ti=ge+Xe*Xi,G[Ti.toFixed(5)]=[h.fromStepping(Ti),0];li=F.indexOf(Ne)>-1?yt.LargeValue:Di?yt.SmallValue:yt.NoValue,!Oe&&ce&&Ne!==lt&&(li=0),Ne===lt&&fe||(G[rt.toFixed(5)]=[Ne,li]),ge=rt}}),G}function J(k,A,F){var G,se,oe=v.createElement("div"),ce=(G={},G[yt.None]="",G[yt.NoValue]=e.cssClasses.valueNormal,G[yt.LargeValue]=e.cssClasses.valueLarge,G[yt.SmallValue]=e.cssClasses.valueSub,G),fe=(se={},se[yt.None]="",se[yt.NoValue]=e.cssClasses.markerNormal,se[yt.LargeValue]=e.cssClasses.markerLarge,se[yt.SmallValue]=e.cssClasses.markerSub,se),ge=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],ve=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];gt(oe,e.cssClasses.pips),gt(oe,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function Oe(Ne,Xe){var et=Xe===e.cssClasses.value,lt=et?ge:ve,rt=et?ce:fe;return Xe+" "+lt[e.ort]+" "+rt[Ne]}function Ye(Ne,Xe,et){if(et=A?A(Xe,et):et,et!==yt.None){var lt=C(oe,!1);lt.className=Oe(et,e.cssClasses.marker),lt.style[e.style]=Ne+"%",et>yt.NoValue&&(lt=C(oe,!1),lt.className=Oe(et,e.cssClasses.value),lt.setAttribute("data-value",String(Xe)),lt.style[e.style]=Ne+"%",lt.innerHTML=String(F.to(Xe)))}}return Object.keys(k).forEach(function(Ne){Ye(Ne,k[Ne][0],k[Ne][1])}),oe}function Z(){f&&(Zc(f),f=null)}function U(k){Z();var A=z(k),F=k.filter,G=k.format||{to:function(se){return String(Math.round(se))}};return f=a.appendChild(J(A,F,G)),f}function ie(){var k=l.getBoundingClientRect(),A="offset"+["Width","Height"][e.ort];return e.ort===0?k.width||l[A]:k.height||l[A]}function j(k,A,F,G){var se=function(ce){var fe=H(ce,G.pageOffset,G.target||A);if(!fe||V()&&!G.doNotReject||z1(a,e.cssClasses.tap)&&!G.doNotReject||k===i.start&&fe.buttons!==void 0&&fe.buttons>1||G.hover&&fe.buttons)return!1;s||fe.preventDefault(),fe.calcPoint=fe.points[e.ort],F(fe,G)},oe=[];return k.split(" ").forEach(function(ce){A.addEventListener(ce,se,s?{passive:!0}:!1),oe.push([ce,se])}),oe}function H(k,A,F){var G=k.type.indexOf("touch")===0,se=k.type.indexOf("mouse")===0,oe=k.type.indexOf("pointer")===0,ce=0,fe=0;if(k.type.indexOf("MSPointer")===0&&(oe=!0),k.type==="mousedown"&&!k.buttons&&!k.touches)return!1;if(G){var ge=function(Ye){var Ne=Ye.target;return Ne===F||F.contains(Ne)||k.composed&&k.composedPath().shift()===F};if(k.type==="touchstart"){var ve=Array.prototype.filter.call(k.touches,ge);if(ve.length>1)return!1;ce=ve[0].pageX,fe=ve[0].pageY}else{var Oe=Array.prototype.find.call(k.changedTouches,ge);if(!Oe)return!1;ce=Oe.pageX,fe=Oe.pageY}}return A=A||nd(v),(se||oe)&&(ce=k.clientX+A.x,fe=k.clientY+A.y),k.pageOffset=A,k.points=[ce,fe],k.cursor=se||oe,k}function re(k){var A=k-H1(l,e.ort),F=A*100/ie();return F=id(F),e.dir?100-F:F}function ee(k){var A=100,F=!1;return c.forEach(function(G,se){if(!W(se)){var oe=m[se],ce=Math.abs(oe-k),fe=ce===100&&A===100,ge=ce<A,ve=ce<=A&&k>oe;(ge||ve||fe)&&(F=se,A=ce)}}),F}function Q(k,A){k.type==="mouseout"&&k.target.nodeName==="HTML"&&k.relatedTarget===null&&ue(k,A)}function pe(k,A){if(navigator.appVersion.indexOf("MSIE 9")===-1&&k.buttons===0&&A.buttonsProperty!==0)return ue(k,A);var F=(e.dir?-1:1)*(k.calcPoint-A.startCalcPoint),G=F*100/A.baseSize;Me(F>0,G,A.locations,A.handleNumbers,A.connect)}function ue(k,A){A.handle&&(wr(A.handle,e.cssClasses.active),b-=1),A.listeners.forEach(function(F){R.removeEventListener(F[0],F[1])}),b===0&&(wr(a,e.cssClasses.drag),Ae(),k.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",ed))),e.events.smoothSteps&&(A.handleNumbers.forEach(function(F){Ie(F,m[F],!0,!0,!1,!1)}),A.handleNumbers.forEach(function(F){te("update",F)})),A.handleNumbers.forEach(function(F){te("change",F),te("set",F),te("end",F)})}function ye(k,A){if(!A.handleNumbers.some(W)){var F;if(A.handleNumbers.length===1){var G=c[A.handleNumbers[0]];F=G.children[0],b+=1,gt(F,e.cssClasses.active)}k.stopPropagation();var se=[],oe=j(i.move,R,pe,{target:k.target,handle:F,connect:A.connect,listeners:se,startCalcPoint:k.calcPoint,baseSize:ie(),pageOffset:k.pageOffset,handleNumbers:A.handleNumbers,buttonsProperty:k.buttons,locations:m.slice()}),ce=j(i.end,R,ue,{target:k.target,handle:F,listeners:se,doNotReject:!0,handleNumbers:A.handleNumbers}),fe=j("mouseout",R,Q,{target:k.target,handle:F,listeners:se,doNotReject:!0,handleNumbers:A.handleNumbers});se.push.apply(se,oe.concat(ce,fe)),k.cursor&&(y.style.cursor=getComputedStyle(k.target).cursor,c.length>1&&gt(a,e.cssClasses.drag),y.addEventListener("selectstart",ed,!1)),A.handleNumbers.forEach(function(ge){te("start",ge)})}}function we(k){k.stopPropagation();var A=re(k.calcPoint),F=ee(A);F!==!1&&(e.events.snap||td(a,e.cssClasses.tap,e.animationDuration),Ie(F,A,!0,!0),Ae(),te("slide",F,!0),te("update",F,!0),e.events.snap?ye(k,{handleNumbers:[F]}):(te("change",F,!0),te("set",F,!0)))}function Re(k){var A=re(k.calcPoint),F=h.getStep(A),G=h.fromStepping(F);Object.keys(g).forEach(function(se){se.split(".")[0]==="hover"&&g[se].forEach(function(oe){oe.call(P,G)})})}function Pe(k,A){if(V()||W(A))return!1;var F=["Left","Right"],G=["Down","Up"],se=["PageDown","PageUp"],oe=["Home","End"];e.dir&&!e.ort?F.reverse():e.ort&&!e.dir&&(G.reverse(),se.reverse());var ce=k.key.replace("Arrow",""),fe=ce===se[0],ge=ce===se[1],ve=ce===G[0]||ce===F[0]||fe,Oe=ce===G[1]||ce===F[1]||ge,Ye=ce===oe[0],Ne=ce===oe[1];if(!ve&&!Oe&&!Ye&&!Ne)return!0;k.preventDefault();var Xe;if(Oe||ve){var et=ve?0:1,lt=ze(A),rt=lt[et];if(rt===null)return!1;rt===!1&&(rt=h.getDefaultStep(m[A],ve,e.keyboardDefaultStep)),ge||fe?rt*=e.keyboardPageMultiplier:rt*=e.keyboardMultiplier,rt=Math.max(rt,1e-7),rt=(ve?-1:1)*rt,Xe=S[A]+rt}else Ne?Xe=e.spectrum.xVal[e.spectrum.xVal.length-1]:Xe=e.spectrum.xVal[0];return Ie(A,h.toStepping(Xe),!0,!0),te("slide",A),te("update",A),te("change",A),te("set",A),!1}function le(k){k.fixed||c.forEach(function(A,F){j(i.start,A.children[0],ye,{handleNumbers:[F]})}),k.tap&&j(i.start,l,we,{}),k.hover&&j(i.move,l,Re,{hover:!0}),k.drag&&d.forEach(function(A,F){if(!(A===!1||F===0||F===d.length-1)){var G=c[F-1],se=c[F],oe=[A],ce=[G,se],fe=[F-1,F];gt(A,e.cssClasses.draggable),k.fixed&&(oe.push(G.children[0]),oe.push(se.children[0])),k.dragAll&&(ce=c,fe=E),oe.forEach(function(ge){j(i.start,ge,ye,{handles:ce,handleNumbers:fe,connect:A})})}})}function Ve(k,A){g[k]=g[k]||[],g[k].push(A),k.split(".")[0]==="update"&&c.forEach(function(F,G){te("update",G)})}function ae(k){return k===gi.aria||k===gi.tooltips}function X(k){var A=k&&k.split(".")[0],F=A?k.substring(A.length):k;Object.keys(g).forEach(function(G){var se=G.split(".")[0],oe=G.substring(se.length);(!A||A===se)&&(!F||F===oe)&&(!ae(oe)||F===oe)&&delete g[G]})}function te(k,A,F){Object.keys(g).forEach(function(G){var se=G.split(".")[0];k===se&&g[G].forEach(function(oe){oe.call(P,S.map(e.format.to),A,S.slice(),F||!1,m.slice(),P)})})}function me(k,A,F,G,se,oe,ce){var fe;return c.length>1&&!e.events.unconstrained&&(G&&A>0&&(fe=h.getAbsoluteDistance(k[A-1],e.margin,!1),F=Math.max(F,fe)),se&&A<c.length-1&&(fe=h.getAbsoluteDistance(k[A+1],e.margin,!0),F=Math.min(F,fe))),c.length>1&&e.limit&&(G&&A>0&&(fe=h.getAbsoluteDistance(k[A-1],e.limit,!1),F=Math.min(F,fe)),se&&A<c.length-1&&(fe=h.getAbsoluteDistance(k[A+1],e.limit,!0),F=Math.max(F,fe))),e.padding&&(A===0&&(fe=h.getAbsoluteDistance(0,e.padding[0],!1),F=Math.max(F,fe)),A===c.length-1&&(fe=h.getAbsoluteDistance(100,e.padding[1],!0),F=Math.min(F,fe))),ce||(F=h.getStep(F)),F=id(F),F===k[A]&&!oe?!1:F}function de(k,A){var F=e.ort;return(F?A:k)+", "+(F?k:A)}function Me(k,A,F,G,se){var oe=F.slice(),ce=G[0],fe=e.events.smoothSteps,ge=[!k,k],ve=[k,!k];G=G.slice(),k&&G.reverse(),G.length>1?G.forEach(function(Ye,Ne){var Xe=me(oe,Ye,oe[Ye]+A,ge[Ne],ve[Ne],!1,fe);Xe===!1?A=0:(A=Xe-oe[Ye],oe[Ye]=Xe)}):ge=ve=[!0];var Oe=!1;G.forEach(function(Ye,Ne){Oe=Ie(Ye,F[Ye]+A,ge[Ne],ve[Ne],!1,fe)||Oe}),Oe&&(G.forEach(function(Ye){te("update",Ye),te("slide",Ye)}),se!=null&&te("drag",ce))}function Fe(k,A){return e.dir?100-k-A:k}function De(k,A){m[k]=A,S[k]=h.fromStepping(A);var F=Fe(A,0)-M,G="translate("+de(F+"%","0")+")";if(c[k].style[e.transformRule]=G,e.events.invertConnects&&m.length>1){var se=m.every(function(oe,ce,fe){return ce===0||oe>=fe[ce-1]});if(T!==!se){bt();return}}ot(k),ot(k+1),T&&(ot(k-1),ot(k+2))}function Ae(){E.forEach(function(k){var A=m[k]>50?-1:1,F=3+(c.length+A*k);c[k].style.zIndex=String(F)})}function Ie(k,A,F,G,se,oe){return se||(A=me(m,k,A,F,G,!1,oe)),A===!1?!1:(De(k,A),!0)}function ot(k){if(d[k]){var A=m.slice();T&&A.sort(function(fe,ge){return fe-ge});var F=0,G=100;k!==0&&(F=A[k-1]),k!==d.length-1&&(G=A[k]);var se=G-F,oe="translate("+de(Fe(F,se)+"%","0")+")",ce="scale("+de(se/100,"1")+")";d[k].style[e.transformRule]=oe+" "+ce}}function he(k,A){return k===null||k===!1||k===void 0||(typeof k=="number"&&(k=String(k)),k=e.format.from(k),k!==!1&&(k=h.toStepping(k)),k===!1||isNaN(k))?m[A]:k}function ke(k,A,F){var G=yr(k),se=m[0]===void 0;A=A===void 0?!0:A,e.animate&&!se&&td(a,e.cssClasses.tap,e.animationDuration),E.forEach(function(fe){Ie(fe,he(G[fe],fe),!0,!1,F)});var oe=E.length===1?0:1;if(se&&h.hasNoSize()&&(F=!0,m[0]=0,E.length>1)){var ce=100/(E.length-1);E.forEach(function(fe){m[fe]=fe*ce})}for(;oe<E.length;++oe)E.forEach(function(fe){Ie(fe,m[fe],!0,!0,F)});Ae(),E.forEach(function(fe){te("update",fe),G[fe]!==null&&A&&te("set",fe)})}function Be(k){ke(e.start,k)}function Se(k,A,F,G){if(k=Number(k),!(k>=0&&k<E.length))throw new Error("noUiSlider: invalid handle number, got: "+k);Ie(k,he(A,k),!0,!0,G),te("update",k),F&&te("set",k)}function K(k){if(k===void 0&&(k=!1),k)return S.length===1?S[0]:S.slice(0);var A=S.map(e.format.to);return A.length===1?A[0]:A}function ne(){for(X(gi.aria),X(gi.tooltips),Object.keys(e.cssClasses).forEach(function(k){wr(a,e.cssClasses[k])});a.firstChild;)a.removeChild(a.firstChild);delete a.noUiSlider}function ze(k){var A=m[k],F=h.getNearbySteps(A),G=S[k],se=F.thisStep.step,oe=null;if(e.snap)return[G-F.stepBefore.startValue||null,F.stepAfter.startValue-G||null];se!==!1&&G+se>F.stepAfter.startValue&&(se=F.stepAfter.startValue-G),G>F.thisStep.startValue?oe=F.thisStep.step:F.stepBefore.step===!1?oe=!1:oe=G-F.stepBefore.highestStep,A===100?se=null:A===0&&(oe=null);var ce=h.countStepDecimals();return se!==null&&se!==!1&&(se=Number(se.toFixed(ce))),oe!==null&&oe!==!1&&(oe=Number(oe.toFixed(ce))),[oe,se]}function Ue(){return E.map(ze)}function Le(k,A){var F=K(),G=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];G.forEach(function(oe){k[oe]!==void 0&&(t[oe]=k[oe])});var se=ud(t);G.forEach(function(oe){k[oe]!==void 0&&(e[oe]=se[oe])}),h=se.spectrum,e.margin=se.margin,e.limit=se.limit,e.padding=se.padding,e.pips?U(e.pips):Z(),e.tooltips?q():I(),m=[],ke(Na(k.start)?k.start:F,A),k.connect&&Te()}function Te(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var k=0;k<=e.handles;k++)d[k]=w(u,e.connect[k]),ot(k);le({drag:e.events.drag,fixed:!0})}function bt(){T=!T,od(e,e.connect.map(function(k){return!k})),Te()}function nt(){l=D(a),_(e.connect,l),le(e.events),ke(e.start),e.pips&&U(e.pips),e.tooltips&&q(),L()}nt();var P={destroy:ne,steps:Ue,on:Ve,off:X,get:K,set:ke,setHandle:Se,reset:Be,disable:Y,enable:N,__moveHandles:function(k,A,F){Me(k,A,m,F)},options:t,updateOptions:Le,target:a,removePips:Z,removeTooltips:I,getPositions:function(){return m.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:U};return P}function yx(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=ud(e),i=vx(n,t,e);return n.noUiSlider=i,i}const wx={__spectrum:rd,cssClasses:ad,create:yx},Cx={class:"slider-container"},Ex={class:"slider-wrapper",style:{position:"relative"}},kx=["id"],Sx=["value"],xx=["value"],Mx=He(o.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(null),a=o.ref(null),l=o.ref(null);let u=null;const c=o.ref(i.minValue),d=o.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const m=Array(i.maxCount-i.minCount+1).fill(0).map((b,g)=>i.minCount+g),E={to:b=>{const g=Math.round(b);return m[g]||m[0]},from:b=>{const g=Number(b);return m.indexOf(g)}};try{u=wx.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:E,range:{min:0,max:m.length-1}}),u.on("change",b=>{const g=Number(b[0]),T=Number(b[1]);c.value!==g&&(c.value=g,r("updateMinValue",g)),d.value!==T&&(d.value=T,r("updateMaxValue",T)),r("change",[g,T])}),u.on("update",b=>{const g=Number(b[0]),T=Number(b[1]);c.value=g,d.value=T})}catch(b){console.error("Error creating slider:",b)}},p=()=>{o.nextTick(()=>{f()})},h=(m,E)=>{if(u)try{u.set([m,E])}catch(b){console.error("Error updating slider values:",b)}},S=m=>{u&&(m?u.disable():u.enable())};return o.watch(()=>[i.minValue,i.maxValue],([m,E])=>{(m!==c.value||E!==d.value)&&(c.value=m,d.value=E,h(m,E))},{immediate:!1}),o.watch(()=>i.disabled,m=>{S(m)}),o.watch(()=>[i.minCount,i.maxCount],()=>{p()}),o.onMounted(()=>{p()}),o.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(m,E)=>(o.openBlock(),o.createElementBlock("div",Cx,[o.createElementVNode("div",Ex,[o.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:m.sliderId},null,8,kx)]),o.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:a,value:m.minValue},null,8,Sx),o.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:m.maxValue},null,8,xx)]))}}),[["__scopeId","data-v-892dca90"]]),Rx=["title"],Tx=He(o.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(),i=o.ref(!1),r=o.computed(()=>({color:e.color})),s=o.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),a=o.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return o.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),o.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[o.createElementVNode("i",{class:o.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:o.normalizeStyle(r.value),onClick:l},null,14,Rx),i.value&&c.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["question-tooltip",a.value])},[o.createTextVNode(o.toDisplayString(c.title)+" ",1),d[0]||(d[0]=o.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),Dx={class:"container-fluid rounded overflow-hidden bg-light"},_x={class:"row w-100"},Ax={class:"text-secondary"},Ox={class:"d-flex py-3 px-2 onlyPrint"},Lx={class:"row w-100"},Px={class:"text-secondary"},Fx={class:"row"},Bx=He(o.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=o.ref(!1),r=o.ref([]);return o.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([s,a])=>a).map(([s,a])=>({name:t.filterTitles[s]||s,value:String(a),key:s})):[]),o.watch(()=>t.filterValues,s=>{if(!s){r.value=[];return}r.value=Object.entries(s).filter(([a,l])=>l).map(([a,l])=>({name:t.filterTitles[a]||a,value:String(l),key:a}))},{deep:!0,immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",Dx,[o.createElementVNode("div",{style:o.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[o.createElementVNode("div",_x,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",Ax,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))]),o.createElementVNode("div",null,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:a[0]||(a[0]=l=>s.$emit("showFilter"))},[...a[2]||(a[2]=[o.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),o.createElementVNode("div",Ox,[o.createElementVNode("div",Lx,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",Px,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))])]),o.createElementVNode("div",Fx,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:a[1]||(a[1]=l=>i.value=!i.value)},[o.createElementVNode("i",{class:o.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-9dc91069"]]),cd=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(a,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[a]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(a){return a?(localStorage.setItem(e,JSON.stringify(a)),!0):!1}function r(a){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(a)&&delete u[a],i(u),!0}function s(a){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[a]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},Vx=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:a=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=o.ref({}),c=o.ref(0),d=o.ref(""),f=o.ref(""),p=o.ref({}),h=o.ref(!1),S=o.ref(!1),m=o.ref(!1),E=o.ref(s()),b=o.ref(!1),{setItemStorage:g,removeItemStorage:T,getItemStorage:v}=cd();async function R(){E.value=s(),p.value={}}function y(U){if(!n)return!1;g(n,U)}const M=o.readonly({...a()});function C(U,ie){p.value[U]=ie}const x=o.computed(()=>Object.values(p.value).some(Boolean));function w(){c.value+=1}async function _(U){if(U.options){if(U.options.ajaxURL=r.value.ajaxURL,!r.value.columns){U.replaceData(r.value.ajaxURL);return}U.options.columns=r.value.columns,U.setColumns(r.value.columns),await D(U),U.replaceData(r.value.ajaxURL)}}async function D(U){const ie=typeof U.hideColumn=="function",j=typeof U.showColumn=="function";if(!ie||!j){w();return}for(const H of r.value.columns)H.visible===!1?U.hideColumn(H.field):U.showColumn(H.field)}function O(U){if(!n)return!1;g(n,W(U))}async function V(U){const ie=r.value?.paginationMode==="remote";if(!(ie&&(!U||!U.replaceData))&&!(b.value||S.value)){S.value=!0;try{if(await I(),b.value||(await o.nextTick(),b.value))return;if(!ie){w();return}await _(U),h.value=!1}finally{S.value=!1}}}function W(U){return U.map(j=>{let H=JSON.parse(JSON.stringify(j));return j.visible===!1&&(delete H.width,delete H.minWidth),H})}function Y(U){if(!n)return!1;g(n,W(U))}function N(){const U={};for(const[ie,j]of Object.entries({...E.value}))!j||j?.length<1||Array.isArray(j)&&(j[0]===null||j[0]===void 0||j[0]==="")||(U[ie]=j);return U}async function I(){if(b.value)return;const U=e(),ie=await t();if(b.value)return;const j=$();r.value={...r.value,ajaxURL:U,ajaxResponse:ie,columns:j,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const q=o.computed(()=>{let U=[];return r.value.columns.map(ie=>{ie.title&&U.push(ie.visible)}),U.includes(!1)});async function L(U,ie){U.target.checked==!1?(d.value=ie,f.value=""):(f.value=ie,d.value="")}async function B(){T(n),r.value.columns=$()}function $(){const U=v(n);return U||i({selectedQuickFilter:l?.value})}async function z(){T(n),r.value.columns.map(U=>U.visible=!1),Y(r.value.columns)}function J(U){r.value.columns=U,n&&g(n,U)}function Z(){r.value.columns=r.value.columns}return o.onBeforeUnmount(()=>{b.value=!0}),o.provide("setFilterParamsStrings",C),o.provide("selectedFilterTitles",M),o.provide("tableFilters",E),o.provide("filterModalVisibility",h),o.provide("resetFilters",R),o.provide("applyFilters",V),o.provide("editTableColumnsModalVisibility",m),o.provide("tableOptions",r),o.provide("editTableColumnVisibility",L),o.provide("isTableCoumnsHidden",q),o.provide("unselectAllTableColumnCheckboxes",z),o.provide("selectAllTableColumnCheckboxes",B),o.provide("handleColumnsChanged",J),o.provide("handleColumnsApply",Z),o.provide("table",u),{selectAllTableColumnCheckboxes:B,unselectAllTableColumnCheckboxes:z,isTableCoumnsHidden:q,editTableColumnVisibility:L,fetchData:I,onHideColumn:Y,getFilterData:N,applyFilters:V,reRenderTable:w,resetFilters:R,onTableRowMoved:y,onShowColumn:O,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:M,setFilterParamsStrings:C,filterParamsStrings:p,isSelectedFiltersVisible:x,filterModalVisibility:h,editTableColumnsModalVisibility:m,tableFilters:E,tableOptions:r,handleColumnsChanged:J,handleColumnsApply:Z}};function dd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function hd(n){return n.filter(e=>e.visible===!0)}function fd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Cr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function za(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Rn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function pd(n){return n.some(e=>e.title&&!e.visible)}function md(n,e){return n.find(t=>t.field===e)}function Er(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const Nx=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:md,getVisibleColumns:hd,hasHiddenColumns:pd,hideAllColumns:za,prepareColumnsToSave:dd,resetColumnsToDefault:Cr,toggleColumnVisibility:fd,updateColumn:Er,validateColumns:Rn},Symbol.toStringTag,{value:"Module"}));function gd(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:a,validateOnChange:l=!0}=n;Rn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=o.ref(!1),c=o.ref([...e]),d=o.ref(!1);if(t&&typeof window<"u")try{const N=localStorage.getItem(t);if(N){const I=JSON.parse(N);Rn(I)&&(c.value=I)}}catch(N){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",N)}const f=o.computed(()=>hd(c.value)),p=o.computed(()=>pd(c.value)),h=o.computed(()=>c.value.length),S=o.computed(()=>f.value.length);function m(N){if(!(!t||typeof window>"u"||!r))try{const I=dd(N);localStorage.setItem(t,JSON.stringify(I))}catch(I){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",I)}}function E(){if(!t||typeof window>"u")return null;try{const N=localStorage.getItem(t);if(N){const I=JSON.parse(N);if(Rn(I))return I}}catch(N){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",N)}return null}function b(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(N){console.warn("useTableColumnsEnhanced: failed to clear localStorage",N)}}function g(N){if(l&&!Rn(N)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...N],m(N),s?.(N)}function T(N,I){const q=N.target,L=Er(c.value,I,{visible:q.checked});g(L)}function v(N){u.value=N}function R(N){const I=N||c.value;g(I),u.value=!1,a?.(I)}function y(){const N=Cr(c.value);g(N)}function M(){const N=za(c.value);g(N)}function C(N){const I=fd(c.value,N);g(I)}function x(N){const I=Er(c.value,N,{visible:!0});g(I)}function w(N){const I=Er(c.value,N,{visible:!1});g(I)}function _(){const N=Cr(e);g(N)}function D(){const N=Cr(c.value);g(N)}function O(){const N=za(c.value);g(N)}function V(N){return md(c.value,N)}function W(N){return V(N)?.visible??!1}function Y(){i?.value&&(i.value.columns=c.value)}return o.watch(c,()=>{Y()},{deep:!0}),o.watch(()=>e,N=>{d.value||(c.value=[...N],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,Y()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:S,isInitialized:d,handleColumnsModalVisibility:v,handleColumnVisibilityChange:T,handleColumnsApply:R,handleColumnsSelectAll:y,handleColumnsUnselectAll:M,updateColumns:g,toggleColumn:C,showColumn:x,hideColumn:w,resetToDefault:_,showAll:D,hideAll:O,getColumn:V,isColumnVisible:W,saveToLocalStorage:m,loadFromLocalStorage:E,clearLocalStorage:b,syncWithTableOptions:Y}}function Hx(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:a}=n,l=gd({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{a?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=S=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",S),l.updateColumns(S),h?.(S)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=S=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",S),l.updateColumns(S),h?.(S)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return o.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function Ix(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function a(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:a}}const zx=(n={})=>{const{navigate:e=m=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=m=>m,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,a=o.ref([]);function l(m){e(m)}function u(m,E){if(!Array.isArray(m))return[];const b=JSON.parse(JSON.stringify(m));return b.length>E&&b.splice(0,b.length-E),b}function c(){const m=i(),E={path:m.path,name:m.name},b=a.value||[],g=b[b.length-1];if(JSON.stringify(g)===JSON.stringify(E))return!1;b.push(E),a.value=u(b,r),localStorage.setItem(s,JSON.stringify(a.value))}function d(){const m=JSON.parse(localStorage.getItem(s)||"[]");m?.length||c(),a.value=m}const f=o.computed(()=>a.value.map((m,E)=>({text:t(`routes.${m.name}`),href:m.path,isActive:E===a.value.length-1})));function p(){c()}function h(){a.value=[],localStorage.removeItem(s)}function S(m){const E=a.value||[];E.push(m),a.value=u(E,r),localStorage.setItem(s,JSON.stringify(a.value))}return o.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:a,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:S}};Ee.AddButton=ja,Ee.AddressForm=Yy,Ee.AgeFromAgeTo=rw,Ee.BooleanCheckbox=Dc,Ee.Breadcrumbs=l0,Ee.Card=iC,Ee.CardInfo=b0,Ee.Checkbox=Jg,Ee.ClearFormButton=Dd,Ee.CollapseButton=Sd,Ee.CollapsedSidebarLink=Hc,Ee.ColumnSubFilter=f1,Ee.ConfirmationModal=Ow,Ee.CustomInput=er,Ee.DefaultAccordion=K0,Ee.DefaultButton=xr,Ee.DefaultDropDown=Sa,Ee.DefaultModal=Fc,Ee.Divider=xa,Ee.EditTableColumns=Ba,Ee.EditTableColumnsModalComponent=Bc,Ee.ErrorMessageComponent=W0,Ee.ExportButton=xd,Ee.ExportComponent=bh,Ee.FilterValuesPanel=Bx,Ee.Flatpickr=Sy,Ee.Footer=rC,Ee.FormError=ki,Ee.Header=wC,Ee.HeaderSearchForm=Ty,Ee.Icon=Sr,Ee.KindCheckboxesAccordion=oE,Ee.Logo=Vc,Ee.MainComponent=e0,Ee.MultiCheckbox=ay,Ee.MultiInput=dy,Ee.MultipleQuickFilterComponent=F1,Ee.PageCard=F0,Ee.PageTitle=Zw,Ee.PasswordInput=Gg,Ee.PrintButton=Md,Ee.QuestionIcon=Tx,Ee.Sidebar=Ic,Ee.SidebarLink=Nc,Ee.Slider=Mx,Ee.Spinner=kr,Ee.SubFilterToggleBtn=Xc,Ee.Table=l1,Ee.TableAppliedFiltersStorage=p1,Ee.TableColumnsButton=R1,Ee.TableColumnsModal=T1,Ee.TableCount=h1,Ee.TableFilterModalComponent=Iw,Ee.TableQuickFilterComponent=v1,Ee.Toast=zc,Ee.ToggleAllTableRowButtons=A1,Ee.ToggleButtons=Od,Ee.VSelect=oi,Ee.createColumnHandlers=Ix,Ee.helpers=Ig,Ee.tableColumnsUtils=Nx,Ee.useBreadcrumbs=zx,Ee.useTableColumns=Va,Ee.useTableColumnsEnhanced=gd,Ee.useTableColumnsIntegration=Hx,Ee.useTableDefault=Vx,Ee.useTableStorage=cd,Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"})}));
54
+ `),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var a=this.rowManager.findRow(s[this.options.index]);a?(t++,a.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(a=>{var l=[];a.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(a=>{var l=this.rowManager.findRow(a[this.options.index]);i++,l?l.updateData(a).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(a).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(r=>r[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(r=>r[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var a=this.columnManager.findColumn(e);return a?this.columnManager.scrollToColumn(a,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var xn=pi;class $S extends xn{static extendModule(){xn.initializeModuleBinder(Pa),xn._extendModule(...arguments)}static registerModule(){xn.initializeModuleBinder(Pa),xn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Pa)}}var qS=$S;const KS={key:0,class:"bi bi-chevron-up"},JS={key:1,class:"bi bi-chevron-down"},Xc=Ve({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(o.openBlock(),o.createElementBlock("i",KS)):(o.openBlock(),o.createElementBlock("i",JS))]))}},[["__scopeId","data-v-4810f2ed"]]),Qc={gender:{MALE:1,FEMALE:2,MIXED_GENDER:3,NOT_GENDER:4},address_fields:["postal_code","region_code","district_code","locality_code","sub_locality_code","street_code","house","flat"],userRoles:{ADMIN:1,VETERINARIAN:2,SHTP:3,LOCAL_EPIZOOTOLOGIST:4,ORGANIZATION_ADMIN:5,REGIONAL_REPRESENTATIVE:6,AGENCY:7,CENTRAL_WAREHOUSE:8,DISTRICT_REPRESENTATIVE:9,COUNTERPARTY:10,VETERINARIAN_REGISTRATOR:11,LABORATORY:12,INTEGRATOR:13},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},defaultTableOptions:{headerSortClickElement:"icon",printAsHtml:!0,printConfig:{},reactiveData:!0,movableColumns:!0,layout:"fitDataFill",layoutColumnsOnNewData:!0,resizableColumnFit:!0,pagination:!0,paginationMode:"remote",paginationCounter:"rows",paginationSize:10,columns:[]},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],bird_ids:[19,20,21,22,23,24,25],fish_ids:[38,39,40,41,42],animal_kinds:{COW:1,PIG:2,HORSE:3,BEE:4,DOG:5,CAT:6,DEER:7,MARAL:8,CAMEL:9,DONKEY:10,BISON:11,GOST:12,SHEEP:13,MULE:14,LOSHAK:15,ZEBU:16,BUFFALO:17,GRUNTING_OX:18,CHICKEN:19,DUCK:20,GOOSE:21,TURKEY:22,GUINEA_FOWL:23,QUAIL:24,OSTRICH:25,FOX:26,SABLE:27,MINK:28,FERRET:29,RABBIT:30,ARCTIC_FOX:31,RACCOON_DOG:32,NUTRIA:33,ALPACAS:34,PHEASANT:35,PEACOCK:36,RACCOON:37,STURGEON:38,SALMON:39,CARP:40,CATFISH:41,BASS:42},mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Qc);const XS=()=>({"en-en":{pagination:{first:"First11",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},data:{loading:"Loading...",error:"Error loading data."}},"ru-ru":{pagination:{first:"Первая",first_title:"Первая страница",last:"Последняя",last_title:"Последняя страница",prev:"Пред",prev_title:"Предыдущая страница",next:"След",next_title:"Следующая страница",all:"Все",counter:{showing:"Показано",of:"из",rows:"записей",pages:"страниц"}},data:{loading:"Загрузка...",error:"Ошибка загрузки данных."}}}),QS={class:"position-relative",style:{"min-height":"300px"}},ZS={key:0,class:"tabulator hide-to-print sticky-bottom bg-white"},e1={class:"row"},t1={key:0,class:"col-auto"},i1={class:"col"},n1={class:"tabulator-footer",ref:"footer"},r1=["id"],s1=["disabled"],a1={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},o1="",l1=o.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"ru-ru"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=o.inject("selectedTabIndex",o.ref()),s=o.inject("selectAll",o.ref(0)),a=o.ref(""),l=o.ref(null),u=o.ref({data:[],rows:[]}),c=o.ref(new Set(t.selectedRowsStorage)),d=o.ref(!1),f=o.ref(Ei()),p=o.ref(null),h=o.ref(null),S=o.ref(!1),m=o.ref(!1),E=o.computed(()=>t.options?.paginationMode==="remote"),b=o.computed(()=>Qc.customPerPageOptions),g=o.useSlots(),T=H=>!!g[H],v=()=>{a.value=""},R=H=>!H||!H.length?[]:H.map(se=>se),y=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");!H||t.isVisibleColumnSubFilter===null||cn(H,Xc,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":se=>i("updateIsVisibleColumnSubFilter",se)})},M=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");H&&(H.classList.add("position-relative"),y())},C=()=>{if(!h.value)return;const H=p.value?.parentNode?.querySelector(".tabulator-footer"),se=h.value.last_page;if(!se||isNaN(+se)){H&&H.classList.add("d-none");return}se>1?H&&H.classList.remove("d-none"):H&&H.classList.add("d-none")},x=()=>{m.value||(S.value=!0)},w=()=>{m.value||(S.value=!1)},_=H=>{m.value||(S.value=!1)},D=()=>{m.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},O=H=>{m.value||(setTimeout(()=>{m.value||i("savePaginationPage",H)}),E.value&&C(),s.value>0&&i("pageLoaded"),S.value=!1,M())},V=H=>{if(m.value)return;const se=H.getData(),te=h.value?.options?.index||"id",ee=se[te]??null;ee!==null&&(c.value.add(ee),u.value.data.push(se),u.value.rows.push(H),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:se,row:H}))},W=H=>{if(m.value)return;const se=H.getData(),te=h.value?.options?.index||"id",ee=se[te]??null;if(ee===null)return;c.value.delete(ee);const pe=u.value.data.findIndex(le=>le[te]===ee);pe!==-1&&(u.value.data.splice(pe,1),u.value.rows.splice(pe,1)),i("updateUnselectedRows",{data:se,row:H}),i("unselectedRow",{data:se,row:H})},U=function(){m.value||(h.value&&h.value.selectRow(Array.from(c.value)),S.value=!0)},N=(H,se)=>{if(m.value)return;if(se?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",H,se);return}const te=[],ee=H.target;for(let pe=0;pe<ee.childNodes.length;pe++){const le=ee.childNodes[pe];le.nodeName==="INPUT"&&le.type==="checkbox"&&te.push("checkbox")}te.includes("checkbox")||i("onTableRowClick",H,se._cell.row,t.parentComponent)},I=H=>{m.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},K=()=>{m.value||setTimeout(()=>{m.value||(S.value=!0)})},L=()=>{m.value||setTimeout(()=>{m.value||(S.value=!1,j())})},B=()=>{d.value=!1},q=()=>{if(!p.value||E.value&&!t.options.ajaxResponse||h.value)return;S.value=!0;const H={...t.options,...E.value?{}:{data:t.tableData},langs:XS(),locale:t.locale,columns:R(t.options.columns),dataLoaderLoading:`<img alt="" src="${o1}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};E.value&&(H.footerElement=`#tabulator-footer${f.value}`),h.value=new qS(p.value,H),h.value.on("dataLoading",x),h.value.on("dataLoaded",w),h.value.on("dataLoadError",_),h.value.on("tableBuilt",D),h.value.on("pageLoaded",O),h.value.on("rowSelected",V),h.value.on("rowDeselected",W),h.value.on("dataProcessed",U),h.value.on("cellClick",N),h.value.on("columnMoved",I),h.value.on("renderStarted",K),h.value.on("renderComplete",L),h.value.on("tableDestroyed",B)},z=H=>{if(m.value||!d.value||!H||!h.value)return;const se=h.value.options.ajaxParams;se&&(se.per_page=Number(H)),h.value.options.paginationSize=Number(H),h.value.setPageSize(H)},Q=()=>{if(m.value||!h.value)return;const H=640,se=h.value.options;if(E.value)se.ajaxParams?.per_page<H&&(se.ajaxParams.per_page+=40),h.value.setData();else{const te=h.value.getPageSize();typeof te=="number"&&te<H&&h.value.setPageSize(te+40)}se.paginationSize>=H&&(a.value=t.paginationLimitText)},ie=H=>{m.value||H===""||!h.value||(h.value.showColumn(H),i("onShowColumn",h.value.getColumnLayout()))},G=H=>{m.value||H===""||!h.value||(h.value.hideColumn(H),i("onHideColumn",h.value.getColumnLayout()))},ne=H=>{m.value||!h.value||(H.filter(({visible:se})=>!se).length===H.length?H.map(({field:se})=>{o.nextTick(()=>{!m.value&&h.value&&h.value.showColumn(se)})}):H.map(({field:se,visible:te})=>{!m.value&&h.value&&(te?h.value.showColumn(se):h.value.hideColumn(se))}))},j=()=>{o.nextTick(()=>{if(m.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return o.onMounted(()=>{q()}),o.onBeforeUnmount(()=>{m.value=!0,h.value&&(h.value.destroy(),h.value=null)}),o.watch(()=>t.columnShow,H=>{H&&ie(H)}),o.watch(()=>t.columnHide,H=>{H&&G(H)}),o.watch(()=>t.filters,H=>{m.value||!h.value||h.value.setFilter(H)},{deep:!0}),o.watch(()=>t.tableData,H=>{m.value||!h.value||E.value||h.value.setData(H)},{deep:!1}),o.watch(()=>t.options.ajaxResponse,H=>{m.value||(h.value&&H?h.value.options.ajaxResponse=H:E.value&&H&&!h.value&&o.nextTick(()=>{m.value||!p.value||q()}))}),o.watch(()=>t.options,H=>{m.value||E.value&&H.ajaxResponse&&!h.value&&o.nextTick(()=>{m.value||!p.value||q()})},{deep:!0}),o.watch(r,()=>{m.value||!h.value||h.value.deselectRow()}),o.watch(s,H=>{m.value||H<=0||!h.value||h.value.selectRow()}),o.watch(()=>t.options.columns,H=>{m.value||!d.value||!h.value||!H||(!H.find(({visible:se})=>se)&&t.showAllColumnsIfAllHidden?ne(H):h.value.setColumns(H))},{deep:!0}),o.watch(()=>t.selectedRowsStorage,H=>{m.value||!H||(c.value=new Set(H))},{deep:!0}),o.watch(d,H=>{m.value||!H||(t.showAllColumnsIfAllHidden&&ne(t.options.columns||[]),t.tableData.length>0&&!E.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(H,se)=>(o.openBlock(),o.createElementBlock("div",QS,[o.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),E.value?(o.openBlock(),o.createElementBlock("div",ZS,[o.createElementVNode("div",e1,[T("table-footer-left")?(o.openBlock(),o.createElementBlock("div",t1,[o.renderSlot(H.$slots,"table-footer-left")])):o.createCommentVNode("",!0),o.createElementVNode("div",i1,[o.createElementVNode("div",n1,[o.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[o.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:Q,disabled:S.value},[o.createTextVNode(o.toDisplayString(n.loadMoreText)+" ",1),se[2]||(se[2]=o.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),S.value?(o.openBlock(),o.createElementBlock("div",a1)):o.createCommentVNode("",!0)],8,s1),o.createVNode(oi,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[se[0]||(se[0]=te=>l.value=te),se[1]||(se[1]=te=>z(te))],allowClear:!1,options:b.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,r1)],512)])])])):o.createCommentVNode("",!0),o.createVNode(zc,{message:a.value,onClearMessage:v},null,8,["message"])]))}}),u1={class:"r3-table-count__wrapper px-3"},c1={class:"r3-table-count__label pe-2"},d1={class:"r3-table-count__value"},h1=Ve(o.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.label||e.defaultLabel),i=o.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[o.createElementVNode("div",u1,[o.createElementVNode("span",c1,o.toDisplayString(t.value)+":",1),o.createElementVNode("span",d1,o.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),f1=Ve(o.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return cn(r,e.mountedComponent,e.dataProps),!1;cn(r,null,{},!0)}return o.watch(()=>e,()=>{t()},{deep:!0}),o.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),p1=Ve(o.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.computed(()=>"default-page"),a=o.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...hi(h),[s.value]:{[i.tableName]:d(a.value)}};const S=JSON.stringify(h);return localStorage.setItem("filters",S),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[S,m]of Object.entries(p))h[S]=hi(m._value||m);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const S=d(h[s.value][i.tableName]);return r("update:filters",{...S}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>o.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),m1={class:"row pt-3"},g1={class:"col-12"},b1=["onClick"],v1=Ve(o.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",m1,[o.createElementVNode("div",g1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.filterList,(a,l)=>(o.openBlock(),o.createElementBlock("button",{onClick:u=>i(a.name),class:o.normalizeClass(["btn filter-item",{active:r.defaultSelected===a.name,disabled:a.disabled}]),key:l},o.toDisplayString(a.title),11,b1))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),y1={key:0,class:"col-4 mb-2"},w1={class:"form-check"},C1=["checked","id","onChange"],E1=["for"],k1=["innerHTML"],S1={class:"col-auto"},x1={class:"col-auto ps-0"},M1={class:"col-auto ps-0"},Ba=Ve(o.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=o.ref([...t.columns]),s=o.ref([...t.columns]);o.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const a=o.ref(!0);function l(){const S=r.value.filter(m=>m.title).some(m=>!m.visible);a.value=S,o.triggerRef(a)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,S)=>{const m=h.target,E=r.value.findIndex(b=>b.field===S);E!==-1&&(r.value[E].visible=m.checked,l()),i("columnVisibilityChange",h,S)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(S=>({...S,visible:S.title?!0:S.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(S=>({...S,visible:S.title?!1:S.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,S)=>(o.openBlock(),o.createBlock(Bc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(m,E)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:E},[m.title?(o.openBlock(),o.createElementBlock("div",y1,[o.createElementVNode("div",w1,[o.createElementVNode("input",{checked:m.visible,class:"form-check-input",type:"checkbox",id:m.field,ref_for:!0,ref:"editColumns",onChange:b=>c(b,m.field)},null,40,C1),o.createElementVNode("label",{class:"form-check-label",for:m.field},[o.createElementVNode("span",{class:"lh-sm",innerHTML:m.title},null,8,k1)],8,E1)])])):o.createCommentVNode("",!0)],64))),128))]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",S1,[o.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},o.toDisplayString(h.applyText),1)]),o.createElementVNode("div",x1,[o.createElementVNode("div",M1,[a.value?(o.openBlock(),o.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},o.toDisplayString(h.selectAllText),1)):o.createCommentVNode("",!0),a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},o.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Va(n,e){const t=o.ref(!1),i=o.ref([...n]);o.watch(()=>n,S=>{i.value=[...S]},{deep:!0});function r(S){t.value=S}function s(S,m){const E=S.target,b=i.value.map(g=>g.field===m?{...g,visible:E.checked}:g);i.value=b,e&&e.value&&(e.value.columns=b)}function a(S){console.log("useTableColumns handleColumnsApply called, received columns:",S),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(S),u()}function l(S){S&&(i.value=[...S],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const S=i.value.map(m=>({...m,visible:m.title?!0:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}function d(){const S=i.value.map(m=>({...m,visible:m.title?!1:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}const f=o.computed(()=>i.value.filter(S=>S.visible));function p(S){i.value=[...S],e&&e.value&&(e.value.columns=S)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:a,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const R1=o.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Va(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,s.value=[...h],i("columns-changed",h),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(xr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Ba,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),T1=o.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Va(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,s.value=[...h],i("columns-changed",h),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(xr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Ba,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),D1={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},_1={key:2,class:"selected-count"},A1=Ve(o.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",D1,[s.selectedRows.length>0?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},o.toDisplayString(s.unselectAllText),1)):o.createCommentVNode("",!0),s.selectedRows.length===0?(o.openBlock(),o.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},o.toDisplayString(s.selectAllText),1)):o.createCommentVNode("",!0),s.showCount?(o.openBlock(),o.createElementBlock("div",_1,o.toDisplayString(s.selectedText)+": "+o.toDisplayString(s.selectedRows.length),1)):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),O1={class:"row pt-3"},L1={class:"col-12"},P1=["onClick"],F1=Ve(o.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return o.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((a,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(a.value=s[u])})},{immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",O1,[o.createElementVNode("div",L1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filterList,(l,u)=>(o.openBlock(),o.createElementBlock("button",{onClick:c=>r(u),class:o.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},o.toDisplayString(l.title),11,P1))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var mi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(mi||(mi={}));var yt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(yt||(yt={}));function B1(n){return vr(n)&&typeof n.from=="function"}function vr(n){return typeof n=="object"&&typeof n.to=="function"}function Zc(n){n.parentElement.removeChild(n)}function Na(n){return n!=null}function ed(n){n.preventDefault()}function V1(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function N1(n,e){return Math.round(n/e)*e}function H1(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=nd(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function It(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function td(n,e,t){t>0&&(gt(n,e),setTimeout(function(){wr(n,e)},t))}function id(n){return Math.max(Math.min(n,100),0)}function yr(n){return Array.isArray(n)?n:[n]}function I1(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function gt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function wr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function z1(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function nd(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function j1(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function W1(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function Y1(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Ha(n,e){return 100/(e-n)}function Ia(n,e,t){return e*100/(n[t+1]-n[t])}function U1(n,e){return Ia(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function G1(n,e){return e*(n[1]-n[0])/100+n[0]}function Mn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function $1(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Mn(t,n),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return a+U1([r,s],t)/Ha(a,l)}function q1(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Mn(t,e),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return G1([r,s],(t-a)*Ha(a,l))}function K1(n,e,t,i){if(i===100)return i;var r=Mn(i,n),s=n[r-1],a=n[r];return t?i-s>(a-s)/2?a:s:e[r-1]?n[r-1]+N1(i-n[r-1],e[r-1]):i}var rd=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(a){s.push([yr(e[a]),a])}),s.sort(function(a,l){return a[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=Ia(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,a=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*a+100-s*100>100?(c=u*s,a=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*a,a=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*a;return e+d},n.prototype.toStepping=function(e){return e=$1(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return q1(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=K1(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Mn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=Mn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(I1);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!It(i)||!It(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=Ia([this.xVal[e],this.xVal[e+1]],t,0)/Ha(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),sd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},ad={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},gi={tooltips:".__tooltips",aria:".__aria"};function J1(n,e){if(!It(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function X1(n,e){if(!It(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function Q1(n,e){if(!It(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function Z1(n,e){if(!It(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function ex(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new rd(e,n.snap||!1,n.singleStep)}function tx(n,e){if(e=yr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function ix(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function nx(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function rx(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function od(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function sx(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ld(n,e){if(!It(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function ax(n,e){if(!It(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ox(n,e){var t;if(!It(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||It(e[0])||It(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function lx(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ux(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ld(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:a,unconstrained:l,invertConnects:u}}function cx(n,e){if(e!==!1)if(e===!0||vr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=yr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!vr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function dx(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function hx(n,e){if(!vr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function fx(n,e){if(!B1(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function px(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function mx(n,e){n.documentElement=e}function gx(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function bx(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function ud(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:sd,format:sd},t={step:{r:!1,t:J1},keyboardPageMultiplier:{r:!1,t:X1},keyboardMultiplier:{r:!1,t:Q1},keyboardDefaultStep:{r:!1,t:Z1},start:{r:!0,t:tx},connect:{r:!0,t:od},direction:{r:!0,t:lx},snap:{r:!1,t:ix},animate:{r:!1,t:nx},animationDuration:{r:!1,t:rx},range:{r:!0,t:ex},orientation:{r:!1,t:sx},margin:{r:!1,t:ld},limit:{r:!1,t:ax},padding:{r:!1,t:ox},behaviour:{r:!0,t:ux},ariaFormat:{r:!1,t:hx},format:{r:!1,t:fx},tooltips:{r:!1,t:cx},keyboardSupport:{r:!0,t:px},documentElement:{r:!1,t:mx},cssPrefix:{r:!0,t:gx},cssClasses:{r:!0,t:bx},handleAttributes:{r:!1,t:dx}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ad,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!Na(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,Na(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,a=r.style.transform!==void 0;e.transformRule=a?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function vx(n,e,t){var i=j1(),r=Y1(),s=r&&W1(),a=n,l,u,c,d,f,p,h=e.spectrum,S=[],m=[],E=[],b=0,g={},T=!1,v=n.ownerDocument,R=e.documentElement||v.documentElement,y=v.body,M=v.dir==="rtl"||e.ort===1?0:100;function C(k,A){var F=v.createElement("div");return A&&gt(F,A),k.appendChild(F),F}function x(k,A){var F=C(k,e.cssClasses.origin),$=C(F,e.cssClasses.handle);if(C($,e.cssClasses.touchArea),$.setAttribute("data-handle",String(A)),e.keyboardSupport&&($.setAttribute("tabindex","0"),$.addEventListener("keydown",function(oe){return Ne(oe,A)})),e.handleAttributes!==void 0){var ae=e.handleAttributes[A];Object.keys(ae).forEach(function(oe){$.setAttribute(oe,ae[oe])})}return $.setAttribute("role","slider"),$.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),A===0?gt($,e.cssClasses.handleLower):A===e.handles-1&&gt($,e.cssClasses.handleUpper),F.handle=$,F}function w(k,A){return A?C(k,e.cssClasses.connect):!1}function _(k,A){u=C(A,e.cssClasses.connects),c=[],d=[],d.push(w(u,k[0]));for(var F=0;F<e.handles;F++)c.push(x(A,F)),E[F]=F,d.push(w(u,k[F+1]))}function D(k){gt(k,e.cssClasses.target),e.dir===0?gt(k,e.cssClasses.ltr):gt(k,e.cssClasses.rtl),e.ort===0?gt(k,e.cssClasses.horizontal):gt(k,e.cssClasses.vertical);var A=getComputedStyle(k).direction;return A==="rtl"?gt(k,e.cssClasses.textDirectionRtl):gt(k,e.cssClasses.textDirectionLtr),C(k,e.cssClasses.base)}function O(k,A){return!e.tooltips||!e.tooltips[A]?!1:C(k.firstChild,e.cssClasses.tooltip)}function V(){return a.hasAttribute("disabled")}function W(k){var A=c[k];return A.hasAttribute("disabled")}function U(k){k!=null?(c[k].setAttribute("disabled",""),c[k].handle.removeAttribute("tabindex")):(a.setAttribute("disabled",""),c.forEach(function(A){A.handle.removeAttribute("tabindex")}))}function N(k){k!=null?(c[k].removeAttribute("disabled"),c[k].handle.setAttribute("tabindex","0")):(a.removeAttribute("disabled"),c.forEach(function(A){A.removeAttribute("disabled"),A.handle.setAttribute("tabindex","0")}))}function I(){p&&(J("update"+gi.tooltips),p.forEach(function(k){k&&Zc(k)}),p=null)}function K(){I(),p=c.map(O),Le("update"+gi.tooltips,function(k,A,F){if(!(!p||!e.tooltips)&&p[A]!==!1){var $=k[A];e.tooltips[A]!==!0&&($=e.tooltips[A].to(F[A])),p[A].innerHTML=$}})}function L(){J("update"+gi.aria),Le("update"+gi.aria,function(k,A,F,$,ae){E.forEach(function(oe){var ce=c[oe],fe=de(m,oe,0,!0,!0,!0),me=de(m,oe,100,!0,!0,!0),be=ae[oe],Ae=String(e.ariaFormat.to(F[oe]));fe=h.fromStepping(fe).toFixed(1),me=h.fromStepping(me).toFixed(1),be=h.fromStepping(be).toFixed(1),ce.children[0].setAttribute("aria-valuemin",fe),ce.children[0].setAttribute("aria-valuemax",me),ce.children[0].setAttribute("aria-valuenow",be),ce.children[0].setAttribute("aria-valuetext",Ae)})})}function B(k){if(k.mode===mi.Range||k.mode===mi.Steps)return h.xVal;if(k.mode===mi.Count){if(k.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var A=k.values-1,F=100/A,$=[];A--;)$[A]=A*F;return $.push(100),q($,k.stepped)}return k.mode===mi.Positions?q(k.values,k.stepped):k.mode===mi.Values?k.stepped?k.values.map(function(ae){return h.fromStepping(h.getStep(h.toStepping(ae)))}):k.values:[]}function q(k,A){return k.map(function(F){return h.fromStepping(A?h.getStep(F):F)})}function z(k){function A(be,Ae){return Number((be+Ae).toFixed(7))}var F=B(k),$={},ae=h.xVal[0],oe=h.xVal[h.xVal.length-1],ce=!1,fe=!1,me=0;return F=V1(F.slice().sort(function(be,Ae){return be-Ae})),F[0]!==ae&&(F.unshift(ae),ce=!0),F[F.length-1]!==oe&&(F.push(oe),fe=!0),F.forEach(function(be,Ae){var Ye,Be,Xe,et=be,lt=F[Ae+1],rt,bi,Ti,li,zt,Jt,Xi,Di=k.mode===mi.Steps;for(Di&&(Ye=h.xNumSteps[Ae]),Ye||(Ye=lt-et),lt===void 0&&(lt=et),Ye=Math.max(Ye,1e-7),Be=et;Be<=lt;Be=A(Be,Ye)){for(rt=h.toStepping(Be),bi=rt-me,zt=bi/(k.density||1),Jt=Math.round(zt),Xi=bi/Jt,Xe=1;Xe<=Jt;Xe+=1)Ti=me+Xe*Xi,$[Ti.toFixed(5)]=[h.fromStepping(Ti),0];li=F.indexOf(Be)>-1?yt.LargeValue:Di?yt.SmallValue:yt.NoValue,!Ae&&ce&&Be!==lt&&(li=0),Be===lt&&fe||($[rt.toFixed(5)]=[Be,li]),me=rt}}),$}function Q(k,A,F){var $,ae,oe=v.createElement("div"),ce=($={},$[yt.None]="",$[yt.NoValue]=e.cssClasses.valueNormal,$[yt.LargeValue]=e.cssClasses.valueLarge,$[yt.SmallValue]=e.cssClasses.valueSub,$),fe=(ae={},ae[yt.None]="",ae[yt.NoValue]=e.cssClasses.markerNormal,ae[yt.LargeValue]=e.cssClasses.markerLarge,ae[yt.SmallValue]=e.cssClasses.markerSub,ae),me=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],be=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];gt(oe,e.cssClasses.pips),gt(oe,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function Ae(Be,Xe){var et=Xe===e.cssClasses.value,lt=et?me:be,rt=et?ce:fe;return Xe+" "+lt[e.ort]+" "+rt[Be]}function Ye(Be,Xe,et){if(et=A?A(Xe,et):et,et!==yt.None){var lt=C(oe,!1);lt.className=Ae(et,e.cssClasses.marker),lt.style[e.style]=Be+"%",et>yt.NoValue&&(lt=C(oe,!1),lt.className=Ae(et,e.cssClasses.value),lt.setAttribute("data-value",String(Xe)),lt.style[e.style]=Be+"%",lt.innerHTML=String(F.to(Xe)))}}return Object.keys(k).forEach(function(Be){Ye(Be,k[Be][0],k[Be][1])}),oe}function ie(){f&&(Zc(f),f=null)}function G(k){ie();var A=z(k),F=k.filter,$=k.format||{to:function(ae){return String(Math.round(ae))}};return f=a.appendChild(Q(A,F,$)),f}function ne(){var k=l.getBoundingClientRect(),A="offset"+["Width","Height"][e.ort];return e.ort===0?k.width||l[A]:k.height||l[A]}function j(k,A,F,$){var ae=function(ce){var fe=H(ce,$.pageOffset,$.target||A);if(!fe||V()&&!$.doNotReject||z1(a,e.cssClasses.tap)&&!$.doNotReject||k===i.start&&fe.buttons!==void 0&&fe.buttons>1||$.hover&&fe.buttons)return!1;s||fe.preventDefault(),fe.calcPoint=fe.points[e.ort],F(fe,$)},oe=[];return k.split(" ").forEach(function(ce){A.addEventListener(ce,ae,s?{passive:!0}:!1),oe.push([ce,ae])}),oe}function H(k,A,F){var $=k.type.indexOf("touch")===0,ae=k.type.indexOf("mouse")===0,oe=k.type.indexOf("pointer")===0,ce=0,fe=0;if(k.type.indexOf("MSPointer")===0&&(oe=!0),k.type==="mousedown"&&!k.buttons&&!k.touches)return!1;if($){var me=function(Ye){var Be=Ye.target;return Be===F||F.contains(Be)||k.composed&&k.composedPath().shift()===F};if(k.type==="touchstart"){var be=Array.prototype.filter.call(k.touches,me);if(be.length>1)return!1;ce=be[0].pageX,fe=be[0].pageY}else{var Ae=Array.prototype.find.call(k.changedTouches,me);if(!Ae)return!1;ce=Ae.pageX,fe=Ae.pageY}}return A=A||nd(v),(ae||oe)&&(ce=k.clientX+A.x,fe=k.clientY+A.y),k.pageOffset=A,k.points=[ce,fe],k.cursor=ae||oe,k}function se(k){var A=k-H1(l,e.ort),F=A*100/ne();return F=id(F),e.dir?100-F:F}function te(k){var A=100,F=!1;return c.forEach(function($,ae){if(!W(ae)){var oe=m[ae],ce=Math.abs(oe-k),fe=ce===100&&A===100,me=ce<A,be=ce<=A&&k>oe;(me||be||fe)&&(F=ae,A=ce)}}),F}function ee(k,A){k.type==="mouseout"&&k.target.nodeName==="HTML"&&k.relatedTarget===null&&le(k,A)}function pe(k,A){if(navigator.appVersion.indexOf("MSIE 9")===-1&&k.buttons===0&&A.buttonsProperty!==0)return le(k,A);var F=(e.dir?-1:1)*(k.calcPoint-A.startCalcPoint),$=F*100/A.baseSize;xe(F>0,$,A.locations,A.handleNumbers,A.connect)}function le(k,A){A.handle&&(wr(A.handle,e.cssClasses.active),b-=1),A.listeners.forEach(function(F){R.removeEventListener(F[0],F[1])}),b===0&&(wr(a,e.cssClasses.drag),_e(),k.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",ed))),e.events.smoothSteps&&(A.handleNumbers.forEach(function(F){Ie(F,m[F],!0,!0,!1,!1)}),A.handleNumbers.forEach(function(F){Z("update",F)})),A.handleNumbers.forEach(function(F){Z("change",F),Z("set",F),Z("end",F)})}function ve(k,A){if(!A.handleNumbers.some(W)){var F;if(A.handleNumbers.length===1){var $=c[A.handleNumbers[0]];F=$.children[0],b+=1,gt(F,e.cssClasses.active)}k.stopPropagation();var ae=[],oe=j(i.move,R,pe,{target:k.target,handle:F,connect:A.connect,listeners:ae,startCalcPoint:k.calcPoint,baseSize:ne(),pageOffset:k.pageOffset,handleNumbers:A.handleNumbers,buttonsProperty:k.buttons,locations:m.slice()}),ce=j(i.end,R,le,{target:k.target,handle:F,listeners:ae,doNotReject:!0,handleNumbers:A.handleNumbers}),fe=j("mouseout",R,ee,{target:k.target,handle:F,listeners:ae,doNotReject:!0,handleNumbers:A.handleNumbers});ae.push.apply(ae,oe.concat(ce,fe)),k.cursor&&(y.style.cursor=getComputedStyle(k.target).cursor,c.length>1&&gt(a,e.cssClasses.drag),y.addEventListener("selectstart",ed,!1)),A.handleNumbers.forEach(function(me){Z("start",me)})}}function ye(k){k.stopPropagation();var A=se(k.calcPoint),F=te(A);F!==!1&&(e.events.snap||td(a,e.cssClasses.tap,e.animationDuration),Ie(F,A,!0,!0),_e(),Z("slide",F,!0),Z("update",F,!0),e.events.snap?ve(k,{handleNumbers:[F]}):(Z("change",F,!0),Z("set",F,!0)))}function Me(k){var A=se(k.calcPoint),F=h.getStep(A),$=h.fromStepping(F);Object.keys(g).forEach(function(ae){ae.split(".")[0]==="hover"&&g[ae].forEach(function(oe){oe.call(P,$)})})}function Ne(k,A){if(V()||W(A))return!1;var F=["Left","Right"],$=["Down","Up"],ae=["PageDown","PageUp"],oe=["Home","End"];e.dir&&!e.ort?F.reverse():e.ort&&!e.dir&&($.reverse(),ae.reverse());var ce=k.key.replace("Arrow",""),fe=ce===ae[0],me=ce===ae[1],be=ce===$[0]||ce===F[0]||fe,Ae=ce===$[1]||ce===F[1]||me,Ye=ce===oe[0],Be=ce===oe[1];if(!be&&!Ae&&!Ye&&!Be)return!0;k.preventDefault();var Xe;if(Ae||be){var et=be?0:1,lt=ze(A),rt=lt[et];if(rt===null)return!1;rt===!1&&(rt=h.getDefaultStep(m[A],be,e.keyboardDefaultStep)),me||fe?rt*=e.keyboardPageMultiplier:rt*=e.keyboardMultiplier,rt=Math.max(rt,1e-7),rt=(be?-1:1)*rt,Xe=S[A]+rt}else Be?Xe=e.spectrum.xVal[e.spectrum.xVal.length-1]:Xe=e.spectrum.xVal[0];return Ie(A,h.toStepping(Xe),!0,!0),Z("slide",A),Z("update",A),Z("change",A),Z("set",A),!1}function He(k){k.fixed||c.forEach(function(A,F){j(i.start,A.children[0],ve,{handleNumbers:[F]})}),k.tap&&j(i.start,l,ye,{}),k.hover&&j(i.move,l,Me,{hover:!0}),k.drag&&d.forEach(function(A,F){if(!(A===!1||F===0||F===d.length-1)){var $=c[F-1],ae=c[F],oe=[A],ce=[$,ae],fe=[F-1,F];gt(A,e.cssClasses.draggable),k.fixed&&(oe.push($.children[0]),oe.push(ae.children[0])),k.dragAll&&(ce=c,fe=E),oe.forEach(function(me){j(i.start,me,ve,{handles:ce,handleNumbers:fe,connect:A})})}})}function Le(k,A){g[k]=g[k]||[],g[k].push(A),k.split(".")[0]==="update"&&c.forEach(function(F,$){Z("update",$)})}function Y(k){return k===gi.aria||k===gi.tooltips}function J(k){var A=k&&k.split(".")[0],F=A?k.substring(A.length):k;Object.keys(g).forEach(function($){var ae=$.split(".")[0],oe=$.substring(ae.length);(!A||A===ae)&&(!F||F===oe)&&(!Y(oe)||F===oe)&&delete g[$]})}function Z(k,A,F){Object.keys(g).forEach(function($){var ae=$.split(".")[0];k===ae&&g[$].forEach(function(oe){oe.call(P,S.map(e.format.to),A,S.slice(),F||!1,m.slice(),P)})})}function de(k,A,F,$,ae,oe,ce){var fe;return c.length>1&&!e.events.unconstrained&&($&&A>0&&(fe=h.getAbsoluteDistance(k[A-1],e.margin,!1),F=Math.max(F,fe)),ae&&A<c.length-1&&(fe=h.getAbsoluteDistance(k[A+1],e.margin,!0),F=Math.min(F,fe))),c.length>1&&e.limit&&($&&A>0&&(fe=h.getAbsoluteDistance(k[A-1],e.limit,!1),F=Math.min(F,fe)),ae&&A<c.length-1&&(fe=h.getAbsoluteDistance(k[A+1],e.limit,!0),F=Math.max(F,fe))),e.padding&&(A===0&&(fe=h.getAbsoluteDistance(0,e.padding[0],!1),F=Math.max(F,fe)),A===c.length-1&&(fe=h.getAbsoluteDistance(100,e.padding[1],!0),F=Math.min(F,fe))),ce||(F=h.getStep(F)),F=id(F),F===k[A]&&!oe?!1:F}function ue(k,A){var F=e.ort;return(F?A:k)+", "+(F?k:A)}function xe(k,A,F,$,ae){var oe=F.slice(),ce=$[0],fe=e.events.smoothSteps,me=[!k,k],be=[k,!k];$=$.slice(),k&&$.reverse(),$.length>1?$.forEach(function(Ye,Be){var Xe=de(oe,Ye,oe[Ye]+A,me[Be],be[Be],!1,fe);Xe===!1?A=0:(A=Xe-oe[Ye],oe[Ye]=Xe)}):me=be=[!0];var Ae=!1;$.forEach(function(Ye,Be){Ae=Ie(Ye,F[Ye]+A,me[Be],be[Be],!1,fe)||Ae}),Ae&&($.forEach(function(Ye){Z("update",Ye),Z("slide",Ye)}),ae!=null&&Z("drag",ce))}function Pe(k,A){return e.dir?100-k-A:k}function Te(k,A){m[k]=A,S[k]=h.fromStepping(A);var F=Pe(A,0)-M,$="translate("+ue(F+"%","0")+")";if(c[k].style[e.transformRule]=$,e.events.invertConnects&&m.length>1){var ae=m.every(function(oe,ce,fe){return ce===0||oe>=fe[ce-1]});if(T!==!ae){bt();return}}ot(k),ot(k+1),T&&(ot(k-1),ot(k+2))}function _e(){E.forEach(function(k){var A=m[k]>50?-1:1,F=3+(c.length+A*k);c[k].style.zIndex=String(F)})}function Ie(k,A,F,$,ae,oe){return ae||(A=de(m,k,A,F,$,!1,oe)),A===!1?!1:(Te(k,A),!0)}function ot(k){if(d[k]){var A=m.slice();T&&A.sort(function(fe,me){return fe-me});var F=0,$=100;k!==0&&(F=A[k-1]),k!==d.length-1&&($=A[k]);var ae=$-F,oe="translate("+ue(Pe(F,ae)+"%","0")+")",ce="scale("+ue(ae/100,"1")+")";d[k].style[e.transformRule]=oe+" "+ce}}function he(k,A){return k===null||k===!1||k===void 0||(typeof k=="number"&&(k=String(k)),k=e.format.from(k),k!==!1&&(k=h.toStepping(k)),k===!1||isNaN(k))?m[A]:k}function Ee(k,A,F){var $=yr(k),ae=m[0]===void 0;A=A===void 0?!0:A,e.animate&&!ae&&td(a,e.cssClasses.tap,e.animationDuration),E.forEach(function(fe){Ie(fe,he($[fe],fe),!0,!1,F)});var oe=E.length===1?0:1;if(ae&&h.hasNoSize()&&(F=!0,m[0]=0,E.length>1)){var ce=100/(E.length-1);E.forEach(function(fe){m[fe]=fe*ce})}for(;oe<E.length;++oe)E.forEach(function(fe){Ie(fe,m[fe],!0,!0,F)});_e(),E.forEach(function(fe){Z("update",fe),$[fe]!==null&&A&&Z("set",fe)})}function Fe(k){Ee(e.start,k)}function ke(k,A,F,$){if(k=Number(k),!(k>=0&&k<E.length))throw new Error("noUiSlider: invalid handle number, got: "+k);Ie(k,he(A,k),!0,!0,$),Z("update",k),F&&Z("set",k)}function X(k){if(k===void 0&&(k=!1),k)return S.length===1?S[0]:S.slice(0);var A=S.map(e.format.to);return A.length===1?A[0]:A}function re(){for(J(gi.aria),J(gi.tooltips),Object.keys(e.cssClasses).forEach(function(k){wr(a,e.cssClasses[k])});a.firstChild;)a.removeChild(a.firstChild);delete a.noUiSlider}function ze(k){var A=m[k],F=h.getNearbySteps(A),$=S[k],ae=F.thisStep.step,oe=null;if(e.snap)return[$-F.stepBefore.startValue||null,F.stepAfter.startValue-$||null];ae!==!1&&$+ae>F.stepAfter.startValue&&(ae=F.stepAfter.startValue-$),$>F.thisStep.startValue?oe=F.thisStep.step:F.stepBefore.step===!1?oe=!1:oe=$-F.stepBefore.highestStep,A===100?ae=null:A===0&&(oe=null);var ce=h.countStepDecimals();return ae!==null&&ae!==!1&&(ae=Number(ae.toFixed(ce))),oe!==null&&oe!==!1&&(oe=Number(oe.toFixed(ce))),[oe,ae]}function Ue(){return E.map(ze)}function Oe(k,A){var F=X(),$=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];$.forEach(function(oe){k[oe]!==void 0&&(t[oe]=k[oe])});var ae=ud(t);$.forEach(function(oe){k[oe]!==void 0&&(e[oe]=ae[oe])}),h=ae.spectrum,e.margin=ae.margin,e.limit=ae.limit,e.padding=ae.padding,e.pips?G(e.pips):ie(),e.tooltips?K():I(),m=[],Ee(Na(k.start)?k.start:F,A),k.connect&&Re()}function Re(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var k=0;k<=e.handles;k++)d[k]=w(u,e.connect[k]),ot(k);He({drag:e.events.drag,fixed:!0})}function bt(){T=!T,od(e,e.connect.map(function(k){return!k})),Re()}function nt(){l=D(a),_(e.connect,l),He(e.events),Ee(e.start),e.pips&&G(e.pips),e.tooltips&&K(),L()}nt();var P={destroy:re,steps:Ue,on:Le,off:J,get:X,set:Ee,setHandle:ke,reset:Fe,disable:U,enable:N,__moveHandles:function(k,A,F){xe(k,A,m,F)},options:t,updateOptions:Oe,target:a,removePips:ie,removeTooltips:I,getPositions:function(){return m.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:G};return P}function yx(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=ud(e),i=vx(n,t,e);return n.noUiSlider=i,i}const wx={__spectrum:rd,cssClasses:ad,create:yx},Cx={class:"slider-container"},Ex={class:"slider-wrapper",style:{position:"relative"}},kx=["id"],Sx=["value"],xx=["value"],Mx=Ve(o.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(null),a=o.ref(null),l=o.ref(null);let u=null;const c=o.ref(i.minValue),d=o.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const m=Array(i.maxCount-i.minCount+1).fill(0).map((b,g)=>i.minCount+g),E={to:b=>{const g=Math.round(b);return m[g]||m[0]},from:b=>{const g=Number(b);return m.indexOf(g)}};try{u=wx.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:E,range:{min:0,max:m.length-1}}),u.on("change",b=>{const g=Number(b[0]),T=Number(b[1]);c.value!==g&&(c.value=g,r("updateMinValue",g)),d.value!==T&&(d.value=T,r("updateMaxValue",T)),r("change",[g,T])}),u.on("update",b=>{const g=Number(b[0]),T=Number(b[1]);c.value=g,d.value=T})}catch(b){console.error("Error creating slider:",b)}},p=()=>{o.nextTick(()=>{f()})},h=(m,E)=>{if(u)try{u.set([m,E])}catch(b){console.error("Error updating slider values:",b)}},S=m=>{u&&(m?u.disable():u.enable())};return o.watch(()=>[i.minValue,i.maxValue],([m,E])=>{(m!==c.value||E!==d.value)&&(c.value=m,d.value=E,h(m,E))},{immediate:!1}),o.watch(()=>i.disabled,m=>{S(m)}),o.watch(()=>[i.minCount,i.maxCount],()=>{p()}),o.onMounted(()=>{p()}),o.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(m,E)=>(o.openBlock(),o.createElementBlock("div",Cx,[o.createElementVNode("div",Ex,[o.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:m.sliderId},null,8,kx)]),o.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:a,value:m.minValue},null,8,Sx),o.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:m.maxValue},null,8,xx)]))}}),[["__scopeId","data-v-892dca90"]]),Rx=["title"],Tx=Ve(o.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(),i=o.ref(!1),r=o.computed(()=>({color:e.color})),s=o.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),a=o.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return o.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),o.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[o.createElementVNode("i",{class:o.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:o.normalizeStyle(r.value),onClick:l},null,14,Rx),i.value&&c.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["question-tooltip",a.value])},[o.createTextVNode(o.toDisplayString(c.title)+" ",1),d[0]||(d[0]=o.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),Dx={class:"container-fluid rounded overflow-hidden bg-light"},_x={class:"row w-100"},Ax={class:"text-secondary"},Ox={class:"d-flex py-3 px-2 onlyPrint"},Lx={class:"row w-100"},Px={class:"text-secondary"},Fx={class:"row"},Bx=Ve(o.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=o.ref(!1),r=o.ref([]);return o.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([s,a])=>a).map(([s,a])=>({name:t.filterTitles[s]||s,value:String(a),key:s})):[]),o.watch(()=>t.filterValues,s=>{if(!s){r.value=[];return}r.value=Object.entries(s).filter(([a,l])=>l).map(([a,l])=>({name:t.filterTitles[a]||a,value:String(l),key:a}))},{deep:!0,immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",Dx,[o.createElementVNode("div",{style:o.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[o.createElementVNode("div",_x,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",Ax,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))]),o.createElementVNode("div",null,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:a[0]||(a[0]=l=>s.$emit("showFilter"))},[...a[2]||(a[2]=[o.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),o.createElementVNode("div",Ox,[o.createElementVNode("div",Lx,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",Px,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))])]),o.createElementVNode("div",Fx,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:a[1]||(a[1]=l=>i.value=!i.value)},[o.createElementVNode("i",{class:o.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-9dc91069"]]),cd=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(a,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[a]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(a){return a?(localStorage.setItem(e,JSON.stringify(a)),!0):!1}function r(a){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(a)&&delete u[a],i(u),!0}function s(a){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[a]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},Vx=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:a=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=o.ref({}),c=o.ref(0),d=o.ref(""),f=o.ref(""),p=o.ref({}),h=o.ref(!1),S=o.ref(!1),m=o.ref(!1),E=o.ref(s()),b=o.ref(!1),{setItemStorage:g,removeItemStorage:T,getItemStorage:v}=cd();async function R(){E.value=s(),p.value={}}function y(G){if(!n)return!1;g(n,G)}const M=o.readonly({...a()});function C(G,ne){p.value[G]=ne}const x=o.computed(()=>Object.values(p.value).some(Boolean));function w(){c.value+=1}async function _(G){if(G.options){if(G.options.ajaxURL=r.value.ajaxURL,!r.value.columns){G.replaceData(r.value.ajaxURL);return}G.options.columns=r.value.columns,G.setColumns(r.value.columns),await D(G),G.replaceData(r.value.ajaxURL)}}async function D(G){const ne=typeof G.hideColumn=="function",j=typeof G.showColumn=="function";if(!ne||!j){w();return}for(const H of r.value.columns)H.visible===!1?G.hideColumn(H.field):G.showColumn(H.field)}function O(G){if(!n)return!1;g(n,W(G))}async function V(G){const ne=r.value?.paginationMode==="remote";if(!(ne&&(!G||!G.replaceData))&&!(b.value||S.value)){S.value=!0;try{if(await I(),b.value||(await o.nextTick(),b.value))return;if(!ne){w();return}await _(G),h.value=!1}finally{S.value=!1}}}function W(G){return G.map(j=>{let H=JSON.parse(JSON.stringify(j));return j.visible===!1&&(delete H.width,delete H.minWidth),H})}function U(G){if(!n)return!1;g(n,W(G))}function N(){const G={};for(const[ne,j]of Object.entries({...E.value}))!j||j?.length<1||Array.isArray(j)&&(j[0]===null||j[0]===void 0||j[0]==="")||(G[ne]=j);return G}async function I(){if(b.value)return;const G=e(),ne=await t();if(b.value)return;const j=q();r.value={...r.value,ajaxURL:G,ajaxResponse:ne,columns:j,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const K=o.computed(()=>{let G=[];return r.value.columns.map(ne=>{ne.title&&G.push(ne.visible)}),G.includes(!1)});async function L(G,ne){G.target.checked==!1?(d.value=ne,f.value=""):(f.value=ne,d.value="")}async function B(){T(n),r.value.columns=q()}function q(){const G=v(n);return G||i({selectedQuickFilter:l?.value})}async function z(){T(n),r.value.columns.map(G=>G.visible=!1),U(r.value.columns)}function Q(G){r.value.columns=G,n&&g(n,G)}function ie(){r.value.columns=r.value.columns}return o.onBeforeUnmount(()=>{b.value=!0}),o.provide("setFilterParamsStrings",C),o.provide("selectedFilterTitles",M),o.provide("tableFilters",E),o.provide("filterModalVisibility",h),o.provide("resetFilters",R),o.provide("applyFilters",V),o.provide("editTableColumnsModalVisibility",m),o.provide("tableOptions",r),o.provide("editTableColumnVisibility",L),o.provide("isTableCoumnsHidden",K),o.provide("unselectAllTableColumnCheckboxes",z),o.provide("selectAllTableColumnCheckboxes",B),o.provide("handleColumnsChanged",Q),o.provide("handleColumnsApply",ie),o.provide("table",u),{selectAllTableColumnCheckboxes:B,unselectAllTableColumnCheckboxes:z,isTableCoumnsHidden:K,editTableColumnVisibility:L,fetchData:I,onHideColumn:U,getFilterData:N,applyFilters:V,reRenderTable:w,resetFilters:R,onTableRowMoved:y,onShowColumn:O,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:M,setFilterParamsStrings:C,filterParamsStrings:p,isSelectedFiltersVisible:x,filterModalVisibility:h,editTableColumnsModalVisibility:m,tableFilters:E,tableOptions:r,handleColumnsChanged:Q,handleColumnsApply:ie}};function dd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function hd(n){return n.filter(e=>e.visible===!0)}function fd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Cr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function za(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Rn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function pd(n){return n.some(e=>e.title&&!e.visible)}function md(n,e){return n.find(t=>t.field===e)}function Er(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const Nx=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:md,getVisibleColumns:hd,hasHiddenColumns:pd,hideAllColumns:za,prepareColumnsToSave:dd,resetColumnsToDefault:Cr,toggleColumnVisibility:fd,updateColumn:Er,validateColumns:Rn},Symbol.toStringTag,{value:"Module"}));function gd(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:a,validateOnChange:l=!0}=n;Rn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=o.ref(!1),c=o.ref([...e]),d=o.ref(!1);if(t&&typeof window<"u")try{const N=localStorage.getItem(t);if(N){const I=JSON.parse(N);Rn(I)&&(c.value=I)}}catch(N){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",N)}const f=o.computed(()=>hd(c.value)),p=o.computed(()=>pd(c.value)),h=o.computed(()=>c.value.length),S=o.computed(()=>f.value.length);function m(N){if(!(!t||typeof window>"u"||!r))try{const I=dd(N);localStorage.setItem(t,JSON.stringify(I))}catch(I){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",I)}}function E(){if(!t||typeof window>"u")return null;try{const N=localStorage.getItem(t);if(N){const I=JSON.parse(N);if(Rn(I))return I}}catch(N){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",N)}return null}function b(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(N){console.warn("useTableColumnsEnhanced: failed to clear localStorage",N)}}function g(N){if(l&&!Rn(N)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...N],m(N),s?.(N)}function T(N,I){const K=N.target,L=Er(c.value,I,{visible:K.checked});g(L)}function v(N){u.value=N}function R(N){const I=N||c.value;g(I),u.value=!1,a?.(I)}function y(){const N=Cr(c.value);g(N)}function M(){const N=za(c.value);g(N)}function C(N){const I=fd(c.value,N);g(I)}function x(N){const I=Er(c.value,N,{visible:!0});g(I)}function w(N){const I=Er(c.value,N,{visible:!1});g(I)}function _(){const N=Cr(e);g(N)}function D(){const N=Cr(c.value);g(N)}function O(){const N=za(c.value);g(N)}function V(N){return md(c.value,N)}function W(N){return V(N)?.visible??!1}function U(){i?.value&&(i.value.columns=c.value)}return o.watch(c,()=>{U()},{deep:!0}),o.watch(()=>e,N=>{d.value||(c.value=[...N],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,U()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:S,isInitialized:d,handleColumnsModalVisibility:v,handleColumnVisibilityChange:T,handleColumnsApply:R,handleColumnsSelectAll:y,handleColumnsUnselectAll:M,updateColumns:g,toggleColumn:C,showColumn:x,hideColumn:w,resetToDefault:_,showAll:D,hideAll:O,getColumn:V,isColumnVisible:W,saveToLocalStorage:m,loadFromLocalStorage:E,clearLocalStorage:b,syncWithTableOptions:U}}function Hx(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:a}=n,l=gd({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{a?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=S=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",S),l.updateColumns(S),h?.(S)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=S=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",S),l.updateColumns(S),h?.(S)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return o.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function Ix(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function a(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:a}}const zx=(n={})=>{const{navigate:e=m=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=m=>m,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,a=o.ref([]);function l(m){e(m)}function u(m,E){if(!Array.isArray(m))return[];const b=JSON.parse(JSON.stringify(m));return b.length>E&&b.splice(0,b.length-E),b}function c(){const m=i(),E={path:m.path,name:m.name},b=a.value||[],g=b[b.length-1];if(JSON.stringify(g)===JSON.stringify(E))return!1;b.push(E),a.value=u(b,r),localStorage.setItem(s,JSON.stringify(a.value))}function d(){const m=JSON.parse(localStorage.getItem(s)||"[]");m?.length||c(),a.value=m}const f=o.computed(()=>a.value.map((m,E)=>({text:t(`routes.${m.name}`),href:m.path,isActive:E===a.value.length-1})));function p(){c()}function h(){a.value=[],localStorage.removeItem(s)}function S(m){const E=a.value||[];E.push(m),a.value=u(E,r),localStorage.setItem(s,JSON.stringify(a.value))}return o.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:a,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:S}};Ce.AddButton=ja,Ce.AddressForm=Yy,Ce.AgeFromAgeTo=rw,Ce.BooleanCheckbox=Dc,Ce.Breadcrumbs=l0,Ce.Card=iC,Ce.CardInfo=b0,Ce.Checkbox=Jg,Ce.ClearFormButton=Dd,Ce.CollapseButton=Sd,Ce.CollapsedSidebarLink=Hc,Ce.ColumnSubFilter=f1,Ce.ConfirmationModal=Ow,Ce.CustomInput=er,Ce.DefaultAccordion=K0,Ce.DefaultButton=xr,Ce.DefaultDropDown=Sa,Ce.DefaultModal=Fc,Ce.Divider=xa,Ce.EditTableColumns=Ba,Ce.EditTableColumnsModalComponent=Bc,Ce.ErrorMessageComponent=W0,Ce.ExportButton=xd,Ce.ExportComponent=bh,Ce.FilterValuesPanel=Bx,Ce.Flatpickr=Sy,Ce.Footer=rC,Ce.FormError=ki,Ce.Header=wC,Ce.HeaderSearchForm=Ty,Ce.Icon=Sr,Ce.KindCheckboxesAccordion=oE,Ce.Logo=Vc,Ce.MainComponent=e0,Ce.MultiCheckbox=ay,Ce.MultiInput=dy,Ce.MultipleQuickFilterComponent=F1,Ce.PageCard=F0,Ce.PageTitle=Zw,Ce.PasswordInput=Gg,Ce.PrintButton=Md,Ce.QuestionIcon=Tx,Ce.Sidebar=Ic,Ce.SidebarLink=Nc,Ce.Slider=Mx,Ce.Spinner=kr,Ce.SubFilterToggleBtn=Xc,Ce.Table=l1,Ce.TableAppliedFiltersStorage=p1,Ce.TableColumnsButton=R1,Ce.TableColumnsModal=T1,Ce.TableCount=h1,Ce.TableFilterModalComponent=Iw,Ce.TableQuickFilterComponent=v1,Ce.Toast=zc,Ce.ToggleAllTableRowButtons=A1,Ce.ToggleButtons=Od,Ce.VSelect=oi,Ce.createColumnHandlers=Ix,Ce.helpers=Ig,Ce.tableColumnsUtils=Nx,Ce.useBreadcrumbs=zx,Ce.useTableColumns=Va,Ce.useTableColumnsEnhanced=gd,Ce.useTableColumnsIntegration=Hx,Ce.useTableDefault=Vx,Ce.useTableStorage=cd,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));