@nova-design-system/nova-react 3.21.1-beta.0 → 3.23.0

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