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