@processmaker/screen-builder 2.85.9 → 2.85.10
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.
|
@@ -284,7 +284,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
284
284
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,w=!0,O=!1;return{s:function(){f=f.call(S)},n:function(){var C=f.next();return w=C.done,C},e:function(C){O=!0,m=C},f:function(){try{w||f.return==null||f.return()}finally{if(O)throw m}}}}function y(S,b){(b==null||b>S.length)&&(b=S.length);for(var f=0,k=new Array(b);f<b;f++)k[f]=S[f];return k}var x={keyEvent:function(S,b,f,k,g){var m=this.inputmask,w=m.opts,O=m.dependencyLib,C=m.maskset,M=this,T=O(M),E=S.key,z=l.caret.call(m,M),F=w.onKeyDown.call(this,S,l.getBuffer.call(m),z,w);if(F!==void 0)return F;if(E===c.keys.Backspace||E===c.keys.Delete||d.iphone&&E===c.keys.BACKSPACE_SAFARI||S.ctrlKey&&E===c.keys.x&&!("oncut"in M))S.preventDefault(),p.handleRemove.call(m,M,E,z),(0,v.writeBuffer)(M,l.getBuffer.call(m,!0),C.p,S,M.inputmask._valueGet()!==l.getBuffer.call(m).join(""));else if(E===c.keys.End||E===c.keys.PageDown){S.preventDefault();var N=l.seekNext.call(m,l.getLastValidPosition.call(m));l.caret.call(m,M,S.shiftKey?z.begin:N,N,!0)}else E===c.keys.Home&&!S.shiftKey||E===c.keys.PageUp?(S.preventDefault(),l.caret.call(m,M,0,S.shiftKey?z.begin:0,!0)):w.undoOnEscape&&E===c.keys.Escape&&S.altKey!==!0?((0,v.checkVal)(M,!0,!1,m.undoValue.split("")),T.trigger("click")):E!==c.keys.Insert||S.shiftKey||S.ctrlKey||m.userOptions.insertMode!==void 0?w.tabThrough===!0&&E===c.keys.Tab?S.shiftKey===!0?(z.end=l.seekPrevious.call(m,z.end,!0),_.getTest.call(m,z.end-1).match.static===!0&&z.end--,z.begin=l.seekPrevious.call(m,z.end,!0),z.begin>=0&&z.end>0&&(S.preventDefault(),l.caret.call(m,M,z.begin,z.end))):(z.begin=l.seekNext.call(m,z.begin,!0),z.end=l.seekNext.call(m,z.begin,!0),z.end<C.maskLength&&z.end--,z.begin<=C.maskLength&&(S.preventDefault(),l.caret.call(m,M,z.begin,z.end))):S.shiftKey||w.insertModeVisual&&w.insertMode===!1&&(E===c.keys.ArrowRight?setTimeout(function(){var U=l.caret.call(m,M);l.caret.call(m,M,U.begin)},0):E===c.keys.ArrowLeft&&setTimeout(function(){var U=l.translatePosition.call(m,M.inputmask.caretPos.begin);l.translatePosition.call(m,M.inputmask.caretPos.end),m.isRTL?l.caret.call(m,M,U+(U===C.maskLength?0:1)):l.caret.call(m,M,U-(U===0?0:1))},0)):p.isSelection.call(m,z)?w.insertMode=!w.insertMode:(w.insertMode=!w.insertMode,l.caret.call(m,M,z.begin,z.begin));return m.isComposing=E==c.keys.Process||E==c.keys.Unidentified,m.ignorable=w.ignorables.includes(E),x.keypressEvent.call(this,S,b,f,k,g)},keypressEvent:function(S,b,f,k,g){var m=this.inputmask||this,w=m.opts,O=m.dependencyLib,C=m.maskset,M=m.el,T=O(M),E=S.key;if(b===!0||S.ctrlKey&&S.altKey||!(S.ctrlKey||S.metaKey||m.ignorable)){if(E){var z,F=b?{begin:g,end:g}:l.caret.call(m,M);E=w.substitutes[E]||E,C.writeOutBuffer=!0;var N=p.isValid.call(m,F,E,k,void 0,void 0,void 0,b);if(N!==!1&&(l.resetMaskSet.call(m,!0),z=N.caret!==void 0?N.caret:l.seekNext.call(m,N.pos.begin?N.pos.begin:N.pos),C.p=z),z=w.numericInput&&N.caret===void 0?l.seekPrevious.call(m,z):z,f!==!1&&(setTimeout(function(){w.onKeyValidation.call(M,E,N)},0),C.writeOutBuffer&&N!==!1)){var U=l.getBuffer.call(m);(0,v.writeBuffer)(M,U,z,S,b!==!0)}if(S.preventDefault(),b)return N!==!1&&(N.forwardPosition=z),N}}else E===c.keys.Enter&&m.undoValue!==m._valueGet(!0)&&(m.undoValue=m._valueGet(!0),setTimeout(function(){T.trigger("change")},0))},pasteEvent:function(S){var b,f=this.inputmask,k=f.opts,g=f._valueGet(!0),m=l.caret.call(f,this);f.isRTL&&(b=m.end,m.end=l.translatePosition.call(f,m.begin),m.begin=l.translatePosition.call(f,b));var w=g.substr(0,m.begin),O=g.substr(m.end,g.length);if(w==(f.isRTL?l.getBufferTemplate.call(f).slice().reverse():l.getBufferTemplate.call(f)).slice(0,m.begin).join("")&&(w=""),O==(f.isRTL?l.getBufferTemplate.call(f).slice().reverse():l.getBufferTemplate.call(f)).slice(m.end).join("")&&(O=""),window.clipboardData&&window.clipboardData.getData)g=w+window.clipboardData.getData("Text")+O;else{if(!S.clipboardData||!S.clipboardData.getData)return!0;g=w+S.clipboardData.getData("text/plain")+O}var C=g;if(f.isRTL){C=C.split("");var M,T=h(l.getBufferTemplate.call(f));try{for(T.s();!(M=T.n()).done;){var E=M.value;C[0]===E&&C.shift()}}catch(z){T.e(z)}finally{T.f()}C=C.join("")}if(typeof k.onBeforePaste=="function"){if((C=k.onBeforePaste.call(f,C,k))===!1)return!1;C||(C=g)}(0,v.checkVal)(this,!0,!1,C.toString().split(""),S),S.preventDefault()},inputFallBackEvent:function(S){var b=this.inputmask,f=b.opts,k=b.dependencyLib,g,m=this,w=m.inputmask._valueGet(!0),O=(b.isRTL?l.getBuffer.call(b).slice().reverse():l.getBuffer.call(b)).join(""),C=l.caret.call(b,m,void 0,void 0,!0);if(O!==w){if(g=function(T,E,z){for(var F,N,U,q=T.substr(0,z.begin).split(""),P=T.substr(z.begin).split(""),D=E.substr(0,z.begin).split(""),I=E.substr(z.begin).split(""),L=q.length>=D.length?q.length:D.length,W=P.length>=I.length?P.length:I.length,Y="",Q=[],J="~";q.length<L;)q.push(J);for(;D.length<L;)D.push(J);for(;P.length<W;)P.unshift(J);for(;I.length<W;)I.unshift(J);var R=q.concat(P),A=D.concat(I);for(N=0,F=R.length;N<F;N++)switch(U=_.getPlaceholder.call(b,l.translatePosition.call(b,N)),Y){case"insertText":A[N-1]===R[N]&&z.begin==R.length-1&&Q.push(R[N]),N=F;break;case"insertReplacementText":case"deleteContentBackward":R[N]===J?z.end++:N=F;break;default:R[N]!==A[N]&&(R[N+1]!==J&&R[N+1]!==U&&R[N+1]!==void 0||(A[N]!==U||A[N+1]!==J)&&A[N]!==J?A[N+1]===J&&A[N]===R[N+1]?(Y="insertText",Q.push(R[N]),z.begin--,z.end--):R[N]!==U&&R[N]!==J&&(R[N+1]===J||A[N]!==R[N]&&A[N+1]===R[N+1])?(Y="insertReplacementText",Q.push(R[N]),z.begin--):R[N]===J?(Y="deleteContentBackward",(l.isMask.call(b,l.translatePosition.call(b,N),!0)||A[N]===f.radixPoint)&&z.end++):N=F:(Y="insertText",Q.push(R[N]),z.begin--,z.end--))}return{action:Y,data:Q,caret:z}}(w,O,C),(m.inputmask.shadowRoot||m.ownerDocument).activeElement!==m&&m.focus(),(0,v.writeBuffer)(m,l.getBuffer.call(b)),l.caret.call(b,m,C.begin,C.end,!0),!d.mobile&&b.skipNextInsert&&S.inputType==="insertText"&&g.action==="insertText"&&b.isComposing)return!1;switch(S.inputType==="insertCompositionText"&&g.action==="insertText"&&b.isComposing?b.skipNextInsert=!0:b.skipNextInsert=!1,g.action){case"insertText":case"insertReplacementText":g.data.forEach(function(T,E){var z=new k.Event("keypress");z.key=T,b.ignorable=!1,x.keypressEvent.call(m,z)}),setTimeout(function(){b.$el.trigger("keyup")},0);break;case"deleteContentBackward":var M=new k.Event("keydown");M.key=c.keys.Backspace,x.keyEvent.call(m,M);break;default:(0,v.applyInputValue)(m,w),l.caret.call(b,m,C.begin,C.end,!0)}S.preventDefault()}},setValueEvent:function(S){var b=this.inputmask,f=this,k=S&&S.detail?S.detail[0]:arguments[1];k===void 0&&(k=f.inputmask._valueGet(!0)),(0,v.applyInputValue)(f,k),(S.detail&&S.detail[1]!==void 0||arguments[2]!==void 0)&&l.caret.call(b,f,S.detail?S.detail[1]:arguments[2])},focusEvent:function(S){var b=this.inputmask,f=b.opts,k=b==null?void 0:b._valueGet();f.showMaskOnFocus&&k!==l.getBuffer.call(b).join("")&&(0,v.writeBuffer)(this,l.getBuffer.call(b),l.seekNext.call(b,l.getLastValidPosition.call(b))),f.positionCaretOnTab!==!0||b.mouseEnter!==!1||p.isComplete.call(b,l.getBuffer.call(b))&&l.getLastValidPosition.call(b)!==-1||x.clickEvent.apply(this,[S,!0]),b.undoValue=b==null?void 0:b._valueGet(!0)},invalidEvent:function(S){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var S=this.inputmask,b=S.opts,f=this;S.mouseEnter=!1,b.clearMaskOnLostFocus&&(f.inputmask.shadowRoot||f.ownerDocument).activeElement!==f&&(0,v.HandleNativePlaceholder)(f,S.originalPlaceholder)},clickEvent:function(S,b){var f=this.inputmask;f.clicked++;var k=this;if((k.inputmask.shadowRoot||k.ownerDocument).activeElement===k){var g=l.determineNewCaretPosition.call(f,l.caret.call(f,k),b);g!==void 0&&l.caret.call(f,k,g)}},cutEvent:function(S){var b=this.inputmask,f=b.maskset,k=this,g=l.caret.call(b,k),m=b.isRTL?l.getBuffer.call(b).slice(g.end,g.begin):l.getBuffer.call(b).slice(g.begin,g.end),w=b.isRTL?m.reverse().join(""):m.join("");window.navigator.clipboard?window.navigator.clipboard.writeText(w):window.clipboardData&&window.clipboardData.getData&&window.clipboardData.setData("Text",w),p.handleRemove.call(b,k,c.keys.Delete,g),(0,v.writeBuffer)(k,l.getBuffer.call(b),f.p,S,b.undoValue!==b._valueGet(!0))},blurEvent:function(S){var b=this.inputmask,f=b.opts,k=b.dependencyLib;b.clicked=0;var g=k(this),m=this;if(m.inputmask){(0,v.HandleNativePlaceholder)(m,b.originalPlaceholder);var w=m.inputmask._valueGet(),O=l.getBuffer.call(b).slice();w!==""&&(f.clearMaskOnLostFocus&&(l.getLastValidPosition.call(b)===-1&&w===l.getBufferTemplate.call(b).join("")?O=[]:v.clearOptionalTail.call(b,O)),p.isComplete.call(b,O)===!1&&(setTimeout(function(){g.trigger("incomplete")},0),f.clearIncomplete&&(l.resetMaskSet.call(b),O=f.clearMaskOnLostFocus?[]:l.getBufferTemplate.call(b).slice())),(0,v.writeBuffer)(m,O,void 0,S)),b.undoValue!==b._valueGet(!0)&&(b.undoValue=b._valueGet(!0),g.trigger("change"))}},mouseenterEvent:function(){var S=this.inputmask,b=S.opts.showMaskOnHover,f=this;if(S.mouseEnter=!0,(f.inputmask.shadowRoot||f.ownerDocument).activeElement!==f){var k=(S.isRTL?l.getBufferTemplate.call(S).slice().reverse():l.getBufferTemplate.call(S)).join("");b&&(0,v.HandleNativePlaceholder)(f,k)}},submitEvent:function(){var S=this.inputmask,b=S.opts;S.undoValue!==S._valueGet(!0)&&S.$el.trigger("change"),l.getLastValidPosition.call(S)===-1&&S._valueGet&&S._valueGet()===l.getBufferTemplate.call(S).join("")&&S._valueSet(""),b.clearIncomplete&&p.isComplete.call(S,l.getBuffer.call(S))===!1&&S._valueSet(""),b.removeMaskOnSubmit&&(S._valueSet(S.unmaskedvalue(),!0),setTimeout(function(){(0,v.writeBuffer)(S.el,l.getBuffer.call(S))},0))},resetEvent:function(){var S=this.inputmask;S.refreshValue=!0,setTimeout(function(){(0,v.applyInputValue)(S.el,S._valueGet(!0))},0)}};o.EventHandlers=x},9716:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.EventRuler=void 0;var l,c=(l=u(2394))&&l.__esModule?l:{default:l},d=u(2839),p=u(8711),v=u(7760),_={on:function(h,y,x){var S=h.inputmask.dependencyLib,b=function(f){f.originalEvent&&(f=f.originalEvent||f,arguments[0]=f);var k,g=this,m=g.inputmask,w=m?m.opts:void 0;if(m===void 0&&this.nodeName!=="FORM"){var O=S.data(g,"_inputmask_opts");S(g).off(),O&&new c.default(O).mask(g)}else{if(["submit","reset","setvalue"].includes(f.type)||this.nodeName==="FORM"||!(g.disabled||g.readOnly&&!(f.type==="keydown"&&f.ctrlKey&&f.key===d.keys.c||w.tabThrough===!1&&f.key===d.keys.Tab))){switch(f.type){case"input":if(m.skipInputEvent===!0)return m.skipInputEvent=!1,f.preventDefault();break;case"click":case"focus":return m.validationEvent?(m.validationEvent=!1,h.blur(),(0,v.HandleNativePlaceholder)(h,(m.isRTL?p.getBufferTemplate.call(m).slice().reverse():p.getBufferTemplate.call(m)).join("")),setTimeout(function(){h.focus()},w.validationEventTimeOut),!1):(k=arguments,void setTimeout(function(){h.inputmask&&x.apply(g,k)},0))}var C=x.apply(g,arguments);return C===!1&&(f.preventDefault(),f.stopPropagation()),C}f.preventDefault()}};["submit","reset"].includes(y)?(b=b.bind(h),h.form!==null&&S(h.form).on(y,b)):S(h).on(y,b),h.inputmask.events[y]=h.inputmask.events[y]||[],h.inputmask.events[y].push(b)},off:function(h,y){if(h.inputmask&&h.inputmask.events){var x=h.inputmask.dependencyLib,S=h.inputmask.events;for(var b in y&&((S=[])[y]=h.inputmask.events[y]),S){for(var f=S[b];f.length>0;){var k=f.pop();["submit","reset"].includes(b)?h.form!==null&&x(h.form).off(b,k):x(h).off(b,k)}delete h.inputmask.events[b]}}}};o.EventRuler=_},219:function(s,o,u){var l=S(u(2394)),c=u(2839),d=S(u(7184)),p=u(8711),v=u(4713);function _(P,D){return function(I){if(Array.isArray(I))return I}(P)||function(I,L){var W=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(W!=null){var Y,Q,J,R,A=[],$=!0,j=!1;try{if(J=(W=W.call(I)).next,L===0){if(Object(W)!==W)return;$=!1}else for(;!($=(Y=J.call(W)).done)&&(A.push(Y.value),A.length!==L);$=!0);}catch(B){j=!0,Q=B}finally{try{if(!$&&W.return!=null&&(R=W.return(),Object(R)!==R))return}finally{if(j)throw Q}}return A}}(P,D)||function(I,L){if(I){if(typeof I=="string")return h(I,L);var W=Object.prototype.toString.call(I).slice(8,-1);if(W==="Object"&&I.constructor&&(W=I.constructor.name),W==="Map"||W==="Set")return Array.from(I);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return h(I,L)}}(P,D)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
285
285
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h(P,D){(D==null||D>P.length)&&(D=P.length);for(var I=0,L=new Array(D);I<D;I++)L[I]=P[I];return L}function y(P){return y=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},y(P)}function x(P,D){for(var I=0;I<D.length;I++){var L=D[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,(W=L.key,Y=void 0,Y=function(Q,J){if(y(Q)!=="object"||Q===null)return Q;var R=Q[Symbol.toPrimitive];if(R!==void 0){var A=R.call(Q,J||"default");if(y(A)!=="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Q)}(W,"string"),y(Y)==="symbol"?Y:String(Y)),L)}var W,Y}function S(P){return P&&P.__esModule?P:{default:P}}var b=l.default.dependencyLib,f=function(){function P(L,W,Y){(function(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")})(this,P),this.mask=L,this.format=W,this.opts=Y,this._date=new Date(1,0,1),this.initDateObject(L,this.opts)}var D,I;return D=P,(I=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts)),this._date}},{key:"initDateObject",value:function(L,W){var Y;for(T(W).lastIndex=0;Y=T(W).exec(this.format);){var Q=new RegExp("\\d+$").exec(Y[0]),J=Q?Y[0][0]+"x":Y[0],R=void 0;if(L!==void 0){if(Q){var A=T(W).lastIndex,$=q(Y.index,W);T(W).lastIndex=A,R=L.slice(0,L.indexOf($.nextMatch[0]))}else R=L.slice(0,m[J]&&m[J][4]||J.length);L=L.slice(R.length)}Object.prototype.hasOwnProperty.call(m,J)&&this.setValue(this,R,J,m[J][2],m[J][1])}}},{key:"setValue",value:function(L,W,Y,Q,J){if(W!==void 0&&(L[Q]=Q==="ampm"?W:W.replace(/[^0-9]/g,"0"),L["raw"+Q]=W.replace(/\s/g,"_")),J!==void 0){var R=L[Q];(Q==="day"&&parseInt(R)===29||Q==="month"&&parseInt(R)===2)&&(parseInt(L.day)!==29||parseInt(L.month)!==2||L.year!==""&&L.year!==void 0||L._date.setFullYear(2012,1,29)),Q==="day"&&(g=!0,parseInt(R)===0&&(R=1)),Q==="month"&&(g=!0),Q==="year"&&(g=!0,R.length<4&&(R=F(R,4,!0))),R===""||isNaN(R)||J.call(L._date,R),Q==="ampm"&&J.call(L._date,R)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&x(D.prototype,I),Object.defineProperty(D,"prototype",{writable:!1}),P}(),k=new Date().getFullYear(),g=!1,m={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 F(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(P){var D=P?parseInt(P):0;return D>0&&D--,Date.prototype.setMonth.call(this,D)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(P){var D=P?parseInt(P):0;return D>0&&D--,Date.prototype.setMonth.call(this,D)},"month",function(){return F(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return F(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return F(Date.prototype.getFullYear.call(this),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 F(Date.prototype.getHours.call(this),2)}],hx:[function(P){return"[0-9]{".concat(P,"}")},Date.prototype.setHours,"hours",function(P){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 F(Date.prototype.getHours.call(this),2)}],Hx:[function(P){return"[0-9]{".concat(P,"}")},Date.prototype.setHours,"hours",function(P){return function(){return F(Date.prototype.getHours.call(this),P)}}],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 F(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 F(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return F(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return F(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",O,"ampm",C,1],tt:["[ap]m",O,"ampm",C,2],T:["[AP]",O,"ampm",C,1],TT:["[AP]M",O,"ampm",C,2],Z:[".*",void 0,"Z",function(){var P=this.toString().match(/\((.+)\)/)[1];return P.includes(" ")&&(P=(P=P.replace("-"," ").toUpperCase()).split(" ").map(function(D){return _(D,1)[0]}).join("")),P}],o:[""],S:[""]},w={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 O(P){var D=this.getHours();P.toLowerCase().includes("p")?this.setHours(D+12):P.toLowerCase().includes("a")&&D>=12&&this.setHours(D-12)}function C(){var P=this.getHours();return(P=P||12)>=12?"PM":"AM"}function M(P){var D=new RegExp("\\d+$").exec(P[0]);if(D&&D[0]!==void 0){var I=m[P[0][0]+"x"].slice("");return I[0]=I[0](D[0]),I[3]=I[3](D[0]),I}if(m[P[0]])return m[P[0]]}function T(P){if(!P.tokenizer){var D=[],I=[];for(var L in m)if(/\.*x$/.test(L)){var W=L[0]+"\\d+";I.indexOf(W)===-1&&I.push(W)}else D.indexOf(L[0])===-1&&D.push(L[0]);P.tokenizer="("+(I.length>0?I.join("|")+"|":"")+D.join("+|")+")+?|.",P.tokenizer=new RegExp(P.tokenizer,"g")}return P.tokenizer}function E(P,D,I){if(!g)return!0;if(P.rawday===void 0||!isFinite(P.rawday)&&new Date(P.date.getFullYear(),isFinite(P.rawmonth)?P.month:P.date.getMonth()+1,0).getDate()>=P.day||P.day=="29"&&(!isFinite(P.rawyear)||P.rawyear===void 0||P.rawyear==="")||new Date(P.date.getFullYear(),isFinite(P.rawmonth)?P.month:P.date.getMonth()+1,0).getDate()>=P.day)return D;if(P.day=="29"){var L=q(D.pos,I);if(L.targetMatch[0]==="yyyy"&&D.pos-L.targetMatchIndex==2)return D.remove=D.pos+1,D}else if(P.month=="02"&&P.day=="30"&&D.c!==void 0)return P.day="03",P.date.setDate(3),P.date.setMonth(1),D.insert=[{pos:D.pos,c:"0"},{pos:D.pos+1,c:D.c}],D.caret=p.seekNext.call(this,D.pos+1),D;return!1}function z(P,D,I,L){var W,Y,Q="";for(T(I).lastIndex=0;W=T(I).exec(P);)if(D===void 0)if(Y=M(W))Q+="("+Y[0]+")";else switch(W[0]){case"[":Q+="(";break;case"]":Q+=")?";break;default:Q+=(0,d.default)(W[0])}else(Y=M(W))?L!==!0&&Y[3]?Q+=Y[3].call(D.date):Y[2]?Q+=D["raw"+Y[2]]:Q+=W[0]:Q+=W[0];return Q}function F(P,D,I){for(P=String(P),D=D||2;P.length<D;)P=I?P+"0":"0"+P;return P}function N(P,D,I){return typeof P=="string"?new f(P,D,I):P&&y(P)==="object"&&Object.prototype.hasOwnProperty.call(P,"date")?P:void 0}function U(P,D){return z(D.inputFormat,{date:P},D)}function q(P,D){var I,L,W=0,Y=0;for(T(D).lastIndex=0;L=T(D).exec(D.inputFormat);){var Q=new RegExp("\\d+$").exec(L[0]);if((W+=Y=Q?parseInt(Q[0]):L[0].length)>=P+1){I=L,L=T(D).exec(D.inputFormat);break}}return{targetMatchIndex:W-Y,nextMatch:L,targetMatch:I}}l.default.extendAliases({datetime:{mask:function(P){return P.numericInput=!1,m.S=P.i18n.ordinalSuffix.join("|"),P.inputFormat=w[P.inputFormat]||P.inputFormat,P.displayFormat=w[P.displayFormat]||P.displayFormat||P.inputFormat,P.outputFormat=w[P.outputFormat]||P.outputFormat||P.inputFormat,P.placeholder=P.placeholder!==""?P.placeholder:P.inputFormat.replace(/[[\]]/,""),P.regex=z(P.inputFormat,void 0,P),P.min=N(P.min,P.inputFormat,P),P.max=N(P.max,P.inputFormat,P),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",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"]},preValidation:function(P,D,I,L,W,Y,Q,J){if(J)return!0;if(isNaN(I)&&P[D]!==I){var R=q(D,W);if(R.nextMatch&&R.nextMatch[0]===I&&R.targetMatch[0].length>1){var A=m[R.targetMatch[0]][0];if(new RegExp(A).test("0"+P[D-1]))return P[D]=P[D-1],P[D-1]="0",{fuzzy:!0,buffer:P,refreshFromBuffer:{start:D-1,end:D+1},pos:D+1}}}return!0},postValidation:function(P,D,I,L,W,Y,Q,J){var R,A;if(Q)return!0;if(L===!1&&(((R=q(D+1,W)).targetMatch&&R.targetMatchIndex===D&&R.targetMatch[0].length>1&&m[R.targetMatch[0]]!==void 0||(R=q(D+2,W)).targetMatch&&R.targetMatchIndex===D+1&&R.targetMatch[0].length>1&&m[R.targetMatch[0]]!==void 0)&&(A=m[R.targetMatch[0]][0]),A!==void 0&&(Y.validPositions[D+1]!==void 0&&new RegExp(A).test(I+"0")?(P[D]=I,P[D+1]="0",L={pos:D+2,caret:D}):new RegExp(A).test("0"+I)&&(P[D]="0",P[D+1]=I,L={pos:D+2})),L===!1))return L;if(L.fuzzy&&(P=L.buffer,D=L.pos),(R=q(D,W)).targetMatch&&R.targetMatch[0]&&m[R.targetMatch[0]]!==void 0){var $=m[R.targetMatch[0]];A=$[0];var j=P.slice(R.targetMatchIndex,R.targetMatchIndex+R.targetMatch[0].length);if(new RegExp(A).test(j.join(""))===!1&&R.targetMatch[0].length===2&&Y.validPositions[R.targetMatchIndex]&&Y.validPositions[R.targetMatchIndex+1]&&(Y.validPositions[R.targetMatchIndex+1].input="0"),$[2]=="year")for(var B=v.getMaskTemplate.call(this,!1,1,void 0,!0),G=D+1;G<P.length;G++)P[G]=B[G],delete Y.validPositions[G]}var Z=L,te=N(P.join(""),W.inputFormat,W);return Z&&!isNaN(te.date.getTime())&&(W.prefillYear&&(Z=function(re,le,he){if(re.year!==re.rawyear){var ie=k.toString(),ue=re.rawyear.replace(/[^0-9]/g,""),ne=ie.slice(0,ue.length),pe=ie.slice(ue.length);if(ue.length===2&&ue===ne){var be=new Date(k,re.month-1,re.day);re.day==be.getDate()&&(!he.max||he.max.date.getTime()>=be.getTime())&&(re.date.setFullYear(k),re.year=ie,le.insert=[{pos:le.pos+1,c:pe[0]},{pos:le.pos+2,c:pe[1]}])}}return le}(te,Z,W)),Z=function(re,le,he,ie,ue){if(!le)return le;if(le&&he.min&&!isNaN(he.min.date.getTime())){var ne;for(re.reset(),T(he).lastIndex=0;ne=T(he).exec(he.inputFormat);){var pe;if((pe=M(ne))&&pe[3]){for(var be=pe[1],Pe=re[pe[2]],Ie=he.min[pe[2]],ct=he.max?he.max[pe[2]]:Ie,De=[],dt=!1,_t=0;_t<Ie.length;_t++)ie.validPositions[_t+ne.index]!==void 0||dt?(De[_t]=Pe[_t],dt=dt||Pe[_t]>Ie[_t]):(De[_t]=Ie[_t],pe[2]==="year"&&Pe.length-1==_t&&Ie!=ct&&(De=(parseInt(De.join(""))+1).toString().split("")),pe[2]==="ampm"&&Ie!=ct&&he.min.date.getTime()>re.date.getTime()&&(De[_t]=ct[_t]));be.call(re._date,De.join(""))}}le=he.min.date.getTime()<=re.date.getTime(),re.reInit()}return le&&he.max&&(isNaN(he.max.date.getTime())||(le=he.max.date.getTime()>=re.date.getTime())),le}(te,Z=E.call(this,te,Z,W),W,Y)),D!==void 0&&Z&&L.pos!==D?{buffer:z(W.inputFormat,te,W).split(""),refreshFromBuffer:{start:D,end:L.pos},pos:L.caret||L.pos}:Z},onKeyDown:function(P,D,I,L){P.ctrlKey&&P.key===c.keys.ArrowRight&&(this.inputmask._valueSet(U(new Date,L)),b(this).trigger("setvalue"))},onUnMask:function(P,D,I){return D&&z(I.outputFormat,N(P,I.inputFormat,I),I,!0)},casing:function(P,D,I,L){return D.nativeDef.indexOf("[ap]")==0?P.toLowerCase():D.nativeDef.indexOf("[AP]")==0?P.toUpperCase():P},onBeforeMask:function(P,D){return Object.prototype.toString.call(P)==="[object Date]"&&(P=U(P,D)),P},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(s,o,u){var l,c=(l=u(2394))&&l.__esModule?l:{default:l},d=u(8711),p=u(4713);c.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var v=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function _(h,y,x,S,b){return x-1>-1&&y.buffer[x-1]!=="."?(h=y.buffer[x-1]+h,h=x-2>-1&&y.buffer[x-2]!=="."?y.buffer[x-2]+h:"0"+h):h="00"+h,v.test(h)}c.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:_},j:{validator:_},k:{validator:_},l:{validator:_}},onUnMask:function(h,y,x){return h},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(h){var y=h.separator,x=h.quantifier,S="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",b=S;if(y)for(var f=0;f<x;f++)b+="[".concat(y).concat(S,"]");return b},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(h,y){return(h=h.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(h,y,x){return h},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(h,y,x,S,b,f,k){var g=p.getMaskTemplate.call(this,!0,d.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(g.join(""))}}})},207:function(s,o,u){var l=v(u(2394)),c=v(u(7184)),d=u(8711),p=u(2839);function v(f){return f&&f.__esModule?f:{default:f}}var _=l.default.dependencyLib;function h(f,k){for(var g="",m=0;m<f.length;m++)l.default.prototype.definitions[f.charAt(m)]||k.definitions[f.charAt(m)]||k.optionalmarker[0]===f.charAt(m)||k.optionalmarker[1]===f.charAt(m)||k.quantifiermarker[0]===f.charAt(m)||k.quantifiermarker[1]===f.charAt(m)||k.groupmarker[0]===f.charAt(m)||k.groupmarker[1]===f.charAt(m)||k.alternatormarker===f.charAt(m)?g+="\\"+f.charAt(m):g+=f.charAt(m);return g}function y(f,k,g,m){if(f.length>0&&k>0&&(!g.digitsOptional||m)){var w=f.indexOf(g.radixPoint),O=!1;g.negationSymbol.back===f[f.length-1]&&(O=!0,f.length--),w===-1&&(f.push(g.radixPoint),w=f.length-1);for(var C=1;C<=k;C++)isFinite(f[w+C])||(f[w+C]="0")}return O&&f.push(g.negationSymbol.back),f}function x(f,k){var g=0;for(var m in f==="+"&&(g=d.seekNext.call(this,k.validPositions.length-1)),k.tests)if((m=parseInt(m))>=g){for(var w=0,O=k.tests[m].length;w<O;w++)if((k.validPositions[m]===void 0||f==="-")&&k.tests[m][w].match.def===f)return m+(k.validPositions[m]!==void 0&&f!=="-"?1:0)}return g}function S(f,k){for(var g=-1,m=0,w=k.validPositions.length;m<w;m++){var O=k.validPositions[m];if(O&&O.match.def===f){g=m;break}}return g}function b(f,k,g,m,w){var O=k.buffer?k.buffer.indexOf(w.radixPoint):-1,C=(O!==-1||m&&w.jitMasking)&&new RegExp(w.definitions[9].validator).test(f);return w._radixDance&&O!==-1&&C&&k.validPositions[O]==null?{insert:{pos:O===g?O+1:O,c:w.radixPoint},pos:g}:C}l.default.extendAliases({numeric:{mask:function(f){f.repeat=0,f.groupSeparator===f.radixPoint&&f.digits&&f.digits!=="0"&&(f.radixPoint==="."?f.groupSeparator=",":f.radixPoint===","?f.groupSeparator=".":f.groupSeparator=""),f.groupSeparator===" "&&(f.skipOptionalPartCharacter=void 0),f.placeholder.length>1&&(f.placeholder=f.placeholder.charAt(0)),f.positionCaretOnClick==="radixFocus"&&f.placeholder===""&&(f.positionCaretOnClick="lvp");var k="0",g=f.radixPoint;f.numericInput===!0&&f.__financeInput===void 0?(k="1",f.positionCaretOnClick=f.positionCaretOnClick==="radixFocus"?"lvp":f.positionCaretOnClick,f.digitsOptional=!1,isNaN(f.digits)&&(f.digits=2),f._radixDance=!1,g=f.radixPoint===","?"?":"!",f.radixPoint!==""&&f.definitions[g]===void 0&&(f.definitions[g]={},f.definitions[g].validator="["+f.radixPoint+"]",f.definitions[g].placeholder=f.radixPoint,f.definitions[g].static=!0,f.definitions[g].generated=!0)):(f.__financeInput=!1,f.numericInput=!0);var m,w="[+]";if(w+=h(f.prefix,f),f.groupSeparator!==""?(f.definitions[f.groupSeparator]===void 0&&(f.definitions[f.groupSeparator]={},f.definitions[f.groupSeparator].validator="["+f.groupSeparator+"]",f.definitions[f.groupSeparator].placeholder=f.groupSeparator,f.definitions[f.groupSeparator].static=!0,f.definitions[f.groupSeparator].generated=!0),w+=f._mask(f)):w+="9{+}",f.digits!==void 0&&f.digits!==0){var O=f.digits.toString().split(",");isFinite(O[0])&&O[1]&&isFinite(O[1])?w+=g+k+"{"+f.digits+"}":(isNaN(f.digits)||parseInt(f.digits)>0)&&(f.digitsOptional||f.jitMasking?(m=w+g+k+"{0,"+f.digits+"}",f.keepStatic=!0):w+=g+k+"{"+f.digits+"}")}else f.inputmode="numeric";return w+=h(f.suffix,f),w+="[-]",m&&(w=[m+h(f.suffix,f)+"[-]",w]),f.greedy=!1,function(C){C.parseMinMaxOptions===void 0&&(C.min!==null&&(C.min=C.min.toString().replace(new RegExp((0,c.default)(C.groupSeparator),"g"),""),C.radixPoint===","&&(C.min=C.min.replace(C.radixPoint,".")),C.min=isFinite(C.min)?parseFloat(C.min):NaN,isNaN(C.min)&&(C.min=Number.MIN_VALUE)),C.max!==null&&(C.max=C.max.toString().replace(new RegExp((0,c.default)(C.groupSeparator),"g"),""),C.radixPoint===","&&(C.max=C.max.replace(C.radixPoint,".")),C.max=isFinite(C.max)?parseFloat(C.max):NaN,isNaN(C.max)&&(C.max=Number.MAX_VALUE)),C.parseMinMaxOptions="done")}(f),f.radixPoint!==""&&f.substituteRadixPoint&&(f.substitutes[f.radixPoint=="."?",":"."]=f.radixPoint),w},_mask:function(f){return"("+f.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:b},1:{validator:b,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(f,k,g,m,w){return w.allowMinus&&(f==="-"||f===w.negationSymbol.front)}},"-":{validator:function(f,k,g,m,w){return w.allowMinus&&f===w.negationSymbol.back}}},preValidation:function(f,k,g,m,w,O,C,M){if(w.__financeInput!==!1&&g===w.radixPoint)return!1;var T=f.indexOf(w.radixPoint),E=k;if(k=function(U,q,P,D,I){return I._radixDance&&I.numericInput&&q!==I.negationSymbol.back&&U<=P&&(P>0||q==I.radixPoint)&&(D.validPositions[U-1]===void 0||D.validPositions[U-1].input!==I.negationSymbol.back)&&(U-=1),U}(k,g,T,O,w),g==="-"||g===w.negationSymbol.front){if(w.allowMinus!==!0)return!1;var z=!1,F=S("+",O),N=S("-",O);return F!==-1&&(z=[F,N]),z!==!1?{remove:z,caret:E-w.negationSymbol.back.length}:{insert:[{pos:x.call(this,"+",O),c:w.negationSymbol.front,fromIsValid:!0},{pos:x.call(this,"-",O),c:w.negationSymbol.back,fromIsValid:void 0}],caret:E+w.negationSymbol.back.length}}if(g===w.groupSeparator)return{caret:E};if(M)return!0;if(T!==-1&&w._radixDance===!0&&m===!1&&g===w.radixPoint&&w.digits!==void 0&&(isNaN(w.digits)||parseInt(w.digits)>0)&&T!==k)return{caret:w._radixDance&&k===T-1?T+1:T};if(w.__financeInput===!1){if(m){if(w.digitsOptional)return{rewritePosition:C.end};if(!w.digitsOptional){if(C.begin>T&&C.end<=T)return g===w.radixPoint?{insert:{pos:T+1,c:"0",fromIsValid:!0},rewritePosition:T}:{rewritePosition:T+1};if(C.begin<T)return{rewritePosition:C.begin-1}}}else if(!w.showMaskOnHover&&!w.showMaskOnFocus&&!w.digitsOptional&&w.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:T}}return{rewritePosition:k}},postValidation:function(f,k,g,m,w,O,C){if(m===!1)return m;if(C)return!0;if(w.min!==null||w.max!==null){var M=w.onUnMask(f.slice().reverse().join(""),void 0,_.extend({},w,{unmaskAsNumber:!0}));if(w.min!==null&&M<w.min&&(M.toString().length>w.min.toString().length||M<0))return!1;if(w.max!==null&&M>w.max)return!!w.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:y(w.max.toString().replace(".",w.radixPoint).split(""),w.digits,w).reverse()}}return m},onUnMask:function(f,k,g){if(k===""&&g.nullable===!0)return k;var m=f.replace(g.prefix,"");return m=(m=m.replace(g.suffix,"")).replace(new RegExp((0,c.default)(g.groupSeparator),"g"),""),g.placeholder.charAt(0)!==""&&(m=m.replace(new RegExp(g.placeholder.charAt(0),"g"),"0")),g.unmaskAsNumber?(g.radixPoint!==""&&m.indexOf(g.radixPoint)!==-1&&(m=m.replace(c.default.call(this,g.radixPoint),".")),m=(m=m.replace(new RegExp("^"+(0,c.default)(g.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(g.negationSymbol.back)+"$"),""),Number(m)):m},isComplete:function(f,k){var g=(k.numericInput?f.slice().reverse():f).join("");return g=(g=(g=(g=(g=g.replace(new RegExp("^"+(0,c.default)(k.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(k.negationSymbol.back)+"$"),"")).replace(k.prefix,"")).replace(k.suffix,"")).replace(new RegExp((0,c.default)(k.groupSeparator)+"([0-9]{3})","g"),"$1"),k.radixPoint===","&&(g=g.replace((0,c.default)(k.radixPoint),".")),isFinite(g)},onBeforeMask:function(f,k){var g=k.radixPoint||",";isFinite(k.digits)&&(k.digits=parseInt(k.digits)),typeof f!="number"&&k.inputType!=="number"||g===""||(f=f.toString().replace(".",g));var m=f.charAt(0)==="-"||f.charAt(0)===k.negationSymbol.front,w=f.split(g),O=w[0].replace(/[^\-0-9]/g,""),C=w.length>1?w[1].replace(/[^0-9]/g,""):"",M=w.length>1;f=O+(C!==""?g+C:C);var T=0;if(g!==""&&(T=k.digitsOptional?k.digits<C.length?k.digits:C.length:k.digits,C!==""||!k.digitsOptional)){var E=Math.pow(10,T||1);f=f.replace((0,c.default)(g),"."),isNaN(parseFloat(f))||(f=(k.roundingFN(parseFloat(f)*E)/E).toFixed(T)),f=f.toString().replace(".",g)}if(k.digits===0&&f.indexOf(g)!==-1&&(f=f.substring(0,f.indexOf(g))),k.min!==null||k.max!==null){var z=f.toString().replace(g,".");k.min!==null&&z<k.min?f=k.min.toString().replace(".",g):k.max!==null&&z>k.max&&(f=k.max.toString().replace(".",g))}return m&&f.charAt(0)!=="-"&&(f="-"+f),y(f.toString().split(""),T,k,M).join("")},onBeforeWrite:function(f,k,g,m){function w(U,q){if(m.__financeInput!==!1||q){var P=U.indexOf(m.radixPoint);P!==-1&&U.splice(P,1)}if(m.groupSeparator!=="")for(;(P=U.indexOf(m.groupSeparator))!==-1;)U.splice(P,1);return U}var O,C;if(m.stripLeadingZeroes&&(C=function(U,q){var P=new RegExp("(^"+(q.negationSymbol.front!==""?(0,c.default)(q.negationSymbol.front)+"?":"")+(0,c.default)(q.prefix)+")(.*)("+(0,c.default)(q.suffix)+(q.negationSymbol.back!=""?(0,c.default)(q.negationSymbol.back)+"?":"")+"$)").exec(U.slice().reverse().join("")),D=P?P[2]:"",I=!1;return D&&(D=D.split(q.radixPoint.charAt(0))[0],I=new RegExp("^[0"+q.groupSeparator+"]*").exec(D)),!(!I||!(I[0].length>1||I[0].length>0&&I[0].length<D.length))&&I}(k,m)))for(var M=k.join("").lastIndexOf(C[0].split("").reverse().join(""))-(C[0]==C.input?0:1),T=C[0]==C.input?1:0,E=C[0].length-T;E>0;E--)delete this.maskset.validPositions[M+E],delete k[M+E];if(f)switch(f.type){case"blur":case"checkval":if(m.min!==null){var z=m.onUnMask(k.slice().reverse().join(""),void 0,_.extend({},m,{unmaskAsNumber:!0}));if(m.min!==null&&z<m.min)return{refreshFromBuffer:!0,buffer:y(m.min.toString().replace(".",m.radixPoint).split(""),m.digits,m).reverse()}}if(k[k.length-1]===m.negationSymbol.front){var F=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(w(k.slice(),!0).reverse().join(""));(F?F[2]:"")==0&&(O={refreshFromBuffer:!0,buffer:[0]})}else m.radixPoint!==""&&k.indexOf(m.radixPoint)===m.suffix.length&&(O&&O.buffer?O.buffer.splice(0,1+m.suffix.length):(k.splice(0,1+m.suffix.length),O={refreshFromBuffer:!0,buffer:w(k)}));if(m.enforceDigitsOnBlur){var N=(O=O||{})&&O.buffer||k.slice().reverse();O.refreshFromBuffer=!0,O.buffer=y(N,m.digits,m,!0).reverse()}}return O},onKeyDown:function(f,k,g,m){var w,O=_(this);if(f.location!=3){var C,M=f.key;if((C=m.shortcuts&&m.shortcuts[M])&&C.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(C)),O.trigger("setvalue"),!1}if(f.ctrlKey)switch(f.key){case p.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(m.step)),O.trigger("setvalue"),!1;case p.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(m.step)),O.trigger("setvalue"),!1}if(!f.shiftKey&&(f.key===p.keys.Delete||f.key===p.keys.Backspace||f.key===p.keys.BACKSPACE_SAFARI)&&g.begin!==k.length){if(k[f.key===p.keys.Delete?g.begin-1:g.end]===m.negationSymbol.front)return w=k.slice().reverse(),m.negationSymbol.front!==""&&w.shift(),m.negationSymbol.back!==""&&w.pop(),O.trigger("setvalue",[w.join(""),g.begin]),!1;if(m._radixDance===!0){var T=k.indexOf(m.radixPoint);if(m.digitsOptional){if(T===0)return(w=k.slice().reverse()).pop(),O.trigger("setvalue",[w.join(""),g.begin>=w.length?w.length:g.begin]),!1}else if(T!==-1&&(g.begin<T||g.end<T||f.key===p.keys.Delete&&(g.begin===T||g.begin-1===T))){var E=void 0;return g.begin===g.end&&(f.key===p.keys.Backspace||f.key===p.keys.BACKSPACE_SAFARI?g.begin++:f.key===p.keys.Delete&&g.begin-1===T&&(E=_.extend({},g),g.begin--,g.end--)),(w=k.slice().reverse()).splice(w.length-g.begin,g.begin-g.end+1),w=y(w,m.digits,m).join(""),E&&(g=E),O.trigger("setvalue",[w,g.begin>=w.length?T+1:g.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(f){return"("+f.groupSeparator+"99){*|1}("+f.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(s,o,u){var l;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c=((l=u(8741))&&l.__esModule?l:{default:l}).default?window:{};o.default=c},7760:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.HandleNativePlaceholder=function(b,f){var k=b?b.inputmask:this;if(v.ie){if(b.inputmask._valueGet()!==f&&(b.placeholder!==f||b.placeholder==="")){var g=d.getBuffer.call(k).slice(),m=b.inputmask._valueGet();if(m!==f){var w=d.getLastValidPosition.call(k);w===-1&&m===d.getBufferTemplate.call(k).join("")?g=[]:w!==-1&&y.call(k,g),S(b,g)}}}else b.placeholder!==f&&(b.placeholder=f,b.placeholder===""&&b.removeAttribute("placeholder"))},o.applyInputValue=h,o.checkVal=x,o.clearOptionalTail=y,o.unmaskedvalue=function(b){var f=b?b.inputmask:this,k=f.opts,g=f.maskset;if(b){if(b.inputmask===void 0)return b.value;b.inputmask&&b.inputmask.refreshValue&&h(b,b.inputmask._valueGet(!0))}for(var m=[],w=g.validPositions,O=0,C=w.length;O<C;O++)w[O]&&w[O].match&&(w[O].match.static!=1||Array.isArray(g.metadata)&&w[O].generatedInput!==!0)&&m.push(w[O].input);var M=m.length===0?"":(f.isRTL?m.reverse():m).join("");if(typeof k.onUnMask=="function"){var T=(f.isRTL?d.getBuffer.call(f).slice().reverse():d.getBuffer.call(f)).join("");M=k.onUnMask.call(f,T,M,k)}return M},o.writeBuffer=S;var l=u(2839),c=u(4713),d=u(8711),p=u(7215),v=u(9845),_=u(6030);function h(b,f){var k=b?b.inputmask:this,g=k.opts;b.inputmask.refreshValue=!1,typeof g.onBeforeMask=="function"&&(f=g.onBeforeMask.call(k,f,g)||f),x(b,!0,!1,f=(f||"").toString().split("")),k.undoValue=k._valueGet(!0),(g.clearMaskOnLostFocus||g.clearIncomplete)&&b.inputmask._valueGet()===d.getBufferTemplate.call(k).join("")&&d.getLastValidPosition.call(k)===-1&&b.inputmask._valueSet("")}function y(b){b.length=0;for(var f,k=c.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(f=k.shift())!==void 0;)b.push(f);return b}function x(b,f,k,g,m){var w=b?b.inputmask:this,O=w.maskset,C=w.opts,M=w.dependencyLib,T=g.slice(),E="",z=-1,F=void 0,N=C.skipOptionalPartCharacter;C.skipOptionalPartCharacter="",d.resetMaskSet.call(w),O.tests={},z=C.radixPoint?d.determineNewCaretPosition.call(w,{begin:0,end:0},!1,C.__financeInput===!1?"radixFocus":void 0).begin:0,O.p=z,w.caretPos={begin:z};var U=[],q=w.caretPos;if(T.forEach(function(Y,Q){if(Y!==void 0){var J=new M.Event("_checkval");J.key=Y,E+=Y;var R=d.getLastValidPosition.call(w,void 0,!0);(function(A,$){for(var j=c.getMaskTemplate.call(w,!0,0).slice(A,d.seekNext.call(w,A,!1,!1)).join("").replace(/'/g,""),B=j.indexOf($);B>0&&j[B-1]===" ";)B--;var G=B===0&&!d.isMask.call(w,A)&&(c.getTest.call(w,A).match.nativeDef===$.charAt(0)||c.getTest.call(w,A).match.static===!0&&c.getTest.call(w,A).match.nativeDef==="'"+$.charAt(0)||c.getTest.call(w,A).match.nativeDef===" "&&(c.getTest.call(w,A+1).match.nativeDef===$.charAt(0)||c.getTest.call(w,A+1).match.static===!0&&c.getTest.call(w,A+1).match.nativeDef==="'"+$.charAt(0)));if(!G&&B>0&&!d.isMask.call(w,A,!1,!0)){var Z=d.seekNext.call(w,A);w.caretPos.begin<Z&&(w.caretPos={begin:Z})}return G})(z,E)?F=_.EventHandlers.keypressEvent.call(w,J,!0,!1,k,R+1):(F=_.EventHandlers.keypressEvent.call(w,J,!0,!1,k,w.caretPos.begin))&&(z=w.caretPos.begin+1,E=""),F?(F.pos!==void 0&&O.validPositions[F.pos]&&O.validPositions[F.pos].match.static===!0&&O.validPositions[F.pos].alternation===void 0&&(U.push(F.pos),w.isRTL||(F.forwardPosition=F.pos+1)),S.call(w,void 0,d.getBuffer.call(w),F.forwardPosition,J,!1),w.caretPos={begin:F.forwardPosition,end:F.forwardPosition},q=w.caretPos):O.validPositions[Q]===void 0&&T[Q]===c.getPlaceholder.call(w,Q)&&d.isMask.call(w,Q,!0)?w.caretPos.begin++:w.caretPos=q}}),U.length>0){var P,D,I=d.seekNext.call(w,-1,void 0,!1);if(!p.isComplete.call(w,d.getBuffer.call(w))&&U.length<=I||p.isComplete.call(w,d.getBuffer.call(w))&&U.length>0&&U.length!==I&&U[0]===0)for(var L=I;(P=U.shift())!==void 0;){var W=new M.Event("_checkval");if((D=O.validPositions[P]).generatedInput=!0,W.key=D.input,(F=_.EventHandlers.keypressEvent.call(w,W,!0,!1,k,L))&&F.pos!==void 0&&F.pos!==P&&O.validPositions[F.pos]&&O.validPositions[F.pos].match.static===!0)U.push(F.pos);else if(!F)break;L++}}f&&S.call(w,b,d.getBuffer.call(w),F?F.forwardPosition:w.caretPos.begin,m||new M.Event("checkval"),m&&(m.type==="input"&&w.undoValue!==d.getBuffer.call(w).join("")||m.type==="paste")),C.skipOptionalPartCharacter=N}function S(b,f,k,g,m){var w=b?b.inputmask:this,O=w.opts,C=w.dependencyLib;if(g&&typeof O.onBeforeWrite=="function"){var M=O.onBeforeWrite.call(w,g,f,k,O);if(M){if(M.refreshFromBuffer){var T=M.refreshFromBuffer;p.refreshFromBuffer.call(w,T===!0?T:T.start,T.end,M.buffer||f),f=d.getBuffer.call(w,!0)}k!==void 0&&(k=M.caret!==void 0?M.caret:k)}}if(b!==void 0&&(b.inputmask._valueSet(f.join("")),k===void 0||g!==void 0&&g.type==="blur"||d.caret.call(w,b,k,void 0,void 0,g!==void 0&&g.type==="keydown"&&(g.key===l.keys.Delete||g.key===l.keys.Backspace)),m===!0)){var E=C(b),z=b.inputmask._valueGet();b.inputmask.skipInputEvent=!0,E.trigger("input"),setTimeout(function(){z===d.getBufferTemplate.call(w).join("")?E.trigger("cleared"):p.isComplete.call(w,f)===!0&&E.trigger("complete")},0)}}},2394:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var l=u(157),c=g(u(4963)),d=g(u(9380)),p=u(2391),v=u(4713),_=u(8711),h=u(7215),y=u(7760),x=u(9716),S=g(u(7392)),b=g(u(3976)),f=g(u(8741));function k(T){return k=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},k(T)}function g(T){return T&&T.__esModule?T:{default:T}}var m=d.default.document,w="_inputmask_opts";function O(T,E,z){if(f.default){if(!(this instanceof O))return new O(T,E,z);this.dependencyLib=c.default,this.el=void 0,this.events={},this.maskset=void 0,z!==!0&&(Object.prototype.toString.call(T)==="[object Object]"?E=T:(E=E||{},T&&(E.alias=T)),this.opts=c.default.extend(!0,{},this.defaults,E),this.noMasksCache=E&&E.definitions!==void 0,this.userOptions=E||{},C(this.opts.alias,E,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 C(T,E,z){var F=O.prototype.aliases[T];return F?(F.alias&&C(F.alias,void 0,z),c.default.extend(!0,z,F),c.default.extend(!0,z,E),!0):(z.mask===null&&(z.mask=T),!1)}O.prototype={dataAttribute:"data-inputmask",defaults:b.default,definitions:S.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(T){var E=this;return typeof T=="string"&&(T=m.getElementById(T)||m.querySelectorAll(T)),(T=T.nodeName?[T]:Array.isArray(T)?T:[].slice.call(T)).forEach(function(z,F){var N=c.default.extend(!0,{},E.opts);if(function(q,P,D,I){function L(A,$){var j=I===""?A:I+"-"+A;($=$!==void 0?$:q.getAttribute(j))!==null&&(typeof $=="string"&&(A.indexOf("on")===0?$=d.default[$]:$==="false"?$=!1:$==="true"&&($=!0)),D[A]=$)}if(P.importDataAttributes===!0){var W,Y,Q,J,R=q.getAttribute(I);if(R&&R!==""&&(R=R.replace(/'/g,'"'),Y=JSON.parse("{"+R+"}")),Y){for(J in Q=void 0,Y)if(J.toLowerCase()==="alias"){Q=Y[J];break}}for(W in L("alias",Q),D.alias&&C(D.alias,D,P),P){if(Y){for(J in Q=void 0,Y)if(J.toLowerCase()===W.toLowerCase()){Q=Y[J];break}}L(W,Q)}}return c.default.extend(!0,P,D),(q.dir==="rtl"||P.rightAlign)&&(q.style.textAlign="right"),(q.dir==="rtl"||P.numericInput)&&(q.dir="ltr",q.removeAttribute("dir"),P.isRTL=!0),Object.keys(D).length}(z,N,c.default.extend(!0,{},E.userOptions),E.dataAttribute)){var U=(0,p.generateMaskSet)(N,E.noMasksCache);U!==void 0&&(z.inputmask!==void 0&&(z.inputmask.opts.autoUnmask=!0,z.inputmask.remove()),z.inputmask=new O(void 0,void 0,!0),z.inputmask.opts=N,z.inputmask.noMasksCache=E.noMasksCache,z.inputmask.userOptions=c.default.extend(!0,{},E.userOptions),z.inputmask.el=z,z.inputmask.$el=(0,c.default)(z),z.inputmask.maskset=U,c.default.data(z,w,E.userOptions),l.mask.call(z.inputmask))}}),T&&T[0]&&T[0].inputmask||this},option:function(T,E){return typeof T=="string"?this.opts[T]:k(T)==="object"?(c.default.extend(this.userOptions,T),this.el&&E!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(T){if(this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||T!==void 0){var E=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,T,this.opts)||T).split("");y.checkVal.call(this,void 0,!1,!1,E),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,_.getBuffer.call(this),0,this.opts)}return y.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){c.default.data(this.el,w,null);var T=this.opts.autoUnmask?(0,y.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);T!==_.getBufferTemplate.call(this).join("")?this._valueSet(T,this.opts.autoUnmask):this._valueSet(""),x.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}):m.__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,p.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?_.getBufferTemplate.call(this).reverse():_.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),h.isComplete.call(this,_.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var T=v.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(E){return E.mask!==T||(T=E,!1)}),T}return this.maskset.metadata},isValid:function(T){if(this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),T){var E=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,T,this.opts)||T).split("");y.checkVal.call(this,void 0,!0,!1,E)}else T=this.isRTL?_.getBuffer.call(this).slice().reverse().join(""):_.getBuffer.call(this).join("");for(var z=_.getBuffer.call(this),F=_.determineLastRequiredPosition.call(this),N=z.length-1;N>F&&!_.isMask.call(this,N);N--);return z.splice(F,N+1-F),h.isComplete.call(this,z)&&T===(this.isRTL?_.getBuffer.call(this).slice().reverse().join(""):_.getBuffer.call(this).join(""))},format:function(T,E){this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache);var z=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,T,this.opts)||T).split("");y.checkVal.call(this,void 0,!0,!1,z);var F=this.isRTL?_.getBuffer.call(this).slice().reverse().join(""):_.getBuffer.call(this).join("");return E?{value:F,metadata:this.getmetadata()}:F},setValue:function(T){this.el&&(0,c.default)(this.el).trigger("setvalue",[T])},analyseMask:p.analyseMask},O.extendDefaults=function(T){c.default.extend(!0,O.prototype.defaults,T)},O.extendDefinitions=function(T){c.default.extend(!0,O.prototype.definitions,T)},O.extendAliases=function(T){c.default.extend(!0,O.prototype.aliases,T)},O.format=function(T,E,z){return O(E).format(T,z)},O.unmask=function(T,E){return O(E).unmaskedvalue(T)},O.isValid=function(T,E){return O(E).isValid(T)},O.remove=function(T){typeof T=="string"&&(T=m.getElementById(T)||m.querySelectorAll(T)),(T=T.nodeName?[T]:T).forEach(function(E){E.inputmask&&E.inputmask.remove()})},O.setValue=function(T,E){typeof T=="string"&&(T=m.getElementById(T)||m.querySelectorAll(T)),(T=T.nodeName?[T]:T).forEach(function(z){z.inputmask?z.inputmask.setValue(E):(0,c.default)(z).trigger("setvalue",[E])})},O.dependencyLib=c.default,d.default.Inputmask=O;var M=O;o.default=M},5296:function(s,o,u){function l(g){return l=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},l(g)}var c=b(u(9380)),d=b(u(2394)),p=b(u(8741));function v(g){var m=y();return function(){var w,O=S(g);if(m){var C=S(this).constructor;w=Reflect.construct(O,arguments,C)}else w=O.apply(this,arguments);return function(M,T){if(T&&(l(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(M)}(this,w)}}function _(g){var m=typeof Map=="function"?new Map:void 0;return _=function(w){if(w===null||(O=w,Function.toString.call(O).indexOf("[native code]")===-1))return w;var O;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(m!==void 0){if(m.has(w))return m.get(w);m.set(w,C)}function C(){return h(w,arguments,S(this).constructor)}return C.prototype=Object.create(w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),x(C,w)},_(g)}function h(g,m,w){return h=y()?Reflect.construct.bind():function(O,C,M){var T=[null];T.push.apply(T,C);var E=new(Function.bind.apply(O,T));return M&&x(E,M.prototype),E},h.apply(null,arguments)}function y(){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 x(g,m){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,O){return w.__proto__=O,w},x(g,m)}function S(g){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},S(g)}function b(g){return g&&g.__esModule?g:{default:g}}var f=c.default.document;if(p.default&&f&&f.head&&f.head.attachShadow&&c.default.customElements&&c.default.customElements.get("input-mask")===void 0){var k=function(g){(function(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(M&&M.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),M&&x(C,M)})(O,g);var m,w=v(O);function O(){var C;(function(N,U){if(!(N instanceof U))throw new TypeError("Cannot call a class as a function")})(this,O);var M=(C=w.call(this)).getAttributeNames(),T=C.attachShadow({mode:"closed"}),E=f.createElement("input");for(var z in E.type="text",T.appendChild(E),M)Object.prototype.hasOwnProperty.call(M,z)&&E.setAttribute(M[z],C.getAttribute(M[z]));var F=new d.default;return F.dataAttribute="",F.mask(E),E.inputmask.shadowRoot=T,C}return m=O,Object.defineProperty(m,"prototype",{writable:!1}),m}(_(HTMLElement));c.default.customElements.define("input-mask",k)}},2839:function(s,o){function u(v,_){return function(h){if(Array.isArray(h))return h}(v)||function(h,y){var x=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(x!=null){var S,b,f,k,g=[],m=!0,w=!1;try{if(f=(x=x.call(h)).next,y===0){if(Object(x)!==x)return;m=!1}else for(;!(m=(S=f.call(x)).done)&&(g.push(S.value),g.length!==y);m=!0);}catch(O){w=!0,b=O}finally{try{if(!m&&x.return!=null&&(k=x.return(),Object(k)!==k))return}finally{if(w)throw b}}return g}}(v,_)||function(h,y){if(h){if(typeof h=="string")return l(h,y);var x=Object.prototype.toString.call(h).slice(8,-1);if(x==="Object"&&h.constructor&&(x=h.constructor.name),x==="Map"||x==="Set")return Array.from(h);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return l(h,y)}}(v,_)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
286
286
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l(v,_){(_==null||_>v.length)&&(_=v.length);for(var h=0,y=new Array(_);h<_;h++)y[h]=v[h];return y}Object.defineProperty(o,"__esModule",{value:!0}),o.keys=o.keyCode=void 0,o.toKey=function(v,_){return d[v]||(_?String.fromCharCode(v):String.fromCharCode(v).toLowerCase())},o.toKeyCode=function(v){return c[v]};var c={AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,BACKSPACE_SAFARI:127,CapsLock:20,Delete:46,End:35,Enter:13,Escape:27,Home:36,Insert:45,PageDown:34,PageUp:33,Space:32,Tab:9,c:67,x:88,z:90,Shift:16,Control:17,Alt:18,Pause:19,Meta_LEFT:91,Meta_RIGHT:92,ContextMenu:93,Process:229,Unidentified:229,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};o.keyCode=c;var d=Object.entries(c).reduce(function(v,_){var h=u(_,2),y=h[0],x=h[1];return v[x]=v[x]===void 0?y:v[x],v},{}),p=Object.entries(c).reduce(function(v,_){var h=u(_,2),y=h[0];return h[1],v[y]=y==="Space"?" ":y,v},{});o.keys=p},2391:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.analyseMask=function(h,y,x){var S,b,f,k,g,m,w=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,O=/\[\^?]?(?:[^\\\]]+|\\[\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,C=!1,M=new c.default,T=[],E=[],z=!1;function F(j,B,G){G=G!==void 0?G:j.matches.length;var Z=j.matches[G-1];if(y){if(B.indexOf("[")===0||C&&/\\d|\\s|\\w|\\p/i.test(B)||B==="."){var te=x.casing?"i":"";/^\\p\{.*}$/i.test(B)&&(te+="u"),j.matches.splice(G++,0,{fn:new RegExp(B,te),static:!1,optionality:!1,newBlockMarker:Z===void 0?"master":Z.def!==B,casing:null,def:B,placeholder:void 0,nativeDef:B})}else C&&(B=B[B.length-1]),B.split("").forEach(function(le,he){Z=j.matches[G-1],j.matches.splice(G++,0,{fn:/[a-z]/i.test(x.staticDefinitionSymbol||le)?new RegExp("["+(x.staticDefinitionSymbol||le)+"]",x.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:Z===void 0?"master":Z.def!==le&&Z.static!==!0,casing:null,def:x.staticDefinitionSymbol||le,placeholder:x.staticDefinitionSymbol!==void 0?le:void 0,nativeDef:(C?"'":"")+le})});C=!1}else{var re=x.definitions&&x.definitions[B]||x.usePrototypeDefinitions&&d.default.prototype.definitions[B];re&&!C?j.matches.splice(G++,0,{fn:re.validator?typeof re.validator=="string"?new RegExp(re.validator,x.casing?"i":""):new function(){this.test=re.validator}:new RegExp("."),static:re.static||!1,optionality:re.optional||!1,defOptionality:re.optional||!1,newBlockMarker:Z===void 0||re.optional?"master":Z.def!==(re.definitionSymbol||B),casing:re.casing,def:re.definitionSymbol||B,placeholder:re.placeholder,nativeDef:B,generated:re.generated}):(j.matches.splice(G++,0,{fn:/[a-z]/i.test(x.staticDefinitionSymbol||B)?new RegExp("["+(x.staticDefinitionSymbol||B)+"]",x.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:Z===void 0?"master":Z.def!==B&&Z.static!==!0,casing:null,def:x.staticDefinitionSymbol||B,placeholder:x.staticDefinitionSymbol!==void 0?B:void 0,nativeDef:(C?"'":"")+B}),C=!1)}}function N(){if(T.length>0){if(F(k=T[T.length-1],b),k.isAlternator){g=T.pop();for(var j=0;j<g.matches.length;j++)g.matches[j].isGroup&&(g.matches[j].isGroup=!1);T.length>0?(k=T[T.length-1]).matches.push(g):M.matches.push(g)}}else F(M,b)}function U(j){var B=new c.default(!0);return B.openGroup=!1,B.matches=j,B}function q(){if((f=T.pop()).openGroup=!1,f!==void 0)if(T.length>0){if((k=T[T.length-1]).matches.push(f),k.isAlternator){for(var j=(g=T.pop()).matches[0].matches?g.matches[0].matches.length:1,B=0;B<g.matches.length;B++)g.matches[B].isGroup=!1,g.matches[B].alternatorGroup=!1,x.keepStatic===null&&j<(g.matches[B].matches?g.matches[B].matches.length:1)&&(x.keepStatic=!0),j=g.matches[B].matches?g.matches[B].matches.length:1;T.length>0?(k=T[T.length-1]).matches.push(g):M.matches.push(g)}}else M.matches.push(f);else N()}function P(j){var B=j.pop();return B.isQuantifier&&(B=U([j.pop(),B])),B}for(y&&(x.optionalmarker[0]=void 0,x.optionalmarker[1]=void 0);S=y?O.exec(h):w.exec(h);){if(b=S[0],y){switch(b.charAt(0)){case"?":b="{0,1}";break;case"+":case"*":b="{"+b+"}";break;case"|":if(T.length===0){var D=U(M.matches);D.openGroup=!0,T.push(D),M.matches=[],z=!0}}switch(b){case"\\d":b="[0-9]";break;case"\\p":b+=O.exec(h)[0],b+=O.exec(h)[0]}}if(C)N();else switch(b.charAt(0)){case"$":case"^":y||N();break;case x.escapeChar:C=!0,y&&N();break;case x.optionalmarker[1]:case x.groupmarker[1]:q();break;case x.optionalmarker[0]:T.push(new c.default(!1,!0));break;case x.groupmarker[0]:T.push(new c.default(!0));break;case x.quantifiermarker[0]:var I=new c.default(!1,!1,!0),L=(b=b.replace(/[{}?]/g,"")).split("|"),W=L[0].split(","),Y=isNaN(W[0])?W[0]:parseInt(W[0]),Q=W.length===1?Y:isNaN(W[1])?W[1]:parseInt(W[1]),J=isNaN(L[1])?L[1]:parseInt(L[1]);Y!=="*"&&Y!=="+"||(Y=Q==="*"?0:1),I.quantifier={min:Y,max:Q,jit:J};var R=T.length>0?T[T.length-1].matches:M.matches;(S=R.pop()).isGroup||(S=U([S])),R.push(S),R.push(I);break;case x.alternatormarker:if(T.length>0){var A=(k=T[T.length-1]).matches[k.matches.length-1];m=k.openGroup&&(A.matches===void 0||A.isGroup===!1&&A.isAlternator===!1)?T.pop():P(k.matches)}else m=P(M.matches);if(m.isAlternator)T.push(m);else if(m.alternatorGroup?(g=T.pop(),m.alternatorGroup=!1):g=new c.default(!1,!1,!1,!0),g.matches.push(m),T.push(g),m.openGroup){m.openGroup=!1;var $=new c.default(!0);$.alternatorGroup=!0,T.push($)}break;default:N()}}for(z&&q();T.length>0;)f=T.pop(),M.matches.push(f);return M.matches.length>0&&(function j(B){B&&B.matches&&B.matches.forEach(function(G,Z){var te=B.matches[Z+1];(te===void 0||te.matches===void 0||te.isQuantifier===!1)&&G&&G.isGroup&&(G.isGroup=!1,y||(F(G,x.groupmarker[0],0),G.openGroup!==!0&&F(G,x.groupmarker[1]))),j(G)})}(M),E.push(M)),(x.numericInput||x.isRTL)&&function j(B){for(var G in B.matches=B.matches.reverse(),B.matches)if(Object.prototype.hasOwnProperty.call(B.matches,G)){var Z=parseInt(G);if(B.matches[G].isQuantifier&&B.matches[Z+1]&&B.matches[Z+1].isGroup){var te=B.matches[G];B.matches.splice(G,1),B.matches.splice(Z+1,0,te)}B.matches[G].matches!==void 0?B.matches[G]=j(B.matches[G]):B.matches[G]=((re=B.matches[G])===x.optionalmarker[0]?re=x.optionalmarker[1]:re===x.optionalmarker[1]?re=x.optionalmarker[0]:re===x.groupmarker[0]?re=x.groupmarker[1]:re===x.groupmarker[1]&&(re=x.groupmarker[0]),re)}var re;return B}(E[0]),E},o.generateMaskSet=function(h,y){var x;function S(k,g){var m=g.repeat,w=g.groupmarker,O=g.quantifiermarker,C=g.keepStatic;if(m>0||m==="*"||m==="+"){var M=m==="*"?0:m==="+"?1:m;k=w[0]+k+w[1]+O[0]+M+","+m+O[1]}if(C===!0){var T=k.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));T&&T.forEach(function(E,z){var F=function(q,P){return function(D){if(Array.isArray(D))return D}(q)||function(D,I){var L=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(L!=null){var W,Y,Q,J,R=[],A=!0,$=!1;try{if(Q=(L=L.call(D)).next,I===0){if(Object(L)!==L)return;A=!1}else for(;!(A=(W=Q.call(L)).done)&&(R.push(W.value),R.length!==I);A=!0);}catch(j){$=!0,Y=j}finally{try{if(!A&&L.return!=null&&(J=L.return(),Object(J)!==J))return}finally{if($)throw Y}}return R}}(q,P)||function(D,I){if(D){if(typeof D=="string")return v(D,I);var L=Object.prototype.toString.call(D).slice(8,-1);if(L==="Object"&&D.constructor&&(L=D.constructor.name),L==="Map"||L==="Set")return Array.from(D);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return v(D,I)}}(q,P)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
287
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(E.split("["),2),N=F[0],U=F[1];U=U.replace("]",""),k=k.replace(new RegExp("".concat((0,p.default)(N),"\\[").concat((0,p.default)(U),"\\]")),N.charAt(0)===U.charAt(0)?"(".concat(N,"|").concat(N).concat(U,")"):"".concat(N,"[").concat(U,"]"))})}return k}function b(k,g,m){var w,O,C=!1;return k!==null&&k!==""||((C=m.regex!==null)?k=(k=m.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(C=!0,k=".*")),k.length===1&&m.greedy===!1&&m.repeat!==0&&(m.placeholder=""),k=S(k,m),O=C?"regex_"+m.regex:m.numericInput?k.split("").reverse().join(""):k,m.keepStatic!==null&&(O="ks_"+m.keepStatic+O),d.default.prototype.masksCache[O]===void 0||y===!0?(w={mask:k,maskToken:d.default.prototype.analyseMask(k,C,m),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:g,maskLength:void 0,jitOffset:{}},y!==!0&&(d.default.prototype.masksCache[O]=w,w=l.default.extend(!0,{},d.default.prototype.masksCache[O]))):w=l.default.extend(!0,{},d.default.prototype.masksCache[O]),w}if(typeof h.mask=="function"&&(h.mask=h.mask(h)),Array.isArray(h.mask)){if(h.mask.length>1){h.keepStatic===null&&(h.keepStatic=!0);var f=h.groupmarker[0];return(h.isRTL?h.mask.reverse():h.mask).forEach(function(k){f.length>1&&(f+=h.alternatormarker),k.mask!==void 0&&typeof k.mask!="function"?f+=k.mask:f+=k}),b(f+=h.groupmarker[1],h.mask,h)}h.mask=h.mask.pop()}return x=h.mask&&h.mask.mask!==void 0&&typeof h.mask.mask!="function"?b(h.mask.mask,h.mask,h):b(h.mask,h.mask,h),h.keepStatic===null&&(h.keepStatic=!1),x};var l=_(u(4963)),c=_(u(9695)),d=_(u(2394)),p=_(u(7184));function v(h,y){(y==null||y>h.length)&&(y=h.length);for(var x=0,S=new Array(y);x<y;x++)S[x]=h[x];return S}function _(h){return h&&h.__esModule?h:{default:h}}},157:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.mask=function(){var y=this,x=this.opts,S=this.el,b=this.dependencyLib;p.EventRuler.off(S);var f=function(m,w){m.tagName.toLowerCase()!=="textarea"&&w.ignorables.push(l.keys.Enter);var O=m.getAttribute("type"),C=m.tagName.toLowerCase()==="input"&&w.supportsInputType.includes(O)||m.isContentEditable||m.tagName.toLowerCase()==="textarea";if(!C)if(m.tagName.toLowerCase()==="input"){var M=document.createElement("input");M.setAttribute("type",O),C=M.type==="text",M=null}else C="partial";return C!==!1?function(T){var E,z;function F(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():c.getLastValidPosition.call(y)!==-1||w.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&w.clearMaskOnLostFocus?(y.isRTL?d.clearOptionalTail.call(y,c.getBuffer.call(y).slice()).reverse():d.clearOptionalTail.call(y,c.getBuffer.call(y).slice())).join(""):E.call(this):"":E.call(this)}function N(q){z.call(this,q),this.inputmask&&(0,d.applyInputValue)(this,q)}if(!T.inputmask.__valueGet){if(w.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var U=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(T),"value"):void 0;U&&U.get&&U.set?(E=U.get,z=U.set,Object.defineProperty(T,"value",{get:F,set:N,configurable:!0})):T.tagName.toLowerCase()!=="input"&&(E=function(){return this.textContent},z=function(q){this.textContent=q},Object.defineProperty(T,"value",{get:F,set:N,configurable:!0}))}else document.__lookupGetter__&&T.__lookupGetter__("value")&&(E=T.__lookupGetter__("value"),z=T.__lookupSetter__("value"),T.__defineGetter__("value",F),T.__defineSetter__("value",N));T.inputmask.__valueGet=E,T.inputmask.__valueSet=z}T.inputmask._valueGet=function(q){return y.isRTL&&q!==!0?E.call(this.el).split("").reverse().join(""):E.call(this.el)},T.inputmask._valueSet=function(q,P){z.call(this.el,q==null?"":P!==!0&&y.isRTL?q.split("").reverse().join(""):q)},E===void 0&&(E=function(){return this.value},z=function(q){this.value=q},function(q){if(b.valHooks&&(b.valHooks[q]===void 0||b.valHooks[q].inputmaskpatch!==!0)){var P=b.valHooks[q]&&b.valHooks[q].get?b.valHooks[q].get:function(I){return I.value},D=b.valHooks[q]&&b.valHooks[q].set?b.valHooks[q].set:function(I,L){return I.value=L,I};b.valHooks[q]={get:function(I){if(I.inputmask){if(I.inputmask.opts.autoUnmask)return I.inputmask.unmaskedvalue();var L=P(I);return c.getLastValidPosition.call(y,void 0,void 0,I.inputmask.maskset.validPositions)!==-1||w.nullable!==!0?L:""}return P(I)},set:function(I,L){var W=D(I,L);return I.inputmask&&(0,d.applyInputValue)(I,L),W},inputmaskpatch:!0}}}(T.type),function(q){p.EventRuler.on(q,"mouseenter",function(){var P=this,D=P.inputmask._valueGet(!0);D!=(P.inputmask.isRTL?c.getBuffer.call(P.inputmask).slice().reverse():c.getBuffer.call(P.inputmask)).join("")&&(0,d.applyInputValue)(P,D)})}(T))}}(m):m.inputmask=void 0,C}(S,x);if(f!==!1){y.originalPlaceholder=S.placeholder,y.maxLength=S!==void 0?S.maxLength:void 0,y.maxLength===-1&&(y.maxLength=void 0),"inputMode"in S&&S.getAttribute("inputmode")===null&&(S.inputMode=x.inputmode,S.setAttribute("inputmode",x.inputmode)),f===!0&&(x.showMaskOnFocus=x.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(S.autocomplete)===-1,v.iphone&&(x.insertModeVisual=!1,S.setAttribute("autocorrect","off")),p.EventRuler.on(S,"submit",h.EventHandlers.submitEvent),p.EventRuler.on(S,"reset",h.EventHandlers.resetEvent),p.EventRuler.on(S,"blur",h.EventHandlers.blurEvent),p.EventRuler.on(S,"focus",h.EventHandlers.focusEvent),p.EventRuler.on(S,"invalid",h.EventHandlers.invalidEvent),p.EventRuler.on(S,"click",h.EventHandlers.clickEvent),p.EventRuler.on(S,"mouseleave",h.EventHandlers.mouseleaveEvent),p.EventRuler.on(S,"mouseenter",h.EventHandlers.mouseenterEvent),p.EventRuler.on(S,"paste",h.EventHandlers.pasteEvent),p.EventRuler.on(S,"cut",h.EventHandlers.cutEvent),p.EventRuler.on(S,"complete",x.oncomplete),p.EventRuler.on(S,"incomplete",x.onincomplete),p.EventRuler.on(S,"cleared",x.oncleared),x.inputEventOnly!==!0&&p.EventRuler.on(S,"keydown",h.EventHandlers.keyEvent),(v.mobile||x.inputEventOnly)&&S.removeAttribute("maxLength"),p.EventRuler.on(S,"input",h.EventHandlers.inputFallBackEvent)),p.EventRuler.on(S,"setvalue",h.EventHandlers.setValueEvent),c.getBufferTemplate.call(y).join(""),y.undoValue=y._valueGet(!0);var k=(S.inputmask.shadowRoot||S.ownerDocument).activeElement;if(S.inputmask._valueGet(!0)!==""||x.clearMaskOnLostFocus===!1||k===S){(0,d.applyInputValue)(S,S.inputmask._valueGet(!0),x);var g=c.getBuffer.call(y).slice();_.isComplete.call(y,g)===!1&&x.clearIncomplete&&c.resetMaskSet.call(y),x.clearMaskOnLostFocus&&k!==S&&(c.getLastValidPosition.call(y)===-1?g=[]:d.clearOptionalTail.call(y,g)),(x.clearMaskOnLostFocus===!1||x.showMaskOnFocus&&k===S||S.inputmask._valueGet(!0)!=="")&&(0,d.writeBuffer)(S,g),k===S&&c.caret.call(y,S,c.seekNext.call(y,c.getLastValidPosition.call(y)))}}};var l=u(2839),c=u(8711),d=u(7760),p=u(9716),v=u(9845),_=u(7215),h=u(6030)},9695:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(u,l,c,d){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=l||!1,this.isQuantifier=c||!1,this.isAlternator=d||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(s,o){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),l=u.length>>>0;if(l===0)return!1;for(var c=0|o,d=Math.max(c>=0?c:l-Math.abs(c),0);d<l;){if(u[d]===s)return!0;d++}return!1}})},9302:function(){var s=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),l=Object.keys;Object.entries||(Object.entries=function(c){return s(l(c),function(d,p){return u(d,typeof p=="string"&&o(c,p)?[[p,c[p]]]:[])},[])})},7149:function(){function s(o){return s=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},s(o)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=s("test".__proto__)==="object"?function(o){return o.__proto__}:function(o){return o.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(s,o){return typeof o!="number"&&(o=0),!(o+s.length>this.length)&&this.indexOf(s,o)!==-1})},8711:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.caret=function(y,x,S,b,f){var k,g=this,m=this.opts;if(x===void 0)return"selectionStart"in y&&"selectionEnd"in y?(x=y.selectionStart,S=y.selectionEnd):window.getSelection?(k=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==y&&k.commonAncestorContainer!==y||(x=k.startOffset,S=k.endOffset):document.selection&&document.selection.createRange&&(S=(x=0-(k=document.selection.createRange()).duplicate().moveStart("character",-y.inputmask._valueGet().length))+k.text.length),{begin:b?x:h.call(g,x),end:b?S:h.call(g,S)};if(Array.isArray(x)&&(S=g.isRTL?x[0]:x[1],x=g.isRTL?x[1]:x[0]),x.begin!==void 0&&(S=g.isRTL?x.begin:x.end,x=g.isRTL?x.end:x.begin),typeof x=="number"){x=b?x:h.call(g,x),S=typeof(S=b?S:h.call(g,S))=="number"?S:x;var w=parseInt(((y.ownerDocument.defaultView||window).getComputedStyle?(y.ownerDocument.defaultView||window).getComputedStyle(y,null):y.currentStyle).fontSize)*S;if(y.scrollLeft=w>y.scrollWidth?w:0,y.inputmask.caretPos={begin:x,end:S},m.insertModeVisual&&m.insertMode===!1&&x===S&&(f||S++),y===(y.inputmask.shadowRoot||y.ownerDocument).activeElement)if("setSelectionRange"in y)y.setSelectionRange(x,S);else if(window.getSelection){if(k=document.createRange(),y.firstChild===void 0||y.firstChild===null){var O=document.createTextNode("");y.appendChild(O)}k.setStart(y.firstChild,x<y.inputmask._valueGet().length?x:y.inputmask._valueGet().length),k.setEnd(y.firstChild,S<y.inputmask._valueGet().length?S:y.inputmask._valueGet().length),k.collapse(!0);var C=window.getSelection();C.removeAllRanges(),C.addRange(k)}else y.createTextRange&&((k=y.createTextRange()).collapse(!0),k.moveEnd("character",S),k.moveStart("character",x),k.select())}},o.determineLastRequiredPosition=function(y){var x,S,b=this,f=b.maskset,k=b.dependencyLib,g=l.getMaskTemplate.call(b,!0,p.call(b),!0,!0),m=g.length,w=p.call(b),O={},C=f.validPositions[w],M=C!==void 0?C.locator.slice():void 0;for(x=w+1;x<g.length;x++)M=(S=l.getTestTemplate.call(b,x,M,x-1)).locator.slice(),O[x]=k.extend(!0,{},S);var T=C&&C.alternation!==void 0?C.locator[C.alternation]:void 0;for(x=m-1;x>w&&((S=O[x]).match.optionality||S.match.optionalQuantifier&&S.match.newBlockMarker||T&&(T!==O[x].locator[C.alternation]&&S.match.static!=1||S.match.static===!0&&S.locator[C.alternation]&&c.checkAlternationMatch.call(b,S.locator[C.alternation].toString().split(","),T.toString().split(","))&&l.getTests.call(b,x)[0].def!==""))&&g[x]===l.getPlaceholder.call(b,x,S.match);x--)m--;return y?{l:m,def:O[m]?O[m].match:void 0}:m},o.determineNewCaretPosition=function(y,x,S){var b=this,f=b.maskset,k=b.opts;if(x&&(b.isRTL?y.end=y.begin:y.begin=y.end),y.begin===y.end){switch(S=S||k.positionCaretOnClick){case"none":break;case"select":y={begin:0,end:d.call(b).length};break;case"ignore":y.end=y.begin=_.call(b,p.call(b));break;case"radixFocus":if(b.clicked>1&&f.validPositions.length==0)break;if(function(z){if(k.radixPoint!==""&&k.digits!==0){var F=f.validPositions;if(F[z]===void 0||F[z].input===l.getPlaceholder.call(b,z)){if(z<_.call(b,-1))return!0;var N=d.call(b).indexOf(k.radixPoint);if(N!==-1){for(var U=0,q=F.length;U<q;U++)if(F[U]&&N<U&&F[U].input!==l.getPlaceholder.call(b,U))return!1;return!0}}}return!1}(y.begin)){var g=d.call(b).join("").indexOf(k.radixPoint);y.end=y.begin=k.numericInput?_.call(b,g):g;break}default:var m=y.begin,w=p.call(b,m,!0),O=_.call(b,w!==-1||v.call(b,0)?w:-1);if(m<=O)y.end=y.begin=v.call(b,m,!1,!0)?m:_.call(b,m);else{var C=f.validPositions[w],M=l.getTestTemplate.call(b,O,C?C.match.locator:void 0,C),T=l.getPlaceholder.call(b,O,M.match);if(T!==""&&d.call(b)[O]!==T&&M.match.optionalQuantifier!==!0&&M.match.newBlockMarker!==!0||!v.call(b,O,k.keepStatic,!0)&&M.match.def===T){var E=_.call(b,O);(m>=E||m===O)&&(O=E)}y.end=y.begin=O}}return y}},o.getBuffer=d,o.getBufferTemplate=function(){var y=this.maskset;return y._buffer===void 0&&(y._buffer=l.getMaskTemplate.call(this,!1,1),y.buffer===void 0&&(y.buffer=y._buffer.slice())),y._buffer},o.getLastValidPosition=p,o.isMask=v,o.resetMaskSet=function(y){var x=this.maskset;x.buffer=void 0,y!==!0&&(x.validPositions=[],x.p=0)},o.seekNext=_,o.seekPrevious=function(y,x){var S=this,b=y-1;if(y<=0)return 0;for(;b>0&&(x===!0&&(l.getTest.call(S,b).match.newBlockMarker!==!0||!v.call(S,b,void 0,!0))||x!==!0&&!v.call(S,b,void 0,!0));)b--;return b},o.translatePosition=h;var l=u(4713),c=u(7215);function d(y){var x=this,S=x.maskset;return S.buffer!==void 0&&y!==!0||(S.buffer=l.getMaskTemplate.call(x,!0,p.call(x),!0),S._buffer===void 0&&(S._buffer=S.buffer.slice())),S.buffer}function p(y,x,S){var b=this.maskset,f=-1,k=-1,g=S||b.validPositions;y===void 0&&(y=-1);for(var m=0,w=g.length;m<w;m++)g[m]&&(x||g[m].generatedInput!==!0)&&(m<=y&&(f=m),m>=y&&(k=m));return f===-1||f==y?k:k==-1||y-f<k-y?f:k}function v(y,x,S){var b=this,f=this.maskset,k=l.getTestTemplate.call(b,y).match;if(k.def===""&&(k=l.getTest.call(b,y).match),k.static!==!0)return k.fn;if(S===!0&&f.validPositions[y]!==void 0&&f.validPositions[y].generatedInput!==!0)return!0;if(x!==!0&&y>-1){if(S){var g=l.getTests.call(b,y);return g.length>1+(g[g.length-1].match.def===""?1:0)}var m=l.determineTestTemplate.call(b,y,l.getTests.call(b,y)),w=l.getPlaceholder.call(b,y,m.match);return m.match.def!==w}return!1}function _(y,x,S){var b=this;S===void 0&&(S=!0);for(var f=y+1;l.getTest.call(b,f).match.def!==""&&(x===!0&&(l.getTest.call(b,f).match.newBlockMarker!==!0||!v.call(b,f,void 0,!0))||x!==!0&&!v.call(b,f,void 0,S));)f++;return f}function h(y){var x=this.opts,S=this.el;return!this.isRTL||typeof y!="number"||x.greedy&&x.placeholder===""||!S||(y=this._valueGet().length-y)<0&&(y=0),y}},4713:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.determineTestTemplate=h,o.getDecisionTaker=p,o.getMaskTemplate=function(b,f,k,g,m){var w=this,O=this.opts,C=this.maskset,M=O.greedy;m&&O.greedy&&(O.greedy=!1,w.maskset.tests={}),f=f||0;var T,E,z,F,N=[],U=0;do{if(b===!0&&C.validPositions[U])E=(z=m&&C.validPositions[U].match.optionality&&C.validPositions[U+1]===void 0&&(C.validPositions[U].generatedInput===!0||C.validPositions[U].input==O.skipOptionalPartCharacter&&U>0)?h.call(w,U,S.call(w,U,T,U-1)):C.validPositions[U]).match,T=z.locator.slice(),N.push(k===!0?z.input:k===!1?E.nativeDef:v.call(w,U,E));else{E=(z=_.call(w,U,T,U-1)).match,T=z.locator.slice();var q=g!==!0&&(O.jitMasking!==!1?O.jitMasking:E.jit);(F=(F&&E.static&&E.def!==O.groupSeparator&&E.fn===null||C.validPositions[U-1]&&E.static&&E.def!==O.groupSeparator&&E.fn===null)&&C.tests[U])||q===!1||q===void 0||typeof q=="number"&&isFinite(q)&&q>U?N.push(k===!1?E.nativeDef:v.call(w,N.length,E)):F=!1}U++}while(E.static!==!0||E.def!==""||f>U);return N[N.length-1]===""&&N.pop(),k===!1&&C.maskLength!==void 0||(C.maskLength=U-1),O.greedy=M,N},o.getPlaceholder=v,o.getTest=y,o.getTestTemplate=_,o.getTests=S,o.isSubsetOf=x;var l,c=(l=u(2394))&&l.__esModule?l:{default:l};function d(b,f){var k=(b.alternation!=null?b.mloc[p(b)]:b.locator).join("");if(k!=="")for(;k.length<f;)k+="0";return k}function p(b){var f=b.locator[b.alternation];return typeof f=="string"&&f.length>0&&(f=f.split(",")[0]),f!==void 0?f.toString():""}function v(b,f,k){var g=this.opts,m=this.maskset;if((f=f||y.call(this,b).match).placeholder!==void 0||k===!0)return typeof f.placeholder=="function"?f.placeholder(g):f.placeholder;if(f.static===!0){if(b>-1&&m.validPositions[b]===void 0){var w,O=S.call(this,b),C=[];if(O.length>1+(O[O.length-1].match.def===""?1:0)){for(var M=0;M<O.length;M++)if(O[M].match.def!==""&&O[M].match.optionality!==!0&&O[M].match.optionalQuantifier!==!0&&(O[M].match.static===!0||w===void 0||O[M].match.fn.test(w.match.def,m,b,!0,g)!==!1)&&(C.push(O[M]),O[M].match.static===!0&&(w=O[M]),C.length>1&&/[0-9a-bA-Z]/.test(C[0].match.def)))return g.placeholder.charAt(b%g.placeholder.length)}}return f.def}return g.placeholder.charAt(b%g.placeholder.length)}function _(b,f,k){return this.maskset.validPositions[b]||h.call(this,b,S.call(this,b,f&&f.slice(),k))}function h(b,f){var k=this.opts,g=0,m=function(F,N){var U=0,q=!1;return N.forEach(function(P){P.match.optionality&&(U!==0&&U!==P.match.optionality&&(q=!0),(U===0||U>P.match.optionality)&&(U=P.match.optionality))}),U&&(F==0||N.length==1?U=0:q||(U=0)),U}(b,f);b=b>0?b-1:0;var w,O,C,M=d(y.call(this,b));k.greedy&&f.length>1&&f[f.length-1].match.def===""&&(g=1);for(var T=0;T<f.length-g;T++){var E=f[T];w=d(E,M.length);var z=Math.abs(w-M);(O===void 0||w!==""&&z<O||C&&!k.greedy&&C.match.optionality&&C.match.optionality-m>0&&C.match.newBlockMarker==="master"&&(!E.match.optionality||E.match.optionality-m<1||!E.match.newBlockMarker)||C&&!k.greedy&&C.match.optionalQuantifier&&!E.match.optionalQuantifier)&&(O=z,C=E)}return C}function y(b,f){var k=this.maskset;return k.validPositions[b]?k.validPositions[b]:(f||S.call(this,b))[0]}function x(b,f,k){function g(m){for(var w,O=[],C=-1,M=0,T=m.length;M<T;M++)if(m.charAt(M)==="-")for(w=m.charCodeAt(M+1);++C<w;)O.push(String.fromCharCode(C));else C=m.charCodeAt(M),O.push(m.charAt(M));return O.join("")}return b.match.def===f.match.nativeDef||!(!(k.regex||b.match.fn instanceof RegExp&&f.match.fn instanceof RegExp)||b.match.static===!0||f.match.static===!0)&&g(f.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(g(b.match.fn.toString().replace(/[[\]/]/g,"")))!==-1}function S(b,f,k){var g,m,w=this,O=this.dependencyLib,C=this.maskset,M=this.opts,T=this.el,E=C.maskToken,z=f?k:0,F=f?f.slice():[0],N=[],U=!1,q=f?f.join(""):"";function P(Y,Q,J,R){function A(B,G,Z){function te(ie,ue){var ne=ue.matches.indexOf(ie)===0;return ne||ue.matches.every(function(pe,be){return pe.isQuantifier===!0?ne=te(ie,ue.matches[be-1]):Object.prototype.hasOwnProperty.call(pe,"matches")&&(ne=te(ie,pe)),!ne}),ne}function re(ie,ue,ne){var pe,be;if((C.tests[ie]||C.validPositions[ie])&&(C.tests[ie]||[C.validPositions[ie]]).every(function(Ie,ct){if(Ie.mloc[ue])return pe=Ie,!1;var De=ne!==void 0?ne:Ie.alternation,dt=Ie.locator[De]!==void 0?Ie.locator[De].toString().indexOf(ue):-1;return(be===void 0||dt<be)&&dt!==-1&&(pe=Ie,be=dt),!0}),pe){var Pe=pe.locator[pe.alternation];return(pe.mloc[ue]||pe.mloc[Pe]||pe.locator).slice((ne!==void 0?ne:pe.alternation)+1)}return ne!==void 0?re(ie,ue):void 0}function le(ie,ue){var ne=ie.alternation,pe=ue===void 0||ne===ue.alternation&&ie.locator[ne].toString().indexOf(ue.locator[ne])===-1;if(!pe&&ne>ue.alternation){for(var be=ue.alternation;be<ne;be++)if(ie.locator[be]!==ue.locator[be]){ne=be,pe=!0;break}}if(pe){ie.mloc=ie.mloc||{};var Pe=ie.locator[ne];if(Pe!==void 0){if(typeof Pe=="string"&&(Pe=Pe.split(",")[0]),ie.mloc[Pe]===void 0&&(ie.mloc[Pe]=ie.locator.slice()),ue!==void 0){for(var Ie in ue.mloc)typeof Ie=="string"&&(Ie=Ie.split(",")[0]),ie.mloc[Ie]===void 0&&(ie.mloc[Ie]=ue.mloc[Ie]);ie.locator[ne]=Object.keys(ie.mloc).join(",")}return!0}ie.alternation=void 0}return!1}function he(ie,ue){if(ie.locator.length!==ue.locator.length)return!1;for(var ne=ie.alternation+1;ne<ie.locator.length;ne++)if(ie.locator[ne]!==ue.locator[ne])return!1;return!0}if(z>b+M._maxTestPos)throw"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. "+C.mask;if(z===b&&B.matches===void 0){if(N.push({match:B,locator:G.reverse(),cd:q,mloc:{}}),!B.optionality||Z!==void 0||!(M.definitions&&M.definitions[B.nativeDef]&&M.definitions[B.nativeDef].optional||c.default.prototype.definitions[B.nativeDef]&&c.default.prototype.definitions[B.nativeDef].optional))return!0;U=!0,z=b}else if(B.matches!==void 0){if(B.isGroup&&Z!==B)return function(){if(B=A(Y.matches[Y.matches.indexOf(B)+1],G,Z))return!0}();if(B.isOptional)return function(){var ie=B,ue=N.length;if(B=P(B,Q,G,Z),N.length>0){if(N.forEach(function(ne,pe){pe>=ue&&(ne.match.optionality=ne.match.optionality?ne.match.optionality+1:1)}),g=N[N.length-1].match,Z!==void 0||!te(g,ie))return B;U=!0,z=b}}();if(B.isAlternator)return function(){w.hasAlternator=!0;var ie,ue,ne,pe=B,be=[],Pe=N.slice(),Ie=G.length,ct=!1,De=Q.length>0?Q.shift():-1;if(De===-1||typeof De=="string"){var dt,_t=z,ck=Q.slice(),rr=[];if(typeof De=="string")rr=De.split(",");else for(dt=0;dt<pe.matches.length;dt++)rr.push(dt.toString());if(C.excludes[b]!==void 0){for(var JJ=rr.slice(),lf=0,ZJ=C.excludes[b].length;lf<ZJ;lf++){var dk=C.excludes[b][lf].toString().split(":");G.length==dk[1]&&rr.splice(rr.indexOf(dk[0]),1)}rr.length===0&&(delete C.excludes[b],rr=JJ)}(M.keepStatic===!0||isFinite(parseInt(M.keepStatic))&&_t>=M.keepStatic)&&(rr=rr.slice(0,1));for(var Su=0;Su<rr.length;Su++){dt=parseInt(rr[Su]),N=[],Q=typeof De=="string"&&re(z,dt,Ie)||ck.slice();var Ds=pe.matches[dt];if(Ds&&A(Ds,[dt].concat(G),Z))B=!0;else if(Su===0&&(ct=!0),Ds&&Ds.matches&&Ds.matches.length>pe.matches[0].matches.length)break;ie=N.slice(),z=_t,N=[];for(var uf=0;uf<ie.length;uf++){var it=ie[uf],ku=!1;it.match.jit=it.match.jit||ct,it.alternation=it.alternation||Ie,le(it);for(var cf=0;cf<be.length;cf++){var xr=be[cf];if(typeof De!="string"||it.alternation!==void 0&&rr.includes(it.locator[it.alternation].toString())){if(it.match.nativeDef===xr.match.nativeDef){ku=!0,le(xr,it);break}if(x(it,xr,M)){le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it));break}if(x(xr,it,M)){le(xr,it);break}if(ne=xr,(ue=it).match.static===!0&&ne.match.static!==!0&&ne.match.fn.test(ue.match.def,C,b,!1,M,!1)){he(it,xr)||T.inputmask.userOptions.keepStatic!==void 0?le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it)):M.keepStatic=!0;break}}}ku||be.push(it)}}N=Pe.concat(be),z=b,U=N.length>0,B=be.length>0,Q=ck.slice()}else B=A(pe.matches[De]||Y.matches[De],[De].concat(G),Z);if(B)return!0}();if(B.isQuantifier&&Z!==Y.matches[Y.matches.indexOf(B)-1])return function(){for(var ie=B,ue=!1,ne=Q.length>0?Q.shift():0;ne<(isNaN(ie.quantifier.max)?ne+1:ie.quantifier.max)&&z<=b;ne++){var pe=Y.matches[Y.matches.indexOf(ie)-1];if(B=A(pe,[ne].concat(G),pe)){if(N.forEach(function(be,Pe){(g=D(pe,be.match)?be.match:N[N.length-1].match).optionalQuantifier=ne>=ie.quantifier.min,g.jit=(ne+1)*(pe.matches.indexOf(g)+1)>ie.quantifier.jit,g.optionalQuantifier&&te(g,pe)&&(U=!0,z=b,M.greedy&&C.validPositions[b-1]==null&&ne>ie.quantifier.min&&["*","+"].indexOf(ie.quantifier.max)!=-1&&(N.pop(),q=void 0),ue=!0,B=!1),!ue&&g.jit&&(C.jitOffset[b]=pe.matches.length-pe.matches.indexOf(g))}),ue)break;return!0}}}();if(B=P(B,Q,G,Z))return!0}else z++}for(var $=Q.length>0?Q.shift():0;$<Y.matches.length;$++)if(Y.matches[$].isQuantifier!==!0){var j=A(Y.matches[$],[$].concat(J),R);if(j&&z===b)return j;if(z>b)break}}function D(Y,Q){var J=Y.matches.indexOf(Q)!=-1;return J||Y.matches.forEach(function(R,A){R.matches===void 0||J||(J=D(R,Q))}),J}if(b>-1){if(f===void 0){for(var I,L=b-1;(I=C.validPositions[L]||C.tests[L])===void 0&&L>-1;)L--;I!==void 0&&L>-1&&(F=function(Y,Q){var J,R=[];return Array.isArray(Q)||(Q=[Q]),Q.length>0&&(Q[0].alternation===void 0||M.keepStatic===!0?(R=h.call(w,Y,Q.slice()).locator.slice()).length===0&&(R=Q[0].locator.slice()):Q.forEach(function(A){A.def!==""&&(R.length===0?(J=A.alternation,R=A.locator.slice()):A.locator[J]&&R[J].toString().indexOf(A.locator[J])===-1&&(R[J]+=","+A.locator[J]))})),R}(L,I),q=F.join(""),z=L)}if(C.tests[b]&&C.tests[b][0].cd===q)return C.tests[b];for(var W=F.shift();W<E.length&&!(P(E[W],F,[W])&&z===b||z>b);W++);}return(N.length===0||U)&&N.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:q}),f!==void 0&&C.tests[b]?m=O.extend(!0,[],N):(C.tests[b]=O.extend(!0,[],N),m=C.tests[b]),N.forEach(function(Y){Y.match.optionality=Y.match.defOptionality||!1}),m}},7215:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.alternate=v,o.checkAlternationMatch=function(g,m,w){for(var O,C=this.opts.greedy?m:m.slice(0,1),M=!1,T=w!==void 0?w.split(","):[],E=0;E<T.length;E++)(O=g.indexOf(T[E]))!==-1&&g.splice(O,1);for(var z=0;z<g.length;z++)if(C.includes(g[z])){M=!0;break}return M},o.handleRemove=function(g,m,w,O,C){var M=this,T=this.maskset,E=this.opts;if((E.numericInput||M.isRTL)&&(m===c.keys.Backspace?m=c.keys.Delete:m===c.keys.Delete&&(m=c.keys.Backspace),M.isRTL)){var z=w.end;w.end=w.begin,w.begin=z}var F,N=d.getLastValidPosition.call(M,void 0,!0);if(w.end>=d.getBuffer.call(M).length&&N>=w.end&&(w.end=N+1),m===c.keys.Backspace?w.end-w.begin<1&&(w.begin=d.seekPrevious.call(M,w.begin)):m===c.keys.Delete&&w.begin===w.end&&(w.end=d.isMask.call(M,w.end,!0,!0)?w.end+1:d.seekNext.call(M,w.end)+1),(F=k.call(M,w))!==!1){if(O!==!0&&E.keepStatic!==!1||E.regex!==null&&l.getTest.call(M,w.begin).match.def.indexOf("|")!==-1){var U=v.call(M,!0);if(U){var q=U.caret!==void 0?U.caret:U.pos?d.seekNext.call(M,U.pos.begin?U.pos.begin:U.pos):d.getLastValidPosition.call(M,-1,!0);(m!==c.keys.Delete||w.begin>q)&&w.begin}}O!==!0&&(T.p=m===c.keys.Delete?w.begin+F:w.begin,T.p=d.determineNewCaretPosition.call(M,{begin:T.p,end:T.p},!1,E.insertMode===!1&&m===c.keys.Backspace?"none":void 0).begin)}},o.isComplete=h,o.isSelection=y,o.isValid=x,o.refreshFromBuffer=b,o.revalidateMask=k;var l=u(4713),c=u(2839),d=u(8711),p=u(6030);function v(g,m,w,O,C,M){var T,E,z,F,N,U,q,P,D,I,L,W=this,Y=this.dependencyLib,Q=this.opts,J=W.maskset,R=Y.extend(!0,[],J.validPositions),A=Y.extend(!0,{},J.tests),$=!1,j=!1,B=C!==void 0?C:d.getLastValidPosition.call(W);if(M&&(I=M.begin,L=M.end,M.begin>M.end&&(I=M.end,L=M.begin)),B===-1&&C===void 0)T=0,E=(F=l.getTest.call(W,T)).alternation;else for(;B>=0;B--)if((z=J.validPositions[B])&&z.alternation!==void 0){if(B<=(g||0)&&F&&F.locator[z.alternation]!==z.locator[z.alternation])break;T=B,E=J.validPositions[T].alternation,F=z}if(E!==void 0){q=parseInt(T),J.excludes[q]=J.excludes[q]||[],g!==!0&&J.excludes[q].push((0,l.getDecisionTaker)(F)+":"+F.alternation);var G=[],Z=-1;for(N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)Z===-1&&g<=N&&m!==void 0&&(G.push(m),Z=G.length-1),(U=J.validPositions[N])&&U.generatedInput!==!0&&(M===void 0||N<I||N>=L)&&G.push(U.input),delete J.validPositions[N];for(Z===-1&&m!==void 0&&(G.push(m),Z=G.length-1);J.excludes[q]!==void 0&&J.excludes[q].length<10;){for(J.tests={},d.resetMaskSet.call(W,!0),$=!0,N=0;N<G.length&&(P=$.caret||d.getLastValidPosition.call(W,void 0,!0)+1,D=G[N],$=x.call(W,P,D,!1,O,!0));N++)N===Z&&(j=$),g==1&&$&&(j={caretPos:N});if($)break;if(d.resetMaskSet.call(W),F=l.getTest.call(W,q),J.validPositions=Y.extend(!0,[],R),J.tests=Y.extend(!0,{},A),!J.excludes[q]){j=v.call(W,g,m,w,O,q-1,M);break}var te=(0,l.getDecisionTaker)(F);if(J.excludes[q].indexOf(te+":"+F.alternation)!==-1){j=v.call(W,g,m,w,O,q-1,M);break}for(J.excludes[q].push(te+":"+F.alternation),N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)delete J.validPositions[N]}}return j&&Q.keepStatic===!1||delete J.excludes[q],j}function _(g,m,w){var O=this.opts,C=this.maskset;switch(O.casing||m.casing){case"upper":g=g.toUpperCase();break;case"lower":g=g.toLowerCase();break;case"title":var M=C.validPositions[w-1];g=w===0||M&&M.input===String.fromCharCode(c.keyCode.Space)?g.toUpperCase():g.toLowerCase();break;default:if(typeof O.casing=="function"){var T=Array.prototype.slice.call(arguments);T.push(C.validPositions),g=O.casing.apply(this,T)}}return g}function h(g){var m=this,w=this.opts,O=this.maskset;if(typeof w.isComplete=="function")return w.isComplete(g,w);if(w.repeat!=="*"){var C=!1,M=d.determineLastRequiredPosition.call(m,!0),T=d.seekPrevious.call(m,M.l);if(M.def===void 0||M.def.newBlockMarker||M.def.optionality||M.def.optionalQuantifier){C=!0;for(var E=0;E<=T;E++){var z=l.getTestTemplate.call(m,E).match;if(z.static!==!0&&O.validPositions[E]===void 0&&z.optionality!==!0&&z.optionalQuantifier!==!0||z.static===!0&&g[E]!==l.getPlaceholder.call(m,E,z)){C=!1;break}}}return C}}function y(g){var m=this.opts.insertMode?0:1;return this.isRTL?g.begin-g.end>m:g.end-g.begin>m}function x(g,m,w,O,C,M,T){var E=this,z=this.dependencyLib,F=this.opts,N=E.maskset;w=w===!0;var U=g;function q($){if($!==void 0){if($.remove!==void 0&&(Array.isArray($.remove)||($.remove=[$.remove]),$.remove.sort(function(B,G){return E.isRTL?B.pos-G.pos:G.pos-B.pos}).forEach(function(B){k.call(E,{begin:B,end:B+1})}),$.remove=void 0),$.insert!==void 0&&(Array.isArray($.insert)||($.insert=[$.insert]),$.insert.sort(function(B,G){return E.isRTL?G.pos-B.pos:B.pos-G.pos}).forEach(function(B){B.c!==""&&x.call(E,B.pos,B.c,B.strict===void 0||B.strict,B.fromIsValid!==void 0?B.fromIsValid:O)}),$.insert=void 0),$.refreshFromBuffer&&$.buffer){var j=$.refreshFromBuffer;b.call(E,j===!0?j:j.start,j.end,$.buffer),$.refreshFromBuffer=void 0}$.rewritePosition!==void 0&&(U=$.rewritePosition,$=!0)}return $}function P($,j,B){var G=!1;return l.getTests.call(E,$).every(function(Z,te){var re=Z.match;if(d.getBuffer.call(E,!0),(G=(!re.jit||N.validPositions[d.seekPrevious.call(E,$)]!==void 0)&&(re.fn!=null?re.fn.test(j,N,$,B,F,y.call(E,g)):(j===re.def||j===F.skipOptionalPartCharacter)&&re.def!==""&&{c:l.getPlaceholder.call(E,$,re,!0)||re.def,pos:$}))!==!1){var le=G.c!==void 0?G.c:j,he=$;return le=le===F.skipOptionalPartCharacter&&re.static===!0?l.getPlaceholder.call(E,$,re,!0)||re.def:le,(G=q(G))!==!0&&G.pos!==void 0&&G.pos!==$&&(he=G.pos),G!==!0&&G.pos===void 0&&G.c===void 0||k.call(E,g,z.extend({},Z,{input:_.call(E,le,re,he)}),O,he)===!1&&(G=!1),!1}return!0}),G}g.begin!==void 0&&(U=E.isRTL?g.end:g.begin);var D=!0,I=z.extend(!0,{},N.validPositions);if(F.keepStatic===!1&&N.excludes[U]!==void 0&&C!==!0&&O!==!0)for(var L=U;L<(E.isRTL?g.begin:g.end);L++)N.excludes[L]!==void 0&&(N.excludes[L]=void 0,delete N.tests[L]);if(typeof F.preValidation=="function"&&O!==!0&&M!==!0&&(D=q(D=F.preValidation.call(E,d.getBuffer.call(E),U,m,y.call(E,g),F,N,g,w||C))),D===!0){if(D=P(U,m,w),(!w||O===!0)&&D===!1&&M!==!0){var W=N.validPositions[U];if(!W||W.match.static!==!0||W.match.def!==m&&m!==F.skipOptionalPartCharacter){if(F.insertMode||N.validPositions[d.seekNext.call(E,U)]===void 0||g.end>U){var Y=!1;if(N.jitOffset[U]&&N.validPositions[d.seekNext.call(E,U)]===void 0&&(D=x.call(E,U+N.jitOffset[U],m,!0,!0))!==!1&&(C!==!0&&(D.caret=U),Y=!0),g.end>U&&(N.validPositions[U]=void 0),!Y&&!d.isMask.call(E,U,F.keepStatic&&U===0)){for(var Q=U+1,J=d.seekNext.call(E,U,!1,U!==0);Q<=J;Q++)if((D=P(Q,m,w))!==!1){D=f.call(E,U,D.pos!==void 0?D.pos:Q)||D,U=Q;break}}}}else D={caret:d.seekNext.call(E,U)}}E.hasAlternator&&C!==!0&&!w&&(D===!1&&F.keepStatic&&(h.call(E,d.getBuffer.call(E))||U===0)?D=v.call(E,U,m,w,O,void 0,g):(y.call(E,g)&&N.tests[U]&&N.tests[U].length>1&&F.keepStatic||D==1&&F.numericInput!==!0&&N.tests[U]&&N.tests[U].length>1&&d.getLastValidPosition.call(E,void 0,!0)>U)&&(D=v.call(E,!0))),D===!0&&(D={pos:U})}if(typeof F.postValidation=="function"&&O!==!0&&M!==!0){var R=F.postValidation.call(E,d.getBuffer.call(E,!0),g.begin!==void 0?E.isRTL?g.end:g.begin:g,m,D,F,N,w,T);R!==void 0&&(D=R===!0?D:R)}D&&D.pos===void 0&&(D.pos=U),D===!1||M===!0?(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I)):f.call(E,void 0,U,!0);var A=q(D);return E.maxLength!==void 0&&d.getBuffer.call(E).length>E.maxLength&&!O&&(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I),A=!1),A}function S(g,m,w){for(var O=this.maskset,C=!1,M=l.getTests.call(this,g),T=0;T<M.length;T++){if(M[T].match&&(M[T].match.nativeDef===m.match[w.shiftPositions?"def":"nativeDef"]&&(!w.shiftPositions||!m.match.static)||M[T].match.nativeDef===m.match.nativeDef||w.regex&&!M[T].match.static&&M[T].match.fn.test(m.input,O,g,!1,w))){C=!0;break}if(M[T].match&&M[T].match.def===m.match.nativeDef){C=void 0;break}}return C===!1&&O.jitOffset[g]!==void 0&&(C=S.call(this,g+O.jitOffset[g],m,w)),C}function b(g,m,w){var O,C,M=this,T=this.maskset,E=this.opts,z=this.dependencyLib,F=E.skipOptionalPartCharacter,N=M.isRTL?w.slice().reverse():w;if(E.skipOptionalPartCharacter="",g===!0)d.resetMaskSet.call(M),T.tests={},g=0,m=w.length,C=d.determineNewCaretPosition.call(M,{begin:0,end:0},!1).begin;else{for(O=g;O<m;O++)delete T.validPositions[O];C=g}var U=new z.Event("keypress");for(O=g;O<m;O++){U.key=N[O].toString(),M.ignorable=!1;var q=p.EventHandlers.keypressEvent.call(M,U,!0,!1,!1,C);q!==!1&&q!==void 0&&(C=q.forwardPosition)}E.skipOptionalPartCharacter=F}function f(g,m,w){var O=this,C=this.maskset,M=this.dependencyLib;if(g===void 0)for(g=m-1;g>0&&!C.validPositions[g];g--);for(var T=g;T<m;T++)if(C.validPositions[T]===void 0&&!d.isMask.call(O,T,!1)&&(T==0?l.getTest.call(O,T):C.validPositions[T-1])){var E=l.getTests.call(O,T).slice();E[E.length-1].match.def===""&&E.pop();var z,F=l.determineTestTemplate.call(O,T,E);if(F&&(F.match.jit!==!0||F.match.newBlockMarker==="master"&&(z=C.validPositions[T+1])&&z.match.optionalQuantifier===!0)&&((F=M.extend({},F,{input:l.getPlaceholder.call(O,T,F.match,!0)||F.match.def})).generatedInput=!0,k.call(O,T,F,!0),w!==!0)){var N=C.validPositions[m].input;return C.validPositions[m]=void 0,x.call(O,m,N,!0,!0)}}}function k(g,m,w,O){var C=this,M=this.maskset,T=this.opts,E=this.dependencyLib;function z(R,A,$){var j=A[R];if(j!==void 0&&j.match.static===!0&&j.match.optionality!==!0&&(A[0]===void 0||A[0].alternation===void 0)){var B=$.begin<=R-1?A[R-1]&&A[R-1].match.static===!0&&A[R-1]:A[R-1],G=$.end>R+1?A[R+1]&&A[R+1].match.static===!0&&A[R+1]:A[R+1];return B&&G}return!1}var F=0,N=g.begin!==void 0?g.begin:g,U=g.end!==void 0?g.end:g,q=!0;if(g.begin>g.end&&(N=g.end,U=g.begin),O=O!==void 0?O:N,w===void 0&&(N!==U||T.insertMode&&M.validPositions[O]!==void 0||m===void 0||m.match.optionalQuantifier||m.match.optionality)){var P,D=E.extend(!0,{},M.validPositions),I=d.getLastValidPosition.call(C,void 0,!0);for(M.p=N,P=I;P>=N;P--)delete M.validPositions[P],m===void 0&&delete M.tests[P+1];var L,W,Y=O,Q=Y;for(m&&(M.validPositions[O]=E.extend(!0,{},m),Q++,Y++),P=m?U:U-1;P<=I;P++){if((L=D[P])!==void 0&&L.generatedInput!==!0&&(P>=U||P>=N&&z(P,D,{begin:N,end:U}))){for(;l.getTest.call(C,Q).match.def!=="";){if((W=S.call(C,Q,L,T))!==!1||L.match.def==="+"){L.match.def==="+"&&d.getBuffer.call(C,!0);var J=x.call(C,Q,L.input,L.match.def!=="+",!0);if(q=J!==!1,Y=(J.pos||Q)+1,!q&&W)break}else q=!1;if(q){m===void 0&&L.match.static&&P===g.begin&&F++;break}if(!q&&d.getBuffer.call(C),Q>M.maskLength)break;Q++}l.getTest.call(C,Q).match.def==""&&(q=!1),Q=Y}if(!q)break}if(!q)return M.validPositions=E.extend(!0,[],D),d.resetMaskSet.call(C,!0),!1}else m&&l.getTest.call(C,O).match.cd===m.match.cd&&(M.validPositions[O]=E.extend(!0,{},m));return d.resetMaskSet.call(C,!0),F}}},a={};function i(s){var o=a[s];if(o!==void 0)return o.exports;var u=a[s]={exports:{}};return r[s](u,u.exports,i),u.exports}var n={};return function(){var s,o=n;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,i(7149),i(3194),i(9302),i(4013),i(3851),i(219),i(207),i(5296);var u=((s=i(2394))&&s.__esModule?s:{default:s}).default;o.default=u}(),n}()})})(cb);var fW=cb.exports;const db=ar(fW),VX="",hW={props:{value:null,decimal:{type:String,default:","},thousands:{type:String,default:"."},prefix:{type:String,default:"$ "},suffix:{type:String,default:" USD"},precision:{type:Number,default:2}},computed:{currencyInput(){return this.$refs.currencyInput}},data(){return{currencyValue:"",unformattedValue:null}},watch:{value:{handler(t){t!=this.unformattedValue&&this.currencyInput.inputmask.setValue(t)}},currencyValue(){this.unformattedValue=parseFloat(this.currencyInput.inputmask.unmaskedvalue().replace(",",".")),this.$emit("input",this.unformattedValue||0)}},methods:{loadMasks(){const t=this.suffix.trim()==="INR"?"indianns":"currency";db(t,{digits:this.precision,prefix:this.prefix,suffix:this.suffix,radixPoint:this.decimal,groupSeparator:this.thousands}).mask(this.currencyInput),this.value&&this.currencyInput.inputmask.setValue(this.value)},keyup(t){this.currencyValue!==t.target.value&&(this.currencyValue=t.target.value)}},mounted(){this.loadMasks()}};var mW=function(){var e=this,r=e._self._c;return r("input",{directives:[{name:"model",rawName:"v-model",value:e.currencyValue,expression:"currencyValue"}],ref:"currencyInput",staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.currencyValue},on:{keyup:e.keyup,input:function(a){a.target.composing||(e.currencyValue=a.target.value)}}})},gW=[],vW=oe(hW,mW,gW,!1,null,null,null,null);const bW=vW.exports,yW=vn(),pb={currency:"inputmasked",date:"the-mask",datetime:"the-mask",percentage:"inputmasked",custom:"the-mask"},fb={currency:"getCurrencyFormat",date:"getDateFormat",datetime:"getDatetimeFormat",percentage:"getPercentageFormat",custom:"getCustomFormatter"},xW={components:{TheMask:pW.TheMask,Inputmasked:bW,RequiredAsterisk:ee.RequiredAsterisk},mixins:[yW,ee.ValidationMixin],inheritAttrs:!1,props:["value","label","error","helper","name","controlClass","dataMask","config","transientData","formConfig","form-watchers"],data(){const{dataFormat:t,customFormatter:e}=this.config,r=t==="int"||t==="float"?15:null,a=(()=>{const p=this.dataMask&&this.dataMask?this.dataMask&&this.dataMask.format:null,v=p?p.match(/[.,]/g):[".",","];v.length===0?v.push("","."):v.length===1&&v.push(v[0]==="."?",":".");const _=p?(p.split(v[1])[1]||"").length:2;return{decimal:v[1],thousands:v[0],prefix:this.dataMask&&this.dataMask.symbol?`${this.dataMask.symbol} `:"",suffix:this.dataMask&&this.dataMask.code?` ${this.dataMask.code}`:"",precision:_,masked:!1}})(),i={decimal:".",thousands:"",prefix:"",suffix:" %",precision:2,masked:!1},n={masked:!0,mask:this.getUserConfig().date_mask||this.getMask().date},s={masked:!0,mask:this.getUserConfig().datetime_mask||this.getMask().dateTime},o=(()=>e?pb.custom:pb[t]||"input")(),u=(()=>{switch(t){case"int":return"number";case"float":return"number";case"email":return"email";case"password":return"password";default:return"text"}})(),l={masked:!0,mask:e};let c;return e?c=fb.custom:c=fb[t],{dataFormat:t,customFormatter:e,maxlength:r,getCurrencyFormat:a,getPercentageFormat:i,getDateFormat:n,getDatetimeFormat:s,componentType:o,dataType:u,getCustomFormatter:l,componentConfig:JSON.parse(JSON.stringify({...c?{getCurrencyFormat:a,getDateFormat:n,getDatetimeFormat:s,getPercentageFormat:i,getCustomFormatter:l}[c]:{},...this.$attrs})),validator:null,localValue:null,validationRules:{percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/"}}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},componentConfigComputed(){return JSON.parse(JSON.stringify(this.componentConfig))}},watch:{value(t){this.localValue!==t&&(this.localValue=t)},localValue(t){t!==this.value&&this.$emit("input",this.convertToData(t))}},mounted(){this.value!==void 0&&(this.localValue=this.value)},methods:{onChange(){this.$emit("change",this.convertToData(this.localValue))},getUserConfig(){return window.ProcessMaker&&window.ProcessMaker.user||{}},getUserDateFormat:ee.getUserDateFormat,getUserDateTimeFormat:ee.getUserDateTimeFormat,convertToData(t){if(this.customFormatter)t=t.replace(/[^\w]/g,"");else switch(this.dataFormat){case"string":t=t.toString();break;case"boolean":t=!!t;break;case"currency":case"percentage":case"float":t=parseFloat(t),isNaN(t)&&(t=null);break;case"int":t=parseInt(t),isNaN(t)&&(t=null);break;case"date":this.componentName==="FormDatePicker"&&(t=Ze.utc(t,[ee.getUserDateFormat(),Ze.ISO_8601],!0).toISOString().split(RegExp("T[0-9]"))[0]);break;case"datetime":this.componentName==="FormDatePicker"&&(t=Ze(t,[ee.getUserDateTimeFormat(),Ze.ISO_8601],!0).toISOString());break;case"array":break;default:t=t.toString();break}return t},convertFromData(t){return t},getMask(){return{date:["####-##-##"],dateTime:["####-##-## ##:##"]}}}};var SW=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.componentType!=="input"?r(e.componentType,e._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],tag:"component",staticClass:"form-control",class:e.classList,attrs:{name:e.name,type:"text"},on:{change:e.onChange},model:{value:e.localValue,callback:function(a){e.localValue=a},expression:"localValue"}},"component",e.componentConfigComputed,!1)):e.dataType==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"checkbox"},domProps:{checked:Array.isArray(e.localValue)?e._i(e.localValue,null)>-1:e.localValue},on:{change:[function(a){var i=e.localValue,n=a.target,s=!!n.checked;if(Array.isArray(i)){var o=null,u=e._i(i,o);n.checked?u<0&&(e.localValue=i.concat([o])):u>-1&&(e.localValue=i.slice(0,u).concat(i.slice(u+1)))}else e.localValue=s},e.onChange]}},"input",e.componentConfig,!1)):e.dataType==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"radio"},domProps:{checked:e._q(e.localValue,null)},on:{change:[function(a){e.localValue=null},e.onChange]}},"input",e.componentConfig,!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:e.dataType},domProps:{value:e.localValue},on:{change:e.onChange,input:function(a){a.target.composing||(e.localValue=a.target.value)}}},"input",e.componentConfig,!1)),e.validator&&e.validator.errorCount?e._l(e.validator.errors.all(),function(a,i){return r("div",{key:i,staticClass:"invalid-feedback"},e._l(a,function(n,s){return r("div",{key:s},[e._v(" "+e._s(n)+" ")])}),0)}):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],2)},kW=[],_W=oe(xW,SW,kW,!1,null,null,null,null);const Ba=_W.exports;var $d={exports:{}},hb={};function Hr(t){return{prev:null,next:null,data:t}}function Oi(t,e,r){var a;return Mi!==null?(a=Mi,Mi=Mi.cursor,a.prev=e,a.next=r,a.cursor=t.cursor):a={prev:e,next:r,cursor:t.cursor},t.cursor=a,a}function Ei(t){var e=t.cursor;t.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Mi,Mi=e}var Mi=null,ye=function(){this.cursor=null,this.head=null,this.tail=null};ye.createItem=Hr,ye.prototype.createItem=Hr,ye.prototype.updateCursors=function(t,e,r,a){for(var i=this.cursor;i!==null;)i.prev===t&&(i.prev=e),i.next===r&&(i.next=a),i=i.cursor},ye.prototype.getSize=function(){for(var t=0,e=this.head;e;)t++,e=e.next;return t},ye.prototype.fromArray=function(t){var e=null;this.head=null;for(var r=0;r<t.length;r++){var a=Hr(t[r]);e!==null?e.next=a:this.head=a,a.prev=e,e=a}return this.tail=e,this},ye.prototype.toArray=function(){for(var t=this.head,e=[];t;)e.push(t.data),t=t.next;return e},ye.prototype.toJSON=ye.prototype.toArray,ye.prototype.isEmpty=function(){return this.head===null},ye.prototype.first=function(){return this.head&&this.head.data},ye.prototype.last=function(){return this.tail&&this.tail.data},ye.prototype.each=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,null,this.head);a.next!==null;)r=a.next,a.next=r.next,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEach=ye.prototype.each,ye.prototype.eachRight=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,this.tail,null);a.prev!==null;)r=a.prev,a.prev=r.prev,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEachRight=ye.prototype.eachRight,ye.prototype.reduce=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,null,this.head),n=e;i.next!==null;)a=i.next,i.next=a.next,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.reduceRight=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,this.tail,null),n=e;i.prev!==null;)a=i.prev,i.prev=a.prev,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.nextUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,null,t);i.next!==null&&(a=i.next,i.next=a.next,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.prevUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,t,null);i.prev!==null&&(a=i.prev,i.prev=a.prev,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.some=function(t,e){var r=this.head;for(e===void 0&&(e=this);r!==null;){if(t.call(e,r.data,r,this))return!0;r=r.next}return!1},ye.prototype.map=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)r.appendData(t.call(e,a.data,a,this)),a=a.next;return r},ye.prototype.filter=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)t.call(e,a.data,a,this)&&r.appendData(a.data),a=a.next;return r},ye.prototype.clear=function(){this.head=null,this.tail=null},ye.prototype.copy=function(){for(var t=new ye,e=this.head;e!==null;)t.insert(Hr(e.data)),e=e.next;return t},ye.prototype.prepend=function(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this},ye.prototype.prependData=function(t){return this.prepend(Hr(t))},ye.prototype.append=function(t){return this.insert(t)},ye.prototype.appendData=function(t){return this.insert(Hr(t))},ye.prototype.insert=function(t,e){if(e!=null)if(this.updateCursors(e.prev,t,e,t),e.prev===null){if(this.head!==e)throw new Error("before doesn't belong to list");this.head=t,e.prev=t,t.next=e,this.updateCursors(null,t)}else e.prev.next=t,t.prev=e.prev,e.prev=t,t.next=e;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this},ye.prototype.insertData=function(t,e){return this.insert(Hr(t),e)},ye.prototype.remove=function(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t},ye.prototype.push=function(t){this.insert(Hr(t))},ye.prototype.pop=function(){if(this.tail!==null)return this.remove(this.tail)},ye.prototype.unshift=function(t){this.prepend(Hr(t))},ye.prototype.shift=function(){if(this.head!==null)return this.remove(this.head)},ye.prototype.prependList=function(t){return this.insertList(t,this.head)},ye.prototype.appendList=function(t){return this.insertList(t)},ye.prototype.insertList=function(t,e){return t.head===null?this:(e!=null?(this.updateCursors(e.prev,t.tail,e,t.head),e.prev!==null?(e.prev.next=t.head,t.head.prev=e.prev):this.head=t.head,e.prev=t.tail,t.tail.next=e):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)},ye.prototype.replace=function(t,e){"head"in e?this.insertList(e,t):this.insert(e,t),this.remove(t)};var $i=ye,Pd=function(e,r){var a=Object.create(SyntaxError.prototype),i=new Error;return a.name=e,a.message=r,Object.defineProperty(a,"stack",{get:function(){return(i.stack||"").replace(/^(.+\n){1,3}/,e+": "+r+`
|
|
287
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(E.split("["),2),N=F[0],U=F[1];U=U.replace("]",""),k=k.replace(new RegExp("".concat((0,p.default)(N),"\\[").concat((0,p.default)(U),"\\]")),N.charAt(0)===U.charAt(0)?"(".concat(N,"|").concat(N).concat(U,")"):"".concat(N,"[").concat(U,"]"))})}return k}function b(k,g,m){var w,O,C=!1;return k!==null&&k!==""||((C=m.regex!==null)?k=(k=m.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(C=!0,k=".*")),k.length===1&&m.greedy===!1&&m.repeat!==0&&(m.placeholder=""),k=S(k,m),O=C?"regex_"+m.regex:m.numericInput?k.split("").reverse().join(""):k,m.keepStatic!==null&&(O="ks_"+m.keepStatic+O),d.default.prototype.masksCache[O]===void 0||y===!0?(w={mask:k,maskToken:d.default.prototype.analyseMask(k,C,m),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:g,maskLength:void 0,jitOffset:{}},y!==!0&&(d.default.prototype.masksCache[O]=w,w=l.default.extend(!0,{},d.default.prototype.masksCache[O]))):w=l.default.extend(!0,{},d.default.prototype.masksCache[O]),w}if(typeof h.mask=="function"&&(h.mask=h.mask(h)),Array.isArray(h.mask)){if(h.mask.length>1){h.keepStatic===null&&(h.keepStatic=!0);var f=h.groupmarker[0];return(h.isRTL?h.mask.reverse():h.mask).forEach(function(k){f.length>1&&(f+=h.alternatormarker),k.mask!==void 0&&typeof k.mask!="function"?f+=k.mask:f+=k}),b(f+=h.groupmarker[1],h.mask,h)}h.mask=h.mask.pop()}return x=h.mask&&h.mask.mask!==void 0&&typeof h.mask.mask!="function"?b(h.mask.mask,h.mask,h):b(h.mask,h.mask,h),h.keepStatic===null&&(h.keepStatic=!1),x};var l=_(u(4963)),c=_(u(9695)),d=_(u(2394)),p=_(u(7184));function v(h,y){(y==null||y>h.length)&&(y=h.length);for(var x=0,S=new Array(y);x<y;x++)S[x]=h[x];return S}function _(h){return h&&h.__esModule?h:{default:h}}},157:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.mask=function(){var y=this,x=this.opts,S=this.el,b=this.dependencyLib;p.EventRuler.off(S);var f=function(m,w){m.tagName.toLowerCase()!=="textarea"&&w.ignorables.push(l.keys.Enter);var O=m.getAttribute("type"),C=m.tagName.toLowerCase()==="input"&&w.supportsInputType.includes(O)||m.isContentEditable||m.tagName.toLowerCase()==="textarea";if(!C)if(m.tagName.toLowerCase()==="input"){var M=document.createElement("input");M.setAttribute("type",O),C=M.type==="text",M=null}else C="partial";return C!==!1?function(T){var E,z;function F(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():c.getLastValidPosition.call(y)!==-1||w.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&w.clearMaskOnLostFocus?(y.isRTL?d.clearOptionalTail.call(y,c.getBuffer.call(y).slice()).reverse():d.clearOptionalTail.call(y,c.getBuffer.call(y).slice())).join(""):E.call(this):"":E.call(this)}function N(q){z.call(this,q),this.inputmask&&(0,d.applyInputValue)(this,q)}if(!T.inputmask.__valueGet){if(w.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var U=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(T),"value"):void 0;U&&U.get&&U.set?(E=U.get,z=U.set,Object.defineProperty(T,"value",{get:F,set:N,configurable:!0})):T.tagName.toLowerCase()!=="input"&&(E=function(){return this.textContent},z=function(q){this.textContent=q},Object.defineProperty(T,"value",{get:F,set:N,configurable:!0}))}else document.__lookupGetter__&&T.__lookupGetter__("value")&&(E=T.__lookupGetter__("value"),z=T.__lookupSetter__("value"),T.__defineGetter__("value",F),T.__defineSetter__("value",N));T.inputmask.__valueGet=E,T.inputmask.__valueSet=z}T.inputmask._valueGet=function(q){return y.isRTL&&q!==!0?E.call(this.el).split("").reverse().join(""):E.call(this.el)},T.inputmask._valueSet=function(q,P){z.call(this.el,q==null?"":P!==!0&&y.isRTL?q.split("").reverse().join(""):q)},E===void 0&&(E=function(){return this.value},z=function(q){this.value=q},function(q){if(b.valHooks&&(b.valHooks[q]===void 0||b.valHooks[q].inputmaskpatch!==!0)){var P=b.valHooks[q]&&b.valHooks[q].get?b.valHooks[q].get:function(I){return I.value},D=b.valHooks[q]&&b.valHooks[q].set?b.valHooks[q].set:function(I,L){return I.value=L,I};b.valHooks[q]={get:function(I){if(I.inputmask){if(I.inputmask.opts.autoUnmask)return I.inputmask.unmaskedvalue();var L=P(I);return c.getLastValidPosition.call(y,void 0,void 0,I.inputmask.maskset.validPositions)!==-1||w.nullable!==!0?L:""}return P(I)},set:function(I,L){var W=D(I,L);return I.inputmask&&(0,d.applyInputValue)(I,L),W},inputmaskpatch:!0}}}(T.type),function(q){p.EventRuler.on(q,"mouseenter",function(){var P=this,D=P.inputmask._valueGet(!0);D!=(P.inputmask.isRTL?c.getBuffer.call(P.inputmask).slice().reverse():c.getBuffer.call(P.inputmask)).join("")&&(0,d.applyInputValue)(P,D)})}(T))}}(m):m.inputmask=void 0,C}(S,x);if(f!==!1){y.originalPlaceholder=S.placeholder,y.maxLength=S!==void 0?S.maxLength:void 0,y.maxLength===-1&&(y.maxLength=void 0),"inputMode"in S&&S.getAttribute("inputmode")===null&&(S.inputMode=x.inputmode,S.setAttribute("inputmode",x.inputmode)),f===!0&&(x.showMaskOnFocus=x.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(S.autocomplete)===-1,v.iphone&&(x.insertModeVisual=!1,S.setAttribute("autocorrect","off")),p.EventRuler.on(S,"submit",h.EventHandlers.submitEvent),p.EventRuler.on(S,"reset",h.EventHandlers.resetEvent),p.EventRuler.on(S,"blur",h.EventHandlers.blurEvent),p.EventRuler.on(S,"focus",h.EventHandlers.focusEvent),p.EventRuler.on(S,"invalid",h.EventHandlers.invalidEvent),p.EventRuler.on(S,"click",h.EventHandlers.clickEvent),p.EventRuler.on(S,"mouseleave",h.EventHandlers.mouseleaveEvent),p.EventRuler.on(S,"mouseenter",h.EventHandlers.mouseenterEvent),p.EventRuler.on(S,"paste",h.EventHandlers.pasteEvent),p.EventRuler.on(S,"cut",h.EventHandlers.cutEvent),p.EventRuler.on(S,"complete",x.oncomplete),p.EventRuler.on(S,"incomplete",x.onincomplete),p.EventRuler.on(S,"cleared",x.oncleared),x.inputEventOnly!==!0&&p.EventRuler.on(S,"keydown",h.EventHandlers.keyEvent),(v.mobile||x.inputEventOnly)&&S.removeAttribute("maxLength"),p.EventRuler.on(S,"input",h.EventHandlers.inputFallBackEvent)),p.EventRuler.on(S,"setvalue",h.EventHandlers.setValueEvent),c.getBufferTemplate.call(y).join(""),y.undoValue=y._valueGet(!0);var k=(S.inputmask.shadowRoot||S.ownerDocument).activeElement;if(S.inputmask._valueGet(!0)!==""||x.clearMaskOnLostFocus===!1||k===S){(0,d.applyInputValue)(S,S.inputmask._valueGet(!0),x);var g=c.getBuffer.call(y).slice();_.isComplete.call(y,g)===!1&&x.clearIncomplete&&c.resetMaskSet.call(y),x.clearMaskOnLostFocus&&k!==S&&(c.getLastValidPosition.call(y)===-1?g=[]:d.clearOptionalTail.call(y,g)),(x.clearMaskOnLostFocus===!1||x.showMaskOnFocus&&k===S||S.inputmask._valueGet(!0)!=="")&&(0,d.writeBuffer)(S,g),k===S&&c.caret.call(y,S,c.seekNext.call(y,c.getLastValidPosition.call(y)))}}};var l=u(2839),c=u(8711),d=u(7760),p=u(9716),v=u(9845),_=u(7215),h=u(6030)},9695:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(u,l,c,d){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=l||!1,this.isQuantifier=c||!1,this.isAlternator=d||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(s,o){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),l=u.length>>>0;if(l===0)return!1;for(var c=0|o,d=Math.max(c>=0?c:l-Math.abs(c),0);d<l;){if(u[d]===s)return!0;d++}return!1}})},9302:function(){var s=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),l=Object.keys;Object.entries||(Object.entries=function(c){return s(l(c),function(d,p){return u(d,typeof p=="string"&&o(c,p)?[[p,c[p]]]:[])},[])})},7149:function(){function s(o){return s=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},s(o)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=s("test".__proto__)==="object"?function(o){return o.__proto__}:function(o){return o.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(s,o){return typeof o!="number"&&(o=0),!(o+s.length>this.length)&&this.indexOf(s,o)!==-1})},8711:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.caret=function(y,x,S,b,f){var k,g=this,m=this.opts;if(x===void 0)return"selectionStart"in y&&"selectionEnd"in y?(x=y.selectionStart,S=y.selectionEnd):window.getSelection?(k=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==y&&k.commonAncestorContainer!==y||(x=k.startOffset,S=k.endOffset):document.selection&&document.selection.createRange&&(S=(x=0-(k=document.selection.createRange()).duplicate().moveStart("character",-y.inputmask._valueGet().length))+k.text.length),{begin:b?x:h.call(g,x),end:b?S:h.call(g,S)};if(Array.isArray(x)&&(S=g.isRTL?x[0]:x[1],x=g.isRTL?x[1]:x[0]),x.begin!==void 0&&(S=g.isRTL?x.begin:x.end,x=g.isRTL?x.end:x.begin),typeof x=="number"){x=b?x:h.call(g,x),S=typeof(S=b?S:h.call(g,S))=="number"?S:x;var w=parseInt(((y.ownerDocument.defaultView||window).getComputedStyle?(y.ownerDocument.defaultView||window).getComputedStyle(y,null):y.currentStyle).fontSize)*S;if(y.scrollLeft=w>y.scrollWidth?w:0,y.inputmask.caretPos={begin:x,end:S},m.insertModeVisual&&m.insertMode===!1&&x===S&&(f||S++),y===(y.inputmask.shadowRoot||y.ownerDocument).activeElement)if("setSelectionRange"in y)y.setSelectionRange(x,S);else if(window.getSelection){if(k=document.createRange(),y.firstChild===void 0||y.firstChild===null){var O=document.createTextNode("");y.appendChild(O)}k.setStart(y.firstChild,x<y.inputmask._valueGet().length?x:y.inputmask._valueGet().length),k.setEnd(y.firstChild,S<y.inputmask._valueGet().length?S:y.inputmask._valueGet().length),k.collapse(!0);var C=window.getSelection();C.removeAllRanges(),C.addRange(k)}else y.createTextRange&&((k=y.createTextRange()).collapse(!0),k.moveEnd("character",S),k.moveStart("character",x),k.select())}},o.determineLastRequiredPosition=function(y){var x,S,b=this,f=b.maskset,k=b.dependencyLib,g=l.getMaskTemplate.call(b,!0,p.call(b),!0,!0),m=g.length,w=p.call(b),O={},C=f.validPositions[w],M=C!==void 0?C.locator.slice():void 0;for(x=w+1;x<g.length;x++)M=(S=l.getTestTemplate.call(b,x,M,x-1)).locator.slice(),O[x]=k.extend(!0,{},S);var T=C&&C.alternation!==void 0?C.locator[C.alternation]:void 0;for(x=m-1;x>w&&((S=O[x]).match.optionality||S.match.optionalQuantifier&&S.match.newBlockMarker||T&&(T!==O[x].locator[C.alternation]&&S.match.static!=1||S.match.static===!0&&S.locator[C.alternation]&&c.checkAlternationMatch.call(b,S.locator[C.alternation].toString().split(","),T.toString().split(","))&&l.getTests.call(b,x)[0].def!==""))&&g[x]===l.getPlaceholder.call(b,x,S.match);x--)m--;return y?{l:m,def:O[m]?O[m].match:void 0}:m},o.determineNewCaretPosition=function(y,x,S){var b=this,f=b.maskset,k=b.opts;if(x&&(b.isRTL?y.end=y.begin:y.begin=y.end),y.begin===y.end){switch(S=S||k.positionCaretOnClick){case"none":break;case"select":y={begin:0,end:d.call(b).length};break;case"ignore":y.end=y.begin=_.call(b,p.call(b));break;case"radixFocus":if(b.clicked>1&&f.validPositions.length==0)break;if(function(z){if(k.radixPoint!==""&&k.digits!==0){var F=f.validPositions;if(F[z]===void 0||F[z].input===l.getPlaceholder.call(b,z)){if(z<_.call(b,-1))return!0;var N=d.call(b).indexOf(k.radixPoint);if(N!==-1){for(var U=0,q=F.length;U<q;U++)if(F[U]&&N<U&&F[U].input!==l.getPlaceholder.call(b,U))return!1;return!0}}}return!1}(y.begin)){var g=d.call(b).join("").indexOf(k.radixPoint);y.end=y.begin=k.numericInput?_.call(b,g):g;break}default:var m=y.begin,w=p.call(b,m,!0),O=_.call(b,w!==-1||v.call(b,0)?w:-1);if(m<=O)y.end=y.begin=v.call(b,m,!1,!0)?m:_.call(b,m);else{var C=f.validPositions[w],M=l.getTestTemplate.call(b,O,C?C.match.locator:void 0,C),T=l.getPlaceholder.call(b,O,M.match);if(T!==""&&d.call(b)[O]!==T&&M.match.optionalQuantifier!==!0&&M.match.newBlockMarker!==!0||!v.call(b,O,k.keepStatic,!0)&&M.match.def===T){var E=_.call(b,O);(m>=E||m===O)&&(O=E)}y.end=y.begin=O}}return y}},o.getBuffer=d,o.getBufferTemplate=function(){var y=this.maskset;return y._buffer===void 0&&(y._buffer=l.getMaskTemplate.call(this,!1,1),y.buffer===void 0&&(y.buffer=y._buffer.slice())),y._buffer},o.getLastValidPosition=p,o.isMask=v,o.resetMaskSet=function(y){var x=this.maskset;x.buffer=void 0,y!==!0&&(x.validPositions=[],x.p=0)},o.seekNext=_,o.seekPrevious=function(y,x){var S=this,b=y-1;if(y<=0)return 0;for(;b>0&&(x===!0&&(l.getTest.call(S,b).match.newBlockMarker!==!0||!v.call(S,b,void 0,!0))||x!==!0&&!v.call(S,b,void 0,!0));)b--;return b},o.translatePosition=h;var l=u(4713),c=u(7215);function d(y){var x=this,S=x.maskset;return S.buffer!==void 0&&y!==!0||(S.buffer=l.getMaskTemplate.call(x,!0,p.call(x),!0),S._buffer===void 0&&(S._buffer=S.buffer.slice())),S.buffer}function p(y,x,S){var b=this.maskset,f=-1,k=-1,g=S||b.validPositions;y===void 0&&(y=-1);for(var m=0,w=g.length;m<w;m++)g[m]&&(x||g[m].generatedInput!==!0)&&(m<=y&&(f=m),m>=y&&(k=m));return f===-1||f==y?k:k==-1||y-f<k-y?f:k}function v(y,x,S){var b=this,f=this.maskset,k=l.getTestTemplate.call(b,y).match;if(k.def===""&&(k=l.getTest.call(b,y).match),k.static!==!0)return k.fn;if(S===!0&&f.validPositions[y]!==void 0&&f.validPositions[y].generatedInput!==!0)return!0;if(x!==!0&&y>-1){if(S){var g=l.getTests.call(b,y);return g.length>1+(g[g.length-1].match.def===""?1:0)}var m=l.determineTestTemplate.call(b,y,l.getTests.call(b,y)),w=l.getPlaceholder.call(b,y,m.match);return m.match.def!==w}return!1}function _(y,x,S){var b=this;S===void 0&&(S=!0);for(var f=y+1;l.getTest.call(b,f).match.def!==""&&(x===!0&&(l.getTest.call(b,f).match.newBlockMarker!==!0||!v.call(b,f,void 0,!0))||x!==!0&&!v.call(b,f,void 0,S));)f++;return f}function h(y){var x=this.opts,S=this.el;return!this.isRTL||typeof y!="number"||x.greedy&&x.placeholder===""||!S||(y=this._valueGet().length-y)<0&&(y=0),y}},4713:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.determineTestTemplate=h,o.getDecisionTaker=p,o.getMaskTemplate=function(b,f,k,g,m){var w=this,O=this.opts,C=this.maskset,M=O.greedy;m&&O.greedy&&(O.greedy=!1,w.maskset.tests={}),f=f||0;var T,E,z,F,N=[],U=0;do{if(b===!0&&C.validPositions[U])E=(z=m&&C.validPositions[U].match.optionality&&C.validPositions[U+1]===void 0&&(C.validPositions[U].generatedInput===!0||C.validPositions[U].input==O.skipOptionalPartCharacter&&U>0)?h.call(w,U,S.call(w,U,T,U-1)):C.validPositions[U]).match,T=z.locator.slice(),N.push(k===!0?z.input:k===!1?E.nativeDef:v.call(w,U,E));else{E=(z=_.call(w,U,T,U-1)).match,T=z.locator.slice();var q=g!==!0&&(O.jitMasking!==!1?O.jitMasking:E.jit);(F=(F&&E.static&&E.def!==O.groupSeparator&&E.fn===null||C.validPositions[U-1]&&E.static&&E.def!==O.groupSeparator&&E.fn===null)&&C.tests[U])||q===!1||q===void 0||typeof q=="number"&&isFinite(q)&&q>U?N.push(k===!1?E.nativeDef:v.call(w,N.length,E)):F=!1}U++}while(E.static!==!0||E.def!==""||f>U);return N[N.length-1]===""&&N.pop(),k===!1&&C.maskLength!==void 0||(C.maskLength=U-1),O.greedy=M,N},o.getPlaceholder=v,o.getTest=y,o.getTestTemplate=_,o.getTests=S,o.isSubsetOf=x;var l,c=(l=u(2394))&&l.__esModule?l:{default:l};function d(b,f){var k=(b.alternation!=null?b.mloc[p(b)]:b.locator).join("");if(k!=="")for(;k.length<f;)k+="0";return k}function p(b){var f=b.locator[b.alternation];return typeof f=="string"&&f.length>0&&(f=f.split(",")[0]),f!==void 0?f.toString():""}function v(b,f,k){var g=this.opts,m=this.maskset;if((f=f||y.call(this,b).match).placeholder!==void 0||k===!0)return typeof f.placeholder=="function"?f.placeholder(g):f.placeholder;if(f.static===!0){if(b>-1&&m.validPositions[b]===void 0){var w,O=S.call(this,b),C=[];if(O.length>1+(O[O.length-1].match.def===""?1:0)){for(var M=0;M<O.length;M++)if(O[M].match.def!==""&&O[M].match.optionality!==!0&&O[M].match.optionalQuantifier!==!0&&(O[M].match.static===!0||w===void 0||O[M].match.fn.test(w.match.def,m,b,!0,g)!==!1)&&(C.push(O[M]),O[M].match.static===!0&&(w=O[M]),C.length>1&&/[0-9a-bA-Z]/.test(C[0].match.def)))return g.placeholder.charAt(b%g.placeholder.length)}}return f.def}return g.placeholder.charAt(b%g.placeholder.length)}function _(b,f,k){return this.maskset.validPositions[b]||h.call(this,b,S.call(this,b,f&&f.slice(),k))}function h(b,f){var k=this.opts,g=0,m=function(F,N){var U=0,q=!1;return N.forEach(function(P){P.match.optionality&&(U!==0&&U!==P.match.optionality&&(q=!0),(U===0||U>P.match.optionality)&&(U=P.match.optionality))}),U&&(F==0||N.length==1?U=0:q||(U=0)),U}(b,f);b=b>0?b-1:0;var w,O,C,M=d(y.call(this,b));k.greedy&&f.length>1&&f[f.length-1].match.def===""&&(g=1);for(var T=0;T<f.length-g;T++){var E=f[T];w=d(E,M.length);var z=Math.abs(w-M);(O===void 0||w!==""&&z<O||C&&!k.greedy&&C.match.optionality&&C.match.optionality-m>0&&C.match.newBlockMarker==="master"&&(!E.match.optionality||E.match.optionality-m<1||!E.match.newBlockMarker)||C&&!k.greedy&&C.match.optionalQuantifier&&!E.match.optionalQuantifier)&&(O=z,C=E)}return C}function y(b,f){var k=this.maskset;return k.validPositions[b]?k.validPositions[b]:(f||S.call(this,b))[0]}function x(b,f,k){function g(m){for(var w,O=[],C=-1,M=0,T=m.length;M<T;M++)if(m.charAt(M)==="-")for(w=m.charCodeAt(M+1);++C<w;)O.push(String.fromCharCode(C));else C=m.charCodeAt(M),O.push(m.charAt(M));return O.join("")}return b.match.def===f.match.nativeDef||!(!(k.regex||b.match.fn instanceof RegExp&&f.match.fn instanceof RegExp)||b.match.static===!0||f.match.static===!0)&&g(f.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(g(b.match.fn.toString().replace(/[[\]/]/g,"")))!==-1}function S(b,f,k){var g,m,w=this,O=this.dependencyLib,C=this.maskset,M=this.opts,T=this.el,E=C.maskToken,z=f?k:0,F=f?f.slice():[0],N=[],U=!1,q=f?f.join(""):"";function P(Y,Q,J,R){function A(B,G,Z){function te(ie,ue){var ne=ue.matches.indexOf(ie)===0;return ne||ue.matches.every(function(pe,be){return pe.isQuantifier===!0?ne=te(ie,ue.matches[be-1]):Object.prototype.hasOwnProperty.call(pe,"matches")&&(ne=te(ie,pe)),!ne}),ne}function re(ie,ue,ne){var pe,be;if((C.tests[ie]||C.validPositions[ie])&&(C.tests[ie]||[C.validPositions[ie]]).every(function(Ie,ct){if(Ie.mloc[ue])return pe=Ie,!1;var De=ne!==void 0?ne:Ie.alternation,dt=Ie.locator[De]!==void 0?Ie.locator[De].toString().indexOf(ue):-1;return(be===void 0||dt<be)&&dt!==-1&&(pe=Ie,be=dt),!0}),pe){var Pe=pe.locator[pe.alternation];return(pe.mloc[ue]||pe.mloc[Pe]||pe.locator).slice((ne!==void 0?ne:pe.alternation)+1)}return ne!==void 0?re(ie,ue):void 0}function le(ie,ue){var ne=ie.alternation,pe=ue===void 0||ne===ue.alternation&&ie.locator[ne].toString().indexOf(ue.locator[ne])===-1;if(!pe&&ne>ue.alternation){for(var be=ue.alternation;be<ne;be++)if(ie.locator[be]!==ue.locator[be]){ne=be,pe=!0;break}}if(pe){ie.mloc=ie.mloc||{};var Pe=ie.locator[ne];if(Pe!==void 0){if(typeof Pe=="string"&&(Pe=Pe.split(",")[0]),ie.mloc[Pe]===void 0&&(ie.mloc[Pe]=ie.locator.slice()),ue!==void 0){for(var Ie in ue.mloc)typeof Ie=="string"&&(Ie=Ie.split(",")[0]),ie.mloc[Ie]===void 0&&(ie.mloc[Ie]=ue.mloc[Ie]);ie.locator[ne]=Object.keys(ie.mloc).join(",")}return!0}ie.alternation=void 0}return!1}function he(ie,ue){if(ie.locator.length!==ue.locator.length)return!1;for(var ne=ie.alternation+1;ne<ie.locator.length;ne++)if(ie.locator[ne]!==ue.locator[ne])return!1;return!0}if(z>b+M._maxTestPos)throw"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. "+C.mask;if(z===b&&B.matches===void 0){if(N.push({match:B,locator:G.reverse(),cd:q,mloc:{}}),!B.optionality||Z!==void 0||!(M.definitions&&M.definitions[B.nativeDef]&&M.definitions[B.nativeDef].optional||c.default.prototype.definitions[B.nativeDef]&&c.default.prototype.definitions[B.nativeDef].optional))return!0;U=!0,z=b}else if(B.matches!==void 0){if(B.isGroup&&Z!==B)return function(){if(B=A(Y.matches[Y.matches.indexOf(B)+1],G,Z))return!0}();if(B.isOptional)return function(){var ie=B,ue=N.length;if(B=P(B,Q,G,Z),N.length>0){if(N.forEach(function(ne,pe){pe>=ue&&(ne.match.optionality=ne.match.optionality?ne.match.optionality+1:1)}),g=N[N.length-1].match,Z!==void 0||!te(g,ie))return B;U=!0,z=b}}();if(B.isAlternator)return function(){w.hasAlternator=!0;var ie,ue,ne,pe=B,be=[],Pe=N.slice(),Ie=G.length,ct=!1,De=Q.length>0?Q.shift():-1;if(De===-1||typeof De=="string"){var dt,_t=z,ck=Q.slice(),rr=[];if(typeof De=="string")rr=De.split(",");else for(dt=0;dt<pe.matches.length;dt++)rr.push(dt.toString());if(C.excludes[b]!==void 0){for(var JJ=rr.slice(),lf=0,ZJ=C.excludes[b].length;lf<ZJ;lf++){var dk=C.excludes[b][lf].toString().split(":");G.length==dk[1]&&rr.splice(rr.indexOf(dk[0]),1)}rr.length===0&&(delete C.excludes[b],rr=JJ)}(M.keepStatic===!0||isFinite(parseInt(M.keepStatic))&&_t>=M.keepStatic)&&(rr=rr.slice(0,1));for(var Su=0;Su<rr.length;Su++){dt=parseInt(rr[Su]),N=[],Q=typeof De=="string"&&re(z,dt,Ie)||ck.slice();var Ds=pe.matches[dt];if(Ds&&A(Ds,[dt].concat(G),Z))B=!0;else if(Su===0&&(ct=!0),Ds&&Ds.matches&&Ds.matches.length>pe.matches[0].matches.length)break;ie=N.slice(),z=_t,N=[];for(var uf=0;uf<ie.length;uf++){var it=ie[uf],ku=!1;it.match.jit=it.match.jit||ct,it.alternation=it.alternation||Ie,le(it);for(var cf=0;cf<be.length;cf++){var xr=be[cf];if(typeof De!="string"||it.alternation!==void 0&&rr.includes(it.locator[it.alternation].toString())){if(it.match.nativeDef===xr.match.nativeDef){ku=!0,le(xr,it);break}if(x(it,xr,M)){le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it));break}if(x(xr,it,M)){le(xr,it);break}if(ne=xr,(ue=it).match.static===!0&&ne.match.static!==!0&&ne.match.fn.test(ue.match.def,C,b,!1,M,!1)){he(it,xr)||T.inputmask.userOptions.keepStatic!==void 0?le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it)):M.keepStatic=!0;break}}}ku||be.push(it)}}N=Pe.concat(be),z=b,U=N.length>0,B=be.length>0,Q=ck.slice()}else B=A(pe.matches[De]||Y.matches[De],[De].concat(G),Z);if(B)return!0}();if(B.isQuantifier&&Z!==Y.matches[Y.matches.indexOf(B)-1])return function(){for(var ie=B,ue=!1,ne=Q.length>0?Q.shift():0;ne<(isNaN(ie.quantifier.max)?ne+1:ie.quantifier.max)&&z<=b;ne++){var pe=Y.matches[Y.matches.indexOf(ie)-1];if(B=A(pe,[ne].concat(G),pe)){if(N.forEach(function(be,Pe){(g=D(pe,be.match)?be.match:N[N.length-1].match).optionalQuantifier=ne>=ie.quantifier.min,g.jit=(ne+1)*(pe.matches.indexOf(g)+1)>ie.quantifier.jit,g.optionalQuantifier&&te(g,pe)&&(U=!0,z=b,M.greedy&&C.validPositions[b-1]==null&&ne>ie.quantifier.min&&["*","+"].indexOf(ie.quantifier.max)!=-1&&(N.pop(),q=void 0),ue=!0,B=!1),!ue&&g.jit&&(C.jitOffset[b]=pe.matches.length-pe.matches.indexOf(g))}),ue)break;return!0}}}();if(B=P(B,Q,G,Z))return!0}else z++}for(var $=Q.length>0?Q.shift():0;$<Y.matches.length;$++)if(Y.matches[$].isQuantifier!==!0){var j=A(Y.matches[$],[$].concat(J),R);if(j&&z===b)return j;if(z>b)break}}function D(Y,Q){var J=Y.matches.indexOf(Q)!=-1;return J||Y.matches.forEach(function(R,A){R.matches===void 0||J||(J=D(R,Q))}),J}if(b>-1){if(f===void 0){for(var I,L=b-1;(I=C.validPositions[L]||C.tests[L])===void 0&&L>-1;)L--;I!==void 0&&L>-1&&(F=function(Y,Q){var J,R=[];return Array.isArray(Q)||(Q=[Q]),Q.length>0&&(Q[0].alternation===void 0||M.keepStatic===!0?(R=h.call(w,Y,Q.slice()).locator.slice()).length===0&&(R=Q[0].locator.slice()):Q.forEach(function(A){A.def!==""&&(R.length===0?(J=A.alternation,R=A.locator.slice()):A.locator[J]&&R[J].toString().indexOf(A.locator[J])===-1&&(R[J]+=","+A.locator[J]))})),R}(L,I),q=F.join(""),z=L)}if(C.tests[b]&&C.tests[b][0].cd===q)return C.tests[b];for(var W=F.shift();W<E.length&&!(P(E[W],F,[W])&&z===b||z>b);W++);}return(N.length===0||U)&&N.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:q}),f!==void 0&&C.tests[b]?m=O.extend(!0,[],N):(C.tests[b]=O.extend(!0,[],N),m=C.tests[b]),N.forEach(function(Y){Y.match.optionality=Y.match.defOptionality||!1}),m}},7215:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.alternate=v,o.checkAlternationMatch=function(g,m,w){for(var O,C=this.opts.greedy?m:m.slice(0,1),M=!1,T=w!==void 0?w.split(","):[],E=0;E<T.length;E++)(O=g.indexOf(T[E]))!==-1&&g.splice(O,1);for(var z=0;z<g.length;z++)if(C.includes(g[z])){M=!0;break}return M},o.handleRemove=function(g,m,w,O,C){var M=this,T=this.maskset,E=this.opts;if((E.numericInput||M.isRTL)&&(m===c.keys.Backspace?m=c.keys.Delete:m===c.keys.Delete&&(m=c.keys.Backspace),M.isRTL)){var z=w.end;w.end=w.begin,w.begin=z}var F,N=d.getLastValidPosition.call(M,void 0,!0);if(w.end>=d.getBuffer.call(M).length&&N>=w.end&&(w.end=N+1),m===c.keys.Backspace?w.end-w.begin<1&&(w.begin=d.seekPrevious.call(M,w.begin)):m===c.keys.Delete&&w.begin===w.end&&(w.end=d.isMask.call(M,w.end,!0,!0)?w.end+1:d.seekNext.call(M,w.end)+1),(F=k.call(M,w))!==!1){if(O!==!0&&E.keepStatic!==!1||E.regex!==null&&l.getTest.call(M,w.begin).match.def.indexOf("|")!==-1){var U=v.call(M,!0);if(U){var q=U.caret!==void 0?U.caret:U.pos?d.seekNext.call(M,U.pos.begin?U.pos.begin:U.pos):d.getLastValidPosition.call(M,-1,!0);(m!==c.keys.Delete||w.begin>q)&&w.begin}}O!==!0&&(T.p=m===c.keys.Delete?w.begin+F:w.begin,T.p=d.determineNewCaretPosition.call(M,{begin:T.p,end:T.p},!1,E.insertMode===!1&&m===c.keys.Backspace?"none":void 0).begin)}},o.isComplete=h,o.isSelection=y,o.isValid=x,o.refreshFromBuffer=b,o.revalidateMask=k;var l=u(4713),c=u(2839),d=u(8711),p=u(6030);function v(g,m,w,O,C,M){var T,E,z,F,N,U,q,P,D,I,L,W=this,Y=this.dependencyLib,Q=this.opts,J=W.maskset,R=Y.extend(!0,[],J.validPositions),A=Y.extend(!0,{},J.tests),$=!1,j=!1,B=C!==void 0?C:d.getLastValidPosition.call(W);if(M&&(I=M.begin,L=M.end,M.begin>M.end&&(I=M.end,L=M.begin)),B===-1&&C===void 0)T=0,E=(F=l.getTest.call(W,T)).alternation;else for(;B>=0;B--)if((z=J.validPositions[B])&&z.alternation!==void 0){if(B<=(g||0)&&F&&F.locator[z.alternation]!==z.locator[z.alternation])break;T=B,E=J.validPositions[T].alternation,F=z}if(E!==void 0){q=parseInt(T),J.excludes[q]=J.excludes[q]||[],g!==!0&&J.excludes[q].push((0,l.getDecisionTaker)(F)+":"+F.alternation);var G=[],Z=-1;for(N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)Z===-1&&g<=N&&m!==void 0&&(G.push(m),Z=G.length-1),(U=J.validPositions[N])&&U.generatedInput!==!0&&(M===void 0||N<I||N>=L)&&G.push(U.input),delete J.validPositions[N];for(Z===-1&&m!==void 0&&(G.push(m),Z=G.length-1);J.excludes[q]!==void 0&&J.excludes[q].length<10;){for(J.tests={},d.resetMaskSet.call(W,!0),$=!0,N=0;N<G.length&&(P=$.caret||d.getLastValidPosition.call(W,void 0,!0)+1,D=G[N],$=x.call(W,P,D,!1,O,!0));N++)N===Z&&(j=$),g==1&&$&&(j={caretPos:N});if($)break;if(d.resetMaskSet.call(W),F=l.getTest.call(W,q),J.validPositions=Y.extend(!0,[],R),J.tests=Y.extend(!0,{},A),!J.excludes[q]){j=v.call(W,g,m,w,O,q-1,M);break}var te=(0,l.getDecisionTaker)(F);if(J.excludes[q].indexOf(te+":"+F.alternation)!==-1){j=v.call(W,g,m,w,O,q-1,M);break}for(J.excludes[q].push(te+":"+F.alternation),N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)delete J.validPositions[N]}}return j&&Q.keepStatic===!1||delete J.excludes[q],j}function _(g,m,w){var O=this.opts,C=this.maskset;switch(O.casing||m.casing){case"upper":g=g.toUpperCase();break;case"lower":g=g.toLowerCase();break;case"title":var M=C.validPositions[w-1];g=w===0||M&&M.input===String.fromCharCode(c.keyCode.Space)?g.toUpperCase():g.toLowerCase();break;default:if(typeof O.casing=="function"){var T=Array.prototype.slice.call(arguments);T.push(C.validPositions),g=O.casing.apply(this,T)}}return g}function h(g){var m=this,w=this.opts,O=this.maskset;if(typeof w.isComplete=="function")return w.isComplete(g,w);if(w.repeat!=="*"){var C=!1,M=d.determineLastRequiredPosition.call(m,!0),T=d.seekPrevious.call(m,M.l);if(M.def===void 0||M.def.newBlockMarker||M.def.optionality||M.def.optionalQuantifier){C=!0;for(var E=0;E<=T;E++){var z=l.getTestTemplate.call(m,E).match;if(z.static!==!0&&O.validPositions[E]===void 0&&z.optionality!==!0&&z.optionalQuantifier!==!0||z.static===!0&&g[E]!==l.getPlaceholder.call(m,E,z)){C=!1;break}}}return C}}function y(g){var m=this.opts.insertMode?0:1;return this.isRTL?g.begin-g.end>m:g.end-g.begin>m}function x(g,m,w,O,C,M,T){var E=this,z=this.dependencyLib,F=this.opts,N=E.maskset;w=w===!0;var U=g;function q($){if($!==void 0){if($.remove!==void 0&&(Array.isArray($.remove)||($.remove=[$.remove]),$.remove.sort(function(B,G){return E.isRTL?B.pos-G.pos:G.pos-B.pos}).forEach(function(B){k.call(E,{begin:B,end:B+1})}),$.remove=void 0),$.insert!==void 0&&(Array.isArray($.insert)||($.insert=[$.insert]),$.insert.sort(function(B,G){return E.isRTL?G.pos-B.pos:B.pos-G.pos}).forEach(function(B){B.c!==""&&x.call(E,B.pos,B.c,B.strict===void 0||B.strict,B.fromIsValid!==void 0?B.fromIsValid:O)}),$.insert=void 0),$.refreshFromBuffer&&$.buffer){var j=$.refreshFromBuffer;b.call(E,j===!0?j:j.start,j.end,$.buffer),$.refreshFromBuffer=void 0}$.rewritePosition!==void 0&&(U=$.rewritePosition,$=!0)}return $}function P($,j,B){var G=!1;return l.getTests.call(E,$).every(function(Z,te){var re=Z.match;if(d.getBuffer.call(E,!0),(G=(!re.jit||N.validPositions[d.seekPrevious.call(E,$)]!==void 0)&&(re.fn!=null?re.fn.test(j,N,$,B,F,y.call(E,g)):(j===re.def||j===F.skipOptionalPartCharacter)&&re.def!==""&&{c:l.getPlaceholder.call(E,$,re,!0)||re.def,pos:$}))!==!1){var le=G.c!==void 0?G.c:j,he=$;return le=le===F.skipOptionalPartCharacter&&re.static===!0?l.getPlaceholder.call(E,$,re,!0)||re.def:le,(G=q(G))!==!0&&G.pos!==void 0&&G.pos!==$&&(he=G.pos),G!==!0&&G.pos===void 0&&G.c===void 0||k.call(E,g,z.extend({},Z,{input:_.call(E,le,re,he)}),O,he)===!1&&(G=!1),!1}return!0}),G}g.begin!==void 0&&(U=E.isRTL?g.end:g.begin);var D=!0,I=z.extend(!0,{},N.validPositions);if(F.keepStatic===!1&&N.excludes[U]!==void 0&&C!==!0&&O!==!0)for(var L=U;L<(E.isRTL?g.begin:g.end);L++)N.excludes[L]!==void 0&&(N.excludes[L]=void 0,delete N.tests[L]);if(typeof F.preValidation=="function"&&O!==!0&&M!==!0&&(D=q(D=F.preValidation.call(E,d.getBuffer.call(E),U,m,y.call(E,g),F,N,g,w||C))),D===!0){if(D=P(U,m,w),(!w||O===!0)&&D===!1&&M!==!0){var W=N.validPositions[U];if(!W||W.match.static!==!0||W.match.def!==m&&m!==F.skipOptionalPartCharacter){if(F.insertMode||N.validPositions[d.seekNext.call(E,U)]===void 0||g.end>U){var Y=!1;if(N.jitOffset[U]&&N.validPositions[d.seekNext.call(E,U)]===void 0&&(D=x.call(E,U+N.jitOffset[U],m,!0,!0))!==!1&&(C!==!0&&(D.caret=U),Y=!0),g.end>U&&(N.validPositions[U]=void 0),!Y&&!d.isMask.call(E,U,F.keepStatic&&U===0)){for(var Q=U+1,J=d.seekNext.call(E,U,!1,U!==0);Q<=J;Q++)if((D=P(Q,m,w))!==!1){D=f.call(E,U,D.pos!==void 0?D.pos:Q)||D,U=Q;break}}}}else D={caret:d.seekNext.call(E,U)}}E.hasAlternator&&C!==!0&&!w&&(D===!1&&F.keepStatic&&(h.call(E,d.getBuffer.call(E))||U===0)?D=v.call(E,U,m,w,O,void 0,g):(y.call(E,g)&&N.tests[U]&&N.tests[U].length>1&&F.keepStatic||D==1&&F.numericInput!==!0&&N.tests[U]&&N.tests[U].length>1&&d.getLastValidPosition.call(E,void 0,!0)>U)&&(D=v.call(E,!0))),D===!0&&(D={pos:U})}if(typeof F.postValidation=="function"&&O!==!0&&M!==!0){var R=F.postValidation.call(E,d.getBuffer.call(E,!0),g.begin!==void 0?E.isRTL?g.end:g.begin:g,m,D,F,N,w,T);R!==void 0&&(D=R===!0?D:R)}D&&D.pos===void 0&&(D.pos=U),D===!1||M===!0?(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I)):f.call(E,void 0,U,!0);var A=q(D);return E.maxLength!==void 0&&d.getBuffer.call(E).length>E.maxLength&&!O&&(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I),A=!1),A}function S(g,m,w){for(var O=this.maskset,C=!1,M=l.getTests.call(this,g),T=0;T<M.length;T++){if(M[T].match&&(M[T].match.nativeDef===m.match[w.shiftPositions?"def":"nativeDef"]&&(!w.shiftPositions||!m.match.static)||M[T].match.nativeDef===m.match.nativeDef||w.regex&&!M[T].match.static&&M[T].match.fn.test(m.input,O,g,!1,w))){C=!0;break}if(M[T].match&&M[T].match.def===m.match.nativeDef){C=void 0;break}}return C===!1&&O.jitOffset[g]!==void 0&&(C=S.call(this,g+O.jitOffset[g],m,w)),C}function b(g,m,w){var O,C,M=this,T=this.maskset,E=this.opts,z=this.dependencyLib,F=E.skipOptionalPartCharacter,N=M.isRTL?w.slice().reverse():w;if(E.skipOptionalPartCharacter="",g===!0)d.resetMaskSet.call(M),T.tests={},g=0,m=w.length,C=d.determineNewCaretPosition.call(M,{begin:0,end:0},!1).begin;else{for(O=g;O<m;O++)delete T.validPositions[O];C=g}var U=new z.Event("keypress");for(O=g;O<m;O++){U.key=N[O].toString(),M.ignorable=!1;var q=p.EventHandlers.keypressEvent.call(M,U,!0,!1,!1,C);q!==!1&&q!==void 0&&(C=q.forwardPosition)}E.skipOptionalPartCharacter=F}function f(g,m,w){var O=this,C=this.maskset,M=this.dependencyLib;if(g===void 0)for(g=m-1;g>0&&!C.validPositions[g];g--);for(var T=g;T<m;T++)if(C.validPositions[T]===void 0&&!d.isMask.call(O,T,!1)&&(T==0?l.getTest.call(O,T):C.validPositions[T-1])){var E=l.getTests.call(O,T).slice();E[E.length-1].match.def===""&&E.pop();var z,F=l.determineTestTemplate.call(O,T,E);if(F&&(F.match.jit!==!0||F.match.newBlockMarker==="master"&&(z=C.validPositions[T+1])&&z.match.optionalQuantifier===!0)&&((F=M.extend({},F,{input:l.getPlaceholder.call(O,T,F.match,!0)||F.match.def})).generatedInput=!0,k.call(O,T,F,!0),w!==!0)){var N=C.validPositions[m].input;return C.validPositions[m]=void 0,x.call(O,m,N,!0,!0)}}}function k(g,m,w,O){var C=this,M=this.maskset,T=this.opts,E=this.dependencyLib;function z(R,A,$){var j=A[R];if(j!==void 0&&j.match.static===!0&&j.match.optionality!==!0&&(A[0]===void 0||A[0].alternation===void 0)){var B=$.begin<=R-1?A[R-1]&&A[R-1].match.static===!0&&A[R-1]:A[R-1],G=$.end>R+1?A[R+1]&&A[R+1].match.static===!0&&A[R+1]:A[R+1];return B&&G}return!1}var F=0,N=g.begin!==void 0?g.begin:g,U=g.end!==void 0?g.end:g,q=!0;if(g.begin>g.end&&(N=g.end,U=g.begin),O=O!==void 0?O:N,w===void 0&&(N!==U||T.insertMode&&M.validPositions[O]!==void 0||m===void 0||m.match.optionalQuantifier||m.match.optionality)){var P,D=E.extend(!0,{},M.validPositions),I=d.getLastValidPosition.call(C,void 0,!0);for(M.p=N,P=I;P>=N;P--)delete M.validPositions[P],m===void 0&&delete M.tests[P+1];var L,W,Y=O,Q=Y;for(m&&(M.validPositions[O]=E.extend(!0,{},m),Q++,Y++),P=m?U:U-1;P<=I;P++){if((L=D[P])!==void 0&&L.generatedInput!==!0&&(P>=U||P>=N&&z(P,D,{begin:N,end:U}))){for(;l.getTest.call(C,Q).match.def!=="";){if((W=S.call(C,Q,L,T))!==!1||L.match.def==="+"){L.match.def==="+"&&d.getBuffer.call(C,!0);var J=x.call(C,Q,L.input,L.match.def!=="+",!0);if(q=J!==!1,Y=(J.pos||Q)+1,!q&&W)break}else q=!1;if(q){m===void 0&&L.match.static&&P===g.begin&&F++;break}if(!q&&d.getBuffer.call(C),Q>M.maskLength)break;Q++}l.getTest.call(C,Q).match.def==""&&(q=!1),Q=Y}if(!q)break}if(!q)return M.validPositions=E.extend(!0,[],D),d.resetMaskSet.call(C,!0),!1}else m&&l.getTest.call(C,O).match.cd===m.match.cd&&(M.validPositions[O]=E.extend(!0,{},m));return d.resetMaskSet.call(C,!0),F}}},a={};function i(s){var o=a[s];if(o!==void 0)return o.exports;var u=a[s]={exports:{}};return r[s](u,u.exports,i),u.exports}var n={};return function(){var s,o=n;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,i(7149),i(3194),i(9302),i(4013),i(3851),i(219),i(207),i(5296);var u=((s=i(2394))&&s.__esModule?s:{default:s}).default;o.default=u}(),n}()})})(cb);var fW=cb.exports;const db=ar(fW),VX="",hW={props:{value:null,decimal:{type:String,default:","},thousands:{type:String,default:"."},prefix:{type:String,default:"$ "},suffix:{type:String,default:" USD"},precision:{type:Number,default:2}},computed:{currencyInput(){return this.$refs.currencyInput}},data(){return{currencyValue:"",unformattedValue:null}},watch:{value:{handler(t){t!=this.unformattedValue&&this.currencyInput.inputmask.setValue(t)}},currencyValue(){this.handleInput()}},methods:{loadMasks(){const t=this.suffix.trim()==="INR"?"indianns":"currency";db(t,{digits:this.precision,prefix:this.prefix,suffix:this.suffix,radixPoint:this.decimal,groupSeparator:this.thousands}).mask(this.currencyInput),this.value&&this.currencyInput.inputmask.setValue(this.value)},keyup(t){this.currencyValue!==t.target.value?this.currencyValue=t.target.value:this.handleInput()},handleInput(){this.unformattedValue=parseFloat(this.currencyInput.inputmask.unmaskedvalue().replace(",",".")),this.$emit("input",this.unformattedValue||0)}},mounted(){this.loadMasks()}};var mW=function(){var e=this,r=e._self._c;return r("input",{directives:[{name:"model",rawName:"v-model",value:e.currencyValue,expression:"currencyValue"}],ref:"currencyInput",staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.currencyValue},on:{keyup:e.keyup,input:function(a){a.target.composing||(e.currencyValue=a.target.value)}}})},gW=[],vW=oe(hW,mW,gW,!1,null,null,null,null);const bW=vW.exports,yW=vn(),pb={currency:"inputmasked",date:"the-mask",datetime:"the-mask",percentage:"inputmasked",custom:"the-mask"},fb={currency:"getCurrencyFormat",date:"getDateFormat",datetime:"getDatetimeFormat",percentage:"getPercentageFormat",custom:"getCustomFormatter"},xW={components:{TheMask:pW.TheMask,Inputmasked:bW,RequiredAsterisk:ee.RequiredAsterisk},mixins:[yW,ee.ValidationMixin],inheritAttrs:!1,props:["value","label","error","helper","name","controlClass","dataMask","config","transientData","formConfig","form-watchers"],data(){const{dataFormat:t,customFormatter:e}=this.config,r=t==="int"||t==="float"?15:null,a=(()=>{const p=this.dataMask&&this.dataMask?this.dataMask&&this.dataMask.format:null,v=p?p.match(/[.,]/g):[".",","];v.length===0?v.push("","."):v.length===1&&v.push(v[0]==="."?",":".");const _=p?(p.split(v[1])[1]||"").length:2;return{decimal:v[1],thousands:v[0],prefix:this.dataMask&&this.dataMask.symbol?`${this.dataMask.symbol} `:"",suffix:this.dataMask&&this.dataMask.code?` ${this.dataMask.code}`:"",precision:_,masked:!1}})(),i={decimal:".",thousands:"",prefix:"",suffix:" %",precision:2,masked:!1},n={masked:!0,mask:this.getUserConfig().date_mask||this.getMask().date},s={masked:!0,mask:this.getUserConfig().datetime_mask||this.getMask().dateTime},o=(()=>e?pb.custom:pb[t]||"input")(),u=(()=>{switch(t){case"int":return"number";case"float":return"number";case"email":return"email";case"password":return"password";default:return"text"}})(),l={masked:!0,mask:e};let c;return e?c=fb.custom:c=fb[t],{dataFormat:t,customFormatter:e,maxlength:r,getCurrencyFormat:a,getPercentageFormat:i,getDateFormat:n,getDatetimeFormat:s,componentType:o,dataType:u,getCustomFormatter:l,componentConfig:JSON.parse(JSON.stringify({...c?{getCurrencyFormat:a,getDateFormat:n,getDatetimeFormat:s,getPercentageFormat:i,getCustomFormatter:l}[c]:{},...this.$attrs})),validator:null,localValue:null,validationRules:{percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/"}}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},componentConfigComputed(){return JSON.parse(JSON.stringify(this.componentConfig))}},watch:{value(t){this.localValue!==t&&(this.localValue=t)},localValue(t){t!==this.value&&this.$emit("input",this.convertToData(t))}},mounted(){this.value!==void 0&&(this.localValue=this.value)},methods:{onChange(){this.$emit("change",this.convertToData(this.localValue))},getUserConfig(){return window.ProcessMaker&&window.ProcessMaker.user||{}},getUserDateFormat:ee.getUserDateFormat,getUserDateTimeFormat:ee.getUserDateTimeFormat,convertToData(t){if(this.customFormatter)t=t.replace(/[^\w]/g,"");else switch(this.dataFormat){case"string":t=t.toString();break;case"boolean":t=!!t;break;case"currency":case"percentage":case"float":t=parseFloat(t),isNaN(t)&&(t=null);break;case"int":t=parseInt(t),isNaN(t)&&(t=null);break;case"date":this.componentName==="FormDatePicker"&&(t=Ze.utc(t,[ee.getUserDateFormat(),Ze.ISO_8601],!0).toISOString().split(RegExp("T[0-9]"))[0]);break;case"datetime":this.componentName==="FormDatePicker"&&(t=Ze(t,[ee.getUserDateTimeFormat(),Ze.ISO_8601],!0).toISOString());break;case"array":break;default:t=t.toString();break}return t},convertFromData(t){return t},getMask(){return{date:["####-##-##"],dateTime:["####-##-## ##:##"]}}}};var SW=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.componentType!=="input"?r(e.componentType,e._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],tag:"component",staticClass:"form-control",class:e.classList,attrs:{name:e.name,type:"text"},on:{change:e.onChange},model:{value:e.localValue,callback:function(a){e.localValue=a},expression:"localValue"}},"component",e.componentConfigComputed,!1)):e.dataType==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"checkbox"},domProps:{checked:Array.isArray(e.localValue)?e._i(e.localValue,null)>-1:e.localValue},on:{change:[function(a){var i=e.localValue,n=a.target,s=!!n.checked;if(Array.isArray(i)){var o=null,u=e._i(i,o);n.checked?u<0&&(e.localValue=i.concat([o])):u>-1&&(e.localValue=i.slice(0,u).concat(i.slice(u+1)))}else e.localValue=s},e.onChange]}},"input",e.componentConfig,!1)):e.dataType==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"radio"},domProps:{checked:e._q(e.localValue,null)},on:{change:[function(a){e.localValue=null},e.onChange]}},"input",e.componentConfig,!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:e.dataType},domProps:{value:e.localValue},on:{change:e.onChange,input:function(a){a.target.composing||(e.localValue=a.target.value)}}},"input",e.componentConfig,!1)),e.validator&&e.validator.errorCount?e._l(e.validator.errors.all(),function(a,i){return r("div",{key:i,staticClass:"invalid-feedback"},e._l(a,function(n,s){return r("div",{key:s},[e._v(" "+e._s(n)+" ")])}),0)}):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],2)},kW=[],_W=oe(xW,SW,kW,!1,null,null,null,null);const Ba=_W.exports;var $d={exports:{}},hb={};function Hr(t){return{prev:null,next:null,data:t}}function Oi(t,e,r){var a;return Mi!==null?(a=Mi,Mi=Mi.cursor,a.prev=e,a.next=r,a.cursor=t.cursor):a={prev:e,next:r,cursor:t.cursor},t.cursor=a,a}function Ei(t){var e=t.cursor;t.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Mi,Mi=e}var Mi=null,ye=function(){this.cursor=null,this.head=null,this.tail=null};ye.createItem=Hr,ye.prototype.createItem=Hr,ye.prototype.updateCursors=function(t,e,r,a){for(var i=this.cursor;i!==null;)i.prev===t&&(i.prev=e),i.next===r&&(i.next=a),i=i.cursor},ye.prototype.getSize=function(){for(var t=0,e=this.head;e;)t++,e=e.next;return t},ye.prototype.fromArray=function(t){var e=null;this.head=null;for(var r=0;r<t.length;r++){var a=Hr(t[r]);e!==null?e.next=a:this.head=a,a.prev=e,e=a}return this.tail=e,this},ye.prototype.toArray=function(){for(var t=this.head,e=[];t;)e.push(t.data),t=t.next;return e},ye.prototype.toJSON=ye.prototype.toArray,ye.prototype.isEmpty=function(){return this.head===null},ye.prototype.first=function(){return this.head&&this.head.data},ye.prototype.last=function(){return this.tail&&this.tail.data},ye.prototype.each=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,null,this.head);a.next!==null;)r=a.next,a.next=r.next,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEach=ye.prototype.each,ye.prototype.eachRight=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,this.tail,null);a.prev!==null;)r=a.prev,a.prev=r.prev,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEachRight=ye.prototype.eachRight,ye.prototype.reduce=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,null,this.head),n=e;i.next!==null;)a=i.next,i.next=a.next,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.reduceRight=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,this.tail,null),n=e;i.prev!==null;)a=i.prev,i.prev=a.prev,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.nextUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,null,t);i.next!==null&&(a=i.next,i.next=a.next,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.prevUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,t,null);i.prev!==null&&(a=i.prev,i.prev=a.prev,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.some=function(t,e){var r=this.head;for(e===void 0&&(e=this);r!==null;){if(t.call(e,r.data,r,this))return!0;r=r.next}return!1},ye.prototype.map=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)r.appendData(t.call(e,a.data,a,this)),a=a.next;return r},ye.prototype.filter=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)t.call(e,a.data,a,this)&&r.appendData(a.data),a=a.next;return r},ye.prototype.clear=function(){this.head=null,this.tail=null},ye.prototype.copy=function(){for(var t=new ye,e=this.head;e!==null;)t.insert(Hr(e.data)),e=e.next;return t},ye.prototype.prepend=function(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this},ye.prototype.prependData=function(t){return this.prepend(Hr(t))},ye.prototype.append=function(t){return this.insert(t)},ye.prototype.appendData=function(t){return this.insert(Hr(t))},ye.prototype.insert=function(t,e){if(e!=null)if(this.updateCursors(e.prev,t,e,t),e.prev===null){if(this.head!==e)throw new Error("before doesn't belong to list");this.head=t,e.prev=t,t.next=e,this.updateCursors(null,t)}else e.prev.next=t,t.prev=e.prev,e.prev=t,t.next=e;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this},ye.prototype.insertData=function(t,e){return this.insert(Hr(t),e)},ye.prototype.remove=function(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t},ye.prototype.push=function(t){this.insert(Hr(t))},ye.prototype.pop=function(){if(this.tail!==null)return this.remove(this.tail)},ye.prototype.unshift=function(t){this.prepend(Hr(t))},ye.prototype.shift=function(){if(this.head!==null)return this.remove(this.head)},ye.prototype.prependList=function(t){return this.insertList(t,this.head)},ye.prototype.appendList=function(t){return this.insertList(t)},ye.prototype.insertList=function(t,e){return t.head===null?this:(e!=null?(this.updateCursors(e.prev,t.tail,e,t.head),e.prev!==null?(e.prev.next=t.head,t.head.prev=e.prev):this.head=t.head,e.prev=t.tail,t.tail.next=e):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)},ye.prototype.replace=function(t,e){"head"in e?this.insertList(e,t):this.insert(e,t),this.remove(t)};var $i=ye,Pd=function(e,r){var a=Object.create(SyntaxError.prototype),i=new Error;return a.name=e,a.message=r,Object.defineProperty(a,"stack",{get:function(){return(i.stack||"").replace(/^(.+\n){1,3}/,e+": "+r+`
|
|
288
288
|
`)}}),a},wW=Pd,Dd=100,mb=60,gb=" ";function vb(t,e){function r(d,p){return a.slice(d,p).map(function(v,_){for(var h=String(d+_+1);h.length<u;)h=" "+h;return h+" |"+v}).join(`
|
|
289
289
|
`)}var a=t.source.split(/\r\n?|\n|\f/),i=t.line,n=t.column,s=Math.max(1,i-e)-1,o=Math.min(i+e,a.length+1),u=Math.max(4,String(o).length)+1,l=0;n+=(gb.length-1)*(a[i-1].substr(0,n-1).match(/\t/g)||[]).length,n>Dd&&(l=n-mb+3,n=mb-2);for(var c=s;c<=o;c++)c>=0&&c<a.length&&(a[c]=a[c].replace(/\t/g,gb),a[c]=(l>0&&a[c].length>l?"…":"")+a[c].substr(l,Dd-2)+(a[c].length>l+Dd-1?"…":""));return[r(s,i),new Array(n+u+2).join("-")+"^",r(i,o)].filter(Boolean).join(`
|
|
290
290
|
`)}var CW=function(t,e,r,a,i){var n=wW("SyntaxError",t);return n.source=e,n.offset=r,n.line=a,n.column=i,n.sourceFragment=function(s){return vb(n,isNaN(s)?0:s)},Object.defineProperty(n,"formattedMessage",{get:function(){return"Parse error: "+n.message+`
|