dist top-level constant
String
const dist
Implementation
const dist = r'''
/*!
* dist/inputmask
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2023 Robin Herbots
* Licensed under the MIT license
* Version: 5.0.8
*/
!function(e, t) {
if ("object" == typeof exports && "object" == typeof module) module.exports = t(); else if ("function" == typeof define && define.amd) define([], t); else {
var i = t();
for (var n in i) ("object" == typeof exports ? exports : e)[n] = i[n];
}
}("undefined" != typeof self ? self : this, (function() {
return function() {
"use strict";
var e = {
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 n = i(2839), a = {
_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.keys.Backspace, n.keys.Tab, n.keys.Pause, n.keys.Escape, n.keys.PageUp, n.keys.PageDown, n.keys.End, n.keys.Home, n.keys.ArrowLeft, n.keys.ArrowUp, n.keys.ArrowRight, n.keys.ArrowDown, n.keys.Insert, n.keys.Delete, n.keys.ContextMenu, n.keys.F1, n.keys.F2, n.keys.F3, n.keys.F4, n.keys.F5, n.keys.F6, n.keys.F7, n.keys.F8, n.keys.F9, n.keys.F10, n.keys.F11, n.keys.F12, n.keys.Process, n.keys.Unidentified, n.keys.Shift, n.keys.Control, n.keys.Alt, n.keys.Tab, n.keys.AltGraph, n.keys.CapsLock ],
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 = a;
},
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]"
}
};
},
253: function(e, t) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t, i) {
if (void 0 === i) return e.__data ? e.__data[t] : null;
e.__data = e.__data || {}, e.__data[t] = i;
};
},
3776: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.Event = void 0, t.off = function(e, t) {
var i, n;
f(this[0]) && e && (i = this[0].eventRegistry, n = this[0], e.split(" ").forEach((function(e) {
var a = l(e.split("."), 2);
(function(e, n) {
var a, r, o = [];
if (e.length > 0) if (void 0 === t) for (a = 0, r = i[e][n].length; a < r; a++) o.push({
ev: e,
namespace: n && n.length > 0 ? n : "global",
handler: i[e][n][a]
}); else o.push({
ev: e,
namespace: n && n.length > 0 ? n : "global",
handler: t
}); else if (n.length > 0) for (var s in i) for (var l in i[s]) if (l === n) if (void 0 === t) for (a = 0,
r = i[s][l].length; a < r; a++) o.push({
ev: s,
namespace: l,
handler: i[s][l][a]
}); else o.push({
ev: s,
namespace: l,
handler: t
});
return o;
})(a[0], a[1]).forEach((function(e) {
var t = e.ev, a = e.handler;
!function(e, t, a) {
if (e in i == 1) if (n.removeEventListener ? n.removeEventListener(e, a, !1) : n.detachEvent && n.detachEvent("on".concat(e), a),
"global" === t) for (var r in i[e]) i[e][r].splice(i[e][r].indexOf(a), 1); else i[e][t].splice(i[e][t].indexOf(a), 1);
}(t, e.namespace, a);
}));
})));
return this;
}, t.on = function(e, t) {
if (f(this[0])) {
var i = this[0].eventRegistry, n = this[0];
e.split(" ").forEach((function(e) {
var a = l(e.split("."), 2), r = a[0], o = a[1];
!function(e, a) {
n.addEventListener ? n.addEventListener(e, t, !1) : n.attachEvent && n.attachEvent("on".concat(e), t),
i[e] = i[e] || {}, i[e][a] = i[e][a] || [], i[e][a].push(t);
}(r, void 0 === o ? "global" : o);
}));
}
return this;
}, t.trigger = function(e) {
var t = arguments;
if (f(this[0])) for (var i = this[0].eventRegistry, n = this[0], r = "string" == typeof e ? e.split(" ") : [ e.type ], s = 0; s < r.length; s++) {
var l = r[s].split("."), c = l[0], u = l[1] || "global";
if (void 0 !== document && "global" === u) {
var d, p = {
bubbles: !0,
cancelable: !0,
composed: !0,
detail: arguments[1]
};
if (document.createEvent) {
try {
if ("input" === c) p.inputType = "insertText", d = new InputEvent(c, p); else d = new CustomEvent(c, p);
} catch (e) {
(d = document.createEvent("CustomEvent")).initCustomEvent(c, p.bubbles, p.cancelable, p.detail);
}
e.type && (0, a.default)(d, e), n.dispatchEvent(d);
} else (d = document.createEventObject()).eventType = c, d.detail = arguments[1],
e.type && (0, a.default)(d, e), n.fireEvent("on" + d.eventType, d);
} else if (void 0 !== i[c]) {
arguments[0] = arguments[0].type ? arguments[0] : o.default.Event(arguments[0]),
arguments[0].detail = arguments.slice(1);
var h = i[c];
("global" === u ? Object.values(h).flat() : h[u]).forEach((function(e) {
return e.apply(n, t);
}));
}
}
return this;
};
var n, a = u(i(600)), r = u(i(9380)), o = u(i(4963)), s = u(i(8741));
function l(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) {
var n, a, r, o, s = [], l = !0, c = !1;
try {
if (r = (i = i.call(e)).next, 0 === t) {
if (Object(i) !== i) return;
l = !1;
} else for (;!(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0) ;
} catch (e) {
c = !0, a = e;
} finally {
try {
if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
} finally {
if (c) throw a;
}
}
return s;
}
}(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, n = new Array(t); i < t; i++) n[i] = e[i];
return n;
}
function u(e) {
return e && e.__esModule ? e : {
default: e
};
}
function f(e) {
return e instanceof Element;
}
t.Event = n, "function" == typeof r.default.CustomEvent ? t.Event = n = r.default.CustomEvent : s.default && (t.Event = n = function(e, t) {
t = t || {
bubbles: !1,
cancelable: !1,
composed: !0,
detail: void 0
};
var i = document.createEvent("CustomEvent");
return i.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), i;
}, n.prototype = r.default.Event.prototype);
},
600: function(e, t) {
function i(e) {
return i = "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;
}, i(e);
}
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function e() {
var t, n, a, r, o, s, l = arguments[0] || {}, c = 1, u = arguments.length, f = !1;
"boolean" == typeof l && (f = l, l = arguments[c] || {}, c++);
"object" !== i(l) && "function" != typeof l && (l = {});
for (;c < u; c++) if (null != (t = arguments[c])) for (n in t) a = l[n], l !== (r = t[n]) && (f && r && ("[object Object]" === Object.prototype.toString.call(r) || (o = Array.isArray(r))) ? (o ? (o = !1,
s = a && Array.isArray(a) ? a : []) : s = a && "[object Object]" === Object.prototype.toString.call(a) ? a : {},
l[n] = e(f, s, r)) : void 0 !== r && (l[n] = r));
return l;
};
},
4963: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var n = s(i(600)), a = s(i(9380)), r = s(i(253)), o = i(3776);
function s(e) {
return e && e.__esModule ? e : {
default: e
};
}
var l = a.default.document;
function c(e) {
return e instanceof c ? e : this instanceof c ? void (null != e && e !== a.default && (this[0] = e.nodeName ? e : void 0 !== e[0] && e[0].nodeName ? e[0] : l.querySelector(e),
void 0 !== this[0] && null !== this[0] && (this[0].eventRegistry = this[0].eventRegistry || {}))) : new c(e);
}
c.prototype = {
on: o.on,
off: o.off,
trigger: o.trigger
}, c.extend = n.default, c.data = r.default, c.Event = o.Event;
var u = c;
t.default = u;
},
9845: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.mobile = t.iphone = t.ie = void 0;
var n, a = (n = i(9380)) && n.__esModule ? n : {
default: n
};
var r = a.default.navigator && a.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = navigator.userAgentData && navigator.userAgentData.mobile || a.default.navigator && a.default.navigator.maxTouchPoints || "ontouchstart" in a.default, l = /iphone/i.test(r);
t.iphone = l, t.mobile = s, t.ie = o;
},
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 n = i(8711), a = i(2839), r = i(9845), o = i(7215), s = i(7760), l = 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 u(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 u(e, t);
}(e)) || t && e && "number" == typeof e.length) {
i && (e = i);
var n = 0, a = function() {};
return {
s: a,
n: function() {
return n >= e.length ? {
done: !0
} : {
done: !1,
value: e[n++]
};
},
e: function(e) {
throw e;
},
f: a
};
}
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 u(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
return n;
}
var f = {
keyEvent: function(e, t, i, c, u) {
var d = this.inputmask, p = d.opts, h = d.dependencyLib, v = d.maskset, m = this, g = h(m), y = e.key, k = n.caret.call(d, m), b = p.onKeyDown.call(this, e, n.getBuffer.call(d), k, p);
if (void 0 !== b) return b;
if (y === a.keys.Backspace || y === a.keys.Delete || r.iphone && y === a.keys.BACKSPACE_SAFARI || e.ctrlKey && y === a.keys.x && !("oncut" in m)) e.preventDefault(),
o.handleRemove.call(d, m, y, k), (0, s.writeBuffer)(m, n.getBuffer.call(d, !0), v.p, e, m.inputmask._valueGet() !== n.getBuffer.call(d).join("")); else if (y === a.keys.End || y === a.keys.PageDown) {
e.preventDefault();
var x = n.seekNext.call(d, n.getLastValidPosition.call(d));
n.caret.call(d, m, e.shiftKey ? k.begin : x, x, !0);
} else y === a.keys.Home && !e.shiftKey || y === a.keys.PageUp ? (e.preventDefault(),
n.caret.call(d, m, 0, e.shiftKey ? k.begin : 0, !0)) : p.undoOnEscape && y === a.keys.Escape && !0 !== e.altKey ? ((0,
s.checkVal)(m, !0, !1, d.undoValue.split("")), g.trigger("click")) : y !== a.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== d.userOptions.insertMode ? !0 === p.tabThrough && y === a.keys.Tab ? !0 === e.shiftKey ? (k.end = n.seekPrevious.call(d, k.end, !0),
!0 === l.getTest.call(d, k.end - 1).match.static && k.end--, k.begin = n.seekPrevious.call(d, k.end, !0),
k.begin >= 0 && k.end > 0 && (e.preventDefault(), n.caret.call(d, m, k.begin, k.end))) : (k.begin = n.seekNext.call(d, k.begin, !0),
k.end = n.seekNext.call(d, k.begin, !0), k.end < v.maskLength && k.end--, k.begin <= v.maskLength && (e.preventDefault(),
n.caret.call(d, m, k.begin, k.end))) : e.shiftKey || p.insertModeVisual && !1 === p.insertMode && (y === a.keys.ArrowRight ? setTimeout((function() {
var e = n.caret.call(d, m);
n.caret.call(d, m, e.begin);
}), 0) : y === a.keys.ArrowLeft && setTimeout((function() {
var e = n.translatePosition.call(d, m.inputmask.caretPos.begin);
n.translatePosition.call(d, m.inputmask.caretPos.end);
d.isRTL ? n.caret.call(d, m, e + (e === v.maskLength ? 0 : 1)) : n.caret.call(d, m, e - (0 === e ? 0 : 1));
}), 0)) : o.isSelection.call(d, k) ? p.insertMode = !p.insertMode : (p.insertMode = !p.insertMode,
n.caret.call(d, m, k.begin, k.begin));
return d.isComposing = y == a.keys.Process || y == a.keys.Unidentified, d.ignorable = p.ignorables.includes(y),
f.keypressEvent.call(this, e, t, i, c, u);
},
keypressEvent: function(e, t, i, r, l) {
var c = this.inputmask || this, u = c.opts, f = c.dependencyLib, d = c.maskset, p = c.el, h = f(p), v = e.key;
if (!0 === t || e.ctrlKey && e.altKey || !(e.ctrlKey || e.metaKey || c.ignorable)) {
if (v) {
var m, g = t ? {
begin: l,
end: l
} : n.caret.call(c, p);
v = u.substitutes[v] || v, d.writeOutBuffer = !0;
var y = o.isValid.call(c, g, v, r, void 0, void 0, void 0, t);
if (!1 !== y && (n.resetMaskSet.call(c, !0), m = void 0 !== y.caret ? y.caret : n.seekNext.call(c, y.pos.begin ? y.pos.begin : y.pos),
d.p = m), m = u.numericInput && void 0 === y.caret ? n.seekPrevious.call(c, m) : m,
!1 !== i && (setTimeout((function() {
u.onKeyValidation.call(p, v, y);
}), 0), d.writeOutBuffer && !1 !== y)) {
var k = n.getBuffer.call(c);
(0, s.writeBuffer)(p, k, m, e, !0 !== t);
}
if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = m), y;
}
} else v === a.keys.Enter && c.undoValue !== c._valueGet(!0) && (c.undoValue = c._valueGet(!0),
setTimeout((function() {
h.trigger("change");
}), 0));
},
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 l = r.substr(0, o.begin), u = r.substr(o.end, r.length);
if (l == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (l = ""),
u == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""),
window.clipboardData && window.clipboardData.getData) r = l + window.clipboardData.getData("Text") + u; else {
if (!e.clipboardData || !e.clipboardData.getData) return !0;
r = l + 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, s.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault();
},
inputFallBackEvent: function(e) {
var t = this.inputmask, i = t.opts, o = t.dependencyLib;
var c, u = this, d = u.inputmask._valueGet(!0), p = (t.isRTL ? n.getBuffer.call(t).slice().reverse() : n.getBuffer.call(t)).join(""), h = n.caret.call(t, u, void 0, void 0, !0);
if (p !== d) {
if (c = function(e, a, r) {
for (var o, s, c, u = 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 = u.length >= d.length ? u.length : d.length, v = f.length >= p.length ? f.length : p.length, m = "", g = [], y = "~"; u.length < h; ) u.push(y);
for (;d.length < h; ) d.push(y);
for (;f.length < v; ) f.unshift(y);
for (;p.length < v; ) p.unshift(y);
var k = u.concat(f), b = d.concat(p);
for (s = 0, o = k.length; s < o; s++) switch (c = l.getPlaceholder.call(t, n.translatePosition.call(t, s)),
m) {
case "insertText":
b[s - 1] === k[s] && r.begin == k.length - 1 && g.push(k[s]), s = o;
break;
case "insertReplacementText":
case "deleteContentBackward":
k[s] === y ? r.end++ : s = o;
break;
default:
k[s] !== b[s] && (k[s + 1] !== y && k[s + 1] !== c && void 0 !== k[s + 1] || (b[s] !== c || b[s + 1] !== y) && b[s] !== y ? b[s + 1] === y && b[s] === k[s + 1] ? (m = "insertText",
g.push(k[s]), r.begin--, r.end--) : k[s] !== c && k[s] !== y && (k[s + 1] === y || b[s] !== k[s] && b[s + 1] === k[s + 1]) ? (m = "insertReplacementText",
g.push(k[s]), r.begin--) : k[s] === y ? (m = "deleteContentBackward", (n.isMask.call(t, n.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (m = "insertText",
g.push(k[s]), r.begin--, r.end--));
}
return {
action: m,
data: g,
caret: r
};
}(d, p, h), (u.inputmask.shadowRoot || u.ownerDocument).activeElement !== u && u.focus(),
(0, s.writeBuffer)(u, n.getBuffer.call(t)), n.caret.call(t, u, h.begin, h.end, !0),
!r.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === c.action && t.isComposing) return !1;
switch ("insertCompositionText" === e.inputType && "insertText" === c.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1,
c.action) {
case "insertText":
case "insertReplacementText":
c.data.forEach((function(e, i) {
var n = new o.Event("keypress");
n.key = e, t.ignorable = !1, f.keypressEvent.call(u, n);
})), setTimeout((function() {
t.$el.trigger("keyup");
}), 0);
break;
case "deleteContentBackward":
var v = new o.Event("keydown");
v.key = a.keys.Backspace, f.keyEvent.call(u, v);
break;
default:
(0, s.applyInputValue)(u, d), n.caret.call(t, u, h.begin, h.end, !0);
}
e.preventDefault();
}
},
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, s.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 = null == t ? void 0 : t._valueGet();
i.showMaskOnFocus && a !== n.getBuffer.call(t).join("") && (0, s.writeBuffer)(this, n.getBuffer.call(t), n.seekNext.call(t, n.getLastValidPosition.call(t))),
!0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || o.isComplete.call(t, n.getBuffer.call(t)) && -1 !== n.getLastValidPosition.call(t) || f.clickEvent.apply(this, [ e, !0 ]),
t.undoValue = null == t ? void 0 : 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,
s.HandleNativePlaceholder)(i, e.originalPlaceholder);
},
clickEvent: function(e, t) {
var i = this.inputmask;
i.clicked++;
var 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, r = this, l = n.caret.call(t, r), c = t.isRTL ? n.getBuffer.call(t).slice(l.end, l.begin) : n.getBuffer.call(t).slice(l.begin, l.end), u = t.isRTL ? c.reverse().join("") : c.join("");
window.navigator.clipboard ? window.navigator.clipboard.writeText(u) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", u),
o.handleRemove.call(t, r, a.keys.Delete, l), (0, s.writeBuffer)(r, n.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0));
},
blurEvent: function(e) {
var t = this.inputmask, i = t.opts, a = t.dependencyLib;
t.clicked = 0;
var r = a(this), l = this;
if (l.inputmask) {
(0, s.HandleNativePlaceholder)(l, t.originalPlaceholder);
var c = l.inputmask._valueGet(), u = n.getBuffer.call(t).slice();
"" !== c && (i.clearMaskOnLostFocus && (-1 === n.getLastValidPosition.call(t) && c === n.getBufferTemplate.call(t).join("") ? u = [] : s.clearOptionalTail.call(t, u)),
!1 === o.isComplete.call(t, u) && (setTimeout((function() {
r.trigger("incomplete");
}), 0), i.clearIncomplete && (n.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : n.getBufferTemplate.call(t).slice())),
(0, s.writeBuffer)(l, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0),
r.trigger("change"));
}
},
mouseenterEvent: function() {
var e = this.inputmask, t = e.opts.showMaskOnHover, 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("");
t && (0, s.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 === o.isComplete.call(e, n.getBuffer.call(e)) && e._valueSet(""),
t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
(0, s.writeBuffer)(e.el, n.getBuffer.call(e));
}), 0));
},
resetEvent: function() {
var e = this.inputmask;
e.refreshValue = !0, setTimeout((function() {
(0, s.applyInputValue)(e.el, e._valueGet(!0));
}), 0);
}
};
t.EventHandlers = f;
},
9716: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.EventRuler = void 0;
var n, a = (n = i(2394)) && n.__esModule ? n : {
default: n
}, r = i(2839), o = i(8711), s = i(7760);
var l = {
on: function(e, t, i) {
var n = 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 d = n.data(c, "_inputmask_opts");
n(c).off(), d && new a.default(d).mask(c);
} else {
if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(c.disabled || c.readOnly && !("keydown" === t.type && t.ctrlKey && t.key === r.keys.c || !1 === f.tabThrough && t.key === r.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, s.HandleNativePlaceholder)(e, (u.isRTL ? o.getBufferTemplate.call(u).slice().reverse() : o.getBufferTemplate.call(u)).join("")),
setTimeout((function() {
e.focus();
}), f.validationEventTimeOut), !1) : (l = arguments, void setTimeout((function() {
e.inputmask && i.apply(c, l);
}), 0));
}
var p = i.apply(c, arguments);
return !1 === p && (t.preventDefault(), t.stopPropagation()), p;
}
t.preventDefault();
}
};
[ "submit", "reset" ].includes(t) ? (l = l.bind(e), null !== e.form && n(e.form).on(t, l)) : n(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, n = e.inputmask.events;
for (var a in t && ((n = [])[t] = e.inputmask.events[t]), n) {
for (var r = n[a]; r.length > 0; ) {
var o = r.pop();
[ "submit", "reset" ].includes(a) ? null !== e.form && i(e.form).off(a, o) : i(e).off(a, o);
}
delete e.inputmask.events[a];
}
}
}
};
t.EventRuler = l;
},
219: function(e, t, i) {
var n = d(i(2394)), a = i(2839), r = d(i(7184)), o = i(8711), s = i(4713);
function l(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) {
var n, a, r, o, s = [], l = !0, c = !1;
try {
if (r = (i = i.call(e)).next, 0 === t) {
if (Object(i) !== i) return;
l = !1;
} else for (;!(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0) ;
} catch (e) {
c = !0, a = e;
} finally {
try {
if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
} finally {
if (c) throw a;
}
}
return s;
}
}(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, n = new Array(t); i < t; i++) n[i] = e[i];
return n;
}
function u(e) {
return u = "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;
}, u(e);
}
function f(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
Object.defineProperty(e, (a = n.key, r = void 0, r = function(e, t) {
if ("object" !== u(e) || null === e) return e;
var i = e[Symbol.toPrimitive];
if (void 0 !== i) {
var n = i.call(e, t || "default");
if ("object" !== u(n)) return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === t ? String : Number)(e);
}(a, "string"), "symbol" === u(r) ? r : String(r)), n);
}
var a, r;
}
function d(e) {
return e && e.__esModule ? e : {
default: e
};
}
var p = n.default.dependencyLib, h = function() {
function e(t, i, n) {
!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 = n, this._date = new Date(1, 0, 1),
this.initDateObject(t, this.opts);
}
var t, i, n;
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 n = new RegExp("\\d+$").exec(i[0]), a = n ? i[0][0] + "x" : i[0], r = void 0;
if (void 0 !== e) {
if (n) {
var o = P(t).lastIndex, s = E(i.index, t);
P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0]));
} else r = e.slice(0, g[a] && g[a][4] || a.length);
e = e.slice(r.length);
}
Object.prototype.hasOwnProperty.call(g, a) && this.setValue(this, r, a, g[a][2], g[a][1]);
}
}
}, {
key: "setValue",
value: function(e, t, i, n, a) {
if (void 0 !== t && (e[n] = "ampm" === n ? t : t.replace(/[^0-9]/g, "0"), e["raw" + n] = t.replace(/\s/g, "_")),
void 0 !== a) {
var r = e[n];
("day" === n && 29 === parseInt(r) || "month" === n && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
"day" === n && (m = !0, 0 === parseInt(r) && (r = 1)), "month" === n && (m = !0),
"year" === n && (m = !0, r.length < 4 && (r = M(r, 4, !0))), "" === r || isNaN(r) || a.call(e._date, r),
"ampm" === n && a.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), n && f(t, n), Object.defineProperty(t, "prototype", {
writable: !1
}), e;
}(), v = (new Date).getFullYear(), m = !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 M(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 M(Date.prototype.getMonth.call(this) + 1, 2);
} ],
mmm: [ "" ],
mmmm: [ "" ],
yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
return M(Date.prototype.getFullYear.call(this), 2);
} ],
yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
return M(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 M(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 M(Date.prototype.getHours.call(this), 2);
} ],
Hx: [ function(e) {
return "[0-9]{".concat(e, "}");
}, Date.prototype.setHours, "hours", function(e) {
return function() {
return M(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 M(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 M(Date.prototype.getSeconds.call(this), 2);
} ],
l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
return M(Date.prototype.getMilliseconds.call(this), 3);
}, 3 ],
L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
return M(Date.prototype.getMilliseconds.call(this), 2);
}, 2 ],
t: [ "[ap]", k, "ampm", b, 1 ],
tt: [ "[ap]m", k, "ampm", b, 2 ],
T: [ "[AP]", k, "ampm", b, 1 ],
TT: [ "[AP]M", k, "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 l(e, 1)[0];
})).join(""));
return e;
} ],
o: [ "" ],
S: [ "" ]
}, y = {
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 k(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 n in g) if (/\.*x$/.test(n)) {
var a = n[0] + "\\d+";
-1 === i.indexOf(a) && i.push(a);
} else -1 === t.indexOf(n[0]) && t.push(n[0]);
e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.",
e.tokenizer = new RegExp(e.tokenizer, "g");
}
return e.tokenizer;
}
function w(e, t, i) {
if (!m) 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 n = E(t.pos, i);
if ("yyyy" === n.targetMatch[0] && t.pos - n.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, n) {
var a, o, s = "";
for (P(i).lastIndex = 0; a = P(i).exec(e); ) {
if (void 0 === t) if (o = x(a)) s += "(" + o[0] + ")"; else switch (a[0]) {
case "[":
s += "(";
break;
case "]":
s += ")?";
break;
default:
s += (0, r.default)(a[0]);
} else if (o = x(a)) if (!0 !== n && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += a[0]; else s += a[0];
}
return s;
}
function M(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" === u(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
}
function O(e, t) {
return S(t.inputFormat, {
date: e
}, t);
}
function E(e, t) {
var i, n, a = 0, r = 0;
for (P(t).lastIndex = 0; n = P(t).exec(t.inputFormat); ) {
var o = new RegExp("\\d+$").exec(n[0]);
if ((a += r = o ? parseInt(o[0]) : n[0].length) >= e + 1) {
i = n, n = P(t).exec(t.inputFormat);
break;
}
}
return {
targetMatchIndex: a - r,
nextMatch: n,
targetMatch: i
};
}
n.default.extendAliases({
datetime: {
mask: function(e) {
return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = y[e.inputFormat] || e.inputFormat,
e.displayFormat = y[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = y[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, n, a, r, o, s) {
if (s) return !0;
if (isNaN(i) && e[t] !== i) {
var l = E(t, a);
if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) {
var c = g[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, i, n, a, r, o, l) {
var c, u;
if (o) return !0;
if (!1 === n && (((c = E(t + 1, a)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]] || (c = E(t + 2, a)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]]) && (u = g[c.targetMatch[0]][0]),
void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(i + "0") ? (e[t] = i,
e[t + 1] = "0", n = {
pos: t + 2,
caret: t
}) : new RegExp(u).test("0" + i) && (e[t] = "0", e[t + 1] = i, n = {
pos: t + 2
})), !1 === n)) return n;
if (n.fuzzy && (e = n.buffer, t = n.pos), (c = E(t, a)).targetMatch && c.targetMatch[0] && void 0 !== g[c.targetMatch[0]]) {
var f = g[c.targetMatch[0]];
u = f[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 && r.validPositions[c.targetMatchIndex] && r.validPositions[c.targetMatchIndex + 1] && (r.validPositions[c.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 m = n, y = _(e.join(""), a.inputFormat, a);
return m && !isNaN(y.date.getTime()) && (a.prefillYear && (m = function(e, t, i) {
if (e.year !== e.rawyear) {
var n = v.toString(), a = e.rawyear.replace(/[^0-9]/g, ""), r = n.slice(0, a.length), o = n.slice(a.length);
if (2 === a.length && a === r) {
var s = new Date(v, e.month - 1, e.day);
e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(v),
e.year = n, t.insert = [ {
pos: t.pos + 1,
c: o[0]
}, {
pos: t.pos + 2,
c: o[1]
} ]);
}
}
return t;
}(y, m, a)), m = function(e, t, i, n, a) {
if (!t) return t;
if (t && i.min && !isNaN(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]], c = i.min[o[2]], u = i.max ? i.max[o[2]] : c, f = [], d = !1, p = 0; p < c.length; p++) void 0 !== n.validPositions[p + r.index] || d ? (f[p] = l[p],
d = d || l[p] > c[p]) : (f[p] = c[p], "year" === o[2] && l.length - 1 == p && c != u && (f = (parseInt(f.join("")) + 1).toString().split("")),
"ampm" === o[2] && c != u && i.min.date.getTime() > e.date.getTime() && (f[p] = u[p]));
s.call(e._date, f.join(""));
}
}
t = i.min.date.getTime() <= e.date.getTime(), e.reInit();
}
return t && i.max && (isNaN(i.max.date.getTime()) || (t = i.max.date.getTime() >= e.date.getTime())),
t;
}(y, m = w.call(this, y, m, a), a, r)), void 0 !== t && m && n.pos !== t ? {
buffer: S(a.inputFormat, y, a).split(""),
refreshFromBuffer: {
start: t,
end: n.pos
},
pos: n.caret || n.pos
} : m;
},
onKeyDown: function(e, t, i, n) {
e.ctrlKey && e.key === a.keys.ArrowRight && (this.inputmask._valueSet(O(new Date, n)),
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, n) {
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 = O(e, t)), e;
},
insertMode: !1,
insertModeVisual: !1,
shiftPositions: !1,
keepStatic: !1,
inputmode: "numeric",
prefillYear: !0
}
});
},
3851: function(e, t, i) {
var n, a = (n = i(2394)) && n.__esModule ? n : {
default: n
}, r = i(8711), o = i(4713);
a.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, n, a) {
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);
}
a.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 = e.separator, i = e.quantifier, n = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", a = n;
if (t) for (var r = 0; r < i; r++) a += "[".concat(t).concat(n, "]");
return a;
},
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, n, a, s, l) {
var c = 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(c.join(""));
}
}
});
},
207: function(e, t, i) {
var n = s(i(2394)), a = s(i(7184)), r = i(8711), o = i(2839);
function s(e) {
return e && e.__esModule ? e : {
default: e
};
}
var l = n.default.dependencyLib;
function c(e, t) {
for (var i = "", a = 0; a < e.length; a++) n.default.prototype.definitions[e.charAt(a)] || t.definitions[e.charAt(a)] || t.optionalmarker[0] === e.charAt(a) || t.optionalmarker[1] === e.charAt(a) || t.quantifiermarker[0] === e.charAt(a) || t.quantifiermarker[1] === e.charAt(a) || t.groupmarker[0] === e.charAt(a) || t.groupmarker[1] === e.charAt(a) || t.alternatormarker === e.charAt(a) ? i += "\\" + e.charAt(a) : i += e.charAt(a);
return i;
}
function u(e, t, i, n) {
if (e.length > 0 && t > 0 && (!i.digitsOptional || n)) {
var a = e.indexOf(i.radixPoint), r = !1;
i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === a && (e.push(i.radixPoint),
a = e.length - 1);
for (var o = 1; o <= t; o++) isFinite(e[a + o]) || (e[a + o] = "0");
}
return r && e.push(i.negationSymbol.back), e;
}
function f(e, t) {
var i = 0;
for (var n in "+" === e && (i = r.seekNext.call(this, t.validPositions.length - 1)),
t.tests) if ((n = parseInt(n)) >= i) for (var a = 0, o = t.tests[n].length; a < o; a++) if ((void 0 === t.validPositions[n] || "-" === e) && t.tests[n][a].match.def === e) return n + (void 0 !== t.validPositions[n] && "-" !== e ? 1 : 0);
return i;
}
function d(e, t) {
for (var i = -1, n = 0, a = t.validPositions.length; n < a; n++) {
var r = t.validPositions[n];
if (r && r.match.def === e) {
i = n;
break;
}
}
return i;
}
function p(e, t, i, n, a) {
var r = t.buffer ? t.buffer.indexOf(a.radixPoint) : -1, o = (-1 !== r || n && a.jitMasking) && new RegExp(a.definitions[9].validator).test(e);
return a._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
insert: {
pos: r === i ? r + 1 : r,
c: a.radixPoint
},
pos: i
} : o;
}
n.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 n, r = "[+]";
if (r += 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),
r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
var o = e.digits.toString().split(",");
isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (n = r + i + t + "{0," + e.digits + "}",
e.keepStatic = !0) : r += i + t + "{" + e.digits + "}");
} else e.inputmode = "numeric";
return r += c(e.suffix, e), r += "[-]", n && (r = [ n + c(e.suffix, e) + "[-]", r ]),
e.greedy = !1, function(e) {
void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
a.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, a.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.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
r;
},
_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: p
},
1: {
validator: p,
definitionSymbol: "9"
},
9: {
validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
definitionSymbol: "*"
},
"+": {
validator: function(e, t, i, n, a) {
return a.allowMinus && ("-" === e || e === a.negationSymbol.front);
}
},
"-": {
validator: function(e, t, i, n, a) {
return a.allowMinus && e === a.negationSymbol.back;
}
}
},
preValidation: function(e, t, i, n, a, r, o, s) {
if (!1 !== a.__financeInput && i === a.radixPoint) return !1;
var l = e.indexOf(a.radixPoint), c = t;
if (t = function(e, t, i, n, a) {
return a._radixDance && a.numericInput && t !== a.negationSymbol.back && e <= i && (i > 0 || t == a.radixPoint) && (void 0 === n.validPositions[e - 1] || n.validPositions[e - 1].input !== a.negationSymbol.back) && (e -= 1),
e;
}(t, i, l, r, a), "-" === i || i === a.negationSymbol.front) {
if (!0 !== a.allowMinus) return !1;
var u = !1, p = d("+", r), h = d("-", r);
return -1 !== p && (u = [ p, h ]), !1 !== u ? {
remove: u,
caret: c - a.negationSymbol.back.length
} : {
insert: [ {
pos: f.call(this, "+", r),
c: a.negationSymbol.front,
fromIsValid: !0
}, {
pos: f.call(this, "-", r),
c: a.negationSymbol.back,
fromIsValid: void 0
} ],
caret: c + a.negationSymbol.back.length
};
}
if (i === a.groupSeparator) return {
caret: c
};
if (s) return !0;
if (-1 !== l && !0 === a._radixDance && !1 === n && i === a.radixPoint && void 0 !== a.digits && (isNaN(a.digits) || parseInt(a.digits) > 0) && l !== t) return {
caret: a._radixDance && t === l - 1 ? l + 1 : l
};
if (!1 === a.__financeInput) if (n) {
if (a.digitsOptional) return {
rewritePosition: o.end
};
if (!a.digitsOptional) {
if (o.begin > l && o.end <= l) return i === a.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 (!a.showMaskOnHover && !a.showMaskOnFocus && !a.digitsOptional && a.digits > 0 && "" === this.__valueGet.call(this.el)) return {
rewritePosition: l
};
return {
rewritePosition: t
};
},
postValidation: function(e, t, i, n, a, r, o) {
if (!1 === n) return n;
if (o) return !0;
if (null !== a.min || null !== a.max) {
var s = a.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, a, {
unmaskAsNumber: !0
}));
if (null !== a.min && s < a.min && (s.toString().length > a.min.toString().length || s < 0)) return !1;
if (null !== a.max && s > a.max) return !!a.SetMaxOnOverflow && {
refreshFromBuffer: !0,
buffer: u(a.max.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
};
}
return n;
},
onUnMask: function(e, t, i) {
if ("" === t && !0 === i.nullable) return t;
var n = e.replace(i.prefix, "");
return n = (n = n.replace(i.suffix, "")).replace(new RegExp((0, a.default)(i.groupSeparator), "g"), ""),
"" !== i.placeholder.charAt(0) && (n = n.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")),
i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== n.indexOf(i.radixPoint) && (n = n.replace(a.default.call(this, i.radixPoint), ".")),
n = (n = n.replace(new RegExp("^" + (0, a.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0,
a.default)(i.negationSymbol.back) + "$"), ""), Number(n)) : n;
},
isComplete: function(e, t) {
var i = (t.numericInput ? e.slice().reverse() : e).join("");
return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, a.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
a.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
a.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0,
a.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 n = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, r = e.split(i), o = r[0].replace(/[^\-0-9]/g, ""), s = r.length > 1 ? r[1].replace(/[^0-9]/g, "") : "", l = r.length > 1;
e = o + ("" !== s ? i + s : s);
var c = 0;
if ("" !== i && (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, a.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(c)),
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 n && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), c, t, l).join("");
},
onBeforeWrite: function(e, t, i, n) {
function r(e, t) {
if (!1 !== n.__financeInput || t) {
var i = e.indexOf(n.radixPoint);
-1 !== i && e.splice(i, 1);
}
if ("" !== n.groupSeparator) for (;-1 !== (i = e.indexOf(n.groupSeparator)); ) e.splice(i, 1);
return e;
}
var o, s;
if (n.stripLeadingZeroes && (s = function(e, t) {
var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, a.default)(t.negationSymbol.front) + "?" : "") + (0,
a.default)(t.prefix) + ")(.*)(" + (0, a.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
a.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), n = i ? i[2] : "", r = !1;
return n && (n = n.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(n)),
!(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < n.length)) && r;
}(t, n))) for (var c = 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[c + d],
delete t[c + d];
if (e) switch (e.type) {
case "blur":
case "checkval":
if (null !== n.min) {
var p = n.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, n, {
unmaskAsNumber: !0
}));
if (null !== n.min && p < n.min) return {
refreshFromBuffer: !0,
buffer: u(n.min.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse()
};
}
if (t[t.length - 1] === n.negationSymbol.front) {
var h = new RegExp("(^" + ("" != n.negationSymbol.front ? (0, a.default)(n.negationSymbol.front) + "?" : "") + (0,
a.default)(n.prefix) + ")(.*)(" + (0, a.default)(n.suffix) + ("" != n.negationSymbol.back ? (0,
a.default)(n.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join(""));
0 == (h ? h[2] : "") && (o = {
refreshFromBuffer: !0,
buffer: [ 0 ]
});
} else if ("" !== n.radixPoint) {
t.indexOf(n.radixPoint) === n.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + n.suffix.length) : (t.splice(0, 1 + n.suffix.length),
o = {
refreshFromBuffer: !0,
buffer: r(t)
}));
}
if (n.enforceDigitsOnBlur) {
var v = (o = o || {}) && o.buffer || t.slice().reverse();
o.refreshFromBuffer = !0, o.buffer = u(v, n.digits, n, !0).reverse();
}
}
return o;
},
onKeyDown: function(e, t, i, n) {
var a, r = l(this);
if (3 != e.location) {
var s, c = e.key;
if ((s = n.shortcuts && n.shortcuts[c]) && s.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(s)),
r.trigger("setvalue"), !1;
}
if (e.ctrlKey) switch (e.key) {
case o.keys.ArrowUp:
return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(n.step)),
r.trigger("setvalue"), !1;
case o.keys.ArrowDown:
return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(n.step)),
r.trigger("setvalue"), !1;
}
if (!e.shiftKey && (e.key === o.keys.Delete || e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI) && i.begin !== t.length) {
if (t[e.key === o.keys.Delete ? i.begin - 1 : i.end] === n.negationSymbol.front) return a = t.slice().reverse(),
"" !== n.negationSymbol.front && a.shift(), "" !== n.negationSymbol.back && a.pop(),
r.trigger("setvalue", [ a.join(""), i.begin ]), !1;
if (!0 === n._radixDance) {
var f = t.indexOf(n.radixPoint);
if (n.digitsOptional) {
if (0 === f) return (a = t.slice().reverse()).pop(), r.trigger("setvalue", [ a.join(""), i.begin >= a.length ? a.length : i.begin ]),
!1;
} else if (-1 !== f && (i.begin < f || i.end < f || e.key === o.keys.Delete && (i.begin === f || i.begin - 1 === f))) {
var d = void 0;
return i.begin === i.end && (e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI ? i.begin++ : e.key === o.keys.Delete && i.begin - 1 === f && (d = l.extend({}, i),
i.begin--, i.end--)), (a = t.slice().reverse()).splice(a.length - i.begin, i.begin - i.end + 1),
a = u(a, n.digits, n).join(""), d && (i = d), r.trigger("setvalue", [ a, i.begin >= a.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 n;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var a = ((n = i(8741)) && n.__esModule ? n : {
default: n
}).default ? window : {};
t.default = a;
},
7760: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.HandleNativePlaceholder = function(e, t) {
var i = e ? e.inputmask : this;
if (s.ie) {
if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
var n = r.getBuffer.call(i).slice(), a = e.inputmask._valueGet();
if (a !== t) {
var o = r.getLastValidPosition.call(i);
-1 === o && a === r.getBufferTemplate.call(i).join("") ? n = [] : -1 !== o && u.call(i, n),
d(e, n);
}
}
} else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
}, t.applyInputValue = c, t.checkVal = f, t.clearOptionalTail = u, t.unmaskedvalue = function(e) {
var t = e ? e.inputmask : this, i = t.opts, n = t.maskset;
if (e) {
if (void 0 === e.inputmask) return e.value;
e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
}
for (var a = [], o = n.validPositions, s = 0, l = o.length; s < l; s++) o[s] && o[s].match && (1 != o[s].match.static || Array.isArray(n.metadata) && !0 !== o[s].generatedInput) && a.push(o[s].input);
var u = 0 === a.length ? "" : (t.isRTL ? a.reverse() : a).join("");
if ("function" == typeof i.onUnMask) {
var f = (t.isRTL ? r.getBuffer.call(t).slice().reverse() : r.getBuffer.call(t)).join("");
u = i.onUnMask.call(t, f, u, i);
}
return u;
}, t.writeBuffer = d;
var n = i(2839), a = i(4713), r = i(8711), o = i(7215), s = i(9845), l = i(6030);
function c(e, t) {
var i = e ? e.inputmask : this, n = i.opts;
e.inputmask.refreshValue = !1, "function" == typeof n.onBeforeMask && (t = n.onBeforeMask.call(i, t, n) || t),
f(e, !0, !1, t = (t || "").toString().split("")), i.undoValue = i._valueGet(!0),
(n.clearMaskOnLostFocus || n.clearIncomplete) && e.inputmask._valueGet() === r.getBufferTemplate.call(i).join("") && -1 === r.getLastValidPosition.call(i) && e.inputmask._valueSet("");
}
function u(e) {
e.length = 0;
for (var t, i = a.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t);
return e;
}
function f(e, t, i, n, s) {
var c = e ? e.inputmask : this, u = c.maskset, f = c.opts, p = c.dependencyLib, h = n.slice(), v = "", m = -1, g = void 0, y = f.skipOptionalPartCharacter;
f.skipOptionalPartCharacter = "", r.resetMaskSet.call(c), u.tests = {}, m = f.radixPoint ? r.determineNewCaretPosition.call(c, {
begin: 0,
end: 0
}, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, u.p = m, c.caretPos = {
begin: m
};
var k = [], b = c.caretPos;
if (h.forEach((function(e, t) {
if (void 0 !== e) {
var n = new p.Event("_checkval");
n.key = e, v += e;
var o = r.getLastValidPosition.call(c, void 0, !0);
!function(e, t) {
for (var i = a.getMaskTemplate.call(c, !0, 0).slice(e, r.seekNext.call(c, e, !1, !1)).join("").replace(/'/g, ""), n = i.indexOf(t); n > 0 && " " === i[n - 1]; ) n--;
var o = 0 === n && !r.isMask.call(c, e) && (a.getTest.call(c, e).match.nativeDef === t.charAt(0) || !0 === a.getTest.call(c, e).match.static && a.getTest.call(c, e).match.nativeDef === "'" + t.charAt(0) || " " === a.getTest.call(c, e).match.nativeDef && (a.getTest.call(c, e + 1).match.nativeDef === t.charAt(0) || !0 === a.getTest.call(c, e + 1).match.static && a.getTest.call(c, e + 1).match.nativeDef === "'" + t.charAt(0)));
if (!o && n > 0 && !r.isMask.call(c, e, !1, !0)) {
var s = r.seekNext.call(c, e);
c.caretPos.begin < s && (c.caretPos = {
begin: s
});
}
return o;
}(m, v) ? (g = l.EventHandlers.keypressEvent.call(c, n, !0, !1, i, c.caretPos.begin)) && (m = c.caretPos.begin + 1,
v = "") : g = l.EventHandlers.keypressEvent.call(c, n, !0, !1, i, o + 1), g ? (void 0 !== g.pos && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static && void 0 === u.validPositions[g.pos].alternation && (k.push(g.pos),
c.isRTL || (g.forwardPosition = g.pos + 1)), d.call(c, void 0, r.getBuffer.call(c), g.forwardPosition, n, !1),
c.caretPos = {
begin: g.forwardPosition,
end: g.forwardPosition
}, b = c.caretPos) : void 0 === u.validPositions[t] && h[t] === a.getPlaceholder.call(c, t) && r.isMask.call(c, t, !0) ? c.caretPos.begin++ : c.caretPos = b;
}
})), k.length > 0) {
var x, P, w = r.seekNext.call(c, -1, void 0, !1);
if (!o.isComplete.call(c, r.getBuffer.call(c)) && k.length <= w || o.isComplete.call(c, r.getBuffer.call(c)) && k.length > 0 && k.length !== w && 0 === k[0]) for (var S = w; void 0 !== (x = k.shift()); ) {
var M = new p.Event("_checkval");
if ((P = u.validPositions[x]).generatedInput = !0, M.key = P.input, (g = l.EventHandlers.keypressEvent.call(c, M, !0, !1, i, S)) && void 0 !== g.pos && g.pos !== x && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static) k.push(g.pos); else if (!g) break;
S++;
}
}
t && d.call(c, e, r.getBuffer.call(c), g ? g.forwardPosition : c.caretPos.begin, s || new p.Event("checkval"), s && ("input" === s.type && c.undoValue !== r.getBuffer.call(c).join("") || "paste" === s.type)),
f.skipOptionalPartCharacter = y;
}
function d(e, t, i, a, s) {
var l = e ? e.inputmask : this, c = l.opts, u = l.dependencyLib;
if (a && "function" == typeof c.onBeforeWrite) {
var f = c.onBeforeWrite.call(l, a, t, i, c);
if (f) {
if (f.refreshFromBuffer) {
var d = f.refreshFromBuffer;
o.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = r.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 || r.caret.call(l, e, i, void 0, void 0, void 0 !== a && "keydown" === a.type && (a.key === n.keys.Delete || a.key === n.keys.Backspace)),
!0 === s)) {
var p = u(e), h = e.inputmask._valueGet();
e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function() {
h === r.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === o.isComplete.call(l, t) && p.trigger("complete");
}), 0);
}
}
},
2394: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var n = i(157), a = m(i(4963)), r = m(i(9380)), o = i(2391), s = i(4713), l = i(8711), c = i(7215), u = i(7760), f = i(9716), d = m(i(7392)), p = m(i(3976)), h = m(i(8741));
function v(e) {
return v = "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;
}, v(e);
}
function m(e) {
return e && e.__esModule ? e : {
default: e
};
}
var g = r.default.document, y = "_inputmask_opts";
function k(e, t, i) {
if (h.default) {
if (!(this instanceof k)) return new k(e, t, i);
this.dependencyLib = a.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 = a.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.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 b(e, t, i) {
var n = k.prototype.aliases[e];
return n ? (n.alias && b(n.alias, void 0, i), a.default.extend(!0, i, n), a.default.extend(!0, i, t),
!0) : (null === i.mask && (i.mask = e), !1);
}
k.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 : [].slice.call(e)).forEach((function(e, i) {
var s = a.default.extend(!0, {}, t.opts);
if (function(e, t, i, n) {
function o(t, a) {
var o = "" === n ? t : n + "-" + t;
null !== (a = void 0 !== a ? a : e.getAttribute(o)) && ("string" == typeof a && (0 === t.indexOf("on") ? a = r.default[a] : "false" === a ? a = !1 : "true" === a && (a = !0)),
i[t] = a);
}
if (!0 === t.importDataAttributes) {
var s, l, c, u, f = e.getAttribute(n);
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 (s in o("alias", c), i.alias && b(i.alias, i, t), t) {
if (l) for (u in c = void 0, l) if (u.toLowerCase() === s.toLowerCase()) {
c = l[u];
break;
}
o(s, c);
}
}
a.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, a.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 k(void 0, void 0, !0), e.inputmask.opts = s, 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 = l, a.default.data(e, y, t.userOptions),
n.mask.call(e.inputmask));
}
})), e && e[0] && e[0].inputmask || this;
},
option: function(e, t) {
return "string" == typeof e ? this.opts[e] : "object" === v(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, 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("");
u.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 u.unmaskedvalue.call(this, this.el);
},
remove: function() {
if (this.el) {
a.default.data(this.el, y, null);
var e = this.opts.autoUnmask ? (0, u.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),
(this.isRTL ? l.getBufferTemplate.call(this).reverse() : 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),
c.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("");
u.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), n = l.determineLastRequiredPosition.call(this), a = i.length - 1; a > n && !l.isMask.call(this, a); a--) ;
return i.splice(n, a + 1 - n), c.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("");
u.checkVal.call(this, void 0, !0, !1, i);
var n = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
return t ? {
value: n,
metadata: this.getmetadata()
} : n;
},
setValue: function(e) {
this.el && (0, a.default)(this.el).trigger("setvalue", [ e ]);
},
analyseMask: o.analyseMask
}, k.extendDefaults = function(e) {
a.default.extend(!0, k.prototype.defaults, e);
}, k.extendDefinitions = function(e) {
a.default.extend(!0, k.prototype.definitions, e);
}, k.extendAliases = function(e) {
a.default.extend(!0, k.prototype.aliases, e);
}, k.format = function(e, t, i) {
return k(t).format(e, i);
}, k.unmask = function(e, t) {
return k(t).unmaskedvalue(e);
}, k.isValid = function(e, t) {
return k(t).isValid(e);
}, k.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();
}));
}, k.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, a.default)(e).trigger("setvalue", [ t ]);
}));
}, k.dependencyLib = a.default, r.default.Inputmask = k;
var x = k;
t.default = x;
},
5296: function(e, t, i) {
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);
}
var a = 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, (r = a.key, o = void 0, o = function(e, t) {
if ("object" !== n(e) || null === e) return e;
var i = e[Symbol.toPrimitive];
if (void 0 !== i) {
var a = i.call(e, t || "default");
if ("object" !== n(a)) return a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === t ? String : Number)(e);
}(r, "string"), "symbol" === n(o) ? o : String(o)), a);
}
var r, o;
}
function l(e) {
var t = f();
return function() {
var i, a = p(e);
if (t) {
var r = p(this).constructor;
i = Reflect.construct(a, arguments, r);
} else i = a.apply(this, arguments);
return function(e, t) {
if (t && ("object" === n(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);
}(this, i);
};
}
function c(e) {
var t = "function" == typeof Map ? new Map : void 0;
return c = 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, n);
}
function n() {
return u(e, arguments, p(this).constructor);
}
return n.prototype = Object.create(e.prototype, {
constructor: {
value: n,
enumerable: !1,
writable: !0,
configurable: !0
}
}), d(n, e);
}, c(e);
}
function u(e, t, i) {
return u = f() ? Reflect.construct.bind() : function(e, t, i) {
var n = [ null ];
n.push.apply(n, t);
var a = new (Function.bind.apply(e, n));
return i && d(a, i.prototype), a;
}, u.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 ? Object.setPrototypeOf.bind() : function(e, t) {
return e.__proto__ = t, e;
}, d(e, t);
}
function p(e) {
return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
return e.__proto__ || Object.getPrototypeOf(e);
}, p(e);
}
function h(e) {
return e && e.__esModule ? e : {
default: e
};
}
var v = a.default.document;
if (o.default && v && v.head && v.head.attachShadow && a.default.customElements && void 0 === a.default.customElements.get("input-mask")) {
var m = function(e) {
!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 && d(e, t);
}(o, e);
var t, i, n, a = l(o);
function o() {
var e;
!function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}(this, o);
var t = (e = a.call(this)).getAttributeNames(), i = e.attachShadow({
mode: "closed"
}), n = v.createElement("input");
for (var s in n.type = "text", i.appendChild(n), t) Object.prototype.hasOwnProperty.call(t, s) && n.setAttribute(t[s], e.getAttribute(t[s]));
var l = new r.default;
return l.dataAttribute = "", l.mask(n), n.inputmask.shadowRoot = i, e;
}
return t = o, i && s(t.prototype, i), n && s(t, n), Object.defineProperty(t, "prototype", {
writable: !1
}), t;
}(c(HTMLElement));
a.default.customElements.define("input-mask", m);
}
},
2839: function(e, t) {
function i(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) {
var n, a, r, o, s = [], l = !0, c = !1;
try {
if (r = (i = i.call(e)).next, 0 === t) {
if (Object(i) !== i) return;
l = !1;
} else for (;!(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0) ;
} catch (e) {
c = !0, a = e;
} finally {
try {
if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
} finally {
if (c) throw a;
}
}
return s;
}
}(e, t) || function(e, t) {
if (!e) return;
if ("string" == typeof e) return n(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 n(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 n(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
return n;
}
Object.defineProperty(t, "__esModule", {
value: !0
}), t.keys = t.keyCode = void 0, t.toKey = function(e, t) {
return r[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase());
}, t.toKeyCode = function(e) {
return a[e];
};
var a = {
AltGraph: 18,
ArrowDown: 40,
ArrowLeft: 37,
ArrowRight: 39,
ArrowUp: 38,
Backspace: 8,
BACKSPACE_SAFARI: 127,
CapsLock: 20,
Delete: 46,
End: 35,
Enter: 13,
Escape: 27,
Home: 36,
Insert: 45,
PageDown: 34,
PageUp: 33,
Space: 32,
Tab: 9,
c: 67,
x: 88,
z: 90,
Shift: 16,
Control: 17,
Alt: 18,
Pause: 19,
Meta_LEFT: 91,
Meta_RIGHT: 92,
ContextMenu: 93,
Process: 229,
Unidentified: 229,
F1: 112,
F2: 113,
F3: 114,
F4: 115,
F5: 116,
F6: 117,
F7: 118,
F8: 119,
F9: 120,
F10: 121,
F11: 122,
F12: 123
};
t.keyCode = a;
var r = Object.entries(a).reduce((function(e, t) {
var n = i(t, 2), a = n[0], r = n[1];
return e[r] = void 0 === e[r] ? a : e[r], e;
}), {}), o = Object.entries(a).reduce((function(e, t) {
var n = i(t, 2), a = n[0];
n[1];
return e[a] = "Space" === a ? " " : a, e;
}), {});
t.keys = o;
},
2391: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.analyseMask = function(e, t, i) {
var n, o, s, l, c, u, 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 a.default, v = [], m = [], g = !1;
function y(e, n, a) {
a = void 0 !== a ? a : e.matches.length;
var o = e.matches[a - 1];
if (t) {
if (0 === n.indexOf("[") || p && /\\d|\\s|\\w|\\p/i.test(n) || "." === n) {
var s = i.casing ? "i" : "";
/^\\p\{.*}$/i.test(n) && (s += "u"), e.matches.splice(a++, 0, {
fn: new RegExp(n, s),
static: !1,
optionality: !1,
newBlockMarker: void 0 === o ? "master" : o.def !== n,
casing: null,
def: n,
placeholder: void 0,
nativeDef: n
});
} else p && (n = n[n.length - 1]), n.split("").forEach((function(t, n) {
o = e.matches[a - 1], e.matches.splice(a++, 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 l = i.definitions && i.definitions[n] || i.usePrototypeDefinitions && r.default.prototype.definitions[n];
l && !p ? e.matches.splice(a++, 0, {
fn: l.validator ? "string" == typeof l.validator ? new RegExp(l.validator, i.casing ? "i" : "") : new function() {
this.test = l.validator;
} : new RegExp("."),
static: l.static || !1,
optionality: l.optional || !1,
defOptionality: l.optional || !1,
newBlockMarker: void 0 === o || l.optional ? "master" : o.def !== (l.definitionSymbol || n),
casing: l.casing,
def: l.definitionSymbol || n,
placeholder: l.placeholder,
nativeDef: n,
generated: l.generated
}) : (e.matches.splice(a++, 0, {
fn: /[a-z]/i.test(i.staticDefinitionSymbol || n) ? new RegExp("[" + (i.staticDefinitionSymbol || n) + "]", i.casing ? "i" : "") : null,
static: !0,
optionality: !1,
newBlockMarker: void 0 === o ? "master" : o.def !== n && !0 !== o.static,
casing: null,
def: i.staticDefinitionSymbol || n,
placeholder: void 0 !== i.staticDefinitionSymbol ? n : void 0,
nativeDef: (p ? "'" : "") + n
}), p = !1);
}
}
function k() {
if (v.length > 0) {
if (y(l = v[v.length - 1], o), l.isAlternator) {
c = v.pop();
for (var e = 0; e < c.matches.length; e++) c.matches[e].isGroup && (c.matches[e].isGroup = !1);
v.length > 0 ? (l = v[v.length - 1]).matches.push(c) : h.matches.push(c);
}
} else y(h, o);
}
function b(e) {
var t = new a.default(!0);
return t.openGroup = !1, t.matches = e, t;
}
function x() {
if ((s = v.pop()).openGroup = !1, void 0 !== s) if (v.length > 0) {
if ((l = v[v.length - 1]).matches.push(s), l.isAlternator) {
for (var e = (c = v.pop()).matches[0].matches ? c.matches[0].matches.length : 1, t = 0; t < c.matches.length; t++) c.matches[t].isGroup = !1,
c.matches[t].alternatorGroup = !1, null === i.keepStatic && e < (c.matches[t].matches ? c.matches[t].matches.length : 1) && (i.keepStatic = !0),
e = c.matches[t].matches ? c.matches[t].matches.length : 1;
v.length > 0 ? (l = v[v.length - 1]).matches.push(c) : h.matches.push(c);
}
} else h.matches.push(s); else k();
}
function P(e) {
var t = e.pop();
return t.isQuantifier && (t = b([ e.pop(), t ])), t;
}
t && (i.optionalmarker[0] = void 0, i.optionalmarker[1] = void 0);
for (;n = t ? d.exec(e) : f.exec(e); ) {
if (o = n[0], t) {
switch (o.charAt(0)) {
case "?":
o = "{0,1}";
break;
case "+":
case "*":
o = "{" + o + "}";
break;
case "|":
if (0 === v.length) {
var w = b(h.matches);
w.openGroup = !0, v.push(w), h.matches = [], g = !0;
}
}
switch (o) {
case "\\d":
o = "[0-9]";
break;
case "\\p":
o += d.exec(e)[0], o += d.exec(e)[0];
}
}
if (p) k(); else switch (o.charAt(0)) {
case "$":
case "^":
t || k();
break;
case i.escapeChar:
p = !0, t && k();
break;
case i.optionalmarker[1]:
case i.groupmarker[1]:
x();
break;
case i.optionalmarker[0]:
v.push(new a.default(!1, !0));
break;
case i.groupmarker[0]:
v.push(new a.default(!0));
break;
case i.quantifiermarker[0]:
var S = new a.default(!1, !1, !0), M = (o = o.replace(/[{}?]/g, "")).split("|"), _ = M[0].split(","), O = isNaN(_[0]) ? _[0] : parseInt(_[0]), E = 1 === _.length ? O : isNaN(_[1]) ? _[1] : parseInt(_[1]), T = isNaN(M[1]) ? M[1] : parseInt(M[1]);
"*" !== O && "+" !== O || (O = "*" === E ? 0 : 1), S.quantifier = {
min: O,
max: E,
jit: T
};
var j = v.length > 0 ? v[v.length - 1].matches : h.matches;
(n = j.pop()).isGroup || (n = b([ n ])), j.push(n), j.push(S);
break;
case i.alternatormarker:
if (v.length > 0) {
var A = (l = v[v.length - 1]).matches[l.matches.length - 1];
u = l.openGroup && (void 0 === A.matches || !1 === A.isGroup && !1 === A.isAlternator) ? v.pop() : P(l.matches);
} else u = P(h.matches);
if (u.isAlternator) v.push(u); else if (u.alternatorGroup ? (c = v.pop(), u.alternatorGroup = !1) : c = new a.default(!1, !1, !1, !0),
c.matches.push(u), v.push(c), u.openGroup) {
u.openGroup = !1;
var D = new a.default(!0);
D.alternatorGroup = !0, v.push(D);
}
break;
default:
k();
}
}
g && x();
for (;v.length > 0; ) s = v.pop(), h.matches.push(s);
h.matches.length > 0 && (!function e(n) {
n && n.matches && n.matches.forEach((function(a, r) {
var o = n.matches[r + 1];
(void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && a && a.isGroup && (a.isGroup = !1,
t || (y(a, i.groupmarker[0], 0), !0 !== a.openGroup && y(a, i.groupmarker[1]))),
e(a);
}));
}(h), m.push(h));
(i.numericInput || i.isRTL) && function e(t) {
for (var n in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, n)) {
var a = parseInt(n);
if (t.matches[n].isQuantifier && t.matches[a + 1] && t.matches[a + 1].isGroup) {
var r = t.matches[n];
t.matches.splice(n, 1), t.matches.splice(a + 1, 0, r);
}
void 0 !== t.matches[n].matches ? t.matches[n] = e(t.matches[n]) : t.matches[n] = ((o = t.matches[n]) === i.optionalmarker[0] ? o = i.optionalmarker[1] : o === i.optionalmarker[1] ? o = i.optionalmarker[0] : o === i.groupmarker[0] ? o = i.groupmarker[1] : o === i.groupmarker[1] && (o = i.groupmarker[0]),
o);
}
var o;
return t;
}(m[0]);
return m;
}, t.generateMaskSet = function(e, t) {
var i;
function a(e, t) {
var i = t.repeat, n = t.groupmarker, a = t.quantifiermarker, r = t.keepStatic;
if (i > 0 || "*" === i || "+" === i) {
var l = "*" === i ? 0 : "+" === i ? 1 : i;
e = n[0] + e + n[1] + a[0] + l + "," + i + a[1];
}
if (!0 === r) {
var c = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g"));
c && c.forEach((function(t, i) {
var n = function(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) {
var n, a, r, o, s = [], l = !0, c = !1;
try {
if (r = (i = i.call(e)).next, 0 === t) {
if (Object(i) !== i) return;
l = !1;
} else for (;!(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0) ;
} catch (e) {
c = !0, a = e;
} finally {
try {
if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
} finally {
if (c) throw a;
}
}
return s;
}
}(e, t) || function(e, t) {
if (!e) return;
if ("string" == typeof e) return s(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 s(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.");
}();
}(t.split("["), 2), a = n[0], r = n[1];
r = r.replace("]", ""), e = e.replace(new RegExp("".concat((0, o.default)(a), "\\[").concat((0,
o.default)(r), "\\]")), a.charAt(0) === r.charAt(0) ? "(".concat(a, "|").concat(a).concat(r, ")") : "".concat(a, "[").concat(r, "]"));
}));
}
return e;
}
function l(e, i, o) {
var s, l, c = !1;
return null !== e && "" !== e || ((c = null !== o.regex) ? e = (e = o.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (c = !0,
e = ".*")), 1 === e.length && !1 === o.greedy && 0 !== o.repeat && (o.placeholder = ""),
e = a(e, o), l = c ? "regex_" + o.regex : o.numericInput ? e.split("").reverse().join("") : e,
null !== o.keepStatic && (l = "ks_" + o.keepStatic + l), void 0 === r.default.prototype.masksCache[l] || !0 === t ? (s = {
mask: e,
maskToken: r.default.prototype.analyseMask(e, c, o),
validPositions: [],
_buffer: void 0,
buffer: void 0,
tests: {},
excludes: {},
metadata: i,
maskLength: void 0,
jitOffset: {}
}, !0 !== t && (r.default.prototype.masksCache[l] = s, s = n.default.extend(!0, {}, r.default.prototype.masksCache[l]))) : s = n.default.extend(!0, {}, r.default.prototype.masksCache[l]),
s;
}
"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 c = e.groupmarker[0];
return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) {
c.length > 1 && (c += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? c += t.mask : c += t;
})), l(c += e.groupmarker[1], e.mask, e);
}
e.mask = e.mask.pop();
}
i = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? l(e.mask.mask, e.mask, e) : l(e.mask, e.mask, e);
null === e.keepStatic && (e.keepStatic = !1);
return i;
};
var n = l(i(4963)), a = l(i(9695)), r = l(i(2394)), o = l(i(7184));
function s(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
return n;
}
function l(e) {
return e && e.__esModule ? e : {
default: e
};
}
},
157: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.mask = function() {
var e = this, t = this.opts, i = this.el, u = this.dependencyLib;
o.EventRuler.off(i);
var f = function(t, i) {
"textarea" !== t.tagName.toLowerCase() && i.ignorables.push(n.keys.Enter);
var s = t.getAttribute("type"), l = "input" === t.tagName.toLowerCase() && i.supportsInputType.includes(s) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
if (!l) if ("input" === t.tagName.toLowerCase()) {
var c = document.createElement("input");
c.setAttribute("type", s), l = "text" === c.type, c = null;
} else l = "partial";
return !1 !== l ? function(t) {
var n, s;
function l() {
return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== a.getLastValidPosition.call(e) || !0 !== i.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && i.clearMaskOnLostFocus ? (e.isRTL ? r.clearOptionalTail.call(e, a.getBuffer.call(e).slice()).reverse() : r.clearOptionalTail.call(e, a.getBuffer.call(e).slice())).join("") : n.call(this) : "" : n.call(this);
}
function c(e) {
s.call(this, e), this.inputmask && (0, r.applyInputValue)(this, e);
}
if (!t.inputmask.__valueGet) {
if (!0 !== i.noValuePatching) {
if (Object.getOwnPropertyDescriptor) {
var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0;
f && f.get && f.set ? (n = f.get, s = f.set, Object.defineProperty(t, "value", {
get: l,
set: c,
configurable: !0
})) : "input" !== t.tagName.toLowerCase() && (n = function() {
return this.textContent;
}, s = function(e) {
this.textContent = e;
}, Object.defineProperty(t, "value", {
get: l,
set: c,
configurable: !0
}));
} else document.__lookupGetter__ && t.__lookupGetter__("value") && (n = t.__lookupGetter__("value"),
s = t.__lookupSetter__("value"), t.__defineGetter__("value", l), t.__defineSetter__("value", c));
t.inputmask.__valueGet = n, t.inputmask.__valueSet = s;
}
t.inputmask._valueGet = function(t) {
return e.isRTL && !0 !== t ? n.call(this.el).split("").reverse().join("") : n.call(this.el);
}, t.inputmask._valueSet = function(t, i) {
s.call(this.el, null == t ? "" : !0 !== i && e.isRTL ? t.split("").reverse().join("") : t);
}, void 0 === n && (n = function() {
return this.value;
}, s = function(e) {
this.value = e;
}, function(t) {
if (u.valHooks && (void 0 === u.valHooks[t] || !0 !== u.valHooks[t].inputmaskpatch)) {
var n = u.valHooks[t] && u.valHooks[t].get ? u.valHooks[t].get : function(e) {
return e.value;
}, o = u.valHooks[t] && u.valHooks[t].set ? u.valHooks[t].set : function(e, t) {
return e.value = t, e;
};
u.valHooks[t] = {
get: function(t) {
if (t.inputmask) {
if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue();
var r = n(t);
return -1 !== a.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== i.nullable ? r : "";
}
return n(t);
},
set: function(e, t) {
var i = o(e, t);
return e.inputmask && (0, r.applyInputValue)(e, t), i;
},
inputmaskpatch: !0
};
}
}(t.type), function(e) {
o.EventRuler.on(e, "mouseenter", (function() {
var e = this, t = e.inputmask._valueGet(!0);
t != (e.inputmask.isRTL ? a.getBuffer.call(e.inputmask).slice().reverse() : a.getBuffer.call(e.inputmask)).join("") && (0,
r.applyInputValue)(e, t);
}));
}(t));
}
}(t) : t.inputmask = void 0, l;
}(i, t);
if (!1 !== f) {
e.originalPlaceholder = i.placeholder, e.maxLength = void 0 !== i ? i.maxLength : void 0,
-1 === e.maxLength && (e.maxLength = void 0), "inputMode" in i && null === i.getAttribute("inputmode") && (i.inputMode = t.inputmode,
i.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(i.autocomplete),
s.iphone && (t.insertModeVisual = !1, i.setAttribute("autocorrect", "off")), o.EventRuler.on(i, "submit", c.EventHandlers.submitEvent),
o.EventRuler.on(i, "reset", c.EventHandlers.resetEvent), o.EventRuler.on(i, "blur", c.EventHandlers.blurEvent),
o.EventRuler.on(i, "focus", c.EventHandlers.focusEvent), o.EventRuler.on(i, "invalid", c.EventHandlers.invalidEvent),
o.EventRuler.on(i, "click", c.EventHandlers.clickEvent), o.EventRuler.on(i, "mouseleave", c.EventHandlers.mouseleaveEvent),
o.EventRuler.on(i, "mouseenter", c.EventHandlers.mouseenterEvent), o.EventRuler.on(i, "paste", c.EventHandlers.pasteEvent),
o.EventRuler.on(i, "cut", c.EventHandlers.cutEvent), o.EventRuler.on(i, "complete", t.oncomplete),
o.EventRuler.on(i, "incomplete", t.onincomplete), o.EventRuler.on(i, "cleared", t.oncleared),
!0 !== t.inputEventOnly && o.EventRuler.on(i, "keydown", c.EventHandlers.keyEvent),
(s.mobile || t.inputEventOnly) && i.removeAttribute("maxLength"), o.EventRuler.on(i, "input", c.EventHandlers.inputFallBackEvent)),
o.EventRuler.on(i, "setvalue", c.EventHandlers.setValueEvent), a.getBufferTemplate.call(e).join(""),
e.undoValue = e._valueGet(!0);
var d = (i.inputmask.shadowRoot || i.ownerDocument).activeElement;
if ("" !== i.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || d === i) {
(0, r.applyInputValue)(i, i.inputmask._valueGet(!0), t);
var p = a.getBuffer.call(e).slice();
!1 === l.isComplete.call(e, p) && t.clearIncomplete && a.resetMaskSet.call(e), t.clearMaskOnLostFocus && d !== i && (-1 === a.getLastValidPosition.call(e) ? p = [] : r.clearOptionalTail.call(e, p)),
(!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && d === i || "" !== i.inputmask._valueGet(!0)) && (0,
r.writeBuffer)(i, p), d === i && a.caret.call(e, i, a.seekNext.call(e, a.getLastValidPosition.call(e)));
}
}
};
var n = i(2839), a = i(8711), r = i(7760), o = i(9716), s = i(9845), l = i(7215), c = i(6030);
},
9695: function(e, t) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t, i, n) {
this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1,
this.isOptional = t || !1, this.isQuantifier = i || !1, this.isAlternator = n || !1,
this.quantifier = {
min: 1,
max: 1
};
};
},
3194: 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 i = Object(this), n = i.length >>> 0;
if (0 === n) return !1;
for (var a = 0 | t, r = Math.max(a >= 0 ? a : n - Math.abs(a), 0); r < n; ) {
if (i[r] === e) return !0;
r++;
}
return !1;
}
});
},
9302: function() {
var e = Function.bind.call(Function.call, Array.prototype.reduce), t = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable), i = Function.bind.call(Function.call, Array.prototype.concat), n = Object.keys;
Object.entries || (Object.entries = function(a) {
return e(n(a), (function(e, n) {
return i(e, "string" == typeof n && t(a, n) ? [ [ n, a[n] ] ] : []);
}), []);
});
},
7149: 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;
});
},
4013: 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);
});
},
8711: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.caret = function(e, t, i, n, a) {
var r, o = this, s = this.opts;
if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart,
i = e.selectionEnd) : window.getSelection ? (r = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e || (t = r.startOffset,
i = r.endOffset) : document.selection && document.selection.createRange && (i = (t = 0 - (r = document.selection.createRange()).duplicate().moveStart("character", -e.inputmask._valueGet().length)) + r.text.length),
{
begin: n ? t : c.call(o, t),
end: n ? i : c.call(o, i)
};
if (Array.isArray(t) && (i = o.isRTL ? t[0] : t[1], t = o.isRTL ? t[1] : t[0]),
void 0 !== t.begin && (i = o.isRTL ? t.begin : t.end, t = o.isRTL ? t.end : t.begin),
"number" == typeof t) {
t = n ? t : c.call(o, t), i = "number" == typeof (i = n ? i : c.call(o, i)) ? i : t;
var l = parseInt(((e.ownerDocument.defaultView || window).getComputedStyle ? (e.ownerDocument.defaultView || window).getComputedStyle(e, null) : e.currentStyle).fontSize) * i;
if (e.scrollLeft = l > e.scrollWidth ? l : 0, e.inputmask.caretPos = {
begin: t,
end: i
}, s.insertModeVisual && !1 === s.insertMode && t === i && (a || i++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) if ("setSelectionRange" in e) e.setSelectionRange(t, i); else if (window.getSelection) {
if (r = document.createRange(), void 0 === e.firstChild || null === e.firstChild) {
var u = document.createTextNode("");
e.appendChild(u);
}
r.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length),
r.setEnd(e.firstChild, i < e.inputmask._valueGet().length ? i : e.inputmask._valueGet().length),
r.collapse(!0);
var f = window.getSelection();
f.removeAllRanges(), f.addRange(r);
} else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", i),
r.moveStart("character", t), r.select());
}
}, t.determineLastRequiredPosition = function(e) {
var t, i, r = this, s = r.maskset, l = r.dependencyLib, c = n.getMaskTemplate.call(r, !0, o.call(r), !0, !0), u = c.length, f = o.call(r), d = {}, p = s.validPositions[f], h = void 0 !== p ? p.locator.slice() : void 0;
for (t = f + 1; t < c.length; t++) h = (i = n.getTestTemplate.call(r, t, h, t - 1)).locator.slice(),
d[t] = l.extend(!0, {}, i);
var v = p && void 0 !== p.alternation ? p.locator[p.alternation] : void 0;
for (t = u - 1; t > f && (((i = d[t]).match.optionality || i.match.optionalQuantifier && i.match.newBlockMarker || v && (v !== d[t].locator[p.alternation] && 1 != i.match.static || !0 === i.match.static && i.locator[p.alternation] && a.checkAlternationMatch.call(r, i.locator[p.alternation].toString().split(","), v.toString().split(",")) && "" !== n.getTests.call(r, t)[0].def)) && c[t] === n.getPlaceholder.call(r, t, i.match)); t--) u--;
return e ? {
l: u,
def: d[u] ? d[u].match : void 0
} : u;
}, t.determineNewCaretPosition = function(e, t, i) {
var a = this, c = a.maskset, u = a.opts;
t && (a.isRTL ? e.end = e.begin : e.begin = e.end);
if (e.begin === e.end) {
switch (i = i || u.positionCaretOnClick) {
case "none":
break;
case "select":
e = {
begin: 0,
end: r.call(a).length
};
break;
case "ignore":
e.end = e.begin = l.call(a, o.call(a));
break;
case "radixFocus":
if (a.clicked > 1 && 0 == c.validPositions.length) break;
if (function(e) {
if ("" !== u.radixPoint && 0 !== u.digits) {
var t = c.validPositions;
if (void 0 === t[e] || t[e].input === n.getPlaceholder.call(a, e)) {
if (e < l.call(a, -1)) return !0;
var i = r.call(a).indexOf(u.radixPoint);
if (-1 !== i) {
for (var o = 0, s = t.length; o < s; o++) if (t[o] && i < o && t[o].input !== n.getPlaceholder.call(a, o)) return !1;
return !0;
}
}
}
return !1;
}(e.begin)) {
var f = r.call(a).join("").indexOf(u.radixPoint);
e.end = e.begin = u.numericInput ? l.call(a, f) : f;
break;
}
default:
var d = e.begin, p = o.call(a, d, !0), h = l.call(a, -1 !== p || s.call(a, 0) ? p : -1);
if (d <= h) e.end = e.begin = s.call(a, d, !1, !0) ? d : l.call(a, d); else {
var v = c.validPositions[p], m = n.getTestTemplate.call(a, h, v ? v.match.locator : void 0, v), g = n.getPlaceholder.call(a, h, m.match);
if ("" !== g && r.call(a)[h] !== g && !0 !== m.match.optionalQuantifier && !0 !== m.match.newBlockMarker || !s.call(a, h, u.keepStatic, !0) && m.match.def === g) {
var y = l.call(a, h);
(d >= y || d === h) && (h = y);
}
e.end = e.begin = h;
}
}
return e;
}
}, t.getBuffer = r, t.getBufferTemplate = function() {
var e = this.maskset;
void 0 === e._buffer && (e._buffer = n.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice()));
return e._buffer;
}, t.getLastValidPosition = o, t.isMask = s, t.resetMaskSet = function(e) {
var t = this.maskset;
t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0);
}, t.seekNext = l, t.seekPrevious = function(e, t) {
var i = this, a = e - 1;
if (e <= 0) return 0;
for (;a > 0 && (!0 === t && (!0 !== n.getTest.call(i, a).match.newBlockMarker || !s.call(i, a, void 0, !0)) || !0 !== t && !s.call(i, a, void 0, !0)); ) a--;
return a;
}, t.translatePosition = c;
var n = i(4713), a = i(7215);
function r(e) {
var t = this, i = t.maskset;
return void 0 !== i.buffer && !0 !== e || (i.buffer = n.getMaskTemplate.call(t, !0, o.call(t), !0),
void 0 === i._buffer && (i._buffer = i.buffer.slice())), i.buffer;
}
function o(e, t, i) {
var n = this.maskset, a = -1, r = -1, o = i || n.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 && (a = s),
s >= e && (r = s));
return -1 === a || a == e ? r : -1 == r || e - a < r - e ? a : r;
}
function s(e, t, i) {
var a = this, r = this.maskset, o = n.getTestTemplate.call(a, e).match;
if ("" === o.def && (o = n.getTest.call(a, e).match), !0 !== o.static) return o.fn;
if (!0 === i && void 0 !== r.validPositions[e] && !0 !== r.validPositions[e].generatedInput) return !0;
if (!0 !== t && e > -1) {
if (i) {
var s = n.getTests.call(a, e);
return s.length > 1 + ("" === s[s.length - 1].match.def ? 1 : 0);
}
var l = n.determineTestTemplate.call(a, e, n.getTests.call(a, e)), c = n.getPlaceholder.call(a, e, l.match);
return l.match.def !== c;
}
return !1;
}
function l(e, t, i) {
var a = this;
void 0 === i && (i = !0);
for (var r = e + 1; "" !== n.getTest.call(a, r).match.def && (!0 === t && (!0 !== n.getTest.call(a, r).match.newBlockMarker || !s.call(a, r, void 0, !0)) || !0 !== t && !s.call(a, r, void 0, i)); ) r++;
return r;
}
function c(e) {
var t = this.opts, i = this.el;
return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !i || (e = this._valueGet().length - e) < 0 && (e = 0),
e;
}
},
4713: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.determineTestTemplate = c, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, n, a) {
var r = this, o = this.opts, u = this.maskset, f = o.greedy;
a && o.greedy && (o.greedy = !1, r.maskset.tests = {});
t = t || 0;
var p, h, v, m, g = [], y = 0;
do {
if (!0 === e && u.validPositions[y]) h = (v = a && u.validPositions[y].match.optionality && void 0 === u.validPositions[y + 1] && (!0 === u.validPositions[y].generatedInput || u.validPositions[y].input == o.skipOptionalPartCharacter && y > 0) ? c.call(r, y, d.call(r, y, p, y - 1)) : u.validPositions[y]).match,
p = v.locator.slice(), g.push(!0 === i ? v.input : !1 === i ? h.nativeDef : s.call(r, y, h)); else {
h = (v = l.call(r, y, p, y - 1)).match, p = v.locator.slice();
var k = !0 !== n && (!1 !== o.jitMasking ? o.jitMasking : h.jit);
(m = (m && h.static && h.def !== o.groupSeparator && null === h.fn || u.validPositions[y - 1] && h.static && h.def !== o.groupSeparator && null === h.fn) && u.tests[y]) || !1 === k || void 0 === k || "number" == typeof k && isFinite(k) && k > y ? g.push(!1 === i ? h.nativeDef : s.call(r, g.length, h)) : m = !1;
}
y++;
} while (!0 !== h.static || "" !== h.def || t > y);
"" === g[g.length - 1] && g.pop();
!1 === i && void 0 !== u.maskLength || (u.maskLength = y - 1);
return o.greedy = f, g;
}, t.getPlaceholder = s, t.getTest = u, t.getTestTemplate = l, t.getTests = d, t.isSubsetOf = f;
var n, a = (n = i(2394)) && n.__esModule ? n : {
default: n
};
function r(e, t) {
var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
if ("" !== i) for (;i.length < t; ) i += "0";
return i;
}
function o(e) {
var t = e.locator[e.alternation];
return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
}
function s(e, t, i) {
var n = this.opts, a = this.maskset;
if (void 0 !== (t = t || u.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(n) : t.placeholder;
if (!0 === t.static) {
if (e > -1 && void 0 === a.validPositions[e]) {
var r, o = d.call(this, e), s = [];
if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var l = 0; l < o.length; l++) if ("" !== o[l].match.def && !0 !== o[l].match.optionality && !0 !== o[l].match.optionalQuantifier && (!0 === o[l].match.static || void 0 === r || !1 !== o[l].match.fn.test(r.match.def, a, e, !0, n)) && (s.push(o[l]),
!0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return n.placeholder.charAt(e % n.placeholder.length);
}
return t.def;
}
return n.placeholder.charAt(e % n.placeholder.length);
}
function l(e, t, i) {
return this.maskset.validPositions[e] || c.call(this, e, d.call(this, e, t ? t.slice() : t, i));
}
function c(e, t) {
var i = this.opts, n = 0, a = function(e, t) {
var i = 0, n = !1;
t.forEach((function(e) {
e.match.optionality && (0 !== i && i !== e.match.optionality && (n = !0), (0 === i || i > e.match.optionality) && (i = e.match.optionality));
})), i && (0 == e || 1 == t.length ? i = 0 : n || (i = 0));
return i;
}(e, t);
e = e > 0 ? e - 1 : 0;
var o, s, l, c = r(u.call(this, e));
i.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (n = 1);
for (var f = 0; f < t.length - n; f++) {
var d = t[f];
o = r(d, c.length);
var p = Math.abs(o - c);
(void 0 === s || "" !== o && p < s || l && !i.greedy && l.match.optionality && l.match.optionality - a > 0 && "master" === l.match.newBlockMarker && (!d.match.optionality || d.match.optionality - a < 1 || !d.match.newBlockMarker) || l && !i.greedy && l.match.optionalQuantifier && !d.match.optionalQuantifier) && (s = p,
l = d);
}
return l;
}
function u(e, t) {
var i = this.maskset;
return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0];
}
function f(e, t, i) {
function n(e) {
for (var t, i = [], n = -1, a = 0, r = e.length; a < r; a++) if ("-" === e.charAt(a)) for (t = e.charCodeAt(a + 1); ++n < t; ) i.push(String.fromCharCode(n)); else n = e.charCodeAt(a),
i.push(e.charAt(a));
return i.join("");
}
return e.match.def === t.match.nativeDef || !(!(i.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== n(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(n(e.match.fn.toString().replace(/[[\]/]/g, "")));
}
function d(e, t, i) {
var n, r, o = this, s = this.dependencyLib, l = this.maskset, u = this.opts, d = this.el, p = l.maskToken, h = t ? i : 0, v = t ? t.slice() : [ 0 ], m = [], g = !1, y = t ? t.join("") : "";
function k(t, i, r, s) {
function c(r, s, p) {
function v(e, t) {
var i = 0 === t.matches.indexOf(e);
return i || t.matches.every((function(n, a) {
return !0 === n.isQuantifier ? i = v(e, t.matches[a - 1]) : Object.prototype.hasOwnProperty.call(n, "matches") && (i = v(e, n)),
!i;
})), i;
}
function x(e, t, i) {
var n, a;
if ((l.tests[e] || l.validPositions[e]) && (l.tests[e] || [ l.validPositions[e] ]).every((function(e, r) {
if (e.mloc[t]) return n = e, !1;
var o = void 0 !== i ? i : e.alternation, s = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1;
return (void 0 === a || s < a) && -1 !== s && (n = e, a = s), !0;
})), n) {
var r = n.locator[n.alternation];
return (n.mloc[t] || n.mloc[r] || n.locator).slice((void 0 !== i ? i : n.alternation) + 1);
}
return void 0 !== i ? x(e, t) : void 0;
}
function P(e, t) {
var i = e.alternation, n = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]);
if (!n && i > t.alternation) for (var a = t.alternation; a < i; a++) if (e.locator[a] !== t.locator[a]) {
i = a, n = !0;
break;
}
if (n) {
e.mloc = e.mloc || {};
var r = e.locator[i];
if (void 0 !== r) {
if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()),
void 0 !== t) {
for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]);
e.locator[i] = Object.keys(e.mloc).join(",");
}
return !0;
}
e.alternation = void 0;
}
return !1;
}
function w(e, t) {
if (e.locator.length !== t.locator.length) return !1;
for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1;
return !0;
}
if (h > e + u._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + l.mask;
if (h === e && void 0 === r.matches) {
if (m.push({
match: r,
locator: s.reverse(),
cd: y,
mloc: {}
}), !r.optionality || void 0 !== p || !(u.definitions && u.definitions[r.nativeDef] && u.definitions[r.nativeDef].optional || a.default.prototype.definitions[r.nativeDef] && a.default.prototype.definitions[r.nativeDef].optional)) return !0;
g = !0, h = e;
} else if (void 0 !== r.matches) {
if (r.isGroup && p !== r) return function() {
if (r = c(t.matches[t.matches.indexOf(r) + 1], s, p)) return !0;
}();
if (r.isOptional) return function() {
var t = r, a = m.length;
if (r = k(r, i, s, p), m.length > 0) {
if (m.forEach((function(e, t) {
t >= a && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1);
})), n = m[m.length - 1].match, void 0 !== p || !v(n, t)) return r;
g = !0, h = e;
}
}();
if (r.isAlternator) return function() {
o.hasAlternator = !0;
var n, a, v, y = r, k = [], b = m.slice(), S = s.length, M = !1, _ = i.length > 0 ? i.shift() : -1;
if (-1 === _ || "string" == typeof _) {
var O, E = h, T = i.slice(), j = [];
if ("string" == typeof _) j = _.split(","); else for (O = 0; O < y.matches.length; O++) j.push(O.toString());
if (void 0 !== l.excludes[e]) {
for (var A = j.slice(), D = 0, B = l.excludes[e].length; D < B; D++) {
var C = l.excludes[e][D].toString().split(":");
s.length == C[1] && j.splice(j.indexOf(C[0]), 1);
}
0 === j.length && (delete l.excludes[e], j = A);
}
(!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && E >= u.keepStatic) && (j = j.slice(0, 1));
for (var R = 0; R < j.length; R++) {
O = parseInt(j[R]), m = [], i = "string" == typeof _ && x(h, O, S) || T.slice();
var L = y.matches[O];
if (L && c(L, [ O ].concat(s), p)) r = !0; else if (0 === R && (M = !0), L && L.matches && L.matches.length > y.matches[0].matches.length) break;
n = m.slice(), h = E, m = [];
for (var F = 0; F < n.length; F++) {
var I = n[F], N = !1;
I.match.jit = I.match.jit || M, I.alternation = I.alternation || S, P(I);
for (var V = 0; V < k.length; V++) {
var G = k[V];
if ("string" != typeof _ || void 0 !== I.alternation && j.includes(I.locator[I.alternation].toString())) {
if (I.match.nativeDef === G.match.nativeDef) {
N = !0, P(G, I);
break;
}
if (f(I, G, u)) {
P(I, G) && (N = !0, k.splice(k.indexOf(G), 0, I));
break;
}
if (f(G, I, u)) {
P(G, I);
break;
}
if (v = G, !0 === (a = I).match.static && !0 !== v.match.static && v.match.fn.test(a.match.def, l, e, !1, u, !1)) {
w(I, G) || void 0 !== d.inputmask.userOptions.keepStatic ? P(I, G) && (N = !0, k.splice(k.indexOf(G), 0, I)) : u.keepStatic = !0;
break;
}
}
}
N || k.push(I);
}
}
m = b.concat(k), h = e, g = m.length > 0, r = k.length > 0, i = T.slice();
} else r = c(y.matches[_] || t.matches[_], [ _ ].concat(s), p);
if (r) return !0;
}();
if (r.isQuantifier && p !== t.matches[t.matches.indexOf(r) - 1]) return function() {
for (var a = r, o = !1, f = i.length > 0 ? i.shift() : 0; f < (isNaN(a.quantifier.max) ? f + 1 : a.quantifier.max) && h <= e; f++) {
var d = t.matches[t.matches.indexOf(a) - 1];
if (r = c(d, [ f ].concat(s), d)) {
if (m.forEach((function(t, i) {
(n = b(d, t.match) ? t.match : m[m.length - 1].match).optionalQuantifier = f >= a.quantifier.min,
n.jit = (f + 1) * (d.matches.indexOf(n) + 1) > a.quantifier.jit, n.optionalQuantifier && v(n, d) && (g = !0,
h = e, u.greedy && null == l.validPositions[e - 1] && f > a.quantifier.min && -1 != [ "*", "+" ].indexOf(a.quantifier.max) && (m.pop(),
y = void 0), o = !0, r = !1), !o && n.jit && (l.jitOffset[e] = d.matches.length - d.matches.indexOf(n));
})), o) break;
return !0;
}
}
}();
if (r = k(r, i, s, p)) return !0;
} else h++;
}
for (var p = i.length > 0 ? i.shift() : 0; p < t.matches.length; p++) if (!0 !== t.matches[p].isQuantifier) {
var v = c(t.matches[p], [ p ].concat(r), s);
if (v && h === e) return v;
if (h > e) break;
}
}
function b(e, t) {
var i = -1 != e.matches.indexOf(t);
return i || e.matches.forEach((function(e, n) {
void 0 === e.matches || i || (i = b(e, t));
})), i;
}
if (e > -1) {
if (void 0 === t) {
for (var x, P = e - 1; void 0 === (x = l.validPositions[P] || l.tests[P]) && P > -1; ) P--;
void 0 !== x && P > -1 && (v = function(e, t) {
var i, n = [];
return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (n = c.call(o, e, t.slice()).locator.slice()).length && (n = t[0].locator.slice()) : t.forEach((function(e) {
"" !== e.def && (0 === n.length ? (i = e.alternation, n = e.locator.slice()) : e.locator[i] && -1 === n[i].toString().indexOf(e.locator[i]) && (n[i] += "," + e.locator[i]));
}))), n;
}(P, x), y = v.join(""), h = P);
}
if (l.tests[e] && l.tests[e][0].cd === y) return l.tests[e];
for (var w = v.shift(); w < p.length; w++) {
if (k(p[w], v, [ w ]) && h === e || h > e) break;
}
}
return (0 === m.length || g) && m.push({
match: {
fn: null,
static: !0,
optionality: !1,
casing: null,
def: "",
placeholder: ""
},
locator: [],
mloc: {},
cd: y
}), void 0 !== t && l.tests[e] ? r = s.extend(!0, [], m) : (l.tests[e] = s.extend(!0, [], m),
r = l.tests[e]), m.forEach((function(e) {
e.match.optionality = e.match.defOptionality || !1;
})), r;
}
},
7215: function(e, t, i) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.alternate = s, t.checkAlternationMatch = function(e, t, i) {
for (var n, a = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== i ? i.split(",") : [], s = 0; s < o.length; s++) -1 !== (n = e.indexOf(o[s])) && e.splice(n, 1);
for (var l = 0; l < e.length; l++) if (a.includes(e[l])) {
r = !0;
break;
}
return r;
}, t.handleRemove = function(e, t, i, o, l) {
var c = this, u = this.maskset, f = this.opts;
if ((f.numericInput || c.isRTL) && (t === a.keys.Backspace ? t = a.keys.Delete : t === a.keys.Delete && (t = a.keys.Backspace),
c.isRTL)) {
var d = i.end;
i.end = i.begin, i.begin = d;
}
var p, h = r.getLastValidPosition.call(c, void 0, !0);
i.end >= r.getBuffer.call(c).length && h >= i.end && (i.end = h + 1);
t === a.keys.Backspace ? i.end - i.begin < 1 && (i.begin = r.seekPrevious.call(c, i.begin)) : t === a.keys.Delete && i.begin === i.end && (i.end = r.isMask.call(c, i.end, !0, !0) ? i.end + 1 : r.seekNext.call(c, i.end) + 1);
if (!1 !== (p = v.call(c, i))) {
if (!0 !== o && !1 !== f.keepStatic || null !== f.regex && -1 !== n.getTest.call(c, i.begin).match.def.indexOf("|")) {
var m = s.call(c, !0);
if (m) {
var g = void 0 !== m.caret ? m.caret : m.pos ? r.seekNext.call(c, m.pos.begin ? m.pos.begin : m.pos) : r.getLastValidPosition.call(c, -1, !0);
(t !== a.keys.Delete || i.begin > g) && i.begin;
}
}
!0 !== o && (u.p = t === a.keys.Delete ? i.begin + p : i.begin, u.p = r.determineNewCaretPosition.call(c, {
begin: u.p,
end: u.p
}, !1, !1 === f.insertMode && t === a.keys.Backspace ? "none" : void 0).begin);
}
}, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = p,
t.revalidateMask = v;
var n = i(4713), a = i(2839), r = i(8711), o = i(6030);
function s(e, t, i, a, o, l) {
var c, u, d, p, h, v, m, g, y, k, b, x = this, P = this.dependencyLib, w = this.opts, S = x.maskset, M = P.extend(!0, [], S.validPositions), _ = P.extend(!0, {}, S.tests), O = !1, E = !1, T = void 0 !== o ? o : r.getLastValidPosition.call(x);
if (l && (k = l.begin, b = l.end, l.begin > l.end && (k = l.end, b = l.begin)),
-1 === T && void 0 === o) c = 0, u = (p = n.getTest.call(x, c)).alternation; else for (;T >= 0; T--) if ((d = S.validPositions[T]) && void 0 !== d.alternation) {
if (T <= (e || 0) && p && p.locator[d.alternation] !== d.locator[d.alternation]) break;
c = T, u = S.validPositions[c].alternation, p = d;
}
if (void 0 !== u) {
m = parseInt(c), S.excludes[m] = S.excludes[m] || [], !0 !== e && S.excludes[m].push((0,
n.getDecisionTaker)(p) + ":" + p.alternation);
var j = [], A = -1;
for (h = m; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) -1 === A && e <= h && void 0 !== t && (j.push(t),
A = j.length - 1), (v = S.validPositions[h]) && !0 !== v.generatedInput && (void 0 === l || h < k || h >= b) && j.push(v.input),
delete S.validPositions[h];
for (-1 === A && void 0 !== t && (j.push(t), A = j.length - 1); void 0 !== S.excludes[m] && S.excludes[m].length < 10; ) {
for (S.tests = {}, r.resetMaskSet.call(x, !0), O = !0, h = 0; h < j.length && (g = O.caret || r.getLastValidPosition.call(x, void 0, !0) + 1,
y = j[h], O = f.call(x, g, y, !1, a, !0)); h++) h === A && (E = O), 1 == e && O && (E = {
caretPos: h
});
if (O) break;
if (r.resetMaskSet.call(x), p = n.getTest.call(x, m), S.validPositions = P.extend(!0, [], M),
S.tests = P.extend(!0, {}, _), !S.excludes[m]) {
E = s.call(x, e, t, i, a, m - 1, l);
break;
}
var D = (0, n.getDecisionTaker)(p);
if (-1 !== S.excludes[m].indexOf(D + ":" + p.alternation)) {
E = s.call(x, e, t, i, a, m - 1, l);
break;
}
for (S.excludes[m].push(D + ":" + p.alternation), h = m; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) delete S.validPositions[h];
}
}
return E && !1 === w.keepStatic || delete S.excludes[m], E;
}
function l(e, t, i) {
var n = this.opts, r = this.maskset;
switch (n.casing || t.casing) {
case "upper":
e = e.toUpperCase();
break;
case "lower":
e = e.toLowerCase();
break;
case "title":
var o = r.validPositions[i - 1];
e = 0 === i || o && o.input === String.fromCharCode(a.keyCode.Space) ? e.toUpperCase() : e.toLowerCase();
break;
default:
if ("function" == typeof n.casing) {
var s = Array.prototype.slice.call(arguments);
s.push(r.validPositions), e = n.casing.apply(this, s);
}
}
return e;
}
function c(e) {
var t = this, i = this.opts, a = this.maskset;
if ("function" == typeof i.isComplete) return i.isComplete(e, i);
if ("*" !== i.repeat) {
var o = !1, s = r.determineLastRequiredPosition.call(t, !0), l = r.seekPrevious.call(t, s.l);
if (void 0 === s.def || s.def.newBlockMarker || s.def.optionality || s.def.optionalQuantifier) {
o = !0;
for (var c = 0; c <= l; c++) {
var u = n.getTestTemplate.call(t, c).match;
if (!0 !== u.static && void 0 === a.validPositions[c] && !0 !== u.optionality && !0 !== u.optionalQuantifier || !0 === u.static && e[c] !== n.getPlaceholder.call(t, c, u)) {
o = !1;
break;
}
}
}
return o;
}
}
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, i, a, o, d, m) {
var g = this, y = this.dependencyLib, k = this.opts, b = g.maskset;
i = !0 === i;
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) {
v.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 : a);
})), e.insert = void 0), e.refreshFromBuffer && e.buffer) {
var t = e.refreshFromBuffer;
p.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 w(t, i, o) {
var s = !1;
return n.getTests.call(g, t).every((function(c, f) {
var d = c.match;
if (r.getBuffer.call(g, !0), !1 !== (s = (!d.jit || void 0 !== b.validPositions[r.seekPrevious.call(g, t)]) && (null != d.fn ? d.fn.test(i, b, t, o, k, u.call(g, e)) : (i === d.def || i === k.skipOptionalPartCharacter) && "" !== d.def && {
c: n.getPlaceholder.call(g, t, d, !0) || d.def,
pos: t
}))) {
var p = void 0 !== s.c ? s.c : i, h = t;
return p = p === k.skipOptionalPartCharacter && !0 === d.static ? n.getPlaceholder.call(g, t, d, !0) || d.def : p,
!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 === v.call(g, e, y.extend({}, c, {
input: l.call(g, p, d, h)
}), a, h) && (s = !1), !1);
}
return !0;
})), s;
}
void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin);
var S = !0, M = y.extend(!0, {}, b.validPositions);
if (!1 === k.keepStatic && void 0 !== b.excludes[x] && !0 !== o && !0 !== a) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++) void 0 !== b.excludes[_] && (b.excludes[_] = void 0,
delete b.tests[_]);
if ("function" == typeof k.preValidation && !0 !== a && !0 !== d && (S = P(S = k.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), k, b, e, i || o))),
!0 === S) {
if (S = w(x, t, i), (!i || !0 === a) && !1 === S && !0 !== d) {
var O = b.validPositions[x];
if (!O || !0 !== O.match.static || O.match.def !== t && t !== k.skipOptionalPartCharacter) {
if (k.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) {
var E = !1;
if (b.jitOffset[x] && void 0 === b.validPositions[r.seekNext.call(g, x)] && !1 !== (S = f.call(g, x + b.jitOffset[x], t, !0, !0)) && (!0 !== o && (S.caret = x),
E = !0), e.end > x && (b.validPositions[x] = void 0), !E && !r.isMask.call(g, x, k.keepStatic && 0 === x)) for (var T = x + 1, j = r.seekNext.call(g, x, !1, 0 !== x); T <= j; T++) if (!1 !== (S = w(T, t, i))) {
S = h.call(g, x, void 0 !== S.pos ? S.pos : T) || S, x = T;
break;
}
}
} else S = {
caret: r.seekNext.call(g, x)
};
}
g.hasAlternator && !0 !== o && !i && (!1 === S && k.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = s.call(g, x, t, i, a, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && k.keepStatic || 1 == S && !0 !== k.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = s.call(g, !0))),
!0 === S && (S = {
pos: x
});
}
if ("function" == typeof k.postValidation && !0 !== a && !0 !== d) {
var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, i, m);
void 0 !== A && (S = !0 === A ? S : A);
}
S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === d ? (r.resetMaskSet.call(g, !0),
b.validPositions = y.extend(!0, [], M)) : h.call(g, void 0, x, !0);
var D = P(S);
void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !a && (r.resetMaskSet.call(g, !0),
b.validPositions = y.extend(!0, [], M), D = !1));
return D;
}
function d(e, t, i) {
for (var a = this.maskset, r = !1, o = n.getTests.call(this, e), s = 0; s < o.length; s++) {
if (o[s].match && (o[s].match.nativeDef === t.match[i.shiftPositions ? "def" : "nativeDef"] && (!i.shiftPositions || !t.match.static) || o[s].match.nativeDef === t.match.nativeDef || i.regex && !o[s].match.static && o[s].match.fn.test(t.input, a, e, !1, i))) {
r = !0;
break;
}
if (o[s].match && o[s].match.def === t.match.nativeDef) {
r = void 0;
break;
}
}
return !1 === r && void 0 !== a.jitOffset[e] && (r = d.call(this, e + a.jitOffset[e], t, i)),
r;
}
function p(e, t, i) {
var n, a, s = this, l = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, d = s.isRTL ? i.slice().reverse() : i;
if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(s), l.tests = {},
e = 0, t = i.length, a = r.determineNewCaretPosition.call(s, {
begin: 0,
end: 0
}, !1).begin; else {
for (n = e; n < t; n++) delete l.validPositions[n];
a = e;
}
var p = new u.Event("keypress");
for (n = e; n < t; n++) {
p.key = d[n].toString(), s.ignorable = !1;
var h = o.EventHandlers.keypressEvent.call(s, p, !0, !1, !1, a);
!1 !== h && void 0 !== h && (a = h.forwardPosition);
}
c.skipOptionalPartCharacter = f;
}
function h(e, t, i) {
var a = this, o = this.maskset, s = this.dependencyLib;
if (void 0 === e) for (e = t - 1; e > 0 && !o.validPositions[e]; e--) ;
for (var l = e; l < t; l++) {
if (void 0 === o.validPositions[l] && !r.isMask.call(a, l, !1)) if (0 == l ? n.getTest.call(a, l) : o.validPositions[l - 1]) {
var c = n.getTests.call(a, l).slice();
"" === c[c.length - 1].match.def && c.pop();
var u, d = n.determineTestTemplate.call(a, l, c);
if (d && (!0 !== d.match.jit || "master" === d.match.newBlockMarker && (u = o.validPositions[l + 1]) && !0 === u.match.optionalQuantifier) && ((d = s.extend({}, d, {
input: n.getPlaceholder.call(a, l, d.match, !0) || d.match.def
})).generatedInput = !0, v.call(a, l, d, !0), !0 !== i)) {
var p = o.validPositions[t].input;
return o.validPositions[t] = void 0, f.call(a, t, p, !0, !0);
}
}
}
}
function v(e, t, i, a) {
var o = this, s = this.maskset, l = this.opts, c = this.dependencyLib;
function u(e, t, i) {
var n = t[e];
if (void 0 !== n && !0 === n.match.static && !0 !== n.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
var a = i.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = i.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1];
return a && r;
}
return !1;
}
var p = 0, h = void 0 !== e.begin ? e.begin : e, v = void 0 !== e.end ? e.end : e, m = !0;
if (e.begin > e.end && (h = e.end, v = e.begin), a = void 0 !== a ? a : h, void 0 === i && (h !== v || l.insertMode && void 0 !== s.validPositions[a] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) {
var g, y = c.extend(!0, {}, s.validPositions), k = r.getLastValidPosition.call(o, void 0, !0);
for (s.p = h, g = k; g >= h; g--) delete s.validPositions[g], void 0 === t && delete s.tests[g + 1];
var b, x, P = a, w = P;
for (t && (s.validPositions[a] = c.extend(!0, {}, t), w++, P++), g = t ? v : v - 1; g <= k; g++) {
if (void 0 !== (b = y[g]) && !0 !== b.generatedInput && (g >= v || g >= h && u(g, y, {
begin: h,
end: v
}))) {
for (;"" !== n.getTest.call(o, w).match.def; ) {
if (!1 !== (x = d.call(o, w, b, l)) || "+" === b.match.def) {
"+" === b.match.def && r.getBuffer.call(o, !0);
var S = f.call(o, w, b.input, "+" !== b.match.def, !0);
if (m = !1 !== S, P = (S.pos || w) + 1, !m && x) break;
} else m = !1;
if (m) {
void 0 === t && b.match.static && g === e.begin && p++;
break;
}
if (!m && r.getBuffer.call(o), w > s.maskLength) break;
w++;
}
"" == n.getTest.call(o, w).match.def && (m = !1), w = P;
}
if (!m) break;
}
if (!m) return s.validPositions = c.extend(!0, [], y), r.resetMaskSet.call(o, !0),
!1;
} else t && n.getTest.call(o, a).match.cd === t.match.cd && (s.validPositions[a] = c.extend(!0, {}, t));
return r.resetMaskSet.call(o, !0), p;
}
}
}, t = {};
function i(n) {
var a = t[n];
if (void 0 !== a) return a.exports;
var r = t[n] = {
exports: {}
};
return e[n](r, r.exports, i), r.exports;
}
var n = {};
return function() {
var e, t = n;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0, i(7149), i(3194), i(9302), i(4013), i(3851), i(219), i(207),
i(5296);
var a = ((e = i(2394)) && e.__esModule ? e : {
default: e
}).default;
t.default = a;
}(), n;
}();
}));
''';