PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.0.8
JetFormBuilder — Dynamic Blocks Form Builder v3.0.8
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / assets / lib / inputmask / jquery.inputmask.js
jetformbuilder / assets / lib / inputmask Last commit date
jquery.inputmask.js 3 years ago jquery.inputmask.min.js 3 years ago
jquery.inputmask.js
3156 lines
1 /*!
2 * dist/jquery.inputmask
3 * https://github.com/RobinHerbots/Inputmask
4 * Copyright (c) 2010 - 2023 Robin Herbots
5 * Licensed under the MIT license
6 * Version: 5.0.8
7 */
8 !function(e, t) {
9 if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else {
10 var i = "object" == typeof exports ? t(require("jquery")) : t(e.jQuery);
11 for (var a in i) ("object" == typeof exports ? exports : e)[a] = i[a];
12 }
13 }("undefined" != typeof self ? self : this, (function(e) {
14 return function() {
15 "use strict";
16 var t = {
17 3046: function(e, t, i) {
18 var a;
19 Object.defineProperty(t, "__esModule", {
20 value: !0
21 }), t.default = void 0, i(7149), i(3194), i(9302), i(4013), i(3851), i(219), i(207),
22 i(5296);
23 var n = ((a = i(2394)) && a.__esModule ? a : {
24 default: a
25 }).default;
26 t.default = n;
27 },
28 8741: function(e, t) {
29 Object.defineProperty(t, "__esModule", {
30 value: !0
31 }), t.default = void 0;
32 var i = !("undefined" == typeof window || !window.document || !window.document.createElement);
33 t.default = i;
34 },
35 3976: function(e, t, i) {
36 Object.defineProperty(t, "__esModule", {
37 value: !0
38 }), t.default = void 0;
39 var a = i(2839), n = {
40 _maxTestPos: 500,
41 placeholder: "_",
42 optionalmarker: [ "[", "]" ],
43 quantifiermarker: [ "{", "}" ],
44 groupmarker: [ "(", ")" ],
45 alternatormarker: "|",
46 escapeChar: "\\",
47 mask: null,
48 regex: null,
49 oncomplete: function() {},
50 onincomplete: function() {},
51 oncleared: function() {},
52 repeat: 0,
53 greedy: !1,
54 autoUnmask: !1,
55 removeMaskOnSubmit: !1,
56 clearMaskOnLostFocus: !0,
57 insertMode: !0,
58 insertModeVisual: !0,
59 clearIncomplete: !1,
60 alias: null,
61 onKeyDown: function() {},
62 onBeforeMask: null,
63 onBeforePaste: function(e, t) {
64 return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e;
65 },
66 onBeforeWrite: null,
67 onUnMask: null,
68 showMaskOnFocus: !0,
69 showMaskOnHover: !0,
70 onKeyValidation: function() {},
71 skipOptionalPartCharacter: " ",
72 numericInput: !1,
73 rightAlign: !1,
74 undoOnEscape: !0,
75 radixPoint: "",
76 _radixDance: !1,
77 groupSeparator: "",
78 keepStatic: null,
79 positionCaretOnTab: !0,
80 tabThrough: !1,
81 supportsInputType: [ "text", "tel", "url", "password", "search" ],
82 ignorables: [ a.keys.Backspace, a.keys.Tab, a.keys.Pause, a.keys.Escape, a.keys.PageUp, a.keys.PageDown, a.keys.End, a.keys.Home, a.keys.ArrowLeft, a.keys.ArrowUp, a.keys.ArrowRight, a.keys.ArrowDown, a.keys.Insert, a.keys.Delete, a.keys.ContextMenu, a.keys.F1, a.keys.F2, a.keys.F3, a.keys.F4, a.keys.F5, a.keys.F6, a.keys.F7, a.keys.F8, a.keys.F9, a.keys.F10, a.keys.F11, a.keys.F12, a.keys.Process, a.keys.Unidentified, a.keys.Shift, a.keys.Control, a.keys.Alt, a.keys.Tab, a.keys.AltGraph, a.keys.CapsLock ],
83 isComplete: null,
84 preValidation: null,
85 postValidation: null,
86 staticDefinitionSymbol: void 0,
87 jitMasking: !1,
88 nullable: !0,
89 inputEventOnly: !1,
90 noValuePatching: !1,
91 positionCaretOnClick: "lvp",
92 casing: null,
93 inputmode: "text",
94 importDataAttributes: !0,
95 shiftPositions: !0,
96 usePrototypeDefinitions: !0,
97 validationEventTimeOut: 3e3,
98 substitutes: {}
99 };
100 t.default = n;
101 },
102 7392: function(e, t) {
103 Object.defineProperty(t, "__esModule", {
104 value: !0
105 }), t.default = void 0;
106 t.default = {
107 9: {
108 validator: "[0-9\uff10-\uff19]",
109 definitionSymbol: "*"
110 },
111 a: {
112 validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
113 definitionSymbol: "*"
114 },
115 "*": {
116 validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
117 }
118 };
119 },
120 3287: function(e, t, i) {
121 Object.defineProperty(t, "__esModule", {
122 value: !0
123 }), t.default = void 0;
124 var a, n = (a = i(7957)) && a.__esModule ? a : {
125 default: a
126 };
127 if (void 0 === n.default) throw "jQuery not loaded!";
128 var r = n.default;
129 t.default = r;
130 },
131 9845: function(e, t, i) {
132 Object.defineProperty(t, "__esModule", {
133 value: !0
134 }), t.mobile = t.iphone = t.ie = void 0;
135 var a, n = (a = i(9380)) && a.__esModule ? a : {
136 default: a
137 };
138 var r = n.default.navigator && n.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = navigator.userAgentData && navigator.userAgentData.mobile || n.default.navigator && n.default.navigator.maxTouchPoints || "ontouchstart" in n.default, l = /iphone/i.test(r);
139 t.iphone = l, t.mobile = s, t.ie = o;
140 },
141 7184: function(e, t) {
142 Object.defineProperty(t, "__esModule", {
143 value: !0
144 }), t.default = function(e) {
145 return e.replace(i, "\\$1");
146 };
147 var i = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
148 },
149 6030: function(e, t, i) {
150 Object.defineProperty(t, "__esModule", {
151 value: !0
152 }), t.EventHandlers = void 0;
153 var a = i(8711), n = i(2839), r = i(9845), o = i(7215), s = i(7760), l = i(4713);
154 function c(e, t) {
155 var i = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
156 if (!i) {
157 if (Array.isArray(e) || (i = function(e, t) {
158 if (!e) return;
159 if ("string" == typeof e) return u(e, t);
160 var i = Object.prototype.toString.call(e).slice(8, -1);
161 "Object" === i && e.constructor && (i = e.constructor.name);
162 if ("Map" === i || "Set" === i) return Array.from(e);
163 if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return u(e, t);
164 }(e)) || t && e && "number" == typeof e.length) {
165 i && (e = i);
166 var a = 0, n = function() {};
167 return {
168 s: n,
169 n: function() {
170 return a >= e.length ? {
171 done: !0
172 } : {
173 done: !1,
174 value: e[a++]
175 };
176 },
177 e: function(e) {
178 throw e;
179 },
180 f: n
181 };
182 }
183 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
184 }
185 var r, o = !0, s = !1;
186 return {
187 s: function() {
188 i = i.call(e);
189 },
190 n: function() {
191 var e = i.next();
192 return o = e.done, e;
193 },
194 e: function(e) {
195 s = !0, r = e;
196 },
197 f: function() {
198 try {
199 o || null == i.return || i.return();
200 } finally {
201 if (s) throw r;
202 }
203 }
204 };
205 }
206 function u(e, t) {
207 (null == t || t > e.length) && (t = e.length);
208 for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
209 return a;
210 }
211 var f = {
212 keyEvent: function(e, t, i, c, u) {
213 var d = this.inputmask, p = d.opts, h = d.dependencyLib, m = d.maskset, v = this, g = h(v), k = e.key, y = a.caret.call(d, v), b = p.onKeyDown.call(this, e, a.getBuffer.call(d), y, p);
214 if (void 0 !== b) return b;
215 if (k === n.keys.Backspace || k === n.keys.Delete || r.iphone && k === n.keys.BACKSPACE_SAFARI || e.ctrlKey && k === n.keys.x && !("oncut" in v)) e.preventDefault(),
216 o.handleRemove.call(d, v, k, y), (0, s.writeBuffer)(v, a.getBuffer.call(d, !0), m.p, e, v.inputmask._valueGet() !== a.getBuffer.call(d).join("")); else if (k === n.keys.End || k === n.keys.PageDown) {
217 e.preventDefault();
218 var x = a.seekNext.call(d, a.getLastValidPosition.call(d));
219 a.caret.call(d, v, e.shiftKey ? y.begin : x, x, !0);
220 } else k === n.keys.Home && !e.shiftKey || k === n.keys.PageUp ? (e.preventDefault(),
221 a.caret.call(d, v, 0, e.shiftKey ? y.begin : 0, !0)) : p.undoOnEscape && k === n.keys.Escape && !0 !== e.altKey ? ((0,
222 s.checkVal)(v, !0, !1, d.undoValue.split("")), g.trigger("click")) : k !== n.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== d.userOptions.insertMode ? !0 === p.tabThrough && k === n.keys.Tab ? !0 === e.shiftKey ? (y.end = a.seekPrevious.call(d, y.end, !0),
223 !0 === l.getTest.call(d, y.end - 1).match.static && y.end--, y.begin = a.seekPrevious.call(d, y.end, !0),
224 y.begin >= 0 && y.end > 0 && (e.preventDefault(), a.caret.call(d, v, y.begin, y.end))) : (y.begin = a.seekNext.call(d, y.begin, !0),
225 y.end = a.seekNext.call(d, y.begin, !0), y.end < m.maskLength && y.end--, y.begin <= m.maskLength && (e.preventDefault(),
226 a.caret.call(d, v, y.begin, y.end))) : e.shiftKey || p.insertModeVisual && !1 === p.insertMode && (k === n.keys.ArrowRight ? setTimeout((function() {
227 var e = a.caret.call(d, v);
228 a.caret.call(d, v, e.begin);
229 }), 0) : k === n.keys.ArrowLeft && setTimeout((function() {
230 var e = a.translatePosition.call(d, v.inputmask.caretPos.begin);
231 a.translatePosition.call(d, v.inputmask.caretPos.end);
232 d.isRTL ? a.caret.call(d, v, e + (e === m.maskLength ? 0 : 1)) : a.caret.call(d, v, e - (0 === e ? 0 : 1));
233 }), 0)) : o.isSelection.call(d, y) ? p.insertMode = !p.insertMode : (p.insertMode = !p.insertMode,
234 a.caret.call(d, v, y.begin, y.begin));
235 return d.isComposing = k == n.keys.Process || k == n.keys.Unidentified, d.ignorable = p.ignorables.includes(k),
236 f.keypressEvent.call(this, e, t, i, c, u);
237 },
238 keypressEvent: function(e, t, i, r, l) {
239 var c = this.inputmask || this, u = c.opts, f = c.dependencyLib, d = c.maskset, p = c.el, h = f(p), m = e.key;
240 if (!0 === t || e.ctrlKey && e.altKey || !(e.ctrlKey || e.metaKey || c.ignorable)) {
241 if (m) {
242 var v, g = t ? {
243 begin: l,
244 end: l
245 } : a.caret.call(c, p);
246 m = u.substitutes[m] || m, d.writeOutBuffer = !0;
247 var k = o.isValid.call(c, g, m, r, void 0, void 0, void 0, t);
248 if (!1 !== k && (a.resetMaskSet.call(c, !0), v = void 0 !== k.caret ? k.caret : a.seekNext.call(c, k.pos.begin ? k.pos.begin : k.pos),
249 d.p = v), v = u.numericInput && void 0 === k.caret ? a.seekPrevious.call(c, v) : v,
250 !1 !== i && (setTimeout((function() {
251 u.onKeyValidation.call(p, m, k);
252 }), 0), d.writeOutBuffer && !1 !== k)) {
253 var y = a.getBuffer.call(c);
254 (0, s.writeBuffer)(p, y, v, e, !0 !== t);
255 }
256 if (e.preventDefault(), t) return !1 !== k && (k.forwardPosition = v), k;
257 }
258 } else m === n.keys.Enter && c.undoValue !== c._valueGet(!0) && (c.undoValue = c._valueGet(!0),
259 setTimeout((function() {
260 h.trigger("change");
261 }), 0));
262 },
263 pasteEvent: function(e) {
264 var t, i = this.inputmask, n = i.opts, r = i._valueGet(!0), o = a.caret.call(i, this);
265 i.isRTL && (t = o.end, o.end = a.translatePosition.call(i, o.begin), o.begin = a.translatePosition.call(i, t));
266 var l = r.substr(0, o.begin), u = r.substr(o.end, r.length);
267 if (l == (i.isRTL ? a.getBufferTemplate.call(i).slice().reverse() : a.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (l = ""),
268 u == (i.isRTL ? a.getBufferTemplate.call(i).slice().reverse() : a.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""),
269 window.clipboardData && window.clipboardData.getData) r = l + window.clipboardData.getData("Text") + u; else {
270 if (!e.clipboardData || !e.clipboardData.getData) return !0;
271 r = l + e.clipboardData.getData("text/plain") + u;
272 }
273 var f = r;
274 if (i.isRTL) {
275 f = f.split("");
276 var d, p = c(a.getBufferTemplate.call(i));
277 try {
278 for (p.s(); !(d = p.n()).done; ) {
279 var h = d.value;
280 f[0] === h && f.shift();
281 }
282 } catch (e) {
283 p.e(e);
284 } finally {
285 p.f();
286 }
287 f = f.join("");
288 }
289 if ("function" == typeof n.onBeforePaste) {
290 if (!1 === (f = n.onBeforePaste.call(i, f, n))) return !1;
291 f || (f = r);
292 }
293 (0, s.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault();
294 },
295 inputFallBackEvent: function(e) {
296 var t = this.inputmask, i = t.opts, o = t.dependencyLib;
297 var c, u = this, d = u.inputmask._valueGet(!0), p = (t.isRTL ? a.getBuffer.call(t).slice().reverse() : a.getBuffer.call(t)).join(""), h = a.caret.call(t, u, void 0, void 0, !0);
298 if (p !== d) {
299 if (c = function(e, n, r) {
300 for (var o, s, c, u = e.substr(0, r.begin).split(""), f = e.substr(r.begin).split(""), d = n.substr(0, r.begin).split(""), p = n.substr(r.begin).split(""), h = u.length >= d.length ? u.length : d.length, m = f.length >= p.length ? f.length : p.length, v = "", g = [], k = "~"; u.length < h; ) u.push(k);
301 for (;d.length < h; ) d.push(k);
302 for (;f.length < m; ) f.unshift(k);
303 for (;p.length < m; ) p.unshift(k);
304 var y = u.concat(f), b = d.concat(p);
305 for (s = 0, o = y.length; s < o; s++) switch (c = l.getPlaceholder.call(t, a.translatePosition.call(t, s)),
306 v) {
307 case "insertText":
308 b[s - 1] === y[s] && r.begin == y.length - 1 && g.push(y[s]), s = o;
309 break;
310
311 case "insertReplacementText":
312 case "deleteContentBackward":
313 y[s] === k ? r.end++ : s = o;
314 break;
315
316 default:
317 y[s] !== b[s] && (y[s + 1] !== k && y[s + 1] !== c && void 0 !== y[s + 1] || (b[s] !== c || b[s + 1] !== k) && b[s] !== k ? b[s + 1] === k && b[s] === y[s + 1] ? (v = "insertText",
318 g.push(y[s]), r.begin--, r.end--) : y[s] !== c && y[s] !== k && (y[s + 1] === k || b[s] !== y[s] && b[s + 1] === y[s + 1]) ? (v = "insertReplacementText",
319 g.push(y[s]), r.begin--) : y[s] === k ? (v = "deleteContentBackward", (a.isMask.call(t, a.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (v = "insertText",
320 g.push(y[s]), r.begin--, r.end--));
321 }
322 return {
323 action: v,
324 data: g,
325 caret: r
326 };
327 }(d, p, h), (u.inputmask.shadowRoot || u.ownerDocument).activeElement !== u && u.focus(),
328 (0, s.writeBuffer)(u, a.getBuffer.call(t)), a.caret.call(t, u, h.begin, h.end, !0),
329 !r.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === c.action && t.isComposing) return !1;
330 switch ("insertCompositionText" === e.inputType && "insertText" === c.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1,
331 c.action) {
332 case "insertText":
333 case "insertReplacementText":
334 c.data.forEach((function(e, i) {
335 var a = new o.Event("keypress");
336 a.key = e, t.ignorable = !1, f.keypressEvent.call(u, a);
337 })), setTimeout((function() {
338 t.$el.trigger("keyup");
339 }), 0);
340 break;
341
342 case "deleteContentBackward":
343 var m = new o.Event("keydown");
344 m.key = n.keys.Backspace, f.keyEvent.call(u, m);
345 break;
346
347 default:
348 (0, s.applyInputValue)(u, d), a.caret.call(t, u, h.begin, h.end, !0);
349 }
350 e.preventDefault();
351 }
352 },
353 setValueEvent: function(e) {
354 var t = this.inputmask, i = this, n = e && e.detail ? e.detail[0] : arguments[1];
355 void 0 === n && (n = i.inputmask._valueGet(!0)), (0, s.applyInputValue)(i, n), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && a.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]);
356 },
357 focusEvent: function(e) {
358 var t = this.inputmask, i = t.opts, n = null == t ? void 0 : t._valueGet();
359 i.showMaskOnFocus && n !== a.getBuffer.call(t).join("") && (0, s.writeBuffer)(this, a.getBuffer.call(t), a.seekNext.call(t, a.getLastValidPosition.call(t))),
360 !0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || o.isComplete.call(t, a.getBuffer.call(t)) && -1 !== a.getLastValidPosition.call(t) || f.clickEvent.apply(this, [ e, !0 ]),
361 t.undoValue = null == t ? void 0 : t._valueGet(!0);
362 },
363 invalidEvent: function(e) {
364 this.inputmask.validationEvent = !0;
365 },
366 mouseleaveEvent: function() {
367 var e = this.inputmask, t = e.opts, i = this;
368 e.mouseEnter = !1, t.clearMaskOnLostFocus && (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i && (0,
369 s.HandleNativePlaceholder)(i, e.originalPlaceholder);
370 },
371 clickEvent: function(e, t) {
372 var i = this.inputmask;
373 i.clicked++;
374 var n = this;
375 if ((n.inputmask.shadowRoot || n.ownerDocument).activeElement === n) {
376 var r = a.determineNewCaretPosition.call(i, a.caret.call(i, n), t);
377 void 0 !== r && a.caret.call(i, n, r);
378 }
379 },
380 cutEvent: function(e) {
381 var t = this.inputmask, i = t.maskset, r = this, l = a.caret.call(t, r), c = t.isRTL ? a.getBuffer.call(t).slice(l.end, l.begin) : a.getBuffer.call(t).slice(l.begin, l.end), u = t.isRTL ? c.reverse().join("") : c.join("");
382 window.navigator.clipboard ? window.navigator.clipboard.writeText(u) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", u),
383 o.handleRemove.call(t, r, n.keys.Delete, l), (0, s.writeBuffer)(r, a.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0));
384 },
385 blurEvent: function(e) {
386 var t = this.inputmask, i = t.opts, n = t.dependencyLib;
387 t.clicked = 0;
388 var r = n(this), l = this;
389 if (l.inputmask) {
390 (0, s.HandleNativePlaceholder)(l, t.originalPlaceholder);
391 var c = l.inputmask._valueGet(), u = a.getBuffer.call(t).slice();
392 "" !== c && (i.clearMaskOnLostFocus && (-1 === a.getLastValidPosition.call(t) && c === a.getBufferTemplate.call(t).join("") ? u = [] : s.clearOptionalTail.call(t, u)),
393 !1 === o.isComplete.call(t, u) && (setTimeout((function() {
394 r.trigger("incomplete");
395 }), 0), i.clearIncomplete && (a.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : a.getBufferTemplate.call(t).slice())),
396 (0, s.writeBuffer)(l, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0),
397 r.trigger("change"));
398 }
399 },
400 mouseenterEvent: function() {
401 var e = this.inputmask, t = e.opts.showMaskOnHover, i = this;
402 if (e.mouseEnter = !0, (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i) {
403 var n = (e.isRTL ? a.getBufferTemplate.call(e).slice().reverse() : a.getBufferTemplate.call(e)).join("");
404 t && (0, s.HandleNativePlaceholder)(i, n);
405 }
406 },
407 submitEvent: function() {
408 var e = this.inputmask, t = e.opts;
409 e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === a.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === a.getBufferTemplate.call(e).join("") && e._valueSet(""),
410 t.clearIncomplete && !1 === o.isComplete.call(e, a.getBuffer.call(e)) && e._valueSet(""),
411 t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
412 (0, s.writeBuffer)(e.el, a.getBuffer.call(e));
413 }), 0));
414 },
415 resetEvent: function() {
416 var e = this.inputmask;
417 e.refreshValue = !0, setTimeout((function() {
418 (0, s.applyInputValue)(e.el, e._valueGet(!0));
419 }), 0);
420 }
421 };
422 t.EventHandlers = f;
423 },
424 9716: function(e, t, i) {
425 Object.defineProperty(t, "__esModule", {
426 value: !0
427 }), t.EventRuler = void 0;
428 var a, n = (a = i(2394)) && a.__esModule ? a : {
429 default: a
430 }, r = i(2839), o = i(8711), s = i(7760);
431 var l = {
432 on: function(e, t, i) {
433 var a = e.inputmask.dependencyLib, l = function(t) {
434 t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
435 var l, c = this, u = c.inputmask, f = u ? u.opts : void 0;
436 if (void 0 === u && "FORM" !== this.nodeName) {
437 var d = a.data(c, "_inputmask_opts");
438 a(c).off(), d && new n.default(d).mask(c);
439 } else {
440 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))) {
441 switch (t.type) {
442 case "input":
443 if (!0 === u.skipInputEvent) return u.skipInputEvent = !1, t.preventDefault();
444 break;
445
446 case "click":
447 case "focus":
448 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("")),
449 setTimeout((function() {
450 e.focus();
451 }), f.validationEventTimeOut), !1) : (l = arguments, void setTimeout((function() {
452 e.inputmask && i.apply(c, l);
453 }), 0));
454 }
455 var p = i.apply(c, arguments);
456 return !1 === p && (t.preventDefault(), t.stopPropagation()), p;
457 }
458 t.preventDefault();
459 }
460 };
461 [ "submit", "reset" ].includes(t) ? (l = l.bind(e), null !== e.form && a(e.form).on(t, l)) : a(e).on(t, l),
462 e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(l);
463 },
464 off: function(e, t) {
465 if (e.inputmask && e.inputmask.events) {
466 var i = e.inputmask.dependencyLib, a = e.inputmask.events;
467 for (var n in t && ((a = [])[t] = e.inputmask.events[t]), a) {
468 for (var r = a[n]; r.length > 0; ) {
469 var o = r.pop();
470 [ "submit", "reset" ].includes(n) ? null !== e.form && i(e.form).off(n, o) : i(e).off(n, o);
471 }
472 delete e.inputmask.events[n];
473 }
474 }
475 }
476 };
477 t.EventRuler = l;
478 },
479 219: function(e, t, i) {
480 var a = d(i(2394)), n = i(2839), r = d(i(7184)), o = i(8711), s = i(4713);
481 function l(e, t) {
482 return function(e) {
483 if (Array.isArray(e)) return e;
484 }(e) || function(e, t) {
485 var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
486 if (null != i) {
487 var a, n, r, o, s = [], l = !0, c = !1;
488 try {
489 if (r = (i = i.call(e)).next, 0 === t) {
490 if (Object(i) !== i) return;
491 l = !1;
492 } else for (;!(l = (a = r.call(i)).done) && (s.push(a.value), s.length !== t); l = !0) ;
493 } catch (e) {
494 c = !0, n = e;
495 } finally {
496 try {
497 if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
498 } finally {
499 if (c) throw n;
500 }
501 }
502 return s;
503 }
504 }(e, t) || function(e, t) {
505 if (!e) return;
506 if ("string" == typeof e) return c(e, t);
507 var i = Object.prototype.toString.call(e).slice(8, -1);
508 "Object" === i && e.constructor && (i = e.constructor.name);
509 if ("Map" === i || "Set" === i) return Array.from(e);
510 if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t);
511 }(e, t) || function() {
512 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
513 }();
514 }
515 function c(e, t) {
516 (null == t || t > e.length) && (t = e.length);
517 for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
518 return a;
519 }
520 function u(e) {
521 return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
522 return typeof e;
523 } : function(e) {
524 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
525 }, u(e);
526 }
527 function f(e, t) {
528 for (var i = 0; i < t.length; i++) {
529 var a = t[i];
530 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
531 Object.defineProperty(e, (n = a.key, r = void 0, r = function(e, t) {
532 if ("object" !== u(e) || null === e) return e;
533 var i = e[Symbol.toPrimitive];
534 if (void 0 !== i) {
535 var a = i.call(e, t || "default");
536 if ("object" !== u(a)) return a;
537 throw new TypeError("@@toPrimitive must return a primitive value.");
538 }
539 return ("string" === t ? String : Number)(e);
540 }(n, "string"), "symbol" === u(r) ? r : String(r)), a);
541 }
542 var n, r;
543 }
544 function d(e) {
545 return e && e.__esModule ? e : {
546 default: e
547 };
548 }
549 var p = a.default.dependencyLib, h = function() {
550 function e(t, i, a) {
551 !function(e, t) {
552 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
553 }(this, e), this.mask = t, this.format = i, this.opts = a, this._date = new Date(1, 0, 1),
554 this.initDateObject(t, this.opts);
555 }
556 var t, i, a;
557 return t = e, (i = [ {
558 key: "date",
559 get: function() {
560 return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)),
561 this._date;
562 }
563 }, {
564 key: "initDateObject",
565 value: function(e, t) {
566 var i;
567 for (P(t).lastIndex = 0; i = P(t).exec(this.format); ) {
568 var a = new RegExp("\\d+$").exec(i[0]), n = a ? i[0][0] + "x" : i[0], r = void 0;
569 if (void 0 !== e) {
570 if (a) {
571 var o = P(t).lastIndex, s = T(i.index, t);
572 P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0]));
573 } else r = e.slice(0, g[n] && g[n][4] || n.length);
574 e = e.slice(r.length);
575 }
576 Object.prototype.hasOwnProperty.call(g, n) && this.setValue(this, r, n, g[n][2], g[n][1]);
577 }
578 }
579 }, {
580 key: "setValue",
581 value: function(e, t, i, a, n) {
582 if (void 0 !== t && (e[a] = "ampm" === a ? t : t.replace(/[^0-9]/g, "0"), e["raw" + a] = t.replace(/\s/g, "_")),
583 void 0 !== n) {
584 var r = e[a];
585 ("day" === a && 29 === parseInt(r) || "month" === a && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
586 "day" === a && (v = !0, 0 === parseInt(r) && (r = 1)), "month" === a && (v = !0),
587 "year" === a && (v = !0, r.length < 4 && (r = M(r, 4, !0))), "" === r || isNaN(r) || n.call(e._date, r),
588 "ampm" === a && n.call(e._date, r);
589 }
590 }
591 }, {
592 key: "reset",
593 value: function() {
594 this._date = new Date(1, 0, 1);
595 }
596 }, {
597 key: "reInit",
598 value: function() {
599 this._date = void 0, this.date;
600 }
601 } ]) && f(t.prototype, i), a && f(t, a), Object.defineProperty(t, "prototype", {
602 writable: !1
603 }), e;
604 }(), m = (new Date).getFullYear(), v = !1, g = {
605 d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
606 dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
607 return M(Date.prototype.getDate.call(this), 2);
608 } ],
609 ddd: [ "" ],
610 dddd: [ "" ],
611 m: [ "[1-9]|1[012]", function(e) {
612 var t = e ? parseInt(e) : 0;
613 return t > 0 && t--, Date.prototype.setMonth.call(this, t);
614 }, "month", function() {
615 return Date.prototype.getMonth.call(this) + 1;
616 } ],
617 mm: [ "0[1-9]|1[012]", function(e) {
618 var t = e ? parseInt(e) : 0;
619 return t > 0 && t--, Date.prototype.setMonth.call(this, t);
620 }, "month", function() {
621 return M(Date.prototype.getMonth.call(this) + 1, 2);
622 } ],
623 mmm: [ "" ],
624 mmmm: [ "" ],
625 yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
626 return M(Date.prototype.getFullYear.call(this), 2);
627 } ],
628 yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
629 return M(Date.prototype.getFullYear.call(this), 4);
630 } ],
631 h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
632 hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
633 return M(Date.prototype.getHours.call(this), 2);
634 } ],
635 hx: [ function(e) {
636 return "[0-9]{".concat(e, "}");
637 }, Date.prototype.setHours, "hours", function(e) {
638 return Date.prototype.getHours;
639 } ],
640 H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
641 HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
642 return M(Date.prototype.getHours.call(this), 2);
643 } ],
644 Hx: [ function(e) {
645 return "[0-9]{".concat(e, "}");
646 }, Date.prototype.setHours, "hours", function(e) {
647 return function() {
648 return M(Date.prototype.getHours.call(this), e);
649 };
650 } ],
651 M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
652 MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
653 return M(Date.prototype.getMinutes.call(this), 2);
654 } ],
655 s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
656 ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() {
657 return M(Date.prototype.getSeconds.call(this), 2);
658 } ],
659 l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
660 return M(Date.prototype.getMilliseconds.call(this), 3);
661 }, 3 ],
662 L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
663 return M(Date.prototype.getMilliseconds.call(this), 2);
664 }, 2 ],
665 t: [ "[ap]", y, "ampm", b, 1 ],
666 tt: [ "[ap]m", y, "ampm", b, 2 ],
667 T: [ "[AP]", y, "ampm", b, 1 ],
668 TT: [ "[AP]M", y, "ampm", b, 2 ],
669 Z: [ ".*", void 0, "Z", function() {
670 var e = this.toString().match(/\((.+)\)/)[1];
671 e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
672 return l(e, 1)[0];
673 })).join(""));
674 return e;
675 } ],
676 o: [ "" ],
677 S: [ "" ]
678 }, k = {
679 isoDate: "yyyy-mm-dd",
680 isoTime: "HH:MM:ss",
681 isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
682 isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
683 };
684 function y(e) {
685 var t = this.getHours();
686 e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
687 }
688 function b() {
689 var e = this.getHours();
690 return (e = e || 12) >= 12 ? "PM" : "AM";
691 }
692 function x(e) {
693 var t = new RegExp("\\d+$").exec(e[0]);
694 if (t && void 0 !== t[0]) {
695 var i = g[e[0][0] + "x"].slice("");
696 return i[0] = i[0](t[0]), i[3] = i[3](t[0]), i;
697 }
698 if (g[e[0]]) return g[e[0]];
699 }
700 function P(e) {
701 if (!e.tokenizer) {
702 var t = [], i = [];
703 for (var a in g) if (/\.*x$/.test(a)) {
704 var n = a[0] + "\\d+";
705 -1 === i.indexOf(n) && i.push(n);
706 } else -1 === t.indexOf(a[0]) && t.push(a[0]);
707 e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.",
708 e.tokenizer = new RegExp(e.tokenizer, "g");
709 }
710 return e.tokenizer;
711 }
712 function w(e, t, i) {
713 if (!v) return !0;
714 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;
715 if ("29" == e.day) {
716 var a = T(t.pos, i);
717 if ("yyyy" === a.targetMatch[0] && t.pos - a.targetMatchIndex == 2) return t.remove = t.pos + 1,
718 t;
719 } else if ("02" == e.month && "30" == e.day && void 0 !== t.c) return e.day = "03",
720 e.date.setDate(3), e.date.setMonth(1), t.insert = [ {
721 pos: t.pos,
722 c: "0"
723 }, {
724 pos: t.pos + 1,
725 c: t.c
726 } ], t.caret = o.seekNext.call(this, t.pos + 1), t;
727 return !1;
728 }
729 function S(e, t, i, a) {
730 var n, o, s = "";
731 for (P(i).lastIndex = 0; n = P(i).exec(e); ) {
732 if (void 0 === t) if (o = x(n)) s += "(" + o[0] + ")"; else switch (n[0]) {
733 case "[":
734 s += "(";
735 break;
736
737 case "]":
738 s += ")?";
739 break;
740
741 default:
742 s += (0, r.default)(n[0]);
743 } else if (o = x(n)) if (!0 !== a && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += n[0]; else s += n[0];
744 }
745 return s;
746 }
747 function M(e, t, i) {
748 for (e = String(e), t = t || 2; e.length < t; ) e = i ? e + "0" : "0" + e;
749 return e;
750 }
751 function _(e, t, i) {
752 return "string" == typeof e ? new h(e, t, i) : e && "object" === u(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
753 }
754 function O(e, t) {
755 return S(t.inputFormat, {
756 date: e
757 }, t);
758 }
759 function T(e, t) {
760 var i, a, n = 0, r = 0;
761 for (P(t).lastIndex = 0; a = P(t).exec(t.inputFormat); ) {
762 var o = new RegExp("\\d+$").exec(a[0]);
763 if ((n += r = o ? parseInt(o[0]) : a[0].length) >= e + 1) {
764 i = a, a = P(t).exec(t.inputFormat);
765 break;
766 }
767 }
768 return {
769 targetMatchIndex: n - r,
770 nextMatch: a,
771 targetMatch: i
772 };
773 }
774 a.default.extendAliases({
775 datetime: {
776 mask: function(e) {
777 return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = k[e.inputFormat] || e.inputFormat,
778 e.displayFormat = k[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = k[e.outputFormat] || e.outputFormat || e.inputFormat,
779 e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""),
780 e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e),
781 null;
782 },
783 placeholder: "",
784 inputFormat: "isoDateTime",
785 displayFormat: null,
786 outputFormat: null,
787 min: null,
788 max: null,
789 skipOptionalPartCharacter: "",
790 i18n: {
791 dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
792 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" ],
793 ordinalSuffix: [ "st", "nd", "rd", "th" ]
794 },
795 preValidation: function(e, t, i, a, n, r, o, s) {
796 if (s) return !0;
797 if (isNaN(i) && e[t] !== i) {
798 var l = T(t, n);
799 if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) {
800 var c = g[l.targetMatch[0]][0];
801 if (new RegExp(c).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0",
802 {
803 fuzzy: !0,
804 buffer: e,
805 refreshFromBuffer: {
806 start: t - 1,
807 end: t + 1
808 },
809 pos: t + 1
810 };
811 }
812 }
813 return !0;
814 },
815 postValidation: function(e, t, i, a, n, r, o, l) {
816 var c, u;
817 if (o) return !0;
818 if (!1 === a && (((c = T(t + 1, n)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]] || (c = T(t + 2, n)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]]) && (u = g[c.targetMatch[0]][0]),
819 void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(i + "0") ? (e[t] = i,
820 e[t + 1] = "0", a = {
821 pos: t + 2,
822 caret: t
823 }) : new RegExp(u).test("0" + i) && (e[t] = "0", e[t + 1] = i, a = {
824 pos: t + 2
825 })), !1 === a)) return a;
826 if (a.fuzzy && (e = a.buffer, t = a.pos), (c = T(t, n)).targetMatch && c.targetMatch[0] && void 0 !== g[c.targetMatch[0]]) {
827 var f = g[c.targetMatch[0]];
828 u = f[0];
829 var d = e.slice(c.targetMatchIndex, c.targetMatchIndex + c.targetMatch[0].length);
830 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"),
831 "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],
832 delete r.validPositions[h];
833 }
834 var v = a, k = _(e.join(""), n.inputFormat, n);
835 return v && !isNaN(k.date.getTime()) && (n.prefillYear && (v = function(e, t, i) {
836 if (e.year !== e.rawyear) {
837 var a = m.toString(), n = e.rawyear.replace(/[^0-9]/g, ""), r = a.slice(0, n.length), o = a.slice(n.length);
838 if (2 === n.length && n === r) {
839 var s = new Date(m, e.month - 1, e.day);
840 e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(m),
841 e.year = a, t.insert = [ {
842 pos: t.pos + 1,
843 c: o[0]
844 }, {
845 pos: t.pos + 2,
846 c: o[1]
847 } ]);
848 }
849 }
850 return t;
851 }(k, v, n)), v = function(e, t, i, a, n) {
852 if (!t) return t;
853 if (t && i.min && !isNaN(i.min.date.getTime())) {
854 var r;
855 for (e.reset(), P(i).lastIndex = 0; r = P(i).exec(i.inputFormat); ) {
856 var o;
857 if ((o = x(r)) && o[3]) {
858 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 !== a.validPositions[p + r.index] || d ? (f[p] = l[p],
859 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("")),
860 "ampm" === o[2] && c != u && i.min.date.getTime() > e.date.getTime() && (f[p] = u[p]));
861 s.call(e._date, f.join(""));
862 }
863 }
864 t = i.min.date.getTime() <= e.date.getTime(), e.reInit();
865 }
866 return t && i.max && (isNaN(i.max.date.getTime()) || (t = i.max.date.getTime() >= e.date.getTime())),
867 t;
868 }(k, v = w.call(this, k, v, n), n, r)), void 0 !== t && v && a.pos !== t ? {
869 buffer: S(n.inputFormat, k, n).split(""),
870 refreshFromBuffer: {
871 start: t,
872 end: a.pos
873 },
874 pos: a.caret || a.pos
875 } : v;
876 },
877 onKeyDown: function(e, t, i, a) {
878 e.ctrlKey && e.key === n.keys.ArrowRight && (this.inputmask._valueSet(O(new Date, a)),
879 p(this).trigger("setvalue"));
880 },
881 onUnMask: function(e, t, i) {
882 return t ? S(i.outputFormat, _(e, i.inputFormat, i), i, !0) : t;
883 },
884 casing: function(e, t, i, a) {
885 return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e;
886 },
887 onBeforeMask: function(e, t) {
888 return "[object Date]" === Object.prototype.toString.call(e) && (e = O(e, t)), e;
889 },
890 insertMode: !1,
891 insertModeVisual: !1,
892 shiftPositions: !1,
893 keepStatic: !1,
894 inputmode: "numeric",
895 prefillYear: !0
896 }
897 });
898 },
899 3851: function(e, t, i) {
900 var a, n = (a = i(2394)) && a.__esModule ? a : {
901 default: a
902 }, r = i(8711), o = i(4713);
903 n.default.extendDefinitions({
904 A: {
905 validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
906 casing: "upper"
907 },
908 "&": {
909 validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
910 casing: "upper"
911 },
912 "#": {
913 validator: "[0-9A-Fa-f]",
914 casing: "upper"
915 }
916 });
917 var s = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");
918 function l(e, t, i, a, n) {
919 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,
920 s.test(e);
921 }
922 n.default.extendAliases({
923 cssunit: {
924 regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
925 },
926 url: {
927 regex: "(https?|ftp)://.*",
928 autoUnmask: !1,
929 keepStatic: !1,
930 tabThrough: !0
931 },
932 ip: {
933 mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}",
934 definitions: {
935 i: {
936 validator: l
937 },
938 j: {
939 validator: l
940 },
941 k: {
942 validator: l
943 },
944 l: {
945 validator: l
946 }
947 },
948 onUnMask: function(e, t, i) {
949 return e;
950 },
951 inputmode: "decimal",
952 substitutes: {
953 ",": "."
954 }
955 },
956 email: {
957 mask: function(e) {
958 var t = e.separator, i = e.quantifier, a = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", n = a;
959 if (t) for (var r = 0; r < i; r++) n += "[".concat(t).concat(a, "]");
960 return n;
961 },
962 greedy: !1,
963 casing: "lower",
964 separator: null,
965 quantifier: 5,
966 skipOptionalPartCharacter: "",
967 onBeforePaste: function(e, t) {
968 return (e = e.toLowerCase()).replace("mailto:", "");
969 },
970 definitions: {
971 "*": {
972 validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
973 },
974 "-": {
975 validator: "[0-9A-Za-z-]"
976 }
977 },
978 onUnMask: function(e, t, i) {
979 return e;
980 },
981 inputmode: "email"
982 },
983 mac: {
984 mask: "##:##:##:##:##:##"
985 },
986 vin: {
987 mask: "V{13}9{4}",
988 definitions: {
989 V: {
990 validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
991 casing: "upper"
992 }
993 },
994 clearIncomplete: !0,
995 autoUnmask: !0
996 },
997 ssn: {
998 mask: "999-99-9999",
999 postValidation: function(e, t, i, a, n, s, l) {
1000 var c = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
1001 return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""));
1002 }
1003 }
1004 });
1005 },
1006 207: function(e, t, i) {
1007 var a = s(i(2394)), n = s(i(7184)), r = i(8711), o = i(2839);
1008 function s(e) {
1009 return e && e.__esModule ? e : {
1010 default: e
1011 };
1012 }
1013 var l = a.default.dependencyLib;
1014 function c(e, t) {
1015 for (var i = "", n = 0; n < e.length; n++) a.default.prototype.definitions[e.charAt(n)] || t.definitions[e.charAt(n)] || t.optionalmarker[0] === e.charAt(n) || t.optionalmarker[1] === e.charAt(n) || t.quantifiermarker[0] === e.charAt(n) || t.quantifiermarker[1] === e.charAt(n) || t.groupmarker[0] === e.charAt(n) || t.groupmarker[1] === e.charAt(n) || t.alternatormarker === e.charAt(n) ? i += "\\" + e.charAt(n) : i += e.charAt(n);
1016 return i;
1017 }
1018 function u(e, t, i, a) {
1019 if (e.length > 0 && t > 0 && (!i.digitsOptional || a)) {
1020 var n = e.indexOf(i.radixPoint), r = !1;
1021 i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === n && (e.push(i.radixPoint),
1022 n = e.length - 1);
1023 for (var o = 1; o <= t; o++) isFinite(e[n + o]) || (e[n + o] = "0");
1024 }
1025 return r && e.push(i.negationSymbol.back), e;
1026 }
1027 function f(e, t) {
1028 var i = 0;
1029 for (var a in "+" === e && (i = r.seekNext.call(this, t.validPositions.length - 1)),
1030 t.tests) if ((a = parseInt(a)) >= i) for (var n = 0, o = t.tests[a].length; n < o; n++) if ((void 0 === t.validPositions[a] || "-" === e) && t.tests[a][n].match.def === e) return a + (void 0 !== t.validPositions[a] && "-" !== e ? 1 : 0);
1031 return i;
1032 }
1033 function d(e, t) {
1034 for (var i = -1, a = 0, n = t.validPositions.length; a < n; a++) {
1035 var r = t.validPositions[a];
1036 if (r && r.match.def === e) {
1037 i = a;
1038 break;
1039 }
1040 }
1041 return i;
1042 }
1043 function p(e, t, i, a, n) {
1044 var r = t.buffer ? t.buffer.indexOf(n.radixPoint) : -1, o = (-1 !== r || a && n.jitMasking) && new RegExp(n.definitions[9].validator).test(e);
1045 return n._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
1046 insert: {
1047 pos: r === i ? r + 1 : r,
1048 c: n.radixPoint
1049 },
1050 pos: i
1051 } : o;
1052 }
1053 a.default.extendAliases({
1054 numeric: {
1055 mask: function(e) {
1056 e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""),
1057 " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)),
1058 "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp");
1059 var t = "0", i = e.radixPoint;
1060 !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick,
1061 e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!",
1062 "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}, e.definitions[i].validator = "[" + e.radixPoint + "]",
1063 e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1,
1064 e.numericInput = !0);
1065 var a, r = "[+]";
1066 if (r += c(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {},
1067 e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator,
1068 e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0),
1069 r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
1070 var o = e.digits.toString().split(",");
1071 isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (a = r + i + t + "{0," + e.digits + "}",
1072 e.keepStatic = !0) : r += i + t + "{" + e.digits + "}");
1073 } else e.inputmode = "numeric";
1074 return r += c(e.suffix, e), r += "[-]", a && (r = [ a + c(e.suffix, e) + "[-]", r ]),
1075 e.greedy = !1, function(e) {
1076 void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
1077 n.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")),
1078 e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)),
1079 null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, n.default)(e.groupSeparator), "g"), ""),
1080 "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN,
1081 isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done");
1082 }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
1083 r;
1084 },
1085 _mask: function(e) {
1086 return "(" + e.groupSeparator + "999){+|1}";
1087 },
1088 digits: "*",
1089 digitsOptional: !0,
1090 enforceDigitsOnBlur: !1,
1091 radixPoint: ".",
1092 positionCaretOnClick: "radixFocus",
1093 _radixDance: !0,
1094 groupSeparator: "",
1095 allowMinus: !0,
1096 negationSymbol: {
1097 front: "-",
1098 back: ""
1099 },
1100 prefix: "",
1101 suffix: "",
1102 min: null,
1103 max: null,
1104 SetMaxOnOverflow: !1,
1105 step: 1,
1106 inputType: "text",
1107 unmaskAsNumber: !1,
1108 roundingFN: Math.round,
1109 inputmode: "decimal",
1110 shortcuts: {
1111 k: "1000",
1112 m: "1000000"
1113 },
1114 placeholder: "0",
1115 greedy: !1,
1116 rightAlign: !0,
1117 insertMode: !0,
1118 autoUnmask: !1,
1119 skipOptionalPartCharacter: "",
1120 usePrototypeDefinitions: !1,
1121 stripLeadingZeroes: !0,
1122 substituteRadixPoint: !0,
1123 definitions: {
1124 0: {
1125 validator: p
1126 },
1127 1: {
1128 validator: p,
1129 definitionSymbol: "9"
1130 },
1131 9: {
1132 validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
1133 definitionSymbol: "*"
1134 },
1135 "+": {
1136 validator: function(e, t, i, a, n) {
1137 return n.allowMinus && ("-" === e || e === n.negationSymbol.front);
1138 }
1139 },
1140 "-": {
1141 validator: function(e, t, i, a, n) {
1142 return n.allowMinus && e === n.negationSymbol.back;
1143 }
1144 }
1145 },
1146 preValidation: function(e, t, i, a, n, r, o, s) {
1147 if (!1 !== n.__financeInput && i === n.radixPoint) return !1;
1148 var l = e.indexOf(n.radixPoint), c = t;
1149 if (t = function(e, t, i, a, n) {
1150 return n._radixDance && n.numericInput && t !== n.negationSymbol.back && e <= i && (i > 0 || t == n.radixPoint) && (void 0 === a.validPositions[e - 1] || a.validPositions[e - 1].input !== n.negationSymbol.back) && (e -= 1),
1151 e;
1152 }(t, i, l, r, n), "-" === i || i === n.negationSymbol.front) {
1153 if (!0 !== n.allowMinus) return !1;
1154 var u = !1, p = d("+", r), h = d("-", r);
1155 return -1 !== p && (u = [ p, h ]), !1 !== u ? {
1156 remove: u,
1157 caret: c - n.negationSymbol.back.length
1158 } : {
1159 insert: [ {
1160 pos: f.call(this, "+", r),
1161 c: n.negationSymbol.front,
1162 fromIsValid: !0
1163 }, {
1164 pos: f.call(this, "-", r),
1165 c: n.negationSymbol.back,
1166 fromIsValid: void 0
1167 } ],
1168 caret: c + n.negationSymbol.back.length
1169 };
1170 }
1171 if (i === n.groupSeparator) return {
1172 caret: c
1173 };
1174 if (s) return !0;
1175 if (-1 !== l && !0 === n._radixDance && !1 === a && i === n.radixPoint && void 0 !== n.digits && (isNaN(n.digits) || parseInt(n.digits) > 0) && l !== t) return {
1176 caret: n._radixDance && t === l - 1 ? l + 1 : l
1177 };
1178 if (!1 === n.__financeInput) if (a) {
1179 if (n.digitsOptional) return {
1180 rewritePosition: o.end
1181 };
1182 if (!n.digitsOptional) {
1183 if (o.begin > l && o.end <= l) return i === n.radixPoint ? {
1184 insert: {
1185 pos: l + 1,
1186 c: "0",
1187 fromIsValid: !0
1188 },
1189 rewritePosition: l
1190 } : {
1191 rewritePosition: l + 1
1192 };
1193 if (o.begin < l) return {
1194 rewritePosition: o.begin - 1
1195 };
1196 }
1197 } else if (!n.showMaskOnHover && !n.showMaskOnFocus && !n.digitsOptional && n.digits > 0 && "" === this.__valueGet.call(this.el)) return {
1198 rewritePosition: l
1199 };
1200 return {
1201 rewritePosition: t
1202 };
1203 },
1204 postValidation: function(e, t, i, a, n, r, o) {
1205 if (!1 === a) return a;
1206 if (o) return !0;
1207 if (null !== n.min || null !== n.max) {
1208 var s = n.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, n, {
1209 unmaskAsNumber: !0
1210 }));
1211 if (null !== n.min && s < n.min && (s.toString().length > n.min.toString().length || s < 0)) return !1;
1212 if (null !== n.max && s > n.max) return !!n.SetMaxOnOverflow && {
1213 refreshFromBuffer: !0,
1214 buffer: u(n.max.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse()
1215 };
1216 }
1217 return a;
1218 },
1219 onUnMask: function(e, t, i) {
1220 if ("" === t && !0 === i.nullable) return t;
1221 var a = e.replace(i.prefix, "");
1222 return a = (a = a.replace(i.suffix, "")).replace(new RegExp((0, n.default)(i.groupSeparator), "g"), ""),
1223 "" !== i.placeholder.charAt(0) && (a = a.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")),
1224 i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== a.indexOf(i.radixPoint) && (a = a.replace(n.default.call(this, i.radixPoint), ".")),
1225 a = (a = a.replace(new RegExp("^" + (0, n.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0,
1226 n.default)(i.negationSymbol.back) + "$"), ""), Number(a)) : a;
1227 },
1228 isComplete: function(e, t) {
1229 var i = (t.numericInput ? e.slice().reverse() : e).join("");
1230 return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, n.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
1231 n.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
1232 n.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0,
1233 n.default)(t.radixPoint), ".")), isFinite(i);
1234 },
1235 onBeforeMask: function(e, t) {
1236 var i = t.radixPoint || ",";
1237 isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i));
1238 var a = "-" === 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;
1239 e = o + ("" !== s ? i + s : s);
1240 var c = 0;
1241 if ("" !== i && (c = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits,
1242 "" !== s || !t.digitsOptional)) {
1243 var f = Math.pow(10, c || 1);
1244 e = e.replace((0, n.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(c)),
1245 e = e.toString().replace(".", i);
1246 }
1247 if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))),
1248 null !== t.min || null !== t.max) {
1249 var d = e.toString().replace(i, ".");
1250 null !== t.min && d < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", i));
1251 }
1252 return a && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), c, t, l).join("");
1253 },
1254 onBeforeWrite: function(e, t, i, a) {
1255 function r(e, t) {
1256 if (!1 !== a.__financeInput || t) {
1257 var i = e.indexOf(a.radixPoint);
1258 -1 !== i && e.splice(i, 1);
1259 }
1260 if ("" !== a.groupSeparator) for (;-1 !== (i = e.indexOf(a.groupSeparator)); ) e.splice(i, 1);
1261 return e;
1262 }
1263 var o, s;
1264 if (a.stripLeadingZeroes && (s = function(e, t) {
1265 var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, n.default)(t.negationSymbol.front) + "?" : "") + (0,
1266 n.default)(t.prefix) + ")(.*)(" + (0, n.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
1267 n.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = i ? i[2] : "", r = !1;
1268 return a && (a = a.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)),
1269 !(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < a.length)) && r;
1270 }(t, a))) 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],
1271 delete t[c + d];
1272 if (e) switch (e.type) {
1273 case "blur":
1274 case "checkval":
1275 if (null !== a.min) {
1276 var p = a.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, a, {
1277 unmaskAsNumber: !0
1278 }));
1279 if (null !== a.min && p < a.min) return {
1280 refreshFromBuffer: !0,
1281 buffer: u(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
1282 };
1283 }
1284 if (t[t.length - 1] === a.negationSymbol.front) {
1285 var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, n.default)(a.negationSymbol.front) + "?" : "") + (0,
1286 n.default)(a.prefix) + ")(.*)(" + (0, n.default)(a.suffix) + ("" != a.negationSymbol.back ? (0,
1287 n.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join(""));
1288 0 == (h ? h[2] : "") && (o = {
1289 refreshFromBuffer: !0,
1290 buffer: [ 0 ]
1291 });
1292 } else if ("" !== a.radixPoint) {
1293 t.indexOf(a.radixPoint) === a.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + a.suffix.length) : (t.splice(0, 1 + a.suffix.length),
1294 o = {
1295 refreshFromBuffer: !0,
1296 buffer: r(t)
1297 }));
1298 }
1299 if (a.enforceDigitsOnBlur) {
1300 var m = (o = o || {}) && o.buffer || t.slice().reverse();
1301 o.refreshFromBuffer = !0, o.buffer = u(m, a.digits, a, !0).reverse();
1302 }
1303 }
1304 return o;
1305 },
1306 onKeyDown: function(e, t, i, a) {
1307 var n, r = l(this);
1308 if (3 != e.location) {
1309 var s, c = e.key;
1310 if ((s = a.shortcuts && a.shortcuts[c]) && s.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(s)),
1311 r.trigger("setvalue"), !1;
1312 }
1313 if (e.ctrlKey) switch (e.key) {
1314 case o.keys.ArrowUp:
1315 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step)),
1316 r.trigger("setvalue"), !1;
1317
1318 case o.keys.ArrowDown:
1319 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step)),
1320 r.trigger("setvalue"), !1;
1321 }
1322 if (!e.shiftKey && (e.key === o.keys.Delete || e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI) && i.begin !== t.length) {
1323 if (t[e.key === o.keys.Delete ? i.begin - 1 : i.end] === a.negationSymbol.front) return n = t.slice().reverse(),
1324 "" !== a.negationSymbol.front && n.shift(), "" !== a.negationSymbol.back && n.pop(),
1325 r.trigger("setvalue", [ n.join(""), i.begin ]), !1;
1326 if (!0 === a._radixDance) {
1327 var f = t.indexOf(a.radixPoint);
1328 if (a.digitsOptional) {
1329 if (0 === f) return (n = t.slice().reverse()).pop(), r.trigger("setvalue", [ n.join(""), i.begin >= n.length ? n.length : i.begin ]),
1330 !1;
1331 } else if (-1 !== f && (i.begin < f || i.end < f || e.key === o.keys.Delete && (i.begin === f || i.begin - 1 === f))) {
1332 var d = void 0;
1333 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),
1334 i.begin--, i.end--)), (n = t.slice().reverse()).splice(n.length - i.begin, i.begin - i.end + 1),
1335 n = u(n, a.digits, a).join(""), d && (i = d), r.trigger("setvalue", [ n, i.begin >= n.length ? f + 1 : i.begin ]),
1336 !1;
1337 }
1338 }
1339 }
1340 }
1341 },
1342 currency: {
1343 prefix: "",
1344 groupSeparator: ",",
1345 alias: "numeric",
1346 digits: 2,
1347 digitsOptional: !1
1348 },
1349 decimal: {
1350 alias: "numeric"
1351 },
1352 integer: {
1353 alias: "numeric",
1354 inputmode: "numeric",
1355 digits: 0
1356 },
1357 percentage: {
1358 alias: "numeric",
1359 min: 0,
1360 max: 100,
1361 suffix: " %",
1362 digits: 0,
1363 allowMinus: !1
1364 },
1365 indianns: {
1366 alias: "numeric",
1367 _mask: function(e) {
1368 return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}";
1369 },
1370 groupSeparator: ",",
1371 radixPoint: ".",
1372 placeholder: "0",
1373 digits: 2,
1374 digitsOptional: !1
1375 }
1376 });
1377 },
1378 9380: function(e, t, i) {
1379 var a;
1380 Object.defineProperty(t, "__esModule", {
1381 value: !0
1382 }), t.default = void 0;
1383 var n = ((a = i(8741)) && a.__esModule ? a : {
1384 default: a
1385 }).default ? window : {};
1386 t.default = n;
1387 },
1388 7760: function(e, t, i) {
1389 Object.defineProperty(t, "__esModule", {
1390 value: !0
1391 }), t.HandleNativePlaceholder = function(e, t) {
1392 var i = e ? e.inputmask : this;
1393 if (s.ie) {
1394 if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
1395 var a = r.getBuffer.call(i).slice(), n = e.inputmask._valueGet();
1396 if (n !== t) {
1397 var o = r.getLastValidPosition.call(i);
1398 -1 === o && n === r.getBufferTemplate.call(i).join("") ? a = [] : -1 !== o && u.call(i, a),
1399 d(e, a);
1400 }
1401 }
1402 } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
1403 }, t.applyInputValue = c, t.checkVal = f, t.clearOptionalTail = u, t.unmaskedvalue = function(e) {
1404 var t = e ? e.inputmask : this, i = t.opts, a = t.maskset;
1405 if (e) {
1406 if (void 0 === e.inputmask) return e.value;
1407 e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
1408 }
1409 for (var n = [], o = a.validPositions, s = 0, l = o.length; s < l; s++) o[s] && o[s].match && (1 != o[s].match.static || Array.isArray(a.metadata) && !0 !== o[s].generatedInput) && n.push(o[s].input);
1410 var u = 0 === n.length ? "" : (t.isRTL ? n.reverse() : n).join("");
1411 if ("function" == typeof i.onUnMask) {
1412 var f = (t.isRTL ? r.getBuffer.call(t).slice().reverse() : r.getBuffer.call(t)).join("");
1413 u = i.onUnMask.call(t, f, u, i);
1414 }
1415 return u;
1416 }, t.writeBuffer = d;
1417 var a = i(2839), n = i(4713), r = i(8711), o = i(7215), s = i(9845), l = i(6030);
1418 function c(e, t) {
1419 var i = e ? e.inputmask : this, a = i.opts;
1420 e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t),
1421 f(e, !0, !1, t = (t || "").toString().split("")), i.undoValue = i._valueGet(!0),
1422 (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === r.getBufferTemplate.call(i).join("") && -1 === r.getLastValidPosition.call(i) && e.inputmask._valueSet("");
1423 }
1424 function u(e) {
1425 e.length = 0;
1426 for (var t, i = n.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t);
1427 return e;
1428 }
1429 function f(e, t, i, a, s) {
1430 var c = e ? e.inputmask : this, u = c.maskset, f = c.opts, p = c.dependencyLib, h = a.slice(), m = "", v = -1, g = void 0, k = f.skipOptionalPartCharacter;
1431 f.skipOptionalPartCharacter = "", r.resetMaskSet.call(c), u.tests = {}, v = f.radixPoint ? r.determineNewCaretPosition.call(c, {
1432 begin: 0,
1433 end: 0
1434 }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, u.p = v, c.caretPos = {
1435 begin: v
1436 };
1437 var y = [], b = c.caretPos;
1438 if (h.forEach((function(e, t) {
1439 if (void 0 !== e) {
1440 var a = new p.Event("_checkval");
1441 a.key = e, m += e;
1442 var o = r.getLastValidPosition.call(c, void 0, !0);
1443 !function(e, t) {
1444 for (var i = n.getMaskTemplate.call(c, !0, 0).slice(e, r.seekNext.call(c, e, !1, !1)).join("").replace(/'/g, ""), a = i.indexOf(t); a > 0 && " " === i[a - 1]; ) a--;
1445 var o = 0 === a && !r.isMask.call(c, e) && (n.getTest.call(c, e).match.nativeDef === t.charAt(0) || !0 === n.getTest.call(c, e).match.static && n.getTest.call(c, e).match.nativeDef === "'" + t.charAt(0) || " " === n.getTest.call(c, e).match.nativeDef && (n.getTest.call(c, e + 1).match.nativeDef === t.charAt(0) || !0 === n.getTest.call(c, e + 1).match.static && n.getTest.call(c, e + 1).match.nativeDef === "'" + t.charAt(0)));
1446 if (!o && a > 0 && !r.isMask.call(c, e, !1, !0)) {
1447 var s = r.seekNext.call(c, e);
1448 c.caretPos.begin < s && (c.caretPos = {
1449 begin: s
1450 });
1451 }
1452 return o;
1453 }(v, m) ? (g = l.EventHandlers.keypressEvent.call(c, a, !0, !1, i, c.caretPos.begin)) && (v = c.caretPos.begin + 1,
1454 m = "") : g = l.EventHandlers.keypressEvent.call(c, a, !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 && (y.push(g.pos),
1455 c.isRTL || (g.forwardPosition = g.pos + 1)), d.call(c, void 0, r.getBuffer.call(c), g.forwardPosition, a, !1),
1456 c.caretPos = {
1457 begin: g.forwardPosition,
1458 end: g.forwardPosition
1459 }, b = c.caretPos) : void 0 === u.validPositions[t] && h[t] === n.getPlaceholder.call(c, t) && r.isMask.call(c, t, !0) ? c.caretPos.begin++ : c.caretPos = b;
1460 }
1461 })), y.length > 0) {
1462 var x, P, w = r.seekNext.call(c, -1, void 0, !1);
1463 if (!o.isComplete.call(c, r.getBuffer.call(c)) && y.length <= w || o.isComplete.call(c, r.getBuffer.call(c)) && y.length > 0 && y.length !== w && 0 === y[0]) for (var S = w; void 0 !== (x = y.shift()); ) {
1464 var M = new p.Event("_checkval");
1465 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) y.push(g.pos); else if (!g) break;
1466 S++;
1467 }
1468 }
1469 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)),
1470 f.skipOptionalPartCharacter = k;
1471 }
1472 function d(e, t, i, n, s) {
1473 var l = e ? e.inputmask : this, c = l.opts, u = l.dependencyLib;
1474 if (n && "function" == typeof c.onBeforeWrite) {
1475 var f = c.onBeforeWrite.call(l, n, t, i, c);
1476 if (f) {
1477 if (f.refreshFromBuffer) {
1478 var d = f.refreshFromBuffer;
1479 o.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = r.getBuffer.call(l, !0);
1480 }
1481 void 0 !== i && (i = void 0 !== f.caret ? f.caret : i);
1482 }
1483 }
1484 if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === i || void 0 !== n && "blur" === n.type || r.caret.call(l, e, i, void 0, void 0, void 0 !== n && "keydown" === n.type && (n.key === a.keys.Delete || n.key === a.keys.Backspace)),
1485 !0 === s)) {
1486 var p = u(e), h = e.inputmask._valueGet();
1487 e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function() {
1488 h === r.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === o.isComplete.call(l, t) && p.trigger("complete");
1489 }), 0);
1490 }
1491 }
1492 },
1493 2394: function(e, t, i) {
1494 Object.defineProperty(t, "__esModule", {
1495 value: !0
1496 }), t.default = void 0;
1497 var a = i(157), n = v(i(3287)), r = v(i(9380)), o = i(2391), s = i(4713), l = i(8711), c = i(7215), u = i(7760), f = i(9716), d = v(i(7392)), p = v(i(3976)), h = v(i(8741));
1498 function m(e) {
1499 return m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1500 return typeof e;
1501 } : function(e) {
1502 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1503 }, m(e);
1504 }
1505 function v(e) {
1506 return e && e.__esModule ? e : {
1507 default: e
1508 };
1509 }
1510 var g = r.default.document, k = "_inputmask_opts";
1511 function y(e, t, i) {
1512 if (h.default) {
1513 if (!(this instanceof y)) return new y(e, t, i);
1514 this.dependencyLib = n.default, this.el = void 0, this.events = {}, this.maskset = void 0,
1515 !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
1516 e && (t.alias = e)), this.opts = n.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
1517 this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1,
1518 this.undoValue = void 0, this.$el = void 0, this.skipInputEvent = !1, this.validationEvent = !1,
1519 this.ignorable = !1, this.maxLength, this.mouseEnter = !1, this.clicked = 0, this.originalPlaceholder = void 0,
1520 this.isComposing = !1, this.hasAlternator = !1;
1521 }
1522 }
1523 function b(e, t, i) {
1524 var a = y.prototype.aliases[e];
1525 return a ? (a.alias && b(a.alias, void 0, i), n.default.extend(!0, i, a), n.default.extend(!0, i, t),
1526 !0) : (null === i.mask && (i.mask = e), !1);
1527 }
1528 y.prototype = {
1529 dataAttribute: "data-inputmask",
1530 defaults: p.default,
1531 definitions: d.default,
1532 aliases: {},
1533 masksCache: {},
1534 get isRTL() {
1535 return this.opts.isRTL || this.opts.numericInput;
1536 },
1537 mask: function(e) {
1538 var t = this;
1539 return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)),
1540 (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function(e, i) {
1541 var s = n.default.extend(!0, {}, t.opts);
1542 if (function(e, t, i, a) {
1543 function o(t, n) {
1544 var o = "" === a ? t : a + "-" + t;
1545 null !== (n = void 0 !== n ? n : e.getAttribute(o)) && ("string" == typeof n && (0 === t.indexOf("on") ? n = r.default[n] : "false" === n ? n = !1 : "true" === n && (n = !0)),
1546 i[t] = n);
1547 }
1548 if (!0 === t.importDataAttributes) {
1549 var s, l, c, u, f = e.getAttribute(a);
1550 if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")),
1551 l) for (u in c = void 0, l) if ("alias" === u.toLowerCase()) {
1552 c = l[u];
1553 break;
1554 }
1555 for (s in o("alias", c), i.alias && b(i.alias, i, t), t) {
1556 if (l) for (u in c = void 0, l) if (u.toLowerCase() === s.toLowerCase()) {
1557 c = l[u];
1558 break;
1559 }
1560 o(s, c);
1561 }
1562 }
1563 n.default.extend(!0, t, i), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right");
1564 ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"),
1565 t.isRTL = !0);
1566 return Object.keys(i).length;
1567 }(e, s, n.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
1568 var l = (0, o.generateMaskSet)(s, t.noMasksCache);
1569 void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
1570 e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache,
1571 e.inputmask.userOptions = n.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
1572 e.inputmask.$el = (0, n.default)(e), e.inputmask.maskset = l, n.default.data(e, k, t.userOptions),
1573 a.mask.call(e.inputmask));
1574 }
1575 })), e && e[0] && e[0].inputmask || this;
1576 },
1577 option: function(e, t) {
1578 return "string" == typeof e ? this.opts[e] : "object" === m(e) ? (n.default.extend(this.userOptions, e),
1579 this.el && !0 !== t && this.mask(this.el), this) : void 0;
1580 },
1581 unmaskedvalue: function(e) {
1582 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1583 void 0 === this.el || void 0 !== e) {
1584 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
1585 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);
1586 }
1587 return u.unmaskedvalue.call(this, this.el);
1588 },
1589 remove: function() {
1590 if (this.el) {
1591 n.default.data(this.el, k, null);
1592 var e = this.opts.autoUnmask ? (0, u.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
1593 e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
1594 f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", {
1595 get: this.__valueGet,
1596 set: this.__valueSet,
1597 configurable: !0
1598 }) : g.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet),
1599 this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0;
1600 }
1601 return this.el;
1602 },
1603 getemptymask: function() {
1604 return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1605 (this.isRTL ? l.getBufferTemplate.call(this).reverse() : l.getBufferTemplate.call(this)).join("");
1606 },
1607 hasMaskedValue: function() {
1608 return !this.opts.autoUnmask;
1609 },
1610 isComplete: function() {
1611 return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1612 c.isComplete.call(this, l.getBuffer.call(this));
1613 },
1614 getmetadata: function() {
1615 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1616 Array.isArray(this.maskset.metadata)) {
1617 var e = s.getMaskTemplate.call(this, !0, 0, !1).join("");
1618 return this.maskset.metadata.forEach((function(t) {
1619 return t.mask !== e || (e = t, !1);
1620 })), e;
1621 }
1622 return this.maskset.metadata;
1623 },
1624 isValid: function(e) {
1625 if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
1626 e) {
1627 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
1628 u.checkVal.call(this, void 0, !0, !1, t);
1629 } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
1630 for (var i = l.getBuffer.call(this), a = l.determineLastRequiredPosition.call(this), n = i.length - 1; n > a && !l.isMask.call(this, n); n--) ;
1631 return i.splice(a, n + 1 - a), c.isComplete.call(this, i) && e === (this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""));
1632 },
1633 format: function(e, t) {
1634 this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache);
1635 var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
1636 u.checkVal.call(this, void 0, !0, !1, i);
1637 var a = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
1638 return t ? {
1639 value: a,
1640 metadata: this.getmetadata()
1641 } : a;
1642 },
1643 setValue: function(e) {
1644 this.el && (0, n.default)(this.el).trigger("setvalue", [ e ]);
1645 },
1646 analyseMask: o.analyseMask
1647 }, y.extendDefaults = function(e) {
1648 n.default.extend(!0, y.prototype.defaults, e);
1649 }, y.extendDefinitions = function(e) {
1650 n.default.extend(!0, y.prototype.definitions, e);
1651 }, y.extendAliases = function(e) {
1652 n.default.extend(!0, y.prototype.aliases, e);
1653 }, y.format = function(e, t, i) {
1654 return y(t).format(e, i);
1655 }, y.unmask = function(e, t) {
1656 return y(t).unmaskedvalue(e);
1657 }, y.isValid = function(e, t) {
1658 return y(t).isValid(e);
1659 }, y.remove = function(e) {
1660 "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
1661 e.inputmask && e.inputmask.remove();
1662 }));
1663 }, y.setValue = function(e, t) {
1664 "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
1665 e.inputmask ? e.inputmask.setValue(t) : (0, n.default)(e).trigger("setvalue", [ t ]);
1666 }));
1667 }, y.dependencyLib = n.default, r.default.Inputmask = y;
1668 var x = y;
1669 t.default = x;
1670 },
1671 5296: function(e, t, i) {
1672 function a(e) {
1673 return a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1674 return typeof e;
1675 } : function(e) {
1676 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1677 }, a(e);
1678 }
1679 var n = h(i(9380)), r = h(i(2394)), o = h(i(8741));
1680 function s(e, t) {
1681 for (var i = 0; i < t.length; i++) {
1682 var n = t[i];
1683 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
1684 Object.defineProperty(e, (r = n.key, o = void 0, o = function(e, t) {
1685 if ("object" !== a(e) || null === e) return e;
1686 var i = e[Symbol.toPrimitive];
1687 if (void 0 !== i) {
1688 var n = i.call(e, t || "default");
1689 if ("object" !== a(n)) return n;
1690 throw new TypeError("@@toPrimitive must return a primitive value.");
1691 }
1692 return ("string" === t ? String : Number)(e);
1693 }(r, "string"), "symbol" === a(o) ? o : String(o)), n);
1694 }
1695 var r, o;
1696 }
1697 function l(e) {
1698 var t = f();
1699 return function() {
1700 var i, n = p(e);
1701 if (t) {
1702 var r = p(this).constructor;
1703 i = Reflect.construct(n, arguments, r);
1704 } else i = n.apply(this, arguments);
1705 return function(e, t) {
1706 if (t && ("object" === a(t) || "function" == typeof t)) return t;
1707 if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
1708 return function(e) {
1709 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1710 return e;
1711 }(e);
1712 }(this, i);
1713 };
1714 }
1715 function c(e) {
1716 var t = "function" == typeof Map ? new Map : void 0;
1717 return c = function(e) {
1718 if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e;
1719 var i;
1720 if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
1721 if (void 0 !== t) {
1722 if (t.has(e)) return t.get(e);
1723 t.set(e, a);
1724 }
1725 function a() {
1726 return u(e, arguments, p(this).constructor);
1727 }
1728 return a.prototype = Object.create(e.prototype, {
1729 constructor: {
1730 value: a,
1731 enumerable: !1,
1732 writable: !0,
1733 configurable: !0
1734 }
1735 }), d(a, e);
1736 }, c(e);
1737 }
1738 function u(e, t, i) {
1739 return u = f() ? Reflect.construct.bind() : function(e, t, i) {
1740 var a = [ null ];
1741 a.push.apply(a, t);
1742 var n = new (Function.bind.apply(e, a));
1743 return i && d(n, i.prototype), n;
1744 }, u.apply(null, arguments);
1745 }
1746 function f() {
1747 if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1748 if (Reflect.construct.sham) return !1;
1749 if ("function" == typeof Proxy) return !0;
1750 try {
1751 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
1752 !0;
1753 } catch (e) {
1754 return !1;
1755 }
1756 }
1757 function d(e, t) {
1758 return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
1759 return e.__proto__ = t, e;
1760 }, d(e, t);
1761 }
1762 function p(e) {
1763 return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
1764 return e.__proto__ || Object.getPrototypeOf(e);
1765 }, p(e);
1766 }
1767 function h(e) {
1768 return e && e.__esModule ? e : {
1769 default: e
1770 };
1771 }
1772 var m = n.default.document;
1773 if (o.default && m && m.head && m.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) {
1774 var v = function(e) {
1775 !function(e, t) {
1776 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
1777 e.prototype = Object.create(t && t.prototype, {
1778 constructor: {
1779 value: e,
1780 writable: !0,
1781 configurable: !0
1782 }
1783 }), Object.defineProperty(e, "prototype", {
1784 writable: !1
1785 }), t && d(e, t);
1786 }(o, e);
1787 var t, i, a, n = l(o);
1788 function o() {
1789 var e;
1790 !function(e, t) {
1791 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1792 }(this, o);
1793 var t = (e = n.call(this)).getAttributeNames(), i = e.attachShadow({
1794 mode: "closed"
1795 }), a = m.createElement("input");
1796 for (var s in a.type = "text", i.appendChild(a), t) Object.prototype.hasOwnProperty.call(t, s) && a.setAttribute(t[s], e.getAttribute(t[s]));
1797 var l = new r.default;
1798 return l.dataAttribute = "", l.mask(a), a.inputmask.shadowRoot = i, e;
1799 }
1800 return t = o, i && s(t.prototype, i), a && s(t, a), Object.defineProperty(t, "prototype", {
1801 writable: !1
1802 }), t;
1803 }(c(HTMLElement));
1804 n.default.customElements.define("input-mask", v);
1805 }
1806 },
1807 443: function(e, t, i) {
1808 var a = o(i(7957)), n = o(i(2394));
1809 function r(e) {
1810 return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1811 return typeof e;
1812 } : function(e) {
1813 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1814 }, r(e);
1815 }
1816 function o(e) {
1817 return e && e.__esModule ? e : {
1818 default: e
1819 };
1820 }
1821 void 0 === a.default.fn.inputmask && (a.default.fn.inputmask = function(e, t) {
1822 var i, o = this[0];
1823 if (void 0 === t && (t = {}), "string" == typeof e) switch (e) {
1824 case "unmaskedvalue":
1825 return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, a.default)(o).val();
1826
1827 case "remove":
1828 return this.each((function() {
1829 this.inputmask && this.inputmask.remove();
1830 }));
1831
1832 case "getemptymask":
1833 return o && o.inputmask ? o.inputmask.getemptymask() : "";
1834
1835 case "hasMaskedValue":
1836 return !(!o || !o.inputmask) && o.inputmask.hasMaskedValue();
1837
1838 case "isComplete":
1839 return !o || !o.inputmask || o.inputmask.isComplete();
1840
1841 case "getmetadata":
1842 return o && o.inputmask ? o.inputmask.getmetadata() : void 0;
1843
1844 case "setvalue":
1845 n.default.setValue(o, t);
1846 break;
1847
1848 case "option":
1849 if ("string" != typeof t) return this.each((function() {
1850 if (void 0 !== this.inputmask) return this.inputmask.option(t);
1851 }));
1852 if (o && void 0 !== o.inputmask) return o.inputmask.option(t);
1853 break;
1854
1855 default:
1856 return t.alias = e, i = new n.default(t), this.each((function() {
1857 i.mask(this);
1858 }));
1859 } else {
1860 if (Array.isArray(e)) return t.alias = e, i = new n.default(t), this.each((function() {
1861 i.mask(this);
1862 }));
1863 if ("object" == r(e)) return i = new n.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() {
1864 if (void 0 !== this.inputmask) return this.inputmask.option(e);
1865 i.mask(this);
1866 })) : this.each((function() {
1867 i.mask(this);
1868 }));
1869 if (void 0 === e) return this.each((function() {
1870 (i = new n.default(t)).mask(this);
1871 }));
1872 }
1873 });
1874 },
1875 2839: function(e, t) {
1876 function i(e, t) {
1877 return function(e) {
1878 if (Array.isArray(e)) return e;
1879 }(e) || function(e, t) {
1880 var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
1881 if (null != i) {
1882 var a, n, r, o, s = [], l = !0, c = !1;
1883 try {
1884 if (r = (i = i.call(e)).next, 0 === t) {
1885 if (Object(i) !== i) return;
1886 l = !1;
1887 } else for (;!(l = (a = r.call(i)).done) && (s.push(a.value), s.length !== t); l = !0) ;
1888 } catch (e) {
1889 c = !0, n = e;
1890 } finally {
1891 try {
1892 if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
1893 } finally {
1894 if (c) throw n;
1895 }
1896 }
1897 return s;
1898 }
1899 }(e, t) || function(e, t) {
1900 if (!e) return;
1901 if ("string" == typeof e) return a(e, t);
1902 var i = Object.prototype.toString.call(e).slice(8, -1);
1903 "Object" === i && e.constructor && (i = e.constructor.name);
1904 if ("Map" === i || "Set" === i) return Array.from(e);
1905 if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return a(e, t);
1906 }(e, t) || function() {
1907 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1908 }();
1909 }
1910 function a(e, t) {
1911 (null == t || t > e.length) && (t = e.length);
1912 for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
1913 return a;
1914 }
1915 Object.defineProperty(t, "__esModule", {
1916 value: !0
1917 }), t.keys = t.keyCode = void 0, t.toKey = function(e, t) {
1918 return r[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase());
1919 }, t.toKeyCode = function(e) {
1920 return n[e];
1921 };
1922 var n = {
1923 AltGraph: 18,
1924 ArrowDown: 40,
1925 ArrowLeft: 37,
1926 ArrowRight: 39,
1927 ArrowUp: 38,
1928 Backspace: 8,
1929 BACKSPACE_SAFARI: 127,
1930 CapsLock: 20,
1931 Delete: 46,
1932 End: 35,
1933 Enter: 13,
1934 Escape: 27,
1935 Home: 36,
1936 Insert: 45,
1937 PageDown: 34,
1938 PageUp: 33,
1939 Space: 32,
1940 Tab: 9,
1941 c: 67,
1942 x: 88,
1943 z: 90,
1944 Shift: 16,
1945 Control: 17,
1946 Alt: 18,
1947 Pause: 19,
1948 Meta_LEFT: 91,
1949 Meta_RIGHT: 92,
1950 ContextMenu: 93,
1951 Process: 229,
1952 Unidentified: 229,
1953 F1: 112,
1954 F2: 113,
1955 F3: 114,
1956 F4: 115,
1957 F5: 116,
1958 F6: 117,
1959 F7: 118,
1960 F8: 119,
1961 F9: 120,
1962 F10: 121,
1963 F11: 122,
1964 F12: 123
1965 };
1966 t.keyCode = n;
1967 var r = Object.entries(n).reduce((function(e, t) {
1968 var a = i(t, 2), n = a[0], r = a[1];
1969 return e[r] = void 0 === e[r] ? n : e[r], e;
1970 }), {}), o = Object.entries(n).reduce((function(e, t) {
1971 var a = i(t, 2), n = a[0];
1972 a[1];
1973 return e[n] = "Space" === n ? " " : n, e;
1974 }), {});
1975 t.keys = o;
1976 },
1977 2391: function(e, t, i) {
1978 Object.defineProperty(t, "__esModule", {
1979 value: !0
1980 }), t.analyseMask = function(e, t, i) {
1981 var a, 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 n.default, m = [], v = [], g = !1;
1982 function k(e, a, n) {
1983 n = void 0 !== n ? n : e.matches.length;
1984 var o = e.matches[n - 1];
1985 if (t) {
1986 if (0 === a.indexOf("[") || p && /\\d|\\s|\\w|\\p/i.test(a) || "." === a) {
1987 var s = i.casing ? "i" : "";
1988 /^\\p\{.*}$/i.test(a) && (s += "u"), e.matches.splice(n++, 0, {
1989 fn: new RegExp(a, s),
1990 static: !1,
1991 optionality: !1,
1992 newBlockMarker: void 0 === o ? "master" : o.def !== a,
1993 casing: null,
1994 def: a,
1995 placeholder: void 0,
1996 nativeDef: a
1997 });
1998 } else p && (a = a[a.length - 1]), a.split("").forEach((function(t, a) {
1999 o = e.matches[n - 1], e.matches.splice(n++, 0, {
2000 fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null,
2001 static: !0,
2002 optionality: !1,
2003 newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
2004 casing: null,
2005 def: i.staticDefinitionSymbol || t,
2006 placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0,
2007 nativeDef: (p ? "'" : "") + t
2008 });
2009 }));
2010 p = !1;
2011 } else {
2012 var l = i.definitions && i.definitions[a] || i.usePrototypeDefinitions && r.default.prototype.definitions[a];
2013 l && !p ? e.matches.splice(n++, 0, {
2014 fn: l.validator ? "string" == typeof l.validator ? new RegExp(l.validator, i.casing ? "i" : "") : new function() {
2015 this.test = l.validator;
2016 } : new RegExp("."),
2017 static: l.static || !1,
2018 optionality: l.optional || !1,
2019 defOptionality: l.optional || !1,
2020 newBlockMarker: void 0 === o || l.optional ? "master" : o.def !== (l.definitionSymbol || a),
2021 casing: l.casing,
2022 def: l.definitionSymbol || a,
2023 placeholder: l.placeholder,
2024 nativeDef: a,
2025 generated: l.generated
2026 }) : (e.matches.splice(n++, 0, {
2027 fn: /[a-z]/i.test(i.staticDefinitionSymbol || a) ? new RegExp("[" + (i.staticDefinitionSymbol || a) + "]", i.casing ? "i" : "") : null,
2028 static: !0,
2029 optionality: !1,
2030 newBlockMarker: void 0 === o ? "master" : o.def !== a && !0 !== o.static,
2031 casing: null,
2032 def: i.staticDefinitionSymbol || a,
2033 placeholder: void 0 !== i.staticDefinitionSymbol ? a : void 0,
2034 nativeDef: (p ? "'" : "") + a
2035 }), p = !1);
2036 }
2037 }
2038 function y() {
2039 if (m.length > 0) {
2040 if (k(l = m[m.length - 1], o), l.isAlternator) {
2041 c = m.pop();
2042 for (var e = 0; e < c.matches.length; e++) c.matches[e].isGroup && (c.matches[e].isGroup = !1);
2043 m.length > 0 ? (l = m[m.length - 1]).matches.push(c) : h.matches.push(c);
2044 }
2045 } else k(h, o);
2046 }
2047 function b(e) {
2048 var t = new n.default(!0);
2049 return t.openGroup = !1, t.matches = e, t;
2050 }
2051 function x() {
2052 if ((s = m.pop()).openGroup = !1, void 0 !== s) if (m.length > 0) {
2053 if ((l = m[m.length - 1]).matches.push(s), l.isAlternator) {
2054 for (var e = (c = m.pop()).matches[0].matches ? c.matches[0].matches.length : 1, t = 0; t < c.matches.length; t++) c.matches[t].isGroup = !1,
2055 c.matches[t].alternatorGroup = !1, null === i.keepStatic && e < (c.matches[t].matches ? c.matches[t].matches.length : 1) && (i.keepStatic = !0),
2056 e = c.matches[t].matches ? c.matches[t].matches.length : 1;
2057 m.length > 0 ? (l = m[m.length - 1]).matches.push(c) : h.matches.push(c);
2058 }
2059 } else h.matches.push(s); else y();
2060 }
2061 function P(e) {
2062 var t = e.pop();
2063 return t.isQuantifier && (t = b([ e.pop(), t ])), t;
2064 }
2065 t && (i.optionalmarker[0] = void 0, i.optionalmarker[1] = void 0);
2066 for (;a = t ? d.exec(e) : f.exec(e); ) {
2067 if (o = a[0], t) {
2068 switch (o.charAt(0)) {
2069 case "?":
2070 o = "{0,1}";
2071 break;
2072
2073 case "+":
2074 case "*":
2075 o = "{" + o + "}";
2076 break;
2077
2078 case "|":
2079 if (0 === m.length) {
2080 var w = b(h.matches);
2081 w.openGroup = !0, m.push(w), h.matches = [], g = !0;
2082 }
2083 }
2084 switch (o) {
2085 case "\\d":
2086 o = "[0-9]";
2087 break;
2088
2089 case "\\p":
2090 o += d.exec(e)[0], o += d.exec(e)[0];
2091 }
2092 }
2093 if (p) y(); else switch (o.charAt(0)) {
2094 case "$":
2095 case "^":
2096 t || y();
2097 break;
2098
2099 case i.escapeChar:
2100 p = !0, t && y();
2101 break;
2102
2103 case i.optionalmarker[1]:
2104 case i.groupmarker[1]:
2105 x();
2106 break;
2107
2108 case i.optionalmarker[0]:
2109 m.push(new n.default(!1, !0));
2110 break;
2111
2112 case i.groupmarker[0]:
2113 m.push(new n.default(!0));
2114 break;
2115
2116 case i.quantifiermarker[0]:
2117 var S = new n.default(!1, !1, !0), M = (o = o.replace(/[{}?]/g, "")).split("|"), _ = M[0].split(","), O = isNaN(_[0]) ? _[0] : parseInt(_[0]), T = 1 === _.length ? O : isNaN(_[1]) ? _[1] : parseInt(_[1]), E = isNaN(M[1]) ? M[1] : parseInt(M[1]);
2118 "*" !== O && "+" !== O || (O = "*" === T ? 0 : 1), S.quantifier = {
2119 min: O,
2120 max: T,
2121 jit: E
2122 };
2123 var j = m.length > 0 ? m[m.length - 1].matches : h.matches;
2124 (a = j.pop()).isGroup || (a = b([ a ])), j.push(a), j.push(S);
2125 break;
2126
2127 case i.alternatormarker:
2128 if (m.length > 0) {
2129 var A = (l = m[m.length - 1]).matches[l.matches.length - 1];
2130 u = l.openGroup && (void 0 === A.matches || !1 === A.isGroup && !1 === A.isAlternator) ? m.pop() : P(l.matches);
2131 } else u = P(h.matches);
2132 if (u.isAlternator) m.push(u); else if (u.alternatorGroup ? (c = m.pop(), u.alternatorGroup = !1) : c = new n.default(!1, !1, !1, !0),
2133 c.matches.push(u), m.push(c), u.openGroup) {
2134 u.openGroup = !1;
2135 var D = new n.default(!0);
2136 D.alternatorGroup = !0, m.push(D);
2137 }
2138 break;
2139
2140 default:
2141 y();
2142 }
2143 }
2144 g && x();
2145 for (;m.length > 0; ) s = m.pop(), h.matches.push(s);
2146 h.matches.length > 0 && (!function e(a) {
2147 a && a.matches && a.matches.forEach((function(n, r) {
2148 var o = a.matches[r + 1];
2149 (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && n && n.isGroup && (n.isGroup = !1,
2150 t || (k(n, i.groupmarker[0], 0), !0 !== n.openGroup && k(n, i.groupmarker[1]))),
2151 e(n);
2152 }));
2153 }(h), v.push(h));
2154 (i.numericInput || i.isRTL) && function e(t) {
2155 for (var a in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, a)) {
2156 var n = parseInt(a);
2157 if (t.matches[a].isQuantifier && t.matches[n + 1] && t.matches[n + 1].isGroup) {
2158 var r = t.matches[a];
2159 t.matches.splice(a, 1), t.matches.splice(n + 1, 0, r);
2160 }
2161 void 0 !== t.matches[a].matches ? t.matches[a] = e(t.matches[a]) : t.matches[a] = ((o = t.matches[a]) === 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]),
2162 o);
2163 }
2164 var o;
2165 return t;
2166 }(v[0]);
2167 return v;
2168 }, t.generateMaskSet = function(e, t) {
2169 var i;
2170 function n(e, t) {
2171 var i = t.repeat, a = t.groupmarker, n = t.quantifiermarker, r = t.keepStatic;
2172 if (i > 0 || "*" === i || "+" === i) {
2173 var l = "*" === i ? 0 : "+" === i ? 1 : i;
2174 e = a[0] + e + a[1] + n[0] + l + "," + i + n[1];
2175 }
2176 if (!0 === r) {
2177 var c = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g"));
2178 c && c.forEach((function(t, i) {
2179 var a = function(e, t) {
2180 return function(e) {
2181 if (Array.isArray(e)) return e;
2182 }(e) || function(e, t) {
2183 var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2184 if (null != i) {
2185 var a, n, r, o, s = [], l = !0, c = !1;
2186 try {
2187 if (r = (i = i.call(e)).next, 0 === t) {
2188 if (Object(i) !== i) return;
2189 l = !1;
2190 } else for (;!(l = (a = r.call(i)).done) && (s.push(a.value), s.length !== t); l = !0) ;
2191 } catch (e) {
2192 c = !0, n = e;
2193 } finally {
2194 try {
2195 if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
2196 } finally {
2197 if (c) throw n;
2198 }
2199 }
2200 return s;
2201 }
2202 }(e, t) || function(e, t) {
2203 if (!e) return;
2204 if ("string" == typeof e) return s(e, t);
2205 var i = Object.prototype.toString.call(e).slice(8, -1);
2206 "Object" === i && e.constructor && (i = e.constructor.name);
2207 if ("Map" === i || "Set" === i) return Array.from(e);
2208 if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return s(e, t);
2209 }(e, t) || function() {
2210 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2211 }();
2212 }(t.split("["), 2), n = a[0], r = a[1];
2213 r = r.replace("]", ""), e = e.replace(new RegExp("".concat((0, o.default)(n), "\\[").concat((0,
2214 o.default)(r), "\\]")), n.charAt(0) === r.charAt(0) ? "(".concat(n, "|").concat(n).concat(r, ")") : "".concat(n, "[").concat(r, "]"));
2215 }));
2216 }
2217 return e;
2218 }
2219 function l(e, i, o) {
2220 var s, l, c = !1;
2221 return null !== e && "" !== e || ((c = null !== o.regex) ? e = (e = o.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (c = !0,
2222 e = ".*")), 1 === e.length && !1 === o.greedy && 0 !== o.repeat && (o.placeholder = ""),
2223 e = n(e, o), l = c ? "regex_" + o.regex : o.numericInput ? e.split("").reverse().join("") : e,
2224 null !== o.keepStatic && (l = "ks_" + o.keepStatic + l), void 0 === r.default.prototype.masksCache[l] || !0 === t ? (s = {
2225 mask: e,
2226 maskToken: r.default.prototype.analyseMask(e, c, o),
2227 validPositions: [],
2228 _buffer: void 0,
2229 buffer: void 0,
2230 tests: {},
2231 excludes: {},
2232 metadata: i,
2233 maskLength: void 0,
2234 jitOffset: {}
2235 }, !0 !== t && (r.default.prototype.masksCache[l] = s, s = a.default.extend(!0, {}, r.default.prototype.masksCache[l]))) : s = a.default.extend(!0, {}, r.default.prototype.masksCache[l]),
2236 s;
2237 }
2238 "function" == typeof e.mask && (e.mask = e.mask(e));
2239 if (Array.isArray(e.mask)) {
2240 if (e.mask.length > 1) {
2241 null === e.keepStatic && (e.keepStatic = !0);
2242 var c = e.groupmarker[0];
2243 return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) {
2244 c.length > 1 && (c += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? c += t.mask : c += t;
2245 })), l(c += e.groupmarker[1], e.mask, e);
2246 }
2247 e.mask = e.mask.pop();
2248 }
2249 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);
2250 null === e.keepStatic && (e.keepStatic = !1);
2251 return i;
2252 };
2253 var a = l(i(3287)), n = l(i(9695)), r = l(i(2394)), o = l(i(7184));
2254 function s(e, t) {
2255 (null == t || t > e.length) && (t = e.length);
2256 for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
2257 return a;
2258 }
2259 function l(e) {
2260 return e && e.__esModule ? e : {
2261 default: e
2262 };
2263 }
2264 },
2265 157: function(e, t, i) {
2266 Object.defineProperty(t, "__esModule", {
2267 value: !0
2268 }), t.mask = function() {
2269 var e = this, t = this.opts, i = this.el, u = this.dependencyLib;
2270 o.EventRuler.off(i);
2271 var f = function(t, i) {
2272 "textarea" !== t.tagName.toLowerCase() && i.ignorables.push(a.keys.Enter);
2273 var s = t.getAttribute("type"), l = "input" === t.tagName.toLowerCase() && i.supportsInputType.includes(s) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
2274 if (!l) if ("input" === t.tagName.toLowerCase()) {
2275 var c = document.createElement("input");
2276 c.setAttribute("type", s), l = "text" === c.type, c = null;
2277 } else l = "partial";
2278 return !1 !== l ? function(t) {
2279 var a, s;
2280 function l() {
2281 return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== n.getLastValidPosition.call(e) || !0 !== i.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && i.clearMaskOnLostFocus ? (e.isRTL ? r.clearOptionalTail.call(e, n.getBuffer.call(e).slice()).reverse() : r.clearOptionalTail.call(e, n.getBuffer.call(e).slice())).join("") : a.call(this) : "" : a.call(this);
2282 }
2283 function c(e) {
2284 s.call(this, e), this.inputmask && (0, r.applyInputValue)(this, e);
2285 }
2286 if (!t.inputmask.__valueGet) {
2287 if (!0 !== i.noValuePatching) {
2288 if (Object.getOwnPropertyDescriptor) {
2289 var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0;
2290 f && f.get && f.set ? (a = f.get, s = f.set, Object.defineProperty(t, "value", {
2291 get: l,
2292 set: c,
2293 configurable: !0
2294 })) : "input" !== t.tagName.toLowerCase() && (a = function() {
2295 return this.textContent;
2296 }, s = function(e) {
2297 this.textContent = e;
2298 }, Object.defineProperty(t, "value", {
2299 get: l,
2300 set: c,
2301 configurable: !0
2302 }));
2303 } else document.__lookupGetter__ && t.__lookupGetter__("value") && (a = t.__lookupGetter__("value"),
2304 s = t.__lookupSetter__("value"), t.__defineGetter__("value", l), t.__defineSetter__("value", c));
2305 t.inputmask.__valueGet = a, t.inputmask.__valueSet = s;
2306 }
2307 t.inputmask._valueGet = function(t) {
2308 return e.isRTL && !0 !== t ? a.call(this.el).split("").reverse().join("") : a.call(this.el);
2309 }, t.inputmask._valueSet = function(t, i) {
2310 s.call(this.el, null == t ? "" : !0 !== i && e.isRTL ? t.split("").reverse().join("") : t);
2311 }, void 0 === a && (a = function() {
2312 return this.value;
2313 }, s = function(e) {
2314 this.value = e;
2315 }, function(t) {
2316 if (u.valHooks && (void 0 === u.valHooks[t] || !0 !== u.valHooks[t].inputmaskpatch)) {
2317 var a = u.valHooks[t] && u.valHooks[t].get ? u.valHooks[t].get : function(e) {
2318 return e.value;
2319 }, o = u.valHooks[t] && u.valHooks[t].set ? u.valHooks[t].set : function(e, t) {
2320 return e.value = t, e;
2321 };
2322 u.valHooks[t] = {
2323 get: function(t) {
2324 if (t.inputmask) {
2325 if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue();
2326 var r = a(t);
2327 return -1 !== n.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== i.nullable ? r : "";
2328 }
2329 return a(t);
2330 },
2331 set: function(e, t) {
2332 var i = o(e, t);
2333 return e.inputmask && (0, r.applyInputValue)(e, t), i;
2334 },
2335 inputmaskpatch: !0
2336 };
2337 }
2338 }(t.type), function(e) {
2339 o.EventRuler.on(e, "mouseenter", (function() {
2340 var e = this, t = e.inputmask._valueGet(!0);
2341 t != (e.inputmask.isRTL ? n.getBuffer.call(e.inputmask).slice().reverse() : n.getBuffer.call(e.inputmask)).join("") && (0,
2342 r.applyInputValue)(e, t);
2343 }));
2344 }(t));
2345 }
2346 }(t) : t.inputmask = void 0, l;
2347 }(i, t);
2348 if (!1 !== f) {
2349 e.originalPlaceholder = i.placeholder, e.maxLength = void 0 !== i ? i.maxLength : void 0,
2350 -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in i && null === i.getAttribute("inputmode") && (i.inputMode = t.inputmode,
2351 i.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(i.autocomplete),
2352 s.iphone && (t.insertModeVisual = !1, i.setAttribute("autocorrect", "off")), o.EventRuler.on(i, "submit", c.EventHandlers.submitEvent),
2353 o.EventRuler.on(i, "reset", c.EventHandlers.resetEvent), o.EventRuler.on(i, "blur", c.EventHandlers.blurEvent),
2354 o.EventRuler.on(i, "focus", c.EventHandlers.focusEvent), o.EventRuler.on(i, "invalid", c.EventHandlers.invalidEvent),
2355 o.EventRuler.on(i, "click", c.EventHandlers.clickEvent), o.EventRuler.on(i, "mouseleave", c.EventHandlers.mouseleaveEvent),
2356 o.EventRuler.on(i, "mouseenter", c.EventHandlers.mouseenterEvent), o.EventRuler.on(i, "paste", c.EventHandlers.pasteEvent),
2357 o.EventRuler.on(i, "cut", c.EventHandlers.cutEvent), o.EventRuler.on(i, "complete", t.oncomplete),
2358 o.EventRuler.on(i, "incomplete", t.onincomplete), o.EventRuler.on(i, "cleared", t.oncleared),
2359 !0 !== t.inputEventOnly && o.EventRuler.on(i, "keydown", c.EventHandlers.keyEvent),
2360 (s.mobile || t.inputEventOnly) && i.removeAttribute("maxLength"), o.EventRuler.on(i, "input", c.EventHandlers.inputFallBackEvent)),
2361 o.EventRuler.on(i, "setvalue", c.EventHandlers.setValueEvent), n.getBufferTemplate.call(e).join(""),
2362 e.undoValue = e._valueGet(!0);
2363 var d = (i.inputmask.shadowRoot || i.ownerDocument).activeElement;
2364 if ("" !== i.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || d === i) {
2365 (0, r.applyInputValue)(i, i.inputmask._valueGet(!0), t);
2366 var p = n.getBuffer.call(e).slice();
2367 !1 === l.isComplete.call(e, p) && t.clearIncomplete && n.resetMaskSet.call(e), t.clearMaskOnLostFocus && d !== i && (-1 === n.getLastValidPosition.call(e) ? p = [] : r.clearOptionalTail.call(e, p)),
2368 (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && d === i || "" !== i.inputmask._valueGet(!0)) && (0,
2369 r.writeBuffer)(i, p), d === i && n.caret.call(e, i, n.seekNext.call(e, n.getLastValidPosition.call(e)));
2370 }
2371 }
2372 };
2373 var a = i(2839), n = i(8711), r = i(7760), o = i(9716), s = i(9845), l = i(7215), c = i(6030);
2374 },
2375 9695: function(e, t) {
2376 Object.defineProperty(t, "__esModule", {
2377 value: !0
2378 }), t.default = function(e, t, i, a) {
2379 this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1,
2380 this.isOptional = t || !1, this.isQuantifier = i || !1, this.isAlternator = a || !1,
2381 this.quantifier = {
2382 min: 1,
2383 max: 1
2384 };
2385 };
2386 },
2387 3194: function() {
2388 Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
2389 value: function(e, t) {
2390 if (null == this) throw new TypeError('"this" is null or not defined');
2391 var i = Object(this), a = i.length >>> 0;
2392 if (0 === a) return !1;
2393 for (var n = 0 | t, r = Math.max(n >= 0 ? n : a - Math.abs(n), 0); r < a; ) {
2394 if (i[r] === e) return !0;
2395 r++;
2396 }
2397 return !1;
2398 }
2399 });
2400 },
2401 9302: function() {
2402 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), a = Object.keys;
2403 Object.entries || (Object.entries = function(n) {
2404 return e(a(n), (function(e, a) {
2405 return i(e, "string" == typeof a && t(n, a) ? [ [ a, n[a] ] ] : []);
2406 }), []);
2407 });
2408 },
2409 7149: function() {
2410 function e(t) {
2411 return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2412 return typeof e;
2413 } : function(e) {
2414 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2415 }, e(t);
2416 }
2417 "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) {
2418 return e.__proto__;
2419 } : function(e) {
2420 return e.constructor.prototype;
2421 });
2422 },
2423 4013: function() {
2424 String.prototype.includes || (String.prototype.includes = function(e, t) {
2425 return "number" != typeof t && (t = 0), !(t + e.length > this.length) && -1 !== this.indexOf(e, t);
2426 });
2427 },
2428 8711: function(e, t, i) {
2429 Object.defineProperty(t, "__esModule", {
2430 value: !0
2431 }), t.caret = function(e, t, i, a, n) {
2432 var r, o = this, s = this.opts;
2433 if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart,
2434 i = e.selectionEnd) : window.getSelection ? (r = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e || (t = r.startOffset,
2435 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),
2436 {
2437 begin: a ? t : c.call(o, t),
2438 end: a ? i : c.call(o, i)
2439 };
2440 if (Array.isArray(t) && (i = o.isRTL ? t[0] : t[1], t = o.isRTL ? t[1] : t[0]),
2441 void 0 !== t.begin && (i = o.isRTL ? t.begin : t.end, t = o.isRTL ? t.end : t.begin),
2442 "number" == typeof t) {
2443 t = a ? t : c.call(o, t), i = "number" == typeof (i = a ? i : c.call(o, i)) ? i : t;
2444 var l = parseInt(((e.ownerDocument.defaultView || window).getComputedStyle ? (e.ownerDocument.defaultView || window).getComputedStyle(e, null) : e.currentStyle).fontSize) * i;
2445 if (e.scrollLeft = l > e.scrollWidth ? l : 0, e.inputmask.caretPos = {
2446 begin: t,
2447 end: i
2448 }, s.insertModeVisual && !1 === s.insertMode && t === i && (n || i++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) if ("setSelectionRange" in e) e.setSelectionRange(t, i); else if (window.getSelection) {
2449 if (r = document.createRange(), void 0 === e.firstChild || null === e.firstChild) {
2450 var u = document.createTextNode("");
2451 e.appendChild(u);
2452 }
2453 r.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length),
2454 r.setEnd(e.firstChild, i < e.inputmask._valueGet().length ? i : e.inputmask._valueGet().length),
2455 r.collapse(!0);
2456 var f = window.getSelection();
2457 f.removeAllRanges(), f.addRange(r);
2458 } else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", i),
2459 r.moveStart("character", t), r.select());
2460 }
2461 }, t.determineLastRequiredPosition = function(e) {
2462 var t, i, r = this, s = r.maskset, l = r.dependencyLib, c = a.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;
2463 for (t = f + 1; t < c.length; t++) h = (i = a.getTestTemplate.call(r, t, h, t - 1)).locator.slice(),
2464 d[t] = l.extend(!0, {}, i);
2465 var m = p && void 0 !== p.alternation ? p.locator[p.alternation] : void 0;
2466 for (t = u - 1; t > f && (((i = d[t]).match.optionality || i.match.optionalQuantifier && i.match.newBlockMarker || m && (m !== d[t].locator[p.alternation] && 1 != i.match.static || !0 === i.match.static && i.locator[p.alternation] && n.checkAlternationMatch.call(r, i.locator[p.alternation].toString().split(","), m.toString().split(",")) && "" !== a.getTests.call(r, t)[0].def)) && c[t] === a.getPlaceholder.call(r, t, i.match)); t--) u--;
2467 return e ? {
2468 l: u,
2469 def: d[u] ? d[u].match : void 0
2470 } : u;
2471 }, t.determineNewCaretPosition = function(e, t, i) {
2472 var n = this, c = n.maskset, u = n.opts;
2473 t && (n.isRTL ? e.end = e.begin : e.begin = e.end);
2474 if (e.begin === e.end) {
2475 switch (i = i || u.positionCaretOnClick) {
2476 case "none":
2477 break;
2478
2479 case "select":
2480 e = {
2481 begin: 0,
2482 end: r.call(n).length
2483 };
2484 break;
2485
2486 case "ignore":
2487 e.end = e.begin = l.call(n, o.call(n));
2488 break;
2489
2490 case "radixFocus":
2491 if (n.clicked > 1 && 0 == c.validPositions.length) break;
2492 if (function(e) {
2493 if ("" !== u.radixPoint && 0 !== u.digits) {
2494 var t = c.validPositions;
2495 if (void 0 === t[e] || t[e].input === a.getPlaceholder.call(n, e)) {
2496 if (e < l.call(n, -1)) return !0;
2497 var i = r.call(n).indexOf(u.radixPoint);
2498 if (-1 !== i) {
2499 for (var o = 0, s = t.length; o < s; o++) if (t[o] && i < o && t[o].input !== a.getPlaceholder.call(n, o)) return !1;
2500 return !0;
2501 }
2502 }
2503 }
2504 return !1;
2505 }(e.begin)) {
2506 var f = r.call(n).join("").indexOf(u.radixPoint);
2507 e.end = e.begin = u.numericInput ? l.call(n, f) : f;
2508 break;
2509 }
2510
2511 default:
2512 var d = e.begin, p = o.call(n, d, !0), h = l.call(n, -1 !== p || s.call(n, 0) ? p : -1);
2513 if (d <= h) e.end = e.begin = s.call(n, d, !1, !0) ? d : l.call(n, d); else {
2514 var m = c.validPositions[p], v = a.getTestTemplate.call(n, h, m ? m.match.locator : void 0, m), g = a.getPlaceholder.call(n, h, v.match);
2515 if ("" !== g && r.call(n)[h] !== g && !0 !== v.match.optionalQuantifier && !0 !== v.match.newBlockMarker || !s.call(n, h, u.keepStatic, !0) && v.match.def === g) {
2516 var k = l.call(n, h);
2517 (d >= k || d === h) && (h = k);
2518 }
2519 e.end = e.begin = h;
2520 }
2521 }
2522 return e;
2523 }
2524 }, t.getBuffer = r, t.getBufferTemplate = function() {
2525 var e = this.maskset;
2526 void 0 === e._buffer && (e._buffer = a.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice()));
2527 return e._buffer;
2528 }, t.getLastValidPosition = o, t.isMask = s, t.resetMaskSet = function(e) {
2529 var t = this.maskset;
2530 t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0);
2531 }, t.seekNext = l, t.seekPrevious = function(e, t) {
2532 var i = this, n = e - 1;
2533 if (e <= 0) return 0;
2534 for (;n > 0 && (!0 === t && (!0 !== a.getTest.call(i, n).match.newBlockMarker || !s.call(i, n, void 0, !0)) || !0 !== t && !s.call(i, n, void 0, !0)); ) n--;
2535 return n;
2536 }, t.translatePosition = c;
2537 var a = i(4713), n = i(7215);
2538 function r(e) {
2539 var t = this, i = t.maskset;
2540 return void 0 !== i.buffer && !0 !== e || (i.buffer = a.getMaskTemplate.call(t, !0, o.call(t), !0),
2541 void 0 === i._buffer && (i._buffer = i.buffer.slice())), i.buffer;
2542 }
2543 function o(e, t, i) {
2544 var a = this.maskset, n = -1, r = -1, o = i || a.validPositions;
2545 void 0 === e && (e = -1);
2546 for (var s = 0, l = o.length; s < l; s++) o[s] && (t || !0 !== o[s].generatedInput) && (s <= e && (n = s),
2547 s >= e && (r = s));
2548 return -1 === n || n == e ? r : -1 == r || e - n < r - e ? n : r;
2549 }
2550 function s(e, t, i) {
2551 var n = this, r = this.maskset, o = a.getTestTemplate.call(n, e).match;
2552 if ("" === o.def && (o = a.getTest.call(n, e).match), !0 !== o.static) return o.fn;
2553 if (!0 === i && void 0 !== r.validPositions[e] && !0 !== r.validPositions[e].generatedInput) return !0;
2554 if (!0 !== t && e > -1) {
2555 if (i) {
2556 var s = a.getTests.call(n, e);
2557 return s.length > 1 + ("" === s[s.length - 1].match.def ? 1 : 0);
2558 }
2559 var l = a.determineTestTemplate.call(n, e, a.getTests.call(n, e)), c = a.getPlaceholder.call(n, e, l.match);
2560 return l.match.def !== c;
2561 }
2562 return !1;
2563 }
2564 function l(e, t, i) {
2565 var n = this;
2566 void 0 === i && (i = !0);
2567 for (var r = e + 1; "" !== a.getTest.call(n, r).match.def && (!0 === t && (!0 !== a.getTest.call(n, r).match.newBlockMarker || !s.call(n, r, void 0, !0)) || !0 !== t && !s.call(n, r, void 0, i)); ) r++;
2568 return r;
2569 }
2570 function c(e) {
2571 var t = this.opts, i = this.el;
2572 return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !i || (e = this._valueGet().length - e) < 0 && (e = 0),
2573 e;
2574 }
2575 },
2576 4713: function(e, t, i) {
2577 Object.defineProperty(t, "__esModule", {
2578 value: !0
2579 }), t.determineTestTemplate = c, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, a, n) {
2580 var r = this, o = this.opts, u = this.maskset, f = o.greedy;
2581 n && o.greedy && (o.greedy = !1, r.maskset.tests = {});
2582 t = t || 0;
2583 var p, h, m, v, g = [], k = 0;
2584 do {
2585 if (!0 === e && u.validPositions[k]) h = (m = n && u.validPositions[k].match.optionality && void 0 === u.validPositions[k + 1] && (!0 === u.validPositions[k].generatedInput || u.validPositions[k].input == o.skipOptionalPartCharacter && k > 0) ? c.call(r, k, d.call(r, k, p, k - 1)) : u.validPositions[k]).match,
2586 p = m.locator.slice(), g.push(!0 === i ? m.input : !1 === i ? h.nativeDef : s.call(r, k, h)); else {
2587 h = (m = l.call(r, k, p, k - 1)).match, p = m.locator.slice();
2588 var y = !0 !== a && (!1 !== o.jitMasking ? o.jitMasking : h.jit);
2589 (v = (v && h.static && h.def !== o.groupSeparator && null === h.fn || u.validPositions[k - 1] && h.static && h.def !== o.groupSeparator && null === h.fn) && u.tests[k]) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? h.nativeDef : s.call(r, g.length, h)) : v = !1;
2590 }
2591 k++;
2592 } while (!0 !== h.static || "" !== h.def || t > k);
2593 "" === g[g.length - 1] && g.pop();
2594 !1 === i && void 0 !== u.maskLength || (u.maskLength = k - 1);
2595 return o.greedy = f, g;
2596 }, t.getPlaceholder = s, t.getTest = u, t.getTestTemplate = l, t.getTests = d, t.isSubsetOf = f;
2597 var a, n = (a = i(2394)) && a.__esModule ? a : {
2598 default: a
2599 };
2600 function r(e, t) {
2601 var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
2602 if ("" !== i) for (;i.length < t; ) i += "0";
2603 return i;
2604 }
2605 function o(e) {
2606 var t = e.locator[e.alternation];
2607 return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
2608 }
2609 function s(e, t, i) {
2610 var a = this.opts, n = this.maskset;
2611 if (void 0 !== (t = t || u.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
2612 if (!0 === t.static) {
2613 if (e > -1 && void 0 === n.validPositions[e]) {
2614 var r, o = d.call(this, e), s = [];
2615 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, n, e, !0, a)) && (s.push(o[l]),
2616 !0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
2617 }
2618 return t.def;
2619 }
2620 return a.placeholder.charAt(e % a.placeholder.length);
2621 }
2622 function l(e, t, i) {
2623 return this.maskset.validPositions[e] || c.call(this, e, d.call(this, e, t ? t.slice() : t, i));
2624 }
2625 function c(e, t) {
2626 var i = this.opts, a = 0, n = function(e, t) {
2627 var i = 0, a = !1;
2628 t.forEach((function(e) {
2629 e.match.optionality && (0 !== i && i !== e.match.optionality && (a = !0), (0 === i || i > e.match.optionality) && (i = e.match.optionality));
2630 })), i && (0 == e || 1 == t.length ? i = 0 : a || (i = 0));
2631 return i;
2632 }(e, t);
2633 e = e > 0 ? e - 1 : 0;
2634 var o, s, l, c = r(u.call(this, e));
2635 i.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (a = 1);
2636 for (var f = 0; f < t.length - a; f++) {
2637 var d = t[f];
2638 o = r(d, c.length);
2639 var p = Math.abs(o - c);
2640 (void 0 === s || "" !== o && p < s || l && !i.greedy && l.match.optionality && l.match.optionality - n > 0 && "master" === l.match.newBlockMarker && (!d.match.optionality || d.match.optionality - n < 1 || !d.match.newBlockMarker) || l && !i.greedy && l.match.optionalQuantifier && !d.match.optionalQuantifier) && (s = p,
2641 l = d);
2642 }
2643 return l;
2644 }
2645 function u(e, t) {
2646 var i = this.maskset;
2647 return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0];
2648 }
2649 function f(e, t, i) {
2650 function a(e) {
2651 for (var t, i = [], a = -1, n = 0, r = e.length; n < r; n++) if ("-" === e.charAt(n)) for (t = e.charCodeAt(n + 1); ++a < t; ) i.push(String.fromCharCode(a)); else a = e.charCodeAt(n),
2652 i.push(e.charAt(n));
2653 return i.join("");
2654 }
2655 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 !== a(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(a(e.match.fn.toString().replace(/[[\]/]/g, "")));
2656 }
2657 function d(e, t, i) {
2658 var a, r, o = this, s = this.dependencyLib, l = this.maskset, u = this.opts, d = this.el, p = l.maskToken, h = t ? i : 0, m = t ? t.slice() : [ 0 ], v = [], g = !1, k = t ? t.join("") : "";
2659 function y(t, i, r, s) {
2660 function c(r, s, p) {
2661 function m(e, t) {
2662 var i = 0 === t.matches.indexOf(e);
2663 return i || t.matches.every((function(a, n) {
2664 return !0 === a.isQuantifier ? i = m(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = m(e, a)),
2665 !i;
2666 })), i;
2667 }
2668 function x(e, t, i) {
2669 var a, n;
2670 if ((l.tests[e] || l.validPositions[e]) && (l.tests[e] || [ l.validPositions[e] ]).every((function(e, r) {
2671 if (e.mloc[t]) return a = e, !1;
2672 var o = void 0 !== i ? i : e.alternation, s = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1;
2673 return (void 0 === n || s < n) && -1 !== s && (a = e, n = s), !0;
2674 })), a) {
2675 var r = a.locator[a.alternation];
2676 return (a.mloc[t] || a.mloc[r] || a.locator).slice((void 0 !== i ? i : a.alternation) + 1);
2677 }
2678 return void 0 !== i ? x(e, t) : void 0;
2679 }
2680 function P(e, t) {
2681 var i = e.alternation, a = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]);
2682 if (!a && i > t.alternation) for (var n = t.alternation; n < i; n++) if (e.locator[n] !== t.locator[n]) {
2683 i = n, a = !0;
2684 break;
2685 }
2686 if (a) {
2687 e.mloc = e.mloc || {};
2688 var r = e.locator[i];
2689 if (void 0 !== r) {
2690 if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()),
2691 void 0 !== t) {
2692 for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]);
2693 e.locator[i] = Object.keys(e.mloc).join(",");
2694 }
2695 return !0;
2696 }
2697 e.alternation = void 0;
2698 }
2699 return !1;
2700 }
2701 function w(e, t) {
2702 if (e.locator.length !== t.locator.length) return !1;
2703 for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1;
2704 return !0;
2705 }
2706 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;
2707 if (h === e && void 0 === r.matches) {
2708 if (v.push({
2709 match: r,
2710 locator: s.reverse(),
2711 cd: k,
2712 mloc: {}
2713 }), !r.optionality || void 0 !== p || !(u.definitions && u.definitions[r.nativeDef] && u.definitions[r.nativeDef].optional || n.default.prototype.definitions[r.nativeDef] && n.default.prototype.definitions[r.nativeDef].optional)) return !0;
2714 g = !0, h = e;
2715 } else if (void 0 !== r.matches) {
2716 if (r.isGroup && p !== r) return function() {
2717 if (r = c(t.matches[t.matches.indexOf(r) + 1], s, p)) return !0;
2718 }();
2719 if (r.isOptional) return function() {
2720 var t = r, n = v.length;
2721 if (r = y(r, i, s, p), v.length > 0) {
2722 if (v.forEach((function(e, t) {
2723 t >= n && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1);
2724 })), a = v[v.length - 1].match, void 0 !== p || !m(a, t)) return r;
2725 g = !0, h = e;
2726 }
2727 }();
2728 if (r.isAlternator) return function() {
2729 o.hasAlternator = !0;
2730 var a, n, m, k = r, y = [], b = v.slice(), S = s.length, M = !1, _ = i.length > 0 ? i.shift() : -1;
2731 if (-1 === _ || "string" == typeof _) {
2732 var O, T = h, E = i.slice(), j = [];
2733 if ("string" == typeof _) j = _.split(","); else for (O = 0; O < k.matches.length; O++) j.push(O.toString());
2734 if (void 0 !== l.excludes[e]) {
2735 for (var A = j.slice(), D = 0, B = l.excludes[e].length; D < B; D++) {
2736 var C = l.excludes[e][D].toString().split(":");
2737 s.length == C[1] && j.splice(j.indexOf(C[0]), 1);
2738 }
2739 0 === j.length && (delete l.excludes[e], j = A);
2740 }
2741 (!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && T >= u.keepStatic) && (j = j.slice(0, 1));
2742 for (var R = 0; R < j.length; R++) {
2743 O = parseInt(j[R]), v = [], i = "string" == typeof _ && x(h, O, S) || E.slice();
2744 var F = k.matches[O];
2745 if (F && c(F, [ O ].concat(s), p)) r = !0; else if (0 === R && (M = !0), F && F.matches && F.matches.length > k.matches[0].matches.length) break;
2746 a = v.slice(), h = T, v = [];
2747 for (var L = 0; L < a.length; L++) {
2748 var I = a[L], V = !1;
2749 I.match.jit = I.match.jit || M, I.alternation = I.alternation || S, P(I);
2750 for (var N = 0; N < y.length; N++) {
2751 var G = y[N];
2752 if ("string" != typeof _ || void 0 !== I.alternation && j.includes(I.locator[I.alternation].toString())) {
2753 if (I.match.nativeDef === G.match.nativeDef) {
2754 V = !0, P(G, I);
2755 break;
2756 }
2757 if (f(I, G, u)) {
2758 P(I, G) && (V = !0, y.splice(y.indexOf(G), 0, I));
2759 break;
2760 }
2761 if (f(G, I, u)) {
2762 P(G, I);
2763 break;
2764 }
2765 if (m = G, !0 === (n = I).match.static && !0 !== m.match.static && m.match.fn.test(n.match.def, l, e, !1, u, !1)) {
2766 w(I, G) || void 0 !== d.inputmask.userOptions.keepStatic ? P(I, G) && (V = !0, y.splice(y.indexOf(G), 0, I)) : u.keepStatic = !0;
2767 break;
2768 }
2769 }
2770 }
2771 V || y.push(I);
2772 }
2773 }
2774 v = b.concat(y), h = e, g = v.length > 0, r = y.length > 0, i = E.slice();
2775 } else r = c(k.matches[_] || t.matches[_], [ _ ].concat(s), p);
2776 if (r) return !0;
2777 }();
2778 if (r.isQuantifier && p !== t.matches[t.matches.indexOf(r) - 1]) return function() {
2779 for (var n = r, o = !1, f = i.length > 0 ? i.shift() : 0; f < (isNaN(n.quantifier.max) ? f + 1 : n.quantifier.max) && h <= e; f++) {
2780 var d = t.matches[t.matches.indexOf(n) - 1];
2781 if (r = c(d, [ f ].concat(s), d)) {
2782 if (v.forEach((function(t, i) {
2783 (a = b(d, t.match) ? t.match : v[v.length - 1].match).optionalQuantifier = f >= n.quantifier.min,
2784 a.jit = (f + 1) * (d.matches.indexOf(a) + 1) > n.quantifier.jit, a.optionalQuantifier && m(a, d) && (g = !0,
2785 h = e, u.greedy && null == l.validPositions[e - 1] && f > n.quantifier.min && -1 != [ "*", "+" ].indexOf(n.quantifier.max) && (v.pop(),
2786 k = void 0), o = !0, r = !1), !o && a.jit && (l.jitOffset[e] = d.matches.length - d.matches.indexOf(a));
2787 })), o) break;
2788 return !0;
2789 }
2790 }
2791 }();
2792 if (r = y(r, i, s, p)) return !0;
2793 } else h++;
2794 }
2795 for (var p = i.length > 0 ? i.shift() : 0; p < t.matches.length; p++) if (!0 !== t.matches[p].isQuantifier) {
2796 var m = c(t.matches[p], [ p ].concat(r), s);
2797 if (m && h === e) return m;
2798 if (h > e) break;
2799 }
2800 }
2801 function b(e, t) {
2802 var i = -1 != e.matches.indexOf(t);
2803 return i || e.matches.forEach((function(e, a) {
2804 void 0 === e.matches || i || (i = b(e, t));
2805 })), i;
2806 }
2807 if (e > -1) {
2808 if (void 0 === t) {
2809 for (var x, P = e - 1; void 0 === (x = l.validPositions[P] || l.tests[P]) && P > -1; ) P--;
2810 void 0 !== x && P > -1 && (m = function(e, t) {
2811 var i, a = [];
2812 return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (a = c.call(o, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
2813 "" !== e.def && (0 === a.length ? (i = e.alternation, a = e.locator.slice()) : e.locator[i] && -1 === a[i].toString().indexOf(e.locator[i]) && (a[i] += "," + e.locator[i]));
2814 }))), a;
2815 }(P, x), k = m.join(""), h = P);
2816 }
2817 if (l.tests[e] && l.tests[e][0].cd === k) return l.tests[e];
2818 for (var w = m.shift(); w < p.length; w++) {
2819 if (y(p[w], m, [ w ]) && h === e || h > e) break;
2820 }
2821 }
2822 return (0 === v.length || g) && v.push({
2823 match: {
2824 fn: null,
2825 static: !0,
2826 optionality: !1,
2827 casing: null,
2828 def: "",
2829 placeholder: ""
2830 },
2831 locator: [],
2832 mloc: {},
2833 cd: k
2834 }), void 0 !== t && l.tests[e] ? r = s.extend(!0, [], v) : (l.tests[e] = s.extend(!0, [], v),
2835 r = l.tests[e]), v.forEach((function(e) {
2836 e.match.optionality = e.match.defOptionality || !1;
2837 })), r;
2838 }
2839 },
2840 7215: function(e, t, i) {
2841 Object.defineProperty(t, "__esModule", {
2842 value: !0
2843 }), t.alternate = s, t.checkAlternationMatch = function(e, t, i) {
2844 for (var a, n = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== i ? i.split(",") : [], s = 0; s < o.length; s++) -1 !== (a = e.indexOf(o[s])) && e.splice(a, 1);
2845 for (var l = 0; l < e.length; l++) if (n.includes(e[l])) {
2846 r = !0;
2847 break;
2848 }
2849 return r;
2850 }, t.handleRemove = function(e, t, i, o, l) {
2851 var c = this, u = this.maskset, f = this.opts;
2852 if ((f.numericInput || c.isRTL) && (t === n.keys.Backspace ? t = n.keys.Delete : t === n.keys.Delete && (t = n.keys.Backspace),
2853 c.isRTL)) {
2854 var d = i.end;
2855 i.end = i.begin, i.begin = d;
2856 }
2857 var p, h = r.getLastValidPosition.call(c, void 0, !0);
2858 i.end >= r.getBuffer.call(c).length && h >= i.end && (i.end = h + 1);
2859 t === n.keys.Backspace ? i.end - i.begin < 1 && (i.begin = r.seekPrevious.call(c, i.begin)) : t === n.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);
2860 if (!1 !== (p = m.call(c, i))) {
2861 if (!0 !== o && !1 !== f.keepStatic || null !== f.regex && -1 !== a.getTest.call(c, i.begin).match.def.indexOf("|")) {
2862 var v = s.call(c, !0);
2863 if (v) {
2864 var g = void 0 !== v.caret ? v.caret : v.pos ? r.seekNext.call(c, v.pos.begin ? v.pos.begin : v.pos) : r.getLastValidPosition.call(c, -1, !0);
2865 (t !== n.keys.Delete || i.begin > g) && i.begin;
2866 }
2867 }
2868 !0 !== o && (u.p = t === n.keys.Delete ? i.begin + p : i.begin, u.p = r.determineNewCaretPosition.call(c, {
2869 begin: u.p,
2870 end: u.p
2871 }, !1, !1 === f.insertMode && t === n.keys.Backspace ? "none" : void 0).begin);
2872 }
2873 }, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = p,
2874 t.revalidateMask = m;
2875 var a = i(4713), n = i(2839), r = i(8711), o = i(6030);
2876 function s(e, t, i, n, o, l) {
2877 var c, u, d, p, h, m, v, g, k, y, 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, T = !1, E = void 0 !== o ? o : r.getLastValidPosition.call(x);
2878 if (l && (y = l.begin, b = l.end, l.begin > l.end && (y = l.end, b = l.begin)),
2879 -1 === E && void 0 === o) c = 0, u = (p = a.getTest.call(x, c)).alternation; else for (;E >= 0; E--) if ((d = S.validPositions[E]) && void 0 !== d.alternation) {
2880 if (E <= (e || 0) && p && p.locator[d.alternation] !== d.locator[d.alternation]) break;
2881 c = E, u = S.validPositions[c].alternation, p = d;
2882 }
2883 if (void 0 !== u) {
2884 v = parseInt(c), S.excludes[v] = S.excludes[v] || [], !0 !== e && S.excludes[v].push((0,
2885 a.getDecisionTaker)(p) + ":" + p.alternation);
2886 var j = [], A = -1;
2887 for (h = v; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) -1 === A && e <= h && void 0 !== t && (j.push(t),
2888 A = j.length - 1), (m = S.validPositions[h]) && !0 !== m.generatedInput && (void 0 === l || h < y || h >= b) && j.push(m.input),
2889 delete S.validPositions[h];
2890 for (-1 === A && void 0 !== t && (j.push(t), A = j.length - 1); void 0 !== S.excludes[v] && S.excludes[v].length < 10; ) {
2891 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,
2892 k = j[h], O = f.call(x, g, k, !1, n, !0)); h++) h === A && (T = O), 1 == e && O && (T = {
2893 caretPos: h
2894 });
2895 if (O) break;
2896 if (r.resetMaskSet.call(x), p = a.getTest.call(x, v), S.validPositions = P.extend(!0, [], M),
2897 S.tests = P.extend(!0, {}, _), !S.excludes[v]) {
2898 T = s.call(x, e, t, i, n, v - 1, l);
2899 break;
2900 }
2901 var D = (0, a.getDecisionTaker)(p);
2902 if (-1 !== S.excludes[v].indexOf(D + ":" + p.alternation)) {
2903 T = s.call(x, e, t, i, n, v - 1, l);
2904 break;
2905 }
2906 for (S.excludes[v].push(D + ":" + p.alternation), h = v; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) delete S.validPositions[h];
2907 }
2908 }
2909 return T && !1 === w.keepStatic || delete S.excludes[v], T;
2910 }
2911 function l(e, t, i) {
2912 var a = this.opts, r = this.maskset;
2913 switch (a.casing || t.casing) {
2914 case "upper":
2915 e = e.toUpperCase();
2916 break;
2917
2918 case "lower":
2919 e = e.toLowerCase();
2920 break;
2921
2922 case "title":
2923 var o = r.validPositions[i - 1];
2924 e = 0 === i || o && o.input === String.fromCharCode(n.keyCode.Space) ? e.toUpperCase() : e.toLowerCase();
2925 break;
2926
2927 default:
2928 if ("function" == typeof a.casing) {
2929 var s = Array.prototype.slice.call(arguments);
2930 s.push(r.validPositions), e = a.casing.apply(this, s);
2931 }
2932 }
2933 return e;
2934 }
2935 function c(e) {
2936 var t = this, i = this.opts, n = this.maskset;
2937 if ("function" == typeof i.isComplete) return i.isComplete(e, i);
2938 if ("*" !== i.repeat) {
2939 var o = !1, s = r.determineLastRequiredPosition.call(t, !0), l = r.seekPrevious.call(t, s.l);
2940 if (void 0 === s.def || s.def.newBlockMarker || s.def.optionality || s.def.optionalQuantifier) {
2941 o = !0;
2942 for (var c = 0; c <= l; c++) {
2943 var u = a.getTestTemplate.call(t, c).match;
2944 if (!0 !== u.static && void 0 === n.validPositions[c] && !0 !== u.optionality && !0 !== u.optionalQuantifier || !0 === u.static && e[c] !== a.getPlaceholder.call(t, c, u)) {
2945 o = !1;
2946 break;
2947 }
2948 }
2949 }
2950 return o;
2951 }
2952 }
2953 function u(e) {
2954 var t = this.opts.insertMode ? 0 : 1;
2955 return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t;
2956 }
2957 function f(e, t, i, n, o, d, v) {
2958 var g = this, k = this.dependencyLib, y = this.opts, b = g.maskset;
2959 i = !0 === i;
2960 var x = e;
2961 function P(e) {
2962 if (void 0 !== e) {
2963 if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]),
2964 e.remove.sort((function(e, t) {
2965 return g.isRTL ? e.pos - t.pos : t.pos - e.pos;
2966 })).forEach((function(e) {
2967 m.call(g, {
2968 begin: e,
2969 end: e + 1
2970 });
2971 })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]),
2972 e.insert.sort((function(e, t) {
2973 return g.isRTL ? t.pos - e.pos : e.pos - t.pos;
2974 })).forEach((function(e) {
2975 "" !== e.c && f.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : n);
2976 })), e.insert = void 0), e.refreshFromBuffer && e.buffer) {
2977 var t = e.refreshFromBuffer;
2978 p.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0;
2979 }
2980 void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0);
2981 }
2982 return e;
2983 }
2984 function w(t, i, o) {
2985 var s = !1;
2986 return a.getTests.call(g, t).every((function(c, f) {
2987 var d = c.match;
2988 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, y, u.call(g, e)) : (i === d.def || i === y.skipOptionalPartCharacter) && "" !== d.def && {
2989 c: a.getPlaceholder.call(g, t, d, !0) || d.def,
2990 pos: t
2991 }))) {
2992 var p = void 0 !== s.c ? s.c : i, h = t;
2993 return p = p === y.skipOptionalPartCharacter && !0 === d.static ? a.getPlaceholder.call(g, t, d, !0) || d.def : p,
2994 !0 !== (s = P(s)) && void 0 !== s.pos && s.pos !== t && (h = s.pos), !0 !== s && void 0 === s.pos && void 0 === s.c ? !1 : (!1 === m.call(g, e, k.extend({}, c, {
2995 input: l.call(g, p, d, h)
2996 }), n, h) && (s = !1), !1);
2997 }
2998 return !0;
2999 })), s;
3000 }
3001 void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin);
3002 var S = !0, M = k.extend(!0, {}, b.validPositions);
3003 if (!1 === y.keepStatic && void 0 !== b.excludes[x] && !0 !== o && !0 !== n) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++) void 0 !== b.excludes[_] && (b.excludes[_] = void 0,
3004 delete b.tests[_]);
3005 if ("function" == typeof y.preValidation && !0 !== n && !0 !== d && (S = P(S = y.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), y, b, e, i || o))),
3006 !0 === S) {
3007 if (S = w(x, t, i), (!i || !0 === n) && !1 === S && !0 !== d) {
3008 var O = b.validPositions[x];
3009 if (!O || !0 !== O.match.static || O.match.def !== t && t !== y.skipOptionalPartCharacter) {
3010 if (y.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) {
3011 var T = !1;
3012 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),
3013 T = !0), e.end > x && (b.validPositions[x] = void 0), !T && !r.isMask.call(g, x, y.keepStatic && 0 === x)) for (var E = x + 1, j = r.seekNext.call(g, x, !1, 0 !== x); E <= j; E++) if (!1 !== (S = w(E, t, i))) {
3014 S = h.call(g, x, void 0 !== S.pos ? S.pos : E) || S, x = E;
3015 break;
3016 }
3017 }
3018 } else S = {
3019 caret: r.seekNext.call(g, x)
3020 };
3021 }
3022 g.hasAlternator && !0 !== o && !i && (!1 === S && y.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = s.call(g, x, t, i, n, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && y.keepStatic || 1 == S && !0 !== y.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = s.call(g, !0))),
3023 !0 === S && (S = {
3024 pos: x
3025 });
3026 }
3027 if ("function" == typeof y.postValidation && !0 !== n && !0 !== d) {
3028 var A = y.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, y, b, i, v);
3029 void 0 !== A && (S = !0 === A ? S : A);
3030 }
3031 S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === d ? (r.resetMaskSet.call(g, !0),
3032 b.validPositions = k.extend(!0, [], M)) : h.call(g, void 0, x, !0);
3033 var D = P(S);
3034 void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !n && (r.resetMaskSet.call(g, !0),
3035 b.validPositions = k.extend(!0, [], M), D = !1));
3036 return D;
3037 }
3038 function d(e, t, i) {
3039 for (var n = this.maskset, r = !1, o = a.getTests.call(this, e), s = 0; s < o.length; s++) {
3040 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, n, e, !1, i))) {
3041 r = !0;
3042 break;
3043 }
3044 if (o[s].match && o[s].match.def === t.match.nativeDef) {
3045 r = void 0;
3046 break;
3047 }
3048 }
3049 return !1 === r && void 0 !== n.jitOffset[e] && (r = d.call(this, e + n.jitOffset[e], t, i)),
3050 r;
3051 }
3052 function p(e, t, i) {
3053 var a, n, s = this, l = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, d = s.isRTL ? i.slice().reverse() : i;
3054 if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(s), l.tests = {},
3055 e = 0, t = i.length, n = r.determineNewCaretPosition.call(s, {
3056 begin: 0,
3057 end: 0
3058 }, !1).begin; else {
3059 for (a = e; a < t; a++) delete l.validPositions[a];
3060 n = e;
3061 }
3062 var p = new u.Event("keypress");
3063 for (a = e; a < t; a++) {
3064 p.key = d[a].toString(), s.ignorable = !1;
3065 var h = o.EventHandlers.keypressEvent.call(s, p, !0, !1, !1, n);
3066 !1 !== h && void 0 !== h && (n = h.forwardPosition);
3067 }
3068 c.skipOptionalPartCharacter = f;
3069 }
3070 function h(e, t, i) {
3071 var n = this, o = this.maskset, s = this.dependencyLib;
3072 if (void 0 === e) for (e = t - 1; e > 0 && !o.validPositions[e]; e--) ;
3073 for (var l = e; l < t; l++) {
3074 if (void 0 === o.validPositions[l] && !r.isMask.call(n, l, !1)) if (0 == l ? a.getTest.call(n, l) : o.validPositions[l - 1]) {
3075 var c = a.getTests.call(n, l).slice();
3076 "" === c[c.length - 1].match.def && c.pop();
3077 var u, d = a.determineTestTemplate.call(n, l, c);
3078 if (d && (!0 !== d.match.jit || "master" === d.match.newBlockMarker && (u = o.validPositions[l + 1]) && !0 === u.match.optionalQuantifier) && ((d = s.extend({}, d, {
3079 input: a.getPlaceholder.call(n, l, d.match, !0) || d.match.def
3080 })).generatedInput = !0, m.call(n, l, d, !0), !0 !== i)) {
3081 var p = o.validPositions[t].input;
3082 return o.validPositions[t] = void 0, f.call(n, t, p, !0, !0);
3083 }
3084 }
3085 }
3086 }
3087 function m(e, t, i, n) {
3088 var o = this, s = this.maskset, l = this.opts, c = this.dependencyLib;
3089 function u(e, t, i) {
3090 var a = t[e];
3091 if (void 0 !== a && !0 === a.match.static && !0 !== a.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
3092 var n = 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];
3093 return n && r;
3094 }
3095 return !1;
3096 }
3097 var p = 0, h = void 0 !== e.begin ? e.begin : e, m = void 0 !== e.end ? e.end : e, v = !0;
3098 if (e.begin > e.end && (h = e.end, m = e.begin), n = void 0 !== n ? n : h, void 0 === i && (h !== m || l.insertMode && void 0 !== s.validPositions[n] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) {
3099 var g, k = c.extend(!0, {}, s.validPositions), y = r.getLastValidPosition.call(o, void 0, !0);
3100 for (s.p = h, g = y; g >= h; g--) delete s.validPositions[g], void 0 === t && delete s.tests[g + 1];
3101 var b, x, P = n, w = P;
3102 for (t && (s.validPositions[n] = c.extend(!0, {}, t), w++, P++), g = t ? m : m - 1; g <= y; g++) {
3103 if (void 0 !== (b = k[g]) && !0 !== b.generatedInput && (g >= m || g >= h && u(g, k, {
3104 begin: h,
3105 end: m
3106 }))) {
3107 for (;"" !== a.getTest.call(o, w).match.def; ) {
3108 if (!1 !== (x = d.call(o, w, b, l)) || "+" === b.match.def) {
3109 "+" === b.match.def && r.getBuffer.call(o, !0);
3110 var S = f.call(o, w, b.input, "+" !== b.match.def, !0);
3111 if (v = !1 !== S, P = (S.pos || w) + 1, !v && x) break;
3112 } else v = !1;
3113 if (v) {
3114 void 0 === t && b.match.static && g === e.begin && p++;
3115 break;
3116 }
3117 if (!v && r.getBuffer.call(o), w > s.maskLength) break;
3118 w++;
3119 }
3120 "" == a.getTest.call(o, w).match.def && (v = !1), w = P;
3121 }
3122 if (!v) break;
3123 }
3124 if (!v) return s.validPositions = c.extend(!0, [], k), r.resetMaskSet.call(o, !0),
3125 !1;
3126 } else t && a.getTest.call(o, n).match.cd === t.match.cd && (s.validPositions[n] = c.extend(!0, {}, t));
3127 return r.resetMaskSet.call(o, !0), p;
3128 }
3129 },
3130 7957: function(t) {
3131 t.exports = e;
3132 }
3133 }, i = {};
3134 function a(e) {
3135 var n = i[e];
3136 if (void 0 !== n) return n.exports;
3137 var r = i[e] = {
3138 exports: {}
3139 };
3140 return t[e](r, r.exports, a), r.exports;
3141 }
3142 var n = {};
3143 return function() {
3144 var e = n;
3145 Object.defineProperty(e, "__esModule", {
3146 value: !0
3147 }), e.default = void 0;
3148 var t, i = (t = a(3046)) && t.__esModule ? t : {
3149 default: t
3150 };
3151 a(443);
3152 var r = i.default;
3153 e.default = r;
3154 }(), n;
3155 }();
3156 }));