|
- /*!
- * dist/jquery.inputmask
- * https://github.com/RobinHerbots/Inputmask
- * Copyright (c) 2010 - 2021 Robin Herbots
- * Licensed under the MIT license
- * Version: 5.0.7
- */
- !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 i = "object" == typeof exports ? t(require("jquery")) : t(e.jQuery);
- for (var a in i) ("object" == typeof exports ? exports : e)[a] = i[a];
- }
- }(self, (function(e) {
- return function() {
- "use strict";
- var t = {
- 3046: function(e, t, i) {
- var a;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0, i(3851), i(219), i(207), i(5296);
- var n = ((a = i(2394)) && a.__esModule ? a : {
- default: a
- }).default;
- t.default = n;
- },
- 8741: function(e, t) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var i = !("undefined" == typeof window || !window.document || !window.document.createElement);
- t.default = i;
- },
- 3976: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var a, n = (a = i(5581)) && a.__esModule ? a : {
- default: a
- };
- var r = {
- _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,
- 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" ],
- ignorables: [ n.default.BACKSPACE, n.default.TAB, n.default["PAUSE/BREAK"], n.default.ESCAPE, n.default.PAGE_UP, n.default.PAGE_DOWN, n.default.END, n.default.HOME, n.default.LEFT, n.default.UP, n.default.RIGHT, n.default.DOWN, n.default.INSERT, n.default.DELETE, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
- 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: {}
- };
- t.default = r;
- },
- 7392: function(e, t) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- t.default = {
- 9: {
- validator: "[0-9\uff10-\uff19]",
- definitionSymbol: "*"
- },
- a: {
- validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
- definitionSymbol: "*"
- },
- "*": {
- validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
- }
- };
- },
- 3287: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var a, n = (a = i(2047)) && a.__esModule ? a : {
- default: a
- };
- if (void 0 === n.default) throw "jQuery not loaded!";
- var r = n.default;
- t.default = r;
- },
- 9845: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.ua = t.mobile = t.iphone = t.iemobile = t.ie = void 0;
- var a, n = (a = i(9380)) && a.__esModule ? a : {
- default: a
- };
- var r = n.default.navigator && n.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = "ontouchstart" in n.default, l = /iemobile/i.test(r), u = /iphone/i.test(r) && !l;
- t.iphone = u, t.iemobile = l, t.mobile = s, t.ie = o, t.ua = r;
- },
- 7184: function(e, t) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = function(e) {
- return e.replace(i, "\\$1");
- };
- var i = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
- },
- 6030: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.EventHandlers = void 0;
- var a, n = i(8711), r = (a = i(5581)) && a.__esModule ? a : {
- default: a
- }, o = i(9845), s = i(7215), l = i(7760), u = i(4713);
- function c(e, t) {
- var i = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
- if (!i) {
- if (Array.isArray(e) || (i = function(e, t) {
- if (!e) return;
- if ("string" == typeof e) return f(e, t);
- var i = Object.prototype.toString.call(e).slice(8, -1);
- "Object" === i && e.constructor && (i = e.constructor.name);
- if ("Map" === i || "Set" === i) return Array.from(e);
- if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return f(e, t);
- }(e)) || t && e && "number" == typeof e.length) {
- i && (e = i);
- var a = 0, n = function() {};
- return {
- s: n,
- n: function() {
- return a >= e.length ? {
- done: !0
- } : {
- done: !1,
- value: e[a++]
- };
- },
- e: function(e) {
- throw e;
- },
- f: n
- };
- }
- 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 r, o = !0, s = !1;
- return {
- s: function() {
- i = i.call(e);
- },
- n: function() {
- var e = i.next();
- return o = e.done, e;
- },
- e: function(e) {
- s = !0, r = e;
- },
- f: function() {
- try {
- o || null == i.return || i.return();
- } finally {
- if (s) throw r;
- }
- }
- };
- }
- function f(e, t) {
- (null == t || t > e.length) && (t = e.length);
- for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
- return a;
- }
- var d = {
- keydownEvent: function(e) {
- var t = this.inputmask, i = t.opts, a = t.dependencyLib, c = t.maskset, f = this, d = a(f), p = e.keyCode, h = n.caret.call(t, f), m = i.onKeyDown.call(this, e, n.getBuffer.call(t), h, i);
- if (void 0 !== m) return m;
- if (p === r.default.BACKSPACE || p === r.default.DELETE || o.iphone && p === r.default.BACKSPACE_SAFARI || e.ctrlKey && p === r.default.X && !("oncut" in f)) e.preventDefault(),
- s.handleRemove.call(t, f, p, h), (0, l.writeBuffer)(f, n.getBuffer.call(t, !0), c.p, e, f.inputmask._valueGet() !== n.getBuffer.call(t).join("")); else if (p === r.default.END || p === r.default.PAGE_DOWN) {
- e.preventDefault();
- var v = n.seekNext.call(t, n.getLastValidPosition.call(t));
- n.caret.call(t, f, e.shiftKey ? h.begin : v, v, !0);
- } else p === r.default.HOME && !e.shiftKey || p === r.default.PAGE_UP ? (e.preventDefault(),
- n.caret.call(t, f, 0, e.shiftKey ? h.begin : 0, !0)) : i.undoOnEscape && p === r.default.ESCAPE && !0 !== e.altKey ? ((0,
- l.checkVal)(f, !0, !1, t.undoValue.split("")), d.trigger("click")) : p !== r.default.INSERT || e.shiftKey || e.ctrlKey || void 0 !== t.userOptions.insertMode ? !0 === i.tabThrough && p === r.default.TAB ? !0 === e.shiftKey ? (h.end = n.seekPrevious.call(t, h.end, !0),
- !0 === u.getTest.call(t, h.end - 1).match.static && h.end--, h.begin = n.seekPrevious.call(t, h.end, !0),
- h.begin >= 0 && h.end > 0 && (e.preventDefault(), n.caret.call(t, f, h.begin, h.end))) : (h.begin = n.seekNext.call(t, h.begin, !0),
- h.end = n.seekNext.call(t, h.begin, !0), h.end < c.maskLength && h.end--, h.begin <= c.maskLength && (e.preventDefault(),
- n.caret.call(t, f, h.begin, h.end))) : e.shiftKey || i.insertModeVisual && !1 === i.insertMode && (p === r.default.RIGHT ? setTimeout((function() {
- var e = n.caret.call(t, f);
- n.caret.call(t, f, e.begin);
- }), 0) : p === r.default.LEFT && setTimeout((function() {
- var e = n.translatePosition.call(t, f.inputmask.caretPos.begin);
- n.translatePosition.call(t, f.inputmask.caretPos.end);
- t.isRTL ? n.caret.call(t, f, e + (e === c.maskLength ? 0 : 1)) : n.caret.call(t, f, e - (0 === e ? 0 : 1));
- }), 0)) : s.isSelection.call(t, h) ? i.insertMode = !i.insertMode : (i.insertMode = !i.insertMode,
- n.caret.call(t, f, h.begin, h.begin));
- t.ignorable = i.ignorables.includes(p);
- },
- keypressEvent: function(e, t, i, a, o) {
- var u = this.inputmask || this, c = u.opts, f = u.dependencyLib, d = u.maskset, p = u.el, h = f(p), m = e.keyCode;
- if (!(!0 === t || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || u.ignorable)) return m === r.default.ENTER && u.undoValue !== u._valueGet(!0) && (u.undoValue = u._valueGet(!0),
- setTimeout((function() {
- h.trigger("change");
- }), 0)), u.skipInputEvent = !0, !0;
- if (m) {
- 44 !== m && 46 !== m || 3 !== e.location || "" === c.radixPoint || (m = c.radixPoint.charCodeAt(0));
- var v, g = t ? {
- begin: o,
- end: o
- } : n.caret.call(u, p), k = String.fromCharCode(m);
- k = c.substitutes[k] || k, d.writeOutBuffer = !0;
- var y = s.isValid.call(u, g, k, a, void 0, void 0, void 0, t);
- if (!1 !== y && (n.resetMaskSet.call(u, !0), v = void 0 !== y.caret ? y.caret : n.seekNext.call(u, y.pos.begin ? y.pos.begin : y.pos),
- d.p = v), v = c.numericInput && void 0 === y.caret ? n.seekPrevious.call(u, v) : v,
- !1 !== i && (setTimeout((function() {
- c.onKeyValidation.call(p, m, y);
- }), 0), d.writeOutBuffer && !1 !== y)) {
- var b = n.getBuffer.call(u);
- (0, l.writeBuffer)(p, b, v, e, !0 !== t);
- }
- if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = v), y;
- }
- },
- keyupEvent: function(e) {
- var t = this.inputmask;
- !t.isComposing || e.keyCode !== r.default.KEY_229 && e.keyCode !== r.default.ENTER || t.$el.trigger("input");
- },
- pasteEvent: function(e) {
- var t, i = this.inputmask, a = i.opts, r = i._valueGet(!0), o = n.caret.call(i, this);
- i.isRTL && (t = o.end, o.end = n.translatePosition.call(i, o.begin), o.begin = n.translatePosition.call(i, t));
- var s = r.substr(0, o.begin), u = r.substr(o.end, r.length);
- if (s == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (s = ""),
- u == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""),
- window.clipboardData && window.clipboardData.getData) r = s + window.clipboardData.getData("Text") + u; else {
- if (!e.clipboardData || !e.clipboardData.getData) return !0;
- r = s + e.clipboardData.getData("text/plain") + u;
- }
- var f = r;
- if (i.isRTL) {
- f = f.split("");
- var d, p = c(n.getBufferTemplate.call(i));
- try {
- for (p.s(); !(d = p.n()).done; ) {
- var h = d.value;
- f[0] === h && f.shift();
- }
- } catch (e) {
- p.e(e);
- } finally {
- p.f();
- }
- f = f.join("");
- }
- if ("function" == typeof a.onBeforePaste) {
- if (!1 === (f = a.onBeforePaste.call(i, f, a))) return !1;
- f || (f = r);
- }
- (0, l.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault();
- },
- inputFallBackEvent: function(e) {
- var t = this.inputmask, i = t.opts, a = t.dependencyLib;
- var s = this, c = s.inputmask._valueGet(!0), f = (t.isRTL ? n.getBuffer.call(t).slice().reverse() : n.getBuffer.call(t)).join(""), p = n.caret.call(t, s, void 0, void 0, !0);
- if (f !== c) {
- c = function(e, i, a) {
- if (o.iemobile) {
- var r = i.replace(n.getBuffer.call(t).join(""), "");
- if (1 === r.length) {
- var s = i.split("");
- s.splice(a.begin, 0, r), i = s.join("");
- }
- }
- return i;
- }(0, c, p);
- var h = function(e, a, r) {
- for (var o, s, l, c = e.substr(0, r.begin).split(""), f = e.substr(r.begin).split(""), d = a.substr(0, r.begin).split(""), p = a.substr(r.begin).split(""), h = c.length >= d.length ? c.length : d.length, m = f.length >= p.length ? f.length : p.length, v = "", g = [], k = "~"; c.length < h; ) c.push(k);
- for (;d.length < h; ) d.push(k);
- for (;f.length < m; ) f.unshift(k);
- for (;p.length < m; ) p.unshift(k);
- var y = c.concat(f), b = d.concat(p);
- for (s = 0, o = y.length; s < o; s++) switch (l = u.getPlaceholder.call(t, n.translatePosition.call(t, s)),
- v) {
- case "insertText":
- b[s - 1] === y[s] && r.begin == y.length - 1 && g.push(y[s]), s = o;
- break;
-
- case "insertReplacementText":
- case "deleteContentBackward":
- y[s] === k ? r.end++ : s = o;
- break;
-
- default:
- y[s] !== b[s] && (y[s + 1] !== k && y[s + 1] !== l && void 0 !== y[s + 1] || (b[s] !== l || b[s + 1] !== k) && b[s] !== k ? b[s + 1] === k && b[s] === y[s + 1] ? (v = "insertText",
- g.push(y[s]), r.begin--, r.end--) : y[s] !== l && y[s] !== k && (y[s + 1] === k || b[s] !== y[s] && b[s + 1] === y[s + 1]) ? (v = "insertReplacementText",
- g.push(y[s]), r.begin--) : y[s] === k ? (v = "deleteContentBackward", (n.isMask.call(t, n.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (v = "insertText",
- g.push(y[s]), r.begin--, r.end--));
- }
- return {
- action: v,
- data: g,
- caret: r
- };
- }(c, f, p);
- switch ((s.inputmask.shadowRoot || s.ownerDocument).activeElement !== s && s.focus(),
- (0, l.writeBuffer)(s, n.getBuffer.call(t)), n.caret.call(t, s, p.begin, p.end, !0),
- h.action) {
- case "insertText":
- case "insertReplacementText":
- h.data.forEach((function(e, i) {
- var n = new a.Event("keypress");
- n.keyCode = e.charCodeAt(0), t.ignorable = !1, d.keypressEvent.call(s, n);
- })), setTimeout((function() {
- t.$el.trigger("keyup");
- }), 0);
- break;
-
- case "deleteContentBackward":
- var m = new a.Event("keydown");
- m.keyCode = r.default.BACKSPACE, d.keydownEvent.call(s, m);
- break;
-
- default:
- (0, l.applyInputValue)(s, c);
- }
- e.preventDefault();
- }
- },
- compositionendEvent: function(e) {
- var t = this.inputmask;
- t.isComposing = !1, t.$el.trigger("input");
- },
- setValueEvent: function(e) {
- var t = this.inputmask, i = this, a = e && e.detail ? e.detail[0] : arguments[1];
- void 0 === a && (a = i.inputmask._valueGet(!0)), (0, l.applyInputValue)(i, a), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && n.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]);
- },
- focusEvent: function(e) {
- var t = this.inputmask, i = t.opts, a = this, r = a.inputmask._valueGet();
- i.showMaskOnFocus && r !== n.getBuffer.call(t).join("") && (0, l.writeBuffer)(a, n.getBuffer.call(t), n.seekNext.call(t, n.getLastValidPosition.call(t))),
- !0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || s.isComplete.call(t, n.getBuffer.call(t)) && -1 !== n.getLastValidPosition.call(t) || d.clickEvent.apply(a, [ e, !0 ]),
- t.undoValue = t._valueGet(!0);
- },
- invalidEvent: function(e) {
- this.inputmask.validationEvent = !0;
- },
- mouseleaveEvent: function() {
- var e = this.inputmask, t = e.opts, i = this;
- e.mouseEnter = !1, t.clearMaskOnLostFocus && (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i && (0,
- l.HandleNativePlaceholder)(i, e.originalPlaceholder);
- },
- clickEvent: function(e, t) {
- var i = this.inputmask, a = this;
- if ((a.inputmask.shadowRoot || a.ownerDocument).activeElement === a) {
- var r = n.determineNewCaretPosition.call(i, n.caret.call(i, a), t);
- void 0 !== r && n.caret.call(i, a, r);
- }
- },
- cutEvent: function(e) {
- var t = this.inputmask, i = t.maskset, a = this, o = n.caret.call(t, a), u = t.isRTL ? n.getBuffer.call(t).slice(o.end, o.begin) : n.getBuffer.call(t).slice(o.begin, o.end), c = t.isRTL ? u.reverse().join("") : u.join("");
- window.navigator.clipboard ? window.navigator.clipboard.writeText(c) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", c),
- s.handleRemove.call(t, a, r.default.DELETE, o), (0, l.writeBuffer)(a, n.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0));
- },
- blurEvent: function(e) {
- var t = this.inputmask, i = t.opts, a = (0, t.dependencyLib)(this), r = this;
- if (r.inputmask) {
- (0, l.HandleNativePlaceholder)(r, t.originalPlaceholder);
- var o = r.inputmask._valueGet(), u = n.getBuffer.call(t).slice();
- "" !== o && (i.clearMaskOnLostFocus && (-1 === n.getLastValidPosition.call(t) && o === n.getBufferTemplate.call(t).join("") ? u = [] : l.clearOptionalTail.call(t, u)),
- !1 === s.isComplete.call(t, u) && (setTimeout((function() {
- a.trigger("incomplete");
- }), 0), i.clearIncomplete && (n.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : n.getBufferTemplate.call(t).slice())),
- (0, l.writeBuffer)(r, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0),
- a.trigger("change"));
- }
- },
- mouseenterEvent: function() {
- var e = this.inputmask, t = e.opts, i = this;
- if (e.mouseEnter = !0, (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i) {
- var a = (e.isRTL ? n.getBufferTemplate.call(e).slice().reverse() : n.getBufferTemplate.call(e)).join("");
- e.placeholder !== a && i.placeholder !== e.originalPlaceholder && (e.originalPlaceholder = i.placeholder),
- t.showMaskOnHover && (0, l.HandleNativePlaceholder)(i, a);
- }
- },
- submitEvent: function() {
- var e = this.inputmask, t = e.opts;
- e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === n.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === n.getBufferTemplate.call(e).join("") && e._valueSet(""),
- t.clearIncomplete && !1 === s.isComplete.call(e, n.getBuffer.call(e)) && e._valueSet(""),
- t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
- (0, l.writeBuffer)(e.el, n.getBuffer.call(e));
- }), 0));
- },
- resetEvent: function() {
- var e = this.inputmask;
- e.refreshValue = !0, setTimeout((function() {
- (0, l.applyInputValue)(e.el, e._valueGet(!0));
- }), 0);
- }
- };
- t.EventHandlers = d;
- },
- 9716: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.EventRuler = void 0;
- var a = s(i(2394)), n = s(i(5581)), r = i(8711), o = i(7760);
- function s(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- var l = {
- on: function(e, t, i) {
- var s = e.inputmask.dependencyLib, l = function(t) {
- t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
- var l, u = this, c = u.inputmask, f = c ? c.opts : void 0;
- if (void 0 === c && "FORM" !== this.nodeName) {
- var d = s.data(u, "_inputmask_opts");
- s(u).off(), d && new a.default(d).mask(u);
- } else {
- if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(u.disabled || u.readOnly && !("keydown" === t.type && t.ctrlKey && 67 === t.keyCode || !1 === f.tabThrough && t.keyCode === n.default.TAB))) {
- switch (t.type) {
- case "input":
- if (!0 === c.skipInputEvent || t.inputType && "insertCompositionText" === t.inputType) return c.skipInputEvent = !1,
- t.preventDefault();
- break;
-
- case "keydown":
- c.skipKeyPressEvent = !1, c.skipInputEvent = c.isComposing = t.keyCode === n.default.KEY_229;
- break;
-
- case "keyup":
- case "compositionend":
- c.isComposing && (c.skipInputEvent = !1);
- break;
-
- case "keypress":
- if (!0 === c.skipKeyPressEvent) return t.preventDefault();
- c.skipKeyPressEvent = !0;
- break;
-
- case "click":
- case "focus":
- return c.validationEvent ? (c.validationEvent = !1, e.blur(), (0, o.HandleNativePlaceholder)(e, (c.isRTL ? r.getBufferTemplate.call(c).slice().reverse() : r.getBufferTemplate.call(c)).join("")),
- setTimeout((function() {
- e.focus();
- }), f.validationEventTimeOut), !1) : (l = arguments, setTimeout((function() {
- e.inputmask && i.apply(u, l);
- }), 0), !1);
- }
- var p = i.apply(u, arguments);
- return !1 === p && (t.preventDefault(), t.stopPropagation()), p;
- }
- t.preventDefault();
- }
- };
- [ "submit", "reset" ].includes(t) ? (l = l.bind(e), null !== e.form && s(e.form).on(t, l)) : s(e).on(t, l),
- e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(l);
- },
- off: function(e, t) {
- if (e.inputmask && e.inputmask.events) {
- var i = e.inputmask.dependencyLib, a = e.inputmask.events;
- for (var n in t && ((a = [])[t] = e.inputmask.events[t]), a) {
- for (var r = a[n]; r.length > 0; ) {
- var o = r.pop();
- [ "submit", "reset" ].includes(n) ? null !== e.form && i(e.form).off(n, o) : i(e).off(n, o);
- }
- delete e.inputmask.events[n];
- }
- }
- }
- };
- t.EventRuler = l;
- },
- 219: function(e, t, i) {
- var a = d(i(2394)), n = d(i(5581)), r = d(i(7184)), o = i(8711), s = i(4713);
- 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 u(e, t) {
- return function(e) {
- if (Array.isArray(e)) return e;
- }(e) || function(e, t) {
- var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
- if (null == i) return;
- var a, n, r = [], o = !0, s = !1;
- try {
- for (i = i.call(e); !(o = (a = i.next()).done) && (r.push(a.value), !t || r.length !== t); o = !0) ;
- } catch (e) {
- s = !0, n = e;
- } finally {
- try {
- o || null == i.return || i.return();
- } finally {
- if (s) throw n;
- }
- }
- return r;
- }(e, t) || function(e, t) {
- if (!e) return;
- if ("string" == typeof e) return c(e, t);
- var i = Object.prototype.toString.call(e).slice(8, -1);
- "Object" === i && e.constructor && (i = e.constructor.name);
- if ("Map" === i || "Set" === i) return Array.from(e);
- if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t);
- }(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 c(e, t) {
- (null == t || t > e.length) && (t = e.length);
- for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
- return a;
- }
- function f(e, t) {
- for (var i = 0; i < t.length; i++) {
- var a = t[i];
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
- Object.defineProperty(e, a.key, a);
- }
- }
- function d(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- var p = a.default.dependencyLib, h = function() {
- function e(t, i, a) {
- !function(e, t) {
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
- }(this, e), this.mask = t, this.format = i, this.opts = a, this._date = new Date(1, 0, 1),
- this.initDateObject(t, this.opts);
- }
- var t, i, a;
- return t = e, (i = [ {
- key: "date",
- get: function() {
- return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)),
- this._date;
- }
- }, {
- key: "initDateObject",
- value: function(e, t) {
- var i;
- for (P(t).lastIndex = 0; i = P(t).exec(this.format); ) {
- var a = new RegExp("\\d+$").exec(i[0]), n = a ? i[0][0] + "x" : i[0], r = void 0;
- if (void 0 !== e) {
- if (a) {
- var o = P(t).lastIndex, s = O(i.index, t);
- P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0]));
- } else r = e.slice(0, n.length);
- e = e.slice(r.length);
- }
- Object.prototype.hasOwnProperty.call(g, n) && this.setValue(this, r, n, g[n][2], g[n][1]);
- }
- }
- }, {
- key: "setValue",
- value: function(e, t, i, a, n) {
- if (void 0 !== t && (e[a] = "ampm" === a ? t : t.replace(/[^0-9]/g, "0"), e["raw" + a] = t.replace(/\s/g, "_")),
- void 0 !== n) {
- var r = e[a];
- ("day" === a && 29 === parseInt(r) || "month" === a && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
- "day" === a && (v = !0, 0 === parseInt(r) && (r = 1)), "month" === a && (v = !0),
- "year" === a && (v = !0, r.length < 4 && (r = w(r, 4, !0))), "" === r || isNaN(r) || n.call(e._date, r),
- "ampm" === a && n.call(e._date, r);
- }
- }
- }, {
- key: "reset",
- value: function() {
- this._date = new Date(1, 0, 1);
- }
- }, {
- key: "reInit",
- value: function() {
- this._date = void 0, this.date;
- }
- } ]) && f(t.prototype, i), a && f(t, a), Object.defineProperty(t, "prototype", {
- writable: !1
- }), e;
- }(), m = (new Date).getFullYear(), v = !1, g = {
- 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 w(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 w(Date.prototype.getMonth.call(this) + 1, 2);
- } ],
- mmm: [ "" ],
- mmmm: [ "" ],
- yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
- return w(Date.prototype.getFullYear.call(this), 2);
- } ],
- yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
- return w(Date.prototype.getFullYear.call(this), 4);
- } ],
- h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
- hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
- return w(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 w(Date.prototype.getHours.call(this), 2);
- } ],
- Hx: [ function(e) {
- return "[0-9]{".concat(e, "}");
- }, Date.prototype.setHours, "hours", function(e) {
- return function() {
- return w(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 w(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 w(Date.prototype.getSeconds.call(this), 2);
- } ],
- l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
- return w(Date.prototype.getMilliseconds.call(this), 3);
- } ],
- L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
- return w(Date.prototype.getMilliseconds.call(this), 2);
- } ],
- t: [ "[ap]", y, "ampm", b, 1 ],
- tt: [ "[ap]m", y, "ampm", b, 2 ],
- T: [ "[AP]", y, "ampm", b, 1 ],
- TT: [ "[AP]M", y, "ampm", b, 2 ],
- Z: [ ".*", void 0, "Z", function() {
- var e = this.toString().match(/\((.+)\)/)[1];
- e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
- return u(e, 1)[0];
- })).join(""));
- return e;
- } ],
- o: [ "" ],
- S: [ "" ]
- }, k = {
- isoDate: "yyyy-mm-dd",
- isoTime: "HH:MM:ss",
- isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
- isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
- };
- function y(e) {
- var t = this.getHours();
- e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
- }
- function b() {
- var e = this.getHours();
- return (e = e || 12) >= 12 ? "PM" : "AM";
- }
- function x(e) {
- var t = new RegExp("\\d+$").exec(e[0]);
- if (t && void 0 !== t[0]) {
- var i = g[e[0][0] + "x"].slice("");
- return i[0] = i[0](t[0]), i[3] = i[3](t[0]), i;
- }
- if (g[e[0]]) return g[e[0]];
- }
- function P(e) {
- if (!e.tokenizer) {
- var t = [], i = [];
- for (var a in g) if (/\.*x$/.test(a)) {
- var n = a[0] + "\\d+";
- -1 === i.indexOf(n) && i.push(n);
- } else -1 === t.indexOf(a[0]) && t.push(a[0]);
- e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.",
- e.tokenizer = new RegExp(e.tokenizer, "g");
- }
- return e.tokenizer;
- }
- function E(e, t, i) {
- if (!v) 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 a = O(t.pos, i);
- if ("yyyy" === a.targetMatch[0] && t.pos - a.targetMatchIndex == 2) return t.remove = t.pos + 1,
- t;
- } else if ("02" == e.month && "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 = o.seekNext.call(this, t.pos + 1), t;
- return !1;
- }
- function S(e, t, i, a) {
- var n, o, s = "";
- for (P(i).lastIndex = 0; n = P(i).exec(e); ) {
- if (void 0 === t) if (o = x(n)) s += "(" + o[0] + ")"; else switch (n[0]) {
- case "[":
- s += "(";
- break;
-
- case "]":
- s += ")?";
- break;
-
- default:
- s += (0, r.default)(n[0]);
- } else if (o = x(n)) if (!0 !== a && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += n[0]; else s += n[0];
- }
- return s;
- }
- function w(e, t, i) {
- for (e = String(e), t = t || 2; e.length < t; ) e = i ? e + "0" : "0" + e;
- return e;
- }
- function _(e, t, i) {
- return "string" == typeof e ? new h(e, t, i) : e && "object" === l(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
- }
- function M(e, t) {
- return S(t.inputFormat, {
- date: e
- }, t);
- }
- function O(e, t) {
- var i, a, n = 0, r = 0;
- for (P(t).lastIndex = 0; a = P(t).exec(t.inputFormat); ) {
- var o = new RegExp("\\d+$").exec(a[0]);
- if ((n += r = o ? parseInt(o[0]) : a[0].length) >= e + 1) {
- i = a, a = P(t).exec(t.inputFormat);
- break;
- }
- }
- return {
- targetMatchIndex: n - r,
- nextMatch: a,
- targetMatch: i
- };
- }
- a.default.extendAliases({
- datetime: {
- mask: function(e) {
- return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = k[e.inputFormat] || e.inputFormat,
- e.displayFormat = k[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = k[e.outputFormat] || e.outputFormat || e.inputFormat,
- e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""),
- e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e),
- null;
- },
- placeholder: "",
- inputFormat: "isoDateTime",
- displayFormat: null,
- outputFormat: null,
- min: null,
- max: null,
- skipOptionalPartCharacter: "",
- i18n: {
- dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
- monthNames: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
- ordinalSuffix: [ "st", "nd", "rd", "th" ]
- },
- preValidation: function(e, t, i, a, n, r, o, s) {
- if (s) return !0;
- if (isNaN(i) && e[t] !== i) {
- var l = O(t, n);
- if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) {
- var u = g[l.targetMatch[0]][0];
- if (new RegExp(u).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, i, a, n, r, o, l) {
- var u, c;
- if (o) return !0;
- if (!1 === a && (((u = O(t + 1, n)).targetMatch && u.targetMatchIndex === t && u.targetMatch[0].length > 1 && void 0 !== g[u.targetMatch[0]] || (u = O(t + 2, n)).targetMatch && u.targetMatchIndex === t + 1 && u.targetMatch[0].length > 1 && void 0 !== g[u.targetMatch[0]]) && (c = g[u.targetMatch[0]][0]),
- void 0 !== c && (void 0 !== r.validPositions[t + 1] && new RegExp(c).test(i + "0") ? (e[t] = i,
- e[t + 1] = "0", a = {
- pos: t + 2,
- caret: t
- }) : new RegExp(c).test("0" + i) && (e[t] = "0", e[t + 1] = i, a = {
- pos: t + 2
- })), !1 === a)) return a;
- if (a.fuzzy && (e = a.buffer, t = a.pos), (u = O(t, n)).targetMatch && u.targetMatch[0] && void 0 !== g[u.targetMatch[0]]) {
- var f = g[u.targetMatch[0]];
- c = f[0];
- var d = e.slice(u.targetMatchIndex, u.targetMatchIndex + u.targetMatch[0].length);
- if (!1 === new RegExp(c).test(d.join("")) && 2 === u.targetMatch[0].length && r.validPositions[u.targetMatchIndex] && r.validPositions[u.targetMatchIndex + 1] && (r.validPositions[u.targetMatchIndex + 1].input = "0"),
- "year" == f[2]) for (var p = s.getMaskTemplate.call(this, !1, 1, void 0, !0), h = t + 1; h < e.length; h++) e[h] = p[h],
- delete r.validPositions[h];
- }
- var v = a, k = _(e.join(""), n.inputFormat, n);
- return v && k.date.getTime() == k.date.getTime() && (n.prefillYear && (v = function(e, t, i) {
- if (e.year !== e.rawyear) {
- var a = m.toString(), n = e.rawyear.replace(/[^0-9]/g, ""), r = a.slice(0, n.length), o = a.slice(n.length);
- if (2 === n.length && n === r) {
- var s = new Date(m, e.month - 1, e.day);
- e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(m),
- e.year = a, t.insert = [ {
- pos: t.pos + 1,
- c: o[0]
- }, {
- pos: t.pos + 2,
- c: o[1]
- } ]);
- }
- }
- return t;
- }(k, v, n)), v = function(e, t, i, a, n) {
- if (!t) return t;
- if (t && i.min && i.min.date.getTime() == i.min.date.getTime()) {
- var r;
- for (e.reset(), P(i).lastIndex = 0; r = P(i).exec(i.inputFormat); ) {
- var o;
- if ((o = x(r)) && o[3]) {
- for (var s = o[1], l = e[o[2]], u = i.min[o[2]], c = i.max ? i.max[o[2]] : u, f = [], d = !1, p = 0; p < u.length; p++) void 0 !== a.validPositions[p + r.index] || d ? (f[p] = l[p],
- d = d || l[p] > u[p]) : (f[p] = u[p], "year" === o[2] && l.length - 1 == p && u != c && (f = (parseInt(f.join("")) + 1).toString().split("")),
- "ampm" === o[2] && u != c && i.min.date.getTime() > e.date.getTime() && (f[p] = c[p]));
- s.call(e._date, f.join(""));
- }
- }
- t = i.min.date.getTime() <= e.date.getTime(), e.reInit();
- }
- return t && i.max && i.max.date.getTime() == i.max.date.getTime() && (t = i.max.date.getTime() >= e.date.getTime()),
- t;
- }(k, v = E.call(this, k, v, n), n, r)), void 0 !== t && v && a.pos !== t ? {
- buffer: S(n.inputFormat, k, n).split(""),
- refreshFromBuffer: {
- start: t,
- end: a.pos
- },
- pos: a.caret || a.pos
- } : v;
- },
- onKeyDown: function(e, t, i, a) {
- e.ctrlKey && e.keyCode === n.default.RIGHT && (this.inputmask._valueSet(M(new Date, a)),
- p(this).trigger("setvalue"));
- },
- onUnMask: function(e, t, i) {
- return t ? S(i.outputFormat, _(e, i.inputFormat, i), i, !0) : t;
- },
- casing: function(e, t, i, a) {
- return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e;
- },
- onBeforeMask: function(e, t) {
- return "[object Date]" === Object.prototype.toString.call(e) && (e = M(e, t)), e;
- },
- insertMode: !1,
- shiftPositions: !1,
- keepStatic: !1,
- inputmode: "numeric",
- prefillYear: !0
- }
- });
- },
- 3851: function(e, t, i) {
- var a, n = (a = i(2394)) && a.__esModule ? a : {
- default: a
- }, r = i(8711), o = i(4713);
- n.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 s = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");
- function l(e, t, i, a, n) {
- return i - 1 > -1 && "." !== t.buffer[i - 1] ? (e = t.buffer[i - 1] + e, e = i - 2 > -1 && "." !== t.buffer[i - 2] ? t.buffer[i - 2] + e : "0" + e) : e = "00" + e,
- s.test(e);
- }
- n.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: l
- },
- j: {
- validator: l
- },
- k: {
- validator: l
- },
- l: {
- validator: l
- }
- },
- onUnMask: function(e, t, i) {
- return e;
- },
- inputmode: "decimal",
- substitutes: {
- ",": "."
- }
- },
- email: {
- mask: function(e) {
- var t = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", i = t;
- if (e.separator) for (var a = 0; a < e.quantifier; a++) i += "[".concat(e.separator).concat(t, "]");
- return i;
- },
- 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, i) {
- 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, i, a, n, s, l) {
- var u = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
- return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(u.join(""));
- }
- }
- });
- },
- 207: function(e, t, i) {
- var a = s(i(2394)), n = s(i(5581)), r = s(i(7184)), o = i(8711);
- function s(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- var l = a.default.dependencyLib;
- function u(e, t) {
- for (var i = "", n = 0; n < e.length; n++) a.default.prototype.definitions[e.charAt(n)] || t.definitions[e.charAt(n)] || t.optionalmarker[0] === e.charAt(n) || t.optionalmarker[1] === e.charAt(n) || t.quantifiermarker[0] === e.charAt(n) || t.quantifiermarker[1] === e.charAt(n) || t.groupmarker[0] === e.charAt(n) || t.groupmarker[1] === e.charAt(n) || t.alternatormarker === e.charAt(n) ? i += "\\" + e.charAt(n) : i += e.charAt(n);
- return i;
- }
- function c(e, t, i, a) {
- if (e.length > 0 && t > 0 && (!i.digitsOptional || a)) {
- var n = e.indexOf(i.radixPoint), r = !1;
- i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === n && (e.push(i.radixPoint),
- n = e.length - 1);
- for (var o = 1; o <= t; o++) isFinite(e[n + o]) || (e[n + o] = "0");
- }
- return r && e.push(i.negationSymbol.back), e;
- }
- function f(e, t) {
- var i = 0;
- if ("+" === e) {
- for (i in t.validPositions) ;
- i = o.seekNext.call(this, parseInt(i));
- }
- for (var a in t.tests) if ((a = parseInt(a)) >= i) for (var n = 0, r = t.tests[a].length; n < r; n++) if ((void 0 === t.validPositions[a] || "-" === e) && t.tests[a][n].match.def === e) return a + (void 0 !== t.validPositions[a] && "-" !== e ? 1 : 0);
- return i;
- }
- function d(e, t) {
- var i = -1;
- for (var a in t.validPositions) {
- var n = t.validPositions[a];
- if (n && n.match.def === e) {
- i = parseInt(a);
- break;
- }
- }
- return i;
- }
- function p(e, t, i, a, n) {
- var r = t.buffer ? t.buffer.indexOf(n.radixPoint) : -1, o = (-1 !== r || a && n.jitMasking) && new RegExp(n.definitions[9].validator).test(e);
- return n._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
- insert: {
- pos: r === i ? r + 1 : r,
- c: n.radixPoint
- },
- pos: i
- } : 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", i = 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 = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!",
- "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}, e.definitions[i].validator = "[" + e.radixPoint + "]",
- e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1,
- e.numericInput = !0);
- var a, n = "[+]";
- if (n += u(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),
- n += e._mask(e)) : n += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
- var o = e.digits.toString().split(",");
- isFinite(o[0]) && o[1] && isFinite(o[1]) ? n += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (a = n + i + t + "{0," + e.digits + "}",
- e.keepStatic = !0) : n += i + t + "{" + e.digits + "}");
- } else e.inputmode = "numeric";
- return n += u(e.suffix, e), n += "[-]", a && (n = [ a + u(e.suffix, e) + "[-]", n ]),
- e.greedy = !1, function(e) {
- void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
- r.default)(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.default)(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.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
- n;
- },
- _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,
- definitions: {
- 0: {
- validator: p
- },
- 1: {
- validator: p,
- definitionSymbol: "9"
- },
- 9: {
- validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
- definitionSymbol: "*"
- },
- "+": {
- validator: function(e, t, i, a, n) {
- return n.allowMinus && ("-" === e || e === n.negationSymbol.front);
- }
- },
- "-": {
- validator: function(e, t, i, a, n) {
- return n.allowMinus && e === n.negationSymbol.back;
- }
- }
- },
- preValidation: function(e, t, i, a, n, r, o, s) {
- if (!1 !== n.__financeInput && i === n.radixPoint) return !1;
- var l = e.indexOf(n.radixPoint), u = t;
- if (t = function(e, t, i, a, n) {
- return n._radixDance && n.numericInput && t !== n.negationSymbol.back && e <= i && (i > 0 || t == n.radixPoint) && (void 0 === a.validPositions[e - 1] || a.validPositions[e - 1].input !== n.negationSymbol.back) && (e -= 1),
- e;
- }(t, i, l, r, n), "-" === i || i === n.negationSymbol.front) {
- if (!0 !== n.allowMinus) return !1;
- var c = !1, p = d("+", r), h = d("-", r);
- return -1 !== p && (c = [ p, h ]), !1 !== c ? {
- remove: c,
- caret: u - n.negationSymbol.back.length
- } : {
- insert: [ {
- pos: f.call(this, "+", r),
- c: n.negationSymbol.front,
- fromIsValid: !0
- }, {
- pos: f.call(this, "-", r),
- c: n.negationSymbol.back,
- fromIsValid: void 0
- } ],
- caret: u + n.negationSymbol.back.length
- };
- }
- if (i === n.groupSeparator) return {
- caret: u
- };
- if (s) return !0;
- if (-1 !== l && !0 === n._radixDance && !1 === a && i === n.radixPoint && void 0 !== n.digits && (isNaN(n.digits) || parseInt(n.digits) > 0) && l !== t) return {
- caret: n._radixDance && t === l - 1 ? l + 1 : l
- };
- if (!1 === n.__financeInput) if (a) {
- if (n.digitsOptional) return {
- rewritePosition: o.end
- };
- if (!n.digitsOptional) {
- if (o.begin > l && o.end <= l) return i === n.radixPoint ? {
- insert: {
- pos: l + 1,
- c: "0",
- fromIsValid: !0
- },
- rewritePosition: l
- } : {
- rewritePosition: l + 1
- };
- if (o.begin < l) return {
- rewritePosition: o.begin - 1
- };
- }
- } else if (!n.showMaskOnHover && !n.showMaskOnFocus && !n.digitsOptional && n.digits > 0 && "" === this.__valueGet.call(this.el)) return {
- rewritePosition: l
- };
- return {
- rewritePosition: t
- };
- },
- postValidation: function(e, t, i, a, n, r, o) {
- if (!1 === a) return a;
- if (o) return !0;
- if (null !== n.min || null !== n.max) {
- var s = n.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, n, {
- unmaskAsNumber: !0
- }));
- if (null !== n.min && s < n.min && (s.toString().length > n.min.toString().length || s < 0)) return !1;
- if (null !== n.max && s > n.max) return !!n.SetMaxOnOverflow && {
- refreshFromBuffer: !0,
- buffer: c(n.max.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse()
- };
- }
- return a;
- },
- onUnMask: function(e, t, i) {
- if ("" === t && !0 === i.nullable) return t;
- var a = e.replace(i.prefix, "");
- return a = (a = a.replace(i.suffix, "")).replace(new RegExp((0, r.default)(i.groupSeparator), "g"), ""),
- "" !== i.placeholder.charAt(0) && (a = a.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")),
- i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== a.indexOf(i.radixPoint) && (a = a.replace(r.default.call(this, i.radixPoint), ".")),
- a = (a = a.replace(new RegExp("^" + (0, r.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0,
- r.default)(i.negationSymbol.back) + "$"), ""), Number(a)) : a;
- },
- isComplete: function(e, t) {
- var i = (t.numericInput ? e.slice().reverse() : e).join("");
- return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, r.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
- r.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
- r.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0,
- r.default)(t.radixPoint), ".")), isFinite(i);
- },
- onBeforeMask: function(e, t) {
- var i = t.radixPoint || ",";
- isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i));
- var a = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, n = e.split(i), o = n[0].replace(/[^\-0-9]/g, ""), s = n.length > 1 ? n[1].replace(/[^0-9]/g, "") : "", l = n.length > 1;
- e = o + ("" !== s ? i + s : s);
- var u = 0;
- if ("" !== i && (u = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits,
- "" !== s || !t.digitsOptional)) {
- var f = Math.pow(10, u || 1);
- e = e.replace((0, r.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(u)),
- e = e.toString().replace(".", i);
- }
- if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))),
- null !== t.min || null !== t.max) {
- var d = e.toString().replace(i, ".");
- null !== t.min && d < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", i));
- }
- return a && "-" !== e.charAt(0) && (e = "-" + e), c(e.toString().split(""), u, t, l).join("");
- },
- onBeforeWrite: function(e, t, i, a) {
- function n(e, t) {
- if (!1 !== a.__financeInput || t) {
- var i = e.indexOf(a.radixPoint);
- -1 !== i && e.splice(i, 1);
- }
- if ("" !== a.groupSeparator) for (;-1 !== (i = e.indexOf(a.groupSeparator)); ) e.splice(i, 1);
- return e;
- }
- var o, s;
- if (a.stripLeadingZeroes && (s = function(e, t) {
- var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, r.default)(t.negationSymbol.front) + "?" : "") + (0,
- r.default)(t.prefix) + ")(.*)(" + (0, r.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
- r.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = i ? i[2] : "", n = !1;
- return a && (a = a.split(t.radixPoint.charAt(0))[0], n = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)),
- !(!n || !(n[0].length > 1 || n[0].length > 0 && n[0].length < a.length)) && n;
- }(t, a))) for (var u = t.join("").lastIndexOf(s[0].split("").reverse().join("")) - (s[0] == s.input ? 0 : 1), f = s[0] == s.input ? 1 : 0, d = s[0].length - f; d > 0; d--) delete this.maskset.validPositions[u + d],
- delete t[u + d];
- if (e) switch (e.type) {
- case "blur":
- case "checkval":
- if (null !== a.min) {
- var p = a.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, a, {
- unmaskAsNumber: !0
- }));
- if (null !== a.min && p < a.min) return {
- refreshFromBuffer: !0,
- buffer: c(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
- };
- }
- if (t[t.length - 1] === a.negationSymbol.front) {
- var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, r.default)(a.negationSymbol.front) + "?" : "") + (0,
- r.default)(a.prefix) + ")(.*)(" + (0, r.default)(a.suffix) + ("" != a.negationSymbol.back ? (0,
- r.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(n(t.slice(), !0).reverse().join(""));
- 0 == (h ? h[2] : "") && (o = {
- refreshFromBuffer: !0,
- buffer: [ 0 ]
- });
- } else if ("" !== a.radixPoint) {
- t.indexOf(a.radixPoint) === a.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + a.suffix.length) : (t.splice(0, 1 + a.suffix.length),
- o = {
- refreshFromBuffer: !0,
- buffer: n(t)
- }));
- }
- if (a.enforceDigitsOnBlur) {
- var m = (o = o || {}) && o.buffer || t.slice().reverse();
- o.refreshFromBuffer = !0, o.buffer = c(m, a.digits, a, !0).reverse();
- }
- }
- return o;
- },
- onKeyDown: function(e, t, i, a) {
- var r, o, s = l(this), u = String.fromCharCode(e.keyCode).toLowerCase();
- if ((o = a.shortcuts && a.shortcuts[u]) && o.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(o)),
- s.trigger("setvalue"), !1;
- if (e.ctrlKey) switch (e.keyCode) {
- case n.default.UP:
- return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step)),
- s.trigger("setvalue"), !1;
-
- case n.default.DOWN:
- return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step)),
- s.trigger("setvalue"), !1;
- }
- if (!e.shiftKey && (e.keyCode === n.default.DELETE || e.keyCode === n.default.BACKSPACE || e.keyCode === n.default.BACKSPACE_SAFARI) && i.begin !== t.length) {
- if (t[e.keyCode === n.default.DELETE ? i.begin - 1 : i.end] === a.negationSymbol.front) return r = t.slice().reverse(),
- "" !== a.negationSymbol.front && r.shift(), "" !== a.negationSymbol.back && r.pop(),
- s.trigger("setvalue", [ r.join(""), i.begin ]), !1;
- if (!0 === a._radixDance) {
- var f = t.indexOf(a.radixPoint);
- if (a.digitsOptional) {
- if (0 === f) return (r = t.slice().reverse()).pop(), s.trigger("setvalue", [ r.join(""), i.begin >= r.length ? r.length : i.begin ]),
- !1;
- } else if (-1 !== f && (i.begin < f || i.end < f || e.keyCode === n.default.DELETE && i.begin === f)) return i.begin !== i.end || e.keyCode !== n.default.BACKSPACE && e.keyCode !== n.default.BACKSPACE_SAFARI || i.begin++,
- (r = t.slice().reverse()).splice(r.length - i.begin, i.begin - i.end + 1), r = c(r, a.digits, a).join(""),
- s.trigger("setvalue", [ r, i.begin >= r.length ? f + 1 : i.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
- }
- });
- },
- 9380: function(e, t, i) {
- var a;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var n = ((a = i(8741)) && a.__esModule ? a : {
- default: a
- }).default ? window : {};
- t.default = n;
- },
- 7760: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.HandleNativePlaceholder = function(e, t) {
- var i = e ? e.inputmask : this;
- if (l.ie) {
- if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
- var a = o.getBuffer.call(i).slice(), n = e.inputmask._valueGet();
- if (n !== t) {
- var r = o.getLastValidPosition.call(i);
- -1 === r && n === o.getBufferTemplate.call(i).join("") ? a = [] : -1 !== r && f.call(i, a),
- p(e, a);
- }
- }
- } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
- }, t.applyInputValue = c, t.checkVal = d, t.clearOptionalTail = f, t.unmaskedvalue = function(e) {
- var t = e ? e.inputmask : this, i = t.opts, a = t.maskset;
- if (e) {
- if (void 0 === e.inputmask) return e.value;
- e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
- }
- var n = [], r = a.validPositions;
- for (var s in r) r[s] && r[s].match && (1 != r[s].match.static || Array.isArray(a.metadata) && !0 !== r[s].generatedInput) && n.push(r[s].input);
- var l = 0 === n.length ? "" : (t.isRTL ? n.reverse() : n).join("");
- if ("function" == typeof i.onUnMask) {
- var u = (t.isRTL ? o.getBuffer.call(t).slice().reverse() : o.getBuffer.call(t)).join("");
- l = i.onUnMask.call(t, u, l, i);
- }
- return l;
- }, t.writeBuffer = p;
- var a, n = (a = i(5581)) && a.__esModule ? a : {
- default: a
- }, r = i(4713), o = i(8711), s = i(7215), l = i(9845), u = i(6030);
- function c(e, t) {
- var i = e ? e.inputmask : this, a = i.opts;
- e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t),
- d(e, !0, !1, t = t.toString().split("")), i.undoValue = i._valueGet(!0), (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === o.getBufferTemplate.call(i).join("") && -1 === o.getLastValidPosition.call(i) && e.inputmask._valueSet("");
- }
- function f(e) {
- e.length = 0;
- for (var t, i = r.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t);
- return e;
- }
- function d(e, t, i, a, n) {
- var l = e ? e.inputmask : this, c = l.maskset, f = l.opts, d = l.dependencyLib, h = a.slice(), m = "", v = -1, g = void 0, k = f.skipOptionalPartCharacter;
- f.skipOptionalPartCharacter = "", o.resetMaskSet.call(l), c.tests = {}, v = f.radixPoint ? o.determineNewCaretPosition.call(l, {
- begin: 0,
- end: 0
- }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, c.p = v, l.caretPos = {
- begin: v
- };
- var y = [], b = l.caretPos;
- if (h.forEach((function(e, t) {
- if (void 0 !== e) {
- var a = new d.Event("_checkval");
- a.keyCode = e.toString().charCodeAt(0), m += e;
- var n = o.getLastValidPosition.call(l, void 0, !0);
- !function(e, t) {
- for (var i = r.getMaskTemplate.call(l, !0, 0).slice(e, o.seekNext.call(l, e, !1, !1)).join("").replace(/'/g, ""), a = i.indexOf(t); a > 0 && " " === i[a - 1]; ) a--;
- var n = 0 === a && !o.isMask.call(l, e) && (r.getTest.call(l, e).match.nativeDef === t.charAt(0) || !0 === r.getTest.call(l, e).match.static && r.getTest.call(l, e).match.nativeDef === "'" + t.charAt(0) || " " === r.getTest.call(l, e).match.nativeDef && (r.getTest.call(l, e + 1).match.nativeDef === t.charAt(0) || !0 === r.getTest.call(l, e + 1).match.static && r.getTest.call(l, e + 1).match.nativeDef === "'" + t.charAt(0)));
- if (!n && a > 0 && !o.isMask.call(l, e, !1, !0)) {
- var s = o.seekNext.call(l, e);
- l.caretPos.begin < s && (l.caretPos = {
- begin: s
- });
- }
- return n;
- }(v, m) ? (g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, l.caretPos.begin)) && (v = l.caretPos.begin + 1,
- m = "") : g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, n + 1), g ? (void 0 !== g.pos && c.validPositions[g.pos] && !0 === c.validPositions[g.pos].match.static && void 0 === c.validPositions[g.pos].alternation && (y.push(g.pos),
- l.isRTL || (g.forwardPosition = g.pos + 1)), p.call(l, void 0, o.getBuffer.call(l), g.forwardPosition, a, !1),
- l.caretPos = {
- begin: g.forwardPosition,
- end: g.forwardPosition
- }, b = l.caretPos) : void 0 === c.validPositions[t] && h[t] === r.getPlaceholder.call(l, t) && o.isMask.call(l, t, !0) ? l.caretPos.begin++ : l.caretPos = b;
- }
- })), y.length > 0) {
- var x, P, E = o.seekNext.call(l, -1, void 0, !1);
- if (!s.isComplete.call(l, o.getBuffer.call(l)) && y.length <= E || s.isComplete.call(l, o.getBuffer.call(l)) && y.length > 0 && y.length !== E && 0 === y[0]) for (var S = E; void 0 !== (x = y.shift()); ) {
- var w = new d.Event("_checkval");
- if ((P = c.validPositions[x]).generatedInput = !0, w.keyCode = P.input.charCodeAt(0),
- (g = u.EventHandlers.keypressEvent.call(l, w, !0, !1, i, S)) && void 0 !== g.pos && g.pos !== x && c.validPositions[g.pos] && !0 === c.validPositions[g.pos].match.static) y.push(g.pos); else if (!g) break;
- S++;
- }
- }
- t && p.call(l, e, o.getBuffer.call(l), g ? g.forwardPosition : l.caretPos.begin, n || new d.Event("checkval"), n && ("input" === n.type && l.undoValue !== o.getBuffer.call(l).join("") || "paste" === n.type)),
- f.skipOptionalPartCharacter = k;
- }
- function p(e, t, i, a, r) {
- var l = e ? e.inputmask : this, u = l.opts, c = l.dependencyLib;
- if (a && "function" == typeof u.onBeforeWrite) {
- var f = u.onBeforeWrite.call(l, a, t, i, u);
- if (f) {
- if (f.refreshFromBuffer) {
- var d = f.refreshFromBuffer;
- s.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = o.getBuffer.call(l, !0);
- }
- void 0 !== i && (i = void 0 !== f.caret ? f.caret : i);
- }
- }
- if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === i || void 0 !== a && "blur" === a.type || o.caret.call(l, e, i, void 0, void 0, void 0 !== a && "keydown" === a.type && (a.keyCode === n.default.DELETE || a.keyCode === n.default.BACKSPACE)),
- !0 === r)) {
- var p = c(e), h = e.inputmask._valueGet();
- e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function() {
- h === o.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === s.isComplete.call(l, t) && p.trigger("complete");
- }), 0);
- }
- }
- },
- 2394: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0, i(7149), i(3194);
- var a = i(157), n = v(i(3287)), r = v(i(9380)), o = i(2391), s = i(4713), l = i(8711), u = i(7215), c = i(7760), f = i(9716), d = v(i(7392)), p = v(i(3976)), h = v(i(8741));
- function m(e) {
- return m = "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;
- }, m(e);
- }
- function v(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- var g = r.default.document, k = "_inputmask_opts";
- function y(e, t, i) {
- if (h.default) {
- if (!(this instanceof y)) return new y(e, t, i);
- this.dependencyLib = n.default, this.el = void 0, this.events = {}, this.maskset = void 0,
- !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
- e && (t.alias = e)), this.opts = n.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
- this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1,
- this.undoValue = void 0, this.$el = void 0, this.skipKeyPressEvent = !1, this.skipInputEvent = !1,
- this.validationEvent = !1, this.ignorable = !1, this.maxLength, this.mouseEnter = !1,
- this.originalPlaceholder = void 0, this.isComposing = !1;
- }
- }
- function b(e, t, i) {
- var a = y.prototype.aliases[e];
- return a ? (a.alias && b(a.alias, void 0, i), n.default.extend(!0, i, a), n.default.extend(!0, i, t),
- !0) : (null === i.mask && (i.mask = e), !1);
- }
- y.prototype = {
- dataAttribute: "data-inputmask",
- defaults: p.default,
- definitions: d.default,
- aliases: {},
- masksCache: {},
- get isRTL() {
- return this.opts.isRTL || this.opts.numericInput;
- },
- mask: function(e) {
- var t = this;
- return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)),
- (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : Array.from(e)).forEach((function(e, i) {
- var s = n.default.extend(!0, {}, t.opts);
- if (function(e, t, i, a) {
- function o(t, n) {
- var o = "" === a ? t : a + "-" + t;
- null !== (n = void 0 !== n ? n : e.getAttribute(o)) && ("string" == typeof n && (0 === t.indexOf("on") ? n = r.default[n] : "false" === n ? n = !1 : "true" === n && (n = !0)),
- i[t] = n);
- }
- if (!0 === t.importDataAttributes) {
- var s, l, u, c, f = e.getAttribute(a);
- if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")),
- l) for (c in u = void 0, l) if ("alias" === c.toLowerCase()) {
- u = l[c];
- break;
- }
- for (s in o("alias", u), i.alias && b(i.alias, i, t), t) {
- if (l) for (c in u = void 0, l) if (c.toLowerCase() === s.toLowerCase()) {
- u = l[c];
- break;
- }
- o(s, u);
- }
- }
- n.default.extend(!0, t, i), ("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(i).length;
- }(e, s, n.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
- var l = (0, o.generateMaskSet)(s, t.noMasksCache);
- void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
- e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache,
- e.inputmask.userOptions = n.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
- e.inputmask.$el = (0, n.default)(e), e.inputmask.maskset = l, n.default.data(e, k, t.userOptions),
- a.mask.call(e.inputmask));
- }
- })), e && e[0] && e[0].inputmask || this;
- },
- option: function(e, t) {
- return "string" == typeof e ? this.opts[e] : "object" === m(e) ? (n.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, o.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("");
- c.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, l.getBuffer.call(this), 0, this.opts);
- }
- return c.unmaskedvalue.call(this, this.el);
- },
- remove: function() {
- if (this.el) {
- n.default.data(this.el, k, null);
- var e = this.opts.autoUnmask ? (0, c.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
- e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
- f.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
- }) : g.__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, o.generateMaskSet)(this.opts, this.noMasksCache),
- l.getBufferTemplate.call(this).join("");
- },
- hasMaskedValue: function() {
- return !this.opts.autoUnmask;
- },
- isComplete: function() {
- return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
- u.isComplete.call(this, l.getBuffer.call(this));
- },
- getmetadata: function() {
- if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
- Array.isArray(this.maskset.metadata)) {
- var e = s.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, o.generateMaskSet)(this.opts, this.noMasksCache),
- e) {
- var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
- c.checkVal.call(this, void 0, !0, !1, t);
- } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
- for (var i = l.getBuffer.call(this), a = l.determineLastRequiredPosition.call(this), n = i.length - 1; n > a && !l.isMask.call(this, n); n--) ;
- return i.splice(a, n + 1 - a), u.isComplete.call(this, i) && e === (this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""));
- },
- format: function(e, t) {
- this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache);
- var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
- c.checkVal.call(this, void 0, !0, !1, i);
- var a = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
- return t ? {
- value: a,
- metadata: this.getmetadata()
- } : a;
- },
- setValue: function(e) {
- this.el && (0, n.default)(this.el).trigger("setvalue", [ e ]);
- },
- analyseMask: o.analyseMask
- }, y.extendDefaults = function(e) {
- n.default.extend(!0, y.prototype.defaults, e);
- }, y.extendDefinitions = function(e) {
- n.default.extend(!0, y.prototype.definitions, e);
- }, y.extendAliases = function(e) {
- n.default.extend(!0, y.prototype.aliases, e);
- }, y.format = function(e, t, i) {
- return y(t).format(e, i);
- }, 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 = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
- e.inputmask && e.inputmask.remove();
- }));
- }, y.setValue = function(e, t) {
- "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
- e.inputmask ? e.inputmask.setValue(t) : (0, n.default)(e).trigger("setvalue", [ t ]);
- }));
- }, y.dependencyLib = n.default, r.default.Inputmask = y;
- var x = y;
- t.default = x;
- },
- 5296: function(e, t, i) {
- 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);
- }
- var n = h(i(9380)), r = h(i(2394)), o = h(i(8741));
- function s(e, t) {
- for (var i = 0; i < t.length; i++) {
- var a = t[i];
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
- Object.defineProperty(e, a.key, a);
- }
- }
- function l(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);
- }
- function u(e) {
- var t = "function" == typeof Map ? new Map : void 0;
- return u = function(e) {
- if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e;
- var i;
- 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, a);
- }
- function a() {
- return c(e, arguments, p(this).constructor);
- }
- return a.prototype = Object.create(e.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), d(a, e);
- }, u(e);
- }
- function c(e, t, i) {
- return c = f() ? Reflect.construct : function(e, t, i) {
- var a = [ null ];
- a.push.apply(a, t);
- var n = new (Function.bind.apply(e, a));
- return i && d(n, i.prototype), n;
- }, c.apply(null, arguments);
- }
- function f() {
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
- if (Reflect.construct.sham) return !1;
- if ("function" == typeof Proxy) return !0;
- try {
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
- !0;
- } catch (e) {
- return !1;
- }
- }
- function d(e, t) {
- return d = Object.setPrototypeOf || function(e, t) {
- return e.__proto__ = t, e;
- }, d(e, t);
- }
- function p(e) {
- return p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
- return e.__proto__ || Object.getPrototypeOf(e);
- }, p(e);
- }
- function h(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- var m = n.default.document;
- if (o.default && m && m.head && m.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) {
- var v = function(e) {
- !function(e, t) {
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
- Object.defineProperty(e, "prototype", {
- value: Object.create(t && t.prototype, {
- constructor: {
- value: e,
- writable: !0,
- configurable: !0
- }
- }),
- writable: !1
- }), t && d(e, t);
- }(c, e);
- var t, i, a, n, o, u = (t = c, i = f(), function() {
- var e, a = p(t);
- if (i) {
- var n = p(this).constructor;
- e = Reflect.construct(a, arguments, n);
- } else e = a.apply(this, arguments);
- return l(this, e);
- });
- function c() {
- var e;
- !function(e, t) {
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
- }(this, c);
- var t = (e = u.call(this)).getAttributeNames(), i = e.attachShadow({
- mode: "closed"
- }), a = m.createElement("input");
- for (var n in a.type = "text", i.appendChild(a), t) Object.prototype.hasOwnProperty.call(t, n) && a.setAttribute(t[n], e.getAttribute(t[n]));
- var o = new r.default;
- return o.dataAttribute = "", o.mask(a), a.inputmask.shadowRoot = i, e;
- }
- return a = c, n && s(a.prototype, n), o && s(a, o), Object.defineProperty(a, "prototype", {
- writable: !1
- }), a;
- }(u(HTMLElement));
- n.default.customElements.define("input-mask", v);
- }
- },
- 443: function(e, t, i) {
- var a = o(i(2047)), n = o(i(2394));
- function r(e) {
- return r = "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;
- }, r(e);
- }
- function o(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- void 0 === a.default.fn.inputmask && (a.default.fn.inputmask = function(e, t) {
- var i, o = this[0];
- if (void 0 === t && (t = {}), "string" == typeof e) switch (e) {
- case "unmaskedvalue":
- return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, a.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":
- n.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, i = new n.default(t), this.each((function() {
- i.mask(this);
- }));
- } else {
- if (Array.isArray(e)) return t.alias = e, i = new n.default(t), this.each((function() {
- i.mask(this);
- }));
- if ("object" == r(e)) return i = new n.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() {
- if (void 0 !== this.inputmask) return this.inputmask.option(e);
- i.mask(this);
- })) : this.each((function() {
- i.mask(this);
- }));
- if (void 0 === e) return this.each((function() {
- (i = new n.default(t)).mask(this);
- }));
- }
- });
- },
- 2391: function(e, t, i) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.analyseMask = function(e, t, i) {
- var a, o, s, l, u, c, f = /(?:[?*+]|\{[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, p = !1, h = new n.default, m = [], v = [], g = !1;
- function k(e, a, n) {
- n = void 0 !== n ? n : e.matches.length;
- var o = e.matches[n - 1];
- if (t) 0 === a.indexOf("[") || p && /\\d|\\s|\\w/i.test(a) || "." === a ? e.matches.splice(n++, 0, {
- fn: new RegExp(a, i.casing ? "i" : ""),
- static: !1,
- optionality: !1,
- newBlockMarker: void 0 === o ? "master" : o.def !== a,
- casing: null,
- def: a,
- placeholder: void 0,
- nativeDef: a
- }) : (p && (a = a[a.length - 1]), a.split("").forEach((function(t, a) {
- o = e.matches[n - 1], e.matches.splice(n++, 0, {
- fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null,
- static: !0,
- optionality: !1,
- newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
- casing: null,
- def: i.staticDefinitionSymbol || t,
- placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0,
- nativeDef: (p ? "'" : "") + t
- });
- }))), p = !1; else {
- var s = i.definitions && i.definitions[a] || i.usePrototypeDefinitions && r.default.prototype.definitions[a];
- s && !p ? e.matches.splice(n++, 0, {
- fn: s.validator ? "string" == typeof s.validator ? new RegExp(s.validator, i.casing ? "i" : "") : new function() {
- this.test = s.validator;
- } : new RegExp("."),
- static: s.static || !1,
- optionality: s.optional || !1,
- newBlockMarker: void 0 === o || s.optional ? "master" : o.def !== (s.definitionSymbol || a),
- casing: s.casing,
- def: s.definitionSymbol || a,
- placeholder: s.placeholder,
- nativeDef: a,
- generated: s.generated
- }) : (e.matches.splice(n++, 0, {
- fn: /[a-z]/i.test(i.staticDefinitionSymbol || a) ? new RegExp("[" + (i.staticDefinitionSymbol || a) + "]", i.casing ? "i" : "") : null,
- static: !0,
- optionality: !1,
- newBlockMarker: void 0 === o ? "master" : o.def !== a && !0 !== o.static,
- casing: null,
- def: i.staticDefinitionSymbol || a,
- placeholder: void 0 !== i.staticDefinitionSymbol ? a : void 0,
- nativeDef: (p ? "'" : "") + a
- }), p = !1);
- }
- }
- function y() {
- if (m.length > 0) {
- if (k(l = m[m.length - 1], o), l.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 ? (l = m[m.length - 1]).matches.push(u) : h.matches.push(u);
- }
- } else k(h, o);
- }
- function b(e) {
|