PageSourceSearch

https://www.4.works/node_modules/inputmask/dist/jquery.inputmask.bundle.js

js 4.works collected 2026-09-24 13:54:35 UTC 218,811 bytes, 3,070 lines download raw bytes

1/*!
2* jquery.inputmask.bundle.js
3* https://github.com/RobinHerbots/Inputmask
4* Copyright (c) 2010 - 2017 Robin Herbots
5* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
6* Version: 3.3.7
7*/
8
9!function(modules) {
10    function __webpack_require__(moduleId) {
11        if (installedModules[moduleId]) return installedModules[moduleId].exports;
12        var module = installedModules[moduleId] = {
13            i: moduleId,
14            l: !1,
15            exports: {}
16        };
17        return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), 
18        module.l = !0, module.exports;
19    }
20    var installedModules = {};
21    __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.i = function(value) {
22        return value;
23    }, __webpack_require__.d = function(exports, name, getter) {
24        __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
25            configurable: !1,
26            enumerable: !0,
27            get: getter
28        });
29    }, __webpack_require__.n = function(module) {
30        var getter = module && module.__esModule ? function() {
31            return module.default;
32        } : function() {
33            return module;
34        };
35        return __webpack_require__.d(getter, "a", getter), getter;
36    }, __webpack_require__.o = function(object, property) {
37        return Object.prototype.hasOwnProperty.call(object, property);
38    }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 10);
39}([ function(module, exports, __webpack_require__) {
40    "use strict";
41    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
42    "function" == typeof Symbol && Symbol.iterator;
43    !function(factory) {
44        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2) ], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, 
45        void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
46    }(function($) {
47        return $;
48    });
49}, function(module, exports, __webpack_require__) {
50    "use strict";
51    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
52        return typeof obj;
53    } : function(obj) {
54        return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
55    };
56    !function(factory) {
57        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(12), __webpack_require__(11) ], 
58        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
59    }(function($, window, document, undefined) {
60        function Inputmask(alias, options, internal) {
61            if (!(this instanceof Inputmask)) return new Inputmask(alias, options, internal);
62            this.el = undefined, this.events = {}, this.maskset = undefined, this.refreshValue = !1, 
63            !0 !== internal && ($.isPlainObject(alias) ? options = alias : (options = options || {}, 
64            options.alias = alias), this.opts = $.extend(!0, {}, this.defaults, options), this.noMasksCache = options && options.definitions !== undefined, 
65            this.userOptions = options || {}, this.isRTL = this.opts.numericInput, resolveAlias(this.opts.alias, options, this.opts));
66        }
67        function resolveAlias(aliasStr, options, opts) {
68            var aliasDefinition = Inputmask.prototype.aliases[aliasStr];
69            return aliasDefinition ? (aliasDefinition.alias && resolveAlias(aliasDefinition.alias, undefined, opts), 
70            $.extend(!0, opts, aliasDefinition), $.extend(!0, opts, options), !0) : (null === opts.mask && (
70opts.mask = aliasStr), 
71            !1);
72        }
73        function generateMaskSet(opts, nocache) {
74            function generateMask(mask, metadata, opts) {
75                var regexMask = !1;
76                if (null !== mask && "" !== mask || (regexMask = null !== opts.regex, regexMask ? (mask = opts.regex, 
77                mask = mask.replace(/^(\^)(.*)(\$)$/, "$2")) : (regexMask = !0, mask = ".*")), 1 === mask.length && !1 === opts.greedy && 0 !== opts.repeat && (opts.placeholder = ""), 
78                opts.repeat > 0 || "*" === opts.repeat || "+" === opts.repeat) {
79                    var repeatStart = "*" === opts.repeat ? 0 : "+" === opts.repeat ? 1 : opts.repeat;
80                    mask = opts.groupmarker.start + mask + opts.groupmarker.end + opts.quantifiermarker.start + repeatStart + "," + opts.repeat + opts.quantifiermarker.end;
81                }
82                var masksetDefinition, maskdefKey = regexMask ? "regex_" + opts.regex : opts.numericInput ? mask.split("").reverse().join("") : mask;
83                return Inputmask.prototype.masksCache[maskdefKey] === undefined || !0 === nocache ? (masksetDefinition = {
84                    mask: mask,
85                    maskToken: Inputmask.prototype.analyseMask(mask, regexMask, opts),
86                    validPositions: {},
87                    _buffer: undefined,
88                    buffer: undefined,
89                    tests: {},
90                    metadata: metadata,
91                    maskLength: undefined
92                }, !0 !== nocache && (Inputmask.prototype.masksCache[maskdefKey] = masksetDefinition, 
93                masksetDefinition = $.extend(!0, {}, Inputmask.prototype.masksCache[maskdefKey]))) : masksetDefinition = $.extend(!0, {}, Inputmask.prototype.masksCache[maskdefKey]), 
94                masksetDefinition;
95            }
96            if ($.isFunction(opts.mask) && (opts.mask = opts.mask(opts)), $.isArray(opts.mask)) {
97                if (opts.mask.length > 1) {
98                    opts.keepStatic = null === opts.keepStatic || opts.keepStatic;
99                    var altMask = opts.groupmarker.start;
100                    return $.each(opts.numericInput ? opts.mask.reverse() : opts.mask, function(ndx, msk) {
101                        altMask.length > 1 && (altMask += opts.groupmarker.end + opts.alternatormarker + opts.groupmarker.start), 
102                        msk.mask === undefined || $.isFunction(msk.mask) ? altMask += msk : altMask += msk.mask;
103                    }), altMask += opts.groupmarker.end, generateMask(altMask, opts.mask, opts);
104                }
105                opts.mask = opts.mask.pop();
106            }
107            return opts.mask && opts.mask.mask !== undefined && !$.isFunction(opts.mask.mask) ? generateMask(opts.mask.mask, opts.mask, opts) : generateMask(opts.mask, opts.mask, opts);
108        }
109        function maskScope(actionObj, maskset, opts) {
110            function getMaskTemplate(baseOnInput, minimalPos, includeMode) {
111                minimalPos = minimalPos || 0;
112                var ndxIntlzr, test, testPos, maskTemplate = [], pos = 0, lvp = getLastValidPosition();
113                -1 === (maxLength = el !== undefined ? el.maxLength : undefined) && (maxLength = undefined);
114                do {
115                    !0 === baseOnInput && getMaskSet().validPositions[pos] ? (testPos = getMaskSet().validPositions[pos], 
116                    test = testPos.match, ndxIntlzr = testPos.locator.slice(), maskTemplate.push(!0 === includeMode ? testPos.input : !1 === includeMode ? test.nativeDef : getPlaceholder(pos, test))) : (testPos = getTestTemplate(pos, ndxIntlzr, pos - 1), 
117                    test = testPos.match, ndxIntlzr = testPos.locator.slice(), (!1 === opts.jitMasking || pos < lvp || "number" == typeof opts.jitMasking && isFinite(opts.jitMasking) && opts.jitMasking > pos) && maskTemplate.push(!1 === includeMode ? test.nativeDef : getPlaceholder(pos, test))), 
118                    pos++;
119                } while ((maxLength === undefined || pos < maxLength) && (null !== test.fn || "" !== test.def) || minimalPos > pos);
120                return "" === maskTemplate[maskTemplate.length - 1] && maskTemplate.pop(), getMaskSet().maskLength = pos + 1, 
121                maskTemplate;
122            }
123            function getMaskSet() {
124                return maskset;
125            }
126            function resetMaskSet(soft) {
127                var maskset = getMaskSet();
128                maskset.buffer = undefined, !0 !== soft && (maskset.validPositions = {}, maskset.p = 0);
129            }
130            function getLastValidPosition(closestTo, strict, validPositions) {
131                var before = -1, after = -1, valids = validPositions || getMaskSet().validPositions;
132                closestTo === undefined && (closestTo = -1);
133                for (var posNdx in valids) {
134                    var psNdx = parseInt(posNdx);
135                    valids[psNdx] && (strict || !0 !== valids[psNdx].generatedInput) && (psNdx <= closestTo && (before = psNdx), 
136                    psNdx >= closestTo && (after = psNdx));
137                }
138                return -1 !== before && closestTo - before > 1 || after < closestTo ? before : after;
139            }
140            function stripValidPositions(start, end, nocheck, strict) {
141                var i, startPos = start, positionsClone = $.extend(!0, {}, getMaskSet().validPositions), needsValidation = !1;
142                for (getMaskSet().p = start, i = end - 1; i >= startPos; i--) getMaskSet().validPositions[i] !== undefined && (!0 !== nocheck && (!getMaskSet().validPositions[i].match.optionality && function(pos) {
143                    var posMatch = getMaskSet().validPositions[pos];
144                    if (posMatch !== undefined && null === posMatch.match.fn) {
145                        var prevMatch = getMaskSet().validPositions[pos - 1], nextMatch = getMaskSet().validPositions[pos + 1];
146                        return prevMatch !== undefined && nextMatch !== undefined;
147                    }
148                    return !1;
149                }(i) || !1 === opts.canClearPosition(getMaskSet(), i, getLastValidPosition(), str
149ict, opts)) || delete getMaskSet().validPositions[i]);
150                for (resetMaskSet(!0), i = startPos + 1; i <= getLastValidPosition(); ) {
151                    for (;getMaskSet().validPositions[startPos] !== undefined; ) startPos++;
152                    if (i < startPos && (i = startPos + 1), getMaskSet().validPositions[i] === undefined && isMask(i)) i++; else {
153                        var t = getTestTemplate(i);
154                        !1 === needsValidation && positionsClone[startPos] && positionsClone[startPos].match.def === t.match.def ? (getMaskSet().validPositions[startPos] = $.extend(!0, {}, positionsClone[startPos]), 
155                        getMaskSet().validPositions[startPos].input = t.input, delete getMaskSet().validPositions[i], 
156                        i++) : positionCanMatchDefinition(startPos, t.match.def) ? !1 !== isValid(startPos, t.input || getPlaceholder(i), !0) && (delete getMaskSet().validPositions[i], 
157                        i++, needsValidation = !0) : isMask(i) || (i++, startPos--), startPos++;
158                    }
159                }
160                resetMaskSet(!0);
161            }
162            function determineTestTemplate(tests, guessNextBest) {
163                for (var testPos, testPositions = tests, lvp = getLastValidPosition(), lvTest = getMaskSet().validPositions[lvp] || getTests(0)[0], lvTestAltArr = lvTest.alternation !== undefined ? lvTest.locator[lvTest.alternation].toString().split(",") : [], ndx = 0; ndx < testPositions.length && (testPos = testPositions[ndx], 
164                !(testPos.match && (opts.greedy && !0 !== testPos.match.optionalQuantifier || (!1 === testPos.match.optionality || !1 === testPos.match.newBlockMarker) && !0 !== testPos.match.optionalQuantifier) && (lvTest.alternation === undefined || lvTest.alternation !== testPos.alternation || testPos.locator[lvTest.alternation] !== undefined && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAltArr))) || !0 === guessNextBest && (null !== testPos.match.fn || /[0-9a-bA-Z]/.test(testPos.match.def))); ndx++) ;
165                return testPos;
166            }
167            function getTestTemplate(pos, ndxIntlzr, tstPs) {
168                return getMaskSet().validPositions[pos] || determineTestTemplate(getTests(pos, ndxIntlzr ? ndxIntlzr.slice() : ndxIntlzr, tstPs));
169            }
170            function getTest(pos) {
171                return getMaskSet().validPositions[pos] ? getMaskSet().validPositions[pos] : getTests(pos)[0];
172            }
173            function positionCanMatchDefinition(pos, def) {
174                for (var valid = !1, tests = getTests(pos), tndx = 0; tndx < tests.length; tndx++) if (tests[tndx].match && tests[tndx].match.def === def) {
175                    valid = !0;
176                    break;
177                }
178                return valid;
179            }
180            function getTests(pos, ndxIntlzr, tstPs) {
181                function resolveTestFromToken(maskToken, ndxInitializer, loopNdx, quantifierRecurse) {
182                    function handleMatch(match, loopNdx, quantifierRecurse) {
183                        function isFirstMatch(latestMatch, tokenGroup) {
184                            var firstMatch = 0 === $.inArray(latestMatch, tokenGroup.matches);
185                            return firstMatch || $.each(tokenGroup.matches, function(ndx, match) {
186                                if (!0 === match.isQuantifier && (firstMatch = isFirstMatch(latestMatch, tokenGroup.matches[ndx - 1]))) return !1;
187                            }), firstMatch;
188                        }
189                        function resolveNdxInitializer(pos, alternateNdx, targetAlternation) {
190                            var bestMatch, indexPos;
191                            if (getMaskSet().validPositions[pos - 1] && targetAlternation && getMaskSet().tests[pos]) for (var vpAlternation = getMaskSet().validPositions[pos - 1].locator, tpAlternation = getMaskSet().tests[pos][0].locator, i = 0; i < targetAlternation; i++) if (vpAlternation[i] !== tpAlternation[i]) return vpAlternation.slice(targetAlternation + 1);
192                            return (getMaskSet().tests[pos] || getMaskSet().validPositions[pos]) && $.each(getMaskSet().tests[pos] || [ getMaskSet().validPositions[pos] ], function(ndx, lmnt) {
193                                var alternation = targetAlternation !== undefined ? targetAlternation : lmnt.alternation, ndxPos = lmnt.locator[alternation] !== undefined ? lmnt.locator[alternation].toString().indexOf(alternateNdx) : -1;
194                                (indexPos === undefined || ndxPos < indexPos) && -1 !== ndxPos && (bestMatch = lmnt, 
195                                indexPos = ndxPos);
196                            }), bestMatch ? bestMatch.locator.slice((targetAlternation !== undefined ? targetAlternation : bestMatch.alternation) + 1) : targetAlternation !== undefined ? resolveNdxInitializer(pos, alternateNdx) : undefined;
197                        }
198                        if (testPos > 1e4) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + getMaskSet().mask;
199                        if (testPos === pos && match.matches === undefined) return matches.push({
200                            match: match,
201                            locator: loopNdx.reverse(),
202                            cd: cacheDependency
203                        }), !0;
204                        if (match.matches !== undefined) {
205                            if (match.isGroup && quantifierRecurse !== match) {
206                                if (match = handleMatch(maskToken.matches[$.inArray(match, maskToken.matches) + 1], loopNdx)) return !0;
207                            } else if (match.isOptional) {
208                                var optionalToken = match;
209                                if (match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) {
210                                    if (latestMatch = matches[matches.length - 1].match, !isFirstMatch(latestMatch, optionalToken)) return !0;
211                                    insertStop = !0, testPos = pos;
212                                }
213                            } else if (match.isAlternator) {
214                                var maltMatches, alternateToken = match, malternateMatches = [], currentMatches = matches.slice(), loopNdxCnt = loopNdx.length, altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
215                                if (-1 === altIndex || "string" == typeof altIndex) {
216                                    var amndx, currentPos = testPos, ndxInitializerClone = ndxInitializer.slice(), altIndexArr = [];
217                                    if ("string" == typeof altIndex) altIndexArr = altIndex.split(","); else for (amndx = 0;
217 amndx < alternateToken.matches.length; amndx++) altIndexArr.push(amndx);
218                                    for (var ndx = 0; ndx < altIndexArr.length; ndx++) {
219                                        if (amndx = parseInt(altIndexArr[ndx]), matches = [], ndxInitializer = resolveNdxInitializer(testPos, amndx, loopNdxCnt) || ndxInitializerClone.slice(), 
220                                        !0 !== (match = handleMatch(alternateToken.matches[amndx] || maskToken.matches[amndx], [ amndx ].concat(loopNdx), quantifierRecurse) || match) && match !== undefined && altIndexArr[altIndexArr.length - 1] < alternateToken.matches.length) {
221                                            var ntndx = $.inArray(match, maskToken.matches) + 1;
222                                            maskToken.matches.length > ntndx && (match = handleMatch(maskToken.matches[ntndx], [ ntndx ].concat(loopNdx.slice(1, loopNdx.length)), quantifierRecurse)) && (altIndexArr.push(ntndx.toString()), 
223                                            $.each(matches, function(ndx, lmnt) {
224                                                lmnt.alternation = loopNdx.length - 1;
225                                            }));
226                                        }
227                                        maltMatches = matches.slice(), testPos = currentPos, matches = [];
228                                        for (var ndx1 = 0; ndx1 < maltMatches.length; ndx1++) {
229                                            var altMatch = maltMatches[ndx1], dropMatch = !1;
230                                            altMatch.alternation = altMatch.alternation || loopNdxCnt;
231                                            for (var ndx2 = 0; ndx2 < malternateMatches.length; ndx2++) {
232                                                var altMatch2 = malternateMatches[ndx2];
233                                                if ("string" != typeof altIndex || -1 !== $.inArray(altMatch.locator[altMatch.alternation].toString(), altIndexArr)) {
234                                                    if (function(source, target) {
235                                                        return source.match.nativeDef === target.match.nativeDef || source.match.def === target.match.nativeDef || source.match.nativeDef === target.match.def;
236                                                    }(altMatch, altMatch2)) {
237                                                        dropMatch = !0, altMatch.alternation === altMatch2.alternation && -1 === altMatch2.locator[altMatch2.alternation].toString().indexOf(altMatch.locator[altMatch.alternation]) && (altMatch2.locator[altMatch2.alternation] = altMatch2.locator[altMatch2.alternation] + "," + altMatch.locator[altMatch.alternation], 
238                                                        altMatch2.alternation = altMatch.alternation), altMatch.match.nativeDef === altMatch2.match.def && (altMatch.locator[altMatch.alternation] = altMatch2.locator[altMatch2.alternation], 
239                                                        malternateMatches.splice(malternateMatches.indexOf(altMatch2), 1, altMatch));
240                                                        break;
241                                                    }
242                                                    if (altMatch.match.def === altMatch2.match.def) {
243                                                        dropMatch = !1;
244                                                        break;
245                                                    }
246                                                    if (function(source, target) {
247                                                        return null === source.match.fn && null !== target.match.fn && target.match.fn.test(source.match.def, getMaskSet(), pos, !1, opts, !1);
248                                                    }(altMatch, altMatch2) || function(source, target) {
249                                                        return null !== source.match.fn && null !== target.match.fn && target.match.fn.test(source.match.def.replace(/[\[\]]/g, ""), getMaskSet(), pos, !1, opts, !1);
250                                                    }(altMatch, altMatch2)) {
251                                                        altMatch.alternation == altMatch2.alternation && -1 === altMatch.locator[altMatch.alternation].toString().indexOf(altMatch2.locator[altMatch2.alternation].toString().split("")[0]) && (altMatch.na = altMatch.na || altMatch.locator[altMatch.alternation].toString(), 
252                                                        -1 === altMatch.na.indexOf(altMatch.locator[altMatch.alternation].toString().split("")[0]) && (altMatch.na = altMatch.na + "," + altMatch.locator[altMatch2.alternation].toString().split("")[0]), 
253                                                        dropMatch = !0, altMatch.locator[altMatch.alternation] = altMatch2.locator[altMatch2.alternation].toString().split("")[0] + "," + altMatch.locator[altMatch.alternation], 
254                                                        malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch));
255                                                        break;
256                                                    }
257                                                }
258                                            }
259                                            dropMatch || malternateMatches.push(altMatch);
260                                        }
261                                    }
262                                    "string" == typeof altIndex && (malternateMatches = $.map(malternateMatches, function(lmnt, ndx) {
263                                        if (isFinite(ndx)) {
264                                            var alternation = lmnt.alternation, altLocArr = lmnt.locator[alternation].toString().split(",");
265                                            lmnt.locator[alternation] = undefined, lmnt.alternation = undefined;
266                                            for (var alndx = 0; alndx < altLocArr.length; alndx++) -1 !== $.inArray(altLocArr[alndx], altIndexArr) && (lmnt.locator[alternation] !== undefined ? (lmnt.locator[alternation] += ",", 
267                                            lmnt.locator[alternation] += altLocArr[alndx]) : lmnt.locator[alternation] = parseInt(altLocArr[alndx]), 
268                                            lmnt.alternation = alternation);
269                                            if (lmnt.locator[alternation] !== undefined) return lmnt;
270                                        }
271                                    })), matches = currentMatches.concat(malternateMatches), testPos = pos, insertStop = matches.length > 0, 
272                                    match = malternateMatches.length > 0, ndxInitializer = ndxInitializerClone.slice();
273                                } else match = handleMatch(alternateToken.matches[altIndex] || maskToken.matches[altIndex], [ altIndex ].concat(loopNdx), quantifierRecurse);
274                                if (match) return !0;
275                            } else if (match.isQuantifier && quantifierRecurse !== maskToken.matches[$.inArray(match, maskToken.matches) - 1]) for (var qt = match, qndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max) && testPos <= pos; qndx++) {
276                                var tokenGroup = maskToken.matches[$.inArray(qt, maskToken.matches) - 1];
277                                if (match = handleMatch(tokenGroup, [ qndx ].concat(loopNdx), tokenGroup)) {
278                                    if (latestMatch = matches[matches.length - 1].match, latestMatch.optionalQuantifier = qndx > qt.quantifier.min - 1, 
279                                    isFirstMatch(latestMatch, tokenGroup)) {
280                                        if (qndx > qt.quantifier.min - 1) {
281                                            insertStop = !0, testPos = pos;
282                                            break;
283                                        }
284                                        return !0;
285                                    }
286                                    return !0;
287                                }
288                            } else if (match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) return !0;
289                        } else testPos++;
290                    }
291                    for (var tndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; tndx < maskToken.matches.length; tndx++) if (!0 !== maskToken.matches[tndx].isQuantifier) {
292                        var match = handleMatch(maskToken.matches[tndx], [ tndx ].concat(loopNdx), quantifierRecurse);
293                        if (match && testPos === pos) return match;
294                        if (testPos > pos) break;
295                    }
296                }
297                function filterTests(tests) {
298                    if (opts.keepStatic && pos > 0 && tests.length > 1 + ("" === tests[tests.length - 1].match.def ? 1 : 0) && !0 !== tests[0].match.optionality && !0 !== tests[0].match.optionalQuantifier && null === tests[0].match.fn && !/[0-9a-bA-Z]/.test(tests[0].match.def)) {
299                        if (getMaskSet().validPositions[pos - 1] === undefined) return [ determineTestTemplate(tests) ];
300                        if (getMaskSet().validPositions[pos - 1].alternation === tests[0].alternation) return [ determineTestTemplate(tests) ];
301                        if (getMaskSet().validPositions[pos - 1]) return [ determineTestTemplate(tests) ];
302                    }
303                    return tests;
304                }
305                var latestMatch, maskTokens = getMaskSet().maskToken, testPos = ndxIntlzr ? tstPs : 0, ndxInitializer = ndxIntlzr ? ndxIntlzr.slice() : [ 0 ], matches = [], insertStop = !1, cacheDependency = ndxIntlzr ? ndxIntlzr.join("") : "";
306                if (pos > -1) {
307                    if (ndxIntlzr === undefined) {
308                        for (var test, previousPos = pos - 1; (test = getMaskSet().validPositions[previousPos] || getMaskSet().tests[previousPos]) === undefined && previousPos > -1; ) previousPos--;
309                        test !== undefined && previousPos > -1 && (ndxInitializer = function(tests) {
310                            var locator = [];
311                            return $.isArray(tests) || (tests = [ tests ]), tests.length > 0 && (tests[0].alternation === undefined ? (locator = determineTestTemplate(tests.slice()).locator.slice(), 
312                            0 === locator.length && (locator = tests[0].locator.slice())) : $.each(tests, function(ndx, tst) {
313                                if ("" !== tst.def) if (0 === locator.length) locator = t
313st.locator.slice(); else for (var i = 0; i < locator.length; i++) tst.locator[i] && -1 === locator[i].toString().indexOf(tst.locator[i]) && (locator[i] += "," + tst.locator[i]);
314                            })), locator;
315                        }(test), cacheDependency = ndxInitializer.join(""), testPos = previousPos);
316                    }
317                    if (getMaskSet().tests[pos] && getMaskSet().tests[pos][0].cd === cacheDependency) return filterTests(getMaskSet().tests[pos]);
318                    for (var mtndx = ndxInitializer.shift(); mtndx < maskTokens.length; mtndx++) {
319                        if (resolveTestFromToken(maskTokens[mtndx], ndxInitializer, [ mtndx ]) && testPos === pos || testPos > pos) break;
320                    }
321                }
322                return (0 === matches.length || insertStop) && matches.push({
323                    match: {
324                        fn: null,
325                        cardinality: 0,
326                        optionality: !0,
327                        casing: null,
328                        def: "",
329                        placeholder: ""
330                    },
331                    locator: [],
332                    cd: cacheDependency
333                }), ndxIntlzr !== undefined && getMaskSet().tests[pos] ? filterTests($.extend(!0, [], matches)) : (getMaskSet().tests[pos] = $.extend(!0, [], matches), 
334                filterTests(getMaskSet().tests[pos]));
335            }
336            function getBufferTemplate() {
337                return getMaskSet()._buffer === undefined && (getMaskSet()._buffer = getMaskTemplate(!1, 1), 
338                getMaskSet().buffer === undefined && (getMaskSet().buffer = getMaskSet()._buffer.slice())), 
339                getMaskSet()._buffer;
340            }
341            function getBuffer(noCache) {
342                return getMaskSet().buffer !== undefined && !0 !== noCache || (getMaskSet().buffer = getMaskTemplate(!0, getLastValidPosition(), !0)), 
343                getMaskSet().buffer;
344            }
345            function refreshFromBuffer(start, end, buffer) {
346                var i, p;
347                if (!0 === start) resetMaskSet(), start = 0, end = buffer.length; else for (i = start; i < end; i++) delete getMaskSet().validPositions[i];
348                for (p = start, i = start; i < end; i++) if (resetMaskSet(!0), buffer[i] !== opts.skipOptionalPartCharacter) {
349                    var valResult = isValid(p, buffer[i], !0, !0);
350                    !1 !== valResult && (resetMaskSet(!0), p = valResult.caret !== undefined ? valResult.caret : valResult.pos + 1);
351                }
352            }
353            function casing(elem, test, pos) {
354                switch (opts.casing || test.casing) {
355                  case "upper":
356                    elem = elem.toUpperCase();
357                    break;
358
359                  case "lower":
360                    elem = elem.toLowerCase();
361                    break;
362
363                  case "title":
364                    var posBefore = getMaskSet().validPositions[pos - 1];
365                    elem = 0 === pos || posBefore && posBefore.input === String.fromCharCode(Inputmask.keyCode.SPACE) ? elem.toUpperCase() : elem.toLowerCase();
366                    break;
367
368                  default:
369                    if ($.isFunction(opts.casing)) {
370                        var args = Array.prototype.slice.call(arguments);
371                        args.push(getMaskSet().validPositions), elem = opts.casing.apply(this, args);
372                    }
373                }
374                return elem;
375            }
376            function checkAlternationMatch(altArr1, altArr2, na) {
377                for (var naNdx, altArrC = opts.greedy ? altArr2 : altArr2.slice(0, 1), isMatch = !1, naArr = na !== undefined ? na.split(",") : [], i = 0; i < naArr.length; i++) -1 !== (naNdx = altArr1.indexOf(naArr[i])) && altArr1.splice(naNdx, 1);
378                for (var alndx = 0; alndx < altArr1.length; alndx++) if (-1 !== $.inArray(altArr1[alndx], altArrC)) {
379                    isMatch = !0;
380                    break;
381                }
382                return isMatch;
383            }
384            function isValid(pos, c, strict, fromSetValid, fromAlternate) {
385                function isSelection(posObj) {
386                    var selection = isRTL ? posObj.begin - posObj.end > 1 || posObj.begin - posObj.end == 1 : posObj.end - posObj.begin > 1 || posObj.end - posObj.begin == 1;
387                    return selection && 0 === posObj.begin && posObj.end === getMaskSet().maskLength ? "full" : selection;
388                }
389                function _isValid(position, c, strict) {
390                    var rslt = !1;
391                    return $.each(getTests(position), function(ndx, tst) {
392                        for (var test = tst.match, loopend = c ? 1 : 0, chrs = "", i = test.cardinality; i > loopend; i--) chrs += getBufferElement(position - (i - 1));
393                        if (c && (chrs += c), getBuffer(!0), !1 !== (rslt = null != test.fn ? test.fn.test(chrs, getMaskSet(), position, strict, opts, isSelection(pos)) : (c === test.def || c === opts.skipOptionalPartCharacter) && "" !== test.def && {
394                            c: getPlaceholder(position, test, !0) || test.def,
395                            pos: position
396                        })) {
397                            var elem = rslt.c !== undefined ? rslt.c : c;
398                            elem = elem === opts.skipOptionalPartCharacter && null === test.fn ? getPlaceholder(position, test, !0) || test.def : elem;
399                            var validatedPos = position, possibleModifiedBuffer = getBuffer();
400                            if (rslt.remove !== undefined && ($.isArray(rslt.remove) || (rslt.remove = [ rslt.remove ]), 
401                            $.each(rslt.remove.sort(function(a, b) {
402                                return b - a;
403                            }), function(ndx, lmnt) {
404                                stripValidPositions(lmnt, lmnt + 1, !0);
405                            })), rslt.insert !== undefined && ($.isArray(rslt.insert) || (rslt.insert = [ rslt.insert ]), 
406                            $.each(rslt.insert.sort(function(a, b) {
407                                return a - b;
408                            }), function(ndx, lmnt) {
409                                isValid(lmnt.pos, lmnt.c, !0, fromSetValid);
410                            })), rslt.refreshFromBuffer) {
411                                var refresh = rslt.refreshFromBuffer;
412                                if (refreshFromBuffer(!0 === refresh ? refresh : refresh.start, refresh.end, possibleModifiedBuffer), 
413                                rslt.pos === undefined && rslt.c === undefined) return rslt.pos = getLastValidPosition(), 
414                                !1;
415                                if ((validatedPos = rslt.pos !== undefined ? rslt.pos : position) !== position) return rslt = $.extend(rslt, isValid(validatedPos, elem, !0, fromSetValid)), 
416                                !1;
417                            } else if (!0 !== rslt && rslt.pos !== undefined && rslt.pos !== position && (validatedPos = rslt.pos, 
418                            refreshFromBuffer(position, validatedPos, getBuffer().slice()), validatedPos !== position)) return rslt = $.extend(rslt, isValid(validatedPos, elem, !0)), 
419                            !1;
420                            return (!0 === rslt || rslt.pos !== undefined || rslt.c !== undefined) && (ndx > 0 && resetMaskSet(!0), 
421                            setValidPosition(validatedPos, $.extend({}, tst, {
422                                input: casing(elem, test, validatedPos)
423                            }), fromSetValid, isSelection(pos)) || (rslt = !1), !1);
424                        }
425                    }), rslt;
426                }
427                function setValidPosition(pos, validTest, fromSetValid, isSelection) {
428                    if (isSelection || opts.insertMode && getMaskSet().validPositions[pos] !== undefined && fromSetValid === undefined) {
429                        var i, positionsClone = $.extend(!0, {}, getMaskSet().validPositions), lvp = getLastValidPosition(undefined, !0);
430                        for (i = pos; i <= lvp; i++) delete getMaskSet().validPositions[i];
431                        getMaskSet().validPositions[pos] = $.extend(!0, {}, validTest);
432                        var j, valid = !0, vps = getMaskSet().validPositions, needsValidation = !1, initialLength = getMaskSet().maskLength;
433                        for (i = j = pos; i <= lvp; i++) {
434                            var t = positionsClone[i];
435                            if (t !== undefined) for (var posMatch = j; posMatch < getMaskSet().maskLength && (null === t.match.fn && vps[i] && (!0 === vps[i].match.optionalQuantifier || !0 === vps[i].match.optionality) || null != t.match.fn); ) {
436                                if (posMatch++, !1 === needsValidation && positionsClone[posMatch] && positionsClone[posMatch].match.def === t.match.def) getMaskSet().validPositions[posMatch] = $.extend(!0, {}, positionsClone[posMatch]), 
437                                getMaskSet().validPositions[posMatch].input = t.input, fillMissingNonMask(posMatch), 
438                                j = posMatch, valid = !0; else if (positionCanMatchDefinition(posMatch, t.match.def)) {
439                                    var result = isValid(posMatch, t.input, !0, !0);
440                                    valid = !1 !== result, j = result.caret || result.insert ? getLastValidPosition() : posMatch, 
441                                    needsValidation = !0;
442                                } else if (!(valid = !0 === t.generatedInput) && posMatch >= getMaskSet().maskLength - 1) break;
443                                if (getMaskSet().maskLength < initialLength && (getMaskSet().maskLength = initialLength), 
444                                valid) break;
445                            }
446                            if (!valid) break;
447                        }
448                        if (!valid) return getMaskSet().validPositions = $.extend(!0, {}, positionsClone), 
449                        resetMaskSet(!0), !1;
450                    } else getMaskSet().validPositions[pos] = $.extend(!0, {}, validTest);
451                    return resetMaskSet(!0), !0;
452                }
453                function fillMissingNonMask(maskPos) {
454                    for (var pndx = maskPos - 1; pndx > -1 && !getMaskSet().validPositions[pndx]; pndx--) ;
455                    var testTemplate, testsFromPos;
456                    for (pndx++;
456 pndx < maskPos; pndx++) getMaskSet().validPositions[pndx] === undefined && (!1 === opts.jitMasking || opts.jitMasking > pndx) && (testsFromPos = getTests(pndx, getTestTemplate(pndx - 1).locator, pndx - 1).slice(), 
457                    "" === testsFromPos[testsFromPos.length - 1].match.def && testsFromPos.pop(), (testTemplate = determineTestTemplate(testsFromPos)) && (testTemplate.match.def === opts.radixPointDefinitionSymbol || !isMask(pndx, !0) || $.inArray(opts.radixPoint, getBuffer()) < pndx && testTemplate.match.fn && testTemplate.match.fn.test(getPlaceholder(pndx), getMaskSet(), pndx, !1, opts)) && !1 !== (result = _isValid(pndx, getPlaceholder(pndx, testTemplate.match, !0) || (null == testTemplate.match.fn ? testTemplate.match.def : "" !== getPlaceholder(pndx) ? getPlaceholder(pndx) : getBuffer()[pndx]), !0)) && (getMaskSet().validPositions[result.pos || pndx].generatedInput = !0));
458                }
459                strict = !0 === strict;
460                var maskPos = pos;
461                pos.begin !== undefined && (maskPos = isRTL && !isSelection(pos) ? pos.end : pos.begin);
462                var result = !0, positionsClone = $.extend(!0, {}, getMaskSet().validPositions);
463                if ($.isFunction(opts.preValidation) && !strict && !0 !== fromSetValid && (result = opts.preValidation(getBuffer(), maskPos, c, isSelection(pos), opts)), 
464                !0 === result) {
465                    if (fillMissingNonMask(maskPos), isSelection(pos) && (handleRemove(undefined, Inputmask.keyCode.DELETE, pos, !0), 
466                    maskPos = getMaskSet().p), maskPos < getMaskSet().maskLength && (maxLength === undefined || maskPos < maxLength) && (result = _isValid(maskPos, c, strict), 
467                    (!strict || !0 === fromSetValid) && !1 === result)) {
468                        var currentPosValid = getMaskSet().validPositions[maskPos];
469                        if (!currentPosValid || null !== currentPosValid.match.fn || currentPosValid.match.def !== c && c !== opts.skipOptionalPartCharacter) {
470                            if ((opts.insertMode || getMaskSet().validPositions[seekNext(maskPos)] === undefined) && !isMask(maskPos, !0)) for (var nPos = maskPos + 1, snPos = seekNext(maskPos); nPos <= snPos; nPos++) if (!1 !== (result = _isValid(nPos, c, strict))) {
471                                !function(originalPos, newPos) {
472                                    var vp = getMaskSet().validPositions[newPos];
473                                    if (vp) for (var targetLocator = vp.locator, tll = targetLocator.length, ps = originalPos; ps < newPos; ps++) if (getMaskSet().validPositions[ps] === undefined && !isMask(ps, !0)) {
474                                        var tests = getTests(ps).slice(), bestMatch = determineTestTemplate(tests, !0), equality = -1;
475                                        "" === tests[tests.length - 1].match.def && tests.pop(), $.each(tests, function(ndx, tst) {
476                                            for (var i = 0; i < tll; i++) {
477                                                if (tst.locator[i] === undefined || !checkAlternationMatch(tst.locator[i].toString().split(","), targetLocator[i].toString().split(","), tst.na)) {
478                                                    var targetAI = targetLocator[i], bestMatchAI = bestMatch.locator[i], tstAI = tst.locator[i];
479                                                    targetAI - bestMatchAI > Math.abs(targetAI - tstAI) && (bestMatch = tst);
480                                                    break;
481                                                }
482                                                equality < i && (equality = i, bestMatch = tst);
483                                            }
484                                        }), bestMatch = $.extend({}, bestMatch, {
485                                            input: getPlaceholder(ps, bestMatch.match, !0) || bestMatch.match.def
486                                        }), bestMatch.generatedInput = !0, setValidPosition(ps, bestMatch, !0), getMaskSet().validPositions[newPos] = undefined, 
487                                        _isValid(newPos, vp.input, !0);
488                                    }
489                                }(maskPos, result.pos !== undefined ? result.pos : nPos), maskPos = nPos;
490                                break;
491                            }
492                        } else result = {
493                            caret: seekNext(maskPos)
494                        };
495                    }
496                    !1 === result && opts.keepStatic && !strict && !0 !== fromAlternate && (result = function(pos, c, strict) {
497                        var lastAlt, alternation, altPos, prevAltPos, i, validPos, altNdxs, decisionPos, validPsClone = $.extend(!0, {}, getMaskSet().validPositions), isValidRslt = !1, lAltPos = getLastValidPosition();
498                        for (prevAltPos = getMaskSet().validPositions[lAltPos]; lAltPos >= 0; lAltPos--) if ((altPos = getMaskSet().validPositions[lAltPos]) && altPos.alternation !== undefined) {
499                            if (lastAlt = lAltPos, alternation = getMaskSet().validPositions[lastAlt].alternation, 
500                            prevAltPos.locator[altPos.alternation] !== altPos.locator[altPos.alternation]) break;
501                            prevAltPos = altPos;
502                        }
503                        if (alternation !== undefined) {
504                            decisionPos = parseInt(lastAlt);
505                            var decisionTaker = prevAltPos.locator[prevAltPos.alternation || alternation] !== undefined ? prevAltPos.locator[prevAltPos.alternation || alternation] : altNdxs[0];
506                            decisionTaker.length > 0 && (decisionTaker = decisionTaker.split(",")[0]);
507                            var possibilityPos = getMaskSet().validPositions[decisionPos], prevPos = getMaskSet().validPositions[decisionPos - 1];
508                            $.each(getTests(decisionPos, prevPos ? prevPos.locator : undefined, decisionPos - 1), function(ndx, test) {
509                                altNdxs = test.locator[alternation] ? test.locator[alternation].toString().split(",") : [];
510                                for (var mndx = 0; mndx < altNdxs.length; mndx++) {
511                                    var validInputs = [], staticInputsBeforePos = 0, staticInputsBeforePosAlternate = 0, verifyValidInput = !1;
512                                    if (decisionTaker < altNdxs[mndx] && (test.na === undefined || -1 === $.inArray(altNdxs[mndx], test.na.split(",")) || -1 === $.inArray(decisionTaker.toString(), altNdxs))) {
513                                        getMaskSet().validPositions[decisionPos] = $.extend(!0, {}, test);
514                                        var possibilities = getMaskSet().validPositions[decisionPos].locator;
515                                        for (getMaskSet().validPositions[decisionPos].locator[alternation] = parseInt(altNdxs[mndx]), 
516                                        null == test.match.fn ? (possibilityPos.input !== test.match.def && (verifyValidInput = !0, 
517                                        !0 !== possibilityPos.generatedInput && validInputs.push(possibilityPos.input)), 
518                                        staticInputsBeforePosAlternate++, getMaskSet().validPositions[decisionPos].generatedInput = !/[0-9a-bA-Z]/.test(test.match.def), 
519                                        getMaskSet().validPositions[decisionPos].input = test.match.def) : getMaskSet().validPositions[decisionPos].input = possibilityPos.input, 
520                                        i = decisionPos + 1; i < getLastValidPosition(undefined, !0) + 1; i++) validPos = getMaskSet().validPositions[i], 
521                                        validPos && !0 !== validPos.generatedInput && /[0-9a-bA-Z]/.test(validPos.input) ? validInputs.push(validPos.input) : i < pos && staticInputsBeforePos++, 
522                                        delete getMaskSet().validPositions[i];
523                                        for (verifyValidInput && validInputs[0] === test.match.def && validInputs.shift(), 
524                                        resetMaskSet(!0), isValidRslt = !0; validInputs.length > 0; ) {
525                                            var input = validInputs.shift();
526                                            if (input !== opts.skipOptionalPartCharacter && !(isValidRslt = isValid(getLastValidPosition(undefined, !0) + 1, input, !1, fromSetValid, !0))) break;
527                                        }
528                                        if (isValidRslt) {
529                                            getMaskSet().validPositions[decisionPos].locator = possibilities;
530                                            var targetLvp = getLastValidPosition(pos) + 1;
531                                            for (i = decisionPos + 1; i < getLastValidPosition() + 1; i++) ((validPos = getMaskSet().validPositions[i]) === undefined || null == validPos.match.fn) && i < pos + (staticInputsBeforePosAlternate - staticInputsBeforePos) && staticInputsBeforePosAlternate++;
532                                            pos += staticInputsBeforePosAlternate - staticInputsBeforePos, isValidRslt = isValid(pos > targetLvp ? targetLvp : pos, c, strict, fromSetValid, !0);
533                                        }
534                                        if (isValidRslt) return !1;
535                                        resetMaskSet(), getMaskSet().validPositions = $.extend(!0, {}, validPsClone);
536                                    }
537                                }
538                            });
539                        }
540                        return isValidRslt;
541                    }(maskPos, c, strict)), !0 === result && (result = {
542                        pos: maskPos
543                    });
544                }
545                if ($.isFunction(opts.postValidation) && !1 !== result && !strict && !0 !== fromSetValid) {
546                    var postResult = opts.postValidation(getBuffer(!0), result, opts);
547                    if (postResult.refreshFromBuffer && postResult.buffer) {
548                        var refresh = postResult.refreshFromBuffer;
549                        refreshFromBuffer(!0 === refresh ? refresh : refresh.start, refresh.end, postResult.buffer);
550                    }
551                    result = !0 === postResult ? result : postResult;
552                }
553                return result && result.pos === undefined && (result.pos = maskPos), !1 === result && (resetMaskSet(!0), 
554                getMaskSet().validPositions = $.extend(!0, {}, positionsClone)), result;
555            }
556            function isMask(pos, strict) {
557                var test = getTestTemplate(pos).match;
558                if ("" === test.def && (test = getTest(pos).match), null != test.fn) return test.fn;
559                if (!0 !== strict && pos > -1) {
560                    var tests = getTests(pos);
561                    return tests.length > 1 + ("" === tests[tests.length - 1].match.def ? 1 : 0);
562                }
563                return !1;
564            }
565            function seekNext(pos, newBlock) {
566                var maskL = getMaskSet().maskLength;
567                if (pos >= maskL) return maskL;
568                var position = pos;
569                for (getTests(maskL + 1).length > 1 && (getMaskTemplate(!0, maskL + 1, !0), maskL = getMaskSet().maskLength); ++position < maskL && (!0 === newBlock && (!0 !== getTest(position).match.newBlockMarker || !isMask(position)) || !0 !== newBlock && !isMask(position)); ) ;
570                return position;
571            }
572            function seekPrevious(pos, newBlock) {
573                var tests, position = pos;
574                if (position <= 0) return 0;
575                for (;
575--position > 0 && (!0 === newBlock && !0 !== getTest(position).match.newBlockMarker || !0 !== newBlock && !isMask(position) && (tests = getTests(position), 
576                tests.length < 2 || 2 === tests.length && "" === tests[1].match.def)); ) ;
577                return position;
578            }
579            function getBufferElement(position) {
580                return getMaskSet().validPositions[position] === undefined ? getPlaceholder(position) : getMaskSet().validPositions[position].input;
581            }
582            function writeBuffer(input, buffer, caretPos, event, triggerInputEvent) {
583                if (event && $.isFunction(opts.onBeforeWrite)) {
584                    var result = opts.onBeforeWrite(event, buffer, caretPos, opts);
585                    if (result) {
586                        if (result.refreshFromBuffer) {
587                            var refresh = result.refreshFromBuffer;
588                            refreshFromBuffer(!0 === refresh ? refresh : refresh.start, refresh.end, result.buffer || buffer), 
589                            buffer = getBuffer(!0);
590                        }
591                        caretPos !== undefined && (caretPos = result.caret !== undefined ? result.caret : caretPos);
592                    }
593                }
594                input !== undefined && (input.inputmask._valueSet(buffer.join("")), caretPos === undefined || event !== undefined && "blur" === event.type ? renderColorMask(input, buffer, caretPos) : android && "input" === event.type ? setTimeout(function() {
595                    caret(input, caretPos);
596                }, 0) : caret(input, caretPos), !0 === triggerInputEvent && (skipInputEvent = !0, 
597                $(input).trigger("input")));
598            }
599            function getPlaceholder(pos, test, returnPL) {
600                if (test = test || getTest(pos).match, test.placeholder !== undefined || !0 === returnPL) return $.isFunction(test.placeholder) ? test.placeholder(opts) : test.placeholder;
601                if (null === test.fn) {
602                    if (pos > -1 && getMaskSet().validPositions[pos] === undefined) {
603                        var prevTest, tests = getTests(pos), staticAlternations = [];
604                        if (tests.length > 1 + ("" === tests[tests.length - 1].match.def ? 1 : 0)) for (var i = 0; i < tests.length; i++) if (!0 !== tests[i].match.optionality && !0 !== tests[i].match.optionalQuantifier && (null === tests[i].match.fn || prevTest === undefined || !1 !== tests[i].match.fn.test(prevTest.match.def, getMaskSet(), pos, !0, opts)) && (staticAlternations.push(tests[i]), 
605                        null === tests[i].match.fn && (prevTest = tests[i]), staticAlternations.length > 1 && /[0-9a-bA-Z]/.test(staticAlternations[0].match.def))) return opts.placeholder.charAt(pos % opts.placeholder.length);
606                    }
607                    return test.def;
608                }
609                return opts.placeholder.charAt(pos % opts.placeholder.length);
610            }
611            function checkVal(input, writeOut, strict, nptvl, initiatingEvent) {
612                function isTemplateMatch(ndx, charCodes) {
613                    return -1 !== getBufferTemplate().slice(ndx, seekNext(ndx)).join("").indexOf(charCodes) && !isMask(ndx) && getTest(ndx).match.nativeDef === charCodes.charAt(charCodes.length - 1);
614                }
615                var inputValue = nptvl.slice(), charCodes = "", initialNdx = 0, result = undefined;
616                if (resetMaskSet(), getMaskSet().p = seekNext(-1), !strict) if (!0 !== opts.autoUnmask) {
617                    var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp("^" + Inputmask.escapeRegex(staticInput), "g"));
618                    matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length), 
619                    initialNdx = seekNext(initialNdx));
620                } else initialNdx = seekNext(initialNdx);
621                if ($.each(inputValue, function(ndx, charCode) {
622                    if (charCode !== undefined) {
623                        var keypress = new $.Event("_checkval");
624                        keypress.which = charCode.charCodeAt(0), charCo
624des += charCode;
625                        var lvp = getLastValidPosition(undefined, !0), lvTest = getMaskSet().validPositions[lvp], nextTest = getTestTemplate(lvp + 1, lvTest ? lvTest.locator.slice() : undefined, lvp);
626                        if (!isTemplateMatch(initialNdx, charCodes) || strict || opts.autoUnmask) {
627                            var pos = strict ? ndx : null == nextTest.match.fn && nextTest.match.optionality && lvp + 1 < getMaskSet().p ? lvp + 1 : getMaskSet().p;
628                            result = EventHandlers.keypressEvent.call(input, keypress, !0, !1, strict, pos), 
629                            initialNdx = pos + 1, charCodes = "";
630                        } else result = EventHandlers.keypressEvent.call(input, keypress, !0, !1, !0, lvp + 1);
631                        if (!1 !== result && !strict && $.isFunction(opts.onBeforeWrite)) {
632                            var fp = result.forwardPosition;
633                            if (result = opts.onBeforeWrite(keypress, getBuffer(), result.forwardPosition, opts), 
634                            result.forwardPosition = fp, result && result.refreshFromBuffer) {
635                                var refresh = result.refreshFromBuffer;
636                                refreshFromBuffer(!0 === refresh ? refresh : refresh.start, refresh.end, result.buffer), 
637                                resetMaskSet(!0), result.caret && (getMaskSet().p = result.caret, result.forwardPosition = result.caret);
638                            }
639                        }
640                    }
641                }), writeOut) {
642                    var caretPos = undefined;
643                    document.activeElement === input && result && (caretPos = opts.numericInput ? seekPrevious(result.forwardPosition) : result.forwardPosition), 
644                    writeBuffer(input, getBuffer(), caretPos, initiatingEvent || new $.Event("checkval"), initiatingEvent && "input" === initiatingEvent.type);
645                }
646            }
647            function unmaskedvalue(input) {
648                if (input) {
649                    if (input.inputmask === undefined) return input.value;
650                    input.inputmask && input.inputmask.refreshValue && EventHandlers.setValueEvent.call(input);
651                }
652                var umValue = [], vps = getMaskSet().validPositions;
653                for (var pndx in vps) vps[pndx].match && null != vps[pndx].match.fn && umValue.push(vps[pndx].input);
654                var unmaskedValue = 0 === umValue.length ? "" : (isRTL ? umValue.reverse() : umValue).join("");
655                if ($.isFunction(opts.onUnMask)) {
656                    var bufferValue = (isRTL ? getBuffer().slice().reverse() : getBuffer()).join("");
657                    unmaskedValue = opts.onUnMask(bufferValue, unmaskedValue, opts);
658                }
659                return unmaskedValue;
660            }
661            function caret(input, begin, end, notranslate) {
662                function translatePosition(pos) {
663                    if (!0 !== notranslate && isRTL && "number" == typeof pos && (!opts.greedy || "" !== opts.placeholder)) {
664                        pos = getBuffer().join("").length - pos;
665                    }
666                    return pos;
667                }
668                var range;
669                if (begin === undefined) return input.setSelectionRange ? (begin = input.selectionStart, 
670                end = input.selectionEnd) : window.getSelection ? (range = window.getSelection().getRangeAt(0), 
671                range.commonAncestorContainer.parentNode !== input && range.commonAncestorContainer !== input || (begin = range.startOffset, 
672                end = range.endOffset)) : document.selection && document.selection.createRange && (range = document.selection.createRange(), 
673                begin = 0 - range.duplicate().moveStart("character", -input.inputmask._valueGet().length), 
674                end = begin + range.text.length), {
675                    begin: translatePosition(begin),
676                    end: translatePosition(end)
677                };
678                if (begin.begin !== undefined && (end = begin.end, begin = begin.begin), "number" == typeof begin) {
679                    begin = translatePosition(begin), end = translatePosition(en
679d), end = "number" == typeof end ? end : begin;
680                    var scrollCalc = parseInt(((input.ownerDocument.defaultView || window).getComputedStyle ? (input.ownerDocument.defaultView || window).getComputedStyle(input, null) : input.currentStyle).fontSize) * end;
681                    if (input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0, mobile || !1 !== opts.insertMode || begin !== end || end++, 
682                    input.setSelectionRange) input.selectionStart = begin, input.selectionEnd = end; else if (window.getSelection) {
683                        if (range = document.createRange(), input.firstChild === undefined || null === input.firstChild) {
684                            var textNode = document.createTextNode("");
685                            input.appendChild(textNode);
686                        }
687                        range.setStart(input.firstChild, begin < input.inputmask._valueGet().length ? begin : input.inputmask._valueGet().length), 
688                        range.setEnd(input.firstChild, end < input.inputmask._valueGet().length ? end : input.inputmask._valueGet().length), 
689                        range.collapse(!0);
690                        var sel = window.getSelection();
691                        sel.removeAllRanges(), sel.addRange(range);
692                    } else input.createTextRange && (range = input.createTextRange(), range.collapse(!0), 
693                    range.moveEnd("character", end), range.moveStart("character", begin), range.select());
694                    renderColorMask(input, undefined, {
695                        begin: begin,
696                        end: end
697                    });
698                }
699            }
700            function determineLastRequiredPosition(returnDefinition) {
701                var pos, testPos, buffer = getBuffer(), bl = buffer.length, lvp = getLastValidPosition(), positions = {}, lvTest = getMaskSet().validPositions[lvp], ndxIntlzr = lvTest !== undefined ? lvTest.locator.slice() : undefined;
702                for (pos = lvp + 1; pos < buffer.length; pos++) testPos = getTestTemplate(pos, ndxIntlzr, pos - 1), 
703                ndxIntlzr = testPos.locator.slice(), positions[pos] = $.extend(!0, {}, testPos);
704                var lvTestAlt = lvTest && lvTest.alternation !== undefined ? lvTest.locator[lvTest.alternation] : undefined;
705                for (pos = bl - 1; pos > lvp && (testPos = positions[pos], (testPos.match.optionality || testPos.match.optionalQuantifier && testPos.match.newBlockMarker || lvTestAlt && (lvTestAlt !== positions[pos].locator[lvTest.alternation] && null != testPos.match.fn || null === testPos.match.fn && testPos.locator[lvTest.alternation] && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAlt.toString().split(",")) && "" !== getTests(pos)[0].def)) && buffer[pos] === getPlaceholder(pos, testPos.match)); pos--) bl--;
706                return returnDefinition ? {
707                    l: bl,
708                    def: positions[bl] ? positions[bl].match : undefined
709                } : bl;
710            }
711            function clearOptionalTail(buffer) {
712                for (var validPos, rl = determineLastRequiredPosition(), bl = buffer.length, lv = getMaskSet().validPositions[getLastValidPosition()]; rl < bl && !isMask(rl, !0) && (validPos = lv !== undefined ? getTestTemplate(rl, lv.locator.slice(""), lv) : getTest(rl)) && !0 !== validPos.match.optionality && (!0 !== validPos.match.optionalQuantifier && !0 !== validPos.match.newBlockMarker || rl + 1 === bl && "" === (lv !== undefined ? getTestTemplate(rl + 1, lv.locator.slice(""), lv) : getTest(rl + 1)).match.def); ) rl++;
713                for (;(validPos = getMaskSet().validPositions[rl - 1]) && validPos && validPos.match.optionality && validPos.input === opts.skipOptionalPartCharacter; ) rl--;
714                return buffer.splice(rl), buffer;
715            }
716            function isComplete(buffer) {
717                if ($.isFunction(opts.isComplete)) return opts.isComplete(buffer, opts);
718                if ("*" === opts.repeat) return undefined;
719                var complete = !1, lrp = determineLastRequiredPosition(!0), aml = seekPrevious(lrp.l);
720                if (lrp.def === undefined || lrp.def.newBlockMarker || lrp.def.optionality || lrp.def.optionalQuantifier) {
721                    complete = !0;
722                    for (var i = 0; i <= aml; i++) {
723                        var test = getTestTemplate(i).match;
724                        if (null !== test.fn && getMaskSet().validPositions[i] === undefined && !0 !== test.optionality && !0 !== test.optionalQuantifier || null === test.fn && buffer[i] !== getPlaceholder(i, test)) {
725                            complete = !1;
726                            break;
727                        }
728                    }
729                }
730                return complete;
731            }
732            function handleRemove(input, k, pos, strict, fromIsValid) {
733                if ((opts.numericInput || isRTL) && (k === Inputmask.keyCode.BACKSPACE ? k = Inputmask.keyCode.DELETE : k === Inputmask.keyCode.DELETE && (k = Inputmask.keyCode.BACKSPACE), 
734                isRTL)) {
735                    var pend = pos.end;
736                    pos.end = pos.begin, pos.begin = pend;
737                }
738                k === Inputmask.keyCode.BACKSPACE && (pos.end - pos.begin < 1 || !1 === opts.insertMode) ? (pos.begin = seekPrevious(pos.begin), 
739                getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator && pos.begin--) : k === Inputmask.keyCode.DELETE && pos.begin === pos.end && (pos.end = isMask(pos.end, !0) && getMaskSet().validPositions[pos.end] && getMaskSet().validPositions[pos.end].input !== opts.radixPoint ? pos.end + 1 : seekNext(pos.end) + 1, 
740                getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator && pos.end++), 
741                stripValidPositions(pos.begin, pos.end, !1, strict), !0 !== strict && function() {
742                    if (opts.keepStatic) {
743                        for (var validInputs = [], lastAlt = getLastValidPosition(-1, !0), positionsClone = $.extend(!0, {}, getMaskSet().validPositions), prevAltPos = getMaskSet().validPositions[lastAlt]; lastAlt >= 0; lastAlt--) {
744                            var altPos = getMaskSet().validPositions[lastAlt];
745                            if (altPos) {
746                                if (!0 !== altPos.generatedInput && /[0-9a-bA-Z]/.test(altPos.input) && validInputs.push(altPos.input), 
747                                delete getMaskSet().validPositions[lastAlt], altPos.alternation !== undefined && altPos.locator[altPos.alternation] !== prevAltPos.locator[altPos.alternation]) break;
748                                prevAltPos = altPos;
749                            }
750                        }
751                        if (lastAlt > -1) for (getMaskSet().p = seekNext(getLastValidPosition(-1, !0)); validInputs.length > 0; ) {
752                            var keypress = new $.Event("keypress");
753                            keypress.which = validInputs.pop().charCodeAt(0), EventHandlers.keypressEvent.call(input, keypress, !0, !1, !1, getMaskSet().p);
754                        } else getMaskSet().validPositions = $.extend(!0, {}, positionsClone);
755                    }
756                }();
757                var lvp = getLastValidPosition(pos.begin, !0);
758                if (lvp < pos.begin) getMaskSet().p = seekNext(lvp); else if (!0 !== strict && (getMaskSet().p = pos.begin, 
759                !0 !== fromIsValid)) for (;getMaskSet().p < lvp && getMaskSet().validPositions[getMaskSet().p] === undefined; ) getMaskSet().p++;
760            }
761            function initializeColorMask(input) {
762                function findCaretPos(clientx) {
763                    var caretPos, e = document.createElement("span");
764                    for (var style in computedStyle) isNaN(style) && -1 !== style.indexOf("font") && (e.style[style] = computedStyle[style]);
765                    e.style.textTransform = computedStyle.textTransform, e.style.letterSpacing = computedStyle.letterSpacing, 
766                    e.style.position = "absolute", e.style.height = "auto", e.style.width = "auto", 
767                    e.style.visibility = "hidden", e.style.whiteSpace = "nowrap", document.body.appendChild(e);
768                    var itl, inputText = input.inputmask._valueGet(), previousWidth = 0;
769                    for (caretPos = 0, itl = inputText.length; caretPos <= itl; caretPos++) {
770                        if (e.innerHTML += inputText.charAt(caretPos) || "_", e.offsetWidth >= clientx) {
771                            var offset1 = clientx - previousWidth, offset2 = e.offsetWidth - clientx;
772                            e.innerHTML = inputText.charAt(caretPos), offset1 -= e.offsetWidth / 3, caretPos = offset1 < offset2 ? caretPos - 1 : caretPos;
773                            break;
774                        }
775                        previousWidth = e.offsetWidth;
776                    }
777                    return document.body.removeChild(e), caretPos;
778                }
779                function position() {
780                    colorMask.style.position = "absolute", colorMask.style.top = offset.top + "px", 
781                    colorMask.style.left = offset.left + "px", colorMask.style.width = parseInt(input.offsetWidth) - parseInt(computedStyle.paddingLeft) - parseInt(computedStyle.paddingRight) - parseInt(computedStyle.borderLeftWidth) - parseInt(computedStyle.borderRightWidth) + "px", 
782                    colorMask.style.height = parseInt(input.offsetHeight) - parseInt(computedStyle.paddingTop) - parseInt(computedStyle.paddingBottom) - parseInt(computedStyle.borderTopWidth) - parseInt(computedStyle.borderBottomWidth) + "px", 
783                    colorMask.style.lineHeight = colorMask.style.height, colorMask.style.zIndex = isNaN(computedStyle.zIndex) ? -1 : computedStyle.zIndex - 1, 
784                    colorMask.style.webkitAppearance = "textfield", colorMask.style.mozAppearance = "textfield", 
785                    colorMask.style.Appearance = "textfield";
786                }
787                var offset = $(input).position(), computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null);
788                colorMask = document.createElement("div"), document.body.appendChild(colorMask);
789                for (var style in computedStyle) computedStyle.hasOwnProperty(style) && isNaN(style) && "cssText" !== style && -1 == style.indexOf("webkit") && (colorMask.style[style] = computedStyle[style]);
790                input.style.backgroundColor = "transparent", input.style.color = "transparent", 
791                input.style.webkitAppearance = "caret", input.style.mozAppearance = "caret", input.style.Appearance = "caret", 
792                position(), $(window).on("resize", function(e) {
793                    offset = $(input).position(), computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null), 
794                    position();
795                }), $(input).on("click", function(e) {
796                    return caret(input, findCaretPos(e.clientX)), EventHandlers.clickEvent.call(this, [ e ]);
797                }), $(input).on("keydown", function(e) {
798                    e.shiftKey || !1 === opts.insertMode || setTimeout(function() {
799                        renderColorMask(input);
800                    }, 0);
801                });
802            }
803            function renderColorMask(input, buffer, caretPos) {
804                function handleStatic() {
805                    isStatic || null !== test.fn && testPos.input !== undefined ? isStatic && null !== test.fn && testPos.input !== undefined && (isStatic = !1, 
806                    maskTemplate += "</span>") : (isStatic = !0, maskTemplate += "<span class='im-static''>");
807                }
808                if (colorMask !== undefined) {
809                    buffer = buffer || getBuffer(), caretPos === undefined ? caretPos = caret(input) : caretPos.begin === undefined && (caretPos = {
810                        begin: caretPos,
811                        end: caretPos
812                    });
813                    var maskTemplate = "", isStatic = !1;
814                    if ("" != buffer) {
815                        var ndxIntlzr, test, testPos, pos = 0, lvp = getLastValidPosition();
816                        do {
817                            pos === caretPos.begin && document.activeElement === input && (maskTemplate += "<span class='im-caret' style='border-right-width: 1px;border-right-style: solid;'></span>"), 
818                            getMaskSet().validPositions[pos] ? (testPos = getMaskSet().validPositions[pos], 
819                            test = testPos.match, ndxIntlzr = testPos.locator.slice(), handleStatic(), maskTemplate += testPos.input) : (testPos = getTestTemplate(pos, ndxIntlzr, pos - 1), 
820                            test = testPos.match, ndxIntlzr = testPos.locator.slice(), (!1 === opts.jitMasking || pos < lvp || "number" == typeof opts.jitMasking && isFinite(opts.jitMasking) && opts.jitMasking > pos) && (handleStatic(), 
821                            maskTemplate += getPlaceholder(pos, test))), pos++;
822                        } while ((maxLength === undefined || pos < maxLength) && (null !== test.fn || "" !== test.def) || lvp > pos);
823                    }
824                    colorMask.innerHTML = maskTemplate;
825                }
826            }
827            maskset = maskset || this.maskset, opts = opts || this.opts;
828            var undoValue, $el, maxLength, colorMask, valueBuffer, el = this.el, isRTL = this.isRTL, skipKeyPressEvent = !1, skipInputEvent = !1, ignorable = !1, mouseEnter = !1, EventRuler = {
829                on: function(input, eventName, eventHandler) {
830                    var ev = function(e) {
831                        if (this.inputmask === undefined && "FORM" !== this.nodeName) {
832                            var imOpts = $.data(this, "_inputmask_opts");
833                            imOpts ? new Inputmask(imOpts).mask(this) : EventRuler.off(this);
834                        } else {
835                            if ("setvalue" === e.type || "FORM" === this.nodeName || !(this.disabled || this.readOnly && !("keydown" === e.type && e.ctrlKey && 67 === e.keyCode || !1 === opts.tabThrough && e.keyCode === Inputmask.keyCode.TAB))) {
836                                switch (e.type) {
837                                  case "input":
838                                    if (!0 === skipInputEvent) return skipInputEvent = !1, e.preventDefault();
839                                    break;
840
841                                  case "keydown":
842                                    skipKeyPressEvent = !1, skipInputEvent = !1;
843                                    break;
844
845                                  case "keypress":
846                                    if (!0 === skipKeyPressEvent) return e.preventDefault();
847                                    skipKeyPressEvent = !0;
848                                    break;
849
850                                  case "click":
851                                    if (iemobile || iphone) {
852                                        var that = this, args = arguments;
853                                        return setTimeout(function() {
854                                            eventHandler.apply(that, args);
855                                        }, 0), !1;
856                                    }
857                                }
858                                var returnVal = eventHandler.apply(this, arguments);
859                                return !1 === returnVal && (e.preventDefault(), e.stopPropagation()), returnVal;
860                            }
861                            e.preventDefault();
862                        }
863                    };
864                    input.inputmask.events[eventName] = input.inputmask.events[eventName] || [], input.inputmask.events[eventName].push(ev), 
865                    -1 !== $.inArray(eventName, [ "submit", "reset" ]) ? null != input.form && $(input.form).on(eventName, ev) : $(input).on(eventName, ev);
866                },
867                off: function(input, event) {
868                    if (input.inputmask && input.inputmask.events) {
869                        var events;
870                        event ? (events = [], events[event] = input.inputmask.events[event]) : events = input.inputmask.events, 
871                        $.each(events, function(eventName, evArr) {
872                            for (;evArr.length > 0; ) {
873                                var ev = evArr.pop();
874                                -1 !== $.inArray(eventName, [ "submit", "reset" ]) ? null != input.form && $(input.form).off(eventName, ev) : $(input).off(eventName, ev);
875                            }
876                            delete input.inputmask.events[eventName];
877                        });
878                    }
879                }
880            }, EventHandlers = {
881                keydownEvent: function(e) {
882                    var input = this, $input = $(input), k = e.keyCode, pos = caret(input);
883                    if (k === Inputmask.keyCode.BACKSPACE || k === Inputmask.keyCode.DELETE || iphone && k === Inputmask.keyCode.BACKSPACE_SAFARI || e.ctrlKey && k === Inputmask.keyCode.X && !function(eventName) {
884                        var el = document.createElement("input"), evName = "on" + eventName, isSupported = evName in el;
885                        return isSupported || (el.setAttribute(evName, "return;"), isSupported = "function" == typeof el[evName]), 
886                        el = null, isSupported;
887                    }("cut")) e.preventDefault(), handleRemove(input, k, pos), writeBuffer(input, getBuffer(!0), getMaskSet().p, e, input.inputmask._valueGet() !== getBuffer().join("")), 
888                    input.inputmask._valueGet() === getBufferTemplate().join("") ? $input.trigger("cleared") : !0 === isComplete(getBuffer()) && $input.trigger("complete"); else if (k === Inputmask.keyCode.END || k === Inputmask.keyCode.PAGE_DOWN) {
889                        e.preventDefault();
890                        var caretPos = seekNext(getLastValidPosition());
891                        opts.insertMode || caretPos !== getMaskSet().maskLength || e.shiftKey || caretPos--, 
892                        caret(input, e.shiftKey ? pos.begin : caretPos, caretPos, !0);
893                    } else k === Inputmask.keyCode.HOME && !e.shiftKey || k === Inputmask.keyCode.PAGE_UP ? (e.preventDefault(), 
894                    caret(input, 0, e.shiftKey ? pos.begin : 0, !0)) : (opts.undoOnEscape && k === Inputmask.keyCode.ESCAPE || 90 === k && e.ctrlKey) && !0 !== e.altKey ? (checkVal(input, !0, !1, undoValue.split("")), 
895                    $input.trigger("click")) : k !== Inputmask.keyCode.INSERT || e.shiftKey || e.ctrlKey ? !0 === opts.tabThrough && k === Inputmask.keyCode.TAB ? (!0 === e.shiftKey ? (null === getTest(pos.begin).match.fn && (pos.begin = seekNext(pos.begin)), 
896                    pos.end = seekPrevious(pos.begin, !0), pos.begin = seekPrevious(pos.end, !0)) : (pos.begin = seekNext(pos.begin, !0), 
897                    pos.end = seekNext(pos.begin, !0), pos.end < getMaskSet().maskLength && pos.end--), 
898                    pos.begin < getMaskSet().maskLength && (e.preventDefault(), caret(input, pos.begin, pos.end))) : e.shiftKey || !1 === opts.insertMode && (k === Inputmask.keyCode.RIGHT ? setTimeout(function() {
899                        var caretPos = caret(input);
900                        caret(input, caretPos.begin);
901                    }, 0) : k === Inputmask.keyCode.LEFT && setTimeout(function() {
902                        var caretPos = caret(input);
903                        caret(input, isRTL ? caretPos.begin + 1 : caretPos.begin - 1);
904                    }, 0)) : (opts.insertMode = !opts.insertMode, caret(input, opts.insertMode || pos.begin !== getMaskSet().maskLength ? pos.begin : pos.begin - 1));
905                    opts.onKeyDown.call(this, e, getBuffer(), caret(input).begin, opts), ignorable = -1 !== $.inArray(k, opts.ignorables);
906                },
907                keypressEvent: function(e, checkval, writeOut, strict, ndx) {
908                    var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
909                    if (!(!0 === checkval || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) return k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("") && (undoValue = getBuffer().join(""), 
910                    setTimeout(function() {
911                        $input.trigger("change");
912                    }, 0)), !0;
913                    if (k) {
914                        46 === k && !1 === e.shiftKey && "" !== opts.radixPoint && (k = opts.radixPoint.charCodeAt(0));
915                        var forwardPosition, pos = checkval ? {
916                            begin: ndx,
917                            end: ndx
918                        } : caret(input), c = String.fromCharCode(k);
919                        getMaskSet().writeOutBuffer = !0;
920                        var valResult = isValid(pos, c, strict);
921                        if (!1 !== valResult && (resetMaskSet(!0), forwardPosition = valResult.caret !== undefined ? valResult.caret : checkval ? valResult.pos + 1 : seekNext(valResult.pos), 
922                        getMaskSet().p = forwardPosition), !1 !== writeOut && (setTimeout(function() {
923                            opts.onKeyValidation.call(input, k, valResult, opts);
924                        }, 0), getMaskSet().writeOutBuffer && !1 !== valResult)) {
925                            var buffer = getBuffer();
926                            writeBuffer(input, buffer, opts.numericInput && valResult.caret === undefined ? seekPrevious(forwardPosition) : forwardPosition, e, !0 !== checkval), 
927                            !0 !== checkval && setTimeout(function() {
928                                !0 === isComplete(buffer) && $input.trigger("complete");
929                            }, 0);
930                        }
931                        if (e.preventDefault(), checkval) return !1 !== valResult && (valResult.forwardPosition = forwardPosition), 
932                        valResult;
933                    }
934                },
935                pasteEvent: function(e) {
936                    var tempValue, input = this, ev = e.originalEvent || e, $input = $(input), inputValue = input.inputmask._valueGet(!0), caretPos = caret(input);
937                    isRTL && (tempValue = caretPos.end, caretPos.end = caretPos.begin, caretPos.begin = tempValue);
938                    var valueBeforeCaret = inputValue.substr(0, caretPos.begin), valueAfterCaret = inputValue.substr(caretPos.end, inputValue.length);
939                    if (valueBeforeCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(0, caretPos.begin).join("") && (valueBeforeCaret = ""), 
940                    valueAfterCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(caretPos.end).join("") && (valueAfterCaret = ""), 
941                    isRTL && (tempValue = valueBeforeCaret, valueBeforeCaret = valueAfterCaret, valueAfterCaret = tempValue), 
942                    window.clipboardData && window.clipboardData.getData) inputValue = valueBeforeCaret + window.clipboardData.getData("Text") + valueAfterCaret; else {
943                        if (!ev.clipboardData || !ev.clipboardData.getData) return !0;
944                        inputValue = valueBeforeCaret + ev.clipboardData.getData("text/plain") + valueAfterCaret;
945                    }
946                    var pasteValue = inputValue;
947                    if ($.isFunction(opts.onBeforePaste)) {
948                        if (!1 === (pasteValue = opts.onBeforePaste(inputValue, opts))) return e.preventDefault();
949                        pasteValue || (pasteValue = inputValue);
950                    }
951                    return checkVal(input, !1, !1, isRTL ? pasteValue.split("").reverse() : pasteValue.toString().split("")), 
952                    writeBuffer(input, getBuffer(), seekNext(getLastValidPosition()), e, undoValue !== getBuffer().join("")), 
953                    !0 === isComplete(getBuffer()) && $input.trigger("complete"), e.preventDefault();
954                },
955                inputFallBackEvent: function(e) {
956                    var input = this, inputValue = input.inputmask._valueGet();
957                    if (getBuffer().join("") !== inputValue) {
958                        var caretPos = caret(input);
959                        if ("." === inputValue.charAt(caretPos.begin - 1) && "" !== opts.radixPoint && (inputValue = inputValue.split(""), 
960                        inputValue[caretPos.begin - 1] = opts.radixPoint.charAt(0), inputValue = inputValue.join("")), 
961                        inputValue.charAt(caretPos.begin - 1) === opts.radixPoint && inputValue.length > getBuffer().length) {
962                            var keypress = new $.Event("keypress");
963                            return keypress.which = opts.radixPoint.charCodeAt(0), EventHandlers.keypressEvent.call(input, keypress, !0, !0, !1, caretPos.begin), 
964                            !1;
965                        }
966                        if (inputValue = inputValue.replace(new RegExp("(" + Inputmask.escapeRegex(getBufferTemplate().join("")) + ")*"), ""), 
967                        iemobile) {
968                            var inputChar = inputValue.replace(getBuffer().join(""), "");
969                            if (1 === inputChar.length) {
970                                var keypress = new $.Event("keypress");
971                                return keypress.which = inputChar.charCodeAt(0), EventHandlers.keypressEvent.call(input, keypress, !0, !0, !1, getMaskSet().validPositions[caretPos.begin - 1] ? caretPos.begin : caretPos.begin - 1), 
972                                !1;
973                            }
974                        }
975                        if (caretPos.begin > inputValue.length && (caret(input, inputValue.length), caretPos = caret(input)), 
976                        getBuffer().length - inputValue.length != 1 || inputValue.charAt(caretPos.begin) === getBuffer()[caretPos.begin] || inputValue.charAt(caretPos.begin + 1) === getBuffer()[caretPos.begin] || isMask(caretPos.begin)) {
977                            var stickyParts = [], bufferTemplate = getBufferTemplate().join("");
978                            for (stickyParts.push(inputValue.substr(0, caretPos.begin)), stickyParts.push(inputValue.substr(caretPos.begin)); null === inputValue.match(Inputmask.escapeRegex(bufferTemplate) + "$"); ) bufferTemplate = bufferTemplate.slice(1);
979                            inputValue = inputValue.replace(bufferTemplate, ""), $.isFunction(opts.onBeforeMask) && (inputValue = opts.onBeforeMask(inputValue, opts) || inputValue), 
980                            checkVal(input, !0, !1, inputValue.split(""), e), function(input, frontPart, backPart) {
981                                var targetPos = caret(input).begin, currentValue = input.inputmask._valueGet(), pos = currentValue.indexOf(frontPart), currentPos = targetPos;
982                                if (0 === pos && targetPos !== frontPart.length) targetPos = frontPart.length; else {
983                                    for (;null === currentValue.match(Inputmask.escapeRegex(backPart) + "$"); ) backPart = backPart.substr(1);
984                                    var pos2 = currentValue.indexOf(backPart);
985                                    -1 !== pos2 && "" !== backPart && targetPos > pos2 && pos2 > pos && (targetPos = pos2);
986                                }
987                                isMask(targetPos) || (targetPos = seekNext(targetPos)), currentPos !== targetPos && (caret(input, targetPos), 
988                                android && setTimeout(function() {
989                                    caret(input, targetPos);
990                                }, 0));
991                            }(input, stickyParts[0], stickyParts[1]), !0 === isComplete(getBuffer()) && $(input).trigger("complete");
992                        } else e.keyCode = Inputmask.keyCode.BACKSPACE, EventHandlers.keydownEvent.call(input, e);
993                        e.preventDefault();
994                    }
995                },
996                setValueEvent: function(e) {
997                    this.inputmask.refreshValue = !1;
998                    var input = this, value = input.inputmask._valueGet(!0);
999                    $.isFunction(opts.onBeforeMask) && (value = opts.onBeforeMask(value, opts) || value), 
1000                    value = value.split(""), checkVal(input, !0, !1, isRTL ? value.reverse() : value), 
1001                    undoValue = getBuffer().join(""), (opts.clearMaskOnLostFocus || opts.clearIncomplete) && input.inputmask._valueGet() === getBufferTemplate().join("") && input.inputmask._valueSet("");
1002                },
1003                focusEvent: function(e) {
1004                    var input = this, nptValue = input.inputmask._valueGet();
1005                    opts.showMaskOnFocus && (!opts.showMaskOnHover || opts.showMaskOnHover && "" === nptValue) && (input.inputmask._valueGet() !== getBuffer().join("") ? writeBuffer(input, getBuffer(), seekNext(getLastValidPosition())) : !1 === mouseEnter && caret(input, seekNext(getLastValidPosition()))), 
1006                    !0 === opts.positionCaretOnTab && !1 === mouseEnter && (writeBuffer(input, getBuffer(), caret(input)), 
1007                    EventHandlers.clickEvent.apply(input, [ e, !0 ])), undoValue = getBuffer().join("");
1008                },
1009                mouseleaveEvent: function(e) {
1010                    var input = this;
1011                    if (mouseEnter = !1, opts.clearMaskOnLostFocus && document.activeElement !== input) {
1012                        var buffer = getBuffer().slice(), nptValue = input.inputmask._valueGet();
1013                        nptValue !== input.getAttribute("placeholder") && "" !== nptValue && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer), 
1014                        writeBuffer(input, buffer));
1015                    }
1016                },
1017                clickEvent: function(e, tabbed) {
1018                    function doRadixFocus(clickPos) {
1019                        if ("" !== opts.radixPoint) {
1020                            var vps = getMaskSet().validPositions;
1021                            if (vps[clickPos] === undefined || vps[clickPos].input === getPlaceholder(clickPos)) {
1022                                if (clickPos < seekNext(-1)) return !0;
1023                                var radixPos = $.inArray(opts.radixPoint, getBuffer());
1024                                if (-1 !== radixPos) {
1025                                    for (var vp in vps) if (radixPos < vp && vps[vp].input !== getPlaceholder(vp)) return !1;
1026                                    return !0;
1027                                }
1028                            }
1029                        }
1030                        return !1;
1031                    }
1032                    var input = this;
1033                    setTimeout(function() {
1034                        if (document.activeElement === input) {
1035                            var selectedCaret = caret(input);
1036                            if (tabbed && (isRTL ? selectedCaret.end = selectedCaret.begin : selectedCaret.begin = selectedCaret.end), 
1037                            selectedCaret.begin === selectedCaret.end) switch (opts.positionCaretOnClick) {
1038                              case "none":
1039                                break;
1040
1041                              case "radixFocus":
1042                                if (doRadixFocus(selectedCaret.begin)) {
1043                                    var radixPos = getBuffer().join("").indexOf(opts.radixPoint);
1044                                    caret(input, opts.numericInput ? seekNext(radixPos) : radixPos);
1045                                    break;
1046                                }
1047
1048                              default:
1049                                var clickPosition = selectedCaret.begin, lvclickPosition = getLastValidPosition(clickPosition, !0), lastPosition = seekNext(lvclickPosition);
1050                                if (clickPosition < lastPosition) caret(input, isMask(clickPosition) || isMask(clickPosition - 1) ? clickPosition : seekNext(clickPosition)); else {
1051                                    var placeholder = getPlaceholder(lastPosition), lvp = getMaskSet().validPositions[lvclickPosition], tt = getTestTemplate(lastPosition, lvp ? lvp.match.locator : undefined, lvp);
1052                                    if ("" !== placeholder && getBuffer()[lastPosition] !== placeholder && !0 !== tt.match.optionalQuantifier || !isMask(lastPosition) && tt.match.def === placeholder) {
1053                                        var newPos = seekNext(lastPosition);
1054                                        clickPosition >= newPos && (lastPosition = newPos);
1055                                    }
1056                                    caret(input, lastPosition);
1057                                }
1058                            }
1059                        }
1060                    }, 0);
1061                },
1062                dblclickEvent: function(e) {
1063                    var input = this;
1064                    setTimeout(function() {
1065                        caret(input, 0, seekNext(getLastValidPosition()));
1066                    }, 0);
1067                },
1068                cutEvent: function(e) {
1069                    var input = this, $input = $(input), pos = caret(input), ev = e.originalEvent || e, clipboardData = window.clipboardData || ev.clipboardData, clipData = isRTL ? getBuffer().slice(pos.end, pos.begin) : getBuffer().slice(pos.begin, pos.end);
1070                    clipboardData.setData("text", isRTL ? clipData.reverse().join("") : clip
1070Data.join("")), 
1071                    document.execCommand && document.execCommand("copy"), handleRemove(input, Inputmask.keyCode.DELETE, pos), 
1072                    writeBuffer(input, getBuffer(), getMaskSet().p, e, undoValue !== getBuffer().join("")), 
1073                    input.inputmask._valueGet() === getBufferTemplate().join("") && $input.trigger("cleared");
1074                },
1075                blurEvent: function(e) {
1076                    var $input = $(this), input = this;
1077                    if (input.inputmask) {
1078                        var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
1079                        "" !== nptValue && (opts.clearMaskOnLostFocus && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer)), 
1080                        !1 === isComplete(buffer) && (setTimeout(function() {
1081                            $input.trigger("incomplete");
1082                        }, 0), opts.clearIncomplete && (resetMaskSet(), buffer = opts.clearMaskOnLostFocus ? [] : getBufferTemplate().slice())), 
1083                        writeBuffer(input, buffer, undefined, e)), undoValue !== getBuffer().join("") && (undoValue = buffer.join(""), 
1084                        $input.trigger("change"));
1085                    }
1086                },
1087                mouseenterEvent: function(e) {
1088                    var input = this;
1089                    mouseEnter = !0, document.activeElement !== input && opts.showMaskOnHover && input.inputmask._valueGet() !== getBuffer().join("") && writeBuffer(input, getBuffer());
1090                },
1091                submitEvent: function(e) {
1092                    undoValue !== getBuffer().join("") && $el.trigger("change"), opts.clearMaskOnLostFocus && -1 === getLastValidPosition() && el.inputmask._valueGet && el.inputmask._valueGet() === getBufferTemplate().join("") && el.inputmask._valueSet(""), 
1093                    opts.removeMaskOnSubmit && (el.inputmask._valueSet(el.inputmask.unmaskedvalue(), !0), 
1094                    setTimeout(function() {
1095                        writeBuffer(el, getBuffer());
1096                    }, 0));
1097                },
1098                resetEvent: function(e) {
1099                    el.inputmask.refreshValue = !0, setTimeout(function() {
1100                        $el.trigger("setvalue");
1101                    }, 0);
1102                }
1103            };
1104            if (actionObj !== undefined) switch (actionObj.action) {
1105              case "isComplete":
1106                return el = actionObj.el, isComplete(getBuffer());
1107
1108              case "unmaskedvalue":
1109                return el !== undefined && actionObj.value === undefined || (valueBuffer = actionObj.value, 
1110                valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask(valueBuffer, opts) || valueBuffer : valueBuffer).split(""), 
1111                checkVal(undefined, !1, !1, isRTL ? valueBuffer.reverse() : valueBuffer), $.isFunction(opts.onBeforeWrite) && opts.onBeforeWrite(undefined, getBuffer(), 0, opts)), 
1112                unmaskedvalue(el);
1113
1114              case "mask":
1115                !function(elem) {
1116                    EventRuler.off(elem);
1117                    var isSupported = function(input, opts) {
1118                        var elementType = input.getAttribute("type"), isSupported = "INPUT" === input.tagName && -1 !== $.inArray(elementType, opts.supportsInputType) || input.isContentEditable || "TEXTAREA" === input.tagName;
1119                        if (!isSupported) if ("INPUT" === input.tagName) {
1120                            var el = document.createElement("input");
1121                            el.setAttribute("type", elementType), isSupported = "text" === el.type, el = null;
1122                        } else isSupported = "partial";
1123                        return !1 !== isSupported && function(npt) {
1124                            function getter() {
1125                                return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== getLastValidPosition() || !0 !== opts.nullable ? document.activeElement === this && opts.clearMaskOnLostFocus ? (isRTL ? clearOptionalTail(getBuffer().slice()).reverse() : clearOptionalTail(getBuffer().slice())).join("") : valueGet.call(this) : "" : valueGet.call(this);
1126                            }
1127                            function setter(value) {
1128                                valueSet.call(this, value), this.inputmask && $(this).trigger("setvalue");
1129                            }
1130                            var valueGet, valueSet;
1131                            if (!npt.inputmask.__valueGet) {
1132                                if (!0 !== opts.noValuePatching) {
1133                                    if (Object.getOwnPropertyDescriptor) {
1134                                        "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === _typeof("test".__proto__) ? function(object) {
1135                                            return object.__proto__;
1136                                        } : function(object) {
1137                                            return object.constructor.prototype;
1138                                        });
1139                                        var valueProperty = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt), "value") : undefined;
1140                                        valueProperty && valueProperty.get && valueProperty.set ? (valueGet = valueProperty.get, 
1141                                        valueSet = valueProperty.set, Object.defineProperty(npt, "value", {
1142                                            get: getter,
1143                                            set: setter,
1144                                            configurable: !0
1145                                        })) : "INPUT" !== npt.tagName && (valueGet = function() {
1146                                            return this.textContent;
1147                                        }, valueSet = function(value) {
1148                                            this.textContent = value;
1149                                        }, Object.defineProperty(npt, "value", {
1150                                            get: getter,
1151                                            set: setter,
1152                                            configurable: !0
1153                                        }));
1154                                    } else document.__lookupGetter__ && npt.__lookupGetter__("value") && (valueGet = npt.__lookupGetter__("value"), 
1155                                    valueSet = npt.__lookupSetter__("value"), npt.__defineGetter__("value", getter), 
1156                                    npt.__defineSetter__("value", setter));
1157                                    npt.inputmask.__valueGet = valueGet, npt.inputmask.__valueSet = valueSet;
1158                                }
1159                                npt.inputmask._valueGet = function(overruleRTL) {
1160                                    return isRTL && !0 !== overruleRTL ? valueGet.call(this.el).split("").reverse().join("") : valueGet.call(this.el);
1161                                }, npt.inputmask._valueSet = function(value, overruleRTL) {
1162                                    valueSet.call(this.el, null === value || value === undefined ? "" : !0 !== overruleRTL && isRTL ? value.split("").reverse().join("") : value);
1163                                }, valueGet === undefined && (valueGet = function() {
1164                                    return this.value;
1165                                }, valueSet = function(value) {
1166                                    this.value = value;
1167                                }, function(type) {
1168                                    if ($.valHooks && ($.valHooks[type] === undefined || !0 !== $.valHooks[type].inputmaskpatch)) {
1169                                        var valhookGet = $.valHooks[type] && $.valHooks[type].get ? $.valHooks[type].get : function(elem) {
1170                                            return elem.value;
1171                                        }, valhookSet = $.valHooks[type] && $.valHooks[type].set ? $.valHooks[type].set : function(elem, value) {
1172                                            return elem.value = value, elem;
1173                                        };
1174                                        $.valHooks[type] = {
1175                                            get: function(elem) {
1176                                                if (elem.inputmask) {
1177                                                    if (elem.inputmask.opts.autoUnmask) return elem.inputmask.unmaskedvalue();
1178                                                    var result = valhookGet(elem);
1179                                                    return -1 !== getLastValidPosition(undefined, undefined, elem.inputmask.maskset.validPositions) || !0 !== opts.nullable ? result : "";
1180                                                }
1181                                                return valhookGet(elem);
1182                                            },
1183                                            set: function(elem, value) {
1184                                                var result, $elem = $(elem);
1185                                                return result = valhookSet(elem, value), elem.inputmask && $elem.trigger("setvalue"), 
1186                                                result;
1187                                            },
1188                                            inputmaskpatch: !0
1189                                        };
1190                                    }
1191                                }(npt.type), function(npt) {
1192                                    EventRuler.on(npt, "mouseenter", function(event) {
1193                                        var $input = $(this);
1194                                        this.inputmask._valueGet() !== getBuffer().join("") && $input.trigger("setvalue");
1195                                    });
1196                                }(npt));
1197                            }
1198                        }(input), isSupported;
1199                    }(elem, opts);
1200                    if (!1 !== isSupported && (el = elem, $el = $(el), !0 === opts.colorMask && initializeColorMask(el), 
1201                    android && (el.hasOwnProperty("inputmode") && (el.inputmode = opts.inputmode, el.setAttribute("inputmode", opts.inputmode)), 
1202                    "rtfm" === opts.androidHack && (!0 !== opts.colorMask && initializeColorMask(el), 
1203                    el.type = "password")), !0 === isSupported && (EventRuler.on(el, "submit", EventHandlers.submitEvent), 
1204                    EventRuler.on(el, "reset", EventHandlers.resetEvent), EventRuler.on(el, "mouseenter", EventHandlers.mouseenterEvent), 
1205                    EventRuler.on(el, "blur", EventHandlers.blurEvent), EventRuler.on(el, "focus", EventHandlers.focusEvent), 
1206                    EventRuler.on(el, "mouseleave", EventHandlers.mouseleaveEvent), !0 !== opts.colorMask && EventRuler.on(el, "click", EventHandlers.clickEvent), 
1207                    EventRuler.on(el, "dblclick", EventHandlers.dblclickEvent), EventRuler.on(el, "paste", EventHandlers.pasteEvent), 
1208                    EventRuler.on(el, "dragdrop", EventHandlers.pasteEvent), EventRuler.on(el, "drop", EventHandlers.pasteEvent), 
1209                    EventRuler.on(el, "cut", EventHandlers.cutEvent), EventRuler.on(el, "complete", opts.oncomplete), 
1210                    EventRuler.on(el, "incomplete", opts.onincomplete), EventRuler.on(el, "cleared", opts.oncleared), 
1211                    android || !0 === opts.inputEventOnly || (EventRuler.on(el, "keydown", EventHandlers.keydownEvent), 
1212                    EventRuler.on(el, "keypress", EventHandlers.keypressEvent)), EventRuler.on(el, "compositionstart", $.noop), 
1213                    EventRuler.on(el, "compositionupdate", $.noop), EventRuler.on(el, "compositionend", $.noop), 
1214                    EventRuler.on(el, "keyup", $.noop), EventRuler.on(el, "input", EventHandlers.inputFallBackEvent), 
1215                    EventRuler.on(el, "beforeinput", $.noop)), EventRuler.on(el, "setvalue", EventHandlers.setValueEvent), 
1216                    undoValue = getBufferTemplate().join(""), "" !== el.inputmask._valueGet(!0) || !1 === opts.clearMaskOnLostFocus || document.activeElement === el)) {
1217                        var initialValue = $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask(el.inputmask._valueGet(!0), opts) || el.inputmask._valueGet(!0) : el.inputmask._valueGet(!0);
1218                        "" !== initialValue && checkVal(el, !0, !1, isRTL ? initialValue.split("").reverse() : initialValue.split(""));
1219                        var buffer = getBuffer().slice();
1220                        undoValue = buffer.join(""), !1 === isComplete(buffer) && opts.clearIncomplete && resetMaskSet(), 
1221                        opts.clearMaskOnLostFocus && document.activeElement !== el && (-1 === getLastValidPosition() ? buffer = [] : clearOptionalTail(buffer)), 
1222                        writeBuffer(el, buffer), document.activeElement === el && caret(el, seekNext(getLastValidPosition()));
1223                    }
1224                }(el);
1225                break;
1226
1227              case "format":
1228                return valueBuffer = ($.isFunction(opts.onBeforeMask) ? opts.onBeforeMask(actionObj.value, opts) || actionObj.value : actionObj.value).split(""), 
1229                checkVal(undefined, !0, !1, isRTL ? valueBuffer.reverse() : valueBuffer), actionObj.metadata ? {
1230                    value: isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join(""),
1231                    metadata: maskScope.call(this, {
1232                        action: "getmetadata"
1233                    }, maskset, opts)
1234                } : isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join("");
1235
1236              case "isValid":
1237                actionObj.value ? (valueBuffer = actionObj.value.split(""), checkVal(undefined, !0, !0, isRTL ? valueBuffer.reverse() : valueBuffer)) : actionObj.value = getBuffer().join("");
1238                for (var buffer = getBuffer(), rl = determineLastRequiredPosition(), lmib = buffer.length - 1; lmib > rl && !isMask(lmib); lmib--) ;
1239                return buffer.splice(rl, lmib + 1 - rl), isComplete(buffer) && actionObj.value === getBuffer().join("");
1240
1241              case "getemptymask":
1242                return getBufferTemplate().join("");
1243
1244              case "remove":
1245                if (el && el.inputmask) {
1246                    $el = $(el), el.inputmask._valueSet(opts.autoUnmask ? unmaskedvalue(el) : el.inputmask._valueGet(!0)), 
1247                    EventRuler.off(el);
1248                    Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el), "value") && el.inputmask.__valueGet && Object.defineProperty(el, "value", {
1249                        get: el.inputmask.__valueGet,
1250                        set: el.inputmask.__valueSet,
1251                        configurable: !0
1252                    }) : document.__lookupGetter__ && el.__lookupGetter__("value") && el.inputmask.__valueGet && (el.__defineGetter__("value", el.inputmask.__valueGet), 
1253                    el.__defineSetter__("value", el.inputmask.__valueSet)), el.inputmask = undefined;
1254                }
1255                return el;
1256
1257              case "getmetadata":
1258                if ($.isArray(maskset.metadata)) {
1259                    var maskTarget = getMaskTemplate(!0, 0, !1).join("");
1260                    return $.each(maskset.metadata, function(ndx, mtdt) {
1261                        if (mtdt.mask === maskTarget) return maskTarget = mtdt, !1;
1262                    }), maskTarget;
1263                }
1264                return maskset.metadata;
1265            }
1266        }
1267        var ua = navigator.userAgent, mobile = /mobile/i.test(ua), iemobile = /iemobile/i.test(ua), iphone = /iphone/i.test(ua) && !iemobile, android = /android/i.test(ua) && !iemobile;
1268        return Inputmask.prototype = {
1269            dataAttribute: "data-inputmask",
1270            defaults: {
1271                placeholder: "_",
1272                optionalmarker: {
1273                    start: "[",
1274                    end: "]"
1275                },
1276                quantifiermarker: {
1277                    start: "{",
1278                    end: "}"
1279                },
1280                groupmarker: {
1281                    start: "(",
1282                    end: ")"
1283                },
1284                alternatormarker: "|",
1285                escapeChar: "\\",
1286                mask: null,
1287                regex: null,
1288                oncomplete: $.noop,
1289                onincomplete: $.noop,
1290                oncleared: $.noop,
1291                repeat: 0,
1292                greedy: !0,
1293                autoUnmask: !1,
1294                removeMaskOnSubmit: !1,
1295                clearMaskOnLostFocus: !0,
1296                insertMode: !0,
1297                clearIncomplete: !1,
1298                alias: null,
1299                onKeyDown: $.noop,
1300                onBeforeMask: null,
1301                onBeforePaste: function(pastedValue, opts) {
1302                    return $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask(pastedValue, opts) : pastedValue;
1303                },
1304                onBeforeWrite: null,
1305                onUnMask: null,
1306                showMaskOnFocus: !0,
1307                showMaskOnHover: !0,
1308                onKeyValidation: $.noop,
1309                skipOptionalPartCharacter: " ",
1310                numericInput: !1,
1311                rightAlign: !1,
1312                undoOnEscape: !0,
1313                radixPoint: "",
1314                radixPointDefinitionSymbol: undefined,
1315                groupSeparator: "",
1316                keepStatic: null,
1317                positionCaretOnTab: !0,
1318                tabThrough: !1,
1319                supportsInputType: [ "text", "tel", "password" ],
1320                ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
1321                isComplete: null,
1322                canClearPosition: $.noop,
1323                preValidation: null,
1324                postValidation: null,
1325                staticDefinitionSymbol: undefined,
1326                jitMasking: !1,
1327                nullable: !0,
1328                inputEventOnly: !1,
1329                noValuePatching: !1,
1330                positionCaretOnClick: "lvp",
1331                casing: null,
1332                inputmode: "verbatim",
1333                colorMask: !1,
1334                androidHack: !1
1335            },
1336            definitions: {
1337                "9": {
1338                    validator: "[0-9]",
1339                    cardinality: 1,
1340                    definitionSymbol: "*"
1341                },
1342                a: {
1343                    validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
1344                    cardinality: 1,
1345                    definitionSymbol: "*"
1346                },
1347                "*": {
1348                    validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
1349                    cardinality: 1
1350                }
1351            },
1352            aliases: {},
1353            masksCache: {},
1354            mask: function(elems) {
1355                function importAttributeOptions(npt, opts, userOptions, dataAttribute) {
1356                    function importOption(option, optionData) {
1357                        null !== (optionData = optionData !== undefined ? optionData : npt.getAttribute(dataAttribute + "-" + option)) && ("string" == typeof optionData && (0 === option.indexOf("on") ? optionData = window[optionData] : "false" === optionData ? optionData = !1 : "true" === optionData && (
1357optionData = !0)), 
1358                        userOptions[option] = optionData);
1359                    }
1360                    ("rtl" === npt.dir || opts.rightAlign) && (npt.style.textAlign = "right"), ("rtl" === npt.dir || opts.numericInput) && (npt.dir = "ltr", 
1361                    npt.removeAttribute("dir"), opts.isRTL = !0);
1362                    var option, dataoptions, optionData, p, attrOptions = npt.getAttribute(dataAttribute);
1363                    if (attrOptions && "" !== attrOptions && (attrOptions = attrOptions.replace(new RegExp("'", "g"), '"'), 
1364                    dataoptions = JSON.parse("{" + attrOptions + "}")), dataoptions) {
1365                        optionData = undefined;
1366                        for (p in dataoptions) if ("alias" === p.toLowerCase()) {
1367                            optionData = dataoptions[p];
1368                            break;
1369                        }
1370                    }
1371                    importOption("alias", optionData), userOptions.alias && resolveAlias(userOptions.alias, userOptions, opts);
1372                    for (option in opts) {
1373                        if (dataoptions) {
1374                            optionData = undefined;
1375                            for (p in dataoptions) if (p.toLowerCase() === option.toLowerCase()) {
1376                                optionData = dataoptions[p];
1377                                break;
1378                            }
1379                        }
1380                        importOption(option, optionData);
1381                    }
1382                    return $.extend(!0, opts, userOptions), opts;
1383                }
1384                var that = this;
1385                return "string" == typeof elems && (elems = document.getElementById(elems) || document.querySelectorAll(elems)), 
1386                elems = elems.nodeName ? [ elems ] : elems, $.each(elems, function(ndx, el) {
1387                    var scopedOpts = $.extend(!0, {}, that.opts);
1388                    importAttributeOptions(el, scopedOpts, $.extend(!0, {}, that.userOptions), that.dataAttribute);
1389                    var maskset = generateMaskSet(scopedOpts, that.noMasksCache);
1390                    maskset !== undefined && (el.inputmask !== undefined && el.inputmask.remove(), el.inputmask = new Inputmask(undefined, undefined, !0), 
1391                    el.inputmask.opts = scopedOpts, el.inputmask.noMasksCache = that.noMasksCache, el.inputmask.userOptions = $.extend(!0, {}, that.userOptions), 
1392                    el.inputmask.isRTL = scopedOpts.isRTL, el.inputmask.el = el, el.inputmask.maskset = maskset, 
1393                    $.data(el, "_inputmask_opts", scopedOpts), maskScope.call(el.inputmask, {
1394                        action: "mask"
1395                    }));
1396                }), elems && elems[0] ? elems[0].inputmask || this : this;
1397            },
1398            option: function(options, noremask) {
1399                return "string" == typeof options ? this.opts[options] : "object" === (void 0 === options ? "undefined" : _typeof(options)) ? ($.extend(this.userOptions, options), 
1400                this.el && !0 !== noremask && this.mask(this.el), this) : void 0;
1401            },
1402            unmaskedvalue: function(value) {
1403                return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache), 
1404                maskScope.call(this, {
1405                    action: "unmaskedvalue",
1406                    value: value
1407                });
1408            },
1409            remove: function() {
1410                return maskScope.call(this, {
1411                    action: "remove"
1412                });
1413            },
1414            getemptymask: function() {
1415                return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache), 
1416                maskScope.call(this, {
1417                    action: "getemptymask"
1418                });
1419            },
1420            hasMaskedValue: function() {
1421                return !this.opts.autoUnmask;
1422            },
1423            isComplete: function() {
1424                return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache), 
1425                maskScope.call(this, {
1426                    action: "isComplete"
1427                });
1428            },
1429            getmetadata: function() {
1430                return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache), 
1431                maskScope.call(this, {
1432                    action: "getmetadata"
1433                });
1434            },
1435            isValid: function(value) {
1436                return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache), 
1437                maskScope.call(this, {
1438                    action: "isValid",
1439                    value: value
1440                });
1441            },
1442            format: function(value, metadata) {
1443                return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache), 
1444                maskScope.call(this, {
1445                    action: "format",
1446                    value: value,
1447                    metadata: metadata
1448                });
1449            },
1450            analyseMask: function(mask, regexMask, opts) {
1451                function MaskToken(isGroup, isOptional, isQuantifier, isAlternator) {
1452                    this.matches = [], this.openGroup = isGroup || !1, this.alternatorGroup = !1, this.isGroup = isGroup || !1, 
1453                    this.isOptional = isOptional || !1, this.isQuantifier = is
1453Quantifier || !1, this.isAlternator = isAlternator || !1, 
1454                    this.quantifier = {
1455                        min: 1,
1456                        max: 1
1457                    };
1458                }
1459                function insertTestDefinition(mtoken, element, position) {
1460                    position = position !== undefined ? position : mtoken.matches.length;
1461                    var prevMatch = mtoken.matches[position - 1];
1462                    if (regexMask) 0 === element.indexOf("[") || escaped ? mtoken.matches.splice(position++, 0, {
1463                        fn: new RegExp(element, opts.casing ? "i" : ""),
1464                        cardinality: 1,
1465                        optionality: mtoken.isOptional,
1466                        newBlockMarker: prevMatch === undefined || prevMatch.def !== element,
1467                        casing: null,
1468                        def: element,
1469                        placeholder: undefined,
1470                        nativeDef: element
1471                    }) : $.each(element.split(""), function(ndx, lmnt) {
1472                        prevMatch = mtoken.matches[position - 1], mtoken.matches.splice(position++, 0, {
1473                            fn: null,
1474                            cardinality: 0,
1475                            optionality: mtoken.isOptional,
1476                            newBlockMarker: prevMatch === undefined || prevMatch.def !== lmnt && null !== prevMatch.fn,
1477                            casing: null,
1478                            def: opts.staticDefinitionSymbol || lmnt,
1479                            placeholder: opts.staticDefinitionSymbol !== undefined ? lmnt : undefined,
1480                            nativeDef: lmnt
1481                        });
1482                    }), escaped = !1; else {
1483                        var maskdef = (opts.definitions ? opts.definitions[element] : undefined) || Inputmask.prototype.definitions[element];
1484                        if (maskdef && !escaped) {
1485                            for (var prevalidators = maskdef.prevalidator, prevalidatorsL = prevalidators ? prevalidators.length : 0, i = 1; i < maskdef.cardinality; i++) {
1486                                var prevalidator = prevalidatorsL >= i ? prevalidators[i - 1] : [], validator = prevalidator.validator, cardinality = prevalidator.cardinality;
1487                                mtoken.matches.splice(position++, 0, {
1488                                    fn: validator ? "string" == typeof validator ? new RegExp(validator, opts.casing ? "i" : "") : new function() {
1489                                        this.test = validator;
1490                                    }() : new RegExp("."),
1491                                    cardinality: cardinality || 1,
1492                                    optionality: mtoken.isOptional,
1493                                    newBlockMarker: prevMatch === undefined || prevMatch.def !== (maskdef.definitionSymbol || element),
1494                                    casing: maskdef.casing,
1495                                    def: maskdef.definitionSymbol || element,
1496                                    placeholder: maskdef.placeholder,
1497                                    nativeDef: element
1498                                }), prevMatch = mtoken.matches[position - 1];
1499                            }
1500                            mtoken.matches.splice(position++, 0, {
1501                                fn: maskdef.validator ? "string" == typeof maskdef.validator ? new RegExp(maskdef.validator, opts.casing ? "i" : "") : new function() {
1502                                    this.test = maskdef.validator;
1503                                }() : new RegExp("."),
1504                                cardinality: maskdef.cardinality,
1505                                optionality: mtoken.isOptional,
1506                                newBlockMarker: prevMatch === undefined || prevMatch.def !== (maskdef.definitionSymbol || element),
1507                                casing: maskdef.casing,
1508                                def: maskdef.definitionSymbol || element,
1509                                placeholder: maskdef.placeholder,
1510                                nativeDef: element
1511                            });
1512                        } else mtoken.matches.splice(position++, 0, {
1513                            fn: null,
1514                            cardinality: 0,
1515                            optionality: mtoken.isOptional,
1516                            newBlockMarker: prevMatch === undefined || prevMatch.def !== element && null !== prevMatch.fn,
1517                            casing: null,
1518                            def: opts.staticDefinitionSymbol || element,
1519                            placeholder: opts.staticDefinitionSymbol !== undefined ? element : undefined,
1520                            nativeDef: element
1521                        }), escaped = !1;
1522                    }
1523                }
1524                function verifyGroupMarker(maskToken) {
1525                    maskToken && maskToken.matches && $.each(maskToken.matches, function(ndx, token) {
1526                        var nextToken = maskToken.matches[ndx + 1];
1527                        (nextToken === undefined || nextToken.matches === undefined || !1 === nextToken.isQuantifier) && token && token.isGroup && (token.isGroup = !1, 
1528                        regexMask || (insertTestDefinition(token, opts.groupmarker.start, 0), !0 !== token.openGroup && insertTestDefinition(token, opts.groupmarker.end))), 
1529                        verifyGroupMarker(token);
1530                    });
1531                }
1532                function defaultCase() {
1533                    if (openenings.length > 0) {
1534                        if (currentOpeningToken = openenings[openenings.length - 1], insertTestDefinition(currentOpeningToken, m), 
1535                        currentOpeningToken.isAlternator) {
1536                            alternator = openenings.pop();
1537                            for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup = !1;
1538                            openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1], 
1539                            currentOpeningToken.matches.push(alternator)) : currentToken.matches.push(alternator);
1540                        }
1541                    } else insertTestDefinition(currentToken, m);
1542                }
1543                function reverseTokens(maskToken) {
1544                    maskToken.matches = maskToken.matches.reverse();
1545                    for (var match in maskToken.matches) if (maskToken.matches.hasOwnProperty(match)) {
1546                        var intMatch = parseInt(match);
1547                        if (maskToken.matches[match].isQuantifier && maskToken.matches[intMatch + 1] && maskToken.matches[intMatch + 1].isGroup) {
1548                            var qt = maskToken.matches[match];
1549                            maskToken.matches.splice(match, 1), maskToken.matches.splice(intMatch + 1, 0, qt);
1550                        }
1551                        maskToken.matches[match].matches !== undefined ? maskToken.matches[match] = reverseTokens(maskToken.matches[match]) : maskToken.matches[match] = function(st) {
1552                            return st === opts.optionalmarker.start ? st = opts.optionalmarker.end : st === opts.optionalmarker.end ? st = opts.optionalmarker.start : st === opts.groupmarker.start ? st = opts.groupmarker.end : st === opts.groupmarker.end && (st = opts.groupmarker.start), 
1553                            st;
1554                        }(maskToken.matches[match]);
1555                    }
1556                    return maskToken;
1557                }
1558                var match, m, openingToken, currentOpeningToken, alternator, lastMatch, groupToken, tokenizer = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, regexTokenizer = /\[\^?]?(?:[^\\\]]+|\\[\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, escaped = !1, currentToken = new MaskToken(), openenings = [], maskTokens = [];
1559                for (regexMask && (opts.optionalmarker.start = undefined, opts.optionalmarker.end = undefined); match = regexMask ? regexTokenizer.exec(mask) : tokenizer.exec(mask); ) {
1560                    if (m = match[0], regexMask && !0 !== escaped) switch (m.charAt(0)) {
1561                      case "?":
1562                        m = "{0,1}";
1563                        break;
1564
1565                      case "+":
1566                      case "*":
1567                        m = "{" + m + "}";
1568                    }
1569                    if (escaped) defaultCase(); else switch (m.charAt(0)) {
1570                      case opts.escapeChar:
1571                        escaped = !0, regexMask && defaultCase();
1572                        break;
1573
1574                      case opts.optionalmarker.end:
1575                      case opts.groupmarker.end:
1576                        if (openingToken = openenings.pop(), openingToken.openGroup = !1, openingToken !== undefined) if (openenings.length > 0) {
1577                            if (currentOpeningToken = openenings[openenings.length - 1], currentOpeningToken.matches.push(openingToken), 
1578                            currentOpeningToken.isAlternator) {
1579                                alternator = openenings.pop();
1580                                for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup = !1, 
1581                                alternator.matches[mndx].alternatorGroup = !1;
1582                                openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1], 
1583                                currentOpeningToken.matches.push(alternator)) : currentToken.matches.push(alternator);
1584                            }
1585                        } else currentToken.matches.push(openingToken); else defaultCase();
1586                        break;
1587
1588                      case opts.optionalmarker.start:
1589                        openenings.push(new MaskToken(!1, !0));
1590                        break;
1591
1592                      case opts.groupmarker.start:
1593                        openenings.push(new MaskToken(!0));
1594                        break;
1595
1596                      case opts.quantifiermarker.start:
1597                        var quantifier = new MaskToken(!1, !1, !0);
1598                        m = m.replace(/[{}]/g, "");
1599                        var mq = m.split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = 1 === mq.length ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
1600                        if ("*" !== mq1 && "+" !== mq1 || (mq0 = "*" === mq1 ? 0 : 1), quantifier.quantifier = {
1601                            min: mq0,
1602                            max: mq1
1603                        }, openenings.length > 0) {
1604                            var matches = openenings[openenings.length - 1].matches;
1605                            match = matches.pop(), match.isGroup || (groupToken = new MaskToken(!0), groupToken.matches.push(match), 
1606                            match = groupToken), matches.push(match), matches.push(quantifier);
1607                        } else match = currentToken.matches.pop(), match.isGroup || (regexMask && null === match.fn && "." === match.def && (match.fn = new RegExp(match.def, opts.casing ? "i" : "")), 
1608                        groupToken = new MaskToken(!0), groupToken.matches.push(match), match = groupToken), 
1609                        currentToken.matches.push(match), currentToken.matches.push(quantifier);
1610                        break;
1611
1612                      case opts.alternatormarker:
1613                        if (openenings.length > 0) {
1614                            currentOpeningToken = openenings[openenings.length - 1];
1615                            var subToken = currentOpeningToken.matches[currentOpeningToken.matches.length - 1];
1616                            lastMatch = currentOpeningToken.openGroup && (subToken.matches === undefined || !1 === subToken.isGroup && !1 === subToken.isAlternator) ? openenings.pop() : currentOpeningToken.matches.pop();
1617                        } else lastMatch = currentToken.matches.pop();
1618                        if (lastMatch.isAlternator) openenings.push(lastMatch); else if (lastMatch.alternatorGroup ? (alternator = openenings.pop(), 
1619                        lastMatch.alternatorGroup = !1) : alternator = new MaskToken(!1, !1, !1, !0), alternator.matches.push(lastMatch), 
1620                        openenings.push(alternator), lastMatch.openGroup) {
1621                            lastMatch.openGroup = !1;
1622                            var alternatorGroup = new MaskToken(!0);
1623                            alternatorGroup.alternatorGroup = !0, openenings.push(alternatorGroup);
1624                        }
1625                        break;
1626
1627                      default:
1628                        defaultCase();
1629                    }
1630                }
1631                for (;openenings.length > 0; ) openingToken = openenings.pop(), currentToken.matches.push(openingToken);
1632                return currentToken.matches.length > 0 && (verifyGroupMarker(currentToken), maskTokens.push(currentToken)), 
1633                (opts.numericInput || opts.isRTL) && reverseTokens(maskTokens[0]), maskTokens;
1634            }
1635        }, Inputmask.extendDefaults = function(options) {
1636            $.extend(!0, Inputmask.prototype.defaults, options);
1637        }, Inputmask.extendDefinitions = function(definition) {
1638            $.extend(!0, Inputmask.prototype.definitions, definition);
1639        }, Inputmask.extendAliases = function(alias) {
1640            $.extend(!0, Inputmask.prototype.aliases, alias);
1641        }, Inputmask.format = function(value, options, metadata) {
1642            return Inputmask(options).format(value, metadata);
1643        }, Inputmask.unmask = function(value, options) {
1644            return Inputmask(options).unmaskedvalue(value);
1645        }, Inputmask.isValid = function(value, options) {
1646            return Inputmask(options).isValid(value);
1647        }, Inputmask.remove = function(elems) {
1648            $.each(elems, function(ndx, el) {
1649                el.inputmask && el.inputmask.remove();
1650            });
1651        }, Inputmask.escapeRegex = function(str) {
1652            var specials = [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ];
1653            return str.replace(new RegExp("(\\" + specials.join("|\\") + ")", "gim"), "\\$1");
1654        }, Inputmask.keyCode = {
1655            ALT: 18,
1656            BACKSPACE: 8,
1657            BACKSPACE_SAFARI: 127,
1658            CAPS_LOCK: 20,
1659            COMMA: 188,
1660            COMMAND: 91,
1661            COMMAND_LEFT: 91,
1662            COMMAND_RIGHT: 93,
1663            CONTROL: 17,
1664            DELETE: 46,
1665            DOWN: 40,
1666            END: 35,
1667            ENTER: 13,
1668            ESCAPE: 27,
1669            HOME: 36,
1670            INSERT: 45,
1671            LEFT: 37,
1672            MENU: 93,
1673            NUMPAD_ADD: 107,
1674            NUMPAD_DECIMAL: 110,
1675            NUMPAD_DIVIDE: 111,
1676            NUMPAD_ENTER: 108,
1677            NUMPAD_MULTIPLY: 106,
1678            NUMPAD_SUBTRACT: 109,
1679            PAGE_DOWN: 34,
1680            PAGE_UP: 33,
1681            PERIOD: 190,
1682            RIGHT: 39,
1683            SHIFT: 16,
1684            SPACE: 32,
1685            TAB: 9,
1686            UP: 38,
1687            WINDOWS: 91,
1688            X: 88
1689        }, Inputmask;
1690    });
1691}
1691, function(module, exports) {
1692    module.exports = jQuery;
1693}, function(module, exports, __webpack_require__) {
1694    "use strict";
1695    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
1696    "function" == typeof Symbol && Symbol.iterator;
1697    !function(factory) {
1698        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ], 
1699        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
1700    }(function($, Inputmask) {
1701        function isLeapYear(year) {
1702            return isNaN(year) || 29 === new Date(year, 2, 0).getDate();
1703        }
1704        return Inputmask.extendAliases({
1705            "dd/mm/yyyy": {
1706                mask: "1/2/y",
1707                placeholder: "dd/mm/yyyy",
1708                regex: {
1709                    val1pre: new RegExp("[0-3]"),
1710                    val1: new RegExp("0[1-9]|[12][0-9]|3[01]"),
1711                    val2pre: function(separator) {
1712                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
1713                        return new RegExp("((0[1-9]|[12][0-9]|3[01])" + escapedSeparator + "[01])");
1714                    },
1715                    val2: function(separator) {
1716                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
1717                        return new RegExp("((0[1-9]|[12][0-9])" + escapedSeparator + "(0[1-9]|1[012]))|(30" + escapedSeparator + "(0[13-9]|1[012]))|(31" + escapedSeparator + "(0[13578]|1[02]))");
1718                    }
1719                },
1720                leapday: "29/02/",
1721                separator: "/",
1722                yearrange: {
1723                    minyear: 1900,
1724                    maxyear: 2099
1725                },
1726                isInYearRange: function(chrs, minyear, maxyear) {
1727                    if (isNaN(chrs)) return !1;
1728                    var enteredyear = parseInt(chrs.concat(minyear.toString().slice(chrs.length))), enteredyear2 = parseInt(chrs.concat(maxyear.toString().slice(chrs.length)));
1729                    return !isNaN(enteredyear) && (minyear <= enteredyear && enteredyear <= maxyear) || !isNaN(enteredyear2) && (minyear <= enteredyear2 && enteredyear2 <= maxyear);
1730                },
1731                determinebaseyear: function(minyear, maxyear, hint) {
1732                    var currentyear = new Date().getFullYear();
1733                    if (minyear > currentyear) return minyear;
1734                    if (maxyear < currentyear) {
1735                        for (var maxYearPrefix = maxyear.toString().slice(0, 2), maxYearPostfix = maxyear.toString().slice(2, 4); maxyear < maxYearPrefix + hint; ) maxYearPrefix--;
1736                        var maxxYear = maxYearPrefix + maxYearPostfix;
1737                        return minyear > maxxYear ? minyear : maxxYear;
1738                    }
1739                    if (minyear <= currentyear && currentyear <= maxyear) {
1740                        for (var currentYearPrefix = currentyear.toString().slice(0, 2); maxyear < currentYearPrefix + hint; ) currentYearPrefix--;
1741                        var currentYearAndHint = currentYearPrefix + hint;
1742                        return currentYearAndHint < minyear ? minyear : currentYearAndHint;
1743                    }
1744                    return currentyear;
1745                },
1746                onKeyDown: function(e, buffer, caretPos, opts) {
1747                    var $input = $(this);
1748                    if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
1749                        var today = new Date();
1750                        $input.val(today.getDate().toString() + (today.getMonth() + 1).toString() + today.getFullYear().toString()), 
1751                        $input.trigger("setvalue");
1752                    }
1753                },
1754                getFrontValue: function(mask, buffer, opts) {
1755                    for (var start = 0, length = 0, i = 0; i < mask.length && "2" !== mask.charAt(i); i++) {
1756                        var definition = opts.definitions[mask.charAt(i)];
1757                        definition ? (start += length, length = definition.cardinality) : length++;
1758                    }
1759                    return buffer.join("").substr(start, length);
1760                },
1761                postValidation: function(buffer, currentResult, opts) {
1762                    var dayMonthValue, year, bufferStr = buffer.join("");
1763                    return 0 === opts.mask.indexOf("y") ? (year = bufferStr.substr(0, 4), dayMonthValue = bufferStr.substring(4, 10)) : (year = bufferStr.substring(6, 10), 
1764                    dayMonthValue = bufferStr.substr(0, 6)), currentResult && (dayMonthValue !== opts.leapday || isLeapYear(year));
1765                },
1766                definitions: {
1767                    "1": {
1768                        validator: function(chrs, maskset, pos, strict, opts) {
1769                            var isValid = opts.regex.val1.test(chrs);
1770                            return strict || isValid || chrs.charAt(1) !== opts.separator && -1 === "-./".indexOf(chrs.charAt(1)) || !(isValid = opts.regex.val1.test("0" + chrs.charAt(0))) ? isValid : (maskset.buffer[pos - 1] = "0", 
1771                            {
1772                                refreshFromBuffer: {
1773                                    start: pos - 1,
1774                                    end: pos
1775                                },
1776                                pos: pos,
1777                                c: chrs.charAt(0)
1778                            });
1779                        },
1780                        cardinality: 2,
1781                        prevalidator: [ {
1782                            validator: function(chrs, maskset, pos, strict, opts) {
1783                                var pchrs = chrs;
1784                                isNaN(maskset.buffer[pos + 1]) || (pchrs += maskset.buffer[pos + 1]);
1785                                var isValid = 1 === pchrs.length ? opts.regex.val1pre.test(pchrs) : opts.regex.val1.test(pchrs);
1786                                if (!strict && !isValid) {
1787                                    if (isValid = opts.regex.val1.test(chrs + "0")) return maskset.buffer[pos] = chrs, 
1788                                    maskset.buffer[++pos] = "0", {
1789                                        pos: pos,
1790                                        c: "0"
1791                                    };
1792                                    if (isValid = opts.regex.val1.test("0" + chrs)) return maskset.buffer[pos] = "0", 
1793                                    pos++, {
1794                                        pos: pos
1795                                    };
1796                                }
1797                                return isValid;
1798                            },
1799                            cardinality: 1
1800                        } ]
1801                    },
1802                    "2": {
1803                        validator: function(chrs, maskset, pos, strict, opts) {
1804                            var frontValue = opts.getFrontValue(maskset.mask, maskset.buffer, opts);
1805                            -1 !== frontValue.indexOf(opts.placeholder[0]) && (frontValue = "01" + opts.separator);
1806                            var isValid = opts.regex.val2(opts.separator).test(frontValue + chrs);
1807                            return strict || isValid || chrs.charAt(1) !== opts.separator && -1 === "-./".indexOf(chrs.charAt(1)) || !(isValid = opts.regex.val2(opts.separator).test(frontValue + "0" + chrs.charAt(0))) ? isValid : (maskset.buffer[pos - 1] = "0", 
1808                            {
1809                                refreshFromBuffer: {
1810                                    start: pos - 1,
1811                                    end: pos
1812                                },
1813                                pos: pos,
1814                                c: chrs.charAt(0)
1815                            });
1816                        },
1817                        cardinality: 2,
1818                        prevalidator: [ {
1819                            validator: function(chrs, maskset, pos, strict, opts) {
1820                                isNaN(maskset.buffer[pos + 1]) || (chrs += maskset.buffer[pos + 1]);
1821                                var frontValue = opts.getFrontValue(maskset.mask, maskset.buffer, opts);
1822                                -1 !== frontValue.indexOf(opts.placeholder[0]) && (frontValue = "01" + opts.separator);
1823                                var isValid = 1 === chrs.length ? opts.regex.val2pre(opts.separator).test(frontValue + chrs) : opts.regex.val2(opts.separator).test(frontValue + chrs);
1824                                return strict || isValid || !(isValid = opts.regex.val2(opts.separator).test(frontValue + "0" + chrs)) ? isValid : (maskset.buffer[pos] = "0", 
1825                                pos++, {
1826                                    pos: pos
1827                                });
1828                            },
1829                            cardinality: 1
1830                        } ]
1831                    },
1832                    y: {
1833                        validator: function(chrs, maskset, pos, strict, opts) {
1834                            return opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
1835                        },
1836                        cardinality: 4,
1837                        prevalidator: [ {
1838                            validator: function(chrs, maskset, pos, strict, opts) {
1839                                var isValid = opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
1840                                if (!strict && !isValid) {
1841                                    var yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs + "0").toString().slice(0, 1);
1842                                    if (isValid = opts.isInYearRange(yearPrefix + chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos++] = yearPrefix.charAt(0), 
1843                                    {
1844                                        pos: pos
1845                                    };
1846                                    if (yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs + "0").toString().slice(0, 2), 
1847                                    isValid = opts.isInYearRange(yearPrefix + chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos++] = yearPrefix.charAt(0), 
1848                                    maskset.buffer[pos++] = yearPrefix.charAt(1), {
1849                                        pos: pos
1850                                    };
1851                                }
1852                                return isValid;
1853                            },
1854                            cardinality: 1
1855                        }, {
1856                            validator: function(chrs, maskset, pos, strict, opts) {
1857                                var isValid = opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
1858                                if (!strict && !isValid) {
1859                                    var yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs).toString().slice(0, 2);
1860                                    if (isValid = opts.isInYearRange(chrs[0] + yearPrefix[1] + chrs[1], opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos++] = yearPrefix.charAt(1), 
1861                                    {
1862                                        pos: pos
1863                                    };
1864                                    if (yearPrefix = opts.determinebaseyear(opts.yearrange.minyear, opts.yearrange.maxyear, chrs).toString().slice(0, 2), 
1865                                    isValid = opts.isInYearRange(yearPrefix + chrs, opts.yearrange.minyear, opts.yearrange.maxyear)) return maskset.buffer[pos - 1] = yearPrefix.charAt(0), 
1866                                    maskset.buffer[pos++] = yearPrefix.charAt(1), maskset.buffer[pos++] = chrs.charAt(0), 
1867                                    {
1868                                        refreshFromBuffer: {
1869                                            start: pos - 3,
1870                                            end: pos
1871                                        },
1872                                        pos: pos
1873                                    };
1874                                }
1875                                return isValid;
1876                            },
1877                            cardinality: 2
1878                        }, {
1879                            validator: function(chrs, maskset, pos, strict, opts) {
1880                                return opts.isInYearRange(chrs, opts.yearrange.minyear, opts.yearrange.maxyear);
1881                            },
1882                            cardinality: 3
1883                        } ]
1884                    }
1885                },
1886                insertMode: !1,
1887                autoUnmask: !1
1888            },
1889            "mm/dd/yyyy": {
1890                placeholder: "mm/dd/yyyy",
1891                alias: "dd/mm/yyyy",
1892                regex: {
1893                    val2pre: function(separator) {
1894                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
1895                        return new RegExp("((0[13-9]|1[012])" + escapedSeparator + "[0-3])|(02" + escapedSeparator + "[0-2])");
1896                    },
1897                    val2: function(separator) {
1898                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
1899                        return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[13-9]|1[012])" + escapedSeparator + "30)|((0[13578]|1[02])" + escapedSeparator + "31)");
1900                    },
1901                    val1pre: new RegExp("[01]"),
1902                    val1: new RegExp("0[1-9]|1[012]")
1903                },
1904                leapday: "02/29/",
1905                onKeyDown: function(e, buffer, caretPos, opts) {
1906                    var $input = $(this);
1907                    if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
1908                        var today = new Date();
1909                        $input.val((today.getMonth() + 1).toString() + today.getDate().toString() + today.getFullYear().toString()), 
1910                        $input.trigger("setvalue");
1911                    }
1912                }
1913            },
1914            "yyyy/mm/dd": {
1915                mask: "y/1/2",
1916                placeholder: "yyyy/mm/dd",
1917                alias: "mm/dd/yyyy",
1918                leapday: "/02/29",
1919                onKeyDown: function(e, buffer, caretPos, opts) {
1920                    var $input = $(this);
1921                    if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
1922                        var today = new Date();
1923                        $input.val(today.getFullYear().toString() + (today.getMonth() + 1).toString() + today.getDate().toString()), 
1924                        $input.trigger("setvalue");
1925                    }
1926                }
1927            },
1928            "dd.mm.yyyy": {
1929                mask: "1.2.y",
1930                placeholder: "dd.mm.yyyy",
1931                leapday: "29.02.",
1932                separator: ".",
1933                alias: "dd/mm/yyyy"
1934            },
1935            "dd-mm-yyyy": {
1936                mask: "1-2-y",
1937                placeholder: "dd-mm-yyyy",
1938                leapday: "29-02-",
1939                separator: "-",
1940                alias: "dd/mm/yyyy"
1941            },
1942            "mm.dd.yyyy": {
1943                mask: "1.2.y",
1944                placeholder: "mm.dd.yyyy",
1945                leapday: "02.29.",
1946                separator: ".",
1947                alias: "mm/dd/yyyy"
1948            },
1949            "mm-dd-yyyy": {
1950                mask: "1-2-y",
1951                placeholder: "mm-dd-yyyy",
1952                leapday: "02-29-",
1953                separator: "-",
1954                alias: "mm/dd/yyyy"
1955            },
1956            "yyyy.mm.dd": {
1957                mask: "y.1.2",
1958                placeholder: "yyyy.mm.dd",
1959                leapday: ".02.29",
1960                separator: ".",
1961                alias: "yyyy/mm/dd"
1962            },
1963            "yyyy-mm-dd": {
1964                mask: "y-1-2",
1965                placeholder: "yyyy-mm-dd",
1966                leapday: "-02-29",
1967                separator: "-",
1968                alias: "yyyy/mm/dd"
1969            },
1970            datetime: {
1971                mask: "1/2/y h:s",
1972                placeholder: "dd/mm/yyyy hh:mm",
1973                alias: "dd/mm/yyyy",
1974                regex: {
1975                    hrspre: new RegExp("[012]"),
1976                    hrs24: new RegExp("2[0-4]|1[3-9]"),
1977                    hrs: new RegExp("[01][0-9]|2[0-4]"),
1978                    ampm: new RegExp("^[a|p|A|P][m|M]"),
1979                    mspre: new RegExp("[0-5]"),
1980                    ms: new RegExp("[0-5][0-9]")
1981                },
1982                timeseparator: ":",
1983                hourFormat: "24",
1984                definitions: {
1985                    h: {
1986                        validator: function(chrs, maskset, pos, strict, opts) {
1987                            if ("24" === opts.hourFormat && 24 === parseInt(chrs, 10)) return maskset.buffer[pos - 1] = "0", 
1988                            maskset.buffer[pos] = "0", {
1989                                refreshFromBuffer: {
1990                                    start: pos - 1,
1991                                    end: pos
1992                                },
1993                                c: "0"
1994                            };
1995                            var isValid = opts.regex.hrs.test(chrs);
1996                            if (!strict && !isValid && (chrs.charAt(1) === opts.timeseparator || -1 !== "-.:".indexOf(chrs.charAt(1))) && (isValid = opts.regex.hrs.test("0" + chrs.charAt(0)))) return maskset.buffer[pos - 1] = "0", 
1997                            maskset.buffer[pos] = chrs.charAt(0), pos++, {
1998                                refreshFromBuffer: {
1999                                    start: pos - 2,
2000                                    end: pos
2001                                },
2002                                pos: pos,
2003                                c: opts.timeseparator
2004                            };
2005                            if (isValid && "24" !== opts.hourFormat && opts.regex.hrs24.test(chrs)) {
2006                                var tmp = parseInt(chrs, 10);
2007                                return 24 === tmp ? (maskset.buffer[pos + 5] = "a", maskset.buffer[pos + 6] = "m") : (maskset.buffer[pos + 5] = "p", 
2008                                maskset.buffer[pos + 6] = "m"), tmp -= 12, tmp < 10 ? (maskset.buffer[pos] = tmp.toString(), 
2009                                maskset.buffer[pos - 1] = "0") : (maskset.buffer[pos] = tmp.toString().charAt(1), 
2010                                maskset.buffer[pos - 1] = tmp.toString().charAt(0)), {
2011                                    refreshFromBuffer: {
2012                                        start: pos - 1,
2013                                        end: pos + 6
2014                                    },
2015                                    c: maskset.buffer[pos]
2016                                };
2017                            }
2018                            return isValid;
2019                        },
2020                        cardinality: 2,
2021                        prevalidator: [ {
2022                            validator: function(chrs, maskset, pos, strict, opts) {
2023                                var isValid = opts.regex.hrspre.test(chrs);
2024                                return strict || isValid || !(isValid = opts.regex.hrs.test("0" + chrs)) ? isValid : (maskset.buffer[pos] = "0", 
2025                                pos++, {
2026                                    pos: pos
2027                                });
2028                            },
2029                            cardinality: 1
2030                        } ]
2031                    },
2032                    s: {
2033                        validator: "[0-5][0-9]",
2034                        cardinality: 2,
2035                        prevalidator: [ {
2036                            validator: function(chrs, maskset, pos, strict, opts) {
2037                                var isValid = opts.regex.mspre.test(chrs);
2038                                return strict || isValid || !(isValid = opts.regex.ms.test("0" + chrs)) ? isValid : (maskset.buffer[pos] = "0", 
2039                                pos++, {
2040                                    pos: pos
2041                                });
2042                            },
2043                            cardinality: 1
2044                        } ]
2045                    },
2046                    t: {
2047                        validator: function(chrs, maskset, pos, strict, opts) {
2048                            return opts.regex.ampm.test(chrs + "m");
2049                        },
2050                        casing: "lower",
2051                        cardinality: 1
2052                    }
2053                },
2054                insertMode: !1,
2055                autoUnmask: !1
2056            },
2057            datetime12: {
2058                mask: "1/2/y h:s t\\m",
2059                placeholder: "dd/mm/yyyy hh:mm xm",
2060                alias: "datetime",
2061                hourFormat: "12"
2062            },
2063            "mm/dd/yyyy hh:mm xm": {
2064                mask: "1/2/y h:s t\\m",
2065                placeholder: "mm/dd/yyyy hh:mm xm",
2066                alias: "datetime12",
2067                regex: {
2068                    val2pre: function(separator) {
2069                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
2070                        return new RegExp("((0[13-9]|1[012])" + escapedSeparator + "[0-3])|(02" + escapedSeparator + "[0-2])");
2071                    },
2072                    val2: function(separator) {
2073                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
2074                        return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[13-9]|1[012])" + escapedSeparator + "30)|((0[13578]|1[02])" + escapedSeparator + "31)");
2075                    },
2076                    val1pre: new RegExp("[01]"),
2077                    val1: new RegExp("0[1-9]|1[012]")
2078                },
2079                leapday: "02/29/",
2080                onKeyDown: function(e, buffer, caretPos, opts) {
2081                    var $input = $(this);
2082                    if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
2083                        var today = new Date();
2084                        $input.val((today.getMonth() + 1).toString() + today.getDate().toString() + today.getFullYear().toString()), 
2085                        $input.trigger("setvalue");
2086                    }
2087                }
2088            },
2089            "hh:mm t": {
2090                mask: "h:s t\\m",
2091                placeholder: "hh:mm xm",
2092                alias: "datetime",
2093                hourFormat: "12"
2094            },
2095            "h:s t": {
2096                mask: "h:s t\\m",
2097                placeholder: "hh:mm xm",
2098                alias: "datetime",
2099                hourFormat: "12"
2100            },
2101            "hh:mm:ss": {
2102                mask: "h:s:s",
2103                placeholder: "hh:mm:ss",
2104                alias: "datetime",
2105                autoUnmask: !1
2106            },
2107            "hh:mm": {
2108                mask: "h:s",
2109                placeholder: "hh:mm",
2110                alias: "datetime",
2111                autoUnmask: !1
2112            },
2113            date: {
2114                alias: "dd/mm/yyyy"
2115            },
2116            "mm/yyyy": {
2117                mask: "1/y",
2118                placeholder: "mm/yyyy",
2119                leapday: "donotuse",
2120                separator: "/",
2121                alias: "mm/dd/yyyy"
2122            },
2123            shamsi: {
2124                regex: {
2125                    val2pre: function(separator) {
2126                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
2127                        return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "[0-3])");
2128                    },
2129                    val2: function(separator) {
2130                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
2131                        return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[1-9]|1[012])" + escapedSeparator + "30)|((0[1-6])" + escapedSeparator + "31)");
2132                    },
2133                    val1pre: new RegExp("[01]"),
2134                    val1: new RegExp("0[1-9]|1[012]")
2135                },
2136                yearrange: {
2137                    minyear: 1300,
2138                    maxyear: 1499
2139                },
2140                mask: "y/1/2",
2141                leapday: "/12/30",
2142                placeholder: "yyyy/mm/dd",
2143                alias: "mm/dd/yyyy",
2144                clearIncomplete: !0
2145            },
2146            "yyyy-mm-dd hh:mm:ss": {
2147                mask: "y-1-2 h:s:s",
2148                placeholder: "yyyy-mm-dd hh:mm:ss",
2149                alias: "datetime",
2150                separator: "-",
2151                leapday: "-02-29",
2152                regex: {
2153                    val2pre: function(separator) {
2154                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
2155                        return new RegExp("((0[13-9]|1[012])" + escapedSeparator + "[0-3])|(02" + escapedSeparator + "[0-2])");
2156                    },
2157                    val2: function(separator) {
2158                        var escapedSeparator = Inputmask.escapeRegex.call(this, separator);
2159                        return new RegExp("((0[1-9]|1[012])" + escapedSeparator + "(0[1-9]|[12][0-9]))|((0[13-9]|1[012])" + escapedSeparator + "30)|((0[13578]|1[02])" + escapedSeparator + "31)");
2160                    },
2161                    val1pre: new RegExp("[01]"),
2162                    val1: new RegExp("0[1-9]|1[012]")
2163                },
2164                onKeyDown: function(e, buffer, caretPos, opts) {}
2165            }
2166        }), Inputmask;
2167    });
2168}, function(module, exports, __webpack_require__) {
2169    "use strict";
2170    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
2171    "function" == typeof Symbol && Symbol.iterator;
2172    !function(factory) {
2173        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ], 
2174        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2175    }(function($, Inputmask) {
2176        return Inputmask.extendDefinitions({
2177            A: {
2178                validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
2179                cardinality: 1,
2180                casing: "upper"
2181            },
2182            "&": {
2183                validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
2184                cardinality: 1,
2185                casing: "upper"
2186            },
2187            "#": {
2188                validator: "[0-9A-Fa-f]",
2189                cardinality: 1,
2190                casing: "upper"
2191            }
2192        }), Inputmask.extendAliases({
2193            url: {
2194                definitions: {
2195                    i: {
2196                        validator: ".",
2197                        cardinality: 1
2198                    }
2199                },
2200                mask: "(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",
2201                insertMode: !1,
2202                autoUnmask: !1,
2203                inputmode: "url"
2204            },
2205            ip: {
2206                mask: "i[i[i]].i[i[i]].i[i[i]].i[i[i]]",
2207                definitions: {
2208                    i: {
2209                        validator: function(chrs, maskset, pos, strict, opts) {
2210                            return pos - 1 > -1 && "." !== maskset.buffer[pos - 1] ? (chrs = maskset.buffer[pos - 1] + chrs, 
2211                            chrs = pos - 2 > -1 && "." !== maskset.buffer[pos - 2] ? maskset.buffer[pos - 2] + chrs : "0" + chrs) : chrs = "00" + chrs, 
2212                            new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs);
2213                        },
2214                        cardinality: 1
2215                    }
2216                },
2217                onUnMask: function(maskedValue, unmaskedValue, opts) {
2218                    return maskedValue;
2219                },
2220                inputmode: "numeric"
2221            },
2222            email: {
2223                mask: "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",
2224                greedy: !1,
2225                onBeforePaste: function(pastedValue, opts) {
2226                    return pastedValue = pastedValue.toLowerCase(), pastedValue.replace("mailto:", "");
2227                },
2228                definitions: {
2229                    "*": {
2230                        validator: "[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",
2231                        cardinality: 1,
2232                        casing: "lower"
2233                    },
2234                    "-": {
2235                        validator: "[0-9A-Za-z-]",
2236                        cardinality: 1,
2237                        casing: "lower"
2238                    }
2239                },
2240                onUnMask: function(maskedValue, unmaskedValue, opts) {
2241                    return maskedValue;
2242                },
2243                inputmode: "email"
2244            },
2245            mac: {
2246                mask: "##:##:##:##:##:##"
2247            },
2248            vin: {
2249                mask: "V{13}9{4}",
2250                definitions: {
2251                    V: {
2252                        validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
2253                        cardinality: 1,
2254                        casing: "upper"
2255                    }
2256                },
2257                clearIncomplete: !0,
2258                autoUnmask: !0
2259            }
2260        }), Inputmask;
2261    });
2262}, function(module, exports, __webpack_require__) {
2263    "use strict";
2264    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
2265    "function" == typeof Symbol && Symbol.iterator;
2266    !function(factory) {
2267        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ], 
2268        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2269    }(function($, Inputmask, undefined) {
2270        function autoEscape(txt, opts) {
2271            for (var escapedTxt = "", i = 0; i < txt.length; i++) Inputmask.prototype.definitions[txt.charAt(i)] || opts.definitions[txt.charAt(i)] || opts.optionalmarker.start === txt.charAt(i) || opts.optionalmarker.end === txt.charAt(i) || opts.quantifiermarker.start === txt.charAt(i) || opts.quantifiermarker.end === txt.charAt(i) || opts.groupmarker.start === txt.charAt(i) || opts.groupmarker.end === txt.charAt(i) || opts.alternatormarker === txt.charAt(i) ? escapedTxt += "\\" + txt.charAt(i) : escapedTxt += txt.charAt(i);
2272            return escapedTxt;
2273        }
2274        return Inputmask.extendAliases({
2275            numeric: {
2276                mask: function(opts) {
2277                    if (0 !== opts.repeat && isNaN(opts.integerDigits) && (opts.integerDigits = opts.repeat), 
2278                    opts.repeat = 0, opts.groupSeparator === opts.radixPoint && ("." === opts.radixPoint ? opts.groupSeparator = "," : "," === opts.radixPoint ? opts.groupSeparator = "." : opts.groupSeparator = ""), 
2279                    " " === opts.groupSeparator && (opts.skipOptionalPartCharacter = undefined), opts.autoGroup = opts.autoGroup && "" !== opts.groupSeparator, 
2280                    opts.autoGroup && ("string" == typeof opts.groupSize && isFinite(opts.groupSize) && (opts.groupSize = parseInt(opts.groupSize)), 
2281                    isFinite(opts.integerDigits))) {
2282                        var seps = Math.floor(opts.integerDigits / opts.groupSize), mod = opts.integerDigits % opts.groupSize;
2283                        opts.integerDigits = parseInt(opts.integerDigits) + (0 === mod ? seps - 1 : seps), 
2284                        opts.integerDigits < 1 && (opts.integerDigits = "*");
2285                    }
2286                    opts.placeholder.length > 1 && (opts.placeholder = opts.placeholder.charAt(0)), 
2287                    "radixFocus" === opts.positionCaretOnClick && "" === opts.placeholder && !1 === opts.integerOptional && (opts.positionCaretOnClick = "lvp"), 
2288                    opts.definitions[";"] = opts.definitions["~"], opts.definitions[";"].definitionSymbol = "~", 
2289                    !0 === opts.numericInput && (opts.positionCaretOnClick = "radixFocus" === opts.positionCaretOnClick ? "lvp" : opts.positionCaretOnClick, 
2290                    opts.digitsOptional = !1, isNaN(opts.digits) && (opts.digits = 2), opts.decimalProtect = !1);
2291                    var mask = "[+]";
2292                    if (mask += autoEscape(opts.prefix, opts), !0 === opts.integerOptional ? mask += "~{1," + opts.integerDigits + "}" : mask += "~{" + opts.integerDigits + "}", 
2293                    opts.digits !== undefined) {
2294                        opts.radixPointDefinitionSymbol = opts.decimalProtect ? ":" : opts.radixPoint;
2295                        var dq = opts.digits.toString().split(",");
2296                        isFinite(dq[0] && dq[1] && isFinite(dq[1])) ? mask += opts.radixPointDefinitionSymbol + ";{" + opts.digits + "}" : (isNaN(opts.digits) || parseInt(opts.digits) > 0) && (opts.digitsOptional ? mask += "[" + opts.radixPointDefinitionSymbol + ";{1," + opts.digits + "}]" : mask += opts.radixPointDefinitionSymbol + ";{" + opts.digits + "}");
2297                    }
2298                    return mask += autoEscape(opts.suffix, opts), mask += "[-]", opts.greedy = !1, mask;
2299                },
2300                placeholder: "",
2301                greedy: !1,
2302                digits: "*",
2303                digitsOptional: !0,
2304                enforceDigitsOnBlur: !1,
2305                radixPoint: ".",
2306                positionCaretOnClick: "radixFocus",
2307                groupSize: 3,
2308                groupSeparator: "",
2309                autoGroup: !1,
2310                allowMinus: !0,
2311                negationSymbol: {
2312                    front: "-",
2313                    back: ""
2314                },
2315                integerDigits: "+",
2316                integerOptional: !0,
2317                prefix: "",
2318                suffix: "",
2319                rightAlign: !0,
2320                decimalProtect: !0,
2321                min: null,
2322                max: null,
2323                step: 1,
2324                insertMode: !0,
2325                autoUnmask: !1,
2326                unmaskAsNumber: !1,
2327                inputmode: "numeric",
2328                preValidation: function(buffer, pos, c, isSelection, opts) {
2329                    if ("-" === c || c == opts.negationSymbol.front) return !0 === opts.allowMinus && (opts.isNegative = opts.isNegative === undefined || !opts.isNegative, 
2330                    "" === buffer.join("") || {
2331                        caret: pos,
2332                        dopost: !0
2333                    });
2334                    if (!1 === isSelection && c === opts.radixPoint && opts.digits !== undefined && (isNaN(opts.digits) || parseInt(opts.digits) > 0)) {
2335                        var radixPos = $.inArray(opts.radixPoint, buffer);
2336                        if (-1 !== radixPos) return !0 === opts.numericInput ? pos === radixPos : {
2337                            caret: radixPos + 1
2338                        };
2339                    }
2340                    return !0;
2341                },
2342                postValidation: function(buffer, currentResult, opts) {
2343                    var suffix = opts.suffix.split(""), prefix = opts.prefix.split("");
2344                    if (currentResult.pos == undefined && currentResult.caret !== undefined && !0 !== currentResult.dopost) return currentResult;
2345                    var caretPos = currentResult.caret != undefined ? currentResult.caret : currentResult.pos, maskedValue = buffer.slice();
2346                    opts.numericInput && (caretPos = maskedValue.length - caretPos - 1, maskedValue = maskedValue.reverse());
2347                    var charAtPos = maskedValue[caretPos];
2348                    if (charAtPos === opts.groupSeparator && (caretPos += 1, charAtPos = maskedValue[caretPos]), 
2349                    caretPos == maskedValue.length - opts.suffix.length - 1 && charAtPos === opts.radixPoint) return currentResult;
2350                    charAtPos !== undefined && charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back && (maskedValue[caretPos] = "?", 
2351                    opts.prefix.length > 0 && caretPos >= (!1 === opts.isNegative ? 1 : 0) && caretPos < opts.prefix.length - 1 + (!1 === opts.isNegative ? 1 : 0) ? prefix[caretPos - (!1 === opts.isNegative ? 1 : 0)] = "?" : opts.suffix.length > 0 && caretPos >= maskedValue.length - opts.suffix.length - (!1 === opts.isNegative ? 1 : 0) && (suffix[caretPos - (maskedValue.length - opts.suffix.length - (!1 === opts.isNegative ? 1 : 0))] = "?")), 
2352                    prefix = prefix.join(""), suffix = suffix.join("");
2353                    var processValue = maskedValue.join("").replace(prefix, "");
2354                    if (processValue = processValue.replace(suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""), 
2355                    processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), ""), 
2356                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), ""), 
2357                    isNaN(opts.placeholder) && (processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.placeholder), "g"), "")), 
2358                    processValue.length > 1 && 1 !== processValue.indexOf(opts.radixPoint) && ("0" == charAtPos && (processValue = processValue.replace(/^\?/g, "")), 
2359                    processValue = processValue.replace(/^0/g, "")), processValue.charAt(0) === opts.radixPoint && "" !== opts.radixPoint && !0 !== opts.numericInput && (processValue = "0" + processValue), 
2360                    "" !== processValue) {
2361                        if (processValue = processValue.split(""), (!opts.digitsOptional || opts.enforceDigitsOnBlur && "blur" === currentResult.event) && isFinite(opts.digits)) {
2362                            var radixPosition = $.inArray(opts.radixPoint, processValue), rpb = $.inArray(opts.radixPoint, maskedValue);
2363                            -1 === radixPosition && (processValue.push(opts.radixPoint), radixPosition = processValue.length - 1);
2364                            for (var i = 1; i <= opts.digits; i++) opts.digitsOptional && (!opts.enforceDigitsOnBlur || "blur" !== currentResult.event) || processValue[radixPosition + i] !== undefined && processValue[radixPosition + i] !== opts.placeholder.charAt(0) ? -1 !== rpb && maskedValue[rpb + i] !== undefined && (processValue[radixPosition + i] = processValue[radixPosition + i] || maskedValue[rpb + i]) : processValue[radixPosition + i] = currentResult.placeholder || opts.placeholder.charAt(0);
2365                        }
2366                        !0 !== opts.autoGroup || "" === opts.groupSeparator || charAtPos === opts.radixPoint && currentResult.pos === undefined && !currentResult.dopost ? processValue = processValue.join("") : (processValue = Inputmask(function(buffer, opts) {
2367                            var postMask = "";
2368                            if (postMask += "(" + opts.groupSeparator + "*{" + opts.groupSize + "}){*}", "" !== opts.radixPoint) {
2369                                var radixSplit = buffer.join("").split(opts.radixPoint);
2370                                radixSplit[1] && (postMask += opts.radixPoint + "*{" + radixSplit[1].match(/^\d*\??\d*/)[0].length + "}");
2371                            }
2372                            return postMask;
2373                        }(processValue, opts), {
2374                            numericInput: !0,
2375                            jitMasking: !0,
2376                            definitions: {
2377                                "*": {
2378                                    validator: "[0-9?]",
2379                                    cardinality: 1
2380                                }
2381                            }
2382                        }).format(processValue.join("")), processValue.charAt(0) === opts.groupSeparator && processValue.substr(1));
2383                    }
2384                    if (opts.isNegative && "blur" === currentResult.event && (opts.isNegative = "0" !== processValue), 
2385                    processValue = prefix + processValue, processValue += suffix, opts.isNegative && (processValue = opts.negationSymbol.front + processValue, 
2386                    processValue += opts.negationSymbol.back), processValue = processValue.split(""), 
2387                    charAtPos !== undefined) if (charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back) caretPos = $.inArray("?", processValue), 
2388                    caretPos > -1 ? processValue[caretPos] = charAtPos : caretPos = currentResult.caret || 0; else if (charAtPos === opts.radixPoint || charAtPos === opts.negationSymbol.front || charAtPos === opts.negationSymbol.back) {
2389                        var newCaretPos = $.inArray(charAtPos, processValue);
2390                        -1 !== newCaretPos && (caretPos = newCaretPos);
2391                    }
2392                    opts.numericInput && (caretPos = processValue.length - caretPos - 1, processValue = processValue.reverse());
2393                    var rslt = {
2394                        caret: charAtPos === undefined || currentResult.pos !== undefined ? caretPos + (opts.numericInput ? -1 : 1) : caretPos,
2395                        buffer: processValue,
2396                        refreshFromBuffer: currentResult.dopost || buffer.join("") !== processValue.join("")
2397                    };
2398                    return rslt.refreshFromBuffer ? rslt : currentResult;
2399                },
2400                onBeforeWrite: function(e, buffer, caretPos, opts) {
2401                    if (e) switch (e.type) {
2402                      case "keydown":
2403                        return opts.postValidation(buffer, {
2404                            caret: caretPos,
2405                            dopost: !0
2406                        }, opts);
2407
2408                      case "blur":
2409                      case "checkval":
2410                        var unmasked;
2411                        if (function(opts) {
2412                            opts.parseMinMaxOptions === undefined && (null !== opts.min && (opts.min = opts.min.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""), 
2413                            "," === opts.radixPoint && (opts.min = opts.min.replace(opts.radixPoint, ".")), 
2414                            opts.min = isFinite(opts.min) ? parseFloat(opts.min) : NaN, isNaN(opts.min) && (opts.min = Number.MIN_VALUE)), 
2415                            null !== opts.max && (opts.max = opts.max.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""), 
2416                            "," === opts.radixPoint && (opts.max = opts.max.replace(opts.radixPoint, ".")), 
2417                            opts.max = isFinite(opts.max) ? parseFloat(opts.max) : NaN, isNaN(opts.max) && (opts.max = Number.MAX_VALUE)), 
2418                            opts.parseMinMaxOptions = "done");
2419                        }(opts), null !== opts.min || null !== opts.max) {
2420                            if (unmasked = opts.onUnMask(buffer.join(""), undefined, $.extend({}, opts, {
2421                                unmaskAsNumber: !0
2422                            })), null !== opts.min && unmasked < opts.min) return opts.isNegative = opts.min < 0, 
2423                            opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), {
2424                                caret: caretPos,
2425                                dopost: !0,
2426                                placeholder: "0"
2427                            }, opts);
2428                            if (null !== opts.max && unmasked > opts.max) return opts.isNegative = opts.max < 0, 
2429                            opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), {
2430                                caret: caretPos,
2431                                dopost: !0,
2432                                placeholder: "0"
2433                            }, opts);
2434                        }
2435                        return opts.postValidation(buffer, {
2436                            caret: caretPos,
2437                            dopost: !0,
2438                            placeholder: "0",
2439                            event: "blur"
2440                        }, opts);
2441
2442                      case "_checkval":
2443                        return {
2444                            caret: caretPos
2445                        };
2446                    }
2447                },
2448                regex: {
2449                    integerPart: function(opts, emptyCheck) {
2450                        return emptyCheck ? new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?") : new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?\\d+");
2451                    },
2452                    integerNPart: function(opts) {
2453                        return new RegExp("[\\d" + Inputmask.escapeRegex(opts.groupSeparator) + Inputmask.escapeRegex(opts.placeholder.charAt(0)) + "]+");
2454                    }
2455                },
2456                definitions: {
2457                    "~": {
2458                        validator
2458: function(chrs, maskset, pos, strict, opts, isSelection) {
2459                            var isValid = strict ? new RegExp("[0-9" + Inputmask.escapeRegex(opts.groupSeparator) + "]").test(chrs) : new RegExp("[0-9]").test(chrs);
2460                            if (!0 === isValid) {
2461                                if (!0 !== opts.numericInput && maskset.validPositions[pos] !== undefined && "~" === maskset.validPositions[pos].match.def && !isSelection) {
2462                                    var processValue = maskset.buffer.join("");
2463                                    processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), ""), 
2464                                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "");
2465                                    var pvRadixSplit = processValue.split(opts.radixPoint);
2466                                    pvRadixSplit.length > 1 && (pvRadixSplit[1] = pvRadixSplit[1].replace(/0/g, opts.placeholder.charAt(0))), 
2467                                    "0" === pvRadixSplit[0] && (pvRadixSplit[0] = pvRadixSplit[0].replace(/0/g, opts.placeholder.charAt(0))), 
2468                                    processValue = pvRadixSplit[0] + opts.radixPoint + pvRadixSplit[1] || "";
2469                                    var bufferTemplate = maskset._buffer.join("");
2470                                    for (processValue === opts.radixPoint && (processValue = bufferTemplate); null === processValue.match(Inputmask.escapeRegex(bufferTemplate) + "$"); ) bufferTemplate = bufferTemplate.slice(1);
2471                                    processValue = processValue.replace(bufferTemplate, ""), processValue = processValue.split(""), 
2472                                    isValid = processValue[pos] === undefined ? {
2473                                        pos: pos,
2474                                        remove: pos
2475                                    } : {
2476                                        pos: pos
2477                                    };
2478                                }
2479                            } else strict || chrs !== opts.radixPoint || maskset.validPositions[pos - 1] !== undefined || (maskset.buffer[pos] = "0", 
2480                            isValid = {
2481                                pos: pos + 1
2482                            });
2483                            return isValid;
2484                        },
2485                        cardinality: 1
2486                    },
2487                    "+": {
2488                        validator: function(chrs, maskset, pos, strict, opts) {
2489                            return opts.allowMinus && ("-" === chrs || chrs === opts.negationSymbol.front);
2490                        },
2491                        cardinality: 1,
2492                        placeholder: ""
2493                    },
2494                    "-": {
2495                        validator: function(chrs, maskset, pos, strict, opts) {
2496                            return opts.allowMinus && chrs === opts.negationSymbol.back;
2497                        },
2498                        cardinality: 1,
2499                        placeholder: ""
2500                    },
2501                    ":": {
2502                        validator: function(chrs, maskset, pos, strict, opts) {
2503                            var radix = "[" + Inputmask.escapeRegex(opts.radixPoint) + "]", isValid = new RegExp(radix).test(chrs);
2504                            return isValid && maskset.validPositions[pos] && maskset.validPositions[pos].match.placeholder === opts.radixPoint && (isValid = {
2505                                caret: pos + 1
2506                            }), isValid;
2507                        },
2508                        cardinality: 1,
2509                        placeholder: function(opts) {
2510                            return opts.radixPoint;
2511                        }
2512                    }
2513                },
2514                onUnMask: function(maskedValue, unmaskedValue, opts) {
2515                    if ("" === unmaskedValue && !0 === opts.nullable) return unmaskedValue;
2516                    var processValue = maskedValue.replace(opts.prefix, "");
2517                    return processValue = processValue.replace(opts.suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""), 
2518                    "" !== opts.placeholder.charAt(0) && (processValue = processValue.replace(new RegExp(opts.placeholder.charAt(0), "g"), "0")), 
2519                    opts.unmaskAsNumber ? ("" !== opts.radixPoint && -1 !== processValue.indexOf(opts.radixPoint) && (processValue = processValue.replace(Inputmask.escapeRegex.call(this, opts.radixPoint), ".")), 
2520                    processValue = processValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-"), 
2521                    processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), ""), 
2522                    Number(processValue)) : processValue;
2523                },
2524                isComplete: function(buffer, opts) {
2525                    var maskedValue = buffer.join("");
2526                    if (buffer.slice().join("") !== maskedValue) return !1;
2527                    var processValue = maskedValue.replace(opts.prefix, "");
2528                    return processValue = processValue.replace(opts.suffix, ""), processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""), 
2529                    "," === opts.radixPoint && (processValue = processValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".")), 
2530                    isFinite(processValue);
2531                },
2532                onBeforeMask: function(initialValue, opts) {
2533                    if (opts.isNegative = undefined, initialValue = initialValue.toString().charAt(initialValue.length - 1) === opts.radixPoint ? initialValue.toString().substr(0, initialValue.length - 1) : initialValue.toString(), 
2534                    "" !== opts.radixPoint && isFinite(initialValue)) {
2535                        var vs = initialValue.split("."), groupSize = "" !== opts.groupSeparator ? parseInt(opts.groupSize) : 0;
2536                        2 === vs.length && (vs[0].length > groupSize || vs[1].length > groupSize || vs[0].length <= groupSize && vs[1].length < groupSize) && (initialValue = initialValue.replace(".", opts.radixPoint));
2537                    }
2538                    var kommaMatches = initialValue.match(/,/g), dotMatches = initialValue.match(/\./g);
2539                    if (dotMatches && kommaMatches ? dotMatches.length > kommaMatches.length ? (initialValue = initialValue.replace(/\./g, ""), 
2540                    initialValue = initialValue.replace(",", opts.radixPoint)) : kommaMatches.length > dotMatches.length ? (initialValue = initialValue.replace(/,/g, ""), 
2541                    initialValue = initialValue.replace(".", opts.radixPoint)) : initialValue = initialValue.indexOf(".") < initialValue.indexOf(",") ? initialValue.replace(/\./g, "") : initialValue = initialValue.replace(/,/g, "") : initialValue = initialValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""), 
2542                    0 === opts.digits && (-1 !== initialValue.indexOf(".") ? initialValue = initialValue.substring(0, initialValue.indexOf(".")) : -1 !== initialValue.indexOf(",") && (initialValue = initialValue.substring(0, initialValue.indexOf(",")))), 
2543                    "" !== opts.radixPoint && isFinite(opts.digits) && -1 !== initialValue.indexOf(opts.radixPoint)) {
2544                        var valueParts = initialValue.split(opts.radixPoint), decPart = valueParts[1].match(new RegExp("\\d*"))[0];
2545                        if (parseInt(opts.digits) < decPart.toString().length) {
2546                            var digitsFactor = Math.pow(10, parseInt(opts.digits));
2547                            initialValue = initialValue.replace(Inputmask.escapeRegex(opts.radixPoint), "."), 
2548                            initialValue = Math.round(parseFloat(initialValue) * digitsFactor) / digitsFactor, 
2549                            initialValue = initialValue.toString().replace(".", opts.radixPoint);
2550                        }
2551                    }
2552                    return initialValue;
2553                },
2554                canClearPosition: function(maskset, position, lvp, strict, opts) {
2555                    var vp = maskset.validPositions[position], canClear = vp.input !== opts.radixPoint || null !== maskset.validPositions[position].match.fn && !1 === opts.decimalProtect || vp.input === opts.radixPoint && maskset.validPositions[position + 1] && null === maskset.validPositions[position + 1].match.fn || isFinite(vp.input) || position === lvp || vp.input === opts.groupSeparator || vp.input === opts.negationSymbol.front || vp.input === opts.negationSymbol.back;
2556                    return !canClear || "+" != vp.match.nativeDef && "-" != vp.match.nativeDef || (opts.isNegative = !1), 
2557                    canClear;
2558                },
2559                onKeyDown: function(e, buffer, caretPos, opts) {
2560                    var $input = $(this);
2561                    if (e.ctrlKey) switch (e.keyCode) {
2562                      case Inputmask.keyCode.UP:
2563                        $input.val(parseFloat(this.inputmask.unmaskedvalue()) + parseInt(opts.step)), $input.trigger("setvalue");
2564                        break;
2565
2566                      case Inputmask.keyCode.DOWN:
2567                        $input.val(parseFloat(this.inputmask.unmaskedvalue()) - parseInt(opts.step)), $input.trigger("setvalue");
2568                    }
2569                }
2570            },
2571            currency: {
2572                prefix: "$ ",
2573                groupSeparator: ",",
2574                alias: "numeric",
2575                placeholder: "0",
2576                autoGroup: !0,
2577                digits: 2,
2578                digitsOptional: !1,
2579                clearMaskOnLostFocus: !1
2580            },
2581            decimal: {
2582                alias: "numeric"
2583            },
2584            integer: {
2585                alias: "numeric",
2586                digits: 0,
2587                radixPoint: ""
2588            },
2589            percentage: {
2590                alias: "numeric",
2591                digits: 2,
2592                digitsOptional: !0,
2593                radixPoint: ".",
2594                placeholder: "0",
2595                autoGroup: !1,
2596                min: 0,
2597                max: 100,
2598                suffix: " %",
2599                allowMinus: !1
2600            }
2601        }), Inputmask;
2602    });
2603}, function(module, exports, __webpack_require__) {
2604    "use strict";
2605    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
2606    "function" == typeof Symbol && Symbol.iterator;
2607    !function(factory) {
2608        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ], 
2609        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2610    }(function($, Inputmask) {
2611        function maskSort(a, b) {
2612            var maska = (a.mask || a).replace(/#/g, "9").replace(/\)/, "9").replace(/[+()#-]/g, ""), maskb = (b.mask || b).replace(/#/g, "9").replace(/\)/, "9").replace(/[+()#-]/g, ""), maskas = (a.mask || a).split("#")[0], maskbs = (b.mask || b).split("#")[0];
2613            return 0 === maskbs.indexOf(maskas) ? -1 : 0 === maskas.indexOf(maskbs) ? 1 : maska.localeCompare(maskb);
2614        }
2615        var analyseMaskBase = Inputmask.prototype.analyseMask;
2616        return Inputmask.prototype.analyseMask = function(mask, regexMask, opts) {
2617            function reduceVariations(masks, previousVariation, previousmaskGroup) {
2618                previousVariation = previousVariation || "", previousmaskGroup = previousmaskGroup || maskGroups, 
2619                "" !== previousVariation && (previousmaskGroup[previousVariation] = {});
2620                for (var variation = "", maskGroup = previousmaskGroup[previousVariation] || previousmaskGroup, i = masks.length - 1; i >= 0; i--) mask = masks[i].mask || masks[i], 
2621                variation = mask.substr(0, 1), maskGroup[variation] = maskGroup[variation] || [], 
2622                maskGroup[variation].unshift(mask.substr(1)), masks.splice(i, 1);
2623                for (var ndx in maskGroup) maskGroup[ndx].length > 500 && reduceVariations(maskGroup[ndx].slice(), ndx, maskGroup);
2624            }
2625            function rebuild(maskGroup) {
2626                var mask = "", submasks = [];
2627                for (var ndx in maskGroup) $.isArray(maskGroup[ndx]) ? 1 === maskGroup[ndx].length ? submasks.push(ndx + maskGroup[ndx]) : submasks.push(ndx + opts.groupmarker.start + maskGroup[ndx].join(opts.groupmarker.end + opts.alternatormarker + opts.groupmarker.start) + opts.groupmarker.end) : submasks.push(ndx + rebuild(maskGroup[ndx]));
2628                return 1 === submasks.length ? mask += submasks[0] : mask += opts.groupmarker.start + submasks.join(opts.groupmarker.end + opts.alternatormarker + opts.groupmarker.start) + opts.groupmarker.end, 
2629                mask;
2630            }
2631            var maskGroups = {};
2632            return opts.phoneCodes && (opts.phoneCodes && opts.phoneCodes.length > 1e3 && (mask = mask.substr(1, mask.length - 2), 
2633            reduceVariations(mask.split(opts.groupmarker.end + opts.alternatormarker + opts.groupmarker.start)), 
2634            mask = rebuild(maskGroups)), mask = mask.replace(/9/g, "\\9")), analyseMaskBase.call(this, mask, regexMask, opts);
2635        }, Inputmask.extendAliases({
2636            abstractphone: {
2637                groupmarker: {
2638                    start: "<",
2639                    end: ">"
2640                },
2641                countrycode: "",
2642                phoneCodes: [],
2643                mask: function(opts) {
2644                    return opts.definitions = {
2645                        "#": Inputmask.prototype.definitions[9]
2646                    }, opts.phoneCodes.sort(maskSort);
2647                },
2648                keepStatic: !0,
2649                onBeforeMask: function(value, opts) {
2650                    var processedValue = value.replace(/^0{1,2}/, "").replace(/[\s]/g, "");
2651                    return (processedValue.indexOf(opts.countrycode) > 1 || -1 === processedValue.indexOf(opts.countrycode)) && (processedValue = "+" + opts.c
2651ountrycode + processedValue), 
2652                    processedValue;
2653                },
2654                onUnMask: function(maskedValue, unmaskedValue, opts) {
2655                    return maskedValue.replace(/[()#-]/g, "");
2656                },
2657                inputmode: "tel"
2658            }
2659        }), Inputmask;
2660    });
2661}, function(module, exports, __webpack_require__) {
2662    "use strict";
2663    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
2664    "function" == typeof Symbol && Symbol.iterator;
2665    !function(factory) {
2666        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ], 
2667        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2668    }(function($, Inputmask) {
2669        return Inputmask.extendAliases({
2670            Regex: {
2671                mask: "r",
2672                greedy: !1,
2673                repeat: "*",
2674                regex: null,
2675                regexTokens: null,
2676                tokenizer: /\[\^?]?(?:[^\\\]]+|\\[\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,
2677                quantifierFilter: /[0-9]+[^,]/,
2678                isComplete: function(buffer, opts) {
2679                    return new RegExp(opts.regex, opts.casing ? "i" : "").test(buffer.join(""));
2680                },
2681                definitions: {
2682                    r: {
2683                        validator: function(chrs, maskset, pos, strict, opts) {
2684                            function RegexToken(isGroup, isQuantifier) {
2685                                this.matches = [], this.isGroup = isGroup || !1, this.isQuantifier = isQuantifier || !1, 
2686                                this.quantifier = {
2687                                    min: 1,
2688                                    max: 1
2689                                }, this.repeaterPart = void 0;
2690                            }
2691                            function validateRegexToken(token, fromGroup) {
2692                                var isvalid = !1;
2693                                fromGroup && (regexPart += "(", openGroupCount++);
2694                                for (var mndx = 0; mndx < token.matches.length; mndx++) {
2695                                    var matchToken = token.matches[mndx];
2696                                    if (!0 === matchToken.isGroup) isvalid = validateRegexToken(matchToken, !0); else if (!0 === matchToken.isQuantifier) {
2697                                        var crrntndx = $.inArray(matchToken, token.matches), matchGroup = token.matches[crrntndx - 1], regexPartBak = regexPart;
2698                                        if (isNaN(matchToken.quantifier.max)) {
2699                                            for (;matchToken.repeaterPart && matchToken.repeaterPart !== regexPart && matchToken.repeaterPart.length > regexPart.length && !(isvalid = validateRegexToken(matchGroup, !0)); ) ;
2700                                            isvalid = isvalid || validateRegexToken(matchGroup, !0), isvalid && (matchToken.repeaterPart = regexPart), 
2701                                            regexPart = regexPartBak + matchToken.quantifier.max;
2702                                        } else {
2703                                            for (var i = 0, qm = matchToken.quantifier.max - 1; i < qm && !(isvalid = validateRegexToken(matchGroup, !0)); i++) ;
2704                                            regexPart = regexPartBak + "{" + matchToken.quantifier.min + "," + matchToken.quantifier.max + "}";
2705                                        }
2706                                    } else if (void 0 !== matchToken.matches) for (var k = 0; k < matchToken.length && !(isvalid = validateRegexToken(matchToken[k], fromGroup)); k++) ; else {
2707                                        var testExp;
2708                                        if ("[" == matchToken.charAt(0)) {
2709                                            testExp = regexPart, testExp += matchToken;
2710                                            for (var j = 0; j < openGroupCount; j++) testExp += ")";
2711                                            var exp = new RegExp("^(" + testExp + ")$", opts.casing ? "i" : "");
2712                                            isvalid = exp.test(bufferStr);
2713                                        } else for (var l = 0, tl = matchToken.length; l < tl; l++) if ("\\" !== matchToken.charAt(l)) {
2714                                            testExp = regexPart, testExp += matchToken.substr(0, l + 1), testExp = testExp.replace(/\|$/, "");
2715                                            for (var j = 0; j < openGroupCount; j++) testExp += ")";
2716                                            var exp = new RegExp("^(" + testExp + ")$", opts.casing ? "i" : "");
2717                                            if (isvalid = exp.test(bufferStr)) break;
2718                                        }
2719                                        regexPart += matchToken;
2720                                    }
2721                                    if (isvalid) break;
2722                                }
2723                                return fromGroup && (regexPart += ")", openGroupCount--), isvalid;
2724                            }
2725                            var bufferStr, groupToken, cbuffer = maskset.buffer.slice(), regexPart = "", isValid = !1, openGroupCount = 0;
2726                            null === opts.regexTokens && function() {
2727                                var match, m, currentToken = new RegexToken(), opengroups = [];
2728                                for (opts.regexTokens = []; match = opts.tokenizer.exec(opts.regex); ) switch (m = match[0], 
2729                                m.charAt(0)) {
2730                                  case "(":
2731                                    opengroups.push(new RegexToken(!0));
2732                                    break;
2733
2734                                  case ")":
2735                                    groupToken = opengroups.pop(), opengroups.length > 0 ? opengroups[opengroups.length - 1].matches.push(groupToken) : currentToken.matches.push(groupToken);
2736                                    break;
2737
2738                                  case "{":
2739                                  case "+":
2740                                  case "*":
2741                                    var quantifierToken = new RegexToken(!1, !0);
2742                                    m = m.replace(/[{}]/g, "");
2743                                    var mq = m.split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = 1 === mq.length ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
2744                                    if (quantifierToken.quantifier = {
2745                                        min: mq0,
2746                                        max: mq1
2747                                    }, opengroups.length > 0) {
2748                                        var matches = opengroups[opengroups.length - 1].matches;
2749                                        match = matches.pop(), match.isGroup || (groupToken = new RegexToken(!0), groupToken.matches.push(match), 
2750                                        match = groupToken), matches.push(match), matches.push(quantifierToken);
2751                                    } else match = currentToken.matches.pop(), match.isGroup || (groupToken = new RegexToken(!0), 
2752                                    groupToken.matches.push(match), match = groupToken), currentToken.matches.push(match), 
2753                                    currentToken.matches.push(quantifierToken);
2754                                    break;
2755
2756                                  default:
2757                                    opengroups.length > 0 ? opengroups[opengroups.length - 1].matches.push(m) : currentToken.matches.push(m);
2758                                }
2759                                currentToken.matches.length > 0 && opts.regexTokens.push(currentToken);
2760                            }(), cbuffer.splice(pos, 0, chrs), bufferStr = cbuffer.join("");
2761                            for (var i = 0; i < opts.regexTokens.length; i++) {
2762                                var regexToken = opts.regexTokens[i];
2763                                if (isValid = validateRegexToken(regexToken, regexToken.isGroup)) break;
2764                            }
2765                            return isValid;
2766                        },
2767                        cardinality: 1
2768                    }
2769                }
2770            }
2771        }), Inputmask;
2772    });
2773}, function(module, exports, __webpack_require__) {
2774    "use strict";
2775    var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
2776        return typeof obj;
2777    } : function(obj) {
2778        return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2779    };
2780    !function(factory) {
2781        __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2), __webpack_require__(1) ], 
2782        __WEBPACK_AMD_DEFINE_FACTORY__ = factory, void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof __WEBPACK_AMD_DEFINE_FACTORY__ ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2783    }(function($, Inputmask) {
2784        return void 0 === $.fn.inputmask && ($.fn.inputmask = function(fn, options) {
2785            var nptmask, input = this[0];
2786            if (void 0 === options && (options = {}), "string" == typeof fn) switch (fn) {
2787              case "unmaskedvalue":
2788                return input && input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val();
2789
2790              case "remove":
2791                return this.each(function() {
2792                    this.inputmask && this.inputmask.remove();
2793                });
2794
2795              case "getemptymask":
2796                return input && input.inputmask ? input.inputmask.getemptymask() : "";
2797
2798              case "hasMaskedValue":
2799                return !(!input || !input.inputmask) && input.inputmask.hasMaskedValue();
2800
2801              case "isComplete":
2802                return !input || !input.inputmask || input.inputmask.isComplete();
2803
2804              case "getmetadata":
2805                return input && input.inputmask ? input.inputmask.getmetadata() : void 0;
2806
2807              case "setvalue":
2808                $(input).val(options), input && void 0 === input.inputmask && $(input).triggerHandler("setvalue");
2809                break;
2810
2811              case "option":
2812                if ("string" != typeof options) return this.each(function() {
2813                    if (void 0 !== this.inputmask) return this.inputmask.option(options);
2814                });
2815                if (input && void 0 !== input.inputmask) return input.inputmask.option(options);
2816                break;
2817
2818              default:
2819                return options.alias = fn, nptmask = new Inputmask(options), this.each(function() {
2820                    nptmask.mask(this);
2821                });
2822            } else {
2823                if ("object" == (void 0 === fn ? "undefined" : _typeof(fn))) return nptmask = new Inputmask(fn), 
2824                void 0 === fn.mask && void 0 === fn.alias ? this.each(function() {
2825                    if (void 0 !== this.inputmask) return this.inputmask.option(fn);
2826                    nptmask.mask(this);
2827                }) : this.each(function() {
2828                    nptmask.mask(this);
2829                });
2830                if (void 0 === fn) return this.each(function() {
2831                    nptmask = new Inputmask(options), nptmask.mask(this);
2832                });
2833            }
2834        }), $.fn.inputmask;
2835    });
2836}, function(module, exports, __webpack_require__) {
2837    var content = __webpack_require__(13);
2838    "string" == typeof content && (content = [ [ module.i, content, "" ] ]);
2839    __webpack_require__(15)(content, {});
2840    content.locals && (module.exports = content.locals);
2841}, function(module, exports, __webpack_require__) {
2842    "use strict";
2843    function _interopRequireDefault(obj) {
2844        return obj && obj.__esModule ? obj : {
2845            default: obj
2846        };
2847    }
2848    __webpack_require__(9), __webpack_require__(3), __webpack_require__(4), __webpack_require__(5), 
2849    __webpack_require__(6), __webpack_require__(7);
2850    var _inputmask = __webpack_require__(1), _inputmask2 = _interopRequireDefault(_inputmask), _inputmask3 = __webpack_require__(0), _inputmask4 = _interopRequireDefault(_inputmask3), _jquery = __webpack_require__(2), _jquery2 = _interopRequireDefault(_jquery);
2851    _inputmask4.default === _jquery2.default && __webpack_require__(8), window.Inputmask = _inputmask2.default;
2852}, function(module, exports, __webpack_require__) {
2853    "use strict";
2854    var __WEBPACK_AMD_DEFINE_RESULT__;
2855    "function" == typeof Symbol && Symbol.iterator;
2856    void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = function() {
2857        return document;
2858    }.call(exports, __webpack_require__, exports, module)) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2859}, function(module, exports, __webpack_require__) {
2860    "use strict";
2861    var __WEBPACK_AMD_DEFINE_RESULT__;
2862    "function" == typeof Symbol && Symbol.iterator;
2863    void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = function() {
2864        return window;
2865    }.call(exports, __webpack_require__, exports, module)) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
2866}, function(module, exports, __webpack_require__) {
2867    exports = module.exports = __webpack_require__(14)(void 0), exports.push([ module.i, ".im-caret {\r\n\t-webkit-animation: 1s blink step-end infinite;\r\n\tanimation: 1s blink step-end infinite;\r\n}\r\n\r\n@keyframes blink {\r\n\tfrom, to {\r\n\t\tborder-right-color: black;\r\n\t}\r\n\t50% {\r\n\t\tborder-right-color: transparent;\r\n\t}\r\n}\r\n\r\n@-webkit-keyframes blink {\r\n\tfrom, to {\r\n\t\tborder-right-color: black;\r\n\t}\r\n\t50% {\r\n\t\tborder-right-color: transparent;\r\n\t}\r\n}\r\n\r\n.im-static {\r\n\tcolor: grey;\r\n}\r\n", "" ]);
2868}
vendor: 11,295 bytes, lines 2868-3070
2868, function(module, exports) {
2869    function cssWithMappingToString(item, useSourceMap) {
2870        var content = item[1] || "", cssMapping = item[3];
2871        if (!cssMapping) return content;
2872        if (useSourceMap && "function" == typeof btoa) {
2873            var sourceMapping = toComment(cssMapping), sourceURLs = cssMapping.sources.map(function(source) {
2874                return "/*# sourceURL=" + cssMapping.sourceRoot + source + " */";
2875            });
2876            return [ content ].concat(sourceURLs).concat([ sourceMapping ]).join("\n");
2877        }
2878        return [ content ].join("\n");
2879    }
2880    function toComment(sourceMap) {
2881        return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
2882    }
2883    module.exports = function(useSourceMap) {
2884        var list = [];
2885        return list.toString = function() {
2886            return this.map(function(item) {
2887                var content = cssWithMappingToString(item, useSourceMap);
2888                return item[2] ? "@media " + item[2] + "{" + content + "}" : content;
2889            }).join("");
2890        }, list.i = function(modules, mediaQuery) {
2891            "string" == typeof modules && (modules = [ [ null, modules, "" ] ]);
2892            for (var alreadyImportedModules = {}, i = 0; i < this.length; i++) {
2893                var id = this[i][0];
2894                "number" == typeof id && (alreadyImportedModules[id] = !0);
2895            }
2896            for (i = 0; i < modules.length; i++) {
2897                var item = modules[i];
2898                "number" == typeof item[0] && alreadyImportedModules[item[0]] || (mediaQuery && !item[2] ? item[2] = mediaQuery : mediaQuery && (item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"), 
2899                list.push(item));
2900            }
2901        }, list;
2902    };
2903}, function(module, exports, __webpack_require__) {
2904    function addStylesToDom(styles, options) {
2905        for (var i = 0; i < styles.length; i++) {
2906            var item = styles[i], domStyle = stylesInDom[item.id];
2907            if (domStyle) {
2908                domStyle.refs++;
2909                for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](item.parts[j]);
2910                for (;j < item.parts.length; j++) domStyle.parts.push(addStyle(item.parts[j], options));
2911            } else {
2912                for (var parts = [], j = 0; j < item.parts.length; j++) parts.push(addStyle(item.parts[j], options));
2913                stylesInDom[item.id] = {
2914                    id: item.id,
2915                    refs: 1,
2916                    parts: parts
2917                };
2918            }
2919        }
2920    }
2921    function listToStyles(list) {
2922        for (var styles = [], newStyles = {}, i = 0; i < list.length; i++) {
2923            var item = list[i], id = item[0], css = item[1], media = item[2], sourceMap = item[3], part = {
2924                css: css,
2925                media: media,
2926                sourceMap: sourceMap
2927            };
2928            newStyles[id] ? newStyles[id].parts.push(part) : styles.push(newStyles[id] = {
2929                id: id,
2930                parts: [ part ]
2931            });
2932        }
2933        return styles;
2934    }
2935    function insertStyleElement(options, styleElement) {
2936        var styleTarget = getElement(options.insertInto);
2937        if (!styleTarget) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
2938        var lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];
2939        if ("top" === options.insertAt) lastStyleElementInsertedAtTop ? lastStyleElementInsertedAtTop.nextSibling ? styleTarget.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling) : styleTarget.appendChild(styleElement) : styleTarget.insertBefore(styleElement, styleTarget.firstChild), 
2940        styleElementsInsertedAtTop.push(styleElement); else {
2941            if ("bottom" !== options.insertAt) throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");
2942            styleTarget.appendChild(styleElement);
2943        }
2944    }
2945    function removeStyleElement(styleElement) {
2946        styleElement.parentNode.removeChild(styleElement);
2947        var idx = styleElementsInsertedAtTop.indexOf(styleElement);
2948        idx >= 0 && styleElementsInsertedAtTop.splice(idx, 1);
2949    }
2950    function createStyleElement(options) {
2951        var styleElement = document.createElement("style");
2952        return options.attrs.type = "text/css", attachTagAttrs(styleElement, options.attrs), 
2953        insertStyleElement(options, styleElement), styleElement;
2954    }
2955    function createLinkElement(options) {
2956        var linkElement = document.createElement("link");
2957        return options.attrs.type = "text/css", options.attrs.rel = "stylesheet", attachTagAttrs(linkElement, options.attrs), 
2958        insertStyleElement(options, linkElement), linkElement;
2959    }
2960    function attachTagAttrs(element, attrs) {
2961        Object.keys(attrs).forEach(function(key) {
2962            element.setAttribute(key, attrs[key]);
2963        });
2964    }
2965    function addStyle(obj, options) {
2966        var styleElement, update, remove;
2967        if (options.singleton) {
2968            var styleIndex = singletonCounter++;
2969            styleElement = singletonElement || (singletonElement = createStyleElement(options)), 
2970            update = applyToSingletonTag.bind(null, styleElement, styleIndex, !1), remove = applyToSingletonTag.bind(null, styleElement, styleIndex, !0);
2971        } else obj.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (styleElement = createLinkElement(options), 
2972        update = updateLink.bind(null, styleElement, options), remove = function() {
2973            removeStyleElement(styleElement), styleElement.href && URL.revokeObjectURL(styleElement.href);
2974        }) : (styleElement = createStyleElement(options), update = applyToTag.bind(null, styleElement), 
2975        remove = function() {
2976            removeStyleElement(styleElement);
2977        });
2978        return update(obj), function(newObj) {
2979            if (newObj) {
2980                if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) return;
2981                update(obj = newObj);
2982            } else remove();
2983        };
2984    }
2985    function applyToSingletonTag(styleElement, index, remove, obj) {
2986        var css = remove ? "" : obj.css;
2987        if (styleElement.styleSheet) styleElement.styleSheet.cssText = replaceText(index, css); else {
2988            var cssNode = document.createTextNode(css), childNodes = styleElement.childNodes;
2989            childNodes[index] && styleElement.removeChild(childNodes[index]), childNodes.length ? styleElement.insertBefore(cssNode, childNodes[index]) : styleElement.appendChild(cssNode);
2990        }
2991    }
2992    function applyToTag(styleElement, obj) {
2993        var css = obj.css, media = obj.media;
2994        if (media && styleElement.setAttribute("media", media), styleElement.styleSheet) styleElement.styleSheet.cssText = css; else {
2995            for (;styleElement.firstChild; ) styleElement.removeChild(styleElement.firstChild);
2996            styleElement.appendChild(document.createTextNode(css));
2997        }
2998    }
2999    function updateLink(linkElement, options, obj) {
3000        var css = obj.css, sourceMap = obj.sourceMap, autoFixUrls = void 0 === options.convertToAbsoluteUrls && sourceMap;
3001        (options.convertToAbsoluteUrls || autoFixUrls) && (css = fixUrls(css)), sourceMap && (css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */");
3002        var blob = new Blob([ css ], {
3003            type: "text/css"
3004        }), oldSrc = linkElement.href;
3005        linkElement.href = URL.createObjectURL(blob), oldSrc && URL.revokeObjectURL(oldSrc);
3006    }
3007    var stylesInDom = {}, isOldIE = function(fn) {
3008        var memo;
3009        return function() {
3010            return void 0 === memo && (memo = fn.apply(this, arguments)), memo;
3011        };
3012    }(function() {
3013        return window && document && document.all && !window.atob;
3014    }), getElement = function(fn) {
3015        var memo = {};
3016        return function(selector) {
3017            return void 0 === memo[selector] && (memo[selector] = fn.call(this, selector)), 
3018            memo[selector];
3019        };
3020    }(function(styleTarget) {
3021        return document.querySelector(styleTarget);
3022    }), singletonElement = null, singletonCounter = 0, styleElementsInsertedAtTop = [], fixUrls = __webpack_require__(16);
3023    module.exports = function(list, options) {
3024        if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment");
3025        options = options || {}, options.attrs = "object" == typeof options.attrs ? options.attrs : {}, 
3026        void 0 === options.singleton && (options.singleton = isOldIE()), void 0 === options.insertInto && (options.insertInto = "head"), 
3027        void 0 === options.insertAt && (options.insertAt = "bottom");
3028        var styles = listToStyles(list);
3029        return addStylesToDom(styles, options), function(newList) {
3030            for (var mayRemove = [], i = 0; i < styles.length; i++) {
3031                var item = styles[i], domStyle = stylesInDom[item.id];
3032                domStyle.refs--, mayRemove.push(domStyle);
3033            }
3034            if (newList) {
3035                addStylesToDom(listToStyles(newList), options);
3036            }
3037            for (var i = 0; i < mayRemove.length; i++) {
3038                var domStyle = mayRemove[i];
3039                if (0 === domStyle.refs) {
3040                    for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
3041                    delete stylesInDom[domStyle.id];
3042                }
3043            }
3044        };
3045    };
3046    var replaceText = function() {
3047        var textStore = [];
3048        return function(index, replacement) {
3049            return textStore[index] = replacement, textStore.filter(Boolean).join("\n");
3050        };
3051    }();
3052}, function(module, exports) {
3053    module.exports = function(css) {
3054        var location = "undefined" != typeof window && window.location;
3055        if (!location) throw new Error("fixUrls requires window.location");
3056        if (!css || "string" != typeof css) return css;
3057        var baseUrl = location.protocol + "//" + location.host, currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
3058        return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
3059            var unquotedOrigUrl = origUrl.trim().replace(/^"(.*)"$/, function(o, $1) {
3060                return $1;
3061            }).replace(/^'(.*)'$/, function(o, $1) {
3062                return $1;
3063            });
3064            if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(unquotedOrigUrl)) return fullMatch;
3065            var newUrl;
3066            return newUrl = 0 === unquotedOrigUrl.indexOf("//") ? unquotedOrigUrl : 0 === unquotedOrigUrl.indexOf("/") ? baseUrl + unquotedOrigUrl : currentDir + unquotedOrigUrl.replace(/^\.\//, ""), 
3067            "url(" + JSON.stringify(newUrl) + ")";
3068        });
3069    };
3070} ]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.