8 lines
121 KiB
JavaScript
8 lines
121 KiB
JavaScript
/*!
|
|
* dist/jquery.inputmask.min
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
* Copyright (c) 2010 - 2025 Robin Herbots
|
|
* Licensed under the MIT license
|
|
* Version: 5.0.10-beta.48
|
|
*/
|
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],t);else{var n="object"==typeof exports?t(require("jquery")):t(e.jQuery);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:this,(function(e){return function(){"use strict";var t={340:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegex=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},472:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n(r.key),r)}}function n(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function i(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(a())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&o(r,n.prototype),r}(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)},r(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}if(void 0===FormData.Inputmask){var l=function(e){function n(e,t){var r,o,l,c;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o=this,c=[e,t],l=s(l=n);for(var u,f=(r=i(o,a()?Reflect.construct(l,c||[],s(o).constructor):l.apply(o,c))).entries();!1===(u=f.next()).done;){var p=u.value[0],d=u.value[1],h=document.getElementById(p);!h||void 0===h.inputmask||d instanceof File||r.set(p,h.value)}return i(r,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,e),r=n,l&&t(r.prototype,l),c&&t(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,l,c}(r(FormData));l.Inputmask=!0,FormData=l}},493:function(){String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},546:function(e,t,n){var i,r=n(340),a=(i=n(3978))&&i.__esModule?i:{default:i},o=n(6032),s=n(7539);var l=a.default.dependencyLib;function c(e,t){for(var n="",i=0;i<e.length;i++)a.default.prototype.definitions[e.charAt(i)]||t.definitions[e.charAt(i)]||t.optionalmarker[0]===e.charAt(i)||t.optionalmarker[1]===e.charAt(i)||t.quantifiermarker[0]===e.charAt(i)||t.quantifiermarker[1]===e.charAt(i)||t.groupmarker[0]===e.charAt(i)||t.groupmarker[1]===e.charAt(i)||t.alternatormarker===e.charAt(i)?n+="\\"+e.charAt(i):n+=e.charAt(i);return n}function u(e,t,n,i){if(e.length>0&&t>0&&(!n.digitsOptional||i)){var r=e.indexOf(n.radixPoint),a=!1;n.negationSymbol.back===e[e.length-1]&&(a=!0,e.length--),-1===r&&(e.push(n.radixPoint),r=e.length-1);for(var o=1;o<=t;o++)isFinite(e[r+o])||(e[r+o]="0")}return a&&e.push(n.negationSymbol.back),e}function f(e,t){var n=0;for(var i in"+"===e&&(n=s.seekNext.call(this,t.validPositions.length-1)),t.tests)if((i=parseInt(i))>=n)for(var r=0,a=t.tests[i].length;r<a;r++)if((void 0===t.validPositions[i]||"-"===e)&&t.tests[i][r].match.def===e)return i+(void 0!==t.validPositions[i]&&"-"!==e?1:0);return n}function p(e,t){for(var n=-1,i=0,r=t.validPositions.length;i<r;i++){var a=t.validPositions[i];if(a&&a.match.def===e){n=i;break}}return n}function d(e,t,n,i,r){var a=t.buffer?t.buffer.indexOf(r.radixPoint):-1,o=(-1!==a||i&&r.jitMasking)&&new RegExp(r.definitions[9].validator).test(e);return!i&&r._radixDance&&-1!==a&&o&&null==t.validPositions[a]?{insert:{pos:a===n?a+1:a,c:r.radixPoint},pos:n}:o}a.default.extendAliases({numeric:{mask:function(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=-1!==e.digits.indexOf(",")?e.digits.split(",")[0]:2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var i,a="[+]";if(a+=c(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),a+=e._mask(e)):a+="9{+}",void 0!==e.digits&&0!==e.digits){var o=e.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?a+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(i=a+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):a+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return a+=c(e.suffix,e),a+="[-]",i&&(a=[i+c(e.suffix,e)+"[-]",a]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,r.escapeRegex)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,r.escapeRegex)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&e.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),a},_mask:function(e){return"("+e.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:d},1:{validator:d,definitionSymbol:"9"},9:{validator:"[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",definitionSymbol:"*"},"+":{validator:function(e,t,n,i,r){return r.allowMinus&&("-"===e||e===r.negationSymbol.front)}},"-":{validator:function(e,t,n,i,r){return r.allowMinus&&e===r.negationSymbol.back}}},preValidation:function(e,t,n,i,r,a,o,s){var l=this;if(!1!==r.__financeInput&&n===r.radixPoint)return!1;var c=e.indexOf(r.radixPoint),u=t;if(t=function(e,t,n,i,r){return r._radixDance&&r.numericInput&&t!==r.negationSymbol.back&&e<=n&&(n>0||t==r.radixPoint)&&(void 0===i.validPositions[e-1]||i.validPositions[e-1].input!==r.negationSymbol.back)&&(e-=1),e}(t,n,c,a,r),"-"===n||n===r.negationSymbol.front){if(!0!==r.allowMinus)return!1;var d=!1,h=p("+",a),m=p("-",a);return-1!==h&&(d=[h],-1!==m&&d.push(m)),!1!==d?{remove:d,caret:u-r.negationSymbol.back.length}:{insert:[{pos:f.call(l,"+",a),c:r.negationSymbol.front,fromIsValid:!0},{pos:f.call(l,"-",a),c:r.negationSymbol.back,fromIsValid:void 0}],caret:u+r.negationSymbol.back.length}}if(n===r.groupSeparator)return{caret:u};if(s)return!0;if(-1!==c&&!0===r._radixDance&&!1===i&&n===r.radixPoint&&void 0!==r.digits&&(isNaN(r.digits)||parseInt(r.digits)>0)&&c!==t){var v=f.call(l,r.radixPoint,a);return a.validPositions[v]&&(a.validPositions[v].generatedInput=a.validPositions[v].generated||!1),{caret:r._radixDance&&t===c-1?c+1:c}}if(!1===r.__financeInput)if(i){if(r.digitsOptional)return{rewritePosition:o.end};if(!r.digitsOptional){if(o.begin>c&&o.end<=c)return n===r.radixPoint?{insert:{pos:c+1,c:"0",fromIsValid:!0},rewritePosition:c}:{rewritePosition:c+1};if(o.begin<c)return{rewritePosition:o.begin-1}}}else if(!r.showMaskOnHover&&!r.showMaskOnFocus&&!r.digitsOptional&&r.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:c};return{rewritePosition:t}},postValidation:function(e,t,n,i,r,a,o,s,c){if(!1===i)return i;if(o)return!0;if(null!==r.min||null!==r.max){var f=r.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},r,{unmaskAsNumber:!0}));if(null!==r.min&&f<r.min&&!0!==c&&(f.toString().length>r.min.toString().length||e[0]===r.radixPoint||f<0))return!1;if(null!==r.max&&r.max>=0&&f>r.max)return!!r.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(r.max.toString().replace(".",r.radixPoint).split(""),r.digits,r).reverse()}}return i},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var i=e.replace(n.prefix,"");return i=(i=i.replace(n.suffix,"")).replace(new RegExp((0,r.escapeRegex)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(i=i.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==i.indexOf(n.radixPoint)&&(i=i.replace(r.escapeRegex.call(this,n.radixPoint),".")),i=(i=i.replace(new RegExp("^"+(0,r.escapeRegex)(n.negationSymbol.front)),"-")).replace(new RegExp((0,r.escapeRegex)(n.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,r.escapeRegex)(t.negationSymbol.front)),"-")).replace(new RegExp((0,r.escapeRegex)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,r.escapeRegex)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,r.escapeRegex)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){e=null!=e?e:"";var n=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===n||(e=e.toString().replace(".",n));var i="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,a=e.split(n),o=a[0].replace(/[^\-0-9]/g,""),s=a.length>1?a[1].replace(/[^0-9]/g,""):"",l=a.length>1;e=o+(""!==s?n+s:s);var c=0;if(""!==n&&(c=t.digitsOptional?t.digits<s.length?t.digits:s.length:t.digits,""!==s||!t.digitsOptional)){var f=Math.pow(10,c||1);e=e.replace((0,r.escapeRegex)(n),"."),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*f)/f).toFixed(c)),e=e.toString().replace(".",n)}if(0===t.digits&&-1!==e.indexOf(n)&&(e=e.substring(0,e.indexOf(n))),""!==e&&(null!==t.min||null!==t.max)){var p=e.toString().replace(n,".");null!==t.min&&p<t.min?e=t.min.toString().replace(".",n):null!==t.max&&p>t.max&&(e=t.max.toString().replace(".",n))}return i&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),c,t,l).join("")},onBeforeWrite:function(e,t,n,i){function a(e,t){if(!1!==i.__financeInput||t){var n=e.indexOf(i.radixPoint);-1!==n&&e.splice(n,1)}if(""!==i.groupSeparator)for(;-1!==(n=e.indexOf(i.groupSeparator));)e.splice(n,1);return e}var o,s;if(i.stripLeadingZeroes&&(s=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,r.escapeRegex)(t.negationSymbol.front)+"?":"")+(0,r.escapeRegex)(t.prefix)+")(.*)("+(0,r.escapeRegex)(t.suffix)+(""!=t.negationSymbol.back?(0,r.escapeRegex)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),i=n?n[2]:"",a=!1;return i&&(i=i.split(t.radixPoint.charAt(0))[0],a=new RegExp("^[0"+t.groupSeparator+"]*").exec(i)),!(!a||!(a[0].length>1||a[0].length>0&&a[0].length<i.length))&&a}(t,i)))for(var c=t.join("").lastIndexOf(s[0].split("").reverse().join(""))-(s[0]==s.input?0:1),f=s[0]==s.input?1:0,p=s[0].length-f;p>0;p--)this.maskset.validPositions.splice(c+p,1),delete t[c+p];if(e)switch(e.type){case"blur":case"checkval":if(null!==i.min||null!==i.max){var d=i.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},i,{unmaskAsNumber:!0}));if(null!==i.min&&d<i.min&&""!==t.join())return{refreshFromBuffer:!0,buffer:u(i.min.toString().replace(".",i.radixPoint).split(""),i.digits,i).reverse()};if(null!==i.max&&d>i.max)return{refreshFromBuffer:!0,buffer:u(i.max.toString().replace(".",i.radixPoint).split(""),i.digits,i).reverse()}}if(t[t.length-1]===i.negationSymbol.front){var h=new RegExp("(^"+(""!=i.negationSymbol.front?(0,r.escapeRegex)(i.negationSymbol.front)+"?":"")+(0,r.escapeRegex)(i.prefix)+")(.*)("+(0,r.escapeRegex)(i.suffix)+(""!=i.negationSymbol.back?(0,r.escapeRegex)(i.negationSymbol.back)+"?":"")+"$)").exec(a(t.slice(),!0).reverse().join(""));0==(h?h[2]:"")&&(o={refreshFromBuffer:!0,buffer:[0]})}else if(""!==i.radixPoint){t.indexOf(i.radixPoint)===i.suffix.length&&(o&&o.buffer?o.buffer.splice(0,1+i.suffix.length):(t.splice(0,1+i.suffix.length),o={refreshFromBuffer:!0,buffer:a(t)}))}if(i.enforceDigitsOnBlur){var m=((o=o||{})&&o.buffer||t).slice().reverse();o.refreshFromBuffer=!0,o.buffer=u(m,i.digits,i,!0).reverse()}}return o},onKeyDown:function(e,t,n,i){var r,a=l(this);if(3!=e.location){var s,c=e.key;if((s=i.shortcuts&&i.shortcuts[c])&&s.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(s)),a.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case o.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),a.trigger("setvalue"),!1;case o.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),a.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===o.keys.Delete||e.key===o.keys.Backspace||e.key===o.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===o.keys.Delete?n.begin-1:n.end]===i.negationSymbol.front)return r=t.slice().reverse(),""!==i.negationSymbol.front&&r.shift(),""!==i.negationSymbol.back&&r.pop(),a.trigger("setvalue",[r.join(""),n.begin]),!1;if(!0===i._radixDance){var f,p=t.indexOf(i.radixPoint);if(i.digitsOptional){if(0===p)return(r=t.slice().reverse()).pop(),a.trigger("setvalue",[r.join(""),n.begin>=r.length?r.length:n.begin]),!1}else if(-1!==p&&(n.begin<p||n.end<p||e.key===o.keys.Delete&&(n.begin===p||n.begin-1===p)))return n.begin===n.end&&(e.key===o.keys.Backspace||e.key===o.keys.BACKSPACE_SAFARI?n.begin++:e.key===o.keys.Delete&&n.begin-1===p&&(f=l.extend({},n),n.begin--,n.end--)),(r=t.slice().reverse()).splice(r.length-n.begin,n.begin-n.end+1),r=u(r,i.digits,i).join(""),f&&(n=f),a.trigger("setvalue",[r,n.begin>=r.length?p+1:n.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(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},1507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(r.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var i=l.getBuffer.call(n).slice(),a=e.inputmask._valueGet();if(a!==t){var o=l.getLastValidPosition.call(n);-1===o&&a===l.getBufferTemplate.call(n).join("")?i=[]:-1!==o&&v.call(n,i),y(e,i)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=m,t.checkVal=g,t.clearOptionalTail=v,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,i=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&m(e,e.inputmask._valueGet(!0))}for(var r=[],a=i.validPositions,s=0,c=a.length;s<c;s++)a[s]&&a[s].match&&(1!=a[s].match.static||!0!==n.keepStatic&&Array.isArray(i.metadata)&&!0!==a[s].generatedInput)&&r.push(a[s].input);var u=0===r.length?"":(t.isRTL?r.reverse():r).join("");if("function"==typeof n.onUnMask){var f=(t.isRTL?l.getBuffer.call(t).slice().reverse():l.getBuffer.call(t)).join("");u=n.onUnMask.call(t,f,u,n)}if(n.outputMask&&u.length>0)return o.default.format(u,d(d({},n),{},{mask:n.outputMask,alias:null}));return u},t.writeBuffer=y;var i,r=n(4351),a=n(6047),o=(i=n(3978))&&i.__esModule?i:{default:i},s=n(6032),l=n(7539),c=n(7687),u=n(5895);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t,n,i){var r=e?e.inputmask:this,a=r.opts;e.inputmask.refreshValue=!1,!0!==i&&"function"==typeof a.onBeforeMask&&(t=a.onBeforeMask.call(r,t,a)||t),g(e,!0,!1,t=(t||"").toString().split(""),n),r.undoValue=r._valueGet(!0),(a.clearMaskOnLostFocus||a.clearIncomplete)&&e.inputmask._valueGet()===l.getBufferTemplate.call(r).join("")&&-1===l.getLastValidPosition.call(r)&&e.inputmask._valueSet("")}function v(e){e.length=0;for(var t,n=u.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=n.shift());)e.push(t);return e}function g(e,t,n,i,r){var o,s=e?e.inputmask:this,f=s.maskset,p=s.opts,d=s.dependencyLib,h=i.slice(),m="",v=-1,g=p.skipOptionalPartCharacter;p.skipOptionalPartCharacter="",l.resetMaskSet.call(s,!1),s.clicked=0,v=p.radixPoint?l.determineNewCaretPosition.call(s,{begin:0,end:0},!1,!1===p.__financeInput?"radixFocus":void 0).begin:0,f.p=v,s.caretPos={begin:v};var k=[],b=s.caretPos;if(h.forEach((function(e,t){if(void 0!==e){var i=new d.Event("_checkval");i.key=e,m+=e;var r=l.getLastValidPosition.call(s,void 0,!0);!function(e,t){for(var n=u.getMaskTemplate.call(s,!0,0).slice(e,l.seekNext.call(s,e,!1,!1)).join("").replace(/'/g,""),i=n.indexOf(t);i>0&&" "===n[i-1];)i--;var r=0===i&&!l.isMask.call(s,e)&&(u.getTest.call(s,e).match.nativeDef===t.charAt(0)||!0===u.getTest.call(s,e).match.static&&u.getTest.call(s,e).match.nativeDef==="'"+t.charAt(0)||" "===u.getTest.call(s,e).match.nativeDef&&(u.getTest.call(s,e+1).match.nativeDef===t.charAt(0)||!0===u.getTest.call(s,e+1).match.static&&u.getTest.call(s,e+1).match.nativeDef==="'"+t.charAt(0)));if(!r&&i>0&&!l.isMask.call(s,e,!1,!0)){var a=l.seekNext.call(s,e);s.caretPos.begin<a&&(s.caretPos={begin:a})}return r}(v,m)?(o=a.EventHandlers.keypressEvent.call(s,i,!0,!1,n,s.caretPos.begin))&&(v=s.caretPos.begin+1,m=""):o=!0===u.getTest.call(s,t).match.static&&a.EventHandlers.keypressEvent.call(s,i,!0,!1,n,r+1),o?(void 0!==o.pos&&f.validPositions[o.pos]&&!0===f.validPositions[o.pos].match.static&&void 0===f.validPositions[o.pos].alternation&&(k.push(o.pos),s.isRTL||(o.forwardPosition=o.pos+1)),y.call(s,void 0,l.getBuffer.call(s),o.forwardPosition,i,!1),s.caretPos={begin:o.forwardPosition,end:o.forwardPosition},b=s.caretPos):void 0===f.validPositions[t]&&h[t]===u.getPlaceholder.call(s,t)&&l.isMask.call(s,t,!0)?s.caretPos.begin++:s.caretPos=b}})),k.length>0){var x,P,S=l.seekNext.call(s,-1,void 0,!1);if(!c.isComplete.call(s,l.getBuffer.call(s))&&k.length<=S||c.isComplete.call(s,l.getBuffer.call(s))&&k.length>0&&k.length!==S&&0===k[0]){for(var w=S;void 0!==(x=k.shift());)if(x<w){var O=new d.Event("_checkval");if((P=f.validPositions[x]).generatedInput=!0,O.key=P.input,(o=a.EventHandlers.keypressEvent.call(s,O,!0,!1,n,w))&&void 0!==o.pos&&o.pos!==x&&f.validPositions[o.pos]&&!0===f.validPositions[o.pos].match.static)k.push(o.pos);else if(!o)break;w++}}else for(;x=k.pop();)(P=f.validPositions[x])&&void 0===f.validPositions[x+1]&&delete f.validPositions[x]}t&&y.call(s,e,l.getBuffer.call(s),o?o.forwardPosition:s.caretPos.begin,r||new d.Event("checkval"),r&&("input"===r.type&&s.undoValue!==l.getBuffer.call(s).join("")||"paste"===r.type)),p.skipOptionalPartCharacter=g}function y(e,t,n,i,r){var a=e?e.inputmask:this,o=a.opts,u=a.dependencyLib;if(i&&"function"==typeof o.onBeforeWrite){var f=o.onBeforeWrite.call(a,i,t,n,o);if(f){if(f.refreshFromBuffer){var p=f.refreshFromBuffer;c.refreshFromBuffer.call(a,!0===p?p:p.start,p.end,f.buffer||t),t=l.getBuffer.call(a,!0)}void 0!==n&&(n=void 0!==f.caret?f.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==i&&"blur"===i.type||l.caret.call(a,e,n,void 0,void 0,void 0!==i&&"keydown"===i.type&&(i.key===s.keys.Delete||i.key===s.keys.Backspace)),void 0===e.inputmask.writeBufferHook||e.inputmask.writeBufferHook(n),!0===r)){var d=u(e),h=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,d.trigger("input"),setTimeout((function(){h===l.getBufferTemplate.call(a).join("")?d.trigger("cleared"):!0===c.isComplete.call(a,t)&&d.trigger("complete")}),0)}}},1669:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;for(var r=0|t,a=Math.max(r>=0?r:i-Math.abs(r),0);a<i;){if(n[a]===e)return!0;a++}return!1}})},1960:function(){var e=Function.bind.call(Function.call,Array.prototype.reduce),t=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),n=Function.bind.call(Function.call,Array.prototype.concat),i=Object.keys;Object.entries||(Object.entries=function(r){return e(i(r),(function(e,i){return n(e,"string"==typeof i&&t(r,i)?[[i,r[i]]]:[])}),[])})},2952:function(e,t,n){var i=d(n(6266)),r=d(n(3978));function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s(i.key),i)}}function s(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t,n){return t=p(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(u())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&f(r,n.prototype),r}(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},c(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e){return e&&e.__esModule?e:{default:e}}var h=i.default.document;if(h&&h.head&&h.head.attachShadow&&i.default.customElements&&void 0===i.default.customElements.get("input-mask")){var m=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=(e=l(this,t)).getAttributeNames(),i=e.attachShadow({mode:"closed"});for(var a in e.input=h.createElement("input"),e.input.type="text",i.appendChild(e.input),n)Object.prototype.hasOwnProperty.call(n,a)&&e.input.setAttribute(n[a],e.getAttribute(n[a]));var o=new r.default;return o.dataAttribute="",o.mask(e.input),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(i=[{key:"attributeChangedCallback",value:function(e,t,n){this.input.setAttribute(e,n)}},{key:"value",get:function(){return this.input.value},set:function(e){this.input.value=e}}])&&o(n.prototype,i),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(c(HTMLElement));i.default.customElements.define("input-mask",m)}},3978:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=m(n(7042)),r=m(n(9472)),a=m(n(8826)),o=n(4136),s=m(n(6266)),l=n(1507),c=n(4240),u=n(4507),f=n(7539),p=n(7687),d=n(5895);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e){return e&&e.__esModule?e:{default:e}}var v=s.default.document,g="_inputmask_opts";function y(e,t,n){if(!(this instanceof y))return new y(e,t,n);this.dependencyLib=a.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==n&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=a.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},k(this.opts.alias,t,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 k(e,t,n){var i=y.prototype.aliases[e];return i?(i.alias&&k(i.alias,void 0,n),a.default.extend(!0,n,i),a.default.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:i.default,definitions:r.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e)).forEach((function(e,n){var i=a.default.extend(!0,{},t.opts);if(function(e,t,n,i){function r(t,r){var a=""===i?t:i+"-"+t;null!==(r=void 0!==r?r:e.getAttribute(a))&&("string"==typeof r&&(t.startsWith("on")?r=s.default[r]:"false"===r?r=!1:"true"===r?r=!0:"mask"===t&&(r=r.replace(/\\\\/g,"\\"))),n[t]=r)}if(!0===t.importDataAttributes){var o,l,c,u,f=e.getAttribute(i);if(f&&""!==f&&(f=f.replace(/'/g,'"'),l=JSON.parse("{"+f+"}")),l)for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}for(o in r("alias",c),n.alias&&k(n.alias,n,t),t){if(l)for(u in c=void 0,l)if(u.toLowerCase()===o.toLowerCase()){c=l[u];break}r(o,c)}}a.default.extend(!0,t,n),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right");("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0);return Object.keys(n).length}(e,i,a.default.extend(!0,{},t.userOptions),t.dataAttribute)){var r=(0,u.generateMaskSet)(i,t.noMasksCache);void 0!==r&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new y(void 0,void 0,!0),e.inputmask.opts=i,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=a.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,a.default)(e),e.inputmask.maskset=r,a.default.data(e,g,t.userOptions),c.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===h(e)?(a.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,f.getBuffer.call(this),0,this.opts)}return l.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){a.default.data(this.el,g,null);var e=this.opts.autoUnmask?(0,l.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==f.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),o.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}):v.__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,u.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?f.getBufferTemplate.call(this).reverse():f.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),p.isComplete.call(this,f.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=d.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!0,!1,t)}var n=l.clearOptionalTail.call(this,[]),i=p.isComplete.call(this,n),r=e===(this.isRTL?n.reverse().join(""):n.join(""));return i&&(void 0===e||r)},format:function(e,t){this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!0,!1,n);var i=this.isRTL?f.getBuffer.call(this).slice().reverse().join(""):f.getBuffer.call(this).join("");return t?{value:i,metadata:this.getmetadata()}:i},setValue:function(e){this.el&&(0,a.default)(this.el).trigger("setvalue",[e])},analyseMask:u.analyseMask},y.extendDefaults=function(e){a.default.extend(!0,y.prototype.defaults,e)},y.extendDefinitions=function(e){a.default.extend(!0,y.prototype.definitions,e)},y.extendAliases=function(e){a.default.extend(!0,y.prototype.aliases,e)},y.format=function(e,t,n){return y(t).format(e,n)},y.unmask=function(e,t){return y(t).unmaskedvalue(e)},y.isValid=function(e,t){return y(t).isValid(e)},y.remove=function(e){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),e=e.nodeName?[e]:e;for(var t=0;t<e.length;t++)e[t].inputmask&&e[t].inputmask.remove()},y.setValue=function(e,t){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,a.default)(e).trigger("setvalue",[t])}))},y.dependencyLib=a.default,s.default.Inputmask=y;t.default=y},4136:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var i,r=n(1507),a=(i=n(3978))&&i.__esModule?i:{default:i},o=n(6032),s=n(7539);t.EventRuler={on:function(e,t,n){var i=e.inputmask.dependencyLib,l=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var l,c=this,u=c.inputmask,f=u?u.opts:void 0;if(void 0===u&&"FORM"!==this.nodeName){var p=i.data(c,"_inputmask_opts");i(c).off(),p&&new a.default(p).mask(c)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(c.disabled||c.readOnly&&!("keydown"===t.type&&t.ctrlKey&&t.key===o.keys.c||!1===f.tabThrough&&t.key===o.keys.Tab))){switch(t.type){case"input":if(!0===u.skipInputEvent)return u.skipInputEvent=!1,t.preventDefault();break;case"click":case"focus":return u.validationEvent?(u.validationEvent=!1,e.blur(),(0,r.HandleNativePlaceholder)(e,(u.isRTL?s.getBufferTemplate.call(u).slice().reverse():s.getBufferTemplate.call(u)).join("")),setTimeout((function(){e.focus()}),f.validationEventTimeOut),!1):(l=arguments,void setTimeout((function(){e.inputmask&&n.apply(c,l)}),0))}var d=n.apply(c,arguments);return!1===d&&(t.preventDefault(),t.stopPropagation()),d}t.preventDefault()}};t="".concat(t,".inputmask"),["submit.inputmask","reset.inputmask"].includes(t)?(l=l.bind(e),null!==e.form&&i(e.form).on(t,l)):i(e).on(t,l)},off:function(e,t){e.inputmask&&(0,e.inputmask.dependencyLib)(e).off(t||".inputmask")}}},4203:function(e,t,n){var i,r=n(340),a=(i=n(3978))&&i.__esModule?i:{default:i},o=n(6032),s=n(7539),l=n(5895);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=p(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}n(7153);var m=a.default.dependencyLib,v=function(){return function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,i,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mask=t,this.format=n,this.opts=i,this.inputmask=r,this._date=new Date(1,0,1),this.initDateObject(t,this.opts,this.inputmask)}),[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(e,t,n){var i,r=-1;for(M(t).lastIndex=0;i=M(t).exec(this.format);)if(i.index>=r){var a=/\d+$/.exec(i[0]),o=a?i[0][0]+"x":i[0],s=void 0;if(void 0!==e){if(a){var c=M(t).lastIndex,u=D.call(n,i.index,t,n&&n.maskset);M(t).lastIndex=c,s=e.slice(0,e.indexOf(u.nextMatch[0]))}else{for(var f=i[0][0],p=i.index;n&&(t.placeholder["".concat(i.index,"'").concat(l.getTest.call(n,p).match.placeholder)]||l.getTest.call(n,p).match.placeholder)===f;)p++;r=p;var d=p-i.index;s=e.slice(0,d||O(o)&&O(o)[4]||o.length)}e=e.slice(s.length)}Object.prototype.hasOwnProperty.call(b,o)&&this.setValue(this,s,o,O(o)[2],O(o)[1])}}},{key:"setValue",value:function(e,t,n,i,r){if(void 0!==t)switch(i){case"ampm":e[i]=t,e["raw"+i]=t.replace(/\s/g,"_");break;case"month":if("MMM"===n||"MMMM"===n){e[i]=E("MMM"===n?k.monthNames.slice(0,12).findIndex((function(e){return t.toLowerCase()===e.toLowerCase()}))+1:k.monthNames.slice(12,24).findIndex((function(e){return t.toLowerCase()===e.toLowerCase()}))+1,2),e[i]="00"===e[i]?"":e[i].toString(),e["raw"+i]=e[i];break}default:e[i]=t.replace(/[^0-9]/g,"0"),e["raw"+i]=t.replace(/\s/g,"_")}if(void 0!==r){var a=e[i];("day"===i&&29===parseInt(a)||"month"===i&&2===parseInt(a))&&(29!==parseInt(e.day)||2!==parseInt(e.month)||""!==e.year&&void 0!==e.year||e._date.setFullYear(2012,1,29)),"day"===i&&(g=!0,0===parseInt(a)&&(a=1)),"month"===i&&(g=!0),"year"===i&&(g=!0,a.length<O(n)[4]&&(a=E(a,O(n)[4],!0))),(""!==a&&!isNaN(a)||"ampm"===i)&&r.call(e._date,a)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])}(),g=!1,y=(new Date).getFullYear(),k=a.default.prototype.i18n,b={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 E(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],M:["[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],MM:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return E(Date.prototype.getMonth.call(this)+1,2)}],MMM:[k.monthNames.slice(0,12).join("|"),function(e){var t=k.monthNames.slice(0,12).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return k.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],MMMM:[k.monthNames.slice(12,24).join("|"),function(e){var t=k.monthNames.slice(12,24).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return k.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(e){var t=(new Date).getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(t).concat(e))},"year",function(){return E(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return E(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return E(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){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 E(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return E(Date.prototype.getHours.call(this),e)}}],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 E(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 E(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return E(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return E(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",S,"ampm",w,1],tt:["[ap]m",S,"ampm",w,2],T:["[AP]",S,"ampm",w,1],TT:["[AP]M",S,"ampm",w,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return c(e,1)[0]})).join(""));return e}],o:[""],S:[""]},x={D:"d",DD:"dd",DDD:"ddd",DDDD:"dddd",YY:"yy",YYYY:"yyyy",sss:"L"},P={isoDate:"yyyy-MM-dd",isoTime:"HH:mm:ss",isoDateTime:"yyyy-MM-dd\\THH:mm:ss",isoUtcDateTime:"UTC:yyyy-MM-dd\\THH:mm:ss\\Z"};function S(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function w(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function O(e){var t=x[e]||e,n=/\d+$/.exec(t);if(n&&void 0!==n[0]){var i=b[t[0]+"x"].slice("");return i[0]=i[0](n[0]),i[3]=i[3](n[0]),i}if(b[t])return b[t]}function M(e){if(!e.tokenizer){var t,n=[],i=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(Object.keys(b).concat(Object.keys(x)));try{for(r.s();!(t=r.n()).done;){var a=t.value;if(/\.*x$/.test(a)){var o=a[0]+"\\d+";-1===i.indexOf(o)&&i.push(o)}else-1===n.indexOf(a[0])&&n.push(a[0])}}catch(e){r.e(e)}finally{r.f()}e.tokenizer="("+(i.length>0?i.join("|")+"|":"")+n.join("+|")+"+)+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function _(e,t,n){if(!g)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var i=D.call(this,t.pos,n,this.maskset);if(i.targetMatch&&["yyyy","YYYY"].includes(i.targetMatch[0])&&t.pos-i.targetMatchIndex==2)return t.remove=t.pos+1,t}else if(2==e.date.getMonth()&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=s.seekNext.call(this,t.pos+1),t;return!1}function j(e,t,n){var i,a,o="",s=0,l=!1,c={};for(M(n).lastIndex=0;i=M(n).exec(e);)if(i[0]===n.escapeChar)l=!0;else{if(void 0===t)if(!l&&(a=O(i[0])))o+="("+a[0]+")",n.placeholder&&""!==n.placeholder?(c[s]=n.placeholder[i.index%n.placeholder.length],c["".concat(i.index,"'").concat(n.placeholder[i.index%n.placeholder.length])]=i[0].charAt(0)):c[s]=i[0].charAt(0);else switch(i[0]){case"[":o+="(";break;case"]":o+=")?";break;default:o+=(0,r.escapeRegex)(i[0]),c[s]=i[0].charAt(0)}else if(!l&&(a=O(i[0])))if(a[3])o+=a[3].call(t.date);else a[2]&&void 0!==t["raw"+a[2]]?o+=t["raw"+a[2]]:o+=i[0];else o+=i[0];s++,l=!1}return void 0===t&&(n.placeholder=c),o}function E(e,t,n){for(e=String(e),t=t||2;e.length<t;)e=n?e+"0":"0"+e;return e}function T(e,t,n){return"string"==typeof e?new v(e,t,n,this):e&&"object"===p(e)&&Object.prototype.hasOwnProperty.call(e,"date")?e:void 0}function A(e,t){return j(t.inputFormat,{date:e},t)}function D(e,t,n){var i,r,a=this,o=0,s=0;for(M(t).lastIndex=0;r=M(t).exec(t.inputFormat);){var c=/\d+$/.exec(r[0]);if(c)s=parseInt(c[0]);else{for(var u=r[0][0],f=o;a&&(t.placeholder["".concat(r.index,"'").concat(l.getTest.call(a,f).match.placeholder)]||l.getTest.call(a,f).match.placeholder)===u;)f++;0===(s=f-o)&&(s=r[0].length)}if((o+=s)>=e+1){var p="";if(n&&n.tests[e]){var d=Object.keys(t.placeholder).filter((function(t){for(var i=r.index-1;i<o;i++)if(t==="".concat(i,"'").concat(n.tests[e][0].match.placeholder))return!0;return!1}));p=d.length>0?t.placeholder[d[0]]:n.tests[e][0].match.placeholder}if(-1!==r[0].indexOf(p)){i=r,r=M(t).exec(t.inputFormat);break}}}return{targetMatchIndex:o-s,nextMatch:r,targetMatch:i}}a.default.extendAliases({datetime:{mask:function(e){if(e.numericInput=!1,b.S=k.ordinalSuffix.join("|"),e.inputFormat=P[e.inputFormat]||e.inputFormat,e.repeat&&(e.repeat=parseInt(e.repeat.toString()),e.repeat>0)){for(var t="",n=0;n<e.repeat;n++)t+=e.inputFormat;e.inputFormat=t,e.repeat=0}return e.displayFormat=P[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=P[e.outputFormat]||e.outputFormat||e.inputFormat,e.regex=j(e.inputFormat,void 0,e),e.min=T(e.min,e.inputFormat,e),e.max=T(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(e,t,n,i,r,a,o,s){if(s)return!0;if(isNaN(n)&&e[t]!==n){var l=D.call(this,t,r,a);if(l.nextMatch&&l.nextMatch[0]===n&&l.targetMatch[0].length>1){var c=O(l.targetMatch[0])[0];if(new RegExp(c).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,i,r,a,o,s){var c,u,f=this;if(o)return!0;if(!1===i&&((c=D.call(f,t+1,r,a)).targetMatch&&c.targetMatchIndex===t&&c.targetMatch[0].length>1&&void 0!==O(c.targetMatch[0])?u=O(c.targetMatch[0])[0]:(c=D.call(f,t+2,r,a)).targetMatch&&c.targetMatchIndex===t+1&&c.targetMatch[0].length>1&&void 0!==O(c.targetMatch[0])&&(u=O(c.targetMatch[0])),void 0!==u&&(t=c.targetMatchIndex,void 0!==a.validPositions[t+1]&&new RegExp(u).test(n+"0")?(e[t]=n,e[t+1]="0",i={pos:t+2,caret:t+1}):new RegExp(u).test("0"+n)&&(e[t]="0",e[t+1]=n,i={pos:t+2})),!1===i))return i;if(i.fuzzy&&(e=i.buffer,t=i.pos),(c=D.call(f,t,r,a)).targetMatch&&c.targetMatch[0]&&void 0!==O(c.targetMatch[0])){var p=O(c.targetMatch[0]);u=p[0];var d=e.slice(c.targetMatchIndex,c.targetMatchIndex+c.targetMatch[0].length);if(!1===new RegExp(u).test(d.join(""))&&2===c.targetMatch[0].length&&a.validPositions[c.targetMatchIndex]&&a.validPositions[c.targetMatchIndex+1]&&(a.validPositions[c.targetMatchIndex+1].input="0"),"year"==p[2])for(var h=l.getMaskTemplate.call(f,!1,1,void 0,!0),m=t+1;m<e.length;m++)e[m]=h[m],a.validPositions.splice(t+1,1)}var v=i,g=T.call(f,e.join(""),r.inputFormat,r);return v&&!isNaN(g.date.getTime())&&(r.prefillYear&&(v=function(e,t,n){if(e.year!==e.rawyear){var i=y.toString(),r=e.rawyear.replace(/[^0-9]/g,""),a=i.slice(0,r.length),o=i.slice(r.length);if(2===r.length&&r===a){var s=new Date(y,e.month-1,e.day);e.day==s.getDate()&&(!n.max||n.max.date.getTime()>=s.getTime())&&(e.date.setFullYear(y),e.year=i,t.insert=[{pos:t.pos+1,c:o[0]},{pos:t.pos+2,c:o[1]}])}}return t}(g,v,r)),v=function(e,t,n,i){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var r;for(e.reset(),M(n).lastIndex=0;r=M(n).exec(n.inputFormat);){var a;if((a=O(r[0]))&&a[3]){for(var o=a[1],s=e[a[2]],l=n.min[a[2]],c=n.max?n.max[a[2]]:l+1,u=[],f=!1,p=0;p<l.length;p++)void 0!==i.validPositions[p+r.index]||f?(u[p]=s[p],f=f||s[p]>l[p]):(p+r.index==0&&s[p]<l[p]?(u[p]=s[p],f=!0):u[p]=l[p],"year"===a[2]&&s.length-1==p&&l!=c&&(u=(parseInt(u.join(""))+1).toString().split("")),"ampm"===a[2]&&l!=c&&n.min.date.getTime()>e.date.getTime()&&(u[p]=c[p]));o.call(e._date,u.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(g,v=_.call(f,g,v,r),r,a)),void 0!==t&&v&&i.pos!==t?{buffer:j(r.inputFormat,g,r).split(""),refreshFromBuffer:{start:t,end:i.pos},pos:void 0!==i.caret?i.caret:i.pos}:v},onKeyDown:function(e,t,n,i){e.ctrlKey&&e.key===o.keys.ArrowRight&&(this.inputmask._valueSet(A(new Date,i)),m(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?j(n.outputFormat,T.call(this,e,n.inputFormat,n),n):t},casing:function(e,t,n,i){if(0==t.nativeDef.indexOf("[ap]"))return e.toLowerCase();if(0==t.nativeDef.indexOf("[AP]"))return e.toUpperCase();var r=l.getTest.call(this,[n-1]);return 0==r.match.def.indexOf("[AP]")||0===n||r&&r.input===String.fromCharCode(o.keyCode.Space)||r&&r.match.def===String.fromCharCode(o.keyCode.Space)||t.static&&t.def===t.def.toUpperCase()?e.toUpperCase():e.toLowerCase()},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=A(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},4240:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,n=this.el,c=this.dependencyLib;a.EventRuler.off(n);var u=function(t,n){var i=t.getAttribute("type"),r="input"===t.tagName.toLowerCase()&&n.supportsInputType.includes(i)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!r)if("input"===t.tagName.toLowerCase()){var l=document.createElement("input");l.setAttribute("type",i),r="text"===l.type,l=null}else r="partial";return!1!==r?function(t){var i,r;function l(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==s.getLastValidPosition.call(e)||!0!==n.nullable?this.getRootNode().activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?o.clearOptionalTail.call(e,s.getBuffer.call(e).slice()).reverse():o.clearOptionalTail.call(e,s.getBuffer.call(e).slice())).join(""):i.call(this):"":i.call(this)}function u(e){r.call(this,e),this.inputmask&&(0,o.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==n.noValuePatching){if(Object.getOwnPropertyDescriptor){var f=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;f&&f.get&&f.set?(i=f.get,r=f.set,Object.defineProperty(t,"value",{get:l,set:u,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(i=function(){return this.textContent},r=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:l,set:u,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(i=t.__lookupGetter__("value"),r=t.__lookupSetter__("value"),t.__defineGetter__("value",l),t.__defineSetter__("value",u));t.inputmask.__valueGet=i,t.inputmask.__valueSet=r}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?i.call(this.el).split("").reverse().join(""):i.call(this.el)},t.inputmask._valueSet=function(t,n){r.call(this.el,null==t?"":!0!==n&&e.isRTL?t.split("").reverse().join(""):t)},void 0===i&&(i=function(){return this.value},r=function(e){this.value=e},function(t){if(c.valHooks&&(void 0===c.valHooks[t]||!0!==c.valHooks[t].inputmaskpatch)){var i=c.valHooks[t]&&c.valHooks[t].get?c.valHooks[t].get:function(e){return e.value},r=c.valHooks[t]&&c.valHooks[t].set?c.valHooks[t].set:function(e,t){return e.value=t,e};c.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var r=i(t);return-1!==s.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==n.nullable?r:""}return i(t)},set:function(e,t){var n=r(e,t);return e.inputmask&&(0,o.applyInputValue)(e,t),n},inputmaskpatch:!0}}}(t.type),function(e){a.EventRuler.on(e,"mouseenter",(function(){var e=this,t=e.inputmask._valueGet(!0);t!=(e.inputmask.isRTL?s.getBuffer.call(e.inputmask).slice().reverse():s.getBuffer.call(e.inputmask)).join("")&&(0,o.applyInputValue)(e,t)}))}(t))}}(t):t.inputmask=void 0,r}(n,t);if(!1!==u){e.originalPlaceholder=n.placeholder,e.maxLength=void 0!==n?n.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in n&&null===n.getAttribute("inputmode")&&(n.inputMode=t.inputmode,n.setAttribute("inputmode",t.inputmode)),!0===u&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(n.autocomplete),i.iphone&&(t.insertModeVisual=!1,n.setAttribute("autocorrect","off")),a.EventRuler.on(n,"submit",r.EventHandlers.submitEvent),a.EventRuler.on(n,"reset",r.EventHandlers.resetEvent),a.EventRuler.on(n,"blur",r.EventHandlers.blurEvent),a.EventRuler.on(n,"focus",r.EventHandlers.focusEvent),a.EventRuler.on(n,"invalid",r.EventHandlers.invalidEvent),a.EventRuler.on(n,"click",r.EventHandlers.clickEvent),a.EventRuler.on(n,"mouseleave",r.EventHandlers.mouseleaveEvent),a.EventRuler.on(n,"mouseenter",r.EventHandlers.mouseenterEvent),a.EventRuler.on(n,"paste",r.EventHandlers.pasteEvent),a.EventRuler.on(n,"cut",r.EventHandlers.cutEvent),a.EventRuler.on(n,"complete",t.oncomplete),a.EventRuler.on(n,"incomplete",t.onincomplete),a.EventRuler.on(n,"cleared",t.oncleared),!0!==t.inputEventOnly&&a.EventRuler.on(n,"keydown",r.EventHandlers.keyEvent),(i.mobile||t.inputEventOnly)&&n.removeAttribute("maxLength"),a.EventRuler.on(n,"input",r.EventHandlers.inputFallBackEvent)),a.EventRuler.on(n,"setvalue",r.EventHandlers.setValueEvent),void 0===e.applyMaskHook||e.applyMaskHook(),s.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var f=n.getRootNode().activeElement;if(""!==n.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||f===n){(0,o.applyInputValue)(n,n.inputmask._valueGet(!0));var p=s.getBuffer.call(e).slice();!1===l.isComplete.call(e,p)&&t.clearIncomplete&&s.resetMaskSet.call(e,!1),t.clearMaskOnLostFocus&&f!==n&&(-1===s.getLastValidPosition.call(e)?p=[]:o.clearOptionalTail.call(e,p)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&f===n||""!==n.inputmask._valueGet(!0))&&(0,o.writeBuffer)(n,p),f===n?s.caret.call(e,n,s.seekNext.call(e,s.getLastValidPosition.call(e))):s.caret.call(e,n,0)}}};var i=n(4351),r=n(6047),a=n(4136),o=n(1507),s=n(7539),l=n(7687)},4351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=t.iphone=t.ie=void 0;var i,r=(i=n(6266))&&i.__esModule?i:{default:i};var a=r.default.navigator&&r.default.navigator.userAgent||"";t.ie=a.indexOf("MSIE ")>0||a.indexOf("Trident/")>0,t.mobile=r.default.navigator&&r.default.navigator.userAgentData&&r.default.navigator.userAgentData.mobile||r.default.navigator&&r.default.navigator.maxTouchPoints||"ontouchstart"in r.default,t.iphone=/iphone/i.test(a)},4424:function(t){t.exports=e},4507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=function(e,t,n){var i,r,l,c,u,f,p=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,d=/\[\^?]?(?:[^\\\]]+|\\[\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,h=new o.default,m=[],v=[],g=!1,y=!1;function k(e,i,r){r=void 0!==r?r:e.matches.length;var o=e.matches[r-1],l=n.casing?"i":"";if(t)0===i.indexOf("[")||g&&/\\d|\\s|\\w|\\p/i.test(i)||"."===i?(/\\p\{.*}/i.test(i)&&(l+="u"),e.matches.splice(r++,0,{fn:new RegExp(i,l),static:!1,optionality:!1,newBlockMarker:void 0===o?"master":o.def!==i,casing:null,def:i,placeholder:"object"===s(n.placeholder)?n.placeholder[h.matches.length]:void 0,nativeDef:i})):(g&&(i=i[i.length-1]),i.split("").forEach((function(t,i){o=e.matches[r-1],e.matches.splice(r++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?new RegExp("["+(n.staticDefinitionSymbol||t)+"]",l):null,static:!0,optionality:!1,newBlockMarker:void 0===o?"master":o.def!==t&&!0!==o.static,casing:null,def:n.staticDefinitionSymbol||t,placeholder:void 0!==n.staticDefinitionSymbol?t:"object"===s(n.placeholder)?n.placeholder[h.matches.length]:void 0,nativeDef:(g?"'":"")+t})}))),g=!1;else{var c=n.definitions&&n.definitions[i]||n.usePrototypeDefinitions&&a.default.prototype.definitions[i];c&&!g?("string"==typeof c.validator&&/\\p\{.*}/i.test(c.validator)&&(l+="u"),e.matches.splice(r++,0,{fn:c.validator?"string"==typeof c.validator?new RegExp(c.validator,l):new function(){this.test=c.validator}:/./,static:c.static||!1,optionality:c.optional||!1,defOptionality:c.optional||!1,newBlockMarker:void 0===o||c.optional?"master":o.def!==(c.definitionSymbol||i),casing:c.casing,def:c.definitionSymbol||i,placeholder:c.placeholder,nativeDef:i,generated:c.generated})):(e.matches.splice(r++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||i)?new RegExp("["+(n.staticDefinitionSymbol||i)+"]",l):null,static:!0,optionality:!1,newBlockMarker:void 0===o?"master":o.def!==i&&!0!==o.static,casing:null,def:n.staticDefinitionSymbol||i,placeholder:void 0!==n.staticDefinitionSymbol?i:void 0,nativeDef:(g?"'":"")+i}),g=!1)}}function b(){if(m.length>0){if(k(c=m[m.length-1],r),c.isAlternator){u=m.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup&&(u.matches[e].isGroup=!1);m.length>0?(c=m[m.length-1]).matches.push(u):h.matches.push(u)}}else k(h,r)}function x(e){var t=new o.default(!0);return t.openGroup=!1,t.matches=e,t}function P(){if((l=m.pop()).openGroup=!1,void 0!==l)if(m.length>0){if((c=m[m.length-1]).matches.push(l),c.isAlternator){u=m.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup=!1,u.matches[e].alternatorGroup=!1;m.length>0?(c=m[m.length-1]).matches.push(u):h.matches.push(u)}}else h.matches.push(l);else b()}function S(e){var t=e.pop();return t.isQuantifier&&(t=x([e.pop(),t])),t}t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);for(;i=t?d.exec(e):p.exec(e);){if(r=i[0],t){switch(r.charAt(0)){case"?":r="{0,1}";break;case"+":case"*":r="{"+r+"}";break;case"|":if(0===m.length){var w=x(h.matches);w.openGroup=!0,m.push(w),h.matches=[],y=!0}}switch(r){case"\\d":r="[0-9]";break;case"\\p":r+=d.exec(e)[0],r+=d.exec(e)[0]}}if(g)b();else switch(r.charAt(0)){case"$":case"^":t||b();break;case n.escapeChar:g=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:P();break;case n.optionalmarker[0]:m.push(new o.default(!1,!0));break;case n.groupmarker[0]:m.push(new o.default(!0));break;case n.quantifiermarker[0]:var O=new o.default(!1,!1,!0),M=(r=r.replace(/[{}?]/g,"")).split("|"),_=M[0].split(","),j=isNaN(_[0])?_[0]:parseInt(_[0]),E=1===_.length?j:isNaN(_[1])?_[1]:parseInt(_[1]),T=isNaN(M[1])?M[1]:parseInt(M[1]);"*"!==j&&"+"!==j||(j="*"===E?0:1),O.quantifier={min:j,max:E,jit:T};var A=m.length>0?m[m.length-1].matches:h.matches;(i=A.pop()).isGroup||(i=x([i])),A.push(i),A.push(O);break;case n.alternatormarker:if(m.length>0){var D=(c=m[m.length-1]).matches[c.matches.length-1];f=c.openGroup&&(void 0===D.matches||!1===D.isGroup&&!1===D.isAlternator)?m.pop():S(c.matches)}else f=S(h.matches);if(f.isAlternator)m.push(f);else if(f.alternatorGroup?(u=m.pop(),f.alternatorGroup=!1):u=new o.default(!1,!1,!1,!0),u.matches.push(f),m.push(u),f.openGroup){f.openGroup=!1;var C=new o.default(!0);C.alternatorGroup=!0,m.push(C)}break;default:b()}}y&&P();for(;m.length>0;)l=m.pop(),h.matches.push(l);h.matches.length>0&&(!function e(i){i&&i.matches&&i.matches.forEach((function(r,a){var o=i.matches[a+1];(void 0===o||void 0===o.matches||!1===o.isQuantifier)&&r&&r.isGroup&&(r.isGroup=!1,t||(k(r,n.groupmarker[0],0),!0!==r.openGroup&&k(r,n.groupmarker[1]))),e(r)}))}(h),v.push(h));(n.numericInput||n.isRTL)&&function e(t){for(var i in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,i)){var r=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[r+1]&&t.matches[r+1].isGroup){var a=t.matches[i];t.matches.splice(i,1),t.matches.splice(r+1,0,a)}void 0!==t.matches[i].matches?t.matches[i]=e(t.matches[i]):t.matches[i]=((o=t.matches[i])===n.optionalmarker[0]?o=n.optionalmarker[1]:o===n.optionalmarker[1]?o=n.optionalmarker[0]:o===n.groupmarker[0]?o=n.groupmarker[1]:o===n.groupmarker[1]&&(o=n.groupmarker[0]),o)}var o;return t}(v[0]);return v},t.generateMaskSet=function(e,t){var n;function o(e,t){var n=t.repeat,i=t.groupmarker,a=t.quantifiermarker,o=t.keepStatic;if(n>0||"*"===n||"+"===n){var s="*"===n?0:"+"===n?1:n;if(s!==n)e=i[0]+e+i[1]+a[0]+s+","+n+a[1];else for(var c=e,u=1;u<s;u++)e+=c}if(!0===o){var f=e.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));f&&f.forEach((function(t,n){var i,a,o=t.split("["),s=(a=2,function(e){if(Array.isArray(e))return e}(i=o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(i,a)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];u=u.replace("]",""),e=e.replace(new RegExp("".concat((0,r.escapeRegex)(c),"\\[").concat((0,r.escapeRegex)(u),"\\]")),c.charAt(0)===u.charAt(0)?"(".concat(c,"|").concat(c).concat(u,")"):"".concat(c,"[").concat(u,"]"))}))}return e}function c(e,n,r){var l,c,u=!1;return null!==e&&""!==e||((u=null!==r.regex)?e=(e=r.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(u=!0,e=".*")),1===e.length&&!1===r.greedy&&0!==r.repeat&&(r.placeholder=""),e=o(e,r),c=u?"regex_"+r.regex:r.numericInput?e.split("").reverse().join(""):e,null!==r.keepStatic&&(c="ks_"+r.keepStatic+c),"object"===s(r.placeholder)&&(c="ph_"+JSON.stringify(r.placeholder)+c),void 0===a.default.prototype.masksCache[c]||!0===t?(l={mask:e,maskToken:a.default.prototype.analyseMask(e,u,r),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(a.default.prototype.masksCache[c]=l,l=i.default.extend(!0,{},a.default.prototype.masksCache[c]))):l=i.default.extend(!0,{},a.default.prototype.masksCache[c]),l}"function"==typeof e.mask&&(e.mask=e.mask(e));if(Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var u=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){u.length>1&&(u+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?u+=t.mask:u+=t})),c(u+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?c(e.mask.mask,e.mask,e):c(e.mask,e.mask,e);null===e.keepStatic&&(e.keepStatic=!1);return n};var i=c(n(8826)),r=n(340),a=c(n(3978)),o=c(n(9439));function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function c(e){return e&&e.__esModule?e:{default:e}}},4829:function(e,t,n){var i,r=(i=n(3978))&&i.__esModule?i:{default:i},a=n(7539),o=n(5895);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}r.default.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var c=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function u(e,t,n,i,r){if(n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,r.greedy&&parseInt(e)>255&&c.test("00"+e.charAt(2))){var a=[].concat(s(t.buffer.slice(0,n)),[".",e.charAt(2)]);if(a.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:a,caret:n+2}}return c.test(e)}r.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:u},j:{validator:u},k:{validator:u},l:{validator:u}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,i="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",r=i;if(t)for(var a=0;a<n;a++)r+="[".concat(t).concat(i,"]");return r},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},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(e,t,n,i,r,s,l){var c=o.getMaskTemplate.call(this,!0,a.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""))}}})},5895:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=d,t.getDecisionTaker=u,t.getMaskTemplate=function(e,t,n,i,r){var a=this,o=this.opts,s=this.maskset,l=o.greedy;r&&o.greedy&&(o.greedy=!1,a.maskset.tests={});t=t||0;var c,u,h,m,g=[],y=0;do{if(!0===e&&s.validPositions[y])u=(h=r&&s.validPositions[y].match.optionality&&void 0===s.validPositions[y+1]&&(!0===s.validPositions[y].generatedInput||s.validPositions[y].input==o.skipOptionalPartCharacter&&y>0)?d.call(a,y,v.call(a,y,c,y-1)):s.validPositions[y]).match,c=h.locator.slice(),g.push(!0===n?h.input:!1===n?u.nativeDef:f.call(a,y,u));else{u=(h=p.call(a,y,c,y-1)).match,c=h.locator.slice();var k=!0!==i&&(!1!==o.jitMasking?o.jitMasking:u.jit);(m=(m||s.validPositions[y-1])&&u.static&&u.def!==o.groupSeparator&&null===u.fn)||!1===k||void 0===k||"number"==typeof k&&isFinite(k)&&k>y?g.push(!1===n?u.nativeDef:f.call(a,g.length,u)):m=!1}y++}while(!0!==u.static||""!==u.def||t>y);""===g[g.length-1]&&g.pop();!1===n&&void 0!==s.maskLength||(s.maskLength=y-1);return o.greedy=l,g},t.getPlaceholder=f,t.getTest=h,t.getTestTemplate=p,t.getTests=v,t.isSubsetOf=m;var i,r=(i=n(3978))&&i.__esModule?i:{default:i},a=n(7539);function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=(null!=e.alternation&&e.mloc["".concat(u(e),":").concat(e.alternation)]||e.locator).join("");if(""!==n)for(n=n.split(":")[0];n.length<t;)n+="0";return n}function u(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",").sort((function(e,t){return e-t}))[0]),void 0!==t?t.toString():""}function f(e,t,n){var i=this,r=this.opts,o=this.maskset;if(void 0!==(t=t||h.call(i,e).match).placeholder||!0===n){if(""!==t.placeholder&&!0===t.static&&!0!==t.generated){var s=a.getLastValidPosition.call(i,e),c=a.seekNext.call(i,s);return(n?e<=c:e<c)?r.staticDefinitionSymbol&&t.static?t.nativeDef:t.def:"function"==typeof t.placeholder?t.placeholder(r):t.placeholder}return"function"==typeof t.placeholder?t.placeholder(r):t.placeholder}if(!0===t.static){if(e>-1&&void 0===o.validPositions[e]){var u,f=v.call(i,e),p=[];if("string"==typeof r.placeholder&&f.length>1+(""===f[f.length-1].match.def?1:0))for(var d=0;d<f.length;d++)if(""!==f[d].match.def&&!0!==f[d].match.optionality&&!0!==f[d].match.optionalQuantifier&&(!0===f[d].match.static||void 0===u||!1!==f[d].match.fn.test(u.match.def,o,e,!0,r))&&(p.push(f[d]),!0===f[d].match.static&&(u=f[d]),p.length>1&&/[0-9a-bA-Z]/.test(p[0].match.def)))return r.placeholder.charAt(e%r.placeholder.length)}return t.def}return"object"===l(r.placeholder)?t.def:r.placeholder.charAt(e%r.placeholder.length)}function p(e,t,n){return this.maskset.validPositions[e]||d.call(this,e,v.call(this,e,t?t.slice():t,n))}function d(e,t){var n=this.opts,i=function(e,t){var n=0,i=!1;t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(i=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:i||(n=0));return n}(e,t);e=e>0?e-1:0;var r,a,s,l=Math.max.apply(Math,o(t.map((function(e){return void 0===e.locator?0:e.locator.length})))),u=c(h.call(this,e),l),f=0;n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(f=1);for(var p=0;p<t.length-f;p++){var d=t[p];r=c(d,l);var m=Number(r)-Number(u);(!0!==d.unMatchedAlternationStopped||t.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length<=1)&&(void 0===a||""!==r&&m<a||s&&!n.greedy&&s.match.optionality&&s.match.optionality-i>0&&"master"===s.match.newBlockMarker&&(!d.match.optionality||d.match.optionality-i<1||!d.match.newBlockMarker)||s&&!n.greedy&&s.match.optionalQuantifier&&!d.match.optionalQuantifier)&&(a=m,s=d)}return s}function h(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||v.call(this,e))[0]}function m(e,t,n){function i(e){for(var t,n=[],i=-1,r=0,a=e.length;r<a;r++)if("-"===e.charAt(r))for(t=e.charCodeAt(r+1);++i<t;)n.push(String.fromCharCode(i));else i=e.charCodeAt(r),n.push(e.charAt(r));return n.join("")}return e.match.def===t.match.nativeDef||!(!(n.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)||!0===e.match.static||!0===t.match.static)&&("."===t.match.fn.source||-1!==i(t.match.fn.source.replace(/[[\]/]/g,"")).indexOf(i(e.match.fn.source.replace(/[[\]/]/g,""))))}function v(e,t,n){var i,a,o=this,s=this.dependencyLib,l=this.maskset,c=this.opts,u=this.el,f=l.maskToken,p=t?n:0,h=t?t.slice():[0],v=[],g=!1,y=t?t.join(""):"",k=!1;function b(t,n,a,s){function f(a,s,d){function h(e,t){var n=0===t.matches.indexOf(e);return n||t.matches.every((function(i,r){return!0===i.isQuantifier?n=h(e,t.matches[r-1]):Object.prototype.hasOwnProperty.call(i,"matches")&&(n=h(e,i)),!n})),n}function S(e,t,n){var i,r,a,o,s="".concat(t,":").concat(n);if((l.tests[e]||l.validPositions[e])&&(l.validPositions[e]?[l.validPositions[e]]:l.tests[e]).every((function(e,l){return e.mloc[s]?(i=e,!1):(Object.values(e.mloc).filter((function(e){return e[n]==t})).every((function(t){var n=t.join("").split(":")[0];for(a=a||n;n.length<a.length;)n+="0";var s=Number(n);return(void 0===i||s<r)&&(r=s,i=e,o=Object.entries(e.mloc).find((function(e){return e[1].toString()===t.toString()}))[0]),!0})),!0)})),i){void 0===n&&(s="".concat(t,":").concat(i.alternation));var c="".concat(i.locator[i.alternation],":").concat(i.alternation),u=i.mloc[o||s]||i.mloc[c]||i.locator;if(-1!==u[u.length-1].toString().indexOf(":"))u.pop();var f=parseInt(i.alternation)+1;return u.slice(f)}return void 0!==n?S(e,t):void 0}function w(t,n){return!0===t.match.static&&!0!==n.match.static&&n.match.fn.test(t.match.def,l,e,!1,c,!1)}function O(e,t){var n=e.alternation,i=void 0===t||n<=t.alternation&&-1===e.locator[n].toString().indexOf(t.locator[n]);if(!i&&n>t.alternation)for(var r=0;r<n;r++)if(e.locator[r]!==t.locator[r]){n=r,i=!0;break}return!!i&&function(n){e.mloc=e.mloc||{};var i=e.locator[n];if(void 0!==i){if(void 0===t)"string"==typeof i&&(i=i.split(",")[0]),i="".concat(i,":").concat(n),void 0===e.mloc[i]&&(e.mloc[i]=e.locator.slice(),e.mloc[i].push(":".concat(n)));else{var r=0;for(var a in t.mloc)if(void 0===e.mloc[a])e.mloc[a]=t.mloc[a];else do{if(void 0===e.mloc[a+r]){e.mloc[a+r]=t.mloc[a];break}}while(void 0!==e.mloc[a+r++]);e.locator=P(p,[e,t])}return e.alternation>n&&(e.alternation=n),!0}return e.alternation=void 0,!1}(n)}if(p>e+c._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(l.mask));if(p===e&&void 0===a.matches){if(v.push({match:a,locator:s.reverse(),cd:y,mloc:{}}),!a.optionality||void 0!==d||!(c.definitions&&c.definitions[a.nativeDef]&&c.definitions[a.nativeDef].optional||r.default.prototype.definitions[a.nativeDef]&&r.default.prototype.definitions[a.nativeDef].optional))return!0;g=!0,p=e}else if(void 0!==a.matches){if(a.isGroup&&d!==a)return function(){if(a=f(t.matches[t.matches.indexOf(a)+1],s,d))return!0}();if(a.isOptional)return function(){var t=a,r=v.length;if(a=b(a,n,s,d),v.length>0){if(v.forEach((function(e,t){t>=r&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),i=v[v.length-1].match,void 0!==d||!h(i,t))return a;g=!0,p=e}}();if(a.isAlternator)return function(){function i(e){for(var t=0,n=0;n<e.length;n++){var i=e[n];i.isQuantifier&&!isNaN(i.quantifier.max)?t+=i.quantifier.max:t++}return t}function r(e){for(var t,n=e.matches[0].matches?i(e.matches[0].matches):1,r=0;r<e.matches.length&&n===(t=e.matches[r].matches?i(e.matches[r].matches):1);r++);return n!==t}o.hasAlternator=!0;var h,y=a,b=[],x=v.slice(),P=s.length,M=n.length>0?n.shift():-1;if(-1===M||"string"==typeof M){var _,j=p,E=n.slice(),T=[];if("string"==typeof M)T=M.split(",");else for(_=0;_<y.matches.length;_++)T.push(_.toString());if(void 0!==l.excludes[e]){for(var A=T.slice(),D=0,C=l.excludes[e].length;D<C;D++){var B=l.excludes[e][D].toString().split(":");s.length==B[1]&&T.splice(T.indexOf(B[0]),1)}0===T.length&&(delete l.excludes[e],T=A)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&j>=c.keepStatic)&&(T=T.slice(0,1));for(var R=0;R<T.length;R++){_=parseInt(T[R]),v=[],n="string"==typeof M&&S(p,_,P)||E.slice();var I=y.matches[_];if(I&&f(I,[_].concat(s),d))a=!0;else if(k=r(y),I&&I.matches&&I.matches.length>y.matches[0].matches.length)break;h=v.slice(),p=j,v=[];for(var L=0;L<h.length;L++){var F=h[L],N=!1;F.alternation=F.alternation||P,O(F);for(var V=0;V<b.length;V++){var G=b[V];if("string"!=typeof M||void 0!==F.alternation&&-1!==M.indexOf(F.locator[F.alternation].toString())){if(F.match.nativeDef===G.match.nativeDef){N=!0,O(G,F);break}if(m(F,G,c)){O(F,G)&&(N=!0,b.splice(b.indexOf(G),0,F));break}if(m(G,F,c)){O(G,F);break}if(w(F,G)){O(F,G)&&(N=!0,b.splice(b.indexOf(G),0,F));break}if(w(G,F)){O(G,F),G.match.optionality&&void 0===u.inputmask.userOptions.keepStatic&&(c.keepStatic=j);break}}}N||b.push(F)}}v=x.concat(b),p=e,g=v.length>0&&k,a=b.length>0&&!k,k&&g&&!a&&v.forEach((function(e,t){e.unMatchedAlternationStopped=!0})),n=E.slice()}else a=f(y.matches[M]||t.matches[M],[M].concat(s),d);if(a)return!0}();if(a.isQuantifier&&d!==t.matches[t.matches.indexOf(a)-1])return function(){for(var r,o=a,u=!1,d=function(n){var r=t.matches[t.matches.indexOf(o)-1];if(a=f(r,[n].concat(s),r))return v.forEach((function(t,s){(i=x(r,t.match)?t.match:v[v.length-1].match).optionalQuantifier=n>=o.quantifier.min,i.jit=(n+1)*(r.matches.indexOf(i)+1)>o.quantifier.jit,i.optionalQuantifier&&h(i,r)&&(g=!0,p=e,c.greedy&&null==l.validPositions[e-1]&&n>o.quantifier.min&&-1!=["*","+"].indexOf(o.quantifier.max)&&(v.pop(),y=void 0),u=!0,a=!1),!u&&i.jit&&(l.jitOffset[e]=r.matches.length-r.matches.indexOf(i))})),u?0:{v:!0}},m=n.length>0?n.shift():0;m<(isNaN(o.quantifier.max)?m+1:o.quantifier.max)&&p<=e&&0!==(r=d(m));m++)if(r)return r.v}();if(a=b(a,n,s,d))return!0}else p++}for(var d=n.length>0?n.shift():0;d<t.matches.length;d++)if(!0!==t.matches[d].isQuantifier){var h=f(t.matches[d],[d].concat(a),s);if(h&&p===e)return h;if(p>e)break}}function x(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach((function(e,i){void 0===e.matches||n||(n=x(e,t))})),n}function P(e,t){var n=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&e>=c.keepStatic?0===(n=d.call(o,e,t.slice()).locator.slice()).length&&(n=t[0].locator.slice()):t.forEach((function(e){Object.values(e.mloc).forEach((function(e){e.forEach((function(e,t){var i=n[t];e.toString().includes(":")||i&&i.toString().includes(":")||(void 0===i?n[t]=e:i.toString().includes(e)||(n[t]=n[t]+","+e))}))}))}))),n}if(e>-1){if(void 0===t){for(var S,w=e-1;void 0===(S=l.validPositions[w]||l.tests[w])&&w>-1;)w--;void 0!==S&&w>-1&&(h=P(w,S),y=h.join(""),p=w)}if(l.tests[e]&&l.tests[e][0].cd===y)return l.tests[e];for(var O=h.shift();O<f.length;O++){if(b(f[O],h,[O])&&p===e||p>e)break}}return(0===v.length||g)&&v.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:k&&0===v.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length?[0]:[],mloc:{},cd:y}),void 0!==t&&l.tests[e]?a=s.extend(!0,[],v):(l.tests[e]=s.extend(!0,[],v),a=l.tests[e]),v.forEach((function(e){e.match.optionality=e.match.defOptionality||!1})),a}},6032:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.keyCode=void 0,t.toKey=function(e,t){return l[e]||(t?String.fromCharCode(e):String.fromCharCode(e).toLowerCase())},t.toKeyCode=function(e){return s[e]};var s=t.keyCode=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),l=Object.entries(s).reduce((function(e,t){var n=i(t,2),r=n[0],a=n[1];return e[a]=void 0===e[a]?r:e[a],e}),{});t.keys=Object.entries(s).reduce((function(e,t){var n=i(t,2),r=n[0];n[1];return e[r]="Space"===r?" ":r,e}),{})},6047:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var i,r=n(4351),a=(i=n(6266))&&i.__esModule?i:{default:i},o=n(1507),s=n(6032),l=n(7539),c=n(7687),u=n(5895);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */p=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n,i){return Object.defineProperty(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,i,r){var a=n&&n.prototype instanceof h?n:h,o=Object.create(a.prototype);return l(o,"_invoke",function(t,n,i){var r=1;return function(a,o){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===a)throw o;return{value:e,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=S(s,i);if(l){if(l===d)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(1===r)throw r=4,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=3;var c=u(t,n,i);if("normal"===c.type){if(r=i.done?4:2,c.arg===d)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=4,i.method="throw",i.arg=c.arg)}}}(t,i,new M(r||[])),!0),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function h(){}function m(){}function v(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,k=y&&y(y(_([])));k&&k!==n&&i.call(k,a)&&(g=k);var b=v.prototype=h.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,a,o,s){var l=u(e[r],e,a);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==f(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(p).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var r;l(this,"_invoke",(function(e,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function S(t,n){var i=n.method,r=t.i[i];if(r===e)return n.delegate=null,"throw"===i&&t.i.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),d;var a=u(r,t.i,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,d;var o=a.arg;return o?o.done?(n[t.r]=o.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function w(e){this.tryEntries.push(e)}function O(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function M(e){this.tryEntries=[[-1]],e.forEach(w,this),this.reset(!0)}function _(t){if(null!=t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(f(t)+" is not iterable")}return m.prototype=v,l(b,"constructor",v),l(v,"constructor",m),m.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},x(P.prototype),l(P.prototype,o,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new P(c(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(b),l(b,s,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.unshift(i);return function e(){for(;n.length;)if((i=n.pop())in t)return e.value=i,e.done=!1,e;return e.done=!0,e}},t.values=_,M.prototype={constructor:M,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(e){o.type="throw",o.arg=t,n.next=e}for(var r=n.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a[4],s=this.prev,l=a[1],c=a[2];if(-1===a[0])return i("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=a[0]&&a[0]<=s){if(s<l)return this.method="next",this.arg=e,i(l),!0;if(s<c)return i(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i[0]>-1&&i[0]<=this.prev&&this.prev<i[2]){var r=i;break}}r&&("break"===e||"continue"===e)&&r[0]<=t&&t<=r[2]&&(r=null);var a=r?r[4]:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r[2],d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var i=n[4];if("throw"===i.type){var r=i.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={i:_(t),r:n,n:i},"next"===this.method&&(this.arg=e),d}},t}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t,n,i,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}var v,g,y=t.EventHandlers={keyEvent:function(e,t,n,i,a){var f=this.inputmask,p=f.opts,d=f.dependencyLib,h=f.maskset,m=this,v=d(m),g=e.key,k=l.caret.call(f,m),b=p.onKeyDown.call(this,e,l.getBuffer.call(f),k,p);if(void 0!==b)return b;if(g===s.keys.Backspace||g===s.keys.Delete||r.iphone&&g===s.keys.BACKSPACE_SAFARI||e.ctrlKey&&g===s.keys.x&&!("oncut"in m))e.preventDefault(),c.handleRemove.call(f,m,g,k),(0,o.writeBuffer)(m,l.getBuffer.call(f,!0),h.p,e,m.inputmask._valueGet()!==l.getBuffer.call(f).join(""));else if(g===s.keys.End||g===s.keys.PageDown){e.preventDefault();var x=l.seekNext.call(f,l.getLastValidPosition.call(f));l.caret.call(f,m,e.shiftKey?k.begin:x,x,!0)}else g===s.keys.Home&&!e.shiftKey||g===s.keys.PageUp?(e.preventDefault(),l.caret.call(f,m,0,e.shiftKey?k.begin:0,!0)):p.undoOnEscape&&g===s.keys.Escape&&!0!==e.altKey?((0,o.checkVal)(m,!0,!1,f.undoValue.split("")),v.trigger("click")):g!==s.keys.Insert||e.shiftKey||e.ctrlKey||void 0!==f.userOptions.insertMode?!0===p.tabThrough&&g===s.keys.Tab?!0===e.shiftKey?(k.end=l.seekPrevious.call(f,k.end,!0),!0===u.getTest.call(f,k.end-1).match.static&&k.end--,k.begin=l.seekPrevious.call(f,k.end,!0),k.begin>=0&&k.end>0&&(e.preventDefault(),l.caret.call(f,m,k.begin,k.end))):(k.begin=l.seekNext.call(f,k.begin,!0),k.end=l.seekNext.call(f,k.begin,!0),k.end<h.maskLength&&k.end--,k.begin<=h.maskLength&&(e.preventDefault(),l.caret.call(f,m,k.begin,k.end))):e.shiftKey||(p.insertModeVisual&&!1===p.insertMode?g===s.keys.ArrowRight?setTimeout((function(){var e=l.caret.call(f,m);l.caret.call(f,m,e.begin)}),0):g===s.keys.ArrowLeft&&setTimeout((function(){var e=l.translatePosition.call(f,m.inputmask.caretPos.begin);l.translatePosition.call(f,m.inputmask.caretPos.end);f.isRTL?l.caret.call(f,m,e+(e===h.maskLength?0:1)):l.caret.call(f,m,e-(0===e?0:1))}),0):void 0===f.keyEventHook||f.keyEventHook(e)):c.isSelection.call(f,k)?p.insertMode=!p.insertMode:(p.insertMode=!p.insertMode,l.caret.call(f,m,k.begin,k.begin));return f.isComposing=g==s.keys.Process||g==s.keys.Unidentified,f.ignorable=void 0===g||g.length>1,y.keypressEvent.call(this,e,t,n,i,a)},keypressEvent:function(e,t,n,i,r){var a=this.inputmask||this,u=a.opts,f=a.dependencyLib,p=a.maskset,d=a.el,h=f(d),m=e.key;if(!0===t||e.ctrlKey&&e.altKey&&!a.ignorable||!(e.ctrlKey||e.metaKey||a.ignorable)){if(m){var v,g=t?{begin:r,end:r}:l.caret.call(a,d);t||(m=u.substitutes[m]||m),p.writeOutBuffer=!0;var y=c.isValid.call(a,g,m,i,void 0,void 0,void 0,t);if(!1!==y&&(l.resetMaskSet.call(a,!0),v=void 0!==y.caret?y.caret:l.seekNext.call(a,y.pos.begin?y.pos.begin:y.pos),p.p=v),v=u.numericInput&&void 0===y.caret?l.seekPrevious.call(a,v):v,!1!==n&&(setTimeout((function(){u.onKeyValidation.call(d,m,y)}),0),p.writeOutBuffer&&!1!==y)){var k=l.getBuffer.call(a);(0,o.writeBuffer)(d,k,v,e,!0!==t)}if(e.preventDefault(),t)return!1!==y&&(y.forwardPosition=v),y}}else m===s.keys.Enter&&a.undoValue!==a._valueGet(!0)&&(a.undoValue=a._valueGet(!0),setTimeout((function(){h.trigger("change")}),0))},pasteEvent:(v=p().mark((function e(t){var n,i,r,s,c,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e,n,i,r,a){var c=l.caret.call(e,n,void 0,void 0,!0),u=i.substr(0,c.begin),f=i.substr(c.end,i.length);if(u==(e.isRTL?l.getBufferTemplate.call(e).slice().reverse():l.getBufferTemplate.call(e)).slice(0,c.begin).join("")&&(u=""),f==(e.isRTL?l.getBufferTemplate.call(e).slice().reverse():l.getBufferTemplate.call(e)).slice(c.end).join("")&&(f=""),r=u+r+f,e.isRTL&&!0!==s.numericInput){r=r.split("");var p,h=d(l.getBufferTemplate.call(e));try{for(h.s();!(p=h.n()).done;){var m=p.value;r[0]===m&&r.shift()}}catch(e){h.e(e)}finally{h.f()}r=r.reverse().join("")}var v=r;if("function"==typeof a){if(!1===(v=a.call(e,v,s)))return!1;v||(v=i)}(0,o.checkVal)(n,!0,!1,v.toString().split(""),t)},i=this,r=this.inputmask,s=r.opts,c=r._valueGet(!0),r.skipInputEvent=!0,t.clipboardData&&t.clipboardData.getData?u=t.clipboardData.getData("text/plain"):a.default.clipboardData&&a.default.clipboardData.getData&&(u=a.default.clipboardData.getData("Text")),n(r,i,c,u,s.onBeforePaste),t.preventDefault();case 7:case"end":return e.stop()}}),e,this)})),g=function(){var e=this,t=arguments;return new Promise((function(n,i){var r=v.apply(e,t);function a(e){m(r,n,i,a,o,"next",e)}function o(e){m(r,n,i,a,o,"throw",e)}a(void 0)}))},function(e){return g.apply(this,arguments)}),inputFallBackEvent:function(e){var t=this.inputmask,n=t.opts,i=t.dependencyLib;var a,c=this,f=c.inputmask._valueGet(!0),p=(t.isRTL?l.getBuffer.call(t).slice().reverse():l.getBuffer.call(t)).join(""),d=l.caret.call(t,c,void 0,void 0,!0);if(p!==f){if(a=function(e,i,r){for(var a,o,s,c=e.substr(0,r.begin).split(""),f=e.substr(r.begin).split(""),p=i.substr(0,r.begin).split(""),d=i.substr(r.begin).split(""),h=c.length>=p.length?c.length:p.length,m=f.length>=d.length?f.length:d.length,v="",g=[],y="~";c.length<h;)c.push(y);for(;p.length<h;)p.push(y);for(;f.length<m;)f.unshift(y);for(;d.length<m;)d.unshift(y);var k=c.concat(f),b=p.concat(d);for(o=0,a=k.length;o<a;o++)switch(s=u.getPlaceholder.call(t,l.translatePosition.call(t,o)),v){case"insertText":b[o-1]===k[o]&&r.begin==k.length-1&&g.push(k[o]),o=a;break;case"insertReplacementText":case"deleteContentBackward":k[o]===y?r.end++:o=a;break;default:k[o]!==b[o]&&(k[o+1]!==y&&k[o+1]!==s&&void 0!==k[o+1]||(b[o]!==s||b[o+1]!==y)&&b[o]!==y?b[o+1]===y&&b[o]===k[o+1]?(v="insertText",g.push(k[o]),r.begin--,r.end--):k[o]!==s&&k[o]!==y&&(k[o+1]===y||b[o]!==k[o]&&b[o+1]===k[o+1])?(v="insertReplacementText",g.push(k[o]),r.begin--):k[o]===y?(v="deleteContentBackward",(l.isMask.call(t,l.translatePosition.call(t,o),!0)||b[o]===n.radixPoint)&&r.end++):o=a:(v="insertText",g.push(k[o]),r.begin--,r.end--))}return{action:v,data:g,caret:r}}(f,p,d),c.getRootNode().activeElement!==c&&c.focus(),(0,o.writeBuffer)(c,l.getBuffer.call(t)),l.caret.call(t,c,d.begin,d.end,!0),!r.mobile&&t.skipNextInsert&&"insertText"===e.inputType&&"insertText"===a.action&&t.isComposing)return!1;switch("insertCompositionText"===e.inputType&&"insertText"===a.action&&t.isComposing?t.skipNextInsert=!0:t.skipNextInsert=!1,a.action){case"insertText":case"insertReplacementText":a.data.forEach((function(e,n){var r=new i.Event("keypress");r.key=e,t.ignorable=!1,y.keypressEvent.call(c,r)})),setTimeout((function(){t.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var h=new i.Event("keydown");h.key=s.keys.Backspace,y.keyEvent.call(c,h);break;default:(0,o.applyInputValue)(c,f),l.caret.call(t,c,d.begin,d.end,!0)}e.preventDefault()}},setValueEvent:function(e){var t=this.inputmask,n=t.dependencyLib,i=this,r=e&&e.detail?e.detail[0]:arguments[1];void 0===r&&(r=i.inputmask._valueGet(!0)),(0,o.applyInputValue)(i,r,new n.Event("input"),void 0!==(e&&e.detail?e.detail[0]:arguments[1])),(e.detail&&void 0!==e.detail[1]||void 0!==arguments[2])&&l.caret.call(t,i,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){var t=this.inputmask,n=t.opts,i=t&&t._valueGet();n.showMaskOnFocus&&i!==l.getBuffer.call(t).join("")&&(0,o.writeBuffer)(this,l.getBuffer.call(t),l.seekNext.call(t,l.getLastValidPosition.call(t))),!0!==n.positionCaretOnTab||!1!==t.mouseEnter||c.isComplete.call(t,l.getBuffer.call(t))&&-1!==l.getLastValidPosition.call(t)||y.clickEvent.apply(this,[e,!0]),t.undoValue=t&&t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var e=this.inputmask,t=e.opts,n=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&n.getRootNode().activeElement!==n&&(0,o.HandleNativePlaceholder)(n,e.originalPlaceholder)},clickEvent:function(e,t){var n=this.inputmask;n.clicked++;var i=this;if(i.getRootNode().activeElement===i){var r=l.determineNewCaretPosition.call(n,l.caret.call(n,i),t);void 0!==r&&l.caret.call(n,i,r)}},cutEvent:function(e){var t=this.inputmask,n=t.maskset,i=this,r=l.caret.call(t,i),u=t.isRTL?l.getBuffer.call(t).slice(r.end,r.begin):l.getBuffer.call(t).slice(r.begin,r.end),f=t.isRTL?u.reverse().join(""):u.join("");a.default.navigator&&a.default.navigator.clipboard?a.default.navigator.clipboard.writeText(f):a.default.clipboardData&&a.default.clipboardData.getData&&a.default.clipboardData.setData("Text",f),c.handleRemove.call(t,i,s.keys.Delete,r),(0,o.writeBuffer)(i,l.getBuffer.call(t),n.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){var t=this.inputmask,n=t.opts,i=t.dependencyLib;t.clicked=0;var r=i(this),a=this;if(a.inputmask){(0,o.HandleNativePlaceholder)(a,t.originalPlaceholder);var s=a.inputmask._valueGet(),u=l.getBuffer.call(t).slice();if(""!==s&&(n.clearMaskOnLostFocus&&(-1===l.getLastValidPosition.call(t)&&s===l.getBufferTemplate.call(t).join("")?u=[]:o.clearOptionalTail.call(t,u)),!1===c.isComplete.call(t,u)&&(setTimeout((function(){r.trigger("incomplete")}),0),n.clearIncomplete&&(l.resetMaskSet.call(t,!1),u=n.clearMaskOnLostFocus?[]:l.getBufferTemplate.call(t).slice())),(0,o.writeBuffer)(a,u,void 0,e)),s=t._valueGet(!0),t.undoValue!==s){var f=(t.isRTL?l.getBufferTemplate.call(t).slice().reverse():l.getBufferTemplate.call(t)).join("");(""!==s||t.undoValue!==f||t.undoValue===f&&t.maskset.validPositions.length>0)&&(t.undoValue=s,r.trigger("change"))}}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts.showMaskOnHover,n=this;if(e.mouseEnter=!0,n.getRootNode().activeElement!==n){var i=(e.isRTL?l.getBufferTemplate.call(e).slice().reverse():l.getBufferTemplate.call(e)).join("");t&&(0,o.HandleNativePlaceholder)(n,i)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),-1===l.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===l.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===c.isComplete.call(e,l.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout((function(){(0,o.writeBuffer)(e.el,l.getBuffer.call(e))}),0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout((function(){(0,o.applyInputValue)(e.el,e._valueGet(!0))}),0)}}},6266:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n?window:{}},6664:function(e,t,n){var i=o(n(4424)),r=o(n(3978));function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){return e&&e.__esModule?e:{default:e}}void 0===i.default.fn.inputmask&&(i.default.fn.inputmask=function(e,t){var n,o=this[0];if(void 0===t&&(t={}),"string"==typeof e)switch(e){case"unmaskedvalue":return o&&o.inputmask?o.inputmask.unmaskedvalue():(0,i.default)(o).val();case"remove":return this.each((function(){this.inputmask&&this.inputmask.remove()}));case"getemptymask":return o&&o.inputmask?o.inputmask.getemptymask():"";case"hasMaskedValue":return!(!o||!o.inputmask)&&o.inputmask.hasMaskedValue();case"isComplete":return!o||!o.inputmask||o.inputmask.isComplete();case"getmetadata":return o&&o.inputmask?o.inputmask.getmetadata():void 0;case"setvalue":r.default.setValue(o,t);break;case"option":if("string"!=typeof t)return this.each((function(){if(void 0!==this.inputmask)return this.inputmask.option(t)}));if(o&&void 0!==o.inputmask)return o.inputmask.option(t);break;default:return t.alias=e,n=new r.default(t),this.each((function(){n.mask(this)}))}else{if(Array.isArray(e))return t.alias=e,n=new r.default(t),this.each((function(){n.mask(this)}));if("object"===a(e))return n=new r.default(e),void 0===e.mask&&void 0===e.alias?this.each((function(){if(void 0!==this.inputmask)return this.inputmask.option(e);n.mask(this)})):this.each((function(){n.mask(this)}));if(void 0===e)return this.each((function(){(n=new r.default(t)).mask(this)}))}})},7042:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,outputMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7153:function(e,t,n){var i,r=(i=n(3978))&&i.__esModule?i:{default:i};r.default.dependencyLib.extend(!0,r.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},7539:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,i,a){var o,s=this,l=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):r.default.getSelection?(o=r.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&o.commonAncestorContainer!==e||(t=o.startOffset,n=o.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(o=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+o.text.length),{begin:i?t:f.call(s,t),end:i?n:f.call(s,n)};if(Array.isArray(t)&&(n=s.isRTL?t[0]:t[1],t=s.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=s.isRTL?t.begin:t.end,t=s.isRTL?t.end:t.begin),"number"==typeof t){t=i?t:f.call(s,t),n="number"==typeof(n=i?n:f.call(s,n))?n:t;var c=parseInt(((e.ownerDocument.defaultView||r.default).getComputedStyle?(e.ownerDocument.defaultView||r.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=c>e.scrollWidth?c:0,e.inputmask.caretPos={begin:t,end:n},l.insertModeVisual&&!1===l.insertMode&&t===n&&(a||n++),e===e.getRootNode().activeElement){if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(r.default.getSelection){if(o=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}o.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),o.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),o.collapse(!0);var p=r.default.getSelection();p.removeAllRanges(),p.addRange(o)}else e.createTextRange&&((o=e.createTextRange()).collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select());void 0===e.inputmask.caretHook||e.inputmask.caretHook.call(s,{begin:t,end:n})}}},t.determineLastRequiredPosition=function(e){var t,n,i=this,r=i.maskset,s=i.dependencyLib,c=l.call(i),u={},f=r.validPositions[c],p=o.getMaskTemplate.call(i,!0,l.call(i),!0,!0),d=p.length,h=void 0!==f?f.locator.slice():void 0;for(t=c+1;t<p.length;t++)h=(n=o.getTestTemplate.call(i,t,h,t-1)).locator.slice(),u[t]=s.extend(!0,{},n);var m=f&&void 0!==f.alternation?f.locator[f.alternation]:void 0;for(t=d-1;t>c&&(((n=u[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||m&&(m!==u[t].locator[f.alternation]&&!0!==n.match.static||!0===n.match.static&&n.locator[f.alternation]&&a.checkAlternationMatch.call(i,n.locator[f.alternation].toString().split(","),m.toString().split(","))&&""!==o.getTests.call(i,t)[0].def))&&p[t]===o.getPlaceholder.call(i,t,n.match));t--)if(d--,n.match.optionality){for(var v=t;v>0;){var g=o.getTest.call(i,v);if("master"===g.match.newBlockMarker||!0===g.match.newBlockMarker)break;v--}if(void 0!==r.validPositions[v])break}t===c&&(d=t);return e?{l:d,def:u[d]?u[d].match:void 0}:d},t.determineNewCaretPosition=function(e,t,n){var i,r,a,f=this,p=f.maskset,d=f.opts;t&&(f.isRTL?e.end=e.begin:e.begin=e.end);if(e.begin===e.end){switch(n=n||d.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:s.call(f).length};break;case"ignore":e.end=e.begin=u.call(f,l.call(f));break;case"radixFocus":if(f.clicked>1&&0===p.validPositions.length)break;if(function(e){if(""!==d.radixPoint&&0!==d.digits){var t=p.validPositions;if(void 0===t[e]||void 0===t[e].input){if(e<u.call(f,-1))return!0;var n=s.call(f).indexOf(d.radixPoint);if(-1!==n){for(var i=0,r=t.length;i<r;i++)if(t[i]&&n<i&&t[i].input!==o.getPlaceholder.call(f,i))return!1;return!0}}}return!1}(e.begin)){var h=s.call(f).join("").indexOf(d.radixPoint);e.end=e.begin=d.numericInput?u.call(f,h):h;break}default:if(i=e.begin,r=l.call(f,i,!0),i<=(a=u.call(f,-1!==r||c.call(f,0)?r:-1)))e.end=e.begin=c.call(f,i,!1,!0)?i:u.call(f,i);else{var m=p.validPositions[r],v=o.getTestTemplate.call(f,a,m?m.match.locator:void 0,m),g=o.getPlaceholder.call(f,a,v.match);if(""!==g&&s.call(f)[a]!==g&&!0!==v.match.optionalQuantifier&&!0!==v.match.newBlockMarker||!c.call(f,a,d.keepStatic,!0)&&v.match.def===g){var y=u.call(f,a);(i>=y||i===a)&&(a=y)}e.end=e.begin=a}}return e}},t.getBuffer=s,t.getBufferTemplate=function(){var e=this.maskset;void 0===e._buffer&&(e._buffer=o.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice()));return e._buffer},t.getLastValidPosition=l,t.isMask=c,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0);!1===e&&(t.tests={},t.jitOffset={})},t.seekNext=u,t.seekPrevious=function(e,t){var n=this,i=e-1;if(e<=0)return 0;for(;i>0&&(!0===t&&(!0!==o.getTest.call(n,i).match.newBlockMarker||!c.call(n,i,void 0,!0))||!0!==t&&!c.call(n,i,void 0,!0));)i--;return i},t.translatePosition=f;var i,r=(i=n(6266))&&i.__esModule?i:{default:i},a=n(7687),o=n(5895);function s(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=o.getMaskTemplate.call(t,!0,l.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function l(e,t,n){var i=this.maskset,r=-1,a=-1,o=n||i.validPositions;void 0===e&&(e=-1);for(var s=0,l=o.length;s<l;s++)o[s]&&(t||!0!==o[s].generatedInput)&&(s<=e&&(r=s),s>=e&&(a=s));return-1===r||r===e?a:-1===a||e-r<a-e?r:a}function c(e,t,n){var i=this,r=this.maskset,a=o.getTestTemplate.call(i,e).match;if(""===a.def&&(a=o.getTest.call(i,e).match),!0!==a.static)return a.fn;if(!0===n&&void 0!==r.validPositions[e]&&!0!==r.validPositions[e].generatedInput)return!0;if(!0!==t&&e>-1){if(n){var s=o.getTests.call(i,e);return s.length>1+(""===s[s.length-1].match.def?1:0)}var l=o.determineTestTemplate.call(i,e,o.getTests.call(i,e)),c=o.getPlaceholder.call(i,e,l.match);return l.match.def!==c}return!1}function u(e,t,n){var i=this;void 0===n&&(n=!0);for(var r=e+1;""!==o.getTest.call(i,r).match.def&&(!0===t&&(!0!==o.getTest.call(i,r).match.newBlockMarker||!c.call(i,r,void 0,!0))||!0!==t&&!c.call(i,r,void 0,n));)r++;return r}function f(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},7687:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=s,t.checkAlternationMatch=function(e,t,n){for(var i,r=this.opts.greedy?t:t.slice(0,1),a=!1,o=void 0!==n?n.split(","):[],s=0;s<o.length;s++)-1!==(i=e.indexOf(o[s]))&&e.splice(i,1);for(var l=0;l<e.length;l++)if(r.includes(e[l])){a=!0;break}return a},t.handleRemove=function(e,t,n,i,l){var c=this,u=this.maskset,f=this.opts;if((f.numericInput||c.isRTL)&&(t===r.keys.Backspace?t=r.keys.Delete:t===r.keys.Delete&&(t=r.keys.Backspace),c.isRTL)){var p=n.end;n.end=n.begin,n.begin=p}var d,h=a.getLastValidPosition.call(c,void 0,!0);n.end>=a.getBuffer.call(c).length&&h>=n.end&&(n.end=h+1);t===r.keys.Backspace?n.end-n.begin<1&&(n.begin=a.seekPrevious.call(c,n.begin)):t===r.keys.Delete&&n.begin===n.end&&(n.end=a.isMask.call(c,n.end,!0,!0)?n.end+1:a.seekNext.call(c,n.end)+1);!1!==(d=m.call(c,n))&&((!0!==i&&!1!==f.keepStatic||null!==f.regex&&-1!==o.getTest.call(c,n.begin).match.def.indexOf("|"))&&s.call(c,!0),!0!==i&&(u.p=t===r.keys.Delete?n.begin+d:n.begin,u.p=a.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1,!1===f.insertMode&&t===r.keys.Backspace?"none":void 0).begin))},t.isComplete=c,t.isSelection=u,t.isValid=f,t.refreshFromBuffer=d,t.revalidateMask=m;var i=n(6047),r=n(6032),a=n(7539),o=n(5895);function s(e,t,n,i,r,l){var c=this,u=this.dependencyLib,p=this.opts,d=c.maskset;if(!c.hasAlternator)return!1;var h,m,v,g,y,k,b,x,P,S,w,O=u.extend(!0,[],d.validPositions),M=u.extend(!0,{},d.tests),_=!1,j=!1,E=void 0!==r?r:a.getLastValidPosition.call(c);if(l&&(S=l.begin,w=l.end,l.begin>l.end&&(S=l.end,w=l.begin)),-1===E&&void 0===r)h=0,m=(g=o.getTest.call(c,h)).alternation;else for(;E>=0;E--)if((v=0===E?o.getTest.call(c,0):d.validPositions[E])&&void 0!==v.alternation){if(E<=(e||0)&&g&&g.locator[v.alternation]!==v.locator[v.alternation])break;h=E,m=v.alternation,g=v}if(void 0!==m){b=parseInt(h),d.excludes[b]=d.excludes[b]||[],!0!==e&&d.excludes[b].push((0,o.getDecisionTaker)(g)+":"+g.alternation);var T=[],A=-1;for(y=b;b<a.getLastValidPosition.call(c,void 0,!0)+1;y++)-1===A&&e<=y&&void 0!==t&&(T.push(t),A=T.length-1),(k=d.validPositions[b])&&!0!==k.generatedInput&&(0!==b||k.input!==p.skipOptionalPartCharacter)&&(void 0===l||y<S||y>=w)&&T.push(k.input),d.validPositions.splice(b,1);for(-1===A&&void 0!==t&&(T.push(t),A=T.length-1);void 0!==d.excludes[b]&&d.excludes[b].length<10;){for(d.tests={},a.resetMaskSet.call(c,!0),_=!0,y=0;y<T.length&&(x=_.caret||0==p.insertMode&&null!=x?a.seekNext.call(c,x):a.getLastValidPosition.call(c,void 0,!0)+1,P=T[y],_=f.call(c,x,P,!1,i,!0));y++)y===A&&(j=_),1==e&&_&&(j={caretPos:y});if(_)break;if(a.resetMaskSet.call(c),g=o.getTest.call(c,b),d.validPositions=u.extend(!0,[],O),d.tests=u.extend(!0,{},M),!d.excludes[b]){j=s.call(c,e,t,n,i,b-1,l);break}if(null!=g.alternation){var D=(0,o.getDecisionTaker)(g);if(-1!==d.excludes[b].indexOf(D+":"+g.alternation)){j=s.call(c,e,t,n,i,b-1,l);break}for(d.excludes[b].push(D+":"+g.alternation),y=b;y<a.getLastValidPosition.call(c,void 0,!0)+1;y++)d.validPositions.splice(b)}else delete d.excludes[b]}}return j&&!1===p.keepStatic||delete d.excludes[b],j}function l(e,t,n){var i=this.opts,a=this.maskset;switch(i.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var o=a.validPositions[n-1];e=0===n||o&&o.input===String.fromCharCode(r.keyCode.Space)?e.toUpperCase():e.toLowerCase();break;default:if("function"==typeof i.casing){var s=Array.prototype.slice.call(arguments);s.push(a.validPositions),e=i.casing.apply(this,s)}}return e}function c(e){var t=this,n=this.opts,i=this.maskset;if("function"==typeof n.isComplete)return n.isComplete(e,n);if("*"!==n.repeat){var r=!1,s=a.determineLastRequiredPosition.call(t,!0),l=s.l;if(void 0===s.def||s.def.newBlockMarker||s.def.optionality||s.def.optionalQuantifier){r=!0;for(var c=0;c<=l;c++){var u=o.getTestTemplate.call(t,c).match;if(!0!==u.static&&void 0===i.validPositions[c]&&(!1===u.optionality||void 0===u.optionality||u.optionality&&0==u.newBlockMarker)&&(!1===u.optionalQuantifier||void 0===u.optionalQuantifier)||!0===u.static&&""!=u.def&&e[c]!==o.getPlaceholder.call(t,c,u)){r=!1;break}}}return r}}function u(e){var t=this.opts.insertMode?0:1;return this.isRTL?e.begin-e.end>t:e.end-e.begin>t}function f(e,t,n,i,r,p,v){var g=this,y=this.dependencyLib,k=this.opts,b=g.maskset;n=!0===n;var x=e;function P(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return g.isRTL?e.pos-t.pos:t.pos-e.pos})).forEach((function(e){m.call(g,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return g.isRTL?t.pos-e.pos:e.pos-t.pos})).forEach((function(e){""!==e.c&&f.call(g,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:i)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;d.call(g,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(x=e.rewritePosition,e=!0)}return e}function S(t,n,r){var s=!1;return o.getTests.call(g,t).every((function(c,f){var p=c.match;if(a.getBuffer.call(g,!0),!1!==(s=(!p.jit||void 0!==b.validPositions[a.seekPrevious.call(g,t)])&&(null!=p.fn?p.fn.test(n,b,t,r,k,u.call(g,e)):(n===p.def||n===k.skipOptionalPartCharacter)&&""!==p.def&&{c:o.getPlaceholder.call(g,t,p,!0)||p.def,pos:t}))){var d=void 0!==s.c?s.c:n,h=t;return d=d===k.skipOptionalPartCharacter&&!0===p.static?o.getPlaceholder.call(g,t,p,!0)||p.def:d,!0!==(s=P(s))&&void 0!==s.pos&&s.pos!==t&&(h=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c?!1:(!1===m.call(g,e,y.extend({},c,{input:l.call(g,d,p,h)}),i,h)&&(s=!1),!1)}return!0})),s}void 0!==e.begin&&(x=g.isRTL?e.end:e.begin);var w=!0,O=y.extend(!0,[],b.validPositions);if(!1===k.keepStatic&&void 0!==b.excludes[x]&&!0!==r&&!0!==i)for(var M=x;M<(g.isRTL?e.begin:e.end);M++)void 0!==b.excludes[M]&&(b.excludes[M]=void 0,delete b.tests[M]);if("function"==typeof k.preValidation&&!0!==i&&!0!==p&&(w=P(w=k.preValidation.call(g,a.getBuffer.call(g),x,t,u.call(g,e),k,b,e,n||r))),!0===w){if(w=S(x,t,n),(!n||!0===i)&&!1===w&&!0!==p){var _=b.validPositions[x];if(!_||!0!==_.match.static||_.match.def!==t&&t!==k.skipOptionalPartCharacter){if(k.insertMode||void 0===b.validPositions[a.seekNext.call(g,x)]||e.end>x){var j=!1;if(b.jitOffset[x]&&void 0===b.validPositions[a.seekNext.call(g,x)]&&!1!==(w=f.call(g,x+b.jitOffset[x],t,!0,!0))&&(!0!==r&&(w.caret=x),j=!0),e.end>x&&(b.validPositions[x]=void 0),!j&&!a.isMask.call(g,x,k.keepStatic&&0===x))for(var E=x+1,T=a.seekNext.call(g,x,!1,0!==x);E<=T;E++)if(!1!==(w=S(E,t,n))){w=h.call(g,x,void 0!==w.pos?w.pos:E)||w,x=E;break}}}else w={caret:a.seekNext.call(g,x)}}if(g.hasAlternator&&!0!==r&&!n&&(r=!0,!1===w&&k.keepStatic&&(c.call(g,a.getBuffer.call(g))||0===x)?w=s.call(g,x,t,n,i,void 0,e):(u.call(g,e)&&b.tests[x]&&b.tests[x].length>1&&k.keepStatic||!0===w&&!0!==k.numericInput&&b.tests[x]&&b.tests[x].length>1&&a.getLastValidPosition.call(g,void 0,!0)>x)&&(w=s.call(g,!0)||w)),!0===w&&(w={pos:x}),"function"==typeof k.postValidation&&!0!==i&&!0!==p){var A=k.postValidation.call(g,a.getBuffer.call(g,!0),void 0!==e.begin?g.isRTL?e.end:e.begin:e,t,w,k,b,n,v,r);void 0!==A&&(w=!0===A?w:A)}}w&&void 0===w.pos&&(w.pos=x),!1===w||!0===p?(a.resetMaskSet.call(g,!0),b.validPositions=y.extend(!0,[],O)):h.call(g,void 0,x,!0);var D=P(w);void 0!==g.maxLength&&(a.getBuffer.call(g).length>g.maxLength&&!i&&(a.resetMaskSet.call(g,!0),b.validPositions=y.extend(!0,[],O),D=!1));return D}function p(e,t,n){for(var i=this.maskset,r=!1,a=o.getTests.call(this,e),s=0;s<a.length;s++){if(a[s].match&&(a[s].match.nativeDef===t.match[n.shiftPositions?"def":"nativeDef"]&&(!n.shiftPositions||!t.match.static)||a[s].match.nativeDef===t.match.nativeDef||n.regex&&!a[s].match.static&&a[s].match.fn.test(t.input,i,e,!1,n))){r=!0;break}if(a[s].match&&a[s].match.def===t.match.nativeDef){r=void 0;break}}return!1===r&&void 0!==i.jitOffset[e]&&(r=p.call(this,e+i.jitOffset[e],t,n)),r}function d(e,t,n){var r,o,s=this,l=this.maskset,c=this.opts,u=this.dependencyLib,f=c.skipOptionalPartCharacter,p=s.isRTL?n.slice().reverse():n;if(c.skipOptionalPartCharacter="",!0===e)a.resetMaskSet.call(s,!1),e=0,t=n.length,o=a.determineNewCaretPosition.call(s,{begin:0,end:0},!1).begin;else{for(r=e;r<t;r++)delete l.validPositions[r];o=e}var d=new u.Event("keypress");for(r=e;r<t;r++){d.key=p[r].toString(),s.ignorable=!1;var h=i.EventHandlers.keypressEvent.call(s,d,!0,!1,!1,o);!1!==h&&void 0!==h&&(o=h.forwardPosition)}c.skipOptionalPartCharacter=f}function h(e,t,n){var i=this,r=this.maskset,s=this.dependencyLib;if(void 0===e)for(e=t-1;e>0&&!r.validPositions[e];e--);for(var l=e;l<t;l++){if(void 0===r.validPositions[l]&&!a.isMask.call(i,l,!1))if(0==l?o.getTest.call(i,l):r.validPositions[l-1]){var c=o.getTests.call(i,l).slice();""===c[c.length-1].match.def&&c.pop();var u,p=o.determineTestTemplate.call(i,l,c);if(p&&(!0!==p.match.jit||"master"===p.match.newBlockMarker&&(u=r.validPositions[l+1])&&!0===u.match.optionalQuantifier)&&((p=s.extend({},p,{input:o.getPlaceholder.call(i,l,p.match,!0)||p.match.def})).generatedInput=!0,m.call(i,l,p,!0),!0!==n)){var d=r.validPositions[t].input;return r.validPositions[t]=void 0,f.call(i,t,d,!0,!0)}}}}function m(e,t,n,i){var r=this,s=this.maskset,l=this.opts,c=this.dependencyLib;function d(e,t,n){var i=t[e];if(void 0!==i&&!0===i.match.static&&!0!==i.match.optionality&&(void 0===t[0]||void 0===t[0].alternation)){var r=n.begin<=e-1?t[e-1]&&!0===t[e-1].match.static&&t[e-1]:t[e-1],a=n.end>e+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return r&&a}return!1}var h=0,m=void 0!==e.begin?e.begin:e,v=void 0!==e.end?e.end:e,g=!0;if(e.begin>e.end&&(m=e.end,v=e.begin),i=void 0!==i?i:m,void 0===n&&(m!==v||l.insertMode&&void 0!==s.validPositions[i]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var y,k=c.extend(!0,[],s.validPositions),b=a.getLastValidPosition.call(r,void 0,!0);s.p=m;var x=u.call(r,e)?m:i;for(y=b;y>=x;y--)s.validPositions.splice(y,1),void 0===t&&delete s.tests[y+1];var P,S,w=i,O=w;for(t&&(s.validPositions[i]=c.extend(!0,{},t),O++,w++),null==k[v]&&s.jitOffset[v]&&(v+=s.jitOffset[v]+1),y=t?v:v-1;y<=b;y++){if(void 0!==(P=k[y])&&!0!==P.generatedInput&&(y>=v||y>=m&&d(y,k,{begin:m,end:v}))){for(;""!==o.getTest.call(r,O).match.def;){if(!1!==(S=p.call(r,O,P,l))||"+"===P.match.def){"+"===P.match.def&&a.getBuffer.call(r,!0);var M=f.call(r,O,P.input,"+"!==P.match.def,!0);if(g=!1!==M,w=(M.pos||O)+1,!g&&S)break}else g=!1;if(g){void 0===t&&P.match.static&&y===e.begin&&h++;break}if(!g&&a.getBuffer.call(r),O>s.maskLength)break;O++}""==o.getTest.call(r,O).match.def&&(g=!1),O=w}if(!g)break}if(!g)return s.validPositions=c.extend(!0,[],k),a.resetMaskSet.call(r,!0),!1}else t&&o.getTest.call(r,i).match.cd===t.match.cd&&(s.validPositions[i]=c.extend(!0,{},t));return a.resetMaskSet.call(r,!0),h}},7960:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(8145),n(1669),n(1960),n(493),n(472),n(4829),n(4203),n(546),n(2952);var i,r=(i=n(3978))&&i.__esModule?i:{default:i};t.default=r.default},8145:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===e("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype})},8826:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(4424))&&i.__esModule?i:{default:i};if(void 0===r.default)throw new Error("jQuery not loaded!");t.default=r.default},9439:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}},9472:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={9:{validator:"\\p{N}",definitionSymbol:"*"},a:{validator:"\\p{L}",definitionSymbol:"*"},"*":{validator:"[\\p{L}\\p{N}]"}}}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,i),a.exports}var r={};return function(){var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,n=(t=i(7960))&&t.__esModule?t:{default:t};i(6664);e.default=n.default}(),r}()})); |