favesalon-embed 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/custom-elements/index.d.ts +30 -0
  2. package/dist/favesalon-embed/buy-giftcard-form.entry.js +94 -48
  3. package/dist/favesalon-embed/buy-giftcard-verification.entry.js +15 -3779
  4. package/dist/favesalon-embed/favesalon-embed.css +0 -20
  5. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  6. package/dist/favesalon-embed/icon-checked.entry.js +19 -0
  7. package/dist/favesalon-embed/icon-date.entry.js +19 -0
  8. package/dist/favesalon-embed/icon-loading.entry.js +19 -0
  9. package/dist/favesalon-embed/icon-location-marker.entry.js +19 -0
  10. package/dist/favesalon-embed/icon-phone.entry.js +19 -0
  11. package/dist/favesalon-embed/inputmask-afacb9e0.js +3777 -0
  12. package/dist/favesalon-embed/wizard-existing-user.entry.js +29 -7
  13. package/dist/favesalon-embed/wizard-new-user.entry.js +28 -6
  14. package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +2 -0
  15. package/dist/types/components/icon-checked/icon-checked.d.ts +4 -0
  16. package/dist/types/components/icon-date/icon-date.d.ts +4 -0
  17. package/dist/types/components/icon-loading/icon-loading.d.ts +4 -0
  18. package/dist/types/components/icon-location-marker/icon-location-marker.d.ts +4 -0
  19. package/dist/types/components/icon-phone/icon-phone.d.ts +4 -0
  20. package/dist/types/components.d.ts +75 -0
  21. package/package.json +1 -1
  22. package/dist/favesalon-embed/services-09264f42.js +0 -24132
  23. package/dist/favesalon-embed/services-1406013d.js +0 -24132
  24. package/dist/favesalon-embed/services-9a686ade.js +0 -24122
  25. package/dist/favesalon-embed/services-c2c81c88.js +0 -24131
  26. package/dist/favesalon-embed/services-ef32efdc.js +0 -24132
  27. package/dist/favesalon-embed/utils-00e4ed17.js +0 -33
  28. package/dist/favesalon-embed/utils-daaa9ecc.js +0 -34
  29. package/dist/favesalon-embed/utils-e6e3f132.js +0 -33
  30. package/dist/favesalon-embed/utils-fd30fb29.js +0 -32
@@ -1,3782 +1,9 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { c as createCommonjsModule, a as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-9bc404fc.js';
2
+ import { I as Inputmask } from './inputmask-afacb9e0.js';
3
3
  import { f as formatPhoneNumber } from './utils-359c37f7.js';
4
4
  import { C as Colors } from './colors-ea36347a.js';
5
5
  import { H as HttpService } from './services-82948efc.js';
6
-
7
- var inputmask = createCommonjsModule(function (module, exports) {
8
- /*!
9
- * dist/inputmask
10
- * https://github.com/RobinHerbots/Inputmask
11
- * Copyright (c) 2010 - 2024 Robin Herbots
12
- * Licensed under the MIT license
13
- * Version: 5.0.9
14
- */
15
- !function(e, t) {
16
- if ("object" == 'object' && "object" == 'object') module.exports = t(); else if ("function" == typeof undefined && undefined.amd) undefined([], t); else {
17
- var n = t();
18
- for (var i in n) ("object" == 'object' ? exports : e)[i] = n[i];
19
- }
20
- }("undefined" != typeof self ? self : commonjsGlobal, (function() {
21
- return function() {
22
- "use strict";
23
- var e = {
24
- 3976: function(e, t) {
25
- Object.defineProperty(t, "__esModule", {
26
- value: !0
27
- }), t.default = void 0;
28
- t.default = {
29
- _maxTestPos: 500,
30
- placeholder: "_",
31
- optionalmarker: [ "[", "]" ],
32
- quantifiermarker: [ "{", "}" ],
33
- groupmarker: [ "(", ")" ],
34
- alternatormarker: "|",
35
- escapeChar: "\\",
36
- mask: null,
37
- regex: null,
38
- oncomplete: function() {},
39
- onincomplete: function() {},
40
- oncleared: function() {},
41
- repeat: 0,
42
- greedy: !1,
43
- autoUnmask: !1,
44
- removeMaskOnSubmit: !1,
45
- clearMaskOnLostFocus: !0,
46
- insertMode: !0,
47
- insertModeVisual: !0,
48
- clearIncomplete: !1,
49
- alias: null,
50
- onKeyDown: function() {},
51
- onBeforeMask: null,
52
- onBeforePaste: function(e, t) {
53
- return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e;
54
- },
55
- onBeforeWrite: null,
56
- onUnMask: null,
57
- showMaskOnFocus: !0,
58
- showMaskOnHover: !0,
59
- onKeyValidation: function() {},
60
- skipOptionalPartCharacter: " ",
61
- numericInput: !1,
62
- rightAlign: !1,
63
- undoOnEscape: !0,
64
- radixPoint: "",
65
- _radixDance: !1,
66
- groupSeparator: "",
67
- keepStatic: null,
68
- positionCaretOnTab: !0,
69
- tabThrough: !1,
70
- supportsInputType: [ "text", "tel", "url", "password", "search" ],
71
- isComplete: null,
72
- preValidation: null,
73
- postValidation: null,
74
- staticDefinitionSymbol: void 0,
75
- jitMasking: !1,
76
- nullable: !0,
77
- inputEventOnly: !1,
78
- noValuePatching: !1,
79
- positionCaretOnClick: "lvp",
80
- casing: null,
81
- inputmode: "text",
82
- importDataAttributes: !0,
83
- shiftPositions: !0,
84
- usePrototypeDefinitions: !0,
85
- validationEventTimeOut: 3e3,
86
- substitutes: {}
87
- };
88
- },
89
- 7392: function(e, t) {
90
- Object.defineProperty(t, "__esModule", {
91
- value: !0
92
- }), t.default = void 0;
93
- t.default = {
94
- 9: {
95
- validator: "[0-9\uff10-\uff19]",
96
- definitionSymbol: "*"
97
- },
98
- a: {
99
- validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
100
- definitionSymbol: "*"
101
- },
102
- "*": {
103
- validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
104
- }
105
- };
106
- },
107
- 253: function(e, t) {
108
- Object.defineProperty(t, "__esModule", {
109
- value: !0
110
- }), t.default = function(e, t, n) {
111
- if (void 0 === n) return e.__data ? e.__data[t] : null;
112
- e.__data = e.__data || {}, e.__data[t] = n;
113
- };
114
- },
115
- 3776: function(e, t, n) {
116
- Object.defineProperty(t, "__esModule", {
117
- value: !0
118
- }), t.Event = void 0, t.off = function(e, t) {
119
- var n, i;
120
- u(this[0]) && e && (n = this[0].eventRegistry, i = this[0], e.split(" ").forEach((function(e) {
121
- var a = o(e.split("."), 2);
122
- (function(e, i) {
123
- var a, r, o = [];
124
- if (e.length > 0) if (void 0 === t) for (a = 0, r = n[e][i].length; a < r; a++) o.push({
125
- ev: e,
126
- namespace: i && i.length > 0 ? i : "global",
127
- handler: n[e][i][a]
128
- }); else o.push({
129
- ev: e,
130
- namespace: i && i.length > 0 ? i : "global",
131
- handler: t
132
- }); else if (i.length > 0) for (var l in n) for (var s in n[l]) if (s === i) if (void 0 === t) for (a = 0,
133
- r = n[l][s].length; a < r; a++) o.push({
134
- ev: l,
135
- namespace: s,
136
- handler: n[l][s][a]
137
- }); else o.push({
138
- ev: l,
139
- namespace: s,
140
- handler: t
141
- });
142
- return o;
143
- })(a[0], a[1]).forEach((function(e) {
144
- var t = e.ev, a = e.handler;
145
- !function(e, t, a) {
146
- if (e in n == 1) if (i.removeEventListener ? i.removeEventListener(e, a, !1) : i.detachEvent && i.detachEvent("on".concat(e), a),
147
- "global" === t) for (var r in n[e]) n[e][r].splice(n[e][r].indexOf(a), 1); else n[e][t].splice(n[e][t].indexOf(a), 1);
148
- }(t, e.namespace, a);
149
- }));
150
- })));
151
- return this;
152
- }, t.on = function(e, t) {
153
- if (u(this[0])) {
154
- var n = this[0].eventRegistry, i = this[0];
155
- e.split(" ").forEach((function(e) {
156
- var a = o(e.split("."), 2), r = a[0], l = a[1];
157
- !function(e, a) {
158
- i.addEventListener ? i.addEventListener(e, t, !1) : i.attachEvent && i.attachEvent("on".concat(e), t),
159
- n[e] = n[e] || {}, n[e][a] = n[e][a] || [], n[e][a].push(t);
160
- }(r, void 0 === l ? "global" : l);
161
- }));
162
- }
163
- return this;
164
- }, t.trigger = function(e) {
165
- var t = arguments;
166
- if (u(this[0])) for (var n = this[0].eventRegistry, i = this[0], o = "string" == typeof e ? e.split(" ") : [ e.type ], l = 0; l < o.length; l++) {
167
- var s = o[l].split("."), f = s[0], p = s[1] || "global";
168
- if (void 0 !== c && "global" === p) {
169
- var d, h = {
170
- bubbles: !0,
171
- cancelable: !0,
172
- composed: !0,
173
- detail: arguments[1]
174
- };
175
- if (c.createEvent) {
176
- try {
177
- if ("input" === f) h.inputType = "insertText", d = new InputEvent(f, h); else d = new CustomEvent(f, h);
178
- } catch (e) {
179
- (d = c.createEvent("CustomEvent")).initCustomEvent(f, h.bubbles, h.cancelable, h.detail);
180
- }
181
- e.type && (0, a.default)(d, e), i.dispatchEvent(d);
182
- } else (d = c.createEventObject()).eventType = f, d.detail = arguments[1], e.type && (0,
183
- a.default)(d, e), i.fireEvent("on" + d.eventType, d);
184
- } else if (void 0 !== n[f]) {
185
- arguments[0] = arguments[0].type ? arguments[0] : r.default.Event(arguments[0]),
186
- arguments[0].detail = arguments.slice(1);
187
- var v = n[f];
188
- ("global" === p ? Object.values(v).flat() : v[p]).forEach((function(e) {
189
- return e.apply(i, t);
190
- }));
191
- }
192
- }
193
- return this;
194
- };
195
- var i = s(n(9380)), a = s(n(600)), r = s(n(4963));
196
- function o(e, t) {
197
- return function(e) {
198
- if (Array.isArray(e)) return e;
199
- }(e) || function(e, t) {
200
- var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
201
- if (null != n) {
202
- var i, a, r, o, l = [], s = !0, c = !1;
203
- try {
204
- if (r = (n = n.call(e)).next, 0 === t) {
205
- if (Object(n) !== n) return;
206
- s = !1;
207
- } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
208
- } catch (e) {
209
- c = !0, a = e;
210
- } finally {
211
- try {
212
- if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
213
- } finally {
214
- if (c) throw a;
215
- }
216
- }
217
- return l;
218
- }
219
- }(e, t) || function(e, t) {
220
- if (!e) return;
221
- if ("string" == typeof e) return l(e, t);
222
- var n = Object.prototype.toString.call(e).slice(8, -1);
223
- "Object" === n && e.constructor && (n = e.constructor.name);
224
- if ("Map" === n || "Set" === n) return Array.from(e);
225
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return l(e, t);
226
- }(e, t) || function() {
227
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
228
- }();
229
- }
230
- function l(e, t) {
231
- (null == t || t > e.length) && (t = e.length);
232
- for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
233
- return i;
234
- }
235
- function s(e) {
236
- return e && e.__esModule ? e : {
237
- default: e
238
- };
239
- }
240
- var c = i.default.document;
241
- function u(e) {
242
- return e instanceof Element;
243
- }
244
- var f = t.Event = void 0;
245
- "function" == typeof i.default.CustomEvent ? t.Event = f = i.default.CustomEvent : i.default.Event && c && c.createEvent ? (t.Event = f = function(e, t) {
246
- t = t || {
247
- bubbles: !1,
248
- cancelable: !1,
249
- composed: !0,
250
- detail: void 0
251
- };
252
- var n = c.createEvent("CustomEvent");
253
- return n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n;
254
- }, f.prototype = i.default.Event.prototype) : "undefined" != typeof Event && (t.Event = f = Event);
255
- },
256
- 600: function(e, t) {
257
- function n(e) {
258
- return n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
259
- return typeof e;
260
- } : function(e) {
261
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
262
- }, n(e);
263
- }
264
- Object.defineProperty(t, "__esModule", {
265
- value: !0
266
- }), t.default = function e() {
267
- var t, i, a, r, o, l, s = arguments[0] || {}, c = 1, u = arguments.length, f = !1;
268
- "boolean" == typeof s && (f = s, s = arguments[c] || {}, c++);
269
- "object" !== n(s) && "function" != typeof s && (s = {});
270
- for (;c < u; c++) if (null != (t = arguments[c])) for (i in t) a = s[i], s !== (r = t[i]) && (f && r && ("[object Object]" === Object.prototype.toString.call(r) || (o = Array.isArray(r))) ? (o ? (o = !1,
271
- l = a && Array.isArray(a) ? a : []) : l = a && "[object Object]" === Object.prototype.toString.call(a) ? a : {},
272
- s[i] = e(f, l, r)) : void 0 !== r && (s[i] = r));
273
- return s;
274
- };
275
- },
276
- 4963: function(e, t, n) {
277
- Object.defineProperty(t, "__esModule", {
278
- value: !0
279
- }), t.default = void 0;
280
- var i = l(n(9380)), a = l(n(253)), r = n(3776), o = l(n(600));
281
- function l(e) {
282
- return e && e.__esModule ? e : {
283
- default: e
284
- };
285
- }
286
- var s = i.default.document;
287
- function c(e) {
288
- return e instanceof c ? e : this instanceof c ? void (null != e && e !== i.default && (this[0] = e.nodeName ? e : void 0 !== e[0] && e[0].nodeName ? e[0] : s.querySelector(e),
289
- void 0 !== this[0] && null !== this[0] && (this[0].eventRegistry = this[0].eventRegistry || {}))) : new c(e);
290
- }
291
- c.prototype = {
292
- on: r.on,
293
- off: r.off,
294
- trigger: r.trigger
295
- }, c.extend = o.default, c.data = a.default, c.Event = r.Event;
296
- t.default = c;
297
- },
298
- 9845: function(e, t, n) {
299
- Object.defineProperty(t, "__esModule", {
300
- value: !0
301
- }), t.mobile = t.iphone = t.ie = void 0;
302
- var i, a = (i = n(9380)) && i.__esModule ? i : {
303
- default: i
304
- };
305
- var r = a.default.navigator && a.default.navigator.userAgent || "";
306
- t.ie = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, t.mobile = a.default.navigator && a.default.navigator.userAgentData && a.default.navigator.userAgentData.mobile || a.default.navigator && a.default.navigator.maxTouchPoints || "ontouchstart" in a.default,
307
- t.iphone = /iphone/i.test(r);
308
- },
309
- 7184: function(e, t) {
310
- Object.defineProperty(t, "__esModule", {
311
- value: !0
312
- }), t.default = function(e) {
313
- return e.replace(n, "\\$1");
314
- };
315
- var n = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
316
- },
317
- 6030: function(e, t, n) {
318
- function i(e) {
319
- return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
320
- return typeof e;
321
- } : function(e) {
322
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
323
- }, i(e);
324
- }
325
- Object.defineProperty(t, "__esModule", {
326
- value: !0
327
- }), t.EventHandlers = void 0;
328
- var a, r = n(9845), o = (a = n(9380)) && a.__esModule ? a : {
329
- default: a
330
- }, l = n(7760), s = n(2839), c = n(8711), u = n(7215), f = n(4713);
331
- function p() {
332
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ p = function() {
333
- return t;
334
- };
335
- var e, t = {}, n = Object.prototype, a = n.hasOwnProperty, r = Object.defineProperty || function(e, t, n) {
336
- e[t] = n.value;
337
- }, o = "function" == typeof Symbol ? Symbol : {}, l = o.iterator || "@@iterator", s = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag";
338
- function u(e, t, n) {
339
- return Object.defineProperty(e, t, {
340
- value: n,
341
- enumerable: !0,
342
- configurable: !0,
343
- writable: !0
344
- }), e[t];
345
- }
346
- try {
347
- u({}, "");
348
- } catch (e) {
349
- u = function(e, t, n) {
350
- return e[t] = n;
351
- };
352
- }
353
- function f(e, t, n, i) {
354
- var a = t && t.prototype instanceof k ? t : k, o = Object.create(a.prototype), l = new D(i || []);
355
- return r(o, "_invoke", {
356
- value: E(e, n, l)
357
- }), o;
358
- }
359
- function d(e, t, n) {
360
- try {
361
- return {
362
- type: "normal",
363
- arg: e.call(t, n)
364
- };
365
- } catch (e) {
366
- return {
367
- type: "throw",
368
- arg: e
369
- };
370
- }
371
- }
372
- t.wrap = f;
373
- var h = "suspendedStart", v = "suspendedYield", m = "executing", g = "completed", y = {};
374
- function k() {}
375
- function b() {}
376
- function x() {}
377
- var w = {};
378
- u(w, l, (function() {
379
- return this;
380
- }));
381
- var P = Object.getPrototypeOf, S = P && P(P(L([])));
382
- S && S !== n && a.call(S, l) && (w = S);
383
- var O = x.prototype = k.prototype = Object.create(w);
384
- function _(e) {
385
- [ "next", "throw", "return" ].forEach((function(t) {
386
- u(e, t, (function(e) {
387
- return this._invoke(t, e);
388
- }));
389
- }));
390
- }
391
- function M(e, t) {
392
- function n(r, o, l, s) {
393
- var c = d(e[r], e, o);
394
- if ("throw" !== c.type) {
395
- var u = c.arg, f = u.value;
396
- return f && "object" == i(f) && a.call(f, "__await") ? t.resolve(f.__await).then((function(e) {
397
- n("next", e, l, s);
398
- }), (function(e) {
399
- n("throw", e, l, s);
400
- })) : t.resolve(f).then((function(e) {
401
- u.value = e, l(u);
402
- }), (function(e) {
403
- return n("throw", e, l, s);
404
- }));
405
- }
406
- s(c.arg);
407
- }
408
- var o;
409
- r(this, "_invoke", {
410
- value: function(e, i) {
411
- function a() {
412
- return new t((function(t, a) {
413
- n(e, i, t, a);
414
- }));
415
- }
416
- return o = o ? o.then(a, a) : a();
417
- }
418
- });
419
- }
420
- function E(t, n, i) {
421
- var a = h;
422
- return function(r, o) {
423
- if (a === m) throw new Error("Generator is already running");
424
- if (a === g) {
425
- if ("throw" === r) throw o;
426
- return {
427
- value: e,
428
- done: !0
429
- };
430
- }
431
- for (i.method = r, i.arg = o; ;) {
432
- var l = i.delegate;
433
- if (l) {
434
- var s = j(l, i);
435
- if (s) {
436
- if (s === y) continue;
437
- return s;
438
- }
439
- }
440
- if ("next" === i.method) i.sent = i._sent = i.arg; else if ("throw" === i.method) {
441
- if (a === h) throw a = g, i.arg;
442
- i.dispatchException(i.arg);
443
- } else "return" === i.method && i.abrupt("return", i.arg);
444
- a = m;
445
- var c = d(t, n, i);
446
- if ("normal" === c.type) {
447
- if (a = i.done ? g : v, c.arg === y) continue;
448
- return {
449
- value: c.arg,
450
- done: i.done
451
- };
452
- }
453
- "throw" === c.type && (a = g, i.method = "throw", i.arg = c.arg);
454
- }
455
- };
456
- }
457
- function j(t, n) {
458
- var i = n.method, a = t.iterator[i];
459
- if (a === e) return n.delegate = null, "throw" === i && t.iterator.return && (n.method = "return",
460
- n.arg = e, j(t, n), "throw" === n.method) || "return" !== i && (n.method = "throw",
461
- n.arg = new TypeError("The iterator does not provide a '" + i + "' method")), y;
462
- var r = d(a, t.iterator, n.arg);
463
- if ("throw" === r.type) return n.method = "throw", n.arg = r.arg, n.delegate = null,
464
- y;
465
- var o = r.arg;
466
- return o ? o.done ? (n[t.resultName] = o.value, n.next = t.nextLoc, "return" !== n.method && (n.method = "next",
467
- n.arg = e), n.delegate = null, y) : o : (n.method = "throw", n.arg = new TypeError("iterator result is not an object"),
468
- n.delegate = null, y);
469
- }
470
- function T(e) {
471
- var t = {
472
- tryLoc: e[0]
473
- };
474
- 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]),
475
- this.tryEntries.push(t);
476
- }
477
- function A(e) {
478
- var t = e.completion || {};
479
- t.type = "normal", delete t.arg, e.completion = t;
480
- }
481
- function D(e) {
482
- this.tryEntries = [ {
483
- tryLoc: "root"
484
- } ], e.forEach(T, this), this.reset(!0);
485
- }
486
- function L(t) {
487
- if (t || "" === t) {
488
- var n = t[l];
489
- if (n) return n.call(t);
490
- if ("function" == typeof t.next) return t;
491
- if (!isNaN(t.length)) {
492
- var r = -1, o = function n() {
493
- for (;++r < t.length; ) if (a.call(t, r)) return n.value = t[r], n.done = !1, n;
494
- return n.value = e, n.done = !0, n;
495
- };
496
- return o.next = o;
497
- }
498
- }
499
- throw new TypeError(i(t) + " is not iterable");
500
- }
501
- return b.prototype = x, r(O, "constructor", {
502
- value: x,
503
- configurable: !0
504
- }), r(x, "constructor", {
505
- value: b,
506
- configurable: !0
507
- }), b.displayName = u(x, c, "GeneratorFunction"), t.isGeneratorFunction = function(e) {
508
- var t = "function" == typeof e && e.constructor;
509
- return !!t && (t === b || "GeneratorFunction" === (t.displayName || t.name));
510
- }, t.mark = function(e) {
511
- return Object.setPrototypeOf ? Object.setPrototypeOf(e, x) : (e.__proto__ = x, u(e, c, "GeneratorFunction")),
512
- e.prototype = Object.create(O), e;
513
- }, t.awrap = function(e) {
514
- return {
515
- __await: e
516
- };
517
- }, _(M.prototype), u(M.prototype, s, (function() {
518
- return this;
519
- })), t.AsyncIterator = M, t.async = function(e, n, i, a, r) {
520
- void 0 === r && (r = Promise);
521
- var o = new M(f(e, n, i, a), r);
522
- return t.isGeneratorFunction(n) ? o : o.next().then((function(e) {
523
- return e.done ? e.value : o.next();
524
- }));
525
- }, _(O), u(O, c, "Generator"), u(O, l, (function() {
526
- return this;
527
- })), u(O, "toString", (function() {
528
- return "[object Generator]";
529
- })), t.keys = function(e) {
530
- var t = Object(e), n = [];
531
- for (var i in t) n.push(i);
532
- return n.reverse(), function e() {
533
- for (;n.length; ) {
534
- var i = n.pop();
535
- if (i in t) return e.value = i, e.done = !1, e;
536
- }
537
- return e.done = !0, e;
538
- };
539
- }, t.values = L, D.prototype = {
540
- constructor: D,
541
- reset: function(t) {
542
- if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null,
543
- this.method = "next", this.arg = e, this.tryEntries.forEach(A), !t) for (var n in this) "t" === n.charAt(0) && a.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = e);
544
- },
545
- stop: function() {
546
- this.done = !0;
547
- var e = this.tryEntries[0].completion;
548
- if ("throw" === e.type) throw e.arg;
549
- return this.rval;
550
- },
551
- dispatchException: function(t) {
552
- if (this.done) throw t;
553
- var n = this;
554
- function i(i, a) {
555
- return l.type = "throw", l.arg = t, n.next = i, a && (n.method = "next", n.arg = e),
556
- !!a;
557
- }
558
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
559
- var o = this.tryEntries[r], l = o.completion;
560
- if ("root" === o.tryLoc) return i("end");
561
- if (o.tryLoc <= this.prev) {
562
- var s = a.call(o, "catchLoc"), c = a.call(o, "finallyLoc");
563
- if (s && c) {
564
- if (this.prev < o.catchLoc) return i(o.catchLoc, !0);
565
- if (this.prev < o.finallyLoc) return i(o.finallyLoc);
566
- } else if (s) {
567
- if (this.prev < o.catchLoc) return i(o.catchLoc, !0);
568
- } else {
569
- if (!c) throw new Error("try statement without catch or finally");
570
- if (this.prev < o.finallyLoc) return i(o.finallyLoc);
571
- }
572
- }
573
- }
574
- },
575
- abrupt: function(e, t) {
576
- for (var n = this.tryEntries.length - 1; n >= 0; --n) {
577
- var i = this.tryEntries[n];
578
- if (i.tryLoc <= this.prev && a.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
579
- var r = i;
580
- break;
581
- }
582
- }
583
- r && ("break" === e || "continue" === e) && r.tryLoc <= t && t <= r.finallyLoc && (r = null);
584
- var o = r ? r.completion : {};
585
- return o.type = e, o.arg = t, r ? (this.method = "next", this.next = r.finallyLoc,
586
- y) : this.complete(o);
587
- },
588
- complete: function(e, t) {
589
- if ("throw" === e.type) throw e.arg;
590
- return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg,
591
- this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t),
592
- y;
593
- },
594
- finish: function(e) {
595
- for (var t = this.tryEntries.length - 1; t >= 0; --t) {
596
- var n = this.tryEntries[t];
597
- if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), A(n), y;
598
- }
599
- },
600
- catch: function(e) {
601
- for (var t = this.tryEntries.length - 1; t >= 0; --t) {
602
- var n = this.tryEntries[t];
603
- if (n.tryLoc === e) {
604
- var i = n.completion;
605
- if ("throw" === i.type) {
606
- var a = i.arg;
607
- A(n);
608
- }
609
- return a;
610
- }
611
- }
612
- throw new Error("illegal catch attempt");
613
- },
614
- delegateYield: function(t, n, i) {
615
- return this.delegate = {
616
- iterator: L(t),
617
- resultName: n,
618
- nextLoc: i
619
- }, "next" === this.method && (this.arg = e), y;
620
- }
621
- }, t;
622
- }
623
- function d(e, t) {
624
- var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
625
- if (!n) {
626
- if (Array.isArray(e) || (n = function(e, t) {
627
- if (!e) return;
628
- if ("string" == typeof e) return h(e, t);
629
- var n = Object.prototype.toString.call(e).slice(8, -1);
630
- "Object" === n && e.constructor && (n = e.constructor.name);
631
- if ("Map" === n || "Set" === n) return Array.from(e);
632
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return h(e, t);
633
- }(e)) || t && e && "number" == typeof e.length) {
634
- n && (e = n);
635
- var i = 0, a = function() {};
636
- return {
637
- s: a,
638
- n: function() {
639
- return i >= e.length ? {
640
- done: !0
641
- } : {
642
- done: !1,
643
- value: e[i++]
644
- };
645
- },
646
- e: function(e) {
647
- throw e;
648
- },
649
- f: a
650
- };
651
- }
652
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
653
- }
654
- var r, o = !0, l = !1;
655
- return {
656
- s: function() {
657
- n = n.call(e);
658
- },
659
- n: function() {
660
- var e = n.next();
661
- return o = e.done, e;
662
- },
663
- e: function(e) {
664
- l = !0, r = e;
665
- },
666
- f: function() {
667
- try {
668
- o || null == n.return || n.return();
669
- } finally {
670
- if (l) throw r;
671
- }
672
- }
673
- };
674
- }
675
- function h(e, t) {
676
- (null == t || t > e.length) && (t = e.length);
677
- for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
678
- return i;
679
- }
680
- function v(e, t, n, i, a, r, o) {
681
- try {
682
- var l = e[r](o), s = l.value;
683
- } catch (e) {
684
- return void n(e);
685
- }
686
- l.done ? t(s) : Promise.resolve(s).then(i, a);
687
- }
688
- var m, g, y = t.EventHandlers = {
689
- keyEvent: function(e, t, n, i, a) {
690
- var o = this.inputmask, p = o.opts, d = o.dependencyLib, h = o.maskset, v = this, m = d(v), g = e.key, k = c.caret.call(o, v), b = p.onKeyDown.call(this, e, c.getBuffer.call(o), k, p);
691
- if (void 0 !== b) return b;
692
- if (g === s.keys.Backspace || g === s.keys.Delete || r.iphone && g === s.keys.BACKSPACE_SAFARI || e.ctrlKey && g === s.keys.x && !("oncut" in v)) e.preventDefault(),
693
- u.handleRemove.call(o, v, g, k), (0, l.writeBuffer)(v, c.getBuffer.call(o, !0), h.p, e, v.inputmask._valueGet() !== c.getBuffer.call(o).join("")); else if (g === s.keys.End || g === s.keys.PageDown) {
694
- e.preventDefault();
695
- var x = c.seekNext.call(o, c.getLastValidPosition.call(o));
696
- c.caret.call(o, v, e.shiftKey ? k.begin : x, x, !0);
697
- } else g === s.keys.Home && !e.shiftKey || g === s.keys.PageUp ? (e.preventDefault(),
698
- c.caret.call(o, v, 0, e.shiftKey ? k.begin : 0, !0)) : p.undoOnEscape && g === s.keys.Escape && !0 !== e.altKey ? ((0,
699
- l.checkVal)(v, !0, !1, o.undoValue.split("")), m.trigger("click")) : g !== s.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== o.userOptions.insertMode ? !0 === p.tabThrough && g === s.keys.Tab ? !0 === e.shiftKey ? (k.end = c.seekPrevious.call(o, k.end, !0),
700
- !0 === f.getTest.call(o, k.end - 1).match.static && k.end--, k.begin = c.seekPrevious.call(o, k.end, !0),
701
- k.begin >= 0 && k.end > 0 && (e.preventDefault(), c.caret.call(o, v, k.begin, k.end))) : (k.begin = c.seekNext.call(o, k.begin, !0),
702
- k.end = c.seekNext.call(o, k.begin, !0), k.end < h.maskLength && k.end--, k.begin <= h.maskLength && (e.preventDefault(),
703
- c.caret.call(o, v, k.begin, k.end))) : e.shiftKey || (p.insertModeVisual && !1 === p.insertMode ? g === s.keys.ArrowRight ? setTimeout((function() {
704
- var e = c.caret.call(o, v);
705
- c.caret.call(o, v, e.begin);
706
- }), 0) : g === s.keys.ArrowLeft && setTimeout((function() {
707
- var e = c.translatePosition.call(o, v.inputmask.caretPos.begin);
708
- c.translatePosition.call(o, v.inputmask.caretPos.end);
709
- o.isRTL ? c.caret.call(o, v, e + (e === h.maskLength ? 0 : 1)) : c.caret.call(o, v, e - (0 === e ? 0 : 1));
710
- }), 0) : void 0 === o.keyEventHook || o.keyEventHook(e)) : u.isSelection.call(o, k) ? p.insertMode = !p.insertMode : (p.insertMode = !p.insertMode,
711
- c.caret.call(o, v, k.begin, k.begin));
712
- return o.isComposing = g == s.keys.Process || g == s.keys.Unidentified, o.ignorable = g.length > 1 && !("textarea" === v.tagName.toLowerCase() && g == s.keys.Enter),
713
- y.keypressEvent.call(this, e, t, n, i, a);
714
- },
715
- keypressEvent: function(e, t, n, i, a) {
716
- var r = this.inputmask || this, o = r.opts, f = r.dependencyLib, p = r.maskset, d = r.el, h = f(d), v = e.key;
717
- if (!0 === t || e.ctrlKey && e.altKey && !r.ignorable || !(e.ctrlKey || e.metaKey || r.ignorable)) {
718
- if (v) {
719
- var m, g = t ? {
720
- begin: a,
721
- end: a
722
- } : c.caret.call(r, d);
723
- t || (v = o.substitutes[v] || v), p.writeOutBuffer = !0;
724
- var y = u.isValid.call(r, g, v, i, void 0, void 0, void 0, t);
725
- if (!1 !== y && (c.resetMaskSet.call(r, !0), m = void 0 !== y.caret ? y.caret : c.seekNext.call(r, y.pos.begin ? y.pos.begin : y.pos),
726
- p.p = m), m = o.numericInput && void 0 === y.caret ? c.seekPrevious.call(r, m) : m,
727
- !1 !== n && (setTimeout((function() {
728
- o.onKeyValidation.call(d, v, y);
729
- }), 0), p.writeOutBuffer && !1 !== y)) {
730
- var k = c.getBuffer.call(r);
731
- (0, l.writeBuffer)(d, k, m, e, !0 !== t);
732
- }
733
- if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = m), y;
734
- }
735
- } else v === s.keys.Enter && r.undoValue !== r._valueGet(!0) && (r.undoValue = r._valueGet(!0),
736
- setTimeout((function() {
737
- h.trigger("change");
738
- }), 0));
739
- },
740
- pasteEvent: (m = p().mark((function e(t) {
741
- var n, i, a, r, s, u;
742
- return p().wrap((function(e) {
743
- for (;;) switch (e.prev = e.next) {
744
- case 0:
745
- n = function(e, n, i, a, o) {
746
- var s = c.caret.call(e, n, void 0, void 0, !0), u = i.substr(0, s.begin), f = i.substr(s.end, i.length);
747
- if (u == (e.isRTL ? c.getBufferTemplate.call(e).slice().reverse() : c.getBufferTemplate.call(e)).slice(0, s.begin).join("") && (u = ""),
748
- f == (e.isRTL ? c.getBufferTemplate.call(e).slice().reverse() : c.getBufferTemplate.call(e)).slice(s.end).join("") && (f = ""),
749
- a = u + a + f, e.isRTL && !0 !== r.numericInput) {
750
- a = a.split("");
751
- var p, h = d(c.getBufferTemplate.call(e));
752
- try {
753
- for (h.s(); !(p = h.n()).done; ) {
754
- var v = p.value;
755
- a[0] === v && a.shift();
756
- }
757
- } catch (e) {
758
- h.e(e);
759
- } finally {
760
- h.f();
761
- }
762
- a = a.reverse().join("");
763
- }
764
- var m = a;
765
- if ("function" == typeof o) {
766
- if (!1 === (m = o.call(e, m, r))) return !1;
767
- m || (m = i);
768
- }
769
- (0, l.checkVal)(n, !0, !1, m.toString().split(""), t);
770
- }, i = this, a = this.inputmask, r = a.opts, s = a._valueGet(!0), a.skipInputEvent = !0,
771
- t.clipboardData && t.clipboardData.getData ? u = t.clipboardData.getData("text/plain") : o.default.clipboardData && o.default.clipboardData.getData && (u = o.default.clipboardData.getData("Text")),
772
- n(a, i, s, u, r.onBeforePaste), t.preventDefault();
773
-
774
- case 7:
775
- case "end":
776
- return e.stop();
777
- }
778
- }), e, this);
779
- })), g = function() {
780
- var e = this, t = arguments;
781
- return new Promise((function(n, i) {
782
- var a = m.apply(e, t);
783
- function r(e) {
784
- v(a, n, i, r, o, "next", e);
785
- }
786
- function o(e) {
787
- v(a, n, i, r, o, "throw", e);
788
- }
789
- r(void 0);
790
- }));
791
- }, function(e) {
792
- return g.apply(this, arguments);
793
- }),
794
- inputFallBackEvent: function(e) {
795
- var t = this.inputmask, n = t.opts, i = t.dependencyLib;
796
- var a, o = this, u = o.inputmask._valueGet(!0), p = (t.isRTL ? c.getBuffer.call(t).slice().reverse() : c.getBuffer.call(t)).join(""), d = c.caret.call(t, o, void 0, void 0, !0);
797
- if (p !== u) {
798
- if (a = function(e, i, a) {
799
- for (var r, o, l, s = e.substr(0, a.begin).split(""), u = e.substr(a.begin).split(""), p = i.substr(0, a.begin).split(""), d = i.substr(a.begin).split(""), h = s.length >= p.length ? s.length : p.length, v = u.length >= d.length ? u.length : d.length, m = "", g = [], y = "~"; s.length < h; ) s.push(y);
800
- for (;p.length < h; ) p.push(y);
801
- for (;u.length < v; ) u.unshift(y);
802
- for (;d.length < v; ) d.unshift(y);
803
- var k = s.concat(u), b = p.concat(d);
804
- for (o = 0, r = k.length; o < r; o++) switch (l = f.getPlaceholder.call(t, c.translatePosition.call(t, o)),
805
- m) {
806
- case "insertText":
807
- b[o - 1] === k[o] && a.begin == k.length - 1 && g.push(k[o]), o = r;
808
- break;
809
-
810
- case "insertReplacementText":
811
- case "deleteContentBackward":
812
- k[o] === y ? a.end++ : o = r;
813
- break;
814
-
815
- default:
816
- k[o] !== b[o] && (k[o + 1] !== y && k[o + 1] !== l && void 0 !== k[o + 1] || (b[o] !== l || b[o + 1] !== y) && b[o] !== y ? b[o + 1] === y && b[o] === k[o + 1] ? (m = "insertText",
817
- g.push(k[o]), a.begin--, a.end--) : k[o] !== l && k[o] !== y && (k[o + 1] === y || b[o] !== k[o] && b[o + 1] === k[o + 1]) ? (m = "insertReplacementText",
818
- g.push(k[o]), a.begin--) : k[o] === y ? (m = "deleteContentBackward", (c.isMask.call(t, c.translatePosition.call(t, o), !0) || b[o] === n.radixPoint) && a.end++) : o = r : (m = "insertText",
819
- g.push(k[o]), a.begin--, a.end--));
820
- }
821
- return {
822
- action: m,
823
- data: g,
824
- caret: a
825
- };
826
- }(u, p, d), (o.inputmask.shadowRoot || o.ownerDocument).activeElement !== o && o.focus(),
827
- (0, l.writeBuffer)(o, c.getBuffer.call(t)), c.caret.call(t, o, d.begin, d.end, !0),
828
- !r.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === a.action && t.isComposing) return !1;
829
- switch ("insertCompositionText" === e.inputType && "insertText" === a.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1,
830
- a.action) {
831
- case "insertText":
832
- case "insertReplacementText":
833
- a.data.forEach((function(e, n) {
834
- var a = new i.Event("keypress");
835
- a.key = e, t.ignorable = !1, y.keypressEvent.call(o, a);
836
- })), setTimeout((function() {
837
- t.$el.trigger("keyup");
838
- }), 0);
839
- break;
840
-
841
- case "deleteContentBackward":
842
- var h = new i.Event("keydown");
843
- h.key = s.keys.Backspace, y.keyEvent.call(o, h);
844
- break;
845
-
846
- default:
847
- (0, l.applyInputValue)(o, u), c.caret.call(t, o, d.begin, d.end, !0);
848
- }
849
- e.preventDefault();
850
- }
851
- },
852
- setValueEvent: function(e) {
853
- var t = this.inputmask, n = t.dependencyLib, i = this, a = e && e.detail ? e.detail[0] : arguments[1];
854
- void 0 === a && (a = i.inputmask._valueGet(!0)), (0, l.applyInputValue)(i, a, new n.Event("input")),
855
- (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && c.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]);
856
- },
857
- focusEvent: function(e) {
858
- var t = this.inputmask, n = t.opts, i = t && t._valueGet();
859
- n.showMaskOnFocus && i !== c.getBuffer.call(t).join("") && (0, l.writeBuffer)(this, c.getBuffer.call(t), c.seekNext.call(t, c.getLastValidPosition.call(t))),
860
- !0 !== n.positionCaretOnTab || !1 !== t.mouseEnter || u.isComplete.call(t, c.getBuffer.call(t)) && -1 !== c.getLastValidPosition.call(t) || y.clickEvent.apply(this, [ e, !0 ]),
861
- t.undoValue = t && t._valueGet(!0);
862
- },
863
- invalidEvent: function(e) {
864
- this.inputmask.validationEvent = !0;
865
- },
866
- mouseleaveEvent: function() {
867
- var e = this.inputmask, t = e.opts, n = this;
868
- e.mouseEnter = !1, t.clearMaskOnLostFocus && (n.inputmask.shadowRoot || n.ownerDocument).activeElement !== n && (0,
869
- l.HandleNativePlaceholder)(n, e.originalPlaceholder);
870
- },
871
- clickEvent: function(e, t) {
872
- var n = this.inputmask;
873
- n.clicked++;
874
- var i = this;
875
- if ((i.inputmask.shadowRoot || i.ownerDocument).activeElement === i) {
876
- var a = c.determineNewCaretPosition.call(n, c.caret.call(n, i), t);
877
- void 0 !== a && c.caret.call(n, i, a);
878
- }
879
- },
880
- cutEvent: function(e) {
881
- var t = this.inputmask, n = t.maskset, i = this, a = c.caret.call(t, i), r = t.isRTL ? c.getBuffer.call(t).slice(a.end, a.begin) : c.getBuffer.call(t).slice(a.begin, a.end), f = t.isRTL ? r.reverse().join("") : r.join("");
882
- o.default.navigator && o.default.navigator.clipboard ? o.default.navigator.clipboard.writeText(f) : o.default.clipboardData && o.default.clipboardData.getData && o.default.clipboardData.setData("Text", f),
883
- u.handleRemove.call(t, i, s.keys.Delete, a), (0, l.writeBuffer)(i, c.getBuffer.call(t), n.p, e, t.undoValue !== t._valueGet(!0));
884
- },
885
- blurEvent: function(e) {
886
- var t = this.inputmask, n = t.opts, i = t.dependencyLib;
887
- t.clicked = 0;
888
- var a = i(this), r = this;
889
- if (r.inputmask) {
890
- (0, l.HandleNativePlaceholder)(r, t.originalPlaceholder);
891
- var o = r.inputmask._valueGet(), s = c.getBuffer.call(t).slice();
892
- "" !== o && (n.clearMaskOnLostFocus && (-1 === c.getLastValidPosition.call(t) && o === c.getBufferTemplate.call(t).join("") ? s = [] : l.clearOptionalTail.call(t, s)),
893
- !1 === u.isComplete.call(t, s) && (setTimeout((function() {
894
- a.trigger("incomplete");
895
- }), 0), n.clearIncomplete && (c.resetMaskSet.call(t, !1), s = n.clearMaskOnLostFocus ? [] : c.getBufferTemplate.call(t).slice())),
896
- (0, l.writeBuffer)(r, s, void 0, e)), o = t._valueGet(!0), t.undoValue !== o && ("" != o || t.undoValue != c.getBufferTemplate.call(t).join("") || t.undoValue == c.getBufferTemplate.call(t).join("") && t.maskset.validPositions.length > 0) && (t.undoValue = o,
897
- a.trigger("change"));
898
- }
899
- },
900
- mouseenterEvent: function() {
901
- var e = this.inputmask, t = e.opts.showMaskOnHover, n = this;
902
- if (e.mouseEnter = !0, (n.inputmask.shadowRoot || n.ownerDocument).activeElement !== n) {
903
- var i = (e.isRTL ? c.getBufferTemplate.call(e).slice().reverse() : c.getBufferTemplate.call(e)).join("");
904
- t && (0, l.HandleNativePlaceholder)(n, i);
905
- }
906
- },
907
- submitEvent: function() {
908
- var e = this.inputmask, t = e.opts;
909
- e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === c.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === c.getBufferTemplate.call(e).join("") && e._valueSet(""),
910
- t.clearIncomplete && !1 === u.isComplete.call(e, c.getBuffer.call(e)) && e._valueSet(""),
911
- t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
912
- (0, l.writeBuffer)(e.el, c.getBuffer.call(e));
913
- }), 0));
914
- },
915
- resetEvent: function() {
916
- var e = this.inputmask;
917
- e.refreshValue = !0, setTimeout((function() {
918
- (0, l.applyInputValue)(e.el, e._valueGet(!0));
919
- }), 0);
920
- }
921
- };
922
- },
923
- 9716: function(e, t, n) {
924
- Object.defineProperty(t, "__esModule", {
925
- value: !0
926
- }), t.EventRuler = void 0;
927
- var i, a = n(7760), r = (i = n(2394)) && i.__esModule ? i : {
928
- default: i
929
- }, o = n(2839), l = n(8711);
930
- t.EventRuler = {
931
- on: function(e, t, n) {
932
- var i = e.inputmask.dependencyLib, s = function(t) {
933
- t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
934
- var s, c = this, u = c.inputmask, f = u ? u.opts : void 0;
935
- if (void 0 === u && "FORM" !== this.nodeName) {
936
- var p = i.data(c, "_inputmask_opts");
937
- i(c).off(), p && new r.default(p).mask(c);
938
- } else {
939
- if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(c.disabled || c.readOnly && !("keydown" === t.type && t.ctrlKey && t.key === o.keys.c || !1 === f.tabThrough && t.key === o.keys.Tab))) {
940
- switch (t.type) {
941
- case "input":
942
- if (!0 === u.skipInputEvent) return u.skipInputEvent = !1, t.preventDefault();
943
- break;
944
-
945
- case "click":
946
- case "focus":
947
- return u.validationEvent ? (u.validationEvent = !1, e.blur(), (0, a.HandleNativePlaceholder)(e, (u.isRTL ? l.getBufferTemplate.call(u).slice().reverse() : l.getBufferTemplate.call(u)).join("")),
948
- setTimeout((function() {
949
- e.focus();
950
- }), f.validationEventTimeOut), !1) : (s = arguments, void setTimeout((function() {
951
- e.inputmask && n.apply(c, s);
952
- }), 0));
953
- }
954
- var d = n.apply(c, arguments);
955
- return !1 === d && (t.preventDefault(), t.stopPropagation()), d;
956
- }
957
- t.preventDefault();
958
- }
959
- };
960
- [ "submit", "reset" ].includes(t) ? (s = s.bind(e), null !== e.form && i(e.form).on(t, s)) : i(e).on(t, s),
961
- e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(s);
962
- },
963
- off: function(e, t) {
964
- if (e.inputmask && e.inputmask.events) {
965
- var n = e.inputmask.dependencyLib, i = e.inputmask.events;
966
- for (var a in t && ((i = [])[t] = e.inputmask.events[t]), i) {
967
- for (var r = i[a]; r.length > 0; ) {
968
- var o = r.pop();
969
- [ "submit", "reset" ].includes(a) ? null !== e.form && n(e.form).off(a, o) : n(e).off(a, o);
970
- }
971
- delete e.inputmask.events[a];
972
- }
973
- }
974
- }
975
- };
976
- },
977
- 219: function(e, t, n) {
978
- var i = p(n(7184)), a = p(n(2394)), r = n(2839), o = n(8711), l = n(4713);
979
- function s(e, t) {
980
- return function(e) {
981
- if (Array.isArray(e)) return e;
982
- }(e) || function(e, t) {
983
- var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
984
- if (null != n) {
985
- var i, a, r, o, l = [], s = !0, c = !1;
986
- try {
987
- if (r = (n = n.call(e)).next, 0 === t) {
988
- if (Object(n) !== n) return;
989
- s = !1;
990
- } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
991
- } catch (e) {
992
- c = !0, a = e;
993
- } finally {
994
- try {
995
- if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
996
- } finally {
997
- if (c) throw a;
998
- }
999
- }
1000
- return l;
1001
- }
1002
- }(e, t) || function(e, t) {
1003
- if (!e) return;
1004
- if ("string" == typeof e) return c(e, t);
1005
- var n = Object.prototype.toString.call(e).slice(8, -1);
1006
- "Object" === n && e.constructor && (n = e.constructor.name);
1007
- if ("Map" === n || "Set" === n) return Array.from(e);
1008
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return c(e, t);
1009
- }(e, t) || function() {
1010
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1011
- }();
1012
- }
1013
- function c(e, t) {
1014
- (null == t || t > e.length) && (t = e.length);
1015
- for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
1016
- return i;
1017
- }
1018
- function u(e) {
1019
- return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1020
- return typeof e;
1021
- } : function(e) {
1022
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1023
- }, u(e);
1024
- }
1025
- function f(e, t) {
1026
- for (var n = 0; n < t.length; n++) {
1027
- var i = t[n];
1028
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0),
1029
- Object.defineProperty(e, (a = i.key, r = void 0, r = function(e, t) {
1030
- if ("object" !== u(e) || null === e) return e;
1031
- var n = e[Symbol.toPrimitive];
1032
- if (void 0 !== n) {
1033
- var i = n.call(e, t || "default");
1034
- if ("object" !== u(i)) return i;
1035
- throw new TypeError("@@toPrimitive must return a primitive value.");
1036
- }
1037
- return ("string" === t ? String : Number)(e);
1038
- }(a, "string"), "symbol" === u(r) ? r : String(r)), i);
1039
- }
1040
- var a, r;
1041
- }
1042
- function p(e) {
1043
- return e && e.__esModule ? e : {
1044
- default: e
1045
- };
1046
- }
1047
- n(1313);
1048
- var d = a.default.dependencyLib, h = function() {
1049
- function e(t, n, i, a) {
1050
- !function(e, t) {
1051
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1052
- }(this, e), this.mask = t, this.format = n, this.opts = i, this.inputmask = a, this._date = new Date(1, 0, 1),
1053
- this.initDateObject(t, this.opts, this.inputmask);
1054
- }
1055
- var t, n, i;
1056
- return t = e, (n = [ {
1057
- key: "date",
1058
- get: function() {
1059
- return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts, this.inputmask)),
1060
- this._date;
1061
- }
1062
- }, {
1063
- key: "initDateObject",
1064
- value: function(e, t, n) {
1065
- var i;
1066
- for (P(t).lastIndex = 0; i = P(t).exec(this.format); ) {
1067
- var a = /\d+$/.exec(i[0]), r = a ? i[0][0] + "x" : i[0], o = void 0;
1068
- if (void 0 !== e) {
1069
- if (a) {
1070
- var s = P(t).lastIndex, c = j.call(n, i.index, t, n && n.maskset);
1071
- P(t).lastIndex = s, o = e.slice(0, e.indexOf(c.nextMatch[0]));
1072
- } else {
1073
- for (var u = i[0][0], f = i.index; n && (t.placeholder[l.getTest.call(n, f).match.placeholder] || l.getTest.call(n, f).match.placeholder) === u; ) f++;
1074
- var p = f - i.index;
1075
- o = e.slice(0, p || y[r] && y[r][4] || r.length);
1076
- }
1077
- e = e.slice(o.length);
1078
- }
1079
- Object.prototype.hasOwnProperty.call(y, r) && this.setValue(this, o, r, y[r][2], y[r][1]);
1080
- }
1081
- }
1082
- }, {
1083
- key: "setValue",
1084
- value: function(e, t, n, i, a) {
1085
- if (void 0 !== t) switch (i) {
1086
- case "ampm":
1087
- e[i] = t, e["raw" + i] = t.replace(/\s/g, "_");
1088
- break;
1089
-
1090
- case "month":
1091
- if ("mmm" === n || "mmmm" === n) {
1092
- e[i] = _("mmm" === n ? m.monthNames.slice(0, 12).findIndex((function(e) {
1093
- return t.toLowerCase() === e.toLowerCase();
1094
- })) + 1 : m.monthNames.slice(12, 24).findIndex((function(e) {
1095
- return t.toLowerCase() === e.toLowerCase();
1096
- })) + 1, 2), e[i] = "00" === e[i] ? "" : e[i].toString(), e["raw" + i] = e[i];
1097
- break;
1098
- }
1099
-
1100
- default:
1101
- e[i] = t.replace(/[^0-9]/g, "0"), e["raw" + i] = t.replace(/\s/g, "_");
1102
- }
1103
- if (void 0 !== a) {
1104
- var r = e[i];
1105
- ("day" === i && 29 === parseInt(r) || "month" === i && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
1106
- "day" === i && (g = !0, 0 === parseInt(r) && (r = 1)), "month" === i && (g = !0),
1107
- "year" === i && (g = !0, r.length < y[n][4] && (r = _(r, y[n][4], !0))), ("" !== r && !isNaN(r) || "ampm" === i) && a.call(e._date, r);
1108
- }
1109
- }
1110
- }, {
1111
- key: "reset",
1112
- value: function() {
1113
- this._date = new Date(1, 0, 1);
1114
- }
1115
- }, {
1116
- key: "reInit",
1117
- value: function() {
1118
- this._date = void 0, this.date;
1119
- }
1120
- } ]) && f(t.prototype, n), i && f(t, i), Object.defineProperty(t, "prototype", {
1121
- writable: !1
1122
- }), e;
1123
- }(), v = (new Date).getFullYear(), m = a.default.prototype.i18n, g = !1, y = {
1124
- d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
1125
- dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
1126
- return _(Date.prototype.getDate.call(this), 2);
1127
- } ],
1128
- ddd: [ "" ],
1129
- dddd: [ "" ],
1130
- m: [ "[1-9]|1[012]", function(e) {
1131
- var t = e ? parseInt(e) : 0;
1132
- return t > 0 && t--, Date.prototype.setMonth.call(this, t);
1133
- }, "month", function() {
1134
- return Date.prototype.getMonth.call(this) + 1;
1135
- } ],
1136
- mm: [ "0[1-9]|1[012]", function(e) {
1137
- var t = e ? parseInt(e) : 0;
1138
- return t > 0 && t--, Date.prototype.setMonth.call(this, t);
1139
- }, "month", function() {
1140
- return _(Date.prototype.getMonth.call(this) + 1, 2);
1141
- } ],
1142
- mmm: [ m.monthNames.slice(0, 12).join("|"), function(e) {
1143
- var t = m.monthNames.slice(0, 12).findIndex((function(t) {
1144
- return e.toLowerCase() === t.toLowerCase();
1145
- }));
1146
- return -1 !== t && Date.prototype.setMonth.call(this, t);
1147
- }, "month", function() {
1148
- return m.monthNames.slice(0, 12)[Date.prototype.getMonth.call(this)];
1149
- } ],
1150
- mmmm: [ m.monthNames.slice(12, 24).join("|"), function(e) {
1151
- var t = m.monthNames.slice(12, 24).findIndex((function(t) {
1152
- return e.toLowerCase() === t.toLowerCase();
1153
- }));
1154
- return -1 !== t && Date.prototype.setMonth.call(this, t);
1155
- }, "month", function() {
1156
- return m.monthNames.slice(12, 24)[Date.prototype.getMonth.call(this)];
1157
- } ],
1158
- yy: [ "[0-9]{2}", function(e) {
1159
- var t = (new Date).getFullYear().toString().slice(0, 2);
1160
- Date.prototype.setFullYear.call(this, "".concat(t).concat(e));
1161
- }, "year", function() {
1162
- return _(Date.prototype.getFullYear.call(this), 2);
1163
- }, 2 ],
1164
- yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
1165
- return _(Date.prototype.getFullYear.call(this), 4);
1166
- }, 4 ],
1167
- h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
1168
- hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
1169
- return _(Date.prototype.getHours.call(this), 2);
1170
- } ],
1171
- hx: [ function(e) {
1172
- return "[0-9]{".concat(e, "}");
1173
- }, Date.prototype.setHours, "hours", function(e) {
1174
- return Date.prototype.getHours;
1175
- } ],
1176
- H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
1177
- HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
1178
- return _(Date.prototype.getHours.call(this), 2);
1179
- } ],
1180
- Hx: [ function(e) {
1181
- return "[0-9]{".concat(e, "}");
1182
- }, Date.prototype.setHours, "hours", function(e) {
1183
- return function() {
1184
- return _(Date.prototype.getHours.call(this), e);
1185
- };
1186
- } ],
1187
- M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
1188
- MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
1189
- return _(Date.prototype.getMinutes.call(this), 2);
1190
- } ],
1191
- s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
1192
- ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() {
1193
- return _(Date.prototype.getSeconds.call(this), 2);
1194
- } ],
1195
- l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
1196
- return _(Date.prototype.getMilliseconds.call(this), 3);
1197
- }, 3 ],
1198
- L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
1199
- return _(Date.prototype.getMilliseconds.call(this), 2);
1200
- }, 2 ],
1201
- t: [ "[ap]", b, "ampm", x, 1 ],
1202
- tt: [ "[ap]m", b, "ampm", x, 2 ],
1203
- T: [ "[AP]", b, "ampm", x, 1 ],
1204
- TT: [ "[AP]M", b, "ampm", x, 2 ],
1205
- Z: [ ".*", void 0, "Z", function() {
1206
- var e = this.toString().match(/\((.+)\)/)[1];
1207
- e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
1208
- return s(e, 1)[0];
1209
- })).join(""));
1210
- return e;
1211
- } ],
1212
- o: [ "" ],
1213
- S: [ "" ]
1214
- }, k = {
1215
- isoDate: "yyyy-mm-dd",
1216
- isoTime: "HH:MM:ss",
1217
- isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
1218
- isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
1219
- };
1220
- function b(e) {
1221
- var t = this.getHours();
1222
- e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
1223
- }
1224
- function x() {
1225
- var e = this.getHours();
1226
- return (e = e || 12) >= 12 ? "PM" : "AM";
1227
- }
1228
- function w(e) {
1229
- var t = /\d+$/.exec(e[0]);
1230
- if (t && void 0 !== t[0]) {
1231
- var n = y[e[0][0] + "x"].slice("");
1232
- return n[0] = n[0](t[0]), n[3] = n[3](t[0]), n;
1233
- }
1234
- if (y[e[0]]) return y[e[0]];
1235
- }
1236
- function P(e) {
1237
- if (!e.tokenizer) {
1238
- var t = [], n = [];
1239
- for (var i in y) if (/\.*x$/.test(i)) {
1240
- var a = i[0] + "\\d+";
1241
- -1 === n.indexOf(a) && n.push(a);
1242
- } else -1 === t.indexOf(i[0]) && t.push(i[0]);
1243
- e.tokenizer = "(" + (n.length > 0 ? n.join("|") + "|" : "") + t.join("+|") + ")+?|.",
1244
- e.tokenizer = new RegExp(e.tokenizer, "g");
1245
- }
1246
- return e.tokenizer;
1247
- }
1248
- function S(e, t, n) {
1249
- if (!g) return !0;
1250
- 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;
1251
- if ("29" == e.day) {
1252
- var i = j.call(this, t.pos, n, this.maskset);
1253
- if (i.targetMatch && "yyyy" === i.targetMatch[0] && t.pos - i.targetMatchIndex == 2) return t.remove = t.pos + 1,
1254
- t;
1255
- } else if (2 == e.date.getMonth() && "30" == e.day && void 0 !== t.c) return e.day = "03",
1256
- e.date.setDate(3), e.date.setMonth(1), t.insert = [ {
1257
- pos: t.pos,
1258
- c: "0"
1259
- }, {
1260
- pos: t.pos + 1,
1261
- c: t.c
1262
- } ], t.caret = o.seekNext.call(this, t.pos + 1), t;
1263
- return !1;
1264
- }
1265
- function O(e, t, n, a) {
1266
- var r, o, l = "", s = 0, c = {};
1267
- for (P(n).lastIndex = 0; r = P(n).exec(e); ) {
1268
- if (void 0 === t) if (o = w(r)) l += "(" + o[0] + ")", n.placeholder && "" !== n.placeholder ? (c[s] = n.placeholder[r.index % n.placeholder.length],
1269
- c[n.placeholder[r.index % n.placeholder.length]] = r[0].charAt(0)) : c[s] = r[0].charAt(0); else switch (r[0]) {
1270
- case "[":
1271
- l += "(";
1272
- break;
1273
-
1274
- case "]":
1275
- l += ")?";
1276
- break;
1277
-
1278
- default:
1279
- l += (0, i.default)(r[0]), c[s] = r[0].charAt(0);
1280
- } else if (o = w(r)) if (!0 !== a && o[3]) l += o[3].call(t.date); else o[2] ? l += t["raw" + o[2]] : l += r[0]; else l += r[0];
1281
- s++;
1282
- }
1283
- return void 0 === t && (n.placeholder = c), l;
1284
- }
1285
- function _(e, t, n) {
1286
- for (e = String(e), t = t || 2; e.length < t; ) e = n ? e + "0" : "0" + e;
1287
- return e;
1288
- }
1289
- function M(e, t, n) {
1290
- return "string" == typeof e ? new h(e, t, n, this) : e && "object" === u(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
1291
- }
1292
- function E(e, t) {
1293
- return O(t.inputFormat, {
1294
- date: e
1295
- }, t);
1296
- }
1297
- function j(e, t, n) {
1298
- var i, a, r = this, o = n && n.tests[e] ? t.placeholder[n.tests[e][0].match.placeholder] || n.tests[e][0].match.placeholder : "", s = 0, c = 0;
1299
- for (P(t).lastIndex = 0; a = P(t).exec(t.inputFormat); ) {
1300
- var u = /\d+$/.exec(a[0]);
1301
- if (u) c = parseInt(u[0]); else {
1302
- for (var f = a[0][0], p = s; r && (t.placeholder[l.getTest.call(r, p).match.placeholder] || l.getTest.call(r, p).match.placeholder) === f; ) p++;
1303
- 0 === (c = p - s) && (c = a[0].length);
1304
- }
1305
- if (s += c, -1 != a[0].indexOf(o) || s >= e + 1) {
1306
- i = a, a = P(t).exec(t.inputFormat);
1307
- break;
1308
- }
1309
- }
1310
- return {
1311
- targetMatchIndex: s - c,
1312
- nextMatch: a,
1313
- targetMatch: i
1314
- };
1315
- }
1316
- a.default.extendAliases({
1317
- datetime: {
1318
- mask: function(e) {
1319
- return e.numericInput = !1, y.S = m.ordinalSuffix.join("|"), e.inputFormat = k[e.inputFormat] || e.inputFormat,
1320
- e.displayFormat = k[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = k[e.outputFormat] || e.outputFormat || e.inputFormat,
1321
- e.regex = O(e.inputFormat, void 0, e), e.min = M(e.min, e.inputFormat, e), e.max = M(e.max, e.inputFormat, e),
1322
- null;
1323
- },
1324
- placeholder: "",
1325
- inputFormat: "isoDateTime",
1326
- displayFormat: null,
1327
- outputFormat: null,
1328
- min: null,
1329
- max: null,
1330
- skipOptionalPartCharacter: "",
1331
- preValidation: function(e, t, n, i, a, r, o, l) {
1332
- if (l) return !0;
1333
- if (isNaN(n) && e[t] !== n) {
1334
- var s = j.call(this, t, a, r);
1335
- if (s.nextMatch && s.nextMatch[0] === n && s.targetMatch[0].length > 1) {
1336
- var c = w(s.targetMatch)[0];
1337
- if (new RegExp(c).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0",
1338
- {
1339
- fuzzy: !0,
1340
- buffer: e,
1341
- refreshFromBuffer: {
1342
- start: t - 1,
1343
- end: t + 1
1344
- },
1345
- pos: t + 1
1346
- };
1347
- }
1348
- }
1349
- return !0;
1350
- },
1351
- postValidation: function(e, t, n, i, a, r, o, s) {
1352
- var c, u, f = this;
1353
- if (o) return !0;
1354
- if (!1 === i && (((c = j.call(f, t + 1, a, r)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== y[c.targetMatch[0]] || (c = j.call(f, t + 2, a, r)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== y[c.targetMatch[0]]) && (u = w(c.targetMatch)[0]),
1355
- void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(n + "0") ? (e[t] = n,
1356
- e[t + 1] = "0", i = {
1357
- pos: t + 2,
1358
- caret: t
1359
- }) : new RegExp(u).test("0" + n) && (e[t] = "0", e[t + 1] = n, i = {
1360
- pos: t + 2
1361
- })), !1 === i)) return i;
1362
- if (i.fuzzy && (e = i.buffer, t = i.pos), (c = j.call(f, t, a, r)).targetMatch && c.targetMatch[0] && void 0 !== y[c.targetMatch[0]]) {
1363
- var p = w(c.targetMatch);
1364
- u = p[0];
1365
- var d = e.slice(c.targetMatchIndex, c.targetMatchIndex + c.targetMatch[0].length);
1366
- 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"),
1367
- "year" == p[2]) for (var h = l.getMaskTemplate.call(f, !1, 1, void 0, !0), m = t + 1; m < e.length; m++) e[m] = h[m],
1368
- r.validPositions.splice(t + 1, 1);
1369
- }
1370
- var g = i, k = M.call(f, e.join(""), a.inputFormat, a);
1371
- return g && !isNaN(k.date.getTime()) && (a.prefillYear && (g = function(e, t, n) {
1372
- if (e.year !== e.rawyear) {
1373
- var i = v.toString(), a = e.rawyear.replace(/[^0-9]/g, ""), r = i.slice(0, a.length), o = i.slice(a.length);
1374
- if (2 === a.length && a === r) {
1375
- var l = new Date(v, e.month - 1, e.day);
1376
- e.day == l.getDate() && (!n.max || n.max.date.getTime() >= l.getTime()) && (e.date.setFullYear(v),
1377
- e.year = i, t.insert = [ {
1378
- pos: t.pos + 1,
1379
- c: o[0]
1380
- }, {
1381
- pos: t.pos + 2,
1382
- c: o[1]
1383
- } ]);
1384
- }
1385
- }
1386
- return t;
1387
- }(k, g, a)), g = function(e, t, n, i, a) {
1388
- if (!t) return t;
1389
- if (t && n.min && !isNaN(n.min.date.getTime())) {
1390
- var r;
1391
- for (e.reset(), P(n).lastIndex = 0; r = P(n).exec(n.inputFormat); ) {
1392
- var o;
1393
- if ((o = w(r)) && o[3]) {
1394
- for (var l = o[1], s = e[o[2]], c = n.min[o[2]], u = n.max ? n.max[o[2]] : c + 1, f = [], p = !1, d = 0; d < c.length; d++) void 0 !== i.validPositions[d + r.index] || p ? (f[d] = s[d],
1395
- p = p || s[d] > c[d]) : (d + r.index == 0 && s[d] < c[d] ? (f[d] = s[d], p = !0) : f[d] = c[d],
1396
- "year" === o[2] && s.length - 1 == d && c != u && (f = (parseInt(f.join("")) + 1).toString().split("")),
1397
- "ampm" === o[2] && c != u && n.min.date.getTime() > e.date.getTime() && (f[d] = u[d]));
1398
- l.call(e._date, f.join(""));
1399
- }
1400
- }
1401
- t = n.min.date.getTime() <= e.date.getTime(), e.reInit();
1402
- }
1403
- return t && n.max && (isNaN(n.max.date.getTime()) || (t = n.max.date.getTime() >= e.date.getTime())),
1404
- t;
1405
- }(k, g = S.call(f, k, g, a), a, r)), void 0 !== t && g && i.pos !== t ? {
1406
- buffer: O(a.inputFormat, k, a).split(""),
1407
- refreshFromBuffer: {
1408
- start: t,
1409
- end: i.pos
1410
- },
1411
- pos: i.caret || i.pos
1412
- } : g;
1413
- },
1414
- onKeyDown: function(e, t, n, i) {
1415
- e.ctrlKey && e.key === r.keys.ArrowRight && (this.inputmask._valueSet(E(new Date, i)),
1416
- d(this).trigger("setvalue"));
1417
- },
1418
- onUnMask: function(e, t, n) {
1419
- return t ? O(n.outputFormat, M.call(this, e, n.inputFormat, n), n, !0) : t;
1420
- },
1421
- casing: function(e, t, n, i) {
1422
- if (0 == t.nativeDef.indexOf("[ap]")) return e.toLowerCase();
1423
- if (0 == t.nativeDef.indexOf("[AP]")) return e.toUpperCase();
1424
- var a = l.getTest.call(this, [ n - 1 ]);
1425
- return 0 == a.match.def.indexOf("[AP]") || 0 === n || a && a.input === String.fromCharCode(r.keyCode.Space) || a && a.match.def === String.fromCharCode(r.keyCode.Space) ? e.toUpperCase() : e.toLowerCase();
1426
- },
1427
- onBeforeMask: function(e, t) {
1428
- return "[object Date]" === Object.prototype.toString.call(e) && (e = E(e, t)), e;
1429
- },
1430
- insertMode: !1,
1431
- insertModeVisual: !1,
1432
- shiftPositions: !1,
1433
- keepStatic: !1,
1434
- inputmode: "numeric",
1435
- prefillYear: !0
1436
- }
1437
- });
1438
- },
1439
- 1313: function(e, t, n) {
1440
- var i, a = (i = n(2394)) && i.__esModule ? i : {
1441
- default: i
1442
- };
1443
- a.default.dependencyLib.extend(!0, a.default.prototype.i18n, {
1444
- dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
1445
- 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" ],
1446
- ordinalSuffix: [ "st", "nd", "rd", "th" ]
1447
- });
1448
- },
1449
- 3851: function(e, t, n) {
1450
- var i, a = (i = n(2394)) && i.__esModule ? i : {
1451
- default: i
1452
- }, r = n(8711), o = n(4713);
1453
- function l(e) {
1454
- return function(e) {
1455
- if (Array.isArray(e)) return s(e);
1456
- }(e) || function(e) {
1457
- if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
1458
- }(e) || function(e, t) {
1459
- if (!e) return;
1460
- if ("string" == typeof e) return s(e, t);
1461
- var n = Object.prototype.toString.call(e).slice(8, -1);
1462
- "Object" === n && e.constructor && (n = e.constructor.name);
1463
- if ("Map" === n || "Set" === n) return Array.from(e);
1464
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return s(e, t);
1465
- }(e) || function() {
1466
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1467
- }();
1468
- }
1469
- function s(e, t) {
1470
- (null == t || t > e.length) && (t = e.length);
1471
- for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
1472
- return i;
1473
- }
1474
- a.default.extendDefinitions({
1475
- A: {
1476
- validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
1477
- casing: "upper"
1478
- },
1479
- "&": {
1480
- validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
1481
- casing: "upper"
1482
- },
1483
- "#": {
1484
- validator: "[0-9A-Fa-f]",
1485
- casing: "upper"
1486
- }
1487
- });
1488
- var c = /25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;
1489
- function u(e, t, n, i, a) {
1490
- if (n - 1 > -1 && "." !== t.buffer[n - 1] ? (e = t.buffer[n - 1] + e, e = n - 2 > -1 && "." !== t.buffer[n - 2] ? t.buffer[n - 2] + e : "0" + e) : e = "00" + e,
1491
- a.greedy && parseInt(e) > 255 && c.test("00" + e.charAt(2))) {
1492
- var r = [].concat(l(t.buffer.slice(0, n)), [ ".", e.charAt(2) ]);
1493
- if (r.join("").match(/\./g).length < 4) return {
1494
- refreshFromBuffer: !0,
1495
- buffer: r,
1496
- caret: n + 2
1497
- };
1498
- }
1499
- return c.test(e);
1500
- }
1501
- a.default.extendAliases({
1502
- cssunit: {
1503
- regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
1504
- },
1505
- url: {
1506
- regex: "(https?|ftp)://.*",
1507
- autoUnmask: !1,
1508
- keepStatic: !1,
1509
- tabThrough: !0
1510
- },
1511
- ip: {
1512
- mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}",
1513
- definitions: {
1514
- i: {
1515
- validator: u
1516
- },
1517
- j: {
1518
- validator: u
1519
- },
1520
- k: {
1521
- validator: u
1522
- },
1523
- l: {
1524
- validator: u
1525
- }
1526
- },
1527
- onUnMask: function(e, t, n) {
1528
- return e;
1529
- },
1530
- inputmode: "decimal",
1531
- substitutes: {
1532
- ",": "."
1533
- }
1534
- },
1535
- email: {
1536
- mask: function(e) {
1537
- var t = e.separator, n = e.quantifier, i = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", a = i;
1538
- if (t) for (var r = 0; r < n; r++) a += "[".concat(t).concat(i, "]");
1539
- return a;
1540
- },
1541
- greedy: !1,
1542
- casing: "lower",
1543
- separator: null,
1544
- quantifier: 5,
1545
- skipOptionalPartCharacter: "",
1546
- onBeforePaste: function(e, t) {
1547
- return (e = e.toLowerCase()).replace("mailto:", "");
1548
- },
1549
- definitions: {
1550
- "*": {
1551
- validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
1552
- },
1553
- "-": {
1554
- validator: "[0-9A-Za-z-]"
1555
- }
1556
- },
1557
- onUnMask: function(e, t, n) {
1558
- return e;
1559
- },
1560
- inputmode: "email"
1561
- },
1562
- mac: {
1563
- mask: "##:##:##:##:##:##"
1564
- },
1565
- vin: {
1566
- mask: "V{13}9{4}",
1567
- definitions: {
1568
- V: {
1569
- validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
1570
- casing: "upper"
1571
- }
1572
- },
1573
- clearIncomplete: !0,
1574
- autoUnmask: !0
1575
- },
1576
- ssn: {
1577
- mask: "999-99-9999",
1578
- postValidation: function(e, t, n, i, a, l, s) {
1579
- var c = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
1580
- return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""));
1581
- }
1582
- }
1583
- });
1584
- },
1585
- 207: function(e, t, n) {
1586
- var i = l(n(7184)), a = l(n(2394)), r = n(2839), o = n(8711);
1587
- function l(e) {
1588
- return e && e.__esModule ? e : {
1589
- default: e
1590
- };
1591
- }
1592
- var s = a.default.dependencyLib;
1593
- function c(e, t) {
1594
- for (var n = "", i = 0; i < e.length; i++) a.default.prototype.definitions[e.charAt(i)] || t.definitions[e.charAt(i)] || t.optionalmarker[0] === e.charAt(i) || t.optionalmarker[1] === e.charAt(i) || t.quantifiermarker[0] === e.charAt(i) || t.quantifiermarker[1] === e.charAt(i) || t.groupmarker[0] === e.charAt(i) || t.groupmarker[1] === e.charAt(i) || t.alternatormarker === e.charAt(i) ? n += "\\" + e.charAt(i) : n += e.charAt(i);
1595
- return n;
1596
- }
1597
- function u(e, t, n, i) {
1598
- if (e.length > 0 && t > 0 && (!n.digitsOptional || i)) {
1599
- var a = e.indexOf(n.radixPoint), r = !1;
1600
- n.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === a && (e.push(n.radixPoint),
1601
- a = e.length - 1);
1602
- for (var o = 1; o <= t; o++) isFinite(e[a + o]) || (e[a + o] = "0");
1603
- }
1604
- return r && e.push(n.negationSymbol.back), e;
1605
- }
1606
- function f(e, t) {
1607
- var n = 0;
1608
- for (var i in "+" === e && (n = o.seekNext.call(this, t.validPositions.length - 1)),
1609
- t.tests) if ((i = parseInt(i)) >= n) for (var a = 0, r = t.tests[i].length; a < r; a++) if ((void 0 === t.validPositions[i] || "-" === e) && t.tests[i][a].match.def === e) return i + (void 0 !== t.validPositions[i] && "-" !== e ? 1 : 0);
1610
- return n;
1611
- }
1612
- function p(e, t) {
1613
- for (var n = -1, i = 0, a = t.validPositions.length; i < a; i++) {
1614
- var r = t.validPositions[i];
1615
- if (r && r.match.def === e) {
1616
- n = i;
1617
- break;
1618
- }
1619
- }
1620
- return n;
1621
- }
1622
- function d(e, t, n, i, a) {
1623
- var r = t.buffer ? t.buffer.indexOf(a.radixPoint) : -1, o = (-1 !== r || i && a.jitMasking) && new RegExp(a.definitions[9].validator).test(e);
1624
- return !i && a._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
1625
- insert: {
1626
- pos: r === n ? r + 1 : r,
1627
- c: a.radixPoint
1628
- },
1629
- pos: n
1630
- } : o;
1631
- }
1632
- a.default.extendAliases({
1633
- numeric: {
1634
- mask: function(e) {
1635
- e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""),
1636
- " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)),
1637
- "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp");
1638
- var t = "0", n = e.radixPoint;
1639
- !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick,
1640
- e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, n = "," === e.radixPoint ? "?" : "!",
1641
- "" !== e.radixPoint && void 0 === e.definitions[n] && (e.definitions[n] = {}, e.definitions[n].validator = "[" + e.radixPoint + "]",
1642
- e.definitions[n].placeholder = e.radixPoint, e.definitions[n].static = !0, e.definitions[n].generated = !0)) : (e.__financeInput = !1,
1643
- e.numericInput = !0);
1644
- var a, r = "[+]";
1645
- if (r += c(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {},
1646
- e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator,
1647
- e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0),
1648
- r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
1649
- var o = e.digits.toString().split(",");
1650
- isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += n + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (a = r + n + t + "{0," + e.digits + "}",
1651
- e.keepStatic = !0) : r += n + t + "{" + e.digits + "}");
1652
- } else e.inputmode = "numeric";
1653
- return r += c(e.suffix, e), r += "[-]", a && (r = [ a + c(e.suffix, e) + "[-]", r ]),
1654
- e.greedy = !1, function(e) {
1655
- void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
1656
- i.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")),
1657
- e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)),
1658
- null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, i.default)(e.groupSeparator), "g"), ""),
1659
- "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN,
1660
- isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done");
1661
- }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
1662
- r;
1663
- },
1664
- _mask: function(e) {
1665
- return "(" + e.groupSeparator + "999){+|1}";
1666
- },
1667
- digits: "*",
1668
- digitsOptional: !0,
1669
- enforceDigitsOnBlur: !1,
1670
- radixPoint: ".",
1671
- positionCaretOnClick: "radixFocus",
1672
- _radixDance: !0,
1673
- groupSeparator: "",
1674
- allowMinus: !0,
1675
- negationSymbol: {
1676
- front: "-",
1677
- back: ""
1678
- },
1679
- prefix: "",
1680
- suffix: "",
1681
- min: null,
1682
- max: null,
1683
- SetMaxOnOverflow: !1,
1684
- step: 1,
1685
- inputType: "text",
1686
- unmaskAsNumber: !1,
1687
- roundingFN: Math.round,
1688
- inputmode: "decimal",
1689
- shortcuts: {
1690
- k: "1000",
1691
- m: "1000000"
1692
- },
1693
- placeholder: "0",
1694
- greedy: !1,
1695
- rightAlign: !0,
1696
- insertMode: !0,
1697
- autoUnmask: !1,
1698
- skipOptionalPartCharacter: "",
1699
- usePrototypeDefinitions: !1,
1700
- stripLeadingZeroes: !0,
1701
- substituteRadixPoint: !0,
1702
- definitions: {
1703
- 0: {
1704
- validator: d
1705
- },
1706
- 1: {
1707
- validator: d,
1708
- definitionSymbol: "9"
1709
- },
1710
- 9: {
1711
- validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
1712
- definitionSymbol: "*"
1713
- },
1714
- "+": {
1715
- validator: function(e, t, n, i, a) {
1716
- return a.allowMinus && ("-" === e || e === a.negationSymbol.front);
1717
- }
1718
- },
1719
- "-": {
1720
- validator: function(e, t, n, i, a) {
1721
- return a.allowMinus && e === a.negationSymbol.back;
1722
- }
1723
- }
1724
- },
1725
- preValidation: function(e, t, n, i, a, r, o, l) {
1726
- var s = this;
1727
- if (!1 !== a.__financeInput && n === a.radixPoint) return !1;
1728
- var c = e.indexOf(a.radixPoint), u = t;
1729
- if (t = function(e, t, n, i, a) {
1730
- return a._radixDance && a.numericInput && t !== a.negationSymbol.back && e <= n && (n > 0 || t == a.radixPoint) && (void 0 === i.validPositions[e - 1] || i.validPositions[e - 1].input !== a.negationSymbol.back) && (e -= 1),
1731
- e;
1732
- }(t, n, c, r, a), "-" === n || n === a.negationSymbol.front) {
1733
- if (!0 !== a.allowMinus) return !1;
1734
- var d = !1, h = p("+", r), v = p("-", r);
1735
- return -1 !== h && (d = [ h ], -1 !== v && d.push(v)), !1 !== d ? {
1736
- remove: d,
1737
- caret: u - a.negationSymbol.back.length
1738
- } : {
1739
- insert: [ {
1740
- pos: f.call(s, "+", r),
1741
- c: a.negationSymbol.front,
1742
- fromIsValid: !0
1743
- }, {
1744
- pos: f.call(s, "-", r),
1745
- c: a.negationSymbol.back,
1746
- fromIsValid: void 0
1747
- } ],
1748
- caret: u + a.negationSymbol.back.length
1749
- };
1750
- }
1751
- if (n === a.groupSeparator) return {
1752
- caret: u
1753
- };
1754
- if (l) return !0;
1755
- if (-1 !== c && !0 === a._radixDance && !1 === i && n === a.radixPoint && void 0 !== a.digits && (isNaN(a.digits) || parseInt(a.digits) > 0) && c !== t) {
1756
- var m = f.call(s, a.radixPoint, r);
1757
- return r.validPositions[m] && (r.validPositions[m].generatedInput = r.validPositions[m].generated || !1),
1758
- {
1759
- caret: a._radixDance && t === c - 1 ? c + 1 : c
1760
- };
1761
- }
1762
- if (!1 === a.__financeInput) if (i) {
1763
- if (a.digitsOptional) return {
1764
- rewritePosition: o.end
1765
- };
1766
- if (!a.digitsOptional) {
1767
- if (o.begin > c && o.end <= c) return n === a.radixPoint ? {
1768
- insert: {
1769
- pos: c + 1,
1770
- c: "0",
1771
- fromIsValid: !0
1772
- },
1773
- rewritePosition: c
1774
- } : {
1775
- rewritePosition: c + 1
1776
- };
1777
- if (o.begin < c) return {
1778
- rewritePosition: o.begin - 1
1779
- };
1780
- }
1781
- } else if (!a.showMaskOnHover && !a.showMaskOnFocus && !a.digitsOptional && a.digits > 0 && "" === this.__valueGet.call(this.el)) return {
1782
- rewritePosition: c
1783
- };
1784
- return {
1785
- rewritePosition: t
1786
- };
1787
- },
1788
- postValidation: function(e, t, n, i, a, r, o) {
1789
- if (!1 === i) return i;
1790
- if (o) return !0;
1791
- if (null !== a.min || null !== a.max) {
1792
- var l = a.onUnMask(e.slice().reverse().join(""), void 0, s.extend({}, a, {
1793
- unmaskAsNumber: !0
1794
- }));
1795
- if (null !== a.min && l < a.min && (l.toString().length > a.min.toString().length || l < 0)) return !1;
1796
- if (null !== a.max && l > a.max) return !!a.SetMaxOnOverflow && {
1797
- refreshFromBuffer: !0,
1798
- buffer: u(a.max.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
1799
- };
1800
- }
1801
- return i;
1802
- },
1803
- onUnMask: function(e, t, n) {
1804
- if ("" === t && !0 === n.nullable) return t;
1805
- var a = e.replace(n.prefix, "");
1806
- return a = (a = a.replace(n.suffix, "")).replace(new RegExp((0, i.default)(n.groupSeparator), "g"), ""),
1807
- "" !== n.placeholder.charAt(0) && (a = a.replace(new RegExp(n.placeholder.charAt(0), "g"), "0")),
1808
- n.unmaskAsNumber ? ("" !== n.radixPoint && -1 !== a.indexOf(n.radixPoint) && (a = a.replace(i.default.call(this, n.radixPoint), ".")),
1809
- a = (a = a.replace(new RegExp("^" + (0, i.default)(n.negationSymbol.front)), "-")).replace(new RegExp((0,
1810
- i.default)(n.negationSymbol.back) + "$"), ""), Number(a)) : a;
1811
- },
1812
- isComplete: function(e, t) {
1813
- var n = (t.numericInput ? e.slice().reverse() : e).join("");
1814
- return n = (n = (n = (n = (n = n.replace(new RegExp("^" + (0, i.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
1815
- i.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
1816
- i.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (n = n.replace((0,
1817
- i.default)(t.radixPoint), ".")), isFinite(n);
1818
- },
1819
- onBeforeMask: function(e, t) {
1820
- var n;
1821
- e = null !== (n = e) && void 0 !== n ? n : "";
1822
- var a = t.radixPoint || ",";
1823
- isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === a || (e = e.toString().replace(".", a));
1824
- var r = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, o = e.split(a), l = o[0].replace(/[^\-0-9]/g, ""), s = o.length > 1 ? o[1].replace(/[^0-9]/g, "") : "", c = o.length > 1;
1825
- e = l + ("" !== s ? a + s : s);
1826
- var f = 0;
1827
- if ("" !== a && (f = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits,
1828
- "" !== s || !t.digitsOptional)) {
1829
- var p = Math.pow(10, f || 1);
1830
- e = e.replace((0, i.default)(a), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * p) / p).toFixed(f)),
1831
- e = e.toString().replace(".", a);
1832
- }
1833
- if (0 === t.digits && -1 !== e.indexOf(a) && (e = e.substring(0, e.indexOf(a))),
1834
- null !== t.min || null !== t.max) {
1835
- var d = e.toString().replace(a, ".");
1836
- null !== t.min && d < t.min ? e = t.min.toString().replace(".", a) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", a));
1837
- }
1838
- return r && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), f, t, c).join("");
1839
- },
1840
- onBeforeWrite: function(e, t, n, a) {
1841
- function r(e, t) {
1842
- if (!1 !== a.__financeInput || t) {
1843
- var n = e.indexOf(a.radixPoint);
1844
- -1 !== n && e.splice(n, 1);
1845
- }
1846
- if ("" !== a.groupSeparator) for (;-1 !== (n = e.indexOf(a.groupSeparator)); ) e.splice(n, 1);
1847
- return e;
1848
- }
1849
- var o, l;
1850
- if (a.stripLeadingZeroes && (l = function(e, t) {
1851
- var n = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, i.default)(t.negationSymbol.front) + "?" : "") + (0,
1852
- i.default)(t.prefix) + ")(.*)(" + (0, i.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
1853
- i.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = n ? n[2] : "", r = !1;
1854
- return a && (a = a.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)),
1855
- !(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < a.length)) && r;
1856
- }(t, a))) for (var c = t.join("").lastIndexOf(l[0].split("").reverse().join("")) - (l[0] == l.input ? 0 : 1), f = l[0] == l.input ? 1 : 0, p = l[0].length - f; p > 0; p--) this.maskset.validPositions.splice(c + p, 1),
1857
- delete t[c + p];
1858
- if (e) switch (e.type) {
1859
- case "blur":
1860
- case "checkval":
1861
- if (null !== a.min) {
1862
- var d = a.onUnMask(t.slice().reverse().join(""), void 0, s.extend({}, a, {
1863
- unmaskAsNumber: !0
1864
- }));
1865
- if (null !== a.min && d < a.min) return {
1866
- refreshFromBuffer: !0,
1867
- buffer: u(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
1868
- };
1869
- }
1870
- if (t[t.length - 1] === a.negationSymbol.front) {
1871
- var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, i.default)(a.negationSymbol.front) + "?" : "") + (0,
1872
- i.default)(a.prefix) + ")(.*)(" + (0, i.default)(a.suffix) + ("" != a.negationSymbol.back ? (0,
1873
- i.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join(""));
1874
- 0 == (h ? h[2] : "") && (o = {
1875
- refreshFromBuffer: !0,
1876
- buffer: [ 0 ]
1877
- });
1878
- } else if ("" !== a.radixPoint) {
1879
- 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),
1880
- o = {
1881
- refreshFromBuffer: !0,
1882
- buffer: r(t)
1883
- }));
1884
- }
1885
- if (a.enforceDigitsOnBlur) {
1886
- var v = (o = o || {}) && o.buffer || t.slice().reverse();
1887
- o.refreshFromBuffer = !0, o.buffer = u(v, a.digits, a, !0).reverse();
1888
- }
1889
- }
1890
- return o;
1891
- },
1892
- onKeyDown: function(e, t, n, i) {
1893
- var a, o = s(this);
1894
- if (3 != e.location) {
1895
- var l, c = e.key;
1896
- if ((l = i.shortcuts && i.shortcuts[c]) && l.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(l)),
1897
- o.trigger("setvalue"), !1;
1898
- }
1899
- if (e.ctrlKey) switch (e.key) {
1900
- case r.keys.ArrowUp:
1901
- return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(i.step)),
1902
- o.trigger("setvalue"), !1;
1903
-
1904
- case r.keys.ArrowDown:
1905
- return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(i.step)),
1906
- o.trigger("setvalue"), !1;
1907
- }
1908
- if (!e.shiftKey && (e.key === r.keys.Delete || e.key === r.keys.Backspace || e.key === r.keys.BACKSPACE_SAFARI) && n.begin !== t.length) {
1909
- if (t[e.key === r.keys.Delete ? n.begin - 1 : n.end] === i.negationSymbol.front) return a = t.slice().reverse(),
1910
- "" !== i.negationSymbol.front && a.shift(), "" !== i.negationSymbol.back && a.pop(),
1911
- o.trigger("setvalue", [ a.join(""), n.begin ]), !1;
1912
- if (!0 === i._radixDance) {
1913
- var f, p = t.indexOf(i.radixPoint);
1914
- if (i.digitsOptional) {
1915
- if (0 === p) return (a = t.slice().reverse()).pop(), o.trigger("setvalue", [ a.join(""), n.begin >= a.length ? a.length : n.begin ]),
1916
- !1;
1917
- } else if (-1 !== p && (n.begin < p || n.end < p || e.key === r.keys.Delete && (n.begin === p || n.begin - 1 === p))) return n.begin === n.end && (e.key === r.keys.Backspace || e.key === r.keys.BACKSPACE_SAFARI ? n.begin++ : e.key === r.keys.Delete && n.begin - 1 === p && (f = s.extend({}, n),
1918
- n.begin--, n.end--)), (a = t.slice().reverse()).splice(a.length - n.begin, n.begin - n.end + 1),
1919
- a = u(a, i.digits, i).join(""), f && (n = f), o.trigger("setvalue", [ a, n.begin >= a.length ? p + 1 : n.begin ]),
1920
- !1;
1921
- }
1922
- }
1923
- }
1924
- },
1925
- currency: {
1926
- prefix: "",
1927
- groupSeparator: ",",
1928
- alias: "numeric",
1929
- digits: 2,
1930
- digitsOptional: !1
1931
- },
1932
- decimal: {
1933
- alias: "numeric"
1934
- },
1935
- integer: {
1936
- alias: "numeric",
1937
- inputmode: "numeric",
1938
- digits: 0
1939
- },
1940
- percentage: {
1941
- alias: "numeric",
1942
- min: 0,
1943
- max: 100,
1944
- suffix: " %",
1945
- digits: 0,
1946
- allowMinus: !1
1947
- },
1948
- indianns: {
1949
- alias: "numeric",
1950
- _mask: function(e) {
1951
- return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}";
1952
- },
1953
- groupSeparator: ",",
1954
- radixPoint: ".",
1955
- placeholder: "0",
1956
- digits: 2,
1957
- digitsOptional: !1
1958
- }
1959
- });
1960
- },
1961
- 9380: function(e, t) {
1962
- Object.defineProperty(t, "__esModule", {
1963
- value: !0
1964
- }), t.default = void 0;
1965
- var n = !("undefined" == typeof window || !window.document || !window.document.createElement);
1966
- t.default = n ? window : {};
1967
- },
1968
- 7760: function(e, t, n) {
1969
- Object.defineProperty(t, "__esModule", {
1970
- value: !0
1971
- }), t.HandleNativePlaceholder = function(e, t) {
1972
- var n = e ? e.inputmask : this;
1973
- if (i.ie) {
1974
- if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
1975
- var a = o.getBuffer.call(n).slice(), r = e.inputmask._valueGet();
1976
- if (r !== t) {
1977
- var l = o.getLastValidPosition.call(n);
1978
- -1 === l && r === o.getBufferTemplate.call(n).join("") ? a = [] : -1 !== l && u.call(n, a),
1979
- p(e, a);
1980
- }
1981
- }
1982
- } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
1983
- }, t.applyInputValue = c, t.checkVal = f, t.clearOptionalTail = u, t.unmaskedvalue = function(e) {
1984
- var t = e ? e.inputmask : this, n = t.opts, i = t.maskset;
1985
- if (e) {
1986
- if (void 0 === e.inputmask) return e.value;
1987
- e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
1988
- }
1989
- for (var a = [], r = i.validPositions, l = 0, s = r.length; l < s; l++) r[l] && r[l].match && (1 != r[l].match.static || Array.isArray(i.metadata) && !0 !== r[l].generatedInput) && a.push(r[l].input);
1990
- var u = 0 === a.length ? "" : (t.isRTL ? a.reverse() : a).join("");
1991
- if ("function" == typeof n.onUnMask) {
1992
- var f = (t.isRTL ? o.getBuffer.call(t).slice().reverse() : o.getBuffer.call(t)).join("");
1993
- u = n.onUnMask.call(t, f, u, n);
1994
- }
1995
- return u;
1996
- }, t.writeBuffer = p;
1997
- var i = n(9845), a = n(6030), r = n(2839), o = n(8711), l = n(7215), s = n(4713);
1998
- function c(e, t, n) {
1999
- var i = e ? e.inputmask : this, a = i.opts;
2000
- e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t),
2001
- f(e, !0, !1, t = (t || "").toString().split(""), n), i.undoValue = i._valueGet(!0),
2002
- (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === o.getBufferTemplate.call(i).join("") && -1 === o.getLastValidPosition.call(i) && e.inputmask._valueSet("");
2003
- }
2004
- function u(e) {
2005
- e.length = 0;
2006
- for (var t, n = s.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = n.shift()); ) e.push(t);
2007
- return e;
2008
- }
2009
- function f(e, t, n, i, r) {
2010
- var c, u = e ? e.inputmask : this, f = u.maskset, d = u.opts, h = u.dependencyLib, v = i.slice(), m = "", g = -1, y = d.skipOptionalPartCharacter;
2011
- d.skipOptionalPartCharacter = "", o.resetMaskSet.call(u, !1), u.clicked = 0, g = d.radixPoint ? o.determineNewCaretPosition.call(u, {
2012
- begin: 0,
2013
- end: 0
2014
- }, !1, !1 === d.__financeInput ? "radixFocus" : void 0).begin : 0, f.p = g, u.caretPos = {
2015
- begin: g
2016
- };
2017
- var k = [], b = u.caretPos;
2018
- if (v.forEach((function(e, t) {
2019
- if (void 0 !== e) {
2020
- var i = new h.Event("_checkval");
2021
- i.key = e, m += e;
2022
- var r = o.getLastValidPosition.call(u, void 0, !0);
2023
- !function(e, t) {
2024
- for (var n = s.getMaskTemplate.call(u, !0, 0).slice(e, o.seekNext.call(u, e, !1, !1)).join("").replace(/'/g, ""), i = n.indexOf(t); i > 0 && " " === n[i - 1]; ) i--;
2025
- var a = 0 === i && !o.isMask.call(u, e) && (s.getTest.call(u, e).match.nativeDef === t.charAt(0) || !0 === s.getTest.call(u, e).match.static && s.getTest.call(u, e).match.nativeDef === "'" + t.charAt(0) || " " === s.getTest.call(u, e).match.nativeDef && (s.getTest.call(u, e + 1).match.nativeDef === t.charAt(0) || !0 === s.getTest.call(u, e + 1).match.static && s.getTest.call(u, e + 1).match.nativeDef === "'" + t.charAt(0)));
2026
- if (!a && i > 0 && !o.isMask.call(u, e, !1, !0)) {
2027
- var r = o.seekNext.call(u, e);
2028
- u.caretPos.begin < r && (u.caretPos = {
2029
- begin: r
2030
- });
2031
- }
2032
- return a;
2033
- }(g, m) ? (c = a.EventHandlers.keypressEvent.call(u, i, !0, !1, n, u.caretPos.begin)) && (g = u.caretPos.begin + 1,
2034
- m = "") : c = a.EventHandlers.keypressEvent.call(u, i, !0, !1, n, r + 1), c ? (void 0 !== c.pos && f.validPositions[c.pos] && !0 === f.validPositions[c.pos].match.static && void 0 === f.validPositions[c.pos].alternation && (k.push(c.pos),
2035
- u.isRTL || (c.forwardPosition = c.pos + 1)), p.call(u, void 0, o.getBuffer.call(u), c.forwardPosition, i, !1),
2036
- u.caretPos = {
2037
- begin: c.forwardPosition,
2038
- end: c.forwardPosition
2039
- }, b = u.caretPos) : void 0 === f.validPositions[t] && v[t] === s.getPlaceholder.call(u, t) && o.isMask.call(u, t, !0) ? u.caretPos.begin++ : u.caretPos = b;
2040
- }
2041
- })), k.length > 0) {
2042
- var x, w, P = o.seekNext.call(u, -1, void 0, !1);
2043
- if (!l.isComplete.call(u, o.getBuffer.call(u)) && k.length <= P || l.isComplete.call(u, o.getBuffer.call(u)) && k.length > 0 && k.length !== P && 0 === k[0]) for (var S = P; void 0 !== (x = k.shift()); ) if (x < S) {
2044
- var O = new h.Event("_checkval");
2045
- if ((w = f.validPositions[x]).generatedInput = !0, O.key = w.input, (c = a.EventHandlers.keypressEvent.call(u, O, !0, !1, n, S)) && void 0 !== c.pos && c.pos !== x && f.validPositions[c.pos] && !0 === f.validPositions[c.pos].match.static) k.push(c.pos); else if (!c) break;
2046
- S++;
2047
- }
2048
- }
2049
- t && p.call(u, e, o.getBuffer.call(u), c ? c.forwardPosition : u.caretPos.begin, r || new h.Event("checkval"), r && ("input" === r.type && u.undoValue !== o.getBuffer.call(u).join("") || "paste" === r.type)),
2050
- d.skipOptionalPartCharacter = y;
2051
- }
2052
- function p(e, t, n, i, a) {
2053
- var s = e ? e.inputmask : this, c = s.opts, u = s.dependencyLib;
2054
- if (i && "function" == typeof c.onBeforeWrite) {
2055
- var f = c.onBeforeWrite.call(s, i, t, n, c);
2056
- if (f) {
2057
- if (f.refreshFromBuffer) {
2058
- var p = f.refreshFromBuffer;
2059
- l.refreshFromBuffer.call(s, !0 === p ? p : p.start, p.end, f.buffer || t), t = o.getBuffer.call(s, !0);
2060
- }
2061
- void 0 !== n && (n = void 0 !== f.caret ? f.caret : n);
2062
- }
2063
- }
2064
- if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === n || void 0 !== i && "blur" === i.type || o.caret.call(s, e, n, void 0, void 0, void 0 !== i && "keydown" === i.type && (i.key === r.keys.Delete || i.key === r.keys.Backspace)),
2065
- void 0 === e.inputmask.writeBufferHook || e.inputmask.writeBufferHook(n), !0 === a)) {
2066
- var d = u(e), h = e.inputmask._valueGet();
2067
- e.inputmask.skipInputEvent = !0, d.trigger("input"), setTimeout((function() {
2068
- h === o.getBufferTemplate.call(s).join("") ? d.trigger("cleared") : !0 === l.isComplete.call(s, t) && d.trigger("complete");
2069
- }), 0);
2070
- }
2071
- }
2072
- },
2073
- 2394: function(e, t, n) {
2074
- Object.defineProperty(t, "__esModule", {
2075
- value: !0
2076
- }), t.default = void 0;
2077
- var i = v(n(3976)), a = v(n(7392)), r = v(n(4963)), o = n(9716), l = v(n(9380)), s = n(7760), c = n(157), u = n(2391), f = n(8711), p = n(7215), d = n(4713);
2078
- function h(e) {
2079
- return h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2080
- return typeof e;
2081
- } : function(e) {
2082
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2083
- }, h(e);
2084
- }
2085
- function v(e) {
2086
- return e && e.__esModule ? e : {
2087
- default: e
2088
- };
2089
- }
2090
- var m = l.default.document, g = "_inputmask_opts";
2091
- function y(e, t, n) {
2092
- if (!(this instanceof y)) return new y(e, t, n);
2093
- this.dependencyLib = r.default, this.el = void 0, this.events = {}, this.maskset = void 0,
2094
- !0 !== n && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
2095
- e && (t.alias = e)), this.opts = r.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
2096
- this.userOptions = t || {}, k(this.opts.alias, t, this.opts)), this.refreshValue = !1,
2097
- this.undoValue = void 0, this.$el = void 0, this.skipInputEvent = !1, this.validationEvent = !1,
2098
- this.ignorable = !1, this.maxLength, this.mouseEnter = !1, this.clicked = 0, this.originalPlaceholder = void 0,
2099
- this.isComposing = !1, this.hasAlternator = !1;
2100
- }
2101
- function k(e, t, n) {
2102
- var i = y.prototype.aliases[e];
2103
- return i ? (i.alias && k(i.alias, void 0, n), r.default.extend(!0, n, i), r.default.extend(!0, n, t),
2104
- !0) : (null === n.mask && (n.mask = e), !1);
2105
- }
2106
- y.prototype = {
2107
- dataAttribute: "data-inputmask",
2108
- defaults: i.default,
2109
- definitions: a.default,
2110
- aliases: {},
2111
- masksCache: {},
2112
- i18n: {},
2113
- get isRTL() {
2114
- return this.opts.isRTL || this.opts.numericInput;
2115
- },
2116
- mask: function(e) {
2117
- var t = this;
2118
- return "string" == typeof e && (e = m.getElementById(e) || m.querySelectorAll(e)),
2119
- (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function(e, n) {
2120
- var i = r.default.extend(!0, {}, t.opts);
2121
- if (function(e, t, n, i) {
2122
- function a(t, a) {
2123
- var r = "" === i ? t : i + "-" + t;
2124
- null !== (a = void 0 !== a ? a : e.getAttribute(r)) && ("string" == typeof a && (0 === t.indexOf("on") ? a = l.default[a] : "false" === a ? a = !1 : "true" === a && (a = !0)),
2125
- n[t] = a);
2126
- }
2127
- if (!0 === t.importDataAttributes) {
2128
- var o, s, c, u, f = e.getAttribute(i);
2129
- if (f && "" !== f && (f = f.replace(/'/g, '"'), s = JSON.parse("{" + f + "}")),
2130
- s) for (u in c = void 0, s) if ("alias" === u.toLowerCase()) {
2131
- c = s[u];
2132
- break;
2133
- }
2134
- for (o in a("alias", c), n.alias && k(n.alias, n, t), t) {
2135
- if (s) for (u in c = void 0, s) if (u.toLowerCase() === o.toLowerCase()) {
2136
- c = s[u];
2137
- break;
2138
- }
2139
- a(o, c);
2140
- }
2141
- }
2142
- r.default.extend(!0, t, n), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right");
2143
- ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"),
2144
- t.isRTL = !0);
2145
- return Object.keys(n).length;
2146
- }(e, i, r.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
2147
- var a = (0, u.generateMaskSet)(i, t.noMasksCache);
2148
- void 0 !== a && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
2149
- e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = i, e.inputmask.noMasksCache = t.noMasksCache,
2150
- e.inputmask.userOptions = r.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
2151
- e.inputmask.$el = (0, r.default)(e), e.inputmask.maskset = a, r.default.data(e, g, t.userOptions),
2152
- c.mask.call(e.inputmask));
2153
- }
2154
- })), e && e[0] && e[0].inputmask || this;
2155
- },
2156
- option: function(e, t) {
2157
- return "string" == typeof e ? this.opts[e] : "object" === h(e) ? (r.default.extend(this.userOptions, e),
2158
- this.el && !0 !== t && this.mask(this.el), this) : void 0;
2159
- },
2160
- unmaskedvalue: function(e) {
2161
- if (this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache),
2162
- void 0 === this.el || void 0 !== e) {
2163
- var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
2164
- s.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, f.getBuffer.call(this), 0, this.opts);
2165
- }
2166
- return s.unmaskedvalue.call(this, this.el);
2167
- },
2168
- remove: function() {
2169
- if (this.el) {
2170
- r.default.data(this.el, g, null);
2171
- var e = this.opts.autoUnmask ? (0, s.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
2172
- e !== f.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
2173
- o.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", {
2174
- get: this.__valueGet,
2175
- set: this.__valueSet,
2176
- configurable: !0
2177
- }) : m.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet),
2178
- this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0;
2179
- }
2180
- return this.el;
2181
- },
2182
- getemptymask: function() {
2183
- return this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache),
2184
- (this.isRTL ? f.getBufferTemplate.call(this).reverse() : f.getBufferTemplate.call(this)).join("");
2185
- },
2186
- hasMaskedValue: function() {
2187
- return !this.opts.autoUnmask;
2188
- },
2189
- isComplete: function() {
2190
- return this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache),
2191
- p.isComplete.call(this, f.getBuffer.call(this));
2192
- },
2193
- getmetadata: function() {
2194
- if (this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache),
2195
- Array.isArray(this.maskset.metadata)) {
2196
- var e = d.getMaskTemplate.call(this, !0, 0, !1).join("");
2197
- return this.maskset.metadata.forEach((function(t) {
2198
- return t.mask !== e || (e = t, !1);
2199
- })), e;
2200
- }
2201
- return this.maskset.metadata;
2202
- },
2203
- isValid: function(e) {
2204
- if (this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache),
2205
- e) {
2206
- var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
2207
- s.checkVal.call(this, void 0, !0, !1, t);
2208
- } else e = this.isRTL ? f.getBuffer.call(this).slice().reverse().join("") : f.getBuffer.call(this).join("");
2209
- for (var n = f.getBuffer.call(this), i = f.determineLastRequiredPosition.call(this), a = n.length - 1; a > i && !f.isMask.call(this, a); a--) ;
2210
- return n.splice(i, a + 1 - i), p.isComplete.call(this, n) && e === (this.isRTL ? f.getBuffer.call(this).slice().reverse().join("") : f.getBuffer.call(this).join(""));
2211
- },
2212
- format: function(e, t) {
2213
- this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache);
2214
- var n = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
2215
- s.checkVal.call(this, void 0, !0, !1, n);
2216
- var i = this.isRTL ? f.getBuffer.call(this).slice().reverse().join("") : f.getBuffer.call(this).join("");
2217
- return t ? {
2218
- value: i,
2219
- metadata: this.getmetadata()
2220
- } : i;
2221
- },
2222
- setValue: function(e) {
2223
- this.el && (0, r.default)(this.el).trigger("setvalue", [ e ]);
2224
- },
2225
- analyseMask: u.analyseMask
2226
- }, y.extendDefaults = function(e) {
2227
- r.default.extend(!0, y.prototype.defaults, e);
2228
- }, y.extendDefinitions = function(e) {
2229
- r.default.extend(!0, y.prototype.definitions, e);
2230
- }, y.extendAliases = function(e) {
2231
- r.default.extend(!0, y.prototype.aliases, e);
2232
- }, y.format = function(e, t, n) {
2233
- return y(t).format(e, n);
2234
- }, y.unmask = function(e, t) {
2235
- return y(t).unmaskedvalue(e);
2236
- }, y.isValid = function(e, t) {
2237
- return y(t).isValid(e);
2238
- }, y.remove = function(e) {
2239
- "string" == typeof e && (e = m.getElementById(e) || m.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
2240
- e.inputmask && e.inputmask.remove();
2241
- }));
2242
- }, y.setValue = function(e, t) {
2243
- "string" == typeof e && (e = m.getElementById(e) || m.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
2244
- e.inputmask ? e.inputmask.setValue(t) : (0, r.default)(e).trigger("setvalue", [ t ]);
2245
- }));
2246
- }, y.dependencyLib = r.default, l.default.Inputmask = y;
2247
- t.default = y;
2248
- },
2249
- 5296: function(e, t, n) {
2250
- function i(e) {
2251
- return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2252
- return typeof e;
2253
- } : function(e) {
2254
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2255
- }, i(e);
2256
- }
2257
- var a = d(n(9380)), r = d(n(2394));
2258
- function o(e, t) {
2259
- for (var n = 0; n < t.length; n++) {
2260
- var a = t[n];
2261
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
2262
- Object.defineProperty(e, (r = a.key, o = void 0, o = function(e, t) {
2263
- if ("object" !== i(e) || null === e) return e;
2264
- var n = e[Symbol.toPrimitive];
2265
- if (void 0 !== n) {
2266
- var a = n.call(e, t || "default");
2267
- if ("object" !== i(a)) return a;
2268
- throw new TypeError("@@toPrimitive must return a primitive value.");
2269
- }
2270
- return ("string" === t ? String : Number)(e);
2271
- }(r, "string"), "symbol" === i(o) ? o : String(o)), a);
2272
- }
2273
- var r, o;
2274
- }
2275
- function l(e) {
2276
- var t = u();
2277
- return function() {
2278
- var n, a = p(e);
2279
- if (t) {
2280
- var r = p(this).constructor;
2281
- n = Reflect.construct(a, arguments, r);
2282
- } else n = a.apply(this, arguments);
2283
- return function(e, t) {
2284
- if (t && ("object" === i(t) || "function" == typeof t)) return t;
2285
- if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
2286
- return function(e) {
2287
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2288
- return e;
2289
- }(e);
2290
- }(this, n);
2291
- };
2292
- }
2293
- function s(e) {
2294
- var t = "function" == typeof Map ? new Map : void 0;
2295
- return s = function(e) {
2296
- if (null === e || !function(e) {
2297
- try {
2298
- return -1 !== Function.toString.call(e).indexOf("[native code]");
2299
- } catch (t) {
2300
- return "function" == typeof e;
2301
- }
2302
- }(e)) return e;
2303
- if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
2304
- if (void 0 !== t) {
2305
- if (t.has(e)) return t.get(e);
2306
- t.set(e, n);
2307
- }
2308
- function n() {
2309
- return c(e, arguments, p(this).constructor);
2310
- }
2311
- return n.prototype = Object.create(e.prototype, {
2312
- constructor: {
2313
- value: n,
2314
- enumerable: !1,
2315
- writable: !0,
2316
- configurable: !0
2317
- }
2318
- }), f(n, e);
2319
- }, s(e);
2320
- }
2321
- function c(e, t, n) {
2322
- return c = u() ? Reflect.construct.bind() : function(e, t, n) {
2323
- var i = [ null ];
2324
- i.push.apply(i, t);
2325
- var a = new (Function.bind.apply(e, i));
2326
- return n && f(a, n.prototype), a;
2327
- }, c.apply(null, arguments);
2328
- }
2329
- function u() {
2330
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
2331
- if (Reflect.construct.sham) return !1;
2332
- if ("function" == typeof Proxy) return !0;
2333
- try {
2334
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
2335
- !0;
2336
- } catch (e) {
2337
- return !1;
2338
- }
2339
- }
2340
- function f(e, t) {
2341
- return f = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
2342
- return e.__proto__ = t, e;
2343
- }, f(e, t);
2344
- }
2345
- function p(e) {
2346
- return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
2347
- return e.__proto__ || Object.getPrototypeOf(e);
2348
- }, p(e);
2349
- }
2350
- function d(e) {
2351
- return e && e.__esModule ? e : {
2352
- default: e
2353
- };
2354
- }
2355
- var h = a.default.document;
2356
- if (h && h.head && h.head.attachShadow && a.default.customElements && void 0 === a.default.customElements.get("input-mask")) {
2357
- var v = function(e) {
2358
- !function(e, t) {
2359
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
2360
- e.prototype = Object.create(t && t.prototype, {
2361
- constructor: {
2362
- value: e,
2363
- writable: !0,
2364
- configurable: !0
2365
- }
2366
- }), Object.defineProperty(e, "prototype", {
2367
- writable: !1
2368
- }), t && f(e, t);
2369
- }(s, e);
2370
- var t, n, i, a = l(s);
2371
- function s() {
2372
- var e;
2373
- !function(e, t) {
2374
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2375
- }(this, s);
2376
- var t = (e = a.call(this)).getAttributeNames(), n = e.attachShadow({
2377
- mode: "closed"
2378
- });
2379
- for (var i in e.input = h.createElement("input"), e.input.type = "text", n.appendChild(e.input),
2380
- t) Object.prototype.hasOwnProperty.call(t, i) && e.input.setAttribute(t[i], e.getAttribute(t[i]));
2381
- var o = new r.default;
2382
- return o.dataAttribute = "", o.mask(e.input), e.input.inputmask.shadowRoot = n,
2383
- e;
2384
- }
2385
- return t = s, (n = [ {
2386
- key: "attributeChangedCallback",
2387
- value: function(e, t, n) {
2388
- this.input.setAttribute(e, n);
2389
- }
2390
- }, {
2391
- key: "value",
2392
- get: function() {
2393
- return this.input.value;
2394
- },
2395
- set: function(e) {
2396
- this.input.value = e;
2397
- }
2398
- } ]) && o(t.prototype, n), i && o(t, i), Object.defineProperty(t, "prototype", {
2399
- writable: !1
2400
- }), s;
2401
- }(s(HTMLElement));
2402
- a.default.customElements.define("input-mask", v);
2403
- }
2404
- },
2405
- 2839: function(e, t) {
2406
- function n(e) {
2407
- return n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2408
- return typeof e;
2409
- } : function(e) {
2410
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2411
- }, n(e);
2412
- }
2413
- function i(e, t) {
2414
- return function(e) {
2415
- if (Array.isArray(e)) return e;
2416
- }(e) || function(e, t) {
2417
- var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2418
- if (null != n) {
2419
- var i, a, r, o, l = [], s = !0, c = !1;
2420
- try {
2421
- if (r = (n = n.call(e)).next, 0 === t) {
2422
- if (Object(n) !== n) return;
2423
- s = !1;
2424
- } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
2425
- } catch (e) {
2426
- c = !0, a = e;
2427
- } finally {
2428
- try {
2429
- if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
2430
- } finally {
2431
- if (c) throw a;
2432
- }
2433
- }
2434
- return l;
2435
- }
2436
- }(e, t) || function(e, t) {
2437
- if (!e) return;
2438
- if ("string" == typeof e) return a(e, t);
2439
- var n = Object.prototype.toString.call(e).slice(8, -1);
2440
- "Object" === n && e.constructor && (n = e.constructor.name);
2441
- if ("Map" === n || "Set" === n) return Array.from(e);
2442
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return a(e, t);
2443
- }(e, t) || function() {
2444
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2445
- }();
2446
- }
2447
- function a(e, t) {
2448
- (null == t || t > e.length) && (t = e.length);
2449
- for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
2450
- return i;
2451
- }
2452
- function r(e, t) {
2453
- var n = Object.keys(e);
2454
- if (Object.getOwnPropertySymbols) {
2455
- var i = Object.getOwnPropertySymbols(e);
2456
- t && (i = i.filter((function(t) {
2457
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
2458
- }))), n.push.apply(n, i);
2459
- }
2460
- return n;
2461
- }
2462
- function o(e, t, i) {
2463
- return (t = function(e) {
2464
- var t = function(e, t) {
2465
- if ("object" !== n(e) || null === e) return e;
2466
- var i = e[Symbol.toPrimitive];
2467
- if (void 0 !== i) {
2468
- var a = i.call(e, t || "default");
2469
- if ("object" !== n(a)) return a;
2470
- throw new TypeError("@@toPrimitive must return a primitive value.");
2471
- }
2472
- return ("string" === t ? String : Number)(e);
2473
- }(e, "string");
2474
- return "symbol" === n(t) ? t : String(t);
2475
- }(t)) in e ? Object.defineProperty(e, t, {
2476
- value: i,
2477
- enumerable: !0,
2478
- configurable: !0,
2479
- writable: !0
2480
- }) : e[t] = i, e;
2481
- }
2482
- Object.defineProperty(t, "__esModule", {
2483
- value: !0
2484
- }), t.keys = t.keyCode = void 0, t.toKey = function(e, t) {
2485
- return s[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase());
2486
- }, t.toKeyCode = function(e) {
2487
- return l[e];
2488
- };
2489
- var l = t.keyCode = function(e) {
2490
- for (var t = 1; t < arguments.length; t++) {
2491
- var n = null != arguments[t] ? arguments[t] : {};
2492
- t % 2 ? r(Object(n), !0).forEach((function(t) {
2493
- o(e, t, n[t]);
2494
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach((function(t) {
2495
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2496
- }));
2497
- }
2498
- return e;
2499
- }({
2500
- c: 67,
2501
- x: 88,
2502
- z: 90,
2503
- BACKSPACE_SAFARI: 127,
2504
- Enter: 13,
2505
- Meta_LEFT: 91,
2506
- Meta_RIGHT: 92,
2507
- Space: 32
2508
- }, {
2509
- Alt: 18,
2510
- AltGraph: 18,
2511
- ArrowDown: 40,
2512
- ArrowLeft: 37,
2513
- ArrowRight: 39,
2514
- ArrowUp: 38,
2515
- Backspace: 8,
2516
- CapsLock: 20,
2517
- Control: 17,
2518
- ContextMenu: 93,
2519
- Dead: 221,
2520
- Delete: 46,
2521
- End: 35,
2522
- Escape: 27,
2523
- F1: 112,
2524
- F2: 113,
2525
- F3: 114,
2526
- F4: 115,
2527
- F5: 116,
2528
- F6: 117,
2529
- F7: 118,
2530
- F8: 119,
2531
- F9: 120,
2532
- F10: 121,
2533
- F11: 122,
2534
- F12: 123,
2535
- Home: 36,
2536
- Insert: 45,
2537
- NumLock: 144,
2538
- PageDown: 34,
2539
- PageUp: 33,
2540
- Pause: 19,
2541
- PrintScreen: 44,
2542
- Process: 229,
2543
- Shift: 16,
2544
- ScrollLock: 145,
2545
- Tab: 9,
2546
- Unidentified: 229
2547
- }), s = Object.entries(l).reduce((function(e, t) {
2548
- var n = i(t, 2), a = n[0], r = n[1];
2549
- return e[r] = void 0 === e[r] ? a : e[r], e;
2550
- }), {});
2551
- t.keys = Object.entries(l).reduce((function(e, t) {
2552
- var n = i(t, 2), a = n[0];
2553
- n[1];
2554
- return e[a] = "Space" === a ? " " : a, e;
2555
- }), {});
2556
- },
2557
- 2391: function(e, t, n) {
2558
- Object.defineProperty(t, "__esModule", {
2559
- value: !0
2560
- }), t.analyseMask = function(e, t, n) {
2561
- var i, a, s, c, u, f, p = /(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g, d = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, h = !1, v = new o.default, m = [], g = [], y = !1;
2562
- function k(e, i, a) {
2563
- a = void 0 !== a ? a : e.matches.length;
2564
- var o = e.matches[a - 1];
2565
- if (t) {
2566
- if (0 === i.indexOf("[") || h && /\\d|\\s|\\w|\\p/i.test(i) || "." === i) {
2567
- var s = n.casing ? "i" : "";
2568
- /\\p\{.*}/i.test(i) && (s += "u"), e.matches.splice(a++, 0, {
2569
- fn: new RegExp(i, s),
2570
- static: !1,
2571
- optionality: !1,
2572
- newBlockMarker: void 0 === o ? "master" : o.def !== i,
2573
- casing: null,
2574
- def: i,
2575
- placeholder: "object" === l(n.placeholder) ? n.placeholder[v.matches.length] : void 0,
2576
- nativeDef: i
2577
- });
2578
- } else h && (i = i[i.length - 1]), i.split("").forEach((function(t, i) {
2579
- o = e.matches[a - 1], e.matches.splice(a++, 0, {
2580
- fn: /[a-z]/i.test(n.staticDefinitionSymbol || t) ? new RegExp("[" + (n.staticDefinitionSymbol || t) + "]", n.casing ? "i" : "") : null,
2581
- static: !0,
2582
- optionality: !1,
2583
- newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
2584
- casing: null,
2585
- def: n.staticDefinitionSymbol || t,
2586
- placeholder: void 0 !== n.staticDefinitionSymbol ? t : "object" === l(n.placeholder) ? n.placeholder[v.matches.length] : void 0,
2587
- nativeDef: (h ? "'" : "") + t
2588
- });
2589
- }));
2590
- h = !1;
2591
- } else {
2592
- var c = n.definitions && n.definitions[i] || n.usePrototypeDefinitions && r.default.prototype.definitions[i];
2593
- c && !h ? e.matches.splice(a++, 0, {
2594
- fn: c.validator ? "string" == typeof c.validator ? new RegExp(c.validator, n.casing ? "i" : "") : new function() {
2595
- this.test = c.validator;
2596
- } : /./,
2597
- static: c.static || !1,
2598
- optionality: c.optional || !1,
2599
- defOptionality: c.optional || !1,
2600
- newBlockMarker: void 0 === o || c.optional ? "master" : o.def !== (c.definitionSymbol || i),
2601
- casing: c.casing,
2602
- def: c.definitionSymbol || i,
2603
- placeholder: c.placeholder,
2604
- nativeDef: i,
2605
- generated: c.generated
2606
- }) : (e.matches.splice(a++, 0, {
2607
- fn: /[a-z]/i.test(n.staticDefinitionSymbol || i) ? new RegExp("[" + (n.staticDefinitionSymbol || i) + "]", n.casing ? "i" : "") : null,
2608
- static: !0,
2609
- optionality: !1,
2610
- newBlockMarker: void 0 === o ? "master" : o.def !== i && !0 !== o.static,
2611
- casing: null,
2612
- def: n.staticDefinitionSymbol || i,
2613
- placeholder: void 0 !== n.staticDefinitionSymbol ? i : void 0,
2614
- nativeDef: (h ? "'" : "") + i
2615
- }), h = !1);
2616
- }
2617
- }
2618
- function b() {
2619
- if (m.length > 0) {
2620
- if (k(c = m[m.length - 1], a), c.isAlternator) {
2621
- u = m.pop();
2622
- for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup && (u.matches[e].isGroup = !1);
2623
- m.length > 0 ? (c = m[m.length - 1]).matches.push(u) : v.matches.push(u);
2624
- }
2625
- } else k(v, a);
2626
- }
2627
- function x(e) {
2628
- var t = new o.default(!0);
2629
- return t.openGroup = !1, t.matches = e, t;
2630
- }
2631
- function w() {
2632
- if ((s = m.pop()).openGroup = !1, void 0 !== s) if (m.length > 0) {
2633
- if ((c = m[m.length - 1]).matches.push(s), c.isAlternator) {
2634
- u = m.pop();
2635
- for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup = !1, u.matches[e].alternatorGroup = !1;
2636
- m.length > 0 ? (c = m[m.length - 1]).matches.push(u) : v.matches.push(u);
2637
- }
2638
- } else v.matches.push(s); else b();
2639
- }
2640
- function P(e) {
2641
- var t = e.pop();
2642
- return t.isQuantifier && (t = x([ e.pop(), t ])), t;
2643
- }
2644
- t && (n.optionalmarker[0] = void 0, n.optionalmarker[1] = void 0);
2645
- for (;i = t ? d.exec(e) : p.exec(e); ) {
2646
- if (a = i[0], t) {
2647
- switch (a.charAt(0)) {
2648
- case "?":
2649
- a = "{0,1}";
2650
- break;
2651
-
2652
- case "+":
2653
- case "*":
2654
- a = "{" + a + "}";
2655
- break;
2656
-
2657
- case "|":
2658
- if (0 === m.length) {
2659
- var S = x(v.matches);
2660
- S.openGroup = !0, m.push(S), v.matches = [], y = !0;
2661
- }
2662
- }
2663
- switch (a) {
2664
- case "\\d":
2665
- a = "[0-9]";
2666
- break;
2667
-
2668
- case "\\p":
2669
- a += d.exec(e)[0], a += d.exec(e)[0];
2670
- }
2671
- }
2672
- if (h) b(); else switch (a.charAt(0)) {
2673
- case "$":
2674
- case "^":
2675
- t || b();
2676
- break;
2677
-
2678
- case n.escapeChar:
2679
- h = !0, t && b();
2680
- break;
2681
-
2682
- case n.optionalmarker[1]:
2683
- case n.groupmarker[1]:
2684
- w();
2685
- break;
2686
-
2687
- case n.optionalmarker[0]:
2688
- m.push(new o.default(!1, !0));
2689
- break;
2690
-
2691
- case n.groupmarker[0]:
2692
- m.push(new o.default(!0));
2693
- break;
2694
-
2695
- case n.quantifiermarker[0]:
2696
- var O = new o.default(!1, !1, !0), _ = (a = a.replace(/[{}?]/g, "")).split("|"), M = _[0].split(","), E = isNaN(M[0]) ? M[0] : parseInt(M[0]), j = 1 === M.length ? E : isNaN(M[1]) ? M[1] : parseInt(M[1]), T = isNaN(_[1]) ? _[1] : parseInt(_[1]);
2697
- "*" !== E && "+" !== E || (E = "*" === j ? 0 : 1), O.quantifier = {
2698
- min: E,
2699
- max: j,
2700
- jit: T
2701
- };
2702
- var A = m.length > 0 ? m[m.length - 1].matches : v.matches;
2703
- (i = A.pop()).isGroup || (i = x([ i ])), A.push(i), A.push(O);
2704
- break;
2705
-
2706
- case n.alternatormarker:
2707
- if (m.length > 0) {
2708
- var D = (c = m[m.length - 1]).matches[c.matches.length - 1];
2709
- f = c.openGroup && (void 0 === D.matches || !1 === D.isGroup && !1 === D.isAlternator) ? m.pop() : P(c.matches);
2710
- } else f = P(v.matches);
2711
- if (f.isAlternator) m.push(f); else if (f.alternatorGroup ? (u = m.pop(), f.alternatorGroup = !1) : u = new o.default(!1, !1, !1, !0),
2712
- u.matches.push(f), m.push(u), f.openGroup) {
2713
- f.openGroup = !1;
2714
- var L = new o.default(!0);
2715
- L.alternatorGroup = !0, m.push(L);
2716
- }
2717
- break;
2718
-
2719
- default:
2720
- b();
2721
- }
2722
- }
2723
- y && w();
2724
- for (;m.length > 0; ) s = m.pop(), v.matches.push(s);
2725
- v.matches.length > 0 && (!function e(i) {
2726
- i && i.matches && i.matches.forEach((function(a, r) {
2727
- var o = i.matches[r + 1];
2728
- (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && a && a.isGroup && (a.isGroup = !1,
2729
- t || (k(a, n.groupmarker[0], 0), !0 !== a.openGroup && k(a, n.groupmarker[1]))),
2730
- e(a);
2731
- }));
2732
- }(v), g.push(v));
2733
- (n.numericInput || n.isRTL) && function e(t) {
2734
- for (var i in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, i)) {
2735
- var a = parseInt(i);
2736
- if (t.matches[i].isQuantifier && t.matches[a + 1] && t.matches[a + 1].isGroup) {
2737
- var r = t.matches[i];
2738
- t.matches.splice(i, 1), t.matches.splice(a + 1, 0, r);
2739
- }
2740
- void 0 !== t.matches[i].matches ? t.matches[i] = e(t.matches[i]) : t.matches[i] = ((o = t.matches[i]) === n.optionalmarker[0] ? o = n.optionalmarker[1] : o === n.optionalmarker[1] ? o = n.optionalmarker[0] : o === n.groupmarker[0] ? o = n.groupmarker[1] : o === n.groupmarker[1] && (o = n.groupmarker[0]),
2741
- o);
2742
- }
2743
- var o;
2744
- return t;
2745
- }(g[0]);
2746
- return g;
2747
- }, t.generateMaskSet = function(e, t) {
2748
- var n;
2749
- function o(e, t) {
2750
- var n = t.repeat, i = t.groupmarker, r = t.quantifiermarker, o = t.keepStatic;
2751
- if (n > 0 || "*" === n || "+" === n) {
2752
- var l = "*" === n ? 0 : "+" === n ? 1 : n;
2753
- if (l != n) e = i[0] + e + i[1] + r[0] + l + "," + n + r[1]; else for (var c = e, u = 1; u < l; u++) e += c;
2754
- }
2755
- if (!0 === o) {
2756
- var f = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g"));
2757
- f && f.forEach((function(t, n) {
2758
- var i = function(e, t) {
2759
- return function(e) {
2760
- if (Array.isArray(e)) return e;
2761
- }(e) || function(e, t) {
2762
- var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2763
- if (null != n) {
2764
- var i, a, r, o, l = [], s = !0, c = !1;
2765
- try {
2766
- if (r = (n = n.call(e)).next, 0 === t) {
2767
- if (Object(n) !== n) return;
2768
- s = !1;
2769
- } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ;
2770
- } catch (e) {
2771
- c = !0, a = e;
2772
- } finally {
2773
- try {
2774
- if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return;
2775
- } finally {
2776
- if (c) throw a;
2777
- }
2778
- }
2779
- return l;
2780
- }
2781
- }(e, t) || function(e, t) {
2782
- if (!e) return;
2783
- if ("string" == typeof e) return s(e, t);
2784
- var n = Object.prototype.toString.call(e).slice(8, -1);
2785
- "Object" === n && e.constructor && (n = e.constructor.name);
2786
- if ("Map" === n || "Set" === n) return Array.from(e);
2787
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return s(e, t);
2788
- }(e, t) || function() {
2789
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2790
- }();
2791
- }(t.split("["), 2), r = i[0], o = i[1];
2792
- o = o.replace("]", ""), e = e.replace(new RegExp("".concat((0, a.default)(r), "\\[").concat((0,
2793
- a.default)(o), "\\]")), r.charAt(0) === o.charAt(0) ? "(".concat(r, "|").concat(r).concat(o, ")") : "".concat(r, "[").concat(o, "]"));
2794
- }));
2795
- }
2796
- return e;
2797
- }
2798
- function c(e, n, a) {
2799
- var s, c, u = !1;
2800
- return null !== e && "" !== e || ((u = null !== a.regex) ? e = (e = a.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (u = !0,
2801
- e = ".*")), 1 === e.length && !1 === a.greedy && 0 !== a.repeat && (a.placeholder = ""),
2802
- e = o(e, a), c = u ? "regex_" + a.regex : a.numericInput ? e.split("").reverse().join("") : e,
2803
- null !== a.keepStatic && (c = "ks_" + a.keepStatic + c), "object" === l(a.placeholder) && (c = "ph_" + JSON.stringify(a.placeholder) + c),
2804
- void 0 === r.default.prototype.masksCache[c] || !0 === t ? (s = {
2805
- mask: e,
2806
- maskToken: r.default.prototype.analyseMask(e, u, a),
2807
- validPositions: [],
2808
- _buffer: void 0,
2809
- buffer: void 0,
2810
- tests: {},
2811
- excludes: {},
2812
- metadata: n,
2813
- maskLength: void 0,
2814
- jitOffset: {}
2815
- }, !0 !== t && (r.default.prototype.masksCache[c] = s, s = i.default.extend(!0, {}, r.default.prototype.masksCache[c]))) : s = i.default.extend(!0, {}, r.default.prototype.masksCache[c]),
2816
- s;
2817
- }
2818
- "function" == typeof e.mask && (e.mask = e.mask(e));
2819
- if (Array.isArray(e.mask)) {
2820
- if (e.mask.length > 1) {
2821
- null === e.keepStatic && (e.keepStatic = !0);
2822
- var u = e.groupmarker[0];
2823
- return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) {
2824
- u.length > 1 && (u += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? u += t.mask : u += t;
2825
- })), c(u += e.groupmarker[1], e.mask, e);
2826
- }
2827
- e.mask = e.mask.pop();
2828
- }
2829
- n = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? c(e.mask.mask, e.mask, e) : c(e.mask, e.mask, e);
2830
- null === e.keepStatic && (e.keepStatic = !1);
2831
- return n;
2832
- };
2833
- var i = c(n(4963)), a = c(n(7184)), r = c(n(2394)), o = c(n(9695));
2834
- function l(e) {
2835
- return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2836
- return typeof e;
2837
- } : function(e) {
2838
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2839
- }, l(e);
2840
- }
2841
- function s(e, t) {
2842
- (null == t || t > e.length) && (t = e.length);
2843
- for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
2844
- return i;
2845
- }
2846
- function c(e) {
2847
- return e && e.__esModule ? e : {
2848
- default: e
2849
- };
2850
- }
2851
- },
2852
- 157: function(e, t, n) {
2853
- Object.defineProperty(t, "__esModule", {
2854
- value: !0
2855
- }), t.mask = function() {
2856
- var e = this, t = this.opts, n = this.el, c = this.dependencyLib;
2857
- r.EventRuler.off(n);
2858
- var u = function(t, n) {
2859
- var i = t.getAttribute("type"), a = "input" === t.tagName.toLowerCase() && n.supportsInputType.includes(i) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
2860
- if (!a) if ("input" === t.tagName.toLowerCase()) {
2861
- var s = document.createElement("input");
2862
- s.setAttribute("type", i), a = "text" === s.type, s = null;
2863
- } else a = "partial";
2864
- return !1 !== a ? function(t) {
2865
- var i, a;
2866
- function s() {
2867
- return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== l.getLastValidPosition.call(e) || !0 !== n.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && n.clearMaskOnLostFocus ? (e.isRTL ? o.clearOptionalTail.call(e, l.getBuffer.call(e).slice()).reverse() : o.clearOptionalTail.call(e, l.getBuffer.call(e).slice())).join("") : i.call(this) : "" : i.call(this);
2868
- }
2869
- function u(e) {
2870
- a.call(this, e), this.inputmask && (0, o.applyInputValue)(this, e);
2871
- }
2872
- if (!t.inputmask.__valueGet) {
2873
- if (!0 !== n.noValuePatching) {
2874
- if (Object.getOwnPropertyDescriptor) {
2875
- var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0;
2876
- f && f.get && f.set ? (i = f.get, a = f.set, Object.defineProperty(t, "value", {
2877
- get: s,
2878
- set: u,
2879
- configurable: !0
2880
- })) : "input" !== t.tagName.toLowerCase() && (i = function() {
2881
- return this.textContent;
2882
- }, a = function(e) {
2883
- this.textContent = e;
2884
- }, Object.defineProperty(t, "value", {
2885
- get: s,
2886
- set: u,
2887
- configurable: !0
2888
- }));
2889
- } else document.__lookupGetter__ && t.__lookupGetter__("value") && (i = t.__lookupGetter__("value"),
2890
- a = t.__lookupSetter__("value"), t.__defineGetter__("value", s), t.__defineSetter__("value", u));
2891
- t.inputmask.__valueGet = i, t.inputmask.__valueSet = a;
2892
- }
2893
- t.inputmask._valueGet = function(t) {
2894
- return e.isRTL && !0 !== t ? i.call(this.el).split("").reverse().join("") : i.call(this.el);
2895
- }, t.inputmask._valueSet = function(t, n) {
2896
- a.call(this.el, null == t ? "" : !0 !== n && e.isRTL ? t.split("").reverse().join("") : t);
2897
- }, void 0 === i && (i = function() {
2898
- return this.value;
2899
- }, a = function(e) {
2900
- this.value = e;
2901
- }, function(t) {
2902
- if (c.valHooks && (void 0 === c.valHooks[t] || !0 !== c.valHooks[t].inputmaskpatch)) {
2903
- var i = c.valHooks[t] && c.valHooks[t].get ? c.valHooks[t].get : function(e) {
2904
- return e.value;
2905
- }, a = c.valHooks[t] && c.valHooks[t].set ? c.valHooks[t].set : function(e, t) {
2906
- return e.value = t, e;
2907
- };
2908
- c.valHooks[t] = {
2909
- get: function(t) {
2910
- if (t.inputmask) {
2911
- if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue();
2912
- var a = i(t);
2913
- return -1 !== l.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== n.nullable ? a : "";
2914
- }
2915
- return i(t);
2916
- },
2917
- set: function(e, t) {
2918
- var n = a(e, t);
2919
- return e.inputmask && (0, o.applyInputValue)(e, t), n;
2920
- },
2921
- inputmaskpatch: !0
2922
- };
2923
- }
2924
- }(t.type), function(e) {
2925
- r.EventRuler.on(e, "mouseenter", (function() {
2926
- var e = this, t = e.inputmask._valueGet(!0);
2927
- t != (e.inputmask.isRTL ? l.getBuffer.call(e.inputmask).slice().reverse() : l.getBuffer.call(e.inputmask)).join("") && (0,
2928
- o.applyInputValue)(e, t);
2929
- }));
2930
- }(t));
2931
- }
2932
- }(t) : t.inputmask = void 0, a;
2933
- }(n, t);
2934
- if (!1 !== u) {
2935
- e.originalPlaceholder = n.placeholder, e.maxLength = void 0 !== n ? n.maxLength : void 0,
2936
- -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in n && null === n.getAttribute("inputmode") && (n.inputMode = t.inputmode,
2937
- n.setAttribute("inputmode", t.inputmode)), !0 === u && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(n.autocomplete),
2938
- i.iphone && (t.insertModeVisual = !1, n.setAttribute("autocorrect", "off")), r.EventRuler.on(n, "submit", a.EventHandlers.submitEvent),
2939
- r.EventRuler.on(n, "reset", a.EventHandlers.resetEvent), r.EventRuler.on(n, "blur", a.EventHandlers.blurEvent),
2940
- r.EventRuler.on(n, "focus", a.EventHandlers.focusEvent), r.EventRuler.on(n, "invalid", a.EventHandlers.invalidEvent),
2941
- r.EventRuler.on(n, "click", a.EventHandlers.clickEvent), r.EventRuler.on(n, "mouseleave", a.EventHandlers.mouseleaveEvent),
2942
- r.EventRuler.on(n, "mouseenter", a.EventHandlers.mouseenterEvent), r.EventRuler.on(n, "paste", a.EventHandlers.pasteEvent),
2943
- r.EventRuler.on(n, "cut", a.EventHandlers.cutEvent), r.EventRuler.on(n, "complete", t.oncomplete),
2944
- r.EventRuler.on(n, "incomplete", t.onincomplete), r.EventRuler.on(n, "cleared", t.oncleared),
2945
- !0 !== t.inputEventOnly && r.EventRuler.on(n, "keydown", a.EventHandlers.keyEvent),
2946
- (i.mobile || t.inputEventOnly) && n.removeAttribute("maxLength"), r.EventRuler.on(n, "input", a.EventHandlers.inputFallBackEvent)),
2947
- r.EventRuler.on(n, "setvalue", a.EventHandlers.setValueEvent), void 0 === e.applyMaskHook || e.applyMaskHook(),
2948
- l.getBufferTemplate.call(e).join(""), e.undoValue = e._valueGet(!0);
2949
- var f = (n.inputmask.shadowRoot || n.ownerDocument).activeElement;
2950
- if ("" !== n.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || f === n) {
2951
- (0, o.applyInputValue)(n, n.inputmask._valueGet(!0), t);
2952
- var p = l.getBuffer.call(e).slice();
2953
- !1 === s.isComplete.call(e, p) && t.clearIncomplete && l.resetMaskSet.call(e, !1),
2954
- t.clearMaskOnLostFocus && f !== n && (-1 === l.getLastValidPosition.call(e) ? p = [] : o.clearOptionalTail.call(e, p)),
2955
- (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && f === n || "" !== n.inputmask._valueGet(!0)) && (0,
2956
- o.writeBuffer)(n, p), f === n && l.caret.call(e, n, l.seekNext.call(e, l.getLastValidPosition.call(e)));
2957
- }
2958
- }
2959
- };
2960
- var i = n(9845), a = n(6030), r = n(9716), o = n(7760), l = n(8711), s = n(7215);
2961
- },
2962
- 9695: function(e, t) {
2963
- Object.defineProperty(t, "__esModule", {
2964
- value: !0
2965
- }), t.default = function(e, t, n, i) {
2966
- this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1,
2967
- this.isOptional = t || !1, this.isQuantifier = n || !1, this.isAlternator = i || !1,
2968
- this.quantifier = {
2969
- min: 1,
2970
- max: 1
2971
- };
2972
- };
2973
- },
2974
- 3194: function() {
2975
- Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
2976
- value: function(e, t) {
2977
- if (null == this) throw new TypeError('"this" is null or not defined');
2978
- var n = Object(this), i = n.length >>> 0;
2979
- if (0 === i) return !1;
2980
- for (var a = 0 | t, r = Math.max(a >= 0 ? a : i - Math.abs(a), 0); r < i; ) {
2981
- if (n[r] === e) return !0;
2982
- r++;
2983
- }
2984
- return !1;
2985
- }
2986
- });
2987
- },
2988
- 9302: function() {
2989
- var e = Function.bind.call(Function.call, Array.prototype.reduce), t = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable), n = Function.bind.call(Function.call, Array.prototype.concat), i = Object.keys;
2990
- Object.entries || (Object.entries = function(a) {
2991
- return e(i(a), (function(e, i) {
2992
- return n(e, "string" == typeof i && t(a, i) ? [ [ i, a[i] ] ] : []);
2993
- }), []);
2994
- });
2995
- },
2996
- 7149: function() {
2997
- function e(t) {
2998
- return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2999
- return typeof e;
3000
- } : function(e) {
3001
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3002
- }, e(t);
3003
- }
3004
- "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) {
3005
- return e.__proto__;
3006
- } : function(e) {
3007
- return e.constructor.prototype;
3008
- });
3009
- },
3010
- 4013: function() {
3011
- String.prototype.includes || (String.prototype.includes = function(e, t) {
3012
- return "number" != typeof t && (t = 0), !(t + e.length > this.length) && -1 !== this.indexOf(e, t);
3013
- });
3014
- },
3015
- 8711: function(e, t, n) {
3016
- Object.defineProperty(t, "__esModule", {
3017
- value: !0
3018
- }), t.caret = function(e, t, n, i, r) {
3019
- var o, l = this, s = this.opts;
3020
- if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart,
3021
- n = e.selectionEnd) : a.default.getSelection ? (o = a.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && o.commonAncestorContainer !== e || (t = o.startOffset,
3022
- n = o.endOffset) : document.selection && document.selection.createRange && (n = (t = 0 - (o = document.selection.createRange()).duplicate().moveStart("character", -e.inputmask._valueGet().length)) + o.text.length),
3023
- {
3024
- begin: i ? t : f.call(l, t),
3025
- end: i ? n : f.call(l, n)
3026
- };
3027
- if (Array.isArray(t) && (n = l.isRTL ? t[0] : t[1], t = l.isRTL ? t[1] : t[0]),
3028
- void 0 !== t.begin && (n = l.isRTL ? t.begin : t.end, t = l.isRTL ? t.end : t.begin),
3029
- "number" == typeof t) {
3030
- t = i ? t : f.call(l, t), n = "number" == typeof (n = i ? n : f.call(l, n)) ? n : t;
3031
- var c = parseInt(((e.ownerDocument.defaultView || a.default).getComputedStyle ? (e.ownerDocument.defaultView || a.default).getComputedStyle(e, null) : e.currentStyle).fontSize) * n;
3032
- if (e.scrollLeft = c > e.scrollWidth ? c : 0, e.inputmask.caretPos = {
3033
- begin: t,
3034
- end: n
3035
- }, s.insertModeVisual && !1 === s.insertMode && t === n && (r || n++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) {
3036
- if ("setSelectionRange" in e) e.setSelectionRange(t, n); else if (a.default.getSelection) {
3037
- if (o = document.createRange(), void 0 === e.firstChild || null === e.firstChild) {
3038
- var u = document.createTextNode("");
3039
- e.appendChild(u);
3040
- }
3041
- o.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length),
3042
- o.setEnd(e.firstChild, n < e.inputmask._valueGet().length ? n : e.inputmask._valueGet().length),
3043
- o.collapse(!0);
3044
- var p = a.default.getSelection();
3045
- p.removeAllRanges(), p.addRange(o);
3046
- } else e.createTextRange && ((o = e.createTextRange()).collapse(!0), o.moveEnd("character", n),
3047
- o.moveStart("character", t), o.select());
3048
- void 0 === e.inputmask.caretHook || e.inputmask.caretHook.call(l, {
3049
- begin: t,
3050
- end: n
3051
- });
3052
- }
3053
- }
3054
- }, t.determineLastRequiredPosition = function(e) {
3055
- var t, n, i = this, a = i.maskset, l = i.dependencyLib, c = s.call(i), u = {}, f = a.validPositions[c], p = o.getMaskTemplate.call(i, !0, s.call(i), !0, !0), d = p.length, h = void 0 !== f ? f.locator.slice() : void 0;
3056
- for (t = c + 1; t < p.length; t++) h = (n = o.getTestTemplate.call(i, t, h, t - 1)).locator.slice(),
3057
- u[t] = l.extend(!0, {}, n);
3058
- var v = f && void 0 !== f.alternation ? f.locator[f.alternation] : void 0;
3059
- for (t = d - 1; t > c && (((n = u[t]).match.optionality || n.match.optionalQuantifier && n.match.newBlockMarker || v && (v !== u[t].locator[f.alternation] && !0 !== n.match.static || !0 === n.match.static && n.locator[f.alternation] && r.checkAlternationMatch.call(i, n.locator[f.alternation].toString().split(","), v.toString().split(",")) && "" !== o.getTests.call(i, t)[0].def)) && p[t] === o.getPlaceholder.call(i, t, n.match)); t--) d--;
3060
- return e ? {
3061
- l: d,
3062
- def: u[d] ? u[d].match : void 0
3063
- } : d;
3064
- }, t.determineNewCaretPosition = function(e, t, n) {
3065
- var i, a, r, f = this, p = f.maskset, d = f.opts;
3066
- t && (f.isRTL ? e.end = e.begin : e.begin = e.end);
3067
- if (e.begin === e.end) {
3068
- switch (n = n || d.positionCaretOnClick) {
3069
- case "none":
3070
- break;
3071
-
3072
- case "select":
3073
- e = {
3074
- begin: 0,
3075
- end: l.call(f).length
3076
- };
3077
- break;
3078
-
3079
- case "ignore":
3080
- e.end = e.begin = u.call(f, s.call(f));
3081
- break;
3082
-
3083
- case "radixFocus":
3084
- if (f.clicked > 1 && 0 === p.validPositions.length) break;
3085
- if (function(e) {
3086
- if ("" !== d.radixPoint && 0 !== d.digits) {
3087
- var t = p.validPositions;
3088
- if (void 0 === t[e] || void 0 === t[e].input) {
3089
- if (e < u.call(f, -1)) return !0;
3090
- var n = l.call(f).indexOf(d.radixPoint);
3091
- if (-1 !== n) {
3092
- for (var i = 0, a = t.length; i < a; i++) if (t[i] && n < i && t[i].input !== o.getPlaceholder.call(f, i)) return !1;
3093
- return !0;
3094
- }
3095
- }
3096
- }
3097
- return !1;
3098
- }(e.begin)) {
3099
- var h = l.call(f).join("").indexOf(d.radixPoint);
3100
- e.end = e.begin = d.numericInput ? u.call(f, h) : h;
3101
- break;
3102
- }
3103
-
3104
- default:
3105
- if (i = e.begin, a = s.call(f, i, !0), i <= (r = u.call(f, -1 !== a || c.call(f, 0) ? a : -1))) e.end = e.begin = c.call(f, i, !1, !0) ? i : u.call(f, i); else {
3106
- var v = p.validPositions[a], m = o.getTestTemplate.call(f, r, v ? v.match.locator : void 0, v), g = o.getPlaceholder.call(f, r, m.match);
3107
- if ("" !== g && l.call(f)[r] !== g && !0 !== m.match.optionalQuantifier && !0 !== m.match.newBlockMarker || !c.call(f, r, d.keepStatic, !0) && m.match.def === g) {
3108
- var y = u.call(f, r);
3109
- (i >= y || i === r) && (r = y);
3110
- }
3111
- e.end = e.begin = r;
3112
- }
3113
- }
3114
- return e;
3115
- }
3116
- }, t.getBuffer = l, t.getBufferTemplate = function() {
3117
- var e = this.maskset;
3118
- void 0 === e._buffer && (e._buffer = o.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice()));
3119
- return e._buffer;
3120
- }, t.getLastValidPosition = s, t.isMask = c, t.resetMaskSet = function(e) {
3121
- var t = this.maskset;
3122
- t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0);
3123
- !1 === e && (t.tests = {}, t.jitOffset = {});
3124
- }, t.seekNext = u, t.seekPrevious = function(e, t) {
3125
- var n = this, i = e - 1;
3126
- if (e <= 0) return 0;
3127
- for (;i > 0 && (!0 === t && (!0 !== o.getTest.call(n, i).match.newBlockMarker || !c.call(n, i, void 0, !0)) || !0 !== t && !c.call(n, i, void 0, !0)); ) i--;
3128
- return i;
3129
- }, t.translatePosition = f;
3130
- var i, a = (i = n(9380)) && i.__esModule ? i : {
3131
- default: i
3132
- }, r = n(7215), o = n(4713);
3133
- function l(e) {
3134
- var t = this, n = t.maskset;
3135
- return void 0 !== n.buffer && !0 !== e || (n.buffer = o.getMaskTemplate.call(t, !0, s.call(t), !0),
3136
- void 0 === n._buffer && (n._buffer = n.buffer.slice())), n.buffer;
3137
- }
3138
- function s(e, t, n) {
3139
- var i = this.maskset, a = -1, r = -1, o = n || i.validPositions;
3140
- void 0 === e && (e = -1);
3141
- for (var l = 0, s = o.length; l < s; l++) o[l] && (t || !0 !== o[l].generatedInput) && (l <= e && (a = l),
3142
- l >= e && (r = l));
3143
- return -1 === a || a === e ? r : -1 === r || e - a < r - e ? a : r;
3144
- }
3145
- function c(e, t, n) {
3146
- var i = this, a = this.maskset, r = o.getTestTemplate.call(i, e).match;
3147
- if ("" === r.def && (r = o.getTest.call(i, e).match), !0 !== r.static) return r.fn;
3148
- if (!0 === n && void 0 !== a.validPositions[e] && !0 !== a.validPositions[e].generatedInput) return !0;
3149
- if (!0 !== t && e > -1) {
3150
- if (n) {
3151
- var l = o.getTests.call(i, e);
3152
- return l.length > 1 + ("" === l[l.length - 1].match.def ? 1 : 0);
3153
- }
3154
- var s = o.determineTestTemplate.call(i, e, o.getTests.call(i, e)), c = o.getPlaceholder.call(i, e, s.match);
3155
- return s.match.def !== c;
3156
- }
3157
- return !1;
3158
- }
3159
- function u(e, t, n) {
3160
- var i = this;
3161
- void 0 === n && (n = !0);
3162
- for (var a = e + 1; "" !== o.getTest.call(i, a).match.def && (!0 === t && (!0 !== o.getTest.call(i, a).match.newBlockMarker || !c.call(i, a, void 0, !0)) || !0 !== t && !c.call(i, a, void 0, n)); ) a++;
3163
- return a;
3164
- }
3165
- function f(e) {
3166
- var t = this.opts, n = this.el;
3167
- return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !n || (e = this._valueGet().length - e) < 0 && (e = 0),
3168
- e;
3169
- }
3170
- },
3171
- 4713: function(e, t, n) {
3172
- Object.defineProperty(t, "__esModule", {
3173
- value: !0
3174
- }), t.determineTestTemplate = f, t.getDecisionTaker = s, t.getMaskTemplate = function(e, t, n, i, a) {
3175
- var r = this, o = this.opts, l = this.maskset, s = o.greedy;
3176
- a && o.greedy && (o.greedy = !1, r.maskset.tests = {});
3177
- t = t || 0;
3178
- var p, d, v, m, g = [], y = 0;
3179
- do {
3180
- if (!0 === e && l.validPositions[y]) d = (v = a && l.validPositions[y].match.optionality && void 0 === l.validPositions[y + 1] && (!0 === l.validPositions[y].generatedInput || l.validPositions[y].input == o.skipOptionalPartCharacter && y > 0) ? f.call(r, y, h.call(r, y, p, y - 1)) : l.validPositions[y]).match,
3181
- p = v.locator.slice(), g.push(!0 === n ? v.input : !1 === n ? d.nativeDef : c.call(r, y, d)); else {
3182
- d = (v = u.call(r, y, p, y - 1)).match, p = v.locator.slice();
3183
- var k = !0 !== i && (!1 !== o.jitMasking ? o.jitMasking : d.jit);
3184
- (m = (m || l.validPositions[y - 1]) && d.static && d.def !== o.groupSeparator && null === d.fn) || !1 === k || void 0 === k || "number" == typeof k && isFinite(k) && k > y ? g.push(!1 === n ? d.nativeDef : c.call(r, g.length, d)) : m = !1;
3185
- }
3186
- y++;
3187
- } while (!0 !== d.static || "" !== d.def || t > y);
3188
- "" === g[g.length - 1] && g.pop();
3189
- !1 === n && void 0 !== l.maskLength || (l.maskLength = y - 1);
3190
- return o.greedy = s, g;
3191
- }, t.getPlaceholder = c, t.getTest = p, t.getTestTemplate = u, t.getTests = h, t.isSubsetOf = d;
3192
- var i, a = (i = n(2394)) && i.__esModule ? i : {
3193
- default: i
3194
- }, r = n(8711);
3195
- function o(e) {
3196
- return o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3197
- return typeof e;
3198
- } : function(e) {
3199
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3200
- }, o(e);
3201
- }
3202
- function l(e, t) {
3203
- var n = (null != e.alternation ? e.mloc[s(e)] : e.locator).join("");
3204
- if ("" !== n) for (n = n.split(":")[0]; n.length < t; ) n += "0";
3205
- return n;
3206
- }
3207
- function s(e) {
3208
- var t = e.locator[e.alternation];
3209
- return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
3210
- }
3211
- function c(e, t, n) {
3212
- var i = this, a = this.opts, l = this.maskset;
3213
- if (void 0 !== (t = t || p.call(i, e).match).placeholder || !0 === n) {
3214
- if ("" !== t.placeholder && !0 === t.static && !0 !== t.generated) {
3215
- var s = r.getLastValidPosition.call(i, e), c = r.seekNext.call(i, s);
3216
- return (n ? e <= c : e < c) ? a.staticDefinitionSymbol && t.static ? t.nativeDef : t.def : "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
3217
- }
3218
- return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
3219
- }
3220
- if (!0 === t.static) {
3221
- if (e > -1 && void 0 === l.validPositions[e]) {
3222
- var u, f = h.call(i, e), d = [];
3223
- if ("string" == typeof a.placeholder && f.length > 1 + ("" === f[f.length - 1].match.def ? 1 : 0)) for (var v = 0; v < f.length; v++) if ("" !== f[v].match.def && !0 !== f[v].match.optionality && !0 !== f[v].match.optionalQuantifier && (!0 === f[v].match.static || void 0 === u || !1 !== f[v].match.fn.test(u.match.def, l, e, !0, a)) && (d.push(f[v]),
3224
- !0 === f[v].match.static && (u = f[v]), d.length > 1 && /[0-9a-bA-Z]/.test(d[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
3225
- }
3226
- return t.def;
3227
- }
3228
- return "object" === o(a.placeholder) ? t.def : a.placeholder.charAt(e % a.placeholder.length);
3229
- }
3230
- function u(e, t, n) {
3231
- return this.maskset.validPositions[e] || f.call(this, e, h.call(this, e, t ? t.slice() : t, n));
3232
- }
3233
- function f(e, t) {
3234
- var n = this.opts, i = 0, a = function(e, t) {
3235
- var n = 0, i = !1;
3236
- t.forEach((function(e) {
3237
- e.match.optionality && (0 !== n && n !== e.match.optionality && (i = !0), (0 === n || n > e.match.optionality) && (n = e.match.optionality));
3238
- })), n && (0 == e || 1 == t.length ? n = 0 : i || (n = 0));
3239
- return n;
3240
- }(e, t);
3241
- e = e > 0 ? e - 1 : 0;
3242
- var r, o, s, c = l(p.call(this, e));
3243
- n.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (i = 1);
3244
- for (var u = 0; u < t.length - i; u++) {
3245
- var f = t[u];
3246
- r = l(f, c.length);
3247
- var d = Math.abs(r - c);
3248
- (!0 !== f.unMatchedAlternationStopped || t.filter((function(e) {
3249
- return !0 !== e.unMatchedAlternationStopped;
3250
- })).length <= 1) && (void 0 === o || "" !== r && d < o || s && !n.greedy && s.match.optionality && s.match.optionality - a > 0 && "master" === s.match.newBlockMarker && (!f.match.optionality || f.match.optionality - a < 1 || !f.match.newBlockMarker) || s && !n.greedy && s.match.optionalQuantifier && !f.match.optionalQuantifier) && (o = d,
3251
- s = f);
3252
- }
3253
- return s;
3254
- }
3255
- function p(e, t) {
3256
- var n = this.maskset;
3257
- return n.validPositions[e] ? n.validPositions[e] : (t || h.call(this, e))[0];
3258
- }
3259
- function d(e, t, n) {
3260
- function i(e) {
3261
- for (var t, n = [], i = -1, a = 0, r = e.length; a < r; a++) if ("-" === e.charAt(a)) for (t = e.charCodeAt(a + 1); ++i < t; ) n.push(String.fromCharCode(i)); else i = e.charCodeAt(a),
3262
- n.push(e.charAt(a));
3263
- return n.join("");
3264
- }
3265
- return e.match.def === t.match.nativeDef || !(!(n.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && ("." === t.match.fn.source || -1 !== i(t.match.fn.source.replace(/[[\]/]/g, "")).indexOf(i(e.match.fn.source.replace(/[[\]/]/g, ""))));
3266
- }
3267
- function h(e, t, n) {
3268
- var i, r, o = this, l = this.dependencyLib, s = this.maskset, c = this.opts, u = this.el, p = s.maskToken, h = t ? n : 0, v = t ? t.slice() : [ 0 ], m = [], g = !1, y = t ? t.join("") : "", k = !1;
3269
- function b(t, n, r, l) {
3270
- function f(r, l, p) {
3271
- function v(e, t) {
3272
- var n = 0 === t.matches.indexOf(e);
3273
- return n || t.matches.every((function(i, a) {
3274
- return !0 === i.isQuantifier ? n = v(e, t.matches[a - 1]) : Object.prototype.hasOwnProperty.call(i, "matches") && (n = v(e, i)),
3275
- !n;
3276
- })), n;
3277
- }
3278
- function w(e, t, n) {
3279
- var i, a;
3280
- if ((s.tests[e] || s.validPositions[e]) && (s.validPositions[e] ? [ s.validPositions[e] ] : s.tests[e]).every((function(e, r) {
3281
- if (e.mloc[t]) return i = e, !1;
3282
- var o = void 0 !== n ? n : e.alternation, l = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1;
3283
- return (void 0 === a || l < a) && -1 !== l && (i = e, a = l), !0;
3284
- })), i) {
3285
- var r = i.locator[i.alternation], o = i.mloc[t] || i.mloc[r] || i.locator;
3286
- if (-1 !== o[o.length - 1].toString().indexOf(":")) o.pop();
3287
- return o.slice((void 0 !== n ? n : i.alternation) + 1);
3288
- }
3289
- return void 0 !== n ? w(e, t) : void 0;
3290
- }
3291
- function P(t, n) {
3292
- return !0 === t.match.static && !0 !== n.match.static && n.match.fn.test(t.match.def, s, e, !1, c, !1);
3293
- }
3294
- function S(e, t) {
3295
- var n = e.alternation, i = void 0 === t || n <= t.alternation && -1 === e.locator[n].toString().indexOf(t.locator[n]);
3296
- if (!i && n > t.alternation) for (var a = 0; a < n; a++) if (e.locator[a] !== t.locator[a]) {
3297
- n = a, i = !0;
3298
- break;
3299
- }
3300
- return !!i && function(n) {
3301
- e.mloc = e.mloc || {};
3302
- var i = e.locator[n];
3303
- if (void 0 !== i) {
3304
- if ("string" == typeof i && (i = i.split(",")[0]), void 0 === e.mloc[i] && (e.mloc[i] = e.locator.slice(),
3305
- e.mloc[i].push(":".concat(e.alternation))), void 0 !== t) {
3306
- for (var a in t.mloc) "string" == typeof a && (a = parseInt(a.split(",")[0])), e.mloc[a + 0] = t.mloc[a];
3307
- e.locator[n] = Object.keys(e.mloc).join(",");
3308
- }
3309
- return e.alternation > n && (e.alternation = n), !0;
3310
- }
3311
- return e.alternation = void 0, !1;
3312
- }(n);
3313
- }
3314
- function O(e, t) {
3315
- if (e.locator.length !== t.locator.length) return !1;
3316
- for (var n = e.alternation + 1; n < e.locator.length; n++) if (e.locator[n] !== t.locator[n]) return !1;
3317
- return !0;
3318
- }
3319
- if (h > e + c._maxTestPos) throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(s.mask));
3320
- if (h === e && void 0 === r.matches) {
3321
- if (m.push({
3322
- match: r,
3323
- locator: l.reverse(),
3324
- cd: y,
3325
- mloc: {}
3326
- }), !r.optionality || void 0 !== p || !(c.definitions && c.definitions[r.nativeDef] && c.definitions[r.nativeDef].optional || a.default.prototype.definitions[r.nativeDef] && a.default.prototype.definitions[r.nativeDef].optional)) return !0;
3327
- g = !0, h = e;
3328
- } else if (void 0 !== r.matches) {
3329
- if (r.isGroup && p !== r) return function() {
3330
- if (r = f(t.matches[t.matches.indexOf(r) + 1], l, p)) return !0;
3331
- }();
3332
- if (r.isOptional) return function() {
3333
- var t = r, a = m.length;
3334
- if (r = b(r, n, l, p), m.length > 0) {
3335
- if (m.forEach((function(e, t) {
3336
- t >= a && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1);
3337
- })), i = m[m.length - 1].match, void 0 !== p || !v(i, t)) return r;
3338
- g = !0, h = e;
3339
- }
3340
- }();
3341
- if (r.isAlternator) return function() {
3342
- function i(e) {
3343
- for (var t, n = e.matches[0].matches ? e.matches[0].matches.length : 1, i = 0; i < e.matches.length && n === (t = e.matches[i].matches ? e.matches[i].matches.length : 1); i++) ;
3344
- return n !== t;
3345
- }
3346
- o.hasAlternator = !0;
3347
- var a, v = r, y = [], b = m.slice(), x = l.length, _ = n.length > 0 ? n.shift() : -1;
3348
- if (-1 === _ || "string" == typeof _) {
3349
- var M, E = h, j = n.slice(), T = [];
3350
- if ("string" == typeof _) T = _.split(","); else for (M = 0; M < v.matches.length; M++) T.push(M.toString());
3351
- if (void 0 !== s.excludes[e]) {
3352
- for (var A = T.slice(), D = 0, L = s.excludes[e].length; D < L; D++) {
3353
- var C = s.excludes[e][D].toString().split(":");
3354
- l.length == C[1] && T.splice(T.indexOf(C[0]), 1);
3355
- }
3356
- 0 === T.length && (delete s.excludes[e], T = A);
3357
- }
3358
- (!0 === c.keepStatic || isFinite(parseInt(c.keepStatic)) && E >= c.keepStatic) && (T = T.slice(0, 1));
3359
- for (var B = 0; B < T.length; B++) {
3360
- M = parseInt(T[B]), m = [], n = "string" == typeof _ && w(h, M, x) || j.slice();
3361
- var I = v.matches[M];
3362
- if (I && f(I, [ M ].concat(l), p)) r = !0; else if (0 === B && (k = i(v)), I && I.matches && I.matches.length > v.matches[0].matches.length) break;
3363
- a = m.slice(), h = E, m = [];
3364
- for (var R = 0; R < a.length; R++) {
3365
- var F = a[R], N = !1;
3366
- F.alternation = F.alternation || x, S(F);
3367
- for (var V = 0; V < y.length; V++) {
3368
- var G = y[V];
3369
- if ("string" != typeof _ || void 0 !== F.alternation && T.includes(F.locator[F.alternation].toString())) {
3370
- if (F.match.nativeDef === G.match.nativeDef) {
3371
- N = !0, S(G, F);
3372
- break;
3373
- }
3374
- if (d(F, G, c)) {
3375
- S(F, G) && (N = !0, y.splice(y.indexOf(G), 0, F));
3376
- break;
3377
- }
3378
- if (d(G, F, c)) {
3379
- S(G, F);
3380
- break;
3381
- }
3382
- if (P(F, G)) {
3383
- O(F, G) || void 0 !== u.inputmask.userOptions.keepStatic ? S(F, G) && (N = !0, y.splice(y.indexOf(G), 0, F)) : c.keepStatic = !0;
3384
- break;
3385
- }
3386
- if (P(G, F)) {
3387
- S(G, F);
3388
- break;
3389
- }
3390
- }
3391
- }
3392
- N || y.push(F);
3393
- }
3394
- }
3395
- m = b.concat(y), h = e, g = m.length > 0 && k, r = y.length > 0 && !k, k && g && !r && m.forEach((function(e, t) {
3396
- e.unMatchedAlternationStopped = !0;
3397
- })), n = j.slice();
3398
- } else r = f(v.matches[_] || t.matches[_], [ _ ].concat(l), p);
3399
- if (r) return !0;
3400
- }();
3401
- if (r.isQuantifier && p !== t.matches[t.matches.indexOf(r) - 1]) return function() {
3402
- for (var a = r, o = !1, u = n.length > 0 ? n.shift() : 0; u < (isNaN(a.quantifier.max) ? u + 1 : a.quantifier.max) && h <= e; u++) {
3403
- var p = t.matches[t.matches.indexOf(a) - 1];
3404
- if (r = f(p, [ u ].concat(l), p)) {
3405
- if (m.forEach((function(t, n) {
3406
- (i = x(p, t.match) ? t.match : m[m.length - 1].match).optionalQuantifier = u >= a.quantifier.min,
3407
- i.jit = (u + 1) * (p.matches.indexOf(i) + 1) > a.quantifier.jit, i.optionalQuantifier && v(i, p) && (g = !0,
3408
- h = e, c.greedy && null == s.validPositions[e - 1] && u > a.quantifier.min && -1 != [ "*", "+" ].indexOf(a.quantifier.max) && (m.pop(),
3409
- y = void 0), o = !0, r = !1), !o && i.jit && (s.jitOffset[e] = p.matches.length - p.matches.indexOf(i));
3410
- })), o) break;
3411
- return !0;
3412
- }
3413
- }
3414
- }();
3415
- if (r = b(r, n, l, p)) return !0;
3416
- } else h++;
3417
- }
3418
- for (var p = n.length > 0 ? n.shift() : 0; p < t.matches.length; p++) if (!0 !== t.matches[p].isQuantifier) {
3419
- var v = f(t.matches[p], [ p ].concat(r), l);
3420
- if (v && h === e) return v;
3421
- if (h > e) break;
3422
- }
3423
- }
3424
- function x(e, t) {
3425
- var n = -1 != e.matches.indexOf(t);
3426
- return n || e.matches.forEach((function(e, i) {
3427
- void 0 === e.matches || n || (n = x(e, t));
3428
- })), n;
3429
- }
3430
- if (e > -1) {
3431
- if (void 0 === t) {
3432
- for (var w, P = e - 1; void 0 === (w = s.validPositions[P] || s.tests[P]) && P > -1; ) P--;
3433
- void 0 !== w && P > -1 && (v = function(e, t) {
3434
- var n, i = [];
3435
- return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === c.keepStatic ? 0 === (i = f.call(o, e, t.slice()).locator.slice()).length && (i = t[0].locator.slice()) : t.forEach((function(e) {
3436
- "" !== e.def && (0 === i.length ? (n = e.alternation, i = e.locator.slice()) : e.locator[n] && -1 === i[n].toString().indexOf(e.locator[n]) && (i[n] += "," + e.locator[n]));
3437
- }))), i;
3438
- }(P, w), y = v.join(""), h = P);
3439
- }
3440
- if (s.tests[e] && s.tests[e][0].cd === y) return s.tests[e];
3441
- for (var S = v.shift(); S < p.length; S++) {
3442
- if (b(p[S], v, [ S ]) && h === e || h > e) break;
3443
- }
3444
- }
3445
- return (0 === m.length || g) && m.push({
3446
- match: {
3447
- fn: null,
3448
- static: !0,
3449
- optionality: !1,
3450
- casing: null,
3451
- def: "",
3452
- placeholder: ""
3453
- },
3454
- locator: k && 0 === m.filter((function(e) {
3455
- return !0 !== e.unMatchedAlternationStopped;
3456
- })).length ? [ 0 ] : [],
3457
- mloc: {},
3458
- cd: y
3459
- }), void 0 !== t && s.tests[e] ? r = l.extend(!0, [], m) : (s.tests[e] = l.extend(!0, [], m),
3460
- r = s.tests[e]), m.forEach((function(e) {
3461
- e.match.optionality = e.match.defOptionality || !1;
3462
- })), r;
3463
- }
3464
- },
3465
- 7215: function(e, t, n) {
3466
- Object.defineProperty(t, "__esModule", {
3467
- value: !0
3468
- }), t.alternate = l, t.checkAlternationMatch = function(e, t, n) {
3469
- for (var i, a = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== n ? n.split(",") : [], l = 0; l < o.length; l++) -1 !== (i = e.indexOf(o[l])) && e.splice(i, 1);
3470
- for (var s = 0; s < e.length; s++) if (a.includes(e[s])) {
3471
- r = !0;
3472
- break;
3473
- }
3474
- return r;
3475
- }, t.handleRemove = function(e, t, n, i, s) {
3476
- var c = this, u = this.maskset, f = this.opts;
3477
- if ((f.numericInput || c.isRTL) && (t === a.keys.Backspace ? t = a.keys.Delete : t === a.keys.Delete && (t = a.keys.Backspace),
3478
- c.isRTL)) {
3479
- var p = n.end;
3480
- n.end = n.begin, n.begin = p;
3481
- }
3482
- var d, h = r.getLastValidPosition.call(c, void 0, !0);
3483
- n.end >= r.getBuffer.call(c).length && h >= n.end && (n.end = h + 1);
3484
- t === a.keys.Backspace ? n.end - n.begin < 1 && (n.begin = r.seekPrevious.call(c, n.begin)) : t === a.keys.Delete && n.begin === n.end && (n.end = r.isMask.call(c, n.end, !0, !0) ? n.end + 1 : r.seekNext.call(c, n.end) + 1);
3485
- !1 !== (d = v.call(c, n)) && ((!0 !== i && !1 !== f.keepStatic || null !== f.regex && -1 !== o.getTest.call(c, n.begin).match.def.indexOf("|")) && l.call(c, !0),
3486
- !0 !== i && (u.p = t === a.keys.Delete ? n.begin + d : n.begin, u.p = r.determineNewCaretPosition.call(c, {
3487
- begin: u.p,
3488
- end: u.p
3489
- }, !1, !1 === f.insertMode && t === a.keys.Backspace ? "none" : void 0).begin));
3490
- }, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = d,
3491
- t.revalidateMask = v;
3492
- var i = n(6030), a = n(2839), r = n(8711), o = n(4713);
3493
- function l(e, t, n, i, a, s) {
3494
- var c = this, u = this.dependencyLib, p = this.opts, d = c.maskset;
3495
- if (!c.hasAlternator) return !1;
3496
- var h, v, m, g, y, k, b, x, w, P, S, O = u.extend(!0, [], d.validPositions), _ = u.extend(!0, {}, d.tests), M = !1, E = !1, j = void 0 !== a ? a : r.getLastValidPosition.call(c);
3497
- if (s && (P = s.begin, S = s.end, s.begin > s.end && (P = s.end, S = s.begin)),
3498
- -1 === j && void 0 === a) h = 0, v = (g = o.getTest.call(c, h)).alternation; else for (;j >= 0; j--) if ((m = d.validPositions[j]) && void 0 !== m.alternation) {
3499
- if (j <= (e || 0) && g && g.locator[m.alternation] !== m.locator[m.alternation]) break;
3500
- h = j, v = d.validPositions[h].alternation, g = m;
3501
- }
3502
- if (void 0 !== v) {
3503
- b = parseInt(h), d.excludes[b] = d.excludes[b] || [], !0 !== e && d.excludes[b].push((0,
3504
- o.getDecisionTaker)(g) + ":" + g.alternation);
3505
- var T = [], A = -1;
3506
- for (y = b; b < r.getLastValidPosition.call(c, void 0, !0) + 1; y++) -1 === A && e <= y && void 0 !== t && (T.push(t),
3507
- A = T.length - 1), (k = d.validPositions[b]) && !0 !== k.generatedInput && (void 0 === s || y < P || y >= S) && T.push(k.input),
3508
- d.validPositions.splice(b, 1);
3509
- for (-1 === A && void 0 !== t && (T.push(t), A = T.length - 1); void 0 !== d.excludes[b] && d.excludes[b].length < 10; ) {
3510
- for (d.tests = {}, r.resetMaskSet.call(c, !0), M = !0, y = 0; y < T.length && (x = M.caret || 0 == p.insertMode && null != x ? r.seekNext.call(c, x) : r.getLastValidPosition.call(c, void 0, !0) + 1,
3511
- w = T[y], M = f.call(c, x, w, !1, i, !0)); y++) y === A && (E = M), 1 == e && M && (E = {
3512
- caretPos: y
3513
- });
3514
- if (M) break;
3515
- if (r.resetMaskSet.call(c), g = o.getTest.call(c, b), d.validPositions = u.extend(!0, [], O),
3516
- d.tests = u.extend(!0, {}, _), !d.excludes[b]) {
3517
- E = l.call(c, e, t, n, i, b - 1, s);
3518
- break;
3519
- }
3520
- if (null != g.alternation) {
3521
- var D = (0, o.getDecisionTaker)(g);
3522
- if (-1 !== d.excludes[b].indexOf(D + ":" + g.alternation)) {
3523
- E = l.call(c, e, t, n, i, b - 1, s);
3524
- break;
3525
- }
3526
- for (d.excludes[b].push(D + ":" + g.alternation), y = b; y < r.getLastValidPosition.call(c, void 0, !0) + 1; y++) d.validPositions.splice(b);
3527
- } else delete d.excludes[b];
3528
- }
3529
- }
3530
- return E && !1 === p.keepStatic || delete d.excludes[b], E;
3531
- }
3532
- function s(e, t, n) {
3533
- var i = this.opts, r = this.maskset;
3534
- switch (i.casing || t.casing) {
3535
- case "upper":
3536
- e = e.toUpperCase();
3537
- break;
3538
-
3539
- case "lower":
3540
- e = e.toLowerCase();
3541
- break;
3542
-
3543
- case "title":
3544
- var o = r.validPositions[n - 1];
3545
- e = 0 === n || o && o.input === String.fromCharCode(a.keyCode.Space) ? e.toUpperCase() : e.toLowerCase();
3546
- break;
3547
-
3548
- default:
3549
- if ("function" == typeof i.casing) {
3550
- var l = Array.prototype.slice.call(arguments);
3551
- l.push(r.validPositions), e = i.casing.apply(this, l);
3552
- }
3553
- }
3554
- return e;
3555
- }
3556
- function c(e) {
3557
- var t = this, n = this.opts, i = this.maskset;
3558
- if ("function" == typeof n.isComplete) return n.isComplete(e, n);
3559
- if ("*" !== n.repeat) {
3560
- var a = !1, l = r.determineLastRequiredPosition.call(t, !0), s = l.l;
3561
- if (void 0 === l.def || l.def.newBlockMarker || l.def.optionality || l.def.optionalQuantifier) {
3562
- a = !0;
3563
- for (var c = 0; c <= s; c++) {
3564
- var u = o.getTestTemplate.call(t, c).match;
3565
- if (!0 !== u.static && void 0 === i.validPositions[c] && (!1 === u.optionality || void 0 === u.optionality || u.optionality && 0 == u.newBlockMarker) && (!1 === u.optionalQuantifier || void 0 === u.optionalQuantifier) || !0 === u.static && "" != u.def && e[c] !== o.getPlaceholder.call(t, c, u)) {
3566
- a = !1;
3567
- break;
3568
- }
3569
- }
3570
- }
3571
- return a;
3572
- }
3573
- }
3574
- function u(e) {
3575
- var t = this.opts.insertMode ? 0 : 1;
3576
- return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t;
3577
- }
3578
- function f(e, t, n, i, a, p, m) {
3579
- var g = this, y = this.dependencyLib, k = this.opts, b = g.maskset;
3580
- n = !0 === n;
3581
- var x = e;
3582
- function w(e) {
3583
- if (void 0 !== e) {
3584
- if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]),
3585
- e.remove.sort((function(e, t) {
3586
- return g.isRTL ? e.pos - t.pos : t.pos - e.pos;
3587
- })).forEach((function(e) {
3588
- v.call(g, {
3589
- begin: e,
3590
- end: e + 1
3591
- });
3592
- })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]),
3593
- e.insert.sort((function(e, t) {
3594
- return g.isRTL ? t.pos - e.pos : e.pos - t.pos;
3595
- })).forEach((function(e) {
3596
- "" !== e.c && f.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : i);
3597
- })), e.insert = void 0), e.refreshFromBuffer && e.buffer) {
3598
- var t = e.refreshFromBuffer;
3599
- d.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0;
3600
- }
3601
- void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0);
3602
- }
3603
- return e;
3604
- }
3605
- function P(t, n, a) {
3606
- var l = !1;
3607
- return o.getTests.call(g, t).every((function(c, f) {
3608
- var p = c.match;
3609
- if (r.getBuffer.call(g, !0), !1 !== (l = (!p.jit || void 0 !== b.validPositions[r.seekPrevious.call(g, t)]) && (null != p.fn ? p.fn.test(n, b, t, a, k, u.call(g, e)) : (n === p.def || n === k.skipOptionalPartCharacter) && "" !== p.def && {
3610
- c: o.getPlaceholder.call(g, t, p, !0) || p.def,
3611
- pos: t
3612
- }))) {
3613
- var d = void 0 !== l.c ? l.c : n, h = t;
3614
- return d = d === k.skipOptionalPartCharacter && !0 === p.static ? o.getPlaceholder.call(g, t, p, !0) || p.def : d,
3615
- !0 !== (l = w(l)) && void 0 !== l.pos && l.pos !== t && (h = l.pos), !0 !== l && void 0 === l.pos && void 0 === l.c ? !1 : (!1 === v.call(g, e, y.extend({}, c, {
3616
- input: s.call(g, d, p, h)
3617
- }), i, h) && (l = !1), !1);
3618
- }
3619
- return !0;
3620
- })), l;
3621
- }
3622
- void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin);
3623
- var S = !0, O = y.extend(!0, [], b.validPositions);
3624
- if (!1 === k.keepStatic && void 0 !== b.excludes[x] && !0 !== a && !0 !== i) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++) void 0 !== b.excludes[_] && (b.excludes[_] = void 0,
3625
- delete b.tests[_]);
3626
- if ("function" == typeof k.preValidation && !0 !== i && !0 !== p && (S = w(S = k.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), k, b, e, n || a))),
3627
- !0 === S) {
3628
- if (S = P(x, t, n), (!n || !0 === i) && !1 === S && !0 !== p) {
3629
- var M = b.validPositions[x];
3630
- if (!M || !0 !== M.match.static || M.match.def !== t && t !== k.skipOptionalPartCharacter) {
3631
- if (k.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) {
3632
- var E = !1;
3633
- 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 !== a && (S.caret = x),
3634
- E = !0), e.end > x && (b.validPositions[x] = void 0), !E && !r.isMask.call(g, x, k.keepStatic && 0 === x)) for (var j = x + 1, T = r.seekNext.call(g, x, !1, 0 !== x); j <= T; j++) if (!1 !== (S = P(j, t, n))) {
3635
- S = h.call(g, x, void 0 !== S.pos ? S.pos : j) || S, x = j;
3636
- break;
3637
- }
3638
- }
3639
- } else S = {
3640
- caret: r.seekNext.call(g, x)
3641
- };
3642
- }
3643
- g.hasAlternator && !0 !== a && !n && (a = !0, !1 === S && k.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = l.call(g, x, t, n, i, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && k.keepStatic || 1 == S && !0 !== k.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = l.call(g, !0))),
3644
- !0 === S && (S = {
3645
- pos: x
3646
- });
3647
- }
3648
- if ("function" == typeof k.postValidation && !0 !== i && !0 !== p) {
3649
- var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, n, m);
3650
- void 0 !== A && (S = !0 === A ? S : A);
3651
- }
3652
- S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === p ? (r.resetMaskSet.call(g, !0),
3653
- b.validPositions = y.extend(!0, [], O)) : h.call(g, void 0, x, !0);
3654
- var D = w(S);
3655
- void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !i && (r.resetMaskSet.call(g, !0),
3656
- b.validPositions = y.extend(!0, [], O), D = !1));
3657
- return D;
3658
- }
3659
- function p(e, t, n) {
3660
- for (var i = this.maskset, a = !1, r = o.getTests.call(this, e), l = 0; l < r.length; l++) {
3661
- if (r[l].match && (r[l].match.nativeDef === t.match[n.shiftPositions ? "def" : "nativeDef"] && (!n.shiftPositions || !t.match.static) || r[l].match.nativeDef === t.match.nativeDef || n.regex && !r[l].match.static && r[l].match.fn.test(t.input, i, e, !1, n))) {
3662
- a = !0;
3663
- break;
3664
- }
3665
- if (r[l].match && r[l].match.def === t.match.nativeDef) {
3666
- a = void 0;
3667
- break;
3668
- }
3669
- }
3670
- return !1 === a && void 0 !== i.jitOffset[e] && (a = p.call(this, e + i.jitOffset[e], t, n)),
3671
- a;
3672
- }
3673
- function d(e, t, n) {
3674
- var a, o, l = this, s = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, p = l.isRTL ? n.slice().reverse() : n;
3675
- if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(l, !1), e = 0,
3676
- t = n.length, o = r.determineNewCaretPosition.call(l, {
3677
- begin: 0,
3678
- end: 0
3679
- }, !1).begin; else {
3680
- for (a = e; a < t; a++) s.validPositions.splice(e, 0);
3681
- o = e;
3682
- }
3683
- var d = new u.Event("keypress");
3684
- for (a = e; a < t; a++) {
3685
- d.key = p[a].toString(), l.ignorable = !1;
3686
- var h = i.EventHandlers.keypressEvent.call(l, d, !0, !1, !1, o);
3687
- !1 !== h && void 0 !== h && (o = h.forwardPosition);
3688
- }
3689
- c.skipOptionalPartCharacter = f;
3690
- }
3691
- function h(e, t, n) {
3692
- var i = this, a = this.maskset, l = this.dependencyLib;
3693
- if (void 0 === e) for (e = t - 1; e > 0 && !a.validPositions[e]; e--) ;
3694
- for (var s = e; s < t; s++) {
3695
- if (void 0 === a.validPositions[s] && !r.isMask.call(i, s, !1)) if (0 == s ? o.getTest.call(i, s) : a.validPositions[s - 1]) {
3696
- var c = o.getTests.call(i, s).slice();
3697
- "" === c[c.length - 1].match.def && c.pop();
3698
- var u, p = o.determineTestTemplate.call(i, s, c);
3699
- if (p && (!0 !== p.match.jit || "master" === p.match.newBlockMarker && (u = a.validPositions[s + 1]) && !0 === u.match.optionalQuantifier) && ((p = l.extend({}, p, {
3700
- input: o.getPlaceholder.call(i, s, p.match, !0) || p.match.def
3701
- })).generatedInput = !0, v.call(i, s, p, !0), !0 !== n)) {
3702
- var d = a.validPositions[t].input;
3703
- return a.validPositions[t] = void 0, f.call(i, t, d, !0, !0);
3704
- }
3705
- }
3706
- }
3707
- }
3708
- function v(e, t, n, i) {
3709
- var a = this, l = this.maskset, s = this.opts, c = this.dependencyLib;
3710
- function d(e, t, n) {
3711
- var i = t[e];
3712
- if (void 0 !== i && !0 === i.match.static && !0 !== i.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
3713
- var a = n.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = n.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1];
3714
- return a && r;
3715
- }
3716
- return !1;
3717
- }
3718
- var h = 0, v = void 0 !== e.begin ? e.begin : e, m = void 0 !== e.end ? e.end : e, g = !0;
3719
- if (e.begin > e.end && (v = e.end, m = e.begin), i = void 0 !== i ? i : v, void 0 === n && (v !== m || s.insertMode && void 0 !== l.validPositions[i] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) {
3720
- var y, k = c.extend(!0, [], l.validPositions), b = r.getLastValidPosition.call(a, void 0, !0);
3721
- l.p = v;
3722
- var x = u.call(a, e) ? v : i;
3723
- for (y = b; y >= x; y--) l.validPositions.splice(y, 1), void 0 === t && delete l.tests[y + 1];
3724
- var w, P, S = i, O = S;
3725
- for (t && (l.validPositions[i] = c.extend(!0, {}, t), O++, S++), null == k[m] && l.jitOffset[m] && (m += l.jitOffset[m] + 1),
3726
- y = t ? m : m - 1; y <= b; y++) {
3727
- if (void 0 !== (w = k[y]) && !0 !== w.generatedInput && (y >= m || y >= v && d(y, k, {
3728
- begin: v,
3729
- end: m
3730
- }))) {
3731
- for (;"" !== o.getTest.call(a, O).match.def; ) {
3732
- if (!1 !== (P = p.call(a, O, w, s)) || "+" === w.match.def) {
3733
- "+" === w.match.def && r.getBuffer.call(a, !0);
3734
- var _ = f.call(a, O, w.input, "+" !== w.match.def, !0);
3735
- if (g = !1 !== _, S = (_.pos || O) + 1, !g && P) break;
3736
- } else g = !1;
3737
- if (g) {
3738
- void 0 === t && w.match.static && y === e.begin && h++;
3739
- break;
3740
- }
3741
- if (!g && r.getBuffer.call(a), O > l.maskLength) break;
3742
- O++;
3743
- }
3744
- "" == o.getTest.call(a, O).match.def && (g = !1), O = S;
3745
- }
3746
- if (!g) break;
3747
- }
3748
- if (!g) return l.validPositions = c.extend(!0, [], k), r.resetMaskSet.call(a, !0),
3749
- !1;
3750
- } else t && o.getTest.call(a, i).match.cd === t.match.cd && (l.validPositions[i] = c.extend(!0, {}, t));
3751
- return r.resetMaskSet.call(a, !0), h;
3752
- }
3753
- }
3754
- }, t = {};
3755
- function n(i) {
3756
- var a = t[i];
3757
- if (void 0 !== a) return a.exports;
3758
- var r = t[i] = {
3759
- exports: {}
3760
- };
3761
- return e[i](r, r.exports, n), r.exports;
3762
- }
3763
- var i = {};
3764
- return function() {
3765
- var e = i;
3766
- Object.defineProperty(e, "__esModule", {
3767
- value: !0
3768
- }), e.default = void 0, n(7149), n(3194), n(9302), n(4013), n(3851), n(219), n(207),
3769
- n(5296);
3770
- var t, a = (t = n(2394)) && t.__esModule ? t : {
3771
- default: t
3772
- };
3773
- e.default = a.default;
3774
- }(), i;
3775
- }();
3776
- }));
3777
- });
3778
-
3779
- const Inputmask = /*@__PURE__*/getDefaultExportFromCjs(inputmask);
6
+ import './_commonjsHelpers-9bc404fc.js';
3780
7
 
3781
8
  const buyGiftcardVerificationCss = ".buy-giftcard--verification *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}";
3782
9
 
@@ -3887,7 +114,7 @@ const BuyGiftcardVerification = class {
3887
114
  height: '48px',
3888
115
  }, onClick: () => this.step = FormStep.InputPhone }, "Back"), h("button", { type: "button", style: {
3889
116
  border: `1px solid ${Colors.Secondary}`,
3890
- background: Colors.Secondary,
117
+ backgroundColor: Colors.Secondary,
3891
118
  borderRadius: '8px',
3892
119
  cursor: 'pointer',
3893
120
  color: Colors.White,
@@ -3904,7 +131,7 @@ const BuyGiftcardVerification = class {
3904
131
  fontSize: '16px',
3905
132
  fontWeight: '600',
3906
133
  marginBottom: '12px',
3907
- } }, "Enter your phone to start"), h("div", { style: { display: 'flex', alignItems: 'center' } }, h("input", { type: "tel", placeholder: "(123) 456-7890", ref: el => this.nativeInput = el, onInput: (evt) => this.inputtedPhone = evt.target.value, style: {
134
+ } }, "Enter your phone to start"), h("div", { style: { display: 'flex', alignItems: 'center' } }, h("input", { type: "tel", placeholder: "(123) 456-7890", disabled: this.isSearchingUser, ref: el => this.nativeInput = el, onInput: (evt) => this.inputtedPhone = evt.target.value, style: {
3908
135
  border: `1px solid ${Colors.Gray03}`,
3909
136
  backgroundColor: Colors.White,
3910
137
  borderRadius: '8px',
@@ -3914,9 +141,13 @@ const BuyGiftcardVerification = class {
3914
141
  fontWeight: '700',
3915
142
  flexShrink: '1',
3916
143
  flexGrow: '1',
144
+ ...this.isSearchingUser ? {
145
+ borderColor: Colors.Gray03,
146
+ backgroundColor: Colors.Gray03,
147
+ } : {},
3917
148
  } }), formattedPhone && formattedPhone.length >= 10 && (h("button", { type: "button", disabled: this.isSearchingUser, style: {
3918
149
  border: `1px solid ${Colors.Secondary}`,
3919
- background: Colors.Secondary,
150
+ backgroundColor: Colors.Secondary,
3920
151
  color: Colors.White,
3921
152
  borderRadius: '8px',
3922
153
  cursor: 'pointer',
@@ -3926,7 +157,12 @@ const BuyGiftcardVerification = class {
3926
157
  paddingRight: '24px',
3927
158
  height: '48px',
3928
159
  marginLeft: '16px',
3929
- }, onClick: () => this.onSearchClient() }, "Next ", this.isSearchingUser && (h("span", { class: "fs-spin", style: { marginLeft: '4px' } }, h("i", { class: "ri-loader-4-line" }))))))));
160
+ ...this.isSearchingUser ? {
161
+ color: Colors.TextColor,
162
+ borderColor: Colors.Gray03,
163
+ backgroundColor: Colors.Gray03,
164
+ } : {},
165
+ }, onClick: () => this.onSearchClient() }, "Next ", this.isSearchingUser && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null))))))));
3930
166
  }
3931
167
  render() {
3932
168
  return (h("div", null, this.step === FormStep.InputPhone ? this.renderSearchClientForm() : this.renderUserInfoForm(), h("div", { style: { paddingBottom: '24px', paddingTop: '32px', textAlign: 'center' } }, h("powered-by-favesalon", null))));