jquery.inputmask.js 177 KB

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