colormask.js 241 KB

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