text: (()=>{var x=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},g=function(e,t,r,n,i,a,o,s,l,c){var d=this;d.numeralDecimalMark=e||".",d.numeralIntegerScale=t>0?t:0,d.numeralDecimalScale=r>=0?r:2,d.numeralThousandsGroupStyle=n||g.groupStyle.thousand,d.numeralPositiveOnly=!!i,d.stripLeadingZeroes=a!==!1,d.prefix=o||o===""?o:"",d.signBeforePrefix=!!s,d.tailPrefix=!!l,d.delimiter=c||c===""?c:",",d.delimiterRE=c?new RegExp("\\"+c,"g"):""};g.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"};g.prototype={getRawValue:function(e){return e.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(e){var t=this,r,n,i,a,o="";switch(e=e.replace(/[A-Za-z]/g,"").replace(t.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",t.numeralPositiveOnly?"":"-").replace("M",t.numeralDecimalMark),t.stripLeadingZeroes&&(e=e.replace(/^(-)?0+(?=\d)/,"$1")),n=e.slice(0,1)==="-"?"-":"",typeof t.prefix!="undefined"?t.signBeforePrefix?i=n+t.prefix:i=t.prefix+n:i=n,a=e,e.indexOf(t.numeralDecimalMark)>=0&&(r=e.split(t.numeralDecimalMark),a=r[0],o=t.numeralDecimalMark+r[1].slice(0,t.numeralDecimalScale)),n==="-"&&(a=a.slice(1)),t.numeralIntegerScale>0&&(a=a.slice(0,t.numeralIntegerScale)),t.numeralThousandsGroupStyle){case g.groupStyle.lakh:a=a.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+t.delimiter);break;case g.groupStyle.wan:a=a.replace(/(\d)(?=(\d{4})+$)/g,"$1"+t.delimiter);break;case g.groupStyle.thousand:a=a.replace(/(\d)(?=(\d{3})+$)/g,"$1"+t.delimiter);break}return t.tailPrefix?n+a.toString()+(t.numeralDecimalScale>0?o.toString():"")+t.prefix:i+a.toString()+(t.numeralDecimalScale>0?o.toString():"")}};var M=g,S=function(e,t,r){var n=this;n.date=[],n.blocks=[],n.datePattern=e,n.dateMin=t.split("-").reverse().map(function(i){return parseInt(i,10)}),n.dateMin.length===2&&n.dateMin.unshift(0),n.dateMax=r.split("-").reverse().map(function(i){return parseInt(i,10)}),n.dateMax.length===2&&n.dateMax.unshift(0),n.initBlocks()};S.prototype={initBlocks:function(){var e=this;e.datePattern.forEach(function(t){t==="Y"?e.blocks.push(4):e.blocks.push(2)})},getISOFormatDate:function(){var e=this,t=e.date;return t[2]?t[2]+"-"+e.addLeadingZero(t[1])+"-"+e.addLeadingZero(t[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(e){var t=this,r="";return e=e.replace(/[^\d]/g,""),t.blocks.forEach(function(n,i){if(e.length>0){var a=e.slice(0,n),o=a.slice(0,1),s=e.slice(n);switch(t.datePattern[i]){case"d":a==="00"?a="01":parseInt(o,10)>3?a="0"+o:parseInt(a,10)>31&&(a="31");break;case"m":a==="00"?a="01":parseInt(o,10)>1?a="0"+o:parseInt(a,10)>12&&(a="12");break}r+=a,e=s}}),this.getFixedDateString(r)},getFixedDateString:function(e){var t=this,r=t.datePattern,n=[],i=0,a=0,o=0,s=0,l=0,c=0,d,u,f,p=!1;e.length===4&&r[0].toLowerCase()!=="y"&&r[1].toLowerCase()!=="y"&&(s=r[0]==="d"?0:2,l=2-s,d=parseInt(e.slice(s,s+2),10),u=parseInt(e.slice(l,l+2),10),n=this.getFixedDate(d,u,0)),e.length===8&&(r.forEach(function(w,k){switch(w){case"d":i=k;break;case"m":a=k;break;default:o=k;break}}),c=o*2,s=i<=o?i*2:i*2+2,l=a<=o?a*2:a*2+2,d=parseInt(e.slice(s,s+2),10),u=parseInt(e.slice(l,l+2),10),f=parseInt(e.slice(c,c+4),10),p=e.slice(c,c+4).length===4,n=this.getFixedDate(d,u,f)),e.length===4&&(r[0]==="y"||r[1]==="y")&&(l=r[0]==="m"?0:2,c=2-l,u=parseInt(e.slice(l,l+2),10),f=parseInt(e.slice(c,c+2),10),p=e.slice(c,c+2).length===2,n=[0,u,f]),e.length===6&&(r[0]==="Y"||r[1]==="Y")&&(l=r[0]==="m"?0:4,c=2-.5*l,u=parseInt(e.slice(l,l+2),10),f=parseInt(e.slice(c,c+4),10),p=e.slice(c,c+4).length===4,n=[0,u,f]),n=t.getRangeFixedDate(n),t.date=n;var h=n.length===0?e:r.reduce(function(w,k){switch(k){case"d":return w+(n[0]===0?"":t.addLeadingZero(n[0]));case"m":return w+(n[1]===0?"":t.addLeadingZero(n[1]));case"y":return w+(p?t.addLeadingZeroForYear(n[2],!1):"");case"Y":return w+(p?t.addLeadingZeroForYear(n[2],!0):"")}},"");return h},getRangeFixedDate:function(e){var t=this,r=t.datePattern,n=t.dateMin||[],i=t.dateMax||[];return!e.length||n.length<3&&i.length<3||r.find(function(a){return a.toLowerCase()==="y"})&&e[2]===0?e:i.length&&(i[2]<e[2]||i[2]===e[2]&&(i[1]<e[1]||i[1]===e[1]&&i[0]<e[0]))?i:n.length&&(n[2]>e[2]||n[2]===e[2]&&(n[1]>e[1]||n[1]===e[1]&&n[0]>e[0]))?n:e},getFixedDate:function(e,t,r){return e=Math.min(e,31),t=Math.min(t,12),r=parseInt(r||0,10),(t<7&&t%2==0||t>8&&t%2==1)&&(e=Math.min(e,t===2?this.isLeapYear(r)?29:28:30)),[e,t,r]},isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},addLeadingZero:function(e){return(e<10?"0":"")+e},addLeadingZeroForYear:function(e,t){return t?(e<10?"000":e<100?"00":e<1e3?"0":"")+e:(e<10?"0":"")+e}};var V=S,C=function(e,t){var r=this;r.time=[],r.blocks=[],r.timePattern=e,r.timeFormat=t,r.initBlocks()};C.prototype={initBlocks:function(){var e=this;e.timePattern.forEach(function(){e.blocks.push(2)})},getISOFormatTime:function(){var e=this,t=e.time;return t[2]?e.addLeadingZero(t[0])+":"+e.addLeadingZero(t[1])+":"+e.addLeadingZero(t[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){var e=this;return String(e.timeFormat)==="12"?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(e){var t=this,r="";e=e.replace(/[^\d]/g,"");var n=t.getTimeFormatOptions();return t.blocks.forEach(function(i,a){if(e.length>0){var o=e.slice(0,i),s=o.slice(0,1),l=e.slice(i);switch(t.timePattern[a]){case"h":parseInt(s,10)>n.maxHourFirstDigit?o="0"+s:parseInt(o,10)>n.maxHours&&(o=n.maxHours+"");break;case"m":case"s":parseInt(s,10)>n.maxMinutesFirstDigit?o="0"+s:parseInt(o,10)>n.maxMinutes&&(o=n.maxMinutes+"");break}r+=o,e=l}}),this.getFixedTimeString(r)},getFixedTimeString:function(e){var t=this,r=t.timePattern,n=[],i=0,a=0,o=0,s=0,l=0,c=0,d,u,f;return e.length===6&&(r.forEach(function(p,h){switch(p){case"s":i=h*2;break;case"m":a=h*2;break;case"h":o=h*2;break}}),c=o,l=a,s=i,d=parseInt(e.slice(s,s+2),10),u=parseInt(e.slice(l,l+2),10),f=parseInt(e.slice(c,c+2),10),n=this.getFixedTime(f,u,d)),e.length===4&&t.timePattern.indexOf("s")<0&&(r.forEach(function(p,h){switch(p){case"m":a=h*2;break;case"h":o=h*2;break}}),c=o,l=a,d=0,u=parseInt(e.slice(l,l+2),10),f=parseInt(e.slice(c,c+2),10),n=this.getFixedTime(f,u,d)),t.time=n,n.length===0?e:r.reduce(function(p,h){switch(h){case"s":return p+t.addLeadingZero(n[2]);case"m":return p+t.addLeadingZero(n[1]);case"h":return p+t.addLeadingZero(n[0])}},"")},getFixedTime:function(e,t,r){return r=Math.min(parseInt(r||0,10),60),t=Math.min(t,60),e=Math.min(e,60),[e,t,r]},addLeadingZero:function(e){return(e<10?"0":"")+e}};var T=C,I=function(e,t){var r=this;r.delimiter=t||t===""?t:" ",r.delimiterRE=t?new RegExp("\\"+t,"g"):"",r.formatter=e};I.prototype={setFormatter:function(e){this.formatter=e},format:function(e){var t=this;t.formatter.clear(),e=e.replace(/[^\d+]/g,""),e=e.replace(/^\+/,"B").replace(/\+/g,"").replace("B","+"),e=e.replace(t.delimiterRE,"");for(var r="",n,i=!1,a=0,o=e.length;a<o;a++)n=t.formatter.inputDigit(e.charAt(a)),/[\s()-]/g.test(n)?(r=n,i=!0):i||(r=n);return r=r.replace(/[()]/g,""),r=r.replace(/[\s-]/g,t.delimiter),r}};var v=I,y={blocks:{uatp:[4,5,6],amex:[4,6,5],diners:[4,6,4],discover:[4,4,4,4],mastercard:[4,4,4,4],dankort:[4,4,4,4],instapayment:[4,4,4,4],jcb15:[4,6,5],jcb:[4,4,4,4],maestro:[4,4,4,4],visa:[4,4,4,4],mir:[4,4,4,4],unionPay:[4,4,4,4],general:[4,4,4,4]},re:{uatp:/^(?!1800)1\d{0,14}/,amex:/^3[47]\d{0,13}/,discover:/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,diners:/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,mastercard:/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,dankort:/^(5019|4175|4571)\d{0,12}/,instapayment:/^63[7-9]\d{0,13}/,jcb15:/^(?:2131|1800)\d{0,11}/,jcb:/^(?:35\d{0,2})\d{0,12}/,maestro:/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,mir:/^220[0-4]\d{0,12}/,visa:/^4\d{0,15}/,unionPay:/^(62|81)\d{0,14}/},getStrictBlocks:function(e){var t=e.reduce(function(r,n){return r+n},0);return e.concat(19-t)},getInfo:function(e,t){var r=y.blocks,n=y.re;t=!!t;for(var i in n)if(n[i].test(e)){var a=r[i];return{type:i,blocks:t?this.getStrictBlocks(a):a}}return{type:"unknown",blocks:t?this.getStrictBlocks(r.general):r.general}}},E=y,b={noop:function(){},strip:function(e,t){return e.replace(t,"")},getPostDelimiter:function(e,t,r){if(r.length===0)return e.slice(-t.length)===t?t:"";var n="";return r.forEach(function(i){e.slice(-i.length)===i&&(n=i)}),n},getDelimiterREByDelimiter:function(e){return new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g")},getNextCursorPosition:function(e,t,r,n,i){return t.length===e?r.length:e+this.getPositionOffset(e,t,r,n,i)},getPositionOffset:function(e,t,r,n,i){var a,o,s;return a=this.stripDelimiters(t.slice(0,e),n,i),o=this.stripDelimiters(r.slice(0,e),n,i),s=a.length-o.length,s!==0?s/Math.abs(s):0},stripDelimiters:function(e,t,r){var n=this;if(r.length===0){var i=t?n.getDelimiterREByDelimiter(t):"";return e.replace(i,"")}return r.forEach(function(a){a.split("").forEach(function(o){e=e.replace(n.getDelimiterREByDelimiter(o),"")})}),e},headStr:function(e,t){return e.slice(0,t)},getMaxLength:function(e){return e.reduce(function(t,r){return t+r},0)},getPrefixStrippedValue:function(e,t,r,n,i,a,o,s,l){if(r===0)return e;if(e===t&&e!=="")return"";if(l&&e.slice(0,1)=="-"){var c=n.slice(0,1)=="-"?n.slice(1):n;return"-"+this.getPrefixStrippedValue(e.slice(1),t,r,c,i,a,o,s,l)}if(n.slice(0,r)!==t&&!s)return o&&!n&&e?e:"";if(n.slice(-r)!==t&&s)return o&&!n&&e?e:"";var d=this.stripDelimiters(n,i,a);return e.slice(0,r)!==t&&!s?d.slice(r):e.slice(-r)!==t&&s?d.slice(0,-r-1):s?e.slice(0,-r):e.slice(r)},getFirstDiffIndex:function(e,t){for(var r=0;e.charAt(r)===t.charAt(r);)if(e.charAt(r++)==="")return-1;return r},getFormattedValue:function(e,t,r,n,i,a){var o="",s=i.length>0,l="";return r===0?e:(t.forEach(function(c,d){if(e.length>0){var u=e.slice(0,c),f=e.slice(c);s?l=i[a?d-1:d]||l:l=n,a?(d>0&&(o+=l),o+=u):(o+=u,u.length===c&&d<r-1&&(o+=l)),e=f}}),o)},fixPrefixCursor:function(e,t,r,n){if(!!e){var i=e.value,a=r||n[0]||" ";if(!(!e.setSelectionRange||!t||t.length+a.length<=i.length)){var o=i.length*2;setTimeout(function(){e.setSelectionRange(o,o)},1)}}},checkFullSelection:function(e){try{var t=window.getSelection()||document.getSelection()||{};return t.toString().length===e.length}catch(r){}return!1},setSelection:function(e,t,r){if(e===this.getActiveElement(r)&&!(e&&e.value.length<=t))if(e.createTextRange){var n=e.createTextRange();n.move("character",t),n.select()}else try{e.setSelectionRange(t,t)}catch(i){console.warn("The input element type does not support selection")}},getActiveElement:function(e){var t=e.activeElement;return t&&t.shadowRoot?this.getActiveElement(t.shadowRoot):t},isAndroid:function(){return navigator&&/android/i.test(navigator.userAgent)},isAndroidBackspaceKeydown:function(e,t){return!this.isAndroid()||!e||!t?!1:t===e.slice(0,-1)}},B=b,O={assign:function(e,t){return e=e||{},t=t||{},e.creditCard=!!t.creditCard,e.creditCardStrictMode=!!t.creditCardStrictMode,e.creditCardType="",e.onCreditCardTypeChanged=t.onCreditCardTypeChanged||function(){},e.phone=!!t.phone,e.phoneRegionCode=t.phoneRegionCode||"AU",e.phoneFormatter={},e.time=!!t.time,e.timePattern=t.timePattern||["h","m","s"],e.timeFormat=t.timeFormat||"24",e.timeFormatter={},e.date=!!t.date,e.datePattern=t.datePattern||["d","m","Y"],e.dateMin=t.dateMin||"",e.dateMax=t.dateMax||"",e.dateFormatter={},e.numeral=!!t.numeral,e.numeralIntegerScale=t.numeralIntegerScale>0?t.numeralIntegerScale:0,e.numeralDecimalScale=t.numeralDecimalScale>=0?t.numeralDecimalScale:2,e.numeralDecimalMark=t.numeralDecimalMark||".",e.numeralThousandsGroupStyle=t.numeralThousandsGroupStyle||"thousand",e.numeralPositiveOnly=!!t.numeralPositiveOnly,e.stripLeadingZeroes=t.stripLeadingZeroes!==!1,e.signBeforePrefix=!!t.signBeforePrefix,e.tailPrefix=!!t.tailPrefix,e.swapHiddenInput=!!t.swapHiddenInput,e.numericOnly=e.creditCard||e.date||!!t.numericOnly,e.uppercase=!!t.uppercase,e.lowercase=!!t.lowercase,e.prefix=e.creditCard||e.date?"":t.prefix||"",e.noImmediatePrefix=!!t.noImmediatePrefix,e.prefixLength=e.prefix.length,e.rawValueTrimPrefix=!!t.rawValueTrimPrefix,e.copyDelimiter=!!t.copyDelimiter,e.initValue=t.initValue!==void 0&&t.initValue!==null?t.initValue.toString():"",e.delimiter=t.delimiter||t.delimiter===""?t.delimiter:t.date?"/":t.time?":":t.numeral?",":(t.phone," "),e.delimiterLength=e.delimiter.length,e.delimiterLazyShow=!!t.delimiterLazyShow,e.delimiters=t.delimiters||[],e.blocks=t.blocks||[],e.blocksLength=e.blocks.length,e.root=typeof x=="object"&&x?x:window,e.document=t.document||e.root.document,e.maxLength=0,e.backspace=!1,e.result="",e.onValueChanged=t.onValueChanged||function(){},e}},R=O,m=function(e,t){var r=this,n=!1;if(typeof e=="string"?(r.element=document.querySelector(e),n=document.querySelectorAll(e).length>1):typeof e.length!="undefined"&&e.length>0?(r.element=e[0],n=e.length>1):r.element=e,!r.element)throw new Error("[cleave.js] Please check the element");if(n)try{console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.")}catch(i){}t.initValue=r.element.value,r.properties=m.DefaultProperties.assign({},t),r.init()};m.prototype={init:function(){var e=this,t=e.properties;if(!t.numeral&&!t.phone&&!t.creditCard&&!t.time&&!t.date&&t.blocksLength===0&&!t.prefix){e.onInput(t.initValue);return}t.maxLength=m.Util.getMaxLength(t.blocks),e.isAndroid=m.Util.isAndroid(),e.lastInputValue="",e.isBackward="",e.onChangeListener=e.onChange.bind(e),e.onKeyDownListener=e.onKeyDown.bind(e),e.onFocusListener=e.onFocus.bind(e),e.onCutListener=e.onCut.bind(e),e.onCopyListener=e.onCopy.bind(e),e.initSwapHiddenInput(),e.element.addEventListener("input",e.onChangeListener),e.element.addEventListener("keydown",e.onKeyDownListener),e.element.addEventListener("focus",e.onFocusListener),e.element.addEventListener("cut",e.onCutListener),e.element.addEventListener("copy",e.onCopyListener),e.initPhoneFormatter(),e.initDateFormatter(),e.initTimeFormatter(),e.initNumeralFormatter(),(t.initValue||t.prefix&&!t.noImmediatePrefix)&&e.onInput(t.initValue)},initSwapHiddenInput:function(){var e=this,t=e.properties;if(!!t.swapHiddenInput){var r=e.element.cloneNode(!0);e.element.parentNode.insertBefore(r,e.element),e.elementSwapHidden=e.element,e.elementSwapHidden.type="hidden",e.element=r,e.element.id=""}},initNumeralFormatter:function(){var e=this,t=e.properties;!t.numeral||(t.numeralFormatter=new m.NumeralFormatter(t.numeralDecimalMark,t.numeralIntegerScale,t.numeralDecimalScale,t.numeralThousandsGroupStyle,t.numeralPositiveOnly,t.stripLeadingZeroes,t.prefix,t.signBeforePrefix,t.tailPrefix,t.delimiter))},initTimeFormatter:function(){var e=this,t=e.properties;!t.time||(t.timeFormatter=new m.TimeFormatter(t.timePattern,t.timeFormat),t.blocks=t.timeFormatter.getBlocks(),t.blocksLength=t.blocks.length,t.maxLength=m.Util.getMaxLength(t.blocks))},initDateFormatter:function(){var e=this,t=e.properties;!t.date||(t.dateFormatter=new m.DateFormatter(t.datePattern,t.dateMin,t.dateMax),t.blocks=t.dateFormatter.getBlocks(),t.blocksLength=t.blocks.length,t.maxLength=m.Util.getMaxLength(t.blocks))},initPhoneFormatter:function(){var e=this,t=e.properties;if(!!t.phone)try{t.phoneFormatter=new m.PhoneFormatter(new t.root.Cleave.AsYouTypeFormatter(t.phoneRegionCode),t.delimiter)}catch(r){throw new Error("[cleave.js] Please include phone-type-formatter.{country}.js lib")}},onKeyDown:function(e){var t=this,r=e.which||e.keyCode;t.lastInputValue=t.element.value,t.isBackward=r===8},onChange:function(e){var t=this,r=t.properties,n=m.Util;t.isBackward=t.isBackward||e.inputType==="deleteContentBackward";var i=n.getPostDelimiter(t.lastInputValue,r.delimiter,r.delimiters);t.isBackward&&i?r.postDelimiterBackspace=i:r.postDelimiterBackspace=!1,this.onInput(this.element.value)},onFocus:function(){var e=this,t=e.properties;e.lastInputValue=e.element.value,t.prefix&&t.noImmediatePrefix&&!e.element.value&&this.onInput(t.prefix),m.Util.fixPrefixCursor(e.element,t.prefix,t.delimiter,t.delimiters)},onCut:function(e){!m.Util.checkFullSelection(this.element.value)||(this.copyClipboardData(e),this.onInput(""))},onCopy:function(e){!m.Util.checkFullSelection(this.element.value)||this.copyClipboardData(e)},copyClipboardData:function(e){var t=this,r=t.properties,n=m.Util,i=t.element.value,a="";r.copyDelimiter?a=i:a=n.stripDelimiters(i,r.delimiter,r.delimiters);try{e.clipboardData?e.clipboardData.setData("Text",a):window.clipboardData.setData("Text",a),e.preventDefault()}catch(o){}},onInput:function(e){var t=this,r=t.properties,n=m.Util,i=n.getPostDelimiter(e,r.delimiter,r.delimiters);if(!r.numeral&&r.postDelimiterBackspace&&!i&&(e=n.headStr(e,e.length-r.postDelimiterBackspace.length)),r.phone){r.prefix&&(!r.noImmediatePrefix||e.length)?r.result=r.prefix+r.phoneFormatter.format(e).slice(r.prefix.length):r.result=r.phoneFormatter.format(e),t.updateValueState();return}if(r.numeral){r.prefix&&r.noImmediatePrefix&&e.length===0?r.result="":r.result=r.numeralFormatter.format(e),t.updateValueState();return}if(r.date&&(e=r.dateFormatter.getValidatedDate(e)),r.time&&(e=r.timeFormatter.getValidatedTime(e)),e=n.stripDelimiters(e,r.delimiter,r.delimiters),e=n.getPrefixStrippedValue(e,r.prefix,r.prefixLength,r.result,r.delimiter,r.delimiters,r.noImmediatePrefix,r.tailPrefix,r.signBeforePrefix),e=r.numericOnly?n.strip(e,/[^\d]/g):e,e=r.uppercase?e.toUpperCase():e,e=r.lowercase?e.toLowerCase():e,r.prefix&&(r.tailPrefix?e=e+r.prefix:e=r.prefix+e,r.blocksLength===0)){r.result=e,t.updateValueState();return}r.creditCard&&t.updateCreditCardPropsByValue(e),e=n.headStr(e,r.maxLength),r.result=n.getFormattedValue(e,r.blocks,r.blocksLength,r.delimiter,r.delimiters,r.delimiterLazyShow),t.updateValueState()},updateCreditCardPropsByValue:function(e){var t=this,r=t.properties,n=m.Util,i;n.headStr(r.result,4)!==n.headStr(e,4)&&(i=m.CreditCardDetector.getInfo(e,r.creditCardStrictMode),r.blocks=i.blocks,r.blocksLength=r.blocks.length,r.maxLength=n.getMaxLength(r.blocks),r.creditCardType!==i.type&&(r.creditCardType=i.type,r.onCreditCardTypeChanged.call(t,r.creditCardType)))},updateValueState:function(){var e=this,t=m.Util,r=e.properties;if(!!e.element){var n=e.element.selectionEnd,i=e.element.value,a=r.result;if(n=t.getNextCursorPosition(n,i,a,r.delimiter,r.delimiters),e.isAndroid){window.setTimeout(function(){e.element.value=a,t.setSelection(e.element,n,r.document,!1),e.callOnValueChanged()},1);return}e.element.value=a,r.swapHiddenInput&&(e.elementSwapHidden.value=e.getRawValue()),t.setSelection(e.element,n,r.document,!1),e.callOnValueChanged()}},callOnValueChanged:function(){var e=this,t=e.properties;t.onValueChanged.call(e,{target:{name:e.element.name,value:t.result,rawValue:e.getRawValue()}})},setPhoneRegionCode:function(e){var t=this,r=t.properties;r.phoneRegionCode=e,t.initPhoneFormatter(),t.onChange()},setRawValue:function(e){var t=this,r=t.properties;e=e!=null?e.toString():"",r.numeral&&(e=e.replace(".",r.numeralDecimalMark)),r.postDelimiterBackspace=!1,t.element.value=e,t.onInput(e)},getRawValue:function(){var e=this,t=e.properties,r=m.Util,n=e.element.value;return t.rawValueTrimPrefix&&(n=r.getPrefixStrippedValue(n,t.prefix,t.prefixLength,t.result,t.delimiter,t.delimiters,t.noImmediatePrefix,t.tailPrefix,t.signBeforePrefix)),t.numeral?n=t.numeralFormatter.getRawValue(n):n=r.stripDelimiters(n,t.delimiter,t.delimiters),n},getISOFormatDate:function(){var e=this,t=e.properties;return t.date?t.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var e=this,t=e.properties;return t.time?t.timeFormatter.getISOFormatTime():""},getFormattedValue:function(){return this.element.value},destroy:function(){var e=this;e.element.removeEventListener("input",e.onChangeListener),e.element.removeEventListener("keydown",e.onKeyDownListener),e.element.removeEventListener("focus",e.onFocusListener),e.element.removeEventListener("cut",e.onCutListener),e.element.removeEventListener("copy",e.onCopyListener)},toString:function(){return"[Cleave Object]"}};m.NumeralFormatter=M;m.DateFormatter=V;m.TimeFormatter=T;m.PhoneFormatter=v;m.CreditCardDetector=E;m.Util=B;m.DefaultProperties=R;(typeof x=="object"&&x?x:window).Cleave=m;var U=m,P=U;var D=(e,t,r=1)=>e[e.indexOf(t)+r],A=(e,t,r)=>{let n={};return e.includes("card")?(n.creditCard=!0,n.creditCardStrictMode=e.includes("strict")):e.includes("date")?(n.date=!0,n.datePattern=t?r(t):null):e.includes("time")?(n.time=!0,n.timePattern=t?r(t):null):e.includes("numeral")?(n.numeral=!0,e.includes("thousands")&&(n.numeralThousandsGroupStyle=D(e,"thousands")),e.includes("delimiter")&&(n.delimiter=D(e,"delimiter")==="dot"?".":","),e.includes("decimal")&&(n.numeralDecimalMark=D(e,"decimal")==="comma"?",":"."),e.includes("positive")&&(n.numeralPositiveOnly=!0),e.includes("prefix")&&(n.prefix=D(e,"prefix"))):e.includes("blocks")&&(n.blocks=r(t)),n},F=null,Z=e=>t=>{!F||e(`${F} = ${t.target.rawValue}`)};function L(e){e.magic("mask",t=>{if(t.__cleave)return t.__cleave}),e.directive("mask",(t,{value:r,modifiers:n,expression:i},{effect:a,evaluate:o,evaluateLater:s})=>{if(r==="model"){F=i,a(()=>{let c=o(i);!t.__cleave||t.__cleave.setRawValue(c)});return}let l=n.length===0?o(i):{...A(n,i,o),onValueChanged:Z(o)};t.__cleave||(t.__cleave=new P(t,l))})}document.addEventListener("alpine:initializing",()=>{L(window.Alpine)});})();
  