/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
function centerModal(e){null==e&&(e=this),$(e).css("display","block");var t=$(e).not(".in").find(".modal-dialog");0==t.length&&(t=$(e).find(".modal-dialog"));var o=window;$(e).closest(".modal-dialog").length>0&&(o=$(e).closest(".modal-dialog"));var n=Math.min($(o).height(),screen.availHeight);"undefined"!=typeof window_top&&"number"==typeof window_top||(window_top=0);var a=window_top+(n-t.height())/2;t.css("margin-top",a)}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){var o=[],n=o.slice,a=o.concat,i=o.push,r=o.indexOf,d={},l=d.toString,s=d.hasOwnProperty,c={},u="1.11.1",h=function(e,t){return new h.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,m=/^-ms-/,v=/-([\da-z])/gi,f=function(e,t){return t.toUpperCase()};function g(e){var t=e.length,o=h.type(e);return"function"!==o&&!h.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e))}h.fn=h.prototype={jquery:u,constructor:h,selector:"",length:0,toArray:function(){return n.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:n.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.map(this,function(t,o){return e.call(t,o,t)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,o=+e+(0>e?t:0);return this.pushStack(o>=0&&t>o?[this[o]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:i,sort:o.sort,splice:o.splice},h.extend=h.fn.extend=function(){var e,t,o,n,a,i,r=arguments[0]||{},d=1,l=arguments.length,s=!1;for("boolean"==typeof r&&(s=r,r=arguments[d]||{},d++),"object"==typeof r||h.isFunction(r)||(r={}),d===l&&(r=this,d--);l>d;d++)if(null!=(a=arguments[d]))for(n in a)e=r[n],r!==(o=a[n])&&(s&&o&&(h.isPlainObject(o)||(t=h.isArray(o)))?(t?(t=!1,i=e&&h.isArray(e)?e:[]):i=e&&h.isPlainObject(e)?e:{},r[n]=h.extend(s,i,o)):void 0!==o&&(r[n]=o));return r},h.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray||function(e){return"array"===h.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==h.type(e)||e.nodeType||h.isWindow(e))return!1;try{if(e.constructor&&!s.call(e,"constructor")&&!s.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(c.ownLast)for(t in e)return s.call(e,t);for(t in e);return void 0===t||s.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[l.call(e)]||"object":typeof e},globalEval:function(t){t&&h.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(m,"ms-").replace(v,f)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,o){var n=0,a=e.length,i=g(e);if(o){if(i)for(;a>n&&!1!==t.apply(e[n],o);n++);else for(n in e)if(!1===t.apply(e[n],o))break}else if(i)for(;a>n&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var o=t||[];return null!=e&&(g(Object(e))?h.merge(o,"string"==typeof e?[e]:e):i.call(o,e)),o},inArray:function(e,t,o){var n;if(t){if(r)return r.call(t,e,o);for(n=t.length,o=o?0>o?Math.max(0,n+o):o:0;n>o;o++)if(o in t&&t[o]===e)return o}return-1},merge:function(e,t){for(var o=+t.length,n=0,a=e.length;o>n;)e[a++]=t[n++];if(o!=o)for(;void 0!==t[n];)e[a++]=t[n++];return e.length=a,e},grep:function(e,t,o){for(var n=[],a=0,i=e.length,r=!o;i>a;a++)!t(e[a],a)!==r&&n.push(e[a]);return n},map:function(e,t,o){var n,i=0,r=e.length,d=[];if(g(e))for(;r>i;i++)null!=(n=t(e[i],i,o))&&d.push(n);else for(i in e)null!=(n=t(e[i],i,o))&&d.push(n);return a.apply([],d)},guid:1,proxy:function(e,t){var o,a,i;return"string"==typeof t&&(i=e[t],t=e,e=i),h.isFunction(e)?(o=n.call(arguments,2),a=function(){return e.apply(t||this,o.concat(n.call(arguments)))},a.guid=e.guid=e.guid||h.guid++,a):void 0},now:function(){return+new Date},support:c}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,o,n,a,i,r,d,l,s,c,u,h,p,m,v,f,g,C,y,$="sizzle"+-new Date,k=e.document,w=0,b=0,S=ie(),_=ie(),x=ie(),P=function(e,t){return e===t&&(u=!0),0},D="undefined",T=1<<31,I={}.hasOwnProperty,F=[],A=F.pop,E=F.push,O=F.push,M=F.slice,N=F.indexOf||function(e){for(var t=0,o=this.length;o>t;t++)if(this[t]===e)return t;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",V="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=B.replace("w","w#"),U="\\["+V+"*("+B+")(?:"+V+"*([*^$|!~]?=)"+V+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+V+"*\\]",W=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",j=new RegExp("^"+V+"+|((?:^|[^\\\\])(?:\\\\.)*)"+V+"+$","g"),H=new RegExp("^"+V+"*,"+V+"*"),G=new RegExp("^"+V+"*([>+~]|"+V+")"+V+"*"),z=new RegExp("="+V+"*([^\\]'\"]*?)"+V+"*\\]","g"),q=new RegExp(W),Y=new RegExp("^"+R+"$"),Z={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+V+"*(even|odd|(([+-]|)(\\d*)n|)"+V+"*(?:([+-]|)"+V+"*(\\d+)|))"+V+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+V+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+V+"*((?:-\\d)?\\d*)"+V+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,oe=new RegExp("\\\\([\\da-f]{1,6}"+V+"?|("+V+")|.)","ig"),ne=function(e,t,o){var n="0x"+t-65536;return n!=n||o?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{O.apply(F=M.call(k.childNodes),k.childNodes),F[k.childNodes.length].nodeType}catch(e){O={apply:F.length?function(e,t){E.apply(e,M.call(t))}:function(e,t){for(var o=e.length,n=0;e[o++]=t[n++];);e.length=o-1}}}function ae(e,t,n,a){var i,d,s,c,u,m,g,C,w,b;if((t?t.ownerDocument||t:k)!==p&&h(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(c=(t=t||p).nodeType)&&9!==c)return[];if(v&&!a){if(i=Q.exec(e))if(s=i[1]){if(9===c){if(!(d=t.getElementById(s))||!d.parentNode)return n;if(d.id===s)return n.push(d),n}else if(t.ownerDocument&&(d=t.ownerDocument.getElementById(s))&&y(t,d)&&d.id===s)return n.push(d),n}else{if(i[2])return O.apply(n,t.getElementsByTagName(e)),n;if((s=i[3])&&o.getElementsByClassName&&t.getElementsByClassName)return O.apply(n,t.getElementsByClassName(s)),n}if(o.qsa&&(!f||!f.test(e))){if(C=g=$,w=t,b=9===c&&e,1===c&&"object"!==t.nodeName.toLowerCase()){for(m=r(e),(g=t.getAttribute("id"))?C=g.replace(te,"\\$&"):t.setAttribute("id",C),C="[id='"+C+"'] ",u=m.length;u--;)m[u]=C+ve(m[u]);w=ee.test(e)&&pe(t.parentNode)||t,b=m.join(",")}if(b)try{return O.apply(n,w.querySelectorAll(b)),n}catch(e){}finally{g||t.removeAttribute("id")}}}return l(e.replace(j,"$1"),t,n,a)}function ie(){var e=[];return function t(o,a){return e.push(o+" ")>n.cacheLength&&delete t[e.shift()],t[o+" "]=a}}function re(e){return e[$]=!0,e}function de(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var o=e.split("|"),a=e.length;a--;)n.attrHandle[o[a]]=t}function se(e,t){var o=t&&e,n=o&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||T)-(~e.sourceIndex||T);if(n)return n;if(o)for(;o=o.nextSibling;)if(o===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ue(e){return function(t){var o=t.nodeName.toLowerCase();return("input"===o||"button"===o)&&t.type===e}}function he(e){return re(function(t){return t=+t,re(function(o,n){for(var a,i=e([],o.length,t),r=i.length;r--;)o[a=i[r]]&&(o[a]=!(n[a]=o[a]))})})}function pe(e){return e&&typeof e.getElementsByTagName!==D&&e}for(t in o=ae.support={},i=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=ae.setDocument=function(e){var t,a=e?e.ownerDocument||e:k,r=a.defaultView;return a!==p&&9===a.nodeType&&a.documentElement?(p=a,m=a.documentElement,v=!i(a),r&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",function(){h()},!1):r.attachEvent&&r.attachEvent("onunload",function(){h()})),o.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),o.getElementsByTagName=de(function(e){return e.appendChild(a.createComment("")),!e.getElementsByTagName("*").length}),o.getElementsByClassName=X.test(a.getElementsByClassName)&&de(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),o.getById=de(function(e){return m.appendChild(e).id=$,!a.getElementsByName||!a.getElementsByName($).length}),o.getById?(n.find.ID=function(e,t){if(typeof t.getElementById!==D&&v){var o=t.getElementById(e);return o&&o.parentNode?[o]:[]}},n.filter.ID=function(e){var t=e.replace(oe,ne);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(oe,ne);return function(e){var o=typeof e.getAttributeNode!==D&&e.getAttributeNode("id");return o&&o.value===t}}),n.find.TAG=o.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==D?t.getElementsByTagName(e):void 0}:function(e,t){var o,n=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;o=i[a++];)1===o.nodeType&&n.push(o);return n}return i},n.find.CLASS=o.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==D&&v?t.getElementsByClassName(e):void 0},g=[],f=[],(o.qsa=X.test(a.querySelectorAll))&&(de(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&f.push("[*^$]="+V+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\["+V+"*(?:value|"+L+")"),e.querySelectorAll(":checked").length||f.push(":checked")}),de(function(e){var t=a.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name"+V+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(o.matchesSelector=X.test(C=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&de(function(e){o.disconnectedMatch=C.call(e,"div"),C.call(e,"[s!='']:x"),g.push("!=",W)}),f=f.length&&new RegExp(f.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(m.compareDocumentPosition),y=t||X.test(m.contains)?function(e,t){var o=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(o.contains?o.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===n?e===a||e.ownerDocument===k&&y(k,e)?-1:t===a||t.ownerDocument===k&&y(k,t)?1:c?N.call(c,e)-N.call(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var o,n=0,i=e.parentNode,r=t.parentNode,d=[e],l=[t];if(!i||!r)return e===a?-1:t===a?1:i?-1:r?1:c?N.call(c,e)-N.call(c,t):0;if(i===r)return se(e,t);for(o=e;o=o.parentNode;)d.unshift(o);for(o=t;o=o.parentNode;)l.unshift(o);for(;d[n]===l[n];)n++;return n?se(d[n],l[n]):d[n]===k?-1:l[n]===k?1:0},a):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(z,"='$1']"),!(!o.matchesSelector||!v||g&&g.test(t)||f&&f.test(t)))try{var n=C.call(e,t);if(n||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var a=n.attrHandle[t.toLowerCase()],i=a&&I.call(n.attrHandle,t.toLowerCase())?a(e,t,!v):void 0;return void 0!==i?i:o.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],a=0,i=0;if(u=!o.detectDuplicates,c=!o.sortStable&&e.slice(0),e.sort(P),u){for(;t=e[i++];)t===e[i]&&(a=n.push(i));for(;a--;)e.splice(n[a],1)}return c=null,e},a=ae.getText=function(e){var t,o="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)o+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[n++];)o+=a(t);return o},n=ae.selectors={cacheLength:50,createPseudo:re,match:Z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return Z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&q.test(o)&&(t=r(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+V+")"+e+"("+V+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==D&&e.getAttribute("class")||"")})},ATTR:function(e,t,o){return function(n){var a=ae.attr(n,e);return null==a?"!="===t:!t||(a+="","="===t?a===o:"!="===t?a!==o:"^="===t?o&&0===a.indexOf(o):"*="===t?o&&a.indexOf(o)>-1:"$="===t?o&&a.slice(-o.length)===o:"~="===t?(" "+a+" ").indexOf(o)>-1:"|="===t&&(a===o||a.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,o,n,a){var i="nth"!==e.slice(0,3),r="last"!==e.slice(-4),d="of-type"===t;return 1===n&&0===a?function(e){return!!e.parentNode}:function(t,o,l){var s,c,u,h,p,m,v=i!==r?"nextSibling":"previousSibling",f=t.parentNode,g=d&&t.nodeName.toLowerCase(),C=!l&&!d;if(f){if(i){for(;v;){for(u=t;u=u[v];)if(d?u.nodeName.toLowerCase()===g:1===u.nodeType)return!1;m=v="only"===e&&!m&&"nextSibling"}return!0}if(m=[r?f.firstChild:f.lastChild],r&&C){for(p=(s=(c=f[$]||(f[$]={}))[e]||[])[0]===w&&s[1],h=s[0]===w&&s[2],u=p&&f.childNodes[p];u=++p&&u&&u[v]||(h=p=0)||m.pop();)if(1===u.nodeType&&++h&&u===t){c[e]=[w,p,h];break}}else if(C&&(s=(t[$]||(t[$]={}))[e])&&s[0]===w)h=s[1];else for(;(u=++p&&u&&u[v]||(h=p=0)||m.pop())&&((d?u.nodeName.toLowerCase()!==g:1!==u.nodeType)||!++h||(C&&((u[$]||(u[$]={}))[e]=[w,h]),u!==t)););return(h-=a)===n||h%n===0&&h/n>=0}}},PSEUDO:function(e,t){var o,a=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return a[$]?a(t):a.length>1?(o=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?re(function(e,o){for(var n,i=a(e,t),r=i.length;r--;)e[n=N.call(e,i[r])]=!(o[n]=i[r])}):function(e){return a(e,0,o)}):a}},pseudos:{not:re(function(e){var t=[],o=[],n=d(e.replace(j,"$1"));return n[$]?re(function(e,t,o,a){for(var i,r=n(e,null,a,[]),d=e.length;d--;)(i=r[d])&&(e[d]=!(t[d]=i))}):function(e,a,i){return t[0]=e,n(t,null,i,o),!o.pop()}}),has:re(function(e){return function(t){return ae(e,t).length>0}}),contains:re(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:re(function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(oe,ne).toLowerCase(),function(t){var o;do{if(o=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(o=o.toLowerCase())===e||0===o.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var o=e.location&&e.location.hash;return o&&o.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,o){return[0>o?o+t:o]}),even:he(function(e,t){for(var o=0;t>o;o+=2)e.push(o);return e}),odd:he(function(e,t){for(var o=1;t>o;o+=2)e.push(o);return e}),lt:he(function(e,t,o){for(var n=0>o?o+t:o;--n>=0;)e.push(n);return e}),gt:he(function(e,t,o){for(var n=0>o?o+t:o;++n<t;)e.push(n);return e})}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=ue(t);function me(){}function ve(e){for(var t=0,o=e.length,n="";o>t;t++)n+=e[t].value;return n}function fe(e,t,o){var n=t.dir,a=o&&"parentNode"===n,i=b++;return t.first?function(t,o,i){for(;t=t[n];)if(1===t.nodeType||a)return e(t,o,i)}:function(t,o,r){var d,l,s=[w,i];if(r){for(;t=t[n];)if((1===t.nodeType||a)&&e(t,o,r))return!0}else for(;t=t[n];)if(1===t.nodeType||a){if((d=(l=t[$]||(t[$]={}))[n])&&d[0]===w&&d[1]===i)return s[2]=d[2];if(l[n]=s,s[2]=e(t,o,r))return!0}}}function ge(e){return e.length>1?function(t,o,n){for(var a=e.length;a--;)if(!e[a](t,o,n))return!1;return!0}:e[0]}function Ce(e,t,o,n,a){for(var i,r=[],d=0,l=e.length,s=null!=t;l>d;d++)(i=e[d])&&(!o||o(i,n,a))&&(r.push(i),s&&t.push(d));return r}function ye(e,t,o,n,a,i){return n&&!n[$]&&(n=ye(n)),a&&!a[$]&&(a=ye(a,i)),re(function(i,r,d,l){var s,c,u,h=[],p=[],m=r.length,v=i||function(e,t,o){for(var n=0,a=t.length;a>n;n++)ae(e,t[n],o);return o}(t||"*",d.nodeType?[d]:d,[]),f=!e||!i&&t?v:Ce(v,h,e,d,l),g=o?a||(i?e:m||n)?[]:r:f;if(o&&o(f,g,d,l),n)for(s=Ce(g,p),n(s,[],d,l),c=s.length;c--;)(u=s[c])&&(g[p[c]]=!(f[p[c]]=u));if(i){if(a||e){if(a){for(s=[],c=g.length;c--;)(u=g[c])&&s.push(f[c]=u);a(null,g=[],s,l)}for(c=g.length;c--;)(u=g[c])&&(s=a?N.call(i,u):h[c])>-1&&(i[s]=!(r[s]=u))}}else g=Ce(g===r?g.splice(m,g.length):g),a?a(null,r,g,l):O.apply(r,g)})}function $e(e){for(var t,o,a,i=e.length,r=n.relative[e[0].type],d=r||n.relative[" "],l=r?1:0,c=fe(function(e){return e===t},d,!0),u=fe(function(e){return N.call(t,e)>-1},d,!0),h=[function(e,o,n){return!r&&(n||o!==s)||((t=o).nodeType?c(e,o,n):u(e,o,n))}];i>l;l++)if(o=n.relative[e[l].type])h=[fe(ge(h),o)];else{if((o=n.filter[e[l].type].apply(null,e[l].matches))[$]){for(a=++l;i>a&&!n.relative[e[a].type];a++);return ye(l>1&&ge(h),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(j,"$1"),o,a>l&&$e(e.slice(l,a)),i>a&&$e(e=e.slice(a)),i>a&&ve(e))}h.push(o)}return ge(h)}function ke(e,t){var o=t.length>0,a=e.length>0,i=function(i,r,d,l,c){var u,h,m,v=0,f="0",g=i&&[],C=[],y=s,$=i||a&&n.find.TAG("*",c),k=w+=null==y?1:Math.random()||.1,b=$.length;for(c&&(s=r!==p&&r);f!==b&&null!=(u=$[f]);f++){if(a&&u){for(h=0;m=e[h++];)if(m(u,r,d)){l.push(u);break}c&&(w=k)}o&&((u=!m&&u)&&v--,i&&g.push(u))}if(v+=f,o&&f!==v){for(h=0;m=t[h++];)m(g,C,r,d);if(i){if(v>0)for(;f--;)g[f]||C[f]||(C[f]=A.call(l));C=Ce(C)}O.apply(l,C),c&&!i&&C.length>0&&v+t.length>1&&ae.uniqueSort(l)}return c&&(w=k,s=y),g};return o?re(i):i}return me.prototype=n.filters=n.pseudos,n.setFilters=new me,r=ae.tokenize=function(e,t){var o,a,i,r,d,l,s,c=_[e+" "];if(c)return t?0:c.slice(0);for(d=e,l=[],s=n.preFilter;d;){for(r in(!o||(a=H.exec(d)))&&(a&&(d=d.slice(a[0].length)||d),l.push(i=[])),o=!1,(a=G.exec(d))&&(o=a.shift(),i.push({value:o,type:a[0].replace(j," ")}),d=d.slice(o.length)),n.filter)!(a=Z[r].exec(d))||s[r]&&!(a=s[r](a))||(o=a.shift(),i.push({value:o,type:r,matches:a}),d=d.slice(o.length));if(!o)break}return t?d.length:d?ae.error(e):_(e,l).slice(0)},d=ae.compile=function(e,t){var o,n=[],a=[],i=x[e+" "];if(!i){for(t||(t=r(e)),o=t.length;o--;)(i=$e(t[o]))[$]?n.push(i):a.push(i);(i=x(e,ke(a,n))).selector=e}return i},l=ae.select=function(e,t,a,i){var l,s,c,u,h,p="function"==typeof e&&e,m=!i&&r(e=p.selector||e);if(a=a||[],1===m.length){if((s=m[0]=m[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&o.getById&&9===t.nodeType&&v&&n.relative[s[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(oe,ne),t)||[])[0]))return a;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(l=Z.needsContext.test(e)?0:s.length;l--&&(c=s[l],!n.relative[u=c.type]);)if((h=n.find[u])&&(i=h(c.matches[0].replace(oe,ne),ee.test(s[0].type)&&pe(t.parentNode)||t))){if(s.splice(l,1),!(e=i.length&&ve(s)))return O.apply(a,i),a;break}}return(p||d(e,m))(i,t,!v,a,ee.test(e)&&pe(t.parentNode)||t),a},o.sortStable=$.split("").sort(P).join("")===$,o.detectDuplicates=!!u,h(),o.sortDetached=de(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),de(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,o){return o?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),o.attributes&&de(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,o){return o||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),de(function(e){return null==e.getAttribute("disabled")})||le(L,function(e,t,o){var n;return o?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),ae}(e);h.find=C,h.expr=C.selectors,h.expr[":"]=h.expr.pseudos,h.unique=C.uniqueSort,h.text=C.getText,h.isXMLDoc=C.isXML,h.contains=C.contains;var y=h.expr.match.needsContext,$=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#\[\.,]*$/;function w(e,t,o){if(h.isFunction(t))return h.grep(e,function(e,n){return!!t.call(e,n,e)!==o});if(t.nodeType)return h.grep(e,function(e){return e===t!==o});if("string"==typeof t){if(k.test(t))return h.filter(t,e,o);t=h.filter(t,e)}return h.grep(e,function(e){return h.inArray(e,t)>=0!==o})}h.filter=function(e,t,o){var n=t[0];return o&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?h.find.matchesSelector(n,e)?[n]:[]:h.find.matches(e,h.grep(t,function(e){return 1===e.nodeType}))},h.fn.extend({find:function(e){var t,o=[],n=this,a=n.length;if("string"!=typeof e)return this.pushStack(h(e).filter(function(){for(t=0;a>t;t++)if(h.contains(n[t],this))return!0}));for(t=0;a>t;t++)h.find(e,n[t],o);return(o=this.pushStack(a>1?h.unique(o):o)).selector=this.selector?this.selector+" "+e:e,o},filter:function(e){return this.pushStack(w(this,e||[],!1))},not:function(e){return this.pushStack(w(this,e||[],!0))},is:function(e){return!!w(this,"string"==typeof e&&y.test(e)?h(e):e||[],!1).length}});var b,S=e.document,_=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,x=h.fn.init=function(e,t){var o,n;if(!e)return this;if("string"==typeof e){if(!(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:_.exec(e))||!o[1]&&t)return!t||t.jquery?(t||b).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),$.test(o[1])&&h.isPlainObject(t))for(o in t)h.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}if((n=S.getElementById(o[2]))&&n.parentNode){if(n.id!==o[2])return b.find(e);this.length=1,this[0]=n}return this.context=S,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?void 0!==b.ready?b.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))};x.prototype=h.fn,b=h(S);var P=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function T(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}h.extend({dir:function(e,t,o){for(var n=[],a=e[t];a&&9!==a.nodeType&&(void 0===o||1!==a.nodeType||!h(a).is(o));)1===a.nodeType&&n.push(a),a=a[t];return n},sibling:function(e,t){for(var o=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&o.push(e);return o}}),h.fn.extend({has:function(e){var t,o=h(e,this),n=o.length;return this.filter(function(){for(t=0;n>t;t++)if(h.contains(this,o[t]))return!0})},closest:function(e,t){for(var o,n=0,a=this.length,i=[],r=y.test(e)||"string"!=typeof e?h(e,t||this.context):0;a>n;n++)for(o=this[n];o&&o!==t;o=o.parentNode)if(o.nodeType<11&&(r?r.index(o)>-1:1===o.nodeType&&h.find.matchesSelector(o,e))){i.push(o);break}return this.pushStack(i.length>1?h.unique(i):i)},index:function(e){return e?"string"==typeof e?h.inArray(this[0],h(e)):h.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.unique(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h.dir(e,"parentNode")},parentsUntil:function(e,t,o){return h.dir(e,"parentNode",o)},next:function(e){return T(e,"nextSibling")},prev:function(e){return T(e,"previousSibling")},nextAll:function(e){return h.dir(e,"nextSibling")},prevAll:function(e){return h.dir(e,"previousSibling")},nextUntil:function(e,t,o){return h.dir(e,"nextSibling",o)},prevUntil:function(e,t,o){return h.dir(e,"previousSibling",o)},siblings:function(e){return h.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return h.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(o,n){var a=h.map(this,t,o);return"Until"!==e.slice(-5)&&(n=o),n&&"string"==typeof n&&(a=h.filter(n,a)),this.length>1&&(D[e]||(a=h.unique(a)),P.test(e)&&(a=a.reverse())),this.pushStack(a)}});var I,F=/\S+/g,A={};function E(){S.addEventListener?(S.removeEventListener("DOMContentLoaded",O,!1),e.removeEventListener("load",O,!1)):(S.detachEvent("onreadystatechange",O),e.detachEvent("onload",O))}function O(){(S.addEventListener||"load"===event.type||"complete"===S.readyState)&&(E(),h.ready())}h.Callbacks=function(e){e="string"==typeof e?A[e]||function(e){var t=A[e]={};return h.each(e.match(F)||[],function(e,o){t[o]=!0}),t}(e):h.extend({},e);var t,o,n,a,i,r,d=[],l=!e.once&&[],s=function(u){for(o=e.memory&&u,n=!0,i=r||0,r=0,a=d.length,t=!0;d&&a>i;i++)if(!1===d[i].apply(u[0],u[1])&&e.stopOnFalse){o=!1;break}t=!1,d&&(l?l.length&&s(l.shift()):o?d=[]:c.disable())},c={add:function(){if(d){var n=d.length;!function t(o){h.each(o,function(o,n){var a=h.type(n);"function"===a?e.unique&&c.has(n)||d.push(n):n&&n.length&&"string"!==a&&t(n)})}(arguments),t?a=d.length:o&&(r=n,s(o))}return this},remove:function(){return d&&h.each(arguments,function(e,o){for(var n;(n=h.inArray(o,d,n))>-1;)d.splice(n,1),t&&(a>=n&&a--,i>=n&&i--)}),this},has:function(e){return e?h.inArray(e,d)>-1:!(!d||!d.length)},empty:function(){return d=[],a=0,this},disable:function(){return d=l=o=void 0,this},disabled:function(){return!d},lock:function(){return l=void 0,o||c.disable(),this},locked:function(){return!l},fireWith:function(e,o){return!d||n&&!l||(o=[e,(o=o||[]).slice?o.slice():o],t?l.push(o):s(o)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],o="pending",n={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(o){h.each(t,function(t,i){var r=h.isFunction(e[t])&&e[t];a[i[1]](function(){var e=r&&r.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[i[0]+"With"](this===n?o.promise():this,r?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?h.extend(e,n):n}},a={};return n.pipe=n.then,h.each(t,function(e,i){var r=i[2],d=i[3];n[i[1]]=r.add,d&&r.add(function(){o=d},t[1^e][2].disable,t[2][2].lock),a[i[0]]=function(){return a[i[0]+"With"](this===a?n:this,arguments),this},a[i[0]+"With"]=r.fireWith}),n.promise(a),e&&e.call(a,a),a},when:function(e){var t,o,a,i=0,r=n.call(arguments),d=r.length,l=1!==d||e&&h.isFunction(e.promise)?d:0,s=1===l?e:h.Deferred(),c=function(e,o,a){return function(i){o[e]=this,a[e]=arguments.length>1?n.call(arguments):i,a===t?s.notifyWith(o,a):--l||s.resolveWith(o,a)}};if(d>1)for(t=new Array(d),o=new Array(d),a=new Array(d);d>i;i++)r[i]&&h.isFunction(r[i].promise)?r[i].promise().done(c(i,a,r)).fail(s.reject).progress(c(i,o,t)):--l;return l||s.resolveWith(a,r),s.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){if(!0===e?! --h.readyWait:!h.isReady){if(!S.body)return setTimeout(h.ready);h.isReady=!0,!0!==e&&--h.readyWait>0||(I.resolveWith(S,[h]),h.fn.triggerHandler&&(h(S).triggerHandler("ready"),h(S).off("ready")))}}}),h.ready.promise=function(t){if(!I)if(I=h.Deferred(),"complete"===S.readyState)setTimeout(h.ready);else if(S.addEventListener)S.addEventListener("DOMContentLoaded",O,!1),e.addEventListener("load",O,!1);else{S.attachEvent("onreadystatechange",O),e.attachEvent("onload",O);var o=!1;try{o=null==e.frameElement&&S.documentElement}catch(e){}o&&o.doScroll&&function e(){if(!h.isReady){try{o.doScroll("left")}catch(t){return setTimeout(e,50)}E(),h.ready()}}()}return I.promise(t)};var M,N="undefined";for(M in h(c))break;c.ownLast="0"!==M,c.inlineBlockNeedsLayout=!1,h(function(){var e,t,o,n;(o=S.getElementsByTagName("body")[0])&&o.style&&(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(n).appendChild(t),typeof t.style.zoom!==N&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",c.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(o.style.zoom=1)),o.removeChild(n))}),function(){var e=S.createElement("div");if(null==c.deleteExpando){c.deleteExpando=!0;try{delete e.test}catch(e){c.deleteExpando=!1}}e=null}(),h.acceptData=function(e){var t=h.noData[(e.nodeName+" ").toLowerCase()],o=+e.nodeType||1;return(1===o||9===o)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var L=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/([A-Z])/g;function B(e,t,o){if(void 0===o&&1===e.nodeType){var n="data-"+t.replace(V,"-$1").toLowerCase();if("string"==typeof(o=e.getAttribute(n))){try{o="true"===o||"false"!==o&&("null"===o?null:+o+""===o?+o:L.test(o)?h.parseJSON(o):o)}catch(e){}h.data(e,t,o)}else o=void 0}return o}function R(e){var t;for(t in e)if(("data"!==t||!h.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function U(e,t,n,a){if(h.acceptData(e)){var i,r,d=h.expando,l=e.nodeType,s=l?h.cache:e,c=l?e[d]:e[d]&&d;if(c&&s[c]&&(a||s[c].data)||void 0!==n||"string"!=typeof t)return c||(c=l?e[d]=o.pop()||h.guid++:d),s[c]||(s[c]=l?{}:{toJSON:h.noop}),("object"==typeof t||"function"==typeof t)&&(a?s[c]=h.extend(s[c],t):s[c].data=h.extend(s[c].data,t)),r=s[c],a||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[h.camelCase(t)]=n),"string"==typeof t?null==(i=r[t])&&(i=r[h.camelCase(t)]):i=r,i}}function W(e,t,o){if(h.acceptData(e)){var n,a,i=e.nodeType,r=i?h.cache:e,d=i?e[h.expando]:h.expando;if(r[d]){if(t&&(n=o?r[d]:r[d].data)){h.isArray(t)?t=t.concat(h.map(t,h.camelCase)):t in n?t=[t]:t=(t=h.camelCase(t))in n?[t]:t.split(" "),a=t.length;for(;a--;)delete n[t[a]];if(o?!R(n):!h.isEmptyObject(n))return}(o||(delete r[d].data,R(r[d])))&&(i?h.cleanData([e],!0):c.deleteExpando||r!=r.window?delete r[d]:r[d]=null)}}}h.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?h.cache[e[h.expando]]:e[h.expando])&&!R(e)},data:function(e,t,o){return U(e,t,o)},removeData:function(e,t){return W(e,t)},_data:function(e,t,o){return U(e,t,o,!0)},_removeData:function(e,t){return W(e,t,!0)}}),h.fn.extend({data:function(e,t){var o,n,a,i=this[0],r=i&&i.attributes;if(void 0===e){if(this.length&&(a=h.data(i),1===i.nodeType&&!h._data(i,"parsedAttrs"))){for(o=r.length;o--;)r[o]&&(0===(n=r[o].name).indexOf("data-")&&B(i,n=h.camelCase(n.slice(5)),a[n]));h._data(i,"parsedAttrs",!0)}return a}return"object"==typeof e?this.each(function(){h.data(this,e)}):arguments.length>1?this.each(function(){h.data(this,e,t)}):i?B(i,e,h.data(i,e)):void 0},removeData:function(e){return this.each(function(){h.removeData(this,e)})}}),h.extend({queue:function(e,t,o){var n;return e?(t=(t||"fx")+"queue",n=h._data(e,t),o&&(!n||h.isArray(o)?n=h._data(e,t,h.makeArray(o)):n.push(o)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var o=h.queue(e,t),n=o.length,a=o.shift(),i=h._queueHooks(e,t);"inprogress"===a&&(a=o.shift(),n--),a&&("fx"===t&&o.unshift("inprogress"),delete i.stop,a.call(e,function(){h.dequeue(e,t)},i)),!n&&i&&i.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return h._data(e,o)||h._data(e,o,{empty:h.Callbacks("once memory").add(function(){h._removeData(e,t+"queue"),h._removeData(e,o)})})}}),h.fn.extend({queue:function(e,t){var o=2;return"string"!=typeof e&&(t=e,e="fx",o--),arguments.length<o?h.queue(this[0],e):void 0===t?this:this.each(function(){var o=h.queue(this,e,t);h._queueHooks(this,e),"fx"===e&&"inprogress"!==o[0]&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var o,n=1,a=h.Deferred(),i=this,r=this.length,d=function(){--n||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(o=h._data(i[r],e+"queueHooks"))&&o.empty&&(n++,o.empty.add(d));return d(),a.promise(t)}});var j=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,H=["Top","Right","Bottom","Left"],G=function(e,t){return e=t||e,"none"===h.css(e,"display")||!h.contains(e.ownerDocument,e)},z=h.access=function(e,t,o,n,a,i,r){var d=0,l=e.length,s=null==o;if("object"===h.type(o))for(d in a=!0,o)h.access(e,t,d,o[d],!0,i,r);else if(void 0!==n&&(a=!0,h.isFunction(n)||(r=!0),s&&(r?(t.call(e,n),t=null):(s=t,t=function(e,t,o){return s.call(h(e),o)})),t))for(;l>d;d++)t(e[d],o,r?n:n.call(e[d],d,t(e[d],o)));return a?e:s?t.call(e):l?t(e[0],o):i},q=/^(?:checkbox|radio)$/i;!function(){var e=S.createElement("input"),t=S.createElement("div"),o=S.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c.leadingWhitespace=3===t.firstChild.nodeType,c.tbody=!t.getElementsByTagName("tbody").length,c.htmlSerialize=!!t.getElementsByTagName("link").length,c.html5Clone="<:nav></:nav>"!==S.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,o.appendChild(e),c.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",c.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,o.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",c.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,c.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){c.noCloneEvent=!1}),t.cloneNode(!0).click()),null==c.deleteExpando){c.deleteExpando=!0;try{delete t.test}catch(e){c.deleteExpando=!1}}}(),function(){var t,o,n=S.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})o="on"+t,(c[t+"Bubbles"]=o in e)||(n.setAttribute(o,"t"),c[t+"Bubbles"]=!1===n.attributes[o].expando);n=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function Q(){return!0}function ee(){return!1}function te(){try{return S.activeElement}catch(e){}}function oe(e){var t=ne.split("|"),o=e.createDocumentFragment();if(o.createElement)for(;t.length;)o.createElement(t.pop());return o}h.event={global:{},add:function(e,t,o,n,a){var i,r,d,l,s,c,u,p,m,v,f,g=h._data(e);if(g){for(o.handler&&(o=(l=o).handler,a=l.selector),o.guid||(o.guid=h.guid++),(r=g.events)||(r=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof h===N||e&&h.event.triggered===e.type?void 0:h.event.dispatch.apply(c.elem,arguments)},c.elem=e),d=(t=(t||"").match(F)||[""]).length;d--;)m=f=(i=X.exec(t[d])||[])[1],v=(i[2]||"").split(".").sort(),m&&(s=h.event.special[m]||{},m=(a?s.delegateType:s.bindType)||m,s=h.event.special[m]||{},u=h.extend({type:m,origType:f,data:n,handler:o,guid:o.guid,selector:a,needsContext:a&&h.expr.match.needsContext.test(a),namespace:v.join(".")},l),(p=r[m])||((p=r[m]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(e,n,v,c)||(e.addEventListener?e.addEventListener(m,c,!1):e.attachEvent&&e.attachEvent("on"+m,c))),s.add&&(s.add.call(e,u),u.handler.guid||(u.handler.guid=o.guid)),a?p.splice(p.delegateCount++,0,u):p.push(u),h.event.global[m]=!0);e=null}},remove:function(e,t,o,n,a){var i,r,d,l,s,c,u,p,m,v,f,g=h.hasData(e)&&h._data(e);if(g&&(c=g.events)){for(s=(t=(t||"").match(F)||[""]).length;s--;)if(m=f=(d=X.exec(t[s])||[])[1],v=(d[2]||"").split(".").sort(),m){for(u=h.event.special[m]||{},p=c[m=(n?u.delegateType:u.bindType)||m]||[],d=d[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=i=p.length;i--;)r=p[i],!a&&f!==r.origType||o&&o.guid!==r.guid||d&&!d.test(r.namespace)||n&&n!==r.selector&&("**"!==n||!r.selector)||(p.splice(i,1),r.selector&&p.delegateCount--,u.remove&&u.remove.call(e,r));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,v,g.handle)||h.removeEvent(e,m,g.handle),delete c[m])}else for(m in c)h.event.remove(e,m+t[s],o,n,!0);h.isEmptyObject(c)&&(delete g.handle,h._removeData(e,"events"))}},trigger:function(t,o,n,a){var i,r,d,l,c,u,p,m=[n||S],v=s.call(t,"type")?t.type:t,f=s.call(t,"namespace")?t.namespace.split("."):[];if(d=u=n=n||S,3!==n.nodeType&&8!==n.nodeType&&!J.test(v+h.event.triggered)&&(v.indexOf(".")>=0&&(f=v.split("."),v=f.shift(),f.sort()),r=v.indexOf(":")<0&&"on"+v,(t=t[h.expando]?t:new h.Event(v,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=f.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),o=null==o?[t]:h.makeArray(o,[t]),c=h.event.special[v]||{},a||!c.trigger||!1!==c.trigger.apply(n,o))){if(!a&&!c.noBubble&&!h.isWindow(n)){for(l=c.delegateType||v,J.test(l+v)||(d=d.parentNode);d;d=d.parentNode)m.push(d),u=d;u===(n.ownerDocument||S)&&m.push(u.defaultView||u.parentWindow||e)}for(p=0;(d=m[p++])&&!t.isPropagationStopped();)t.type=p>1?l:c.bindType||v,(i=(h._data(d,"events")||{})[t.type]&&h._data(d,"handle"))&&i.apply(d,o),(i=r&&d[r])&&i.apply&&h.acceptData(d)&&(t.result=i.apply(d,o),!1===t.result&&t.preventDefault());if(t.type=v,!a&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(m.pop(),o))&&h.acceptData(n)&&r&&n[v]&&!h.isWindow(n)){(u=n[r])&&(n[r]=null),h.event.triggered=v;try{n[v]()}catch(e){}h.event.triggered=void 0,u&&(n[r]=u)}return t.result}},dispatch:function(e){e=h.event.fix(e);var t,o,a,i,r,d=[],l=n.call(arguments),s=(h._data(this,"events")||{})[e.type]||[],c=h.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(d=h.event.handlers.call(this,e,s),t=0;(i=d[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,r=0;(a=i.handlers[r++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,void 0!==(o=((h.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var o,n,a,i,r=[],d=t.delegateCount,l=e.target;if(d&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(a=[],i=0;d>i;i++)void 0===a[o=(n=t[i]).selector+" "]&&(a[o]=n.needsContext?h(o,this).index(l)>=0:h.find(o,this,null,[l]).length),a[o]&&a.push(n);a.length&&r.push({elem:l,handlers:a})}return d<t.length&&r.push({elem:this,handlers:t.slice(d)}),r},fix:function(e){if(e[h.expando])return e;var t,o,n,a=e.type,i=e,r=this.fixHooks[a];for(r||(this.fixHooks[a]=r=K.test(a)?this.mouseHooks:Z.test(a)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,e=new h.Event(i),t=n.length;t--;)e[o=n[t]]=i[o];return e.target||(e.target=i.srcElement||S),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,r.filter?r.filter(e,i):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var o,n,a,i=t.button,r=t.fromElement;return null==e.pageX&&null!=t.clientX&&(a=(n=e.target.ownerDocument||S).documentElement,o=n.body,e.pageX=t.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==te()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===te()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return h.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,o,n){var a=h.extend(new h.Event,o,{type:e,isSimulated:!0,originalEvent:{}});n?h.event.trigger(a,null,t):h.event.dispatch.call(t,a),a.isDefaultPrevented()&&o.preventDefault()}},h.removeEvent=S.removeEventListener?function(e,t,o){e.removeEventListener&&e.removeEventListener(t,o,!1)}:function(e,t,o){var n="on"+t;e.detachEvent&&(typeof e[n]===N&&(e[n]=null),e.detachEvent(n,o))},h.Event=function(e,t){return this instanceof h.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Q:ee):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),void(this[h.expando]=!0)):new h.Event(e,t)},h.Event.prototype={isDefaultPrevented:ee,isPropagationStopped:ee,isImmediatePropagationStopped:ee,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Q,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Q,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Q,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var o,n=e.relatedTarget,a=e.handleObj;return(!n||n!==this&&!h.contains(this,n))&&(e.type=a.origType,o=a.handler.apply(this,arguments),e.type=t),o}}}),c.submitBubbles||(h.event.special.submit={setup:function(){return!h.nodeName(this,"form")&&void h.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,o=h.nodeName(t,"input")||h.nodeName(t,"button")?t.form:void 0;o&&!h._data(o,"submitBubbles")&&(h.event.add(o,"submit._submit",function(e){e._submit_bubble=!0}),h._data(o,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&h.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!h.nodeName(this,"form")&&void h.event.remove(this,"._submit")}}),c.changeBubbles||(h.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(h.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),h.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),h.event.simulate("change",this,e,!0)})),!1):void h.event.add(this,"beforeactivate._change",function(e){var t=e.target;Y.test(t.nodeName)&&!h._data(t,"changeBubbles")&&(h.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||h.event.simulate("change",this.parentNode,e,!0)}),h._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return h.event.remove(this,"._change"),!Y.test(this.nodeName)}}),c.focusinBubbles||h.each({focus:"focusin",blur:"focusout"},function(e,t){var o=function(e){h.event.simulate(t,e.target,h.event.fix(e),!0)};h.event.special[t]={setup:function(){var n=this.ownerDocument||this,a=h._data(n,t);a||n.addEventListener(e,o,!0),h._data(n,t,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this,a=h._data(n,t)-1;a?h._data(n,t,a):(n.removeEventListener(e,o,!0),h._removeData(n,t))}}}),h.fn.extend({on:function(e,t,o,n,a){var i,r;if("object"==typeof e){for(i in"string"!=typeof t&&(o=o||t,t=void 0),e)this.on(i,t,o,e[i],a);return this}if(null==o&&null==n?(n=t,o=t=void 0):null==n&&("string"==typeof t?(n=o,o=void 0):(n=o,o=t,t=void 0)),!1===n)n=ee;else if(!n)return this;return 1===a&&(r=n,n=function(e){return h().off(e),r.apply(this,arguments)},n.guid=r.guid||(r.guid=h.guid++)),this.each(function(){h.event.add(this,e,n,o,t)})},one:function(e,t,o,n){return this.on(e,t,o,n,1)},off:function(e,t,o){var n,a;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,h(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return(!1===t||"function"==typeof t)&&(o=t,t=void 0),!1===o&&(o=ee),this.each(function(){h.event.remove(this,e,o,t)})},trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var o=this[0];return o?h.event.trigger(e,t,o,!0):void 0}});var ne="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ae=/ jQuery\d+="(?:null|\d+)"/g,ie=new RegExp("<(?:"+ne+")[\\s/>]","i"),re=/^\s+/,de=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,le=/<([\w:]+)/,se=/<tbody/i,ce=/<|&#?\w+;/,ue=/<(?:script|style|link)/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^$|\/(?:java|ecma)script/i,me=/^true\/(.*)/,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,fe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:c.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ge=oe(S).appendChild(S.createElement("div"));function Ce(e,t){var o,n,a=0,i=typeof e.getElementsByTagName!==N?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==N?e.querySelectorAll(t||"*"):void 0;if(!i)for(i=[],o=e.childNodes||e;null!=(n=o[a]);a++)!t||h.nodeName(n,t)?i.push(n):h.merge(i,Ce(n,t));return void 0===t||t&&h.nodeName(e,t)?h.merge([e],i):i}function ye(e){q.test(e.type)&&(e.defaultChecked=e.checked)}function $e(e,t){return h.nodeName(e,"table")&&h.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ke(e){return e.type=(null!==h.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=me.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function be(e,t){for(var o,n=0;null!=(o=e[n]);n++)h._data(o,"globalEval",!t||h._data(t[n],"globalEval"))}function Se(e,t){if(1===t.nodeType&&h.hasData(e)){var o,n,a,i=h._data(e),r=h._data(t,i),d=i.events;if(d)for(o in delete r.handle,r.events={},d)for(n=0,a=d[o].length;a>n;n++)h.event.add(t,o,d[o][n]);r.data&&(r.data=h.extend({},r.data))}}function _e(e,t){var o,n,a;if(1===t.nodeType){if(o=t.nodeName.toLowerCase(),!c.noCloneEvent&&t[h.expando]){for(n in(a=h._data(t)).events)h.removeEvent(t,n,a.handle);t.removeAttribute(h.expando)}"script"===o&&t.text!==e.text?(ke(t).text=e.text,we(t)):"object"===o?(t.parentNode&&(t.outerHTML=e.outerHTML),c.html5Clone&&e.innerHTML&&!h.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===o&&q.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===o?t.defaultSelected=t.selected=e.defaultSelected:("input"===o||"textarea"===o)&&(t.defaultValue=e.defaultValue)}}fe.optgroup=fe.option,fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,h.extend({clone:function(e,t,o){var n,a,i,r,d,l=h.contains(e.ownerDocument,e);if(c.html5Clone||h.isXMLDoc(e)||!ie.test("<"+e.nodeName+">")?i=e.cloneNode(!0):(ge.innerHTML=e.outerHTML,ge.removeChild(i=ge.firstChild)),!(c.noCloneEvent&&c.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(n=Ce(i),d=Ce(e),r=0;null!=(a=d[r]);++r)n[r]&&_e(a,n[r]);if(t)if(o)for(d=d||Ce(e),n=n||Ce(i),r=0;null!=(a=d[r]);r++)Se(a,n[r]);else Se(e,i);return(n=Ce(i,"script")).length>0&&be(n,!l&&Ce(e,"script")),n=d=a=null,i},buildFragment:function(e,t,o,n){for(var a,i,r,d,l,s,u,p=e.length,m=oe(t),v=[],f=0;p>f;f++)if((i=e[f])||0===i)if("object"===h.type(i))h.merge(v,i.nodeType?[i]:i);else if(ce.test(i)){for(d=d||m.appendChild(t.createElement("div")),l=(le.exec(i)||["",""])[1].toLowerCase(),u=fe[l]||fe._default,d.innerHTML=u[1]+i.replace(de,"<$1></$2>")+u[2],a=u[0];a--;)d=d.lastChild;if(!c.leadingWhitespace&&re.test(i)&&v.push(t.createTextNode(re.exec(i)[0])),!c.tbody)for(a=(i="table"!==l||se.test(i)?"<table>"!==u[1]||se.test(i)?0:d:d.firstChild)&&i.childNodes.length;a--;)h.nodeName(s=i.childNodes[a],"tbody")&&!s.childNodes.length&&i.removeChild(s);for(h.merge(v,d.childNodes),d.textContent="";d.firstChild;)d.removeChild(d.firstChild);d=m.lastChild}else v.push(t.createTextNode(i));for(d&&m.removeChild(d),c.appendChecked||h.grep(Ce(v,"input"),ye),f=0;i=v[f++];)if((!n||-1===h.inArray(i,n))&&(r=h.contains(i.ownerDocument,i),d=Ce(m.appendChild(i),"script"),r&&be(d),o))for(a=0;i=d[a++];)pe.test(i.type||"")&&o.push(i);return d=null,m},cleanData:function(e,t){for(var n,a,i,r,d=0,l=h.expando,s=h.cache,u=c.deleteExpando,p=h.event.special;null!=(n=e[d]);d++)if((t||h.acceptData(n))&&(r=(i=n[l])&&s[i])){if(r.events)for(a in r.events)p[a]?h.event.remove(n,a):h.removeEvent(n,a,r.handle);s[i]&&(delete s[i],u?delete n[l]:typeof n.removeAttribute!==N?n.removeAttribute(l):n[l]=null,o.push(i))}}}),h.fn.extend({text:function(e){return z(this,function(e){return void 0===e?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||S).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var o,n=e?h.filter(e,this):this,a=0;null!=(o=n[a]);a++)t||1!==o.nodeType||h.cleanData(Ce(o)),o.parentNode&&(t&&h.contains(o.ownerDocument,o)&&be(Ce(o,"script")),o.parentNode.removeChild(o));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&h.cleanData(Ce(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&h.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},o=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ae,""):void 0;if(!("string"!=typeof e||ue.test(e)||!c.htmlSerialize&&ie.test(e)||!c.leadingWhitespace&&re.test(e)||fe[(le.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(de,"<$1></$2>");try{for(;n>o;o++)1===(t=this[o]||{}).nodeType&&(h.cleanData(Ce(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,h.cleanData(Ce(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=a.apply([],e);var o,n,i,r,d,l,s=0,u=this.length,p=this,m=u-1,v=e[0],f=h.isFunction(v);if(f||u>1&&"string"==typeof v&&!c.checkClone&&he.test(v))return this.each(function(o){var n=p.eq(o);f&&(e[0]=v.call(this,o,n.html())),n.domManip(e,t)});if(u&&(o=(l=h.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=o),o)){for(i=(r=h.map(Ce(l,"script"),ke)).length;u>s;s++)n=l,s!==m&&(n=h.clone(n,!0,!0),i&&h.merge(r,Ce(n,"script"))),t.call(this[s],n,s);if(i)for(d=r[r.length-1].ownerDocument,h.map(r,we),s=0;i>s;s++)n=r[s],pe.test(n.type||"")&&!h._data(n,"globalEval")&&h.contains(d,n)&&(n.src?h._evalUrl&&h._evalUrl(n.src):h.globalEval((n.text||n.textContent||n.innerHTML||"").replace(ve,"")));l=o=null}return this}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){for(var o,n=0,a=[],r=h(e),d=r.length-1;d>=n;n++)o=n===d?this:this.clone(!0),h(r[n])[t](o),i.apply(a,o.get());return this.pushStack(a)}});var xe,Pe={};function De(t,o){var n,a=h(o.createElement(t)).appendTo(o.body),i=e.getDefaultComputedStyle&&(n=e.getDefaultComputedStyle(a[0]))?n.display:h.css(a[0],"display");return a.detach(),i}function Te(e){var t=S,o=Pe[e];return o||("none"!==(o=De(e,t))&&o||((t=((xe=(xe||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||xe[0].contentDocument).document).write(),t.close(),o=De(e,t),xe.detach()),Pe[e]=o),o}!function(){var e;c.shrinkWrapBlocks=function(){return null!=e?e:(e=!1,(o=S.getElementsByTagName("body")[0])&&o.style?(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(n).appendChild(t),typeof t.style.zoom!==N&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(S.createElement("div")).style.width="5px",e=3!==t.offsetWidth),o.removeChild(n),e):void 0);var t,o,n}}();var Ie,Fe,Ae=/^margin/,Ee=new RegExp("^("+j+")(?!px)[a-z%]+$","i"),Oe=/^(top|right|bottom|left)$/;function Me(e,t){return{get:function(){var o=e();if(null!=o)return o?void delete this.get:(this.get=t).apply(this,arguments)}}}e.getComputedStyle?(Ie=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Fe=function(e,t,o){var n,a,i,r,d=e.style;return r=(o=o||Ie(e))?o.getPropertyValue(t)||o[t]:void 0,o&&(""!==r||h.contains(e.ownerDocument,e)||(r=h.style(e,t)),Ee.test(r)&&Ae.test(t)&&(n=d.width,a=d.minWidth,i=d.maxWidth,d.minWidth=d.maxWidth=d.width=r,r=o.width,d.width=n,d.minWidth=a,d.maxWidth=i)),void 0===r?r:r+""}):S.documentElement.currentStyle&&(Ie=function(e){return e.currentStyle},Fe=function(e,t,o){var n,a,i,r,d=e.style;return null==(r=(o=o||Ie(e))?o[t]:void 0)&&d&&d[t]&&(r=d[t]),Ee.test(r)&&!Oe.test(t)&&(n=d.left,(i=(a=e.runtimeStyle)&&a.left)&&(a.left=e.currentStyle.left),d.left="fontSize"===t?"1em":r,r=d.pixelLeft+"px",d.left=n,i&&(a.left=i)),void 0===r?r:r+""||"auto"}),function(){var t,o,n,a,i,r,d;if((t=S.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=(n=t.getElementsByTagName("a")[0])&&n.style){function l(){var t,o,n,l;(o=S.getElementsByTagName("body")[0])&&o.style&&(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(n).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a=i=!1,d=!0,e.getComputedStyle&&(a="1%"!==(e.getComputedStyle(t,null)||{}).top,i="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(l=t.appendChild(S.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",t.style.width="1px",d=!parseFloat((e.getComputedStyle(l,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",r=0===l[0].offsetHeight),o.removeChild(n))}o.cssText="float:left;opacity:.5",c.opacity="0.5"===o.opacity,c.cssFloat=!!o.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",c.clearCloneStyle="content-box"===t.style.backgroundClip,c.boxSizing=""===o.boxSizing||""===o.MozBoxSizing||""===o.WebkitBoxSizing,h.extend(c,{reliableHiddenOffsets:function(){return null==r&&l(),r},boxSizingReliable:function(){return null==i&&l(),i},pixelPosition:function(){return null==a&&l(),a},reliableMarginRight:function(){return null==d&&l(),d}})}}(),h.swap=function(e,t,o,n){var a,i,r={};for(i in t)r[i]=e.style[i],e.style[i]=t[i];for(i in a=o.apply(e,n||[]),t)e.style[i]=r[i];return a};var Ne=/alpha\([^)]*\)/i,Le=/opacity\s*=\s*([^)]*)/,Ve=/^(none|table(?!-c[ea]).+)/,Be=new RegExp("^("+j+")(.*)$","i"),Re=new RegExp("^([+-])=("+j+")","i"),Ue={position:"absolute",visibility:"hidden",display:"block"},We={letterSpacing:"0",fontWeight:"400"},je=["Webkit","O","Moz","ms"];function He(e,t){if(t in e)return t;for(var o=t.charAt(0).toUpperCase()+t.slice(1),n=t,a=je.length;a--;)if((t=je[a]+o)in e)return t;return n}function Ge(e,t){for(var o,n,a,i=[],r=0,d=e.length;d>r;r++)(n=e[r]).style&&(i[r]=h._data(n,"olddisplay"),o=n.style.display,t?(i[r]||"none"!==o||(n.style.display=""),""===n.style.display&&G(n)&&(i[r]=h._data(n,"olddisplay",Te(n.nodeName)))):(a=G(n),(o&&"none"!==o||!a)&&h._data(n,"olddisplay",a?o:h.css(n,"display"))));for(r=0;d>r;r++)(n=e[r]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?i[r]||"":"none"));return e}function ze(e,t,o){var n=Be.exec(t);return n?Math.max(0,n[1]-(o||0))+(n[2]||"px"):t}function qe(e,t,o,n,a){for(var i=o===(n?"border":"content")?4:"width"===t?1:0,r=0;4>i;i+=2)"margin"===o&&(r+=h.css(e,o+H[i],!0,a)),n?("content"===o&&(r-=h.css(e,"padding"+H[i],!0,a)),"margin"!==o&&(r-=h.css(e,"border"+H[i]+"Width",!0,a))):(r+=h.css(e,"padding"+H[i],!0,a),"padding"!==o&&(r+=h.css(e,"border"+H[i]+"Width",!0,a)));return r}function Ye(e,t,o){var n=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=Ie(e),r=c.boxSizing&&"border-box"===h.css(e,"boxSizing",!1,i);if(0>=a||null==a){if((0>(a=Fe(e,t,i))||null==a)&&(a=e.style[t]),Ee.test(a))return a;n=r&&(c.boxSizingReliable()||a===e.style[t]),a=parseFloat(a)||0}return a+qe(e,t,o||(r?"border":"content"),n,i)+"px"}function Ze(e,t,o,n,a){return new Ze.prototype.init(e,t,o,n,a)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var o=Fe(e,"opacity");return""===o?"1":o}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:c.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,o,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,r,d=h.camelCase(t),l=e.style;if(t=h.cssProps[d]||(h.cssProps[d]=He(l,d)),r=h.cssHooks[t]||h.cssHooks[d],void 0===o)return r&&"get"in r&&void 0!==(a=r.get(e,!1,n))?a:l[t];if("string"===(i=typeof o)&&(a=Re.exec(o))&&(o=(a[1]+1)*a[2]+parseFloat(h.css(e,t)),i="number"),null!=o&&o==o&&("number"!==i||h.cssNumber[d]||(o+="px"),c.clearCloneStyle||""!==o||0!==t.indexOf("background")||(l[t]="inherit"),!r||!("set"in r)||void 0!==(o=r.set(e,o,n))))try{l[t]=o}catch(e){}}},css:function(e,t,o,n){var a,i,r,d=h.camelCase(t);return t=h.cssProps[d]||(h.cssProps[d]=He(e.style,d)),(r=h.cssHooks[t]||h.cssHooks[d])&&"get"in r&&(i=r.get(e,!0,o)),void 0===i&&(i=Fe(e,t,n)),"normal"===i&&t in We&&(i=We[t]),""===o||o?(a=parseFloat(i),!0===o||h.isNumeric(a)?a||0:i):i}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,o,n){return o?Ve.test(h.css(e,"display"))&&0===e.offsetWidth?h.swap(e,Ue,function(){return Ye(e,t,n)}):Ye(e,t,n):void 0},set:function(e,o,n){var a=n&&Ie(e);return ze(0,o,n?qe(e,t,n,c.boxSizing&&"border-box"===h.css(e,"boxSizing",!1,a),a):0)}}}),c.opacity||(h.cssHooks.opacity={get:function(e,t){return Le.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var o=e.style,n=e.currentStyle,a=h.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=n&&n.filter||o.filter||"";o.zoom=1,(t>=1||""===t)&&""===h.trim(i.replace(Ne,""))&&o.removeAttribute&&(o.removeAttribute("filter"),""===t||n&&!n.filter)||(o.filter=Ne.test(i)?i.replace(Ne,a):i+" "+a)}}),h.cssHooks.marginRight=Me(c.reliableMarginRight,function(e,t){return t?h.swap(e,{display:"inline-block"},Fe,[e,"marginRight"]):void 0}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(o){for(var n=0,a={},i="string"==typeof o?o.split(" "):[o];4>n;n++)a[e+H[n]+t]=i[n]||i[n-2]||i[0];return a}},Ae.test(e)||(h.cssHooks[e+t].set=ze)}),h.fn.extend({css:function(e,t){return z(this,function(e,t,o){var n,a,i={},r=0;if(h.isArray(t)){for(n=Ie(e),a=t.length;a>r;r++)i[t[r]]=h.css(e,t[r],!1,n);return i}return void 0!==o?h.style(e,t,o):h.css(e,t)},e,t,arguments.length>1)},show:function(){return Ge(this,!0)},hide:function(){return Ge(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){G(this)?h(this).show():h(this).hide()})}}),h.Tween=Ze,Ze.prototype={constructor:Ze,init:function(e,t,o,n,a,i){this.elem=e,this.prop=o,this.easing=a||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=i||(h.cssNumber[o]?"":"px")},cur:function(){var e=Ze.propHooks[this.prop];return e&&e.get?e.get(this):Ze.propHooks._default.get(this)},run:function(e){var t,o=Ze.propHooks[this.prop];return this.pos=t=this.options.duration?h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):Ze.propHooks._default.set(this),this}},Ze.prototype.init.prototype=Ze.prototype,Ze.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=h.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[h.cssProps[e.prop]]||h.cssHooks[e.prop])?h.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ze.propHooks.scrollTop=Ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Ze.prototype.init,h.fx.step={};var Ke,Je,Xe=/^(?:toggle|show|hide)$/,Qe=new RegExp("^(?:([+-])=|)("+j+")([a-z%]*)$","i"),et=/queueHooks$/,tt=[function(e,t,o){var n,a,i,r,d,l,s,u=this,p={},m=e.style,v=e.nodeType&&G(e),f=h._data(e,"fxshow");for(n in o.queue||(null==(d=h._queueHooks(e,"fx")).unqueued&&(d.unqueued=0,l=d.empty.fire,d.empty.fire=function(){d.unqueued||l()}),d.unqueued++,u.always(function(){u.always(function(){d.unqueued--,h.queue(e,"fx").length||d.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(o.overflow=[m.overflow,m.overflowX,m.overflowY],s=h.css(e,"display"),"inline"===("none"===s?h._data(e,"olddisplay")||Te(e.nodeName):s)&&"none"===h.css(e,"float")&&(c.inlineBlockNeedsLayout&&"inline"!==Te(e.nodeName)?m.zoom=1:m.display="inline-block")),o.overflow&&(m.overflow="hidden",c.shrinkWrapBlocks()||u.always(function(){m.overflow=o.overflow[0],m.overflowX=o.overflow[1],m.overflowY=o.overflow[2]})),t)if(a=t[n],Xe.exec(a)){if(delete t[n],i=i||"toggle"===a,a===(v?"hide":"show")){if("show"!==a||!f||void 0===f[n])continue;v=!0}p[n]=f&&f[n]||h.style(e,n)}else s=void 0;if(h.isEmptyObject(p))"inline"===("none"===s?Te(e.nodeName):s)&&(m.display=s);else for(n in f?"hidden"in f&&(v=f.hidden):f=h._data(e,"fxshow",{}),i&&(f.hidden=!v),v?h(e).show():u.done(function(){h(e).hide()}),u.done(function(){var t;for(t in h._removeData(e,"fxshow"),p)h.style(e,t,p[t])}),p)r=it(v?f[n]:0,n,u),n in f||(f[n]=r.start,v&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}],ot={"*":[function(e,t){var o=this.createTween(e,t),n=o.cur(),a=Qe.exec(t),i=a&&a[3]||(h.cssNumber[e]?"":"px"),r=(h.cssNumber[e]||"px"!==i&&+n)&&Qe.exec(h.css(o.elem,e)),d=1,l=20;if(r&&r[3]!==i){i=i||r[3],a=a||[],r=+n||1;do{r/=d=d||".5",h.style(o.elem,e,r+i)}while(d!==(d=o.cur()/n)&&1!==d&&--l)}return a&&(r=o.start=+r||+n||0,o.unit=i,o.end=a[1]?r+(a[1]+1)*a[2]:+a[2]),o}]};function nt(){return setTimeout(function(){Ke=void 0}),Ke=h.now()}function at(e,t){var o,n={height:e},a=0;for(t=t?1:0;4>a;a+=2-t)n["margin"+(o=H[a])]=n["padding"+o]=e;return t&&(n.opacity=n.width=e),n}function it(e,t,o){for(var n,a=(ot[t]||[]).concat(ot["*"]),i=0,r=a.length;r>i;i++)if(n=a[i].call(o,t,e))return n}function rt(e,t,o){var n,a,i=0,r=tt.length,d=h.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=Ke||nt(),o=Math.max(0,s.startTime+s.duration-t),n=1-(o/s.duration||0),i=0,r=s.tweens.length;r>i;i++)s.tweens[i].run(n);return d.notifyWith(e,[s,n,o]),1>n&&r?o:(d.resolveWith(e,[s]),!1)},s=d.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{}},o),originalProperties:t,originalOptions:o,startTime:Ke||nt(),duration:o.duration,tweens:[],createTween:function(t,o){var n=h.Tween(e,s.opts,t,o,s.opts.specialEasing[t]||s.opts.easing);return s.tweens.push(n),n},stop:function(t){var o=0,n=t?s.tweens.length:0;if(a)return this;for(a=!0;n>o;o++)s.tweens[o].run(1);return t?d.resolveWith(e,[s,t]):d.rejectWith(e,[s,t]),this}}),c=s.props;for(function(e,t){var o,n,a,i,r;for(o in e)if(a=t[n=h.camelCase(o)],i=e[o],h.isArray(i)&&(a=i[1],i=e[o]=i[0]),o!==n&&(e[n]=i,delete e[o]),(r=h.cssHooks[n])&&"expand"in r)for(o in i=r.expand(i),delete e[n],i)o in e||(e[o]=i[o],t[o]=a);else t[n]=a}(c,s.opts.specialEasing);r>i;i++)if(n=tt[i].call(s,e,c,s.opts))return n;return h.map(c,it,s),h.isFunction(s.opts.start)&&s.opts.start.call(e,s),h.fx.timer(h.extend(l,{elem:e,anim:s,queue:s.opts.queue})),s.progress(s.opts.progress).done(s.opts.done,s.opts.complete).fail(s.opts.fail).always(s.opts.always)}h.Animation=h.extend(rt,{tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var o,n=0,a=e.length;a>n;n++)o=e[n],ot[o]=ot[o]||[],ot[o].unshift(t)},prefilter:function(e,t){t?tt.unshift(e):tt.push(e)}}),h.speed=function(e,t,o){var n=e&&"object"==typeof e?h.extend({},e):{complete:o||!o&&t||h.isFunction(e)&&e,duration:e,easing:o&&t||t&&!h.isFunction(t)&&t};return n.duration=h.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in h.fx.speeds?h.fx.speeds[n.duration]:h.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){h.isFunction(n.old)&&n.old.call(this),n.queue&&h.dequeue(this,n.queue)},n},h.fn.extend({fadeTo:function(e,t,o,n){return this.filter(G).css("opacity",0).show().end().animate({opacity:t},e,o,n)},animate:function(e,t,o,n){var a=h.isEmptyObject(e),i=h.speed(t,o,n),r=function(){var t=rt(this,h.extend({},e),i);(a||h._data(this,"finish"))&&t.stop(!0)};return r.finish=r,a||!1===i.queue?this.each(r):this.queue(i.queue,r)},stop:function(e,t,o){var n=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof e&&(o=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",i=h.timers,r=h._data(this);if(a)r[a]&&r[a].stop&&n(r[a]);else for(a in r)r[a]&&r[a].stop&&et.test(a)&&n(r[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(o),t=!1,i.splice(a,1));(t||!o)&&h.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,o=h._data(this),n=o[e+"queue"],a=o[e+"queueHooks"],i=h.timers,r=n?n.length:0;for(o.finish=!0,h.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;r>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete o.finish})}}),h.each(["toggle","show","hide"],function(e,t){var o=h.fn[t];h.fn[t]=function(e,n,a){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(at(t,!0),e,n,a)}}),h.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,o,n){return this.animate(t,e,o,n)}}),h.timers=[],h.fx.tick=function(){var e,t=h.timers,o=0;for(Ke=h.now();o<t.length;o++)(e=t[o])()||t[o]!==e||t.splice(o--,1);t.length||h.fx.stop(),Ke=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Je||(Je=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(Je),Je=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx&&h.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,o){var n=setTimeout(t,e);o.stop=function(){clearTimeout(n)}})},function(){var e,t,o,n,a;(t=S.createElement("div")).setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=t.getElementsByTagName("a")[0],a=(o=S.createElement("select")).appendChild(S.createElement("option")),e=t.getElementsByTagName("input")[0],n.style.cssText="top:1px",c.getSetAttribute="t"!==t.className,c.style=/top/.test(n.getAttribute("style")),c.hrefNormalized="/a"===n.getAttribute("href"),c.checkOn=!!e.value,c.optSelected=a.selected,c.enctype=!!S.createElement("form").enctype,o.disabled=!0,c.optDisabled=!a.disabled,(e=S.createElement("input")).setAttribute("value",""),c.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),c.radioValue="t"===e.value}();var dt=/\r/g;h.fn.extend({val:function(e){var t,o,n,a=this[0];return arguments.length?(n=h.isFunction(e),this.each(function(o){var a;1===this.nodeType&&(null==(a=n?e.call(this,o,h(this).val()):e)?a="":"number"==typeof a?a+="":h.isArray(a)&&(a=h.map(a,function(e){return null==e?"":e+""})),(t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=h.valHooks[a.type]||h.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(o=t.get(a,"value"))?o:"string"==typeof(o=a.value)?o.replace(dt,""):null==o?"":o:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e))}},select:{get:function(e){for(var t,o,n=e.options,a=e.selectedIndex,i="select-one"===e.type||0>a,r=i?null:[],d=i?a+1:n.length,l=0>a?d:i?a:0;d>l;l++)if(!(!(o=n[l]).selected&&l!==a||(c.optDisabled?o.disabled:null!==o.getAttribute("disabled"))||o.parentNode.disabled&&h.nodeName(o.parentNode,"optgroup"))){if(t=h(o).val(),i)return t;r.push(t)}return r},set:function(e,t){for(var o,n,a=e.options,i=h.makeArray(t),r=a.length;r--;)if(n=a[r],h.inArray(h.valHooks.option.get(n),i)>=0)try{n.selected=o=!0}catch(e){n.scrollHeight}else n.selected=!1;return o||(e.selectedIndex=-1),a}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){return h.isArray(t)?e.checked=h.inArray(h(e).val(),t)>=0:void 0}},c.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var lt,st,ct=h.expr.attrHandle,ut=/^(?:checked|selected)$/i,ht=c.getSetAttribute,pt=c.input;h.fn.extend({attr:function(e,t){return z(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,o){var n,a,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute===N?h.prop(e,t,o):(1===i&&h.isXMLDoc(e)||(t=t.toLowerCase(),n=h.attrHooks[t]||(h.expr.match.bool.test(t)?st:lt)),void 0===o?n&&"get"in n&&null!==(a=n.get(e,t))?a:null==(a=h.find.attr(e,t))?void 0:a:null!==o?n&&"set"in n&&void 0!==(a=n.set(e,o,t))?a:(e.setAttribute(t,o+""),o):void h.removeAttr(e,t))},removeAttr:function(e,t){var o,n,a=0,i=t&&t.match(F);if(i&&1===e.nodeType)for(;o=i[a++];)n=h.propFix[o]||o,h.expr.match.bool.test(o)?pt&&ht||!ut.test(o)?e[n]=!1:e[h.camelCase("default-"+o)]=e[n]=!1:h.attr(e,o,""),e.removeAttribute(ht?o:n)},attrHooks:{type:{set:function(e,t){if(!c.radioValue&&"radio"===t&&h.nodeName(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}}}),st={set:function(e,t,o){return!1===t?h.removeAttr(e,o):pt&&ht||!ut.test(o)?e.setAttribute(!ht&&h.propFix[o]||o,o):e[h.camelCase("default-"+o)]=e[o]=!0,o}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var o=ct[t]||h.find.attr;ct[t]=pt&&ht||!ut.test(t)?function(e,t,n){var a,i;return n||(i=ct[t],ct[t]=a,a=null!=o(e,t,n)?t.toLowerCase():null,ct[t]=i),a}:function(e,t,o){return o?void 0:e[h.camelCase("default-"+t)]?t.toLowerCase():null}}),pt&&ht||(h.attrHooks.value={set:function(e,t,o){return h.nodeName(e,"input")?void(e.defaultValue=t):lt&&lt.set(e,t,o)}}),ht||(lt={set:function(e,t,o){var n=e.getAttributeNode(o);return n||e.setAttributeNode(n=e.ownerDocument.createAttribute(o)),n.value=t+="","value"===o||t===e.getAttribute(o)?t:void 0}},ct.id=ct.name=ct.coords=function(e,t,o){var n;return o?void 0:(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},h.valHooks.button={get:function(e,t){var o=e.getAttributeNode(t);return o&&o.specified?o.value:void 0},set:lt.set},h.attrHooks.contenteditable={set:function(e,t,o){lt.set(e,""!==t&&t,o)}},h.each(["width","height"],function(e,t){h.attrHooks[t]={set:function(e,o){return""===o?(e.setAttribute(t,"auto"),o):void 0}}})),c.style||(h.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var mt=/^(?:input|select|textarea|button|object)$/i,vt=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return z(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return e=h.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),h.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,o){var n,a,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return(1!==i||!h.isXMLDoc(e))&&(t=h.propFix[t]||t,a=h.propHooks[t]),void 0!==o?a&&"set"in a&&void 0!==(n=a.set(e,o,t))?n:e[t]=o:a&&"get"in a&&null!==(n=a.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}}}),c.hrefNormalized||h.each(["href","src"],function(e,t){h.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),c.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this}),c.enctype||(h.propFix.enctype="encoding");var ft=/[\t\r\n\f]/g;h.fn.extend({addClass:function(e){var t,o,n,a,i,r,d=0,l=this.length,s="string"==typeof e&&e;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(F)||[];l>d;d++)if(n=1===(o=this[d]).nodeType&&(o.className?(" "+o.className+" ").replace(ft," "):" ")){for(i=0;a=t[i++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");r=h.trim(n),o.className!==r&&(o.className=r)}return this},removeClass:function(e){var t,o,n,a,i,r,d=0,l=this.length,s=0===arguments.length||"string"==typeof e&&e;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(F)||[];l>d;d++)if(n=1===(o=this[d]).nodeType&&(o.className?(" "+o.className+" ").replace(ft," "):"")){for(i=0;a=t[i++];)for(;n.indexOf(" "+a+" ")>=0;)n=n.replace(" "+a+" "," ");r=e?h.trim(n):"",o.className!==r&&(o.className=r)}return this},toggleClass:function(e,t){var o=typeof e;return"boolean"==typeof t&&"string"===o?t?this.addClass(e):this.removeClass(e):this.each(h.isFunction(e)?function(o){h(this).toggleClass(e.call(this,o,this.className,t),t)}:function(){if("string"===o)for(var t,n=0,a=h(this),i=e.match(F)||[];t=i[n++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else(o===N||"boolean"===o)&&(this.className&&h._data(this,"__className__",this.className),this.className=this.className||!1===e?"":h._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",o=0,n=this.length;n>o;o++)if(1===this[o].nodeType&&(" "+this[o].className+" ").replace(ft," ").indexOf(t)>=0)return!0;return!1}}),h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){h.fn[t]=function(e,o){return arguments.length>0?this.on(t,null,e,o):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,o){return this.on(e,null,t,o)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,o,n){return this.on(t,e,o,n)},undelegate:function(e,t,o){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",o)}});var gt=h.now(),Ct=/\?/,yt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;h.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var o,n=null,a=h.trim(t+"");return a&&!h.trim(a.replace(yt,function(e,t,a,i){return o&&t&&(n=0),0===n?e:(o=a||t,n+=!i-!a,"")}))?Function("return "+a)():h.error("Invalid JSON: "+t)},h.parseXML=function(t){var o;if(!t||"string"!=typeof t)return null;try{e.DOMParser?o=(new DOMParser).parseFromString(t,"text/xml"):((o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(t))}catch(e){o=void 0}return o&&o.documentElement&&!o.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+t),o};var $t,kt,wt=/#.*$/,bt=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,_t=/^(?:GET|HEAD)$/,xt=/^\/\//,Pt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Dt={},Tt={},It="*/".concat("*");try{kt=location.href}catch(e){(kt=S.createElement("a")).href="",kt=kt.href}function Ft(e){return function(t,o){"string"!=typeof t&&(o=t,t="*");var n,a=0,i=t.toLowerCase().match(F)||[];if(h.isFunction(o))for(;n=i[a++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(o)):(e[n]=e[n]||[]).push(o)}}function At(e,t,o,n){var a={},i=e===Tt;function r(d){var l;return a[d]=!0,h.each(e[d]||[],function(e,d){var s=d(t,o,n);return"string"!=typeof s||i||a[s]?i?!(l=s):void 0:(t.dataTypes.unshift(s),r(s),!1)}),l}return r(t.dataTypes[0])||!a["*"]&&r("*")}function Et(e,t){var o,n,a=h.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:o||(o={}))[n]=t[n]);return o&&h.extend(!0,e,o),e}$t=Pt.exec(kt.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test($t[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Et(Et(e,h.ajaxSettings),t):Et(h.ajaxSettings,e)},ajaxPrefilter:Ft(Dt),ajaxTransport:Ft(Tt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,n,a,i,r,d,l,s,c=h.ajaxSetup({},t),u=c.context||c,p=c.context&&(u.nodeType||u.jquery)?h(u):h.event,m=h.Deferred(),v=h.Callbacks("once memory"),f=c.statusCode||{},g={},C={},y=0,$="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!s)for(s={};t=St.exec(i);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?i:null},setRequestHeader:function(e,t){var o=e.toLowerCase();return y||(e=C[o]=C[o]||e,g[e]=t),this},overrideMimeType:function(e){return y||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>y)for(t in e)f[t]=[f[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||$;return l&&l.abort(t),w(0,t),this}};if(m.promise(k).complete=v.add,k.success=k.done,k.error=k.fail,c.url=((e||c.url||kt)+"").replace(wt,"").replace(xt,$t[1]+"//"),c.type=t.method||t.type||c.method||c.type,c.dataTypes=h.trim(c.dataType||"*").toLowerCase().match(F)||[""],null==c.crossDomain&&(o=Pt.exec(c.url.toLowerCase()),c.crossDomain=!(!o||o[1]===$t[1]&&o[2]===$t[2]&&(o[3]||("http:"===o[1]?"80":"443"))===($t[3]||("http:"===$t[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=h.param(c.data,c.traditional)),At(Dt,c,t,k),2===y)return k;for(n in(d=c.global)&&0===h.active++&&h.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!_t.test(c.type),a=c.url,c.hasContent||(c.data&&(a=c.url+=(Ct.test(a)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=bt.test(a)?a.replace(bt,"$1_="+gt++):a+(Ct.test(a)?"&":"?")+"_="+gt++)),c.ifModified&&(h.lastModified[a]&&k.setRequestHeader("If-Modified-Since",h.lastModified[a]),h.etag[a]&&k.setRequestHeader("If-None-Match",h.etag[a])),(c.data&&c.hasContent&&!1!==c.contentType||t.contentType)&&k.setRequestHeader("Content-Type",c.contentType),k.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+It+"; q=0.01":""):c.accepts["*"]),c.headers)k.setRequestHeader(n,c.headers[n]);if(c.beforeSend&&(!1===c.beforeSend.call(u,k,c)||2===y))return k.abort();for(n in $="abort",{success:1,error:1,complete:1})k[n](c[n]);if(l=At(Tt,c,t,k)){k.readyState=1,d&&p.trigger("ajaxSend",[k,c]),c.async&&c.timeout>0&&(r=setTimeout(function(){k.abort("timeout")},c.timeout));try{y=1,l.send(g,w)}catch(e){if(!(2>y))throw e;w(-1,e)}}else w(-1,"No Transport");function w(e,t,o,n){var s,g,C,$,w,b=t;2!==y&&(y=2,r&&clearTimeout(r),l=void 0,i=n||"",k.readyState=e>0?4:0,s=e>=200&&300>e||304===e,o&&($=function(e,t,o){for(var n,a,i,r,d=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in d)if(d[r]&&d[r].test(a)){l.unshift(r);break}if(l[0]in o)i=l[0];else{for(r in o){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}n||(n=r)}i=i||n}return i?(i!==l[0]&&l.unshift(i),o[i]):void 0}(c,k,o)),$=function(e,t,o,n){var a,i,r,d,l,s={},c=e.dataTypes.slice();if(c[1])for(r in e.converters)s[r.toLowerCase()]=e.converters[r];for(i=c.shift();i;)if(e.responseFields[i]&&(o[e.responseFields[i]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(r=s[l+" "+i]||s["* "+i]))for(a in s)if((d=a.split(" "))[1]===i&&(r=s[l+" "+d[0]]||s["* "+d[0]])){!0===r?r=s[a]:!0!==s[a]&&(i=d[0],c.unshift(d[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(c,$,k,s),s?(c.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(h.lastModified[a]=w),(w=k.getResponseHeader("etag"))&&(h.etag[a]=w)),204===e||"HEAD"===c.type?b="nocontent":304===e?b="notmodified":(b=$.state,g=$.data,s=!(C=$.error))):(C=b,(e||!b)&&(b="error",0>e&&(e=0))),k.status=e,k.statusText=(t||b)+"",s?m.resolveWith(u,[g,b,k]):m.rejectWith(u,[k,b,C]),k.statusCode(f),f=void 0,d&&p.trigger(s?"ajaxSuccess":"ajaxError",[k,c,s?g:C]),v.fireWith(u,[k,b]),d&&(p.trigger("ajaxComplete",[k,c]),--h.active||h.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,o){return h.get(e,t,o,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,o,n,a){return h.isFunction(o)&&(a=a||n,n=o,o=void 0),h.ajax({url:e,type:t,dataType:a,data:o,success:n})}}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){if(h.isFunction(e))return this.each(function(t){h(this).wrapAll(e.call(this,t))});if(this[0]){var t=h(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(h.isFunction(e)?function(t){h(this).wrapInner(e.call(this,t))}:function(){var t=h(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(o){h(this).wrapAll(t?e.call(this,o):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!c.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||h.css(e,"display"))},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var Ot=/%20/g,Mt=/\[\]$/,Nt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Vt=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,o,n){var a;if(h.isArray(t))h.each(t,function(t,a){o||Mt.test(e)?n(e,a):Bt(e+"["+("object"==typeof a?t:"")+"]",a,o,n)});else if(o||"object"!==h.type(t))n(e,t);else for(a in t)Bt(e+"["+a+"]",t[a],o,n)}h.param=function(e,t){var o,n=[],a=function(e,t){t=h.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){a(this.name,this.value)});else for(o in e)Bt(o,e[o],t,a);return n.join("&").replace(Ot,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&Vt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!q.test(e))}).map(function(e,t){var o=h(this).val();return null==o?null:h.isArray(o)?h.map(o,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:o.replace(Nt,"\r\n")}}).get()}}),h.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&jt()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:jt;var Rt=0,Ut={},Wt=h.ajaxSettings.xhr();function jt(){try{return new e.XMLHttpRequest}catch(e){}}e.ActiveXObject&&h(e).on("unload",function(){for(var e in Ut)Ut[e](void 0,!0)}),c.cors=!!Wt&&"withCredentials"in Wt,(Wt=c.ajax=!!Wt)&&h.ajaxTransport(function(e){var t;if(!e.crossDomain||c.cors)return{send:function(o,n){var a,i=e.xhr(),r=++Rt;if(i.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)i[a]=e.xhrFields[a];for(a in e.mimeType&&i.overrideMimeType&&i.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)void 0!==o[a]&&i.setRequestHeader(a,o[a]+"");i.send(e.hasContent&&e.data||null),t=function(o,a){var d,l,s;if(t&&(a||4===i.readyState))if(delete Ut[r],t=void 0,i.onreadystatechange=h.noop,a)4!==i.readyState&&i.abort();else{s={},d=i.status,"string"==typeof i.responseText&&(s.text=i.responseText);try{l=i.statusText}catch(e){l=""}d||!e.isLocal||e.crossDomain?1223===d&&(d=204):d=s.text?200:404}s&&n(d,l,s,i.getAllResponseHeaders())},e.async?4===i.readyState?setTimeout(t):i.onreadystatechange=Ut[r]=t:t()},abort:function(){t&&t(void 0,!0)}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),h.ajaxTransport("script",function(e){if(e.crossDomain){var t,o=S.head||h("head")[0]||S.documentElement;return{send:function(n,a){(t=S.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,o){(o||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,o||a(200,"success"))},o.insertBefore(t,o.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Ht=[],Gt=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||h.expando+"_"+gt++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(t,o,n){var a,i,r,d=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");return d||"jsonp"===t.dataTypes[0]?(a=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,d?t[d]=t[d].replace(Gt,"$1"+a):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return r||h.error(a+" was not called"),r[0]},t.dataTypes[0]="json",i=e[a],e[a]=function(){r=arguments},n.always(function(){e[a]=i,t[a]&&(t.jsonpCallback=o.jsonpCallback,Ht.push(a)),r&&h.isFunction(i)&&i(r[0]),r=i=void 0}),"script"):void 0}),h.parseHTML=function(e,t,o){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(o=t,t=!1),t=t||S;var n=$.exec(e),a=!o&&[];return n?[t.createElement(n[1])]:(n=h.buildFragment([e],t,a),a&&a.length&&h(a).remove(),h.merge([],n.childNodes))};var zt=h.fn.load;h.fn.load=function(e,t,o){if("string"!=typeof e&&zt)return zt.apply(this,arguments);var n,a,i,r=this,d=e.indexOf(" ");return d>=0&&(n=h.trim(e.slice(d,e.length)),e=e.slice(0,d)),h.isFunction(t)?(o=t,t=void 0):t&&"object"==typeof t&&(i="POST"),r.length>0&&h.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){a=arguments,r.html(n?h("<div>").append(h.parseHTML(e)).find(n):e)}).complete(o&&function(e,t){r.each(o,a||[e.responseText,t,e])}),this},h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length};var qt=e.document.documentElement;function Yt(e){return h.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}h.offset={setOffset:function(e,t,o){var n,a,i,r,d,l,s=h.css(e,"position"),c=h(e),u={};"static"===s&&(e.style.position="relative"),d=c.offset(),i=h.css(e,"top"),l=h.css(e,"left"),("absolute"===s||"fixed"===s)&&h.inArray("auto",[i,l])>-1?(r=(n=c.position()).top,a=n.left):(r=parseFloat(i)||0,a=parseFloat(l)||0),h.isFunction(t)&&(t=t.call(e,o,d)),null!=t.top&&(u.top=t.top-d.top+r),null!=t.left&&(u.left=t.left-d.left+a),"using"in t?t.using.call(e,u):c.css(u)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,o,n={top:0,left:0},a=this[0],i=a&&a.ownerDocument;return i?(t=i.documentElement,h.contains(t,a)?(typeof a.getBoundingClientRect!==N&&(n=a.getBoundingClientRect()),o=Yt(i),{top:n.top+(o.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(o.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,o={top:0,left:0},n=this[0];return"fixed"===h.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(o=e.offset()),o.top+=h.css(e[0],"borderTopWidth",!0),o.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-o.top-h.css(n,"marginTop",!0),left:t.left-o.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||qt;e&&!h.nodeName(e,"html")&&"static"===h.css(e,"position");)e=e.offsetParent;return e||qt})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var o=/Y/.test(t);h.fn[e]=function(n){return z(this,function(e,n,a){var i=Yt(e);return void 0===a?i?t in i?i[t]:i.document.documentElement[n]:e[n]:void(i?i.scrollTo(o?h(i).scrollLeft():a,o?a:h(i).scrollTop()):e[n]=a)},e,n,arguments.length,null)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=Me(c.pixelPosition,function(e,o){return o?(o=Fe(e,t),Ee.test(o)?h(e).position()[t]+"px":o):void 0})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(o,n){h.fn[n]=function(n,a){var i=arguments.length&&(o||"boolean"!=typeof n),r=o||(!0===n||!0===a?"margin":"border");return z(this,function(t,o,n){var a;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===n?h.css(t,o,r):h.style(t,o,n,r)},t,i?n:void 0,i,null)}})}),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return h});var Zt=e.jQuery,Kt=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=Kt),t&&e.jQuery===h&&(e.jQuery=Zt),h},typeof t===N&&(e.jQuery=e.$=h),h}),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var o=!1,n=this;e(this).one("bsTransitionEnd",function(){o=!0});return setTimeout(function(){o||e(n).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var o in t)if(void 0!==e.style[o])return{end:t[o]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(e){"use strict";function t(t,n){return this.each(function(){var a=e(this),i=a.data("bs.modal"),r=e.extend({},o.DEFAULTS,a.data(),"object"==typeof t&&t);i||a.data("bs.modal",i=new o(this,r)),"string"==typeof t?i[t](n):r.show&&i.show(n)})}var o=function(t,o){this.options=o,this.$body=e(document.body),this.$element=e(t),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};o.VERSION="3.2.0",o.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},o.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},o.prototype.show=function(t){var o=this,n=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.$body.closest("html").addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var n=e.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),n&&o.$element[0].offsetWidth,o.$element.addClass("in").attr("aria-hidden",!1),o.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:t});n?o.$element.find(".modal-dialog").one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(300):o.$element.trigger("focus").trigger(a)}))},o.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.$body.closest("html").removeClass("modal-open"),this.resetScrollbar(),this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},o.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},o.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},o.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$element.trigger("hidden.bs.modal")})},o.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},o.prototype.backdrop=function(t){var o=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;a?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){o.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(150):i()}else t&&t()},o.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},o.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",e+this.scrollbarWidth)},o.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},o.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=o,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(o){var n=e(this),a=n.attr("href"),i=e(n.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,"")),r=i.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(a)&&a},i.data(),n.data());n.is("a")&&o.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),t.call(i,r,this)})}(jQuery),$(window).on("resize",function(){setTimeout(function(){$(".modal:visible").each(function(e,t){centerModal(t)})},500)});var gsMonthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),gsDayNames=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");String.prototype.times||(String.prototype.times=function(e){for(var t="",o=0;o<e;o++)t+=this;return t}),String.prototype.zp||(String.prototype.zp=function(e){return"0".times(e-this.length)+this}),Number.prototype.zp||(Number.prototype.zp=function(e){return this.toString().zp(e)}),Date.prototype.format||(Date.prototype.format=function(e){if(!this.valueOf())return"&nbsp;";var t=this;return e.replace(/(yyyy|mmmm|mmm|mm|dddd|ddd|dd|hh|nn|ss|ms|a\/p)/gi,function(e){switch(e.toLowerCase()){case"yyyy":return t.getFullYear();case"mmmm":return gsMonthNames[t.getMonth()];case"mmm":return gsMonthNames[t.getMonth()].substr(0,3);case"mm":return(t.getMonth()+1).zp(2);case"dddd":return gsDayNames[t.getDay()];case"ddd":return gsDayNames[t.getDay()].substr(0,3);case"dd":return t.getDate().zp(2);case"hh":return((h=t.getHours()%12)?h:12).zp(2);case"nn":return t.getMinutes().zp(2);case"ss":return t.getSeconds().zp(2);case"ms":return t.getMilliseconds().zp(2);case"a/p":return t.getHours()<12?"AM":"PM"}})}),Date.prototype.formatdate||(Date.prototype.formatdate=function(e){if(!this.valueOf())return"&nbsp;";var t=this;return e.replace(/(yyyy|mmmm|mmm|mm|dddd|ddd|dd|hh|nn|ss|ms|a\/p)/gi,function(e){switch(e.toLowerCase()){case"yyyy":return t.getFullYear();case"mmmm":return gsMonthNames[t.getMonth()];case"mmm":return gsMonthNames[t.getMonth()].substr(0,3);case"mm":return(t.getMonth()+1).zp(2);case"dddd":return gsDayNames[t.getDay()];case"ddd":return gsDayNames[t.getDay()].substr(0,3);case"dd":return t.getDate().zp(2);case"hh":return((h=t.getHours()%12)?h:12).zp(2);case"nn":return t.getMinutes().zp(2);case"ss":return t.getSeconds().zp(2);case"ms":return t.getMilliseconds().zp(2);case"a/p":return t.getHours()<12?"AM":"PM"}})}),String.format||(String.format=function(){for(var e=arguments[0],t=1;t<arguments.length;t++){var o=new RegExp("\\{"+(t-1)+"\\}","gm");e=e.replace(o,arguments[t])}return e});var entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","^":"&#94;",$:"&#36;"},functionentityMap={'"':'\\"',"'":"\\'"};function addCommas(e){x=(e+="").split("."),x1=x[0],x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2}String.prototype.escapeHtml||(String.prototype.escapeHtml=function(){return String(this).replace(/[&<>\"'\/^$]/g,function(e){return entityMap[e]}).toString()}),String.isNullOrUndefineOrBlank||(String.isNullOrUndefineOrBlank=function(e){return void 0===e||null==e||""==e||null==e}),String.isNullOrUndefine||(String.isNullOrUndefine=function(e){return void 0===e||null==e||null==e}),RegExp.escape=function(e){return String(e).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")},Number.prototype.formatMoney||(Number.prototype.formatMoney=function(e,t,o,n){e=isNaN(e=Math.abs(e))?2:e,o=o||",",n=n||".";var a=this,i=a<0?"-":"",r=parseInt(a=Math.abs(+a||0).toFixed(e),10)+"",d=(d=r.length)>3?d%3:0;return i+(d?r.substr(0,d)+o:"")+r.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+o)+(e?n+Math.abs(a-r).toFixed(e).slice(2):"")}),Number.prototype.format||(Number.prototype.format=function(e){var t=this,o=e.match(/^[-+]?[\#]+\.[##]+$/);if(o){return(o=e.match(/^#.##$/))?addCommas(t.toFixed(2)):4==(t=t.toFixed(2)).toString().length?"0"+t:addCommas(t)}return addCommas(t)}),String.prototype.escapeParamHtml||(String.prototype.escapeParamHtml=function(){return String(this).replace(/["']/g,function(e){return functionentityMap[e]}).toString()}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),o=this,n=function(){},a=function(){return o.apply(this instanceof n&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,a.prototype=new n,a}),Array.prototype.keySort||(Array.prototype.keySort=function(e){var t=function(e,t){var o,n=0;for(o in e)if(e.hasOwnProperty(o)){if(n==t)return o;n++}return!1},o=function(e,t,o){return o=null!==o?o:1,e==t?0:e>t?1*o:-1*o},n=function(e){var t,o=0;for(t in e)e.hasOwnProperty(t)&&o++;return o}(e=e||{});if(!n)return this.sort(o);for(var a in e)e[a]="desc"==e[a]||-1==e[a]?-1:"skip"==e[a]||0===e[a]?0:1;return this.sort(function(a,i){for(var r=0,d=0;0===r&&d<n;){var l=t(e,d);if(l){var s=e[l];r=o(a[l],i[l],s),d++}}return r}),this});var ajaxQueue=$({}),currentRequest=null;vagaro={},function(e){vagaro.ajax=function(){this.datamodel={},this.datamodel.url="",this.datamodel.data="",this.datamodel.callback="",this.datamodel.Token="",this.datamodel.Error,this.datamodel.async=!0,this.datamodel.ErrorMessage="An Error Has Occurred",this.datamodel.GroupToken="",this.datamodel.IsNewVagaroAPI=!1,this.datamodel.Proxy=!1,this.datamodel.RouteParameter={},this.datamodel.QueryStringParameter={},this.datamodel.merchantId="",this.datamodel.userId="",this.Post=function(){if("undefined"==typeof keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),o=this.datamodel.url,n=this.datamodel.data,a=this.datamodel.callback,i=this.datamodel.Token,r=this.datamodel.Error,d=this.datamodel.async,l=this.datamodel.ErrorMessage,s=this.datamodel.GroupToken,c=this.datamodel.Proxy,u=this.datamodel.RouteParameter={},h=this.datamodel.QueryStringParameter={},p=this.datamodel.merchantId="",m=this.datamodel.userId="";setTimeout(function(){t[0].datamodel.url=o,t[0].datamodel.data=n,t[0].datamodel.callback=a,t[0].datamodel.Token=i,t[0].datamodel.Error=r,t[0].datamodel.async=d,t[0].datamodel.ErrorMessage=l,t[0].datamodel.GroupToken=s,t[0].datamodel.Proxy=c,t[0].datamodel.RouteParameter=u,t[0].datamodel.QueryStringParameter=h,t[0].datamodel.merchantId=p,t[0].datamodel.userId=m,t[0].Post()},500)}else{var v=this.datamodel;v.async="undefined"!=typeof isWidget&&null!=isWidget&&"true"===isWidget.toString().toLowerCase()&&"undefined"!=typeof businessID&&null!=businessID&&(156973===parseInt(businessID)||383713===parseInt(businessID)||377983===parseInt(businessID)||430616===parseInt(businessID)||400713===parseInt(businessID))||v.async;var f={};1==v.Proxy?(f.Data=""+JSON.stringify(v.data),f.Token=v.Token,f.IsPublic=v.IsPublic,f.RouteParameter=v.RouteParameter,f.QueryStringParameter=v.QueryStringParameter):1==v.IsNewVagaroAPI?f=v.data:(f.Data=""+JSON.stringify(v.data),f.Token=v.Token);var g=this.datamodel.GroupToken;e.ajax({url:1==v.Proxy?this.seturl(2):this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",xhr:function(){return 1==v.IsNewVagaroAPI&&null!=window.childWindow&&v.Token.indexOf("http")>-1&&v.Token.indexOf("api")>-1?new window.childWindow.XMLHttpRequest:new window.XMLHttpRequest},beforeSend:function(t){try{"function"==typeof EncH&&0==v.IsNewVagaroAPI&&t.setRequestHeader("H",EncH())}catch(e){}if(0==v.IsNewVagaroAPI){if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("K",getek());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("K",window.parent.getek())}catch(e){}if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("I",getei());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("I",window.parent.getei())}catch(e){}if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("Val",EncIV());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("Val",window.parent.EncIV())}catch(e){}}if("undefined"!=typeof keepAlive&&t.setRequestHeader("keepAlive",keepAlive),1==e("#hdnToken1").length&&void 0!==e("#hdnToken1").val()&&t.setRequestHeader("token1",e("#hdnToken1").val()),1==e("#hdnToken2").length&&void 0!==e("#hdnToken2").val()&&t.setRequestHeader("token2",e("#hdnToken2").val()),1==e("#hdnToken0").length&&void 0!==e("#hdnToken0").val()&&t.setRequestHeader("token0",e("#hdnToken0").val()),void 0!==g&&null!=g&&""!=g?t.setRequestHeader("grouptoken",g):"undefined"!=typeof groupID&&t.setRequestHeader("grouptoken",groupID),"undefined"!=typeof myAccountUserGroupID&&t.setRequestHeader("usergrouptoken",myAccountUserGroupID),1==e("#hdnCheckInApp").length&&void 0!==e("#hdnCheckInApp").val()&&t.setRequestHeader("checkinApp",e("#hdnCheckInApp").val()),1==e("#hdnIsBrandedApp").length&&void 0!==e("#hdnIsBrandedApp").val()&&t.setRequestHeader("brandedApp",e("#hdnIsBrandedApp").val()),1==v.IsNewVagaroAPI&&v.Token.indexOf("http")>-1&&v.Token.indexOf("api")>-1&&(1==e("#hdnCalendarVersion").length&&void 0!==e("#hdnCalendarVersion").val()?(t.setRequestHeader("Version",e("#hdnCalendarVersion").val()),t.setRequestHeader("Device","website"),t.setRequestHeader("DeviceID","calendar")):1==e("#hdnVersionDetail").length&&void 0!==e("#hdnVersionDetail").val()&&(t.setRequestHeader("Version",e("#hdnVersionDetail").val()),t.setRequestHeader("Device","website"),t.setRequestHeader("DeviceID","masterpage")),("undefined"!=typeof PublicBusinessID&&"undefined"!=typeof UserID||"undefined"!=typeof businessID&&"undefined"!=typeof UserID||"undefined"!=typeof BusinessID&&"undefined"!=typeof UserID||"undefined"!=typeof SecuBusinessID&&"undefined"!=typeof SecuUserID)&&getheader(t)),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue);else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}try{"undefined"!=typeof _freeCardReader&&void 0!==_freeCardReader.userdata&&null!=_freeCardReader.userdata&&void 0!==_freeCardReader.userdata.BusinessId&&t.setRequestHeader("businessId",_freeCardReader.userdata.BusinessId),"undefined"!=typeof _freeCardReader&&void 0!==_freeCardReader.userdata&&null!=_freeCardReader.userdata&&void 0!==_freeCardReader.userdata.UserId&&t.setRequestHeader("loggedInUserId",_freeCardReader.userdata.UserId)}catch(e){}try{void 0!==v.merchantId&&null!=v.merchantId&&""!=v.merchantId&&t.setRequestHeader("merchantId",v.merchantId),void 0!==v.userId&&null!=v.userId&&""!=v.userId&&t.setRequestHeader("userId",v.userId)}catch(e){}try{"undefined"!=vm&&"undefined"!=vm.V2VTransferCoreApiHeader&&"undefined"!=vm.V2VTransferCoreApiHeader._vdpb_id&&t.setRequestHeader("_vdpb_id",vm.V2VTransferCoreApiHeader._vdpb_id),"undefined"!=vm&&"undefined"!=vm.V2VTransferCoreApiHeader&&"undefined"!=vm.V2VTransferCoreApiHeader._vdpu_id&&t.setRequestHeader("_vdpu_id",vm.V2VTransferCoreApiHeader._vdpu_id)}catch(e){}},async:v.async,data:JSON.stringify(f),dataType:"json"}).done(function(e){if(1==v.IsNewVagaroAPI)(t=void 0!==e&&null!=e&&void 0!==e.CustomCode&&null!=e.CustomCode&&(v.Token.indexOf("http")>-1&&v.Token.indexOf("api")>-1||v.Token.indexOf("myaccount")>-1))&&1032==e.CustomCode?window.location.href="/ScheduleMaintenance.aspx":t&&1036==e.CustomCode?window.location.reload():t&&1034==e.CustomCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.Message):vagaro.alert({message:e.Message,title:"Invalid!"}):v.callback(e);else if(1==v.Proxy){var t;(t=void 0!==e&&null!=e&&void 0!==e.responseCode&&null!=e.responseCode&&(v.Token.indexOf("http")>-1&&v.Token.indexOf("api")>-1||v.Token.indexOf("myaccount")>-1))&&1032==e.responseCode?window.location.href="/ScheduleMaintenance.aspx":t&&1036==e.responseCode?window.location.reload():t&&1034==e.responseCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.message):vagaro.alert({message:e.message,title:"Invalid!"}):v.callback(e)}else v.callback(e.d)}).fail(function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}if(void 0!==e&&null!=e&&999==e.status)return vagaro.reloadDetailPage(e.status,v.Token),void ShowLoader(!1);if(void 0===e||null==e||0!=e.status||"undefined"==typeof vgAppicationType||1!=vgAppicationType){if(""!=v.ErrorMessage){var t="",o="undefined"!=typeof isWidget&&null!=isWidget&&"true"===isWidget.toString().toLowerCase()&&"undefined"!=typeof businessID&&null!=businessID&&(156973===parseInt(businessID)||383713===parseInt(businessID)||377983===parseInt(businessID)||430616===parseInt(businessID)||400713===parseInt(businessID));try{t=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase().match(/com.vagaro.iospro/i),ShowLoader(!1)}catch(e){}!t&&!o&&"websiteapi/homepage/getupcomingappintmentdata"!=v.Token&&"websiteapi/homepage/getallpetdetails"!=v.Token&&"websiteapi/homepage/getupcominglivestreamclasses"!=v.Token&&v.Token.toLowerCase().indexOf("addloginamplitude")<0&&"addbusiness/signupbusinessailog"!=v.Token&&vagaro.alert({message:v.ErrorMessage+v.Token,title:"Oops!"})}void 0!==v.Error&&v.Error(e)}})}},this.PostQue=function(){if("undefined"==typeof keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),o=this.datamodel.url,n=this.datamodel.data,a=this.datamodel.callback,i=this.datamodel.Token,r=this.datamodel.Error,d=this.datamodel.async,l=this.datamodel.ErrorMessage;setTimeout(function(){t[0].datamodel.url=o,t[0].datamodel.data=n,t[0].datamodel.callback=a,t[0].datamodel.Token=i,t[0].datamodel.Error=r,t[0].datamodel.async=d,t[0].datamodel.ErrorMessage=l,t[0].PostQue()},500)}else{var s=this.datamodel,c={};1==s.IsNewVagaroAPI?c=s.data:(c.Data=""+JSON.stringify(s.data),c.Token=s.Token),this.que({url:this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",beforeSend:function(t){try{"function"==typeof EncH&&t.setRequestHeader("H",EncH())}catch(e){}if(0==s.IsNewVagaroAPI&&(t.setRequestHeader("K",getek()),t.setRequestHeader("I",getei()),t.setRequestHeader("Val",EncIV())),"undefined"!=typeof keepAlive&&t.setRequestHeader("keepAlive",keepAlive),1==e("#hdnToken1").length&&void 0!==e("#hdnToken1").val()&&t.setRequestHeader("token1",e("#hdnToken1").val()),1==e("#hdnToken2").length&&void 0!==e("#hdnToken2").val()&&t.setRequestHeader("token2",e("#hdnToken2").val()),1==e("#hdnToken0").length&&void 0!==e("#hdnToken0").val()&&t.setRequestHeader("token0",e("#hdnToken0").val()),1==e("#hdnCheckInApp").length&&void 0!==e("#hdnCheckInApp").val()&&t.setRequestHeader("checkinApp",e("#hdnCheckInApp").val()),"undefined"!=typeof groupID&&t.setRequestHeader("grouptoken",groupID),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue);else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}},data:JSON.stringify(c),dataType:"json",success:function(e){1==s.IsNewVagaroAPI?s.callback(e):s.callback(e.d)},error:function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}if(void 0!==e&&null!=e&&999==e.status)return vagaro.reloadDetailPage(e.status,s.Token),void ShowLoader(!1);if("abort"!=e.statusText){if(""!=s.ErrorMessage){try{ShowLoader(!1)}catch(e){}s.Token.toLowerCase().indexOf("addloginamplitude")<0&&vagaro.alert({message:s.ErrorMessage+s.Token,title:"Oops!"})}void 0!==s.Error&&s.Error(e)}}})}},this.que=function(t){var o=t.complete;ajaxQueue.clearQueue(),currentRequest&&currentRequest.abort(),ajaxQueue.queue(function(n){t.complete=function(){o&&o.apply(this,arguments),n()},currentRequest=e.ajax(t)})},this.Get=function(){e.ajax({url:this.seturl(this.datamodel.url),type:"GET",data:JSON.stringify(this.datamodel.data),dataType:"json"}).done(function(e){this.datamodel.callback(e)}).fail(function(e){this.datamodel.ErrorMessage.length>0&&(ShowLoader(!1),vagaro.alert({message:Model.ErrorMessage,title:"Oops!"})),"undefined"!=this.datamodel.Error&&this.datamodel.Error(e)})},this.GetDirectV2=function(){var t=this,o=t.datamodel.url;if(t.datamodel.RouteParameter&&"object"==typeof t.datamodel.RouteParameter&&Object.keys(t.datamodel.RouteParameter).length>0)for(var n in t.datamodel.RouteParameter)if(t.datamodel.RouteParameter.hasOwnProperty(n)){var a=t.datamodel.RouteParameter[n];null!=a&&""!==a&&(o+=(o.endsWith("/")?"":"/")+encodeURIComponent(a))}if(t.datamodel.QueryStringParameter&&"object"==typeof t.datamodel.QueryStringParameter&&Object.keys(t.datamodel.QueryStringParameter).length>0){var i=e.param(t.datamodel.QueryStringParameter);o+=(o.includes("?")?"&":"?")+i}var r={};t.datamodel.merchantId&&(r.MerchantId=t.datamodel.merchantId),t.datamodel.userId&&(r.UserId=t.datamodel.userId),void 0!==t.datamodel.ErrorMessage&&(r.IsErrorMsgReq=""!==t.datamodel.ErrorMessage?"true":"false"),e.ajax({url:o,type:"GET",headers:r,dataType:"json"}).done(function(e){"function"==typeof t.datamodel.callback&&t.datamodel.callback(e)}).fail(function(e){t.datamodel.ErrorMessage&&t.datamodel.ErrorMessage.length>0&&(ShowLoader(!1),vagaro.alert({message:t.datamodel.ErrorMessage,title:"Oops!"})),"function"==typeof t.datamodel.Error&&t.datamodel.Error(e)})},this.seturl=function(e){var t=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";if(t.indexOf("webcache.googleusercontent.com")>-1&&"vagaro.com"==DomainName&&(t="https://www.vagaro.com/"),1==e){var o="";if("undefined"!=typeof regionId&&""!=regionId&&(o=regionId+"/"),1==this.datamodel.IsNewVagaroAPI)this.datamodel.Token.indexOf("http")>-1&&this.datamodel.Token.indexOf("api")>-1?t=this.datamodel.Token:("undefined"!=typeof vagaroSiteBuilder&&null!=vagaroSiteBuilder&&void 0!==vagaroSiteBuilder.BaseURLOfWebSiteBuilderAPI&&t.indexOf(vagaroSiteBuilder.BaseURLOfWebSiteBuilderAPI)>-1&&(t=vagaroSiteBuilder.BaseURLOfVagaroAPI),t=t+o+this.datamodel.Token);else try{t=void 0!==this.datamodel.Token&&null!=this.datamodel.Token&&""!=this.datamodel.Token?t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson?token="+this.datamodel.Token:t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}catch(e){t=t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}}else if(2==e){o="";"undefined"!=typeof regionId&&""!=regionId&&(o=regionId+"/"),t=t+o+"api/proxy"}else try{t=void 0!==this.datamodel.Token&&null!=this.datamodel.Token&&""!=this.datamodel.Token?t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson?token="+this.datamodel.Token:t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}catch(e){t=t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}return t}},vagaro.alert=function(e){"undefined"!=typeof bootbox?bootbox.alert(e):ShowPopupAlert(e.message,1,null)},vagaro.alertsmall=function(e){"undefined"!=typeof bootbox?bootbox.alertsmall(e):ShowPopupAlert(e.message,1,null)},vagaro.alertmidium=function(e,t){"undefined"!=typeof bootbox?bootbox.alert({className:"vagaro-midium-popup",message:e,title:"Alert",callback:"function"==typeof t?t:null}):ShowPopupAlert(e.message,1,null)},vagaro.popup=function(e){"undefined"!=typeof bootbox?bootbox.dialog(e):ShowPopupAlert(e.message,4,null)},vagaro.confirm=function(e){"undefined"!=typeof bootbox&&bootbox.confirm(e)},vagaro.confirmsmall=function(e){"undefined"!=typeof bootbox&&bootbox.confirm(e,e.success.label,e.success.label)},vagaro.prompt=function(){"undefined"!=typeof bootbox&&bootbox.prompt(options)},vagaro.reloadDetailPage=function(e,t){999===e&&["SaveSettingHistory","GetServiceProviderDetails","GetServicesDetails","GetShoppingCartInventory","GetShoppingCartProductType","GetShoppingCartBrand","GetShoppingCartPopupData","GetShoppingCartPopupDataNew","AddToCart","MembershipAddToCart","GiftCertificateAddToCart","ServiceAddToCart","ClassAddToCart","UpdateCartItem","UpdateMutipleCartItem","GetNextAvailableDateWorkShop","RemoveCartItem","ValidateShoppingCartData","GetCartCount","GetEventCartDetail","GetGiftcertificateCategory","GetReturnPolicy","GetAppointmentCancellationPolicy","BindSalonServiceComboForGC","GetGiftCertificateExpMonth","GetGiftCertificateImgByCategory","GetShopDetailStyle","LikeStyle","GetStyleImagesCommaSeparated","GetBookRequestButtonText","GetDealDataWithServicesByPromotionID","ShareSPorStyle","GetCustomerNameByEmailId","GetAvailableDates","SendEmailtoSP","ShowFavorites","GetAvailableMultiAppointments","GetUserCCDetailsByOnlyUserID","GetStatesByCountryID","GetStatesByMultipleCountryID","CheckUserExistsByUserId","GetValidatePromotionsDetails","GetAvailableDatesForEvents","GetEventDetailAndAvailableDates","CheckUserExistanceInEvent","GetEventDetailForReschedule","GetEventDetailForRescheduleForWorkShop","GetClassCancellationPolicy","GetMembershipAndPackageByBusinessId","GetOnlineCheckoutTipSetting","GetOnlineBookingTabDetail","GetGCPackageAndPointForOnlineCheckout","RemoveCehckOutItem","ValidatePromocodeAndGetDetails","GetOnlineInvoiceBusinessUserDetailsByInvoiceId","GetAllPetDetails","GetMyAppintmentData","GetMyProducts","GetMyAccountFavoriteBusinesses","GetBusinessPoints","GetCustomerPoints","GetUserCompleteAppointmentsForReviews","GetGiftCertificateDetails","GetBusinessMembershipNew","GetMyAccountInvoices","GetFamilyAndFriendsDetailsByUserID"].indexOf(t)>-1&&location.reload(!0)},vagaro.ajaxCall=function(e,t,o,n,a,i,r,d){var l=new vagaro.ajax;l.datamodel.Token=e,l.datamodel.data=t,l.datamodel.callback=o,l.datamodel.Error=n,void 0!==i&&1==i&&(l.datamodel.IsNewVagaroAPI=i),void 0!==d&&1==d&&(l.datamodel.ErrorMessage=""),a?l.PostQue():l.Post()},vagaro.ajaxCallV2=function(e,t,o,n,a,i,r,d,l,s){var c=new vagaro.ajax;c.datamodel.Token=e,c.datamodel.data=t,c.datamodel.callback=a,c.datamodel.Error=i,c.datamodel.Proxy=!0,c.datamodel.IsPublic=!1,void 0!==s&&(c.datamodel.IsPublic=s),void 0!==o&&null!=o&&(c.datamodel.RouteParameter=o),void 0!==n&&null!=n&&(c.datamodel.QueryStringParameter=n),void 0!==d&&1==d&&(c.datamodel.ErrorMessage=""),void 0!==l&&void 0!==l.MerchantId&&null!==l.MerchantId&&""!==l.MerchantId&&(c.datamodel.merchantId=l.MerchantId),void 0!==l&&void 0!==l.UserId&&null!==l.UserId&&""!==l.UserId&&(c.datamodel.userId=l.UserId),r?c.PostQue():c.Post()},vagaro.ajaxCallV2Direct=function(e,t,o,n,a,i,r,d){var l=new vagaro.ajax;"undefined"==VagaroCorePublicAPIURLV2||isNullOrUndefineOrBlank(VagaroCorePublicAPIURLV2)?(VagaroCorePublicAPIURLV2="https://api.vagaro.com/US02/api/v2/public/",l.datamodel.Token=VagaroCorePublicAPIURLV2+e):l.datamodel.Token=VagaroCorePublicAPIURLV2+e,l.datamodel.IsNewVagaroAPI=!0,l.datamodel.Proxy=!1,void 0!==o&&null!=o&&(l.datamodel.RouteParameter=o),void 0!==n&&null!=n&&(l.datamodel.QueryStringParameter=n),void 0!==r&&1==r&&(l.datamodel.ErrorMessage=""),void 0!==d&&void 0!==d.MerchantId&&null!==d.MerchantId&&""!==d.MerchantId&&(l.datamodel.merchantId=d.MerchantId),void 0!==d&&void 0!==d.UserId&&null!==d.UserId&&""!==d.UserId&&(l.datamodel.userId=d.UserId),l.datamodel.data=t,"undefined"!=typeof isAsync&&null!=isAsync&&(l.datamodel.async=isAsync),l.datamodel.Error=i,l.datamodel.callback=a,l.datamodel.url=l.datamodel.Token,l.GetDirectV2()},vagaro.VagaroCoreApiResponseCode={Success:1e3,Error:1001,UnderMaintanance:1032,QuotaExceeded:1038},vagaro.VagaroCoreApiStatusCode={OK:200,Created:201,BadRequest:400}}(jQuery);var isNullOrUndefineOrBlank=e=>void 0===e||null==e||""==e||null==e;function onKeyPressBlockNumbers(e){var t=window.event?window.event.keyCode:e.which;if(46!=t&&(32==t||39==t||46==t||8==t||9==t||189==t||0==t))return t;var o=String.fromCharCode(t),n=/\d/;return window.event?event.returnValue=n.test(o):n.test(o)}function resize_bg(){$(".replaced").css({left:"160px"}),$("#fullbackground-wrapper").css("display","block"),$(".model").css("padding-left","0px!important");var e=$(window).width(),t=$(window).height(),o=$(".replaced").width()/$(".replaced").height(),n=e,a=Math.round(n/o);if(a<t){a=t,n=Math.round(a*o);var i=Math.round((n-e)/2);$(".replaced").css("left","-"+i+"px")}$(".replaced").width(n),$(".replaced").height(a)}function onOnlineiFrameLoad(){loader(!1)}function ajaxCallV2DirectAsync(e,t,o,n,a=!1,i={}){return new Promise((r,d)=>{try{vagaro.ajaxCallV2Direct(e,t,o,n,e=>r(e),e=>d(e),a,i)}catch(e){d(e)}})}function setMerchantFrameHeight(){vui.frame.zenswipe.getHeight()}function onResponsiveIframeCallback(e){$("#"+vui.contentContainer),void 0!==$("#"+vui.contentContainer).find("#iFrame_dvccframe")&&$("#"+vui.contentContainer).find("#iFrame_"+vui.contentContainer).height(e.VerifyAddressHeight)}function FailedCapture3DSecurePopup(){"undefined"==typeof swal?"undefined"!=typeof SetErrorDisplayMessageReport&&$.isFunction(SetErrorDisplayMessageReport)&&SetErrorDisplayMessageReport("0","Your authentication is failed. please try again!",""):swal({title:"Your authentication is failed. please try again!",text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},function(e){})}function createCapture3DSecurePopup(){if($("body").find("#frame3d_cardintent").length<=0){$("body").append("<div class='zenswipe-payment-frame' id='frame3d_cardintent'><div class='zenswipe-payment-container'><div  class='zenswipe-payment-inner'><div class='zen-close-btn'><img src='https://vagaro.azureedge.net/static-content/Images/popup-close-img.png' onclick='_cardIntendent.CloseCardIntendentInfo(false);' style='cursor: pointer;'></div><div id='divframe3d_cardintent' class='zenswipe-iframe-wrapper'></div > </div ></div ></div > ")}return!0}!function(e){e.fn.applyupdown=function(t,o){t?(this.parent().find(".arrow-up-down").find(".uparrow").bind(o,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings("input:text"),n=0;null!=o.attr("max")&&(n=o.attr("max"));var a=parseFloat(o.val());(0==n||a<n)&&o.val(a+1).change()}}),this.parent().find(".arrow-up-down").find(".downarrow").bind(o,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings("input:text");null!=o.attr("min")&&(max=o.attr("min"));var n=parseFloat(o.val());(0==max||n>max)&&o.val(n-1).change()}})):(this.parent().siblings(".arrow-up-down").find(".uparrow").bind("click",function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings(".upDownArow").find("input:text"),n=0;null!=o.attr("max")&&(n=o.attr("max"));var a=parseFloat(o.val());(0==n||a<n)&&o.val(a+1).change()}}),this.parent().siblings(".arrow-up-down").find(".downarrow").bind("click",function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings(".upDownArow").find("input:text");null!=o.attr("min")&&(max=o.attr("min"));var n=parseFloat(o.val());(0==max||n>max)&&o.val(n-1).change()}})),this.bind("keyup",function(t){var o=0,n=0,a=e(this);if(38==t.keyCode){null!=a.attr("max")&&(o=a.attr("max"));var i=parseFloat(a.val());(0==o||i<o)&&a.val(i+1).change()}else if(40==t.keyCode){null!=a.attr("min")&&(o=a.attr("min"));i=parseFloat(a.val());(0==o||i>o)&&a.val(i-1).change()}else{null!=a.attr("max")&&(o=parseFloat(a.attr("max"))),null!=a.attr("min")&&(n=parseFloat(a.attr("min")));i=parseFloat(a.val());0!=o&&i>o?a.val(o).change():0!=n&&i<n&&a.val(n).change()}});var n=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return this.bind(n,function(t){var o=0,a=e(this),i=e(this).attr("disabled");if(void 0===i||!1===i){if("mousewheel"==n){if(t.originalEvent.wheelDelta/120>0){null!=a.attr("max")&&(o=a.attr("max"));var r=parseFloat(a.val());(0==o||r<o)&&a.val(r+1).change()}else if(t.originalEvent.wheelDelta/120<0){null!=a.attr("min")&&(o=a.attr("min"));r=parseFloat(a.val());(0==o||r>o)&&a.val(r-1).change()}}else if(t.originalEvent.detail>0){null!=a.attr("max")&&(o=a.attr("max"));r=parseFloat(a.val());(0==o||r<o)&&a.val(r+1).change()}else if(t.originalEvent.detail<0){null!=a.attr("min")&&(o=a.attr("min"));r=parseFloat(a.val());(0==o||r>o)&&a.val(r-1).change()}t.preventDefault(),t.stopPropagation()}}),this}}(jQuery),Object.keys||(Object.keys=function(e){var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t}),jQuery,vagaro.commonUtils={},vagaro.commonUtils.isNullOrUndefined=function(e){return void 0===e||null==e},vagaro.commonUtils.isFunction=function(e){return"function"==typeof e},vagaro.commonUtils.CheckPhonenoCount=function(e,t){var o=e;return null!=o&&null!=o&&""!=o?"4"==t?9==o.length?0+e:10==o.length?e:null:e:1},radGridWrapper=function(e){var t=this;return t.gridEvents={onRowMouseOver:null,onRowMouseOut:null,onRowDropped:null,onRowClick:null,onGridCreated:null},t.clientId=e,t.getGrid=function(){return $find(t.clientId)},t.getDataItems=function(){return t.getMasterTableView().get_dataItems()},t.getDataItem=function(e){return t.getMasterTableView().get_dataItems()[e]},t.getHTMLElement=function(e){return t.getMasterTableView().get_dataItems()[e].get_element()},t.addCssClassToRow=function(e,o){var n=t.getHTMLElement(e);$(n).addClass(o)},t.removeCssClassToRow=function(e,o){var n=t.getHTMLElement(e);$(n).removeClass(o)},t.getDataKeyValue=function(e,o){return t.getDataItem(e).getDataKeyValue(o)},t.getDataKeyValueFromRow=function(e,t){return e.getDataKeyValue(t)},t.getMasterTableView=function(){return t.getGrid().get_masterTableView()},t.dataBind=function(e){var o=t.getMasterTableView();o.set_dataSource(e),o.dataBind()},t.getSelectedItems=function(){return t.getMasterTableView().get_selectedItems()},t.selectItemByIndex=function(e){t.getMasterTableView().selectItem(e)},t.getItemIndex=function(e){return parseInt(e.get_itemIndexHierarchical())},t.getCellValueByKey=function(e,o){return t.getMasterTableView().getCellByColumnUniqueName(e,o)},t.getCell=function(e,o){var n=t.getMasterTableView(),a=n.get_dataItems()[e];return n.getCellByColumnUniqueName(a,o)},t.destroy=function(){t.clientId=null,t.gridEvents.onGridCreated=null,t.gridEvents.onRowClick=null,t.gridEvents.onRowDropped=null,t.gridEvents.onRowMouseOut=null,t.gridEvents.onRowMouseOver=null},t.onRowMouseOver=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOver)&&t.gridEvents.onRowMouseOver(e,o)},t.onRowMouseOut=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOut)&&t.gridEvents.onRowMouseOut(e,o)},t.onRowDropped=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowDropped)&&t.gridEvents.onRowDropped(e,o)},t.onRowClick=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowClick)&&t.gridEvents.onRowClick(e,o)},t.onGridCreated=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onGridCreated)&&t.gridEvents.onGridCreated(e,o)},t.getAllBoundKeyValues=function(){return t.getGrid()._clientKeyValues},t.updateKeyValue=function(e,o,n){var a=t.getAllBoundKeyValues();vagaro.commonUtils.isNullOrUndefined(a)||0==a.length||(a[e][o]=n)},t.showHideItem=function(e,o){var n=t.getMasterTableView();o?n.showItem(e):n.hideItem(e)},t.showHideItems=function(e,o){if(!vagaro.commonUtils.isNullOrUndefined(e)&&0!=e.length)for(var n=t.getMasterTableView(),a=0;a<e.length;a++){var i=e[a];o?n.showItem(i):n.hideItem(i)}},t},function(e){_CustomTooltip={Msg:{FlagshipDisabledMsg:"Cannot edit fields synced from a flagship location."}},e(document).on("mouseenter",".custom-tooltip",function(t){var o=e(this),n=e(this).attr("data-tooltip");void 0!==e(this).data("angular-tooltip")&&null!=e(this).data("angular-tooltip")&&(n=e(this).data("angular-tooltip"));var a=e('<div class="v-tooltip-content tooltip top mllocation-tooltip-content" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner">'+n+"</div></div>");e(this).after(a),e(".v-tooltip-content").position({of:o,at:"center top",my:"center bottom",collision:"flipfit"}),e(".custom-tooltip-left").next(".v-tooltip-content").find(".tooltip-arrow").position({of:o,at:"center top",my:"center bottom",collision:"flipfit"})}),e(document).on("mouseleave",".custom-tooltip",function(t){e(".v-tooltip-content").remove()})}(jQuery),function(e){"use strict";e.fn.ZenSwipeCard=function(t,o){e.isFunction(t)&&(t=null);var n,a=e.extend({},e.fn.ZenSwipeCard.defaults,t),i=this;function r(t){if("https://portal.zenswipe.com"==t.origin||-1!=t.origin.indexOf("localhost")||-1!=t.origin.indexOf("localdev.com")||-1!=t.origin.indexOf("js.stripe.com")||-1!=t.origin.indexOf("10.10")||-1!=t.origin.indexOf("vagaro")||-1!==t.origin.indexOf("bookitall.com")||-1!==t.origin.indexOf("zenswipe.com")){var o=JSON.parse(t.data||t.originalEvent.data);switch(o.eventType){case"ECHO":a.loaded=!0;break;case"getSize":l(a.receivers.onGetSize,o);break;case"required":return l(a.receivers.onRequired,o),void l(a.receivers.onHideLoading,o);case"closeFrame":l(a.receivers.onClose,o),l(a.receivers.onHideLoading,o),vui.frame.destroy();break;case"getToken":!function(t){if(0==parseInt(a.afterCallBackHandle)&&null!=t.data&&1e3!=t.data.custom_code){e("#"+vui.contentContainer).hide(),null!=vui.loader&&vui.loader(!1);var o=t.data.Message;return null!=t.data.subResponseCode&&""!=t.data.subResponseCode&&(o+="<br />Error Code:"+t.data.paymentGateway+"-"+t.data.subResponseCode),void swal({type:"error",timer:6e3,showCancelButton:!1,html:!0,title:o,text:"",customClass:"sweet-alert-model"})}var n=function(e){return null!=e&&null!=e.data&&1e3==e.data.custom_code&&null!=e.data.data&&null!=e.data.data.ThreeDSRedirectURL&&""!=e.data.data.ThreeDSRedirectURL?e.data.data.ThreeDSRedirectURL:""}(t);if(""!=n&&1==function(){if(e("body").find("#frame3d_cardintent").length<=0){var t="<div class='zenswipe-payment-frame' id='frame3d_cardintent'><div class='zenswipe-payment-container'><div  class='zenswipe-payment-inner'><div class='zen-close-btn'><img src='https://vagaro.azureedge.net/static-content/Images/popup-close-img.png' onclick='_cardIntendent.CloseCardIntendentInfo(false);' style='cursor: pointer;'></div><div id='divframe3d_cardintent' class='zenswipe-iframe-wrapper'></div > </div ></div ></div > ";e("body").append(t)}return!0}()){var i={};0!=parseInt(a.afterCallBackHandle)&&1!=parseInt(a.afterCallBackHandle)&&""!=a.afterCallBackHandle&&null!=t.data&&1e3==t.data.custom_code&&"function"==typeof a.afterCallBackHandle&&""!=a.afterCallBackHandle?i.SuccessCallBack=a.afterCallBackHandle:i.SuccessCallBack=a.receivers.onGetToken,i.FailedCallback=s,i.PaymentIntentURL=n,i.CountryID=vui.ccCountryId,i.SuccessCallBackResponse=t,i.FailedCallBackResponse=vui.frmValue,_cardIntendent.LoadCardIntendentInfo(i)}else 0!=parseInt(a.afterCallBackHandle)&&1!=parseInt(a.afterCallBackHandle)&&""!=a.afterCallBackHandle&&null!=t.data&&1e3==t.data.custom_code&&"function"==typeof a.afterCallBackHandle&&""!=a.afterCallBackHandle?l(a.afterCallBackHandle,t):l(a.receivers.onGetToken,t);l(a.receivers.onHideLoading,t)}(o);case"hideLoading":l(a.receivers.onHideLoading,o);break;case"displayLoading":l(a.receivers.onDisplayLoading,o);break;case"applicationSuccess":l(a.receivers.onApplicationSuccess,o);break;case"error":l(a.receivers.onZSDown,o);break;case"sendMessage":l(a.receivers.onMessage,o);break;case"frameExpire":console.log(o);break;case"focusin":l(a.receivers.onFocusIn,o);break;case"focusout":l(a.receivers.onFocusOut,o);break;case"tabfocused":l(a.receivers.onTabfocused,o);break;case"setHeight":if(void 0!==o.id&&null!=o.id&&"forms"==o.id);else if(e(vui.frame).find("iframe").css("height",o.height+"px"),e(".settingmainwhitebg").css("min-height",parseInt(o.height+10)+"px"),void 0!==e("#hdnIsFromSignup").val()&&null!=e("#hdnIsFromSignup").val()&&e("#hdnIsFromSignup").val().length>0){var n=e("#hdnIsFromSignup").val();void 0!==n&&null!=n&&""!=n&&"1"==n&&e("iframe").length>0&&parseInt(o.height+10)<e("iframe").parent().height()&&e("iframe").css("height",e("iframe").parent().height())}break;case"iframe_Loaded":case"parent_screen":l(a.receivers.onMessage,o);break;case"RanderPager":l(a.receivers.onRanderPager,o);break;case"showHideSaveCancel":l(a.receivers.onShowHideSaveCancel,o);break;case"merchantsuccess":l(a.receivers.onMerchantSuccess,o);break;case"scrollToTop":l(a.receivers.onscrollToTop,o);break;case"DepositPopup":l(a.receivers.onDepositPopup,o);break;case"Tab1099detail":l(a.receivers.onTab1099detail,o);break;case"Showpdf":l(a.receivers.onShowpdf,o);break;case"datepickerShowHide":l(a.receivers.ondatepickerShowHide,o);break;case"ccvalid":l(a.receivers.onCcValid,o);break;case"setresponsiveheight":l(a.receivers.onResponsiveIframe,o);break;case"verifyaddresshideloading":l(a.receivers.onverifyaddresshideloading,o);break;case"transactiondetailforchargeback":l(a.receivers.onTransactionDetailForChargeback,o);break;case"customerforchargeback":l(a.receivers.onCustomerForChargeback,o);break;case"updatenotificationpanel":l(a.receivers.onUpdateNotificationPanel,o);break;case"updateacceptrefund":l(a.receivers.onUpdateAcceptRefund,o);break;case"showAcceptSubmitPopup":l(a.receivers.onShowAcceptSubmitPopup,o);break;case"setVMSPlanTitle":l(a.receivers.onSetVMSPlanTitle,o);break;case"finishLater":l(a.receivers.onFinishLater,o);break;case"backToHardwarePage":l(a.receivers.onBackToHardwarePage,o);break;case"MongoIdofVMSApplication":l(a.receivers.onMongoIdofVMSApplication,o);break;case"PlaidLinkTokenId":l(a.receivers.onPlaidLinkTokenId,o);break;case"VMSApplicationCompleteWebView":l(a.receivers.onVMSApplicationCompleteWebView,o);break;case"onBrowserBackEventSendtoVagaro":l(a.receivers.onBrowserBackEventSendtoVagaro,o);break;case"AddLogInAmplitude":l(a.receivers.AddLogInAmplitude,o);break;case"askVagaroForVMSStep":l(a.receivers.askVagaroForVMSStep,o);break;case"GetVagaroLink":l(a.receivers.GetVagaroLink,o);break;case"ShowHideBackArrow":l(a.receivers.ShowHideBackArrow,o);break;case"CardFrameExpire":l(a.receivers.CardFrameExpire,o);break;case"SaveBatchTimeResponse":l(a.receivers.onSaveBatchTimeResponse,o);break;case"SendbatchTime":l(a.receivers.onSendbatchTime,o);break;case"OpenChangeBatchPopup":l(a.receivers.OpenChangeBatchPopup,o);break;case"CyberSourceTrackingId":l(a.receivers.onCyberSourceTrackingId,o);break;case"GetConnecttoBusinessName":l(a.receivers.onBusinessLst,o);break;case"createMerchantSuccess":l(a.receivers.onCreateMerchantSuccess,o);break;case"ShowHideToolTip":l(a.receivers.onShowHideToolTip,o);break;case"GetVagaroVMSLogData":l(a.receivers.onGetVagaroVMSLogData,o);break;case"ZenwipetoVagaroInstantPayoutPostMessage":l(a.receivers.ZenwipetoVagaroInstantPayoutPostMessage,o);break;case"InstantPayoutMobilecallback":l(a.receivers.onInstantPayoutMobilecallback,o);break;case"DepositMerchantFilterCall":l(a.receivers.onDepositMerchantFilterCall,o);break;case"InstantPayoutMobilecallbackReturn":l(a.receivers.onInstantPayoutMobilecallbackReturn,o);break;case"InsPayAddLogInAmplitude":l(a.receivers.onInsPayAddLogInAmplitude,o)}}}return i.post=a.post,i.destroy=function(){window.removeEventListener("message",r,!1),null!=i&&(i.each(function(){e.data(this,""),e(this).attr("style","").removeData().hide().html("")}),i=null)},i.zenswipe={submit:function(){d('{"eventType": "submit"}')},submitwithaddress:function(e,t){if(1==parseInt(t)){if(null==e||""==e)return l(a.receivers.onRequired,"Zip code is required"),l(a.receivers.onHideLoading),!1}else e="";d('{"eventType": "submitwithaddress", "zip_code" : "'+e+'" , "country_id" : "'+t+'"}')},getSize:function(){d('{"eventType": "getSize"}')},addStyle:function(e){d('{"eventType": "addStyle", "style" : "'+e.replace(/"/g,"'")+'"}')},removeCardOption:function(e){d('{"eventType" : "removeCardOption", "option" : "'+e+'"}')},draftApplication:function(){d('{"eventType": "draftApplication"}')},submitApplication:function(){d('{"eventType": "submitApplication"}')},validate:function(){d('{"eventType": "validate"}')},addButtonText:function(e){d('{"eventType" : "addButtonText", "text" : "'+e+'"}')},checkWebView:function(e){d('{"eventType": "checkWebView","iswebview" : "'+e+'"}')},ignorePro:function(e){d('{"eventType": "ignorePro","ignorePro" : "'+e+'"}')},getHeight:function(){d('{"eventType": "getHeight"}')},setScreen:function(e,t,o,n,a){d(JSON.stringify({eventType:"setScreen",objScreen:""+e,topoffset:""+t,headeroffset:""+o,divgotit:""+n,divouterheight:""+a}))},hideSubmitButton:function(){d('{"eventType": "hideSubmitButton"}')},showSubmitButton:function(){d('{"eventType": "showSubmitButton"}')},hidePopup:function(){d('{"eventType": "hidePopup"}')},getReportdata:function(e,t,o,n){d('{"eventType": "getReportdata","isPreviousBtn" : "'+e+'","isRenderPaging" : "'+t+'","currentPageno" : "'+o+'","pageSize" : "'+n+'"}')},saveMerchantEditDetails:function(e,t){d('{"eventType": "saveMerchantEditDetails","IsCyberSourceEnable" : '+e+',"UserType":"'+t+'"}')},cancelBtnClick:function(){d('{"eventType": "cancelBtnClick"}')},exportReportData:function(){d('{"eventType": "exportReportData"}')},printReportData:function(){d('{"eventType": "printReportData"}')},OnexportDeposittransactions:function(e,t,o,n){d('{"eventType": "OnexportDeposittransactions","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+o+'","GateWayType" : "'+n+'"}')},OnprintDeposittransactions:function(e,t,o,n){d('{"eventType": "OnprintDeposittransactions","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+o+'","GateWayType" : "'+n+'"}')},ccvalidate:function(){d('{"eventType": "ccvalidate"}')},setCardAddressData:function(e){d('{"eventType": "setcardaddress", "address":'+e+"}")},ChargebackBackButtonCallback:function(){d('{"eventType": "ChargebackBackButtonCallback"}')},AcceptAsRefundCallback:function(){d('{"eventType": "AcceptAsRefundCallback"}')},SubmitrebuttalCallback:function(){d('{"eventType": "SubmitrebuttalCallback"}')},SubmitrebuttalSuccessCallback:function(){d('{"eventType": "SubmitrebuttalSuccessCallback"}')},DeleteFileCallback:function(e){d('{"eventType": "DeleteFileCallback", "srNo":'+e+"}")},addClassInIframeBody:function(){d('{"eventType": "addClassInIframeBody"}')},onMobileBackButton:function(){d('{"eventType": "onMobileBackButton"}')},plaidResponse:function(e){d('{"eventType": "plaidResponse", "jsonData":'+e+"}")},ScrollToTopFromVagaro:function(){d('{"eventType": "ScrollToTopFromVagaro"}')},HardwareProductSelected:function(e){d('{"eventType": "HardwareProductSelected", "IsHardwareSelected":'+e+"}"),console.log("HardwareProductSelected -Zenswipe.js :"+e)},onBrowserBackEvent:function(e){d('{"eventType": "onBrowserBackEvent", "Step":'+e+"}")},SetVagaroLink:function(e){d('{"eventType": "SetVagaroLink", "vagaroLink":"'+e+'"}')},BackFromBankingInfo:function(){d('{"eventType": "BackFromBankingInfo"}')},SaveChangeBatchTime:function(e,t,o){d('{"eventType": "SaveChangeBatchTime", "BatchTimes":"'+e+'","logedInUserName" : "'+t+'","logedInUserID" : "'+o+'"}')},GetConnectBusinessName:function(e){d('{"eventType": "GetConnectBusinessName", "BusinessName":"'+e+'"}')},setDarkModePreference:function(e){d('{"eventType": "setDarkModePreference", "DarkMode":'+e+"}")},onprintmerchanteachtransaction:function(){d('{"eventType": "onprintmerchanteachtransaction"}')},Onexportmerchanttransactions:function(){d('{"eventType": "Onexportmerchanttransactions"}')},OnPDFexportmerchanttransactions:function(e,t,o){d('{"eventType": "OnPDFexportmerchanttransactions","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+o+'"}')},OnPDFPopupexportmerchant:function(e,t,o,n){d('{"eventType": "PDFPopupexportmerchant","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+o+'","GateWayType" : "'+n+'"}')},exportPDFReportData:function(){d('{"eventType": "exportPDFReportData"}')},OnexportSummaryOREachTransactionData:function(){d('{"eventType": "OnexportSummaryOREachTransactionData"}')},SetVagaroVMSLogData:function(e){d('{"eventType": "SetVagaroVMSLogData", "jsonData":'+JSON.stringify(e)+"}")},VagarotoZenwipeInstantPayoutPostMessage:function(e){d('{"eventType": "VagarotoZenwipeInstantPayoutPostMessage", "jsonData":'+JSON.stringify(e)+"}")},NewMobileDevicecall:function(e){d('{"eventType": "NewMobileDevicecallCallback", "jsonData":'+JSON.stringify(e)+"}")}},window.addEventListener("message",r,!1),i.each(function(){e.data(this,"plugin")||function(){0==e("#btnzstemplate").length&&(e("<button />",{class:"flamingo-button",id:"btnzstemplate",style:"display:none"}).appendTo("body"),e("<button />",{class:"flamingo-button-hover",id:"btnzstemplatehover",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input",id:"inputzstemplate",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input error",id:"inputzstemplateerror",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input-focus",id:"inputzstemplatefocus",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input-radius",id:"inputzstemplateaddressradius",style:"display:none"}).appendTo("body"),e("<input />",{class:"input-txterror",id:"texterror",style:"display:none"}).appendTo("body"),e("<input />",{class:"web-caption-text",id:"webcaptiontext",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input-left-icon",id:"ccIcon",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-content",id:"modalcontent",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-title",id:"modaltitle",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-title2",id:"modaltitle2",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-footer",id:"modalfooter",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-secbtncolor",id:"modalfootersecbtn",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-secbtncolor-hover",id:"modalfootersecbtnhover",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-secbtncolor-active",id:"modalfootersecbtnactive",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-primarybtncolor",id:"modalfooterprimarybtn",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-primarybtncolor-hover",id:"modalfooterprimarybtnhover",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-primarybtncolor-active",id:"modalfooterprimarybtnactive",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton",id:"modalclosebutton",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton-hover",id:"modalclosebuttonhover",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton-active",id:"modalclosebuttonactive",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton-after",id:"modalclosebuttonafter",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-inputnocard",id:"modalinputnocard",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-addressinput",id:"modaladdressinputheight",style:"display:none"}).appendTo("body"),e("<input />",{class:"spantxterror",id:"spantxterror",style:"display:none"}).appendTo("body"),e("<input />",{class:"cciframe-countryselectoption",id:"cciframecountryselectoption",style:"display:none"}).appendTo("body"));!function(t){var o=e('<iframe class="b-iframe" '+a.iframeAttr+' id="iFrame_'+i.attr("id")+'" style="display:none;"></iframe>');if(1==t){var n=e("<div id='frame_apgProgress_"+i[0].id+"' style='display:none;'></div><div style='position: relative; ' id='divinnertop_up'><div id='ccfram_backgroundElement' style='position: fixed; left: 0px; top: 0px; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white; font-family: \"Lucida Grande\",\"Arial\"; font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div style='width: auto; height: auto; margin: 0 -7px;z-index:9999; position:relative' class='contentContainer'></div></div>");n.find(".contentContainer").append(o),n.appendTo(i)}else o.appendTo(i);i.data("iframe_id",o.attr("id")),o.height(a.height).width(a.width),o.attr("allow","camera *;"),o.attr("src",a.loadUrl),console.log(o.attr("id")),l(a.receivers.onOpening),o.load(function(o){var n="";n=vui._getStyle(),1==a.isfullwidth&&e(this).addClass("framefullwidth"),null!=vui.frame&&(vui.frame.zenswipe.addStyle(n),vui.frame.zenswipe.checkWebView(a.iswebview?"true":"false"),vui.frame.zenswipe.ignorePro(a.ignorePro?"true":"false")),window.setTimeout(function(t){if(a.loaded=!0,l(a.receivers.onOpened),i.find(".creditcard-width-temp").remove(),i.find("iframe").css("display","block"),vui.frame.zenswipe.getHeight(),1==t)!function(e,t,o){var n,a,i,r,d=document.getElementById(o);n=function(e,t){var o,n,a,i;o=function(){var e,t;void 0!==window.innerWidth?(e=window.innerWidth,t=window.innerHeight):void 0!==document.documentElement&&void 0!==document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):(e=document.getElementsByTagName("body")[0].clientWidth,t=document.getElementsByTagName("body")[0].clientHeight);return t+"|"+e}().split("|"),n=o[0],a=o[1],(i=(n-e)/2)<0&&(i=1);return i+"|"+(a-t)/2+"|"+n}(e,t).split("|"),a=n[0],i=n[1],n[2],d.style.left=i-20+"px",r=document.documentElement.scrollTop!=document.body.scrollTop?document.documentElement.scrollTop+document.body.scrollTop:document.body.scrollTop;r>0&&(a=parseInt(a)+r);a-=20,d.style.top=a+"px",d.style.position="absolute",d.width="auto",d.height="auto",d.style.zIndex=100001,d.style.display=""}(a.height,a.width,i.attr("id"));else{e("#"+vui.contentContainer).show();try{var o=e("#"+vui.contentContainer);if(o.length){var n=o.find("iframe");n.length>1&&n.each(function(){var t=e(this);"about:blank"===(t.attr("src")||"").toLowerCase()?(t.remove(),console.log("Removed about:blank iframe")):t.css("position","")})}else console.log("container not found")}catch(e){console.log(e)}}null!=vui.loader&&vui.loader(!1)}(t),1e3)})}(a.modal)}(),console.log("frame.each")});function d(t){try{null==document.getElementById(i.data("iframe_id"))&&null==document.getElementById(i.data("iframe_id"))||document.getElementById(i.data("iframe_id")).contentWindow.postMessage(t,function(){if(null==n){var t=/^(https*:\/\/[^\/]*).*$/g.exec(e("#"+i.data("iframe_id")).attr("src"));t&&(n=t[1])}return n}())}catch(e){console.log(e)}}function l(t,o){e.isFunction(t)&&t.call(this,o)}function s(t){"undefined"==typeof swal?"undefined"!=typeof SetErrorDisplayMessageReport&&e.isFunction(SetErrorDisplayMessageReport)&&(SetErrorDisplayMessageReport("0","Your authentication is failed. please try again!",""),vui._ajax(t.cardFrameType,t.contentContainer,t.modal,t.height,t.merchant_token_id,t.firstName,t.lastName,t.width,t.frameURL,t.afterCallBackHandleinner,t.isAjaxQue,t.device,t.ignorePro,t._isfullwidth,t._isnot_auth,t._track_data,t._business_country_id,t._isremove_address_style,t._isthreeds_required)):swal({title:"Your authentication is failed. please try again!",text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},function(o){try{1==window.location.href.includes("/merchants/settings/employee/profile")&&"undefined"!=typeof _employeeOwner&&void 0!==_employeeOwner.ResetCCSuccessCallback&&e.isFunction(_employeeOwner.ResetCCSuccessCallback)?_employeeOwner.ResetCCSuccessCallback(_employeeOwner.FrameType.ACHCC):1!=window.location.href.includes("/merchants/duepayment")&&1!=window.location.href.includes("/Users/DuePayment.aspx")||onRequiredCallback()}catch(e){}vui._ajax(t.cardFrameType,t.contentContainer,t.modal,t.height,t.merchant_token_id,t.firstName,t.lastName,t.width,t.frameURL,t.afterCallBackHandleinner,t.isAjaxQue,t.device,t.ignorePro,t._isfullwidth,t._isnot_auth,t._track_data,t._business_country_id,t._isremove_address_style,t._isthreeds_required)})}},e.fn.ZenSwipeCard.defaults={height:375,width:480,loaded:!1,appendTo:"body",iframeAttr:'scrolling="no" frameborder="0"',loadUrl:"",modal:!0,modalClose:!0,opacity:1,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:1000001,showLog:!0,afterCallBackHandle:0,iswebview:!1,ignorePro:!1,isfullwidth:!1,receivers:{onOpening:function(e){"function"==typeof onOpeningCallback&&onOpeningCallback(e)},onClose:function(e){"function"==typeof onCloseCallback&&onCloseCallback(e)},onOpened:function(e){"function"==typeof onOpenedCallback&&onOpenedCallback(e)},onError:function(e){"function"==typeof onErrorCallback&&onErrorCallback(e)},onGetToken:function(e){"function"==typeof onGetTokenCallback&&onGetTokenCallback(e)},onRequired:function(e){"function"==typeof onRequiredCallback&&onRequiredCallback(e)},onHideLoading:function(e){"function"==typeof onHideLoadingCallback&&onHideLoadingCallback(e)},onDisplayLoading:function(e){"function"==typeof onDisplayLoadingCallback&&onDisplayLoadingCallback(e)},onGetSize:function(e){"function"==typeof onGetSizeCallback&&onGetSizeCallback(e)},onApplicationSuccess:function(e){"function"==typeof onApplicationSuccessCallback&&onApplicationSuccessCallback(e)},onMessage:function(e){"function"==typeof onMessageCallback&&onMessageCallback(e)},onZSDown:function(e){"function"==typeof onZSDownCallback&&onZSDownCallback(e)},onFocusIn:function(e){"function"==typeof onFocusInCallback&&onFocusInCallback(e)},onFocusOut:function(e){"function"==typeof onFocusOutCallback&&onFocusOutCallback(e)},onTabfocused:function(e){"function"==typeof onTabfocusedCallback&&onTabfocusedCallback(e)},onRanderPager:function(e){"function"==typeof onRanderPagerCallback&&onRanderPagerCallback(e)},onShowHideSaveCancel:function(e){"function"==typeof onShowHideSaveCancelCallback&&onShowHideSaveCancelCallback(e)},onMerchantSuccess:function(e){"function"==typeof onMerchantSuccessCallback&&onMerchantSuccessCallback(e)},onscrollToTop:function(e){"function"==typeof onscrollToTopCallback&&onscrollToTopCallback(e)},onDepositPopup:function(e){"function"==typeof onDepositPopupCallback&&onDepositPopupCallback(e)},onTab1099detail:function(e){"function"==typeof onTab1099detailCallback&&onTab1099detailCallback(e)},onShowpdf:function(e){"function"==typeof onShowpdfCallback&&onShowpdfCallback(e)},ondatepickerShowHide:function(e){"function"==typeof onShowhideMerchantCallback&&onShowhideMerchantCallback(e)},onCcValid:function(e){"function"==typeof onCcValidCallback&&onCcValidCallback(e)},onResponsiveIframe:function(e){"function"==typeof onResponsiveIframeCallback&&onResponsiveIframeCallback(e)},onverifyaddresshideloading:function(e){"function"==typeof verifyaddresshideloadingCallback&&verifyaddresshideloadingCallback(e)},onTransactionDetailForChargeback:function(e){"function"==typeof onTransactionChargebackCallback&&onTransactionChargebackCallback(e)},onCustomerForChargeback:function(e){"function"==typeof onCustomerChargebackCallback&&onCustomerChargebackCallback(e)},onUpdateNotificationPanel:function(e){"function"==typeof onUpdateNotificationPanelCallback&&onUpdateNotificationPanelCallback(e)},onUpdateAcceptRefund:function(e){"function"==typeof onUpdateAcceptRefundCallback&&onUpdateAcceptRefundCallback(e)},onShowAcceptSubmitPopup:function(e){"function"==typeof onShowAcceptSubmitPopupCallback&&onShowAcceptSubmitPopupCallback(e)},onSetVMSPlanTitle:function(e){"function"==typeof onSetVMSPlanTitleCallback&&onSetVMSPlanTitleCallback(e)},onFinishLater:function(e){"function"==typeof onFinishLaterCallback&&onFinishLaterCallback(e)},onBackToHardwarePage:function(e){"function"==typeof onBackToHardwarePageCallback&&onBackToHardwarePageCallback(e)},onMongoIdofVMSApplication:function(e){"function"==typeof onMongoIdofVMSApplicationCallback&&onMongoIdofVMSApplicationCallback(e)},onPlaidLinkTokenId:function(e){"function"==typeof onPlaidLinkTokenIdCallback&&onPlaidLinkTokenIdCallback(e)},onVMSApplicationCompleteWebView:function(e){"function"==typeof onVMSApplicationCompleteWebViewCallback&&onVMSApplicationCompleteWebViewCallback(e)},onBrowserBackEventSendtoVagaro:function(e){"function"==typeof onBrowserBackEventSendtoVagaroCallback&&onBrowserBackEventSendtoVagaroCallback(e)},AddLogInAmplitude:function(e){"function"==typeof AddLogInAmplitudeCallback&&AddLogInAmplitudeCallback(e)},askVagaroForVMSStep:function(e){"function"==typeof askVagaroForVMSStepCallback&&askVagaroForVMSStepCallback(e)},GetVagaroLink:function(e){"function"==typeof onGetVagaroLinkCallback&&onGetVagaroLinkCallback(e)},ShowHideBackArrow:function(e){"function"==typeof onShowHideBackArrowCallback&&onShowHideBackArrowCallback(e)},CardFrameExpire:function(e){"function"==typeof OnCardFrameExpire&&OnCardFrameExpire(e)},onSaveBatchTimeResponse:function(e){"function"==typeof onSaveBatchTimeResponseCallback&&onSaveBatchTimeResponseCallback(e)},onSendbatchTime:function(e){"function"==typeof onSendbatchTimeCallback&&onSendbatchTimeCallback(e)},OpenChangeBatchPopup:function(e){"function"==typeof OpenChangeBatchPopupCallback&&OpenChangeBatchPopupCallback(e)},onCyberSourceTrackingId:function(e){"function"==typeof onCyberSourceTrackingIdCallback&&onCyberSourceTrackingIdCallback(e)},onBusinessLst:function(e){"function"==typeof onGetBusineeName&&onGetBusineeName(e)},onCreateMerchantSuccess:function(e){"function"==typeof onCreateMerchantSuccessCallback&&onCreateMerchantSuccessCallback(e)},onShowHideToolTip:function(e){"function"==typeof onShowHideToolTip&&onShowHideToolTip(e)},onGetVagaroVMSLogData:function(e){"function"==typeof GetVagaroVMSLogDataback&&GetVagaroVMSLogDataback(e)},ZenwipetoVagaroInstantPayoutPostMessage:function(e){"function"==typeof onZenwipetoVagaroInsPostMessageCallback&&onZenwipetoVagaroInsPostMessageCallback(e)},onInstantPayoutMobilecallback:function(e){"function"==typeof InstantPayoutMobilecallback&&InstantPayoutMobilecallback(e)},onDepositMerchantFilterCall:function(e){"function"==typeof OnDepositMerchantFilter&&OnDepositMerchantFilter(e)},onInstantPayoutMobilecallbackReturn:function(e){"function"==typeof InstantPayoutMobilecallbackReturn&&InstantPayoutMobilecallbackReturn(e)},onInsPayAddLogInAmplitude:function(e){"function"==typeof onInsPayAddLogInAmplitudeCallBack&&onInsPayAddLogInAmplitudeCallBack(e)}}}}(jQuery),window.vui={frameUrl:null,frame:null,contentContainer:null,modal:!1,height:375,width:480,loader:null,buttonBackColor:null!=typeof hdnButtonBackColor?$("#hdnButtonBackColor").val():"",buttonFontColor:null!=typeof ButtonFontColor?$("#hdnButtonFontColor").val():"",buttonHoverColor:null!=typeof ButtonHoverColor?$("#hdnButtonHoveColor").val():"",ccCountryId:1,stripeRadarSession:null,country:{USA:"1",UK:"2",Canada:"3",Australia:"4"},displayLoading:function(e){this.loader(!0)},hideLoading:function(e){this.loader(!1)},setHeight:function(e,t){$("#"+this._iframeid).height(e),$("#"+this._iframeid).width(t)},getSize:function(e,t){zenswipe.getSize()},getMerchantFrame:function(e,t,o,n,a){this.modal=!1,this.height=o,this.width=n,this.iswebview=a,this.contentContainer=e;var i={data:{url:t},custom_code:1e3};this._callCreditCardSuccess(i)},getTypeAndSwipeFrame:function(e,t,o,n,a,i){o=o||"",n=n||"",this._ajax(1,e,!0,t,a,o,n,"","",i,!0,"offline website",!1)},getSwipeFrame:function(e,t,o,n,a){this._ajax(4,e,!1,t,a,o,n,"","",void 0,!0,"offline website",!1)},getTypeFrame:function(e,t,o,n,a,i){this._ajax(2,e,!0,t,o,"","","","",n,!0,"offline website",!1,void 0,void 0,void 0,void 0,a,void 0,i)},getTypeWithoutButton:function(e,t,o,n,a,i,r,d,l,s,c=!0,u=!1){void 0!==o&&0==o&&("undefined"!=typeof totalDailyDealFeeOfAllCart_PMGCA&&totalDailyDealFeeOfAllCart_PMGCA>0||"undefined"!=typeof totalDailyDealFeeOfAllCart_ABS&&totalDailyDealFeeOfAllCart_ABS>0||"undefined"!=typeof isDepositOff&&!0===isDepositOff)&&_siteBuilderDetail.VeraAccountInfo&&_siteBuilderDetail.VeraAccountInfo.MerchantTokenID&&(o=_siteBuilderDetail.VeraAccountInfo.MerchantTokenID),t=t||160,this._ajax(7,e,!1,t,o,"","",n,a,i,!0,r,!1,d,void 0,s,l,void 0,void 0,c,void 0,void 0,void 0,u)},getTypeWithoutButtonAndAuthorization:function(e,t,o,n,a,i,r,d,l,s,c=!1){void 0!==o&&0==o&&("undefined"!=typeof totalDailyDealFeeOfAllCart_PMGCA&&totalDailyDealFeeOfAllCart_PMGCA>0||"undefined"!=typeof totalDailyDealFeeOfAllCart_ABS&&totalDailyDealFeeOfAllCart_ABS>0||"undefined"!=typeof isDepositOff&&!0===isDepositOff)&&_siteBuilderDetail.VeraAccountInfo&&_siteBuilderDetail.VeraAccountInfo.MerchantTokenID&&(o=_siteBuilderDetail.VeraAccountInfo.MerchantTokenID),t=t||160,this._ajax(11,e,!1,t,o,"","",n,a,i,!0,r,d,void 0,void 0,s,l,void 0,void 0,void 0,void 0,void 0,void 0,c)},getTypeFrameWithoutSaveButton:function(e,t,o,n,a,i,r=!0){var d=void 0!==a&&null!=a&&""!=a.toString().trim()?a:"offline website";this._ajax(0,e,!0,t,o,"","","","",n,!0,d,!1,void 0,void 0,void 0,void 0,i,void 0,r)},getTypeFrameWithAddress:function(e,t,o,n,a,i,r,d,l,s,c,u,h,p="",m=0,v="",f){this._ajax(10,e,!1,t,o,"","",n,a,i,!0,r,!1,d,l,s,c,void 0,u,h,p,m,v,f)},getTypeFrameWithAddress_NoAuth:function(e,t,o,n,a,i,r){this._ajax(12,e,!1,t,o,"","",n,a,i,!0,r,!1)},getTypeFrameForEditCard:function(e,t,o,n,a,i,r,d=!1){var l=void 0!==a&&null!=a&&""!=a.toString().trim()?a:"offline website";this._ajax(14,e,!0,t,o,"","","","",n,!0,l,!1,void 0,void 0,void 0,i,r,void 0,void 0,void 0,void 0,void 0,d)},getTypeFramewithCardOnFile:function(e,t,o,n,a,i,r,d,l,s=!0){t=t||160,this._ajax(9,e,!1,t,o,"","",n,a,i,!0,r,!1,d,void 0,void 0,l,void 0,void 0,s)},getTypeFrameForCCAddress:function(e,t,o,n,a,i,r,d,l,s=!0,c="",u=!1){t=t||160,this._ajax(16,e,!1,t,o,"","",n,a,i,!0,r,!1,d,void 0,void 0,l,void 0,void 0,s,c,0,"",u)},_ajax:function(e,t,o,n,a,i,r,d,l,s,c,u,h,p,m,v,f,g,C,y=!0,k="",w=0,b="",S=!1){null!=vui.frame&&vui.frame.destroy();var _={};if(_.cardFrameType=e,_.contentContainer=t,_.modal=o,_.height=n,_.merchant_token_id=a,_.firstName=i,_.lastName=r,_.width=d,_.frameURL=l,_.afterCallBackHandleinner=s,_.isAjaxQue=c,_.device=u,_.ignorePro=h,_._isfullwidth=p,_._isnot_auth=m,_._track_data=v,_._business_country_id=f,_._isremove_address_style=g,_._isthreeds_required=C,this.frmValue=_,null!=this.loader&&this.loader(!0),this.ignorePro=h,this.contentContainer=t,this.modal=o,this.height=null!=n&&""!=n?n:this.height,this.width=null!=d&&""!=d?d:this.width,this.afterCallBackHandle=null!=s||""!=s?s:this.afterCallBackHandle,this.isfullwidth=p,this.isnotauth=m,this.trackdata=v,0==this.modal){var x=GetHTMLDummyFrame(e),P=vui._getStyle();""!=P&&(x+="<style>"+P+"</style>"),$("#"+this.contentContainer).append(x),$("#"+this.contentContainer).show()}if(null==l||null==l||""==l){var D={},T={};D.card_frame_type=null==e?1:e,D.first_name=i,D.last_name=r,D.merchant_token_id=a,D.device=u,D.isnot_auth=m,D.track_data=v,D.business_country_id=f,D.isremove_address_style=g,D.isccaddressmandatory=y,D.card_token=k,D.business_id=w,D.TrackingId=b,D.IsDisableDarkMode=S;try{D.isthreeds_required=!0,D.threeds_returnurl=window.location.origin+"/CardIntendentSuccess.aspx",window.location.href.includes("/merchants/calendar")&&(D.threeds_returnurl+="?isFromCalendar=1")}catch(e){D.isthreeds_required=!1,D.threeds_returnurl=window.location.origin+"/CardIntendentSuccess.aspx"}T.card=D;var I=new vagaro.ajax;I.datamodel.Token="GetCreditCardIFrame",I.datamodel.callback=this._callCreditCardSuccess,I.datamodel.data=T,I.datamodel.Error=function(e){this.loader(!1)},c?I.PostQue():I.Post()}else this._callDirectUrl(l,o,n,d,s)},_callCreditCardSuccess:function(e){null!=e&&1e3==e.custom_code?(vui.modal,null==e.data.url||null==e.data.url||"undefined"==e.data.url?"function"==typeof onGetSwipeCallback&&onGetSwipeCallback(e):vui.frame=$("#"+vui.contentContainer).ZenSwipeCard({loadUrl:e.data.url,modal:vui.modal,height:null!=e.data.iframe_height&&e.data.iframe_height>0?e.data.iframe_height:vui.height,width:vui.width,afterCallBackHandle:vui.afterCallBackHandle,iswebview:vui.iswebview,isfullwidth:vui.isfullwidth})):(null!=vui.loader&&vui.loader(!1),onZSDownCallback(e))},_callDirectUrl:function(e,t,o,n,a){vui.frame=$("#"+vui.contentContainer).ZenSwipeCard({loadUrl:e,modal:t,height:o,width:n,afterCallBackHandle:a})},_getStyle:function(){var e="";if(null!=typeof $("#hdnBuilderFrameCSS")&&""!=$("#hdnBuilderFrameCSS").val()&&null!=$("#hdnBuilderFrameCSS").val())return $("#hdnBuilderFrameCSS").val();var t=$("#ccIcon").css("width"),o=$("#ccIcon").css("padding-left");if("undefined"!=typeof backGroundColor&&""!=backGroundColor&&("undefined"!=typeof isWidget&&""!=isWidget&&"true"==isWidget?e+=".popupwidth542 .modal-body { background-color:#FFFFFF}":e+=".popupwidth542 .modal-body { background-color:"+backGroundColor+"}"),""!=$("#hdnButtonBackColor").val()&&null!=$("#hdnButtonBackColor").val()&&""!=$("#hdnButtonFontColor").val()&&null!=$("#hdnButtonFontColor").val()&&(e+=".btn-primary  { background-color: "+$("#hdnButtonBackColor").val()+"!important;border-color:"+$("#hdnButtonBackColor").val()+"!important; color : "+$("#hdnButtonFontColor").val()+"!important;}",e+=".btn-primary:hover { background-color: "+$("#hdnButtonHoveColor").val()+"!important;border-color:"+$("#hdnButtonHoveColor").val()+"!important;}",e+=".btn-default  { background-color!important:  #666666 }"),e+=".framefullwidth { width:100%!important;}",e+=".popupwidth542.zs-fullwithcc { max-width:100%!important;}",null!=$("#hdnAddBusinessDummyToken").val()&&""!=$("#hdnAddBusinessDummyToken").val()&&(e+=".addbusiness-right-col { min-height:738px;}",e+=".cc-detail.cc-lifull-width li { margin-bottom:38px;}",e+=".list-inline { margin-left:-5px; margin-right: 0px;}",e+=".modal-content { background:transparent;}",e+=".RadCaptcha img { margin-bottom:14px; margin-top:10px;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px; background-color : #fff;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px;}",e+=".cc-detail.cc-lifull-width li:nth-of-type(4n),.cc-detail.cc-lifull-width li:nth-of-type(5n),.cc-detail.cc-lifull-width li:nth-of-type(6n){margin-bottom:20px}"),window.location.href.includes("/signup")||window.location.href.includes("/myaccount/paymentmethods")&&"undefined"!=typeof _shopdetail&&null!=_shopdetail&&"false"==_shopdetail.isCustomWebsite&&"false"==_shopdetail.isWidget&&"false"==_shopdetail.isFacebook||(window.location.href.includes("/shopping-bag")||window.location.href.includes("/book-now"))&&"undefined"!=typeof _siteBuilderDetail&&null!=_siteBuilderDetail&&void 0!==_siteBuilderDetail.UserLocationInfo&&null!=_siteBuilderDetail.UserLocationInfo&&void 0!==_siteBuilderDetail.UserLocationInfo.objUserCustomData&&null!=_siteBuilderDetail.UserLocationInfo.objUserCustomData&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsCheckInApp&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsCustomWebsite&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsFaceBook&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsPromotionUI&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsWidget)try{var n=$("#btnzstemplate").css("background-color"),a=($("#btnzstemplate").css("color"),$("#btnzstemplate").css("border-radius"),$("#btnzstemplate").css("padding"),$("#btnzstemplate").css("border"),$("#inputzstemplate").css("background-color")),i=$("#inputzstemplateerror").css("background-color"),r=$("#inputzstemplate").css("color"),d=$("#inputzstemplate").css("border-radius"),l=$("#inputzstemplate").css("font-size"),s=$("#inputzstemplate").css("border"),c=$("#inputzstemplateerror").css("border-color"),u=$("#inputzstemplatefocus").css("border-color"),h=$("#inputzstemplate").css("line-height"),p=$("#inputzstemplate").css("text-align"),m=$("#inputzstemplate").css("padding"),v=$("#inputzstemplate").css("height"),f=$("#inputzstemplateaddressradius").css("border-top-left-radius"),g=$("#inputzstemplateaddressradius").css("border-bottom-left-radius"),C=$("#texterror").css("color"),y=$("#texterror").css("font-size"),k=$("#texterror").css("line-height"),w=$("#webcaptiontext").css("font-size"),b=$("#webcaptiontext").css("line-height"),S=$("#webcaptiontext").css("color"),_=$("#modalcontent").css("border-radius"),x=$("#modaltitle").css("color"),P=$("#modaltitle").css("font-size"),D=$("#modaltitle").css("line-height"),T=$("#modaltitle").css("font-weight"),I=$("#modaltitle2").css("color"),F=$("#modaltitle2").css("font-size"),A=$("#modalfooter").css("background-color"),E=$("#modalfootersecbtn").css("background-color"),O=$("#modalfootersecbtn").css("border-color"),M=$("#modalfootersecbtn").css("color"),N=$("#modalfootersecbtn").css("border-radius"),L=$("#modalfootersecbtn").css("height"),V=$("#modalfootersecbtn").css("font-size"),B=$("#modalfootersecbtnhover").css("border-color"),R=$("#modalfootersecbtnhover").css("background-color"),U=$("#modalfootersecbtnactive").css("background-color"),W=$("#modalfooterprimarybtn").css("background-color"),j=$("#modalfooterprimarybtn").css("border-color"),H=$("#modalfooterprimarybtn").css("color"),G=$("#modalfooterprimarybtn").css("border-radius"),z=$("#modalfooterprimarybtn").css("height"),q=$("#modalfooterprimarybtn").css("font-size"),Y=$("#modalfooterprimarybtnhover").css("border-color"),Z=$("#modalfooterprimarybtnhover").css("background-color"),K=$("#modalfooterprimarybtnactive").css("background-color"),J=$("#modalclosebutton").css("background-color"),X=$("#modalclosebutton").css("color"),Q=$("#modalclosebutton").css("font-size"),ee=$("#modalclosebutton").css("height"),te=$("#modalclosebutton").css("width"),oe=$("#modalclosebutton").css("border-radius"),ne=$("#modalclosebuttonhover").css("background-color"),ae=$("#modalclosebuttonactive").css("background-color"),ie=$("#modalclosebuttonafter").css("color"),re=$("#modalclosebuttonafter").css("font-size"),de=$("#modalclosebuttonafter").css("top"),le=$("#modalclosebuttonafter").css("right"),se=$("#modalclosebuttonafter").css("background-color"),ce=$("#modalclosebuttonafter").css("text-shadow"),ue=$("#modalinputnocard").css("top"),he=$("#modaladdressinputheight").css("height"),pe=$("#modaladdressinputheight").css("line-height"),me=$("#modaladdressinputheight").css("border-color"),ve=$("#spantxterror").css("margin-bottom"),fe=$("#cciframecountryselectoption").css("bottom");e+=".btn-primary  { background-color: "+n+"}",e+=".form-control { background-color: "+a+"!important ;color: "+r+"!important;border-radius: "+d+"!important; font-size: "+l+"!important;border: "+s+"!important;line-height: "+h+"!important;text-align: "+p+"!important;padding: "+m+"!important;height: "+v+"!important;}",e+=".form-control.error { background-color: "+i+"!important ;border-color: "+c+"!important;}",e+="span.error { color: "+C+"!important ;font-size: "+y+"!important;line-height: "+k+"!important;}",e+="span.spanerror { color: "+C+"!important ;font-size: "+y+"!important;line-height: "+k+"!important;margin-bottom: "+ve+"!important;}",e+=".secured-by p { color: "+S+"!important ;font-size: "+w+"!important;line-height: "+b+"!important;}",e+=" #card-image:before {width: "+t+"!important; padding-left:"+o+"!important;}",e+=" .modal-content {border-radius: "+_+"!important;}",e+=" .modal-header h1 {color: "+x+"!important; font-size:"+P+"!important; line-height:"+D+"!important; font-weight:"+T+"!important;}",e+=" .modal-body h4.modal-title {color: "+I+"!important; font-size:"+F+"!important;}",e+=" .modal .modal-footer {background-color: "+A+"!important;}",e+=" .modal .btn.btn-default {background-color: "+E+"!important; border-color: "+O+"!important; color: "+M+"!important; border-radius: "+N+"!important; height: "+L+"!important; font-size: "+V+"!important;}",e+=" .modal .btn.btn-default:hover {background-color: "+R+"!important; border-color: "+B+"!important;}",e+=" .modal .btn.btn-default:active {background-color: "+U+"!important;}",e+=" .modal .btn.btn-primary {background-color: "+W+"!important; border-color: "+j+"!important; color: "+H+"!important; border-radius: "+G+"!important; height: "+z+"!important;font-size: "+q+"!important;}",e+=" .modal .btn.btn-primary:hover {background-color: "+Z+"!important; border-color: "+Y+"!important;}",e+=" .modal .btn.btn-primary:active {background-color: "+K+"!important;}",e+=" .modal .modal-content .modal-header .close {background-color: "+J+"!important; color: "+X+"!important; font-size: "+Q+"!important; height: "+ee+"!important; width: "+te+"!important; border-radius: "+oe+"!important;}",e+=" .modal .modal-content .modal-header .close:hover {background-color: "+ne+"!important;}",e+=" .modal .modal-content .modal-header .close:active {background-color: "+ae+"!important;}",e+=" .modal .modal-content .modal-header .close::after {color: "+ie+"!important; font-size: "+re+"!important; top: "+de+"!important; right: "+le+"!important; background: "+se+"!important; text-shadow: "+ce+"!important;}",e+=" #card-image.no-card:before {top: "+ue+"!important;}",e+=" .cciframe-addresswithcountry .countrydropdown {height: "+he+"!important; line-height: "+pe+"!important; border-color: "+me+"!important;  }",e+=" .cciframe-addresswithcountry ul li{color: "+r+"!important;}",e+=" .cc-detail-address-input .select2-container.form-control{ color: "+r+"!important; font-size: "+l+"!important;border: "+s+"!important;line-height: "+h+"!important;text-align: "+p+"!important;padding: "+m+"!important; height: "+v+"!important; border-top-left-radius: "+f+"!important; border-bottom-left-radius: "+g+"!important;}",e+=".cc-detail-address-input .select2-container.select2-container-active { border-color:"+u+"!important;}",e+=".cc-detail-address-input .select2-container.form-control.input-validation-error { background-color: "+i+"!important ;border-color: "+c+"!important;}",e+=".cciframe-countryselectoption { bottom: "+fe+"!important;}",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer button.btn.btn-primary { background-color: "+W+"!important; border - color: "+j+"!important; color: "+H+"!important; border - radius: "+G+"!important; height: "+z+"!important; font - size: "+q+"!important; } ",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer button.btn.btn-primary:hover {background-color: "+Z+"!important; border-color: "+Y+"!important;}",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer button.btn.btn-primary:active {background-color: "+K+"!important;}",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer .btn.btn-default:hover {background-color: "+R+"!important; border-color: "+B+"!important;}",e+=".form-control:focus { border-color:"+u+"!important;}",e+=".select2-focused { border-color:"+u+"!important;}"}catch(e){}return e},_getHTML:function(e){return 10==e||12==e?'<html><head><title></title> <style> ::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important} .creditcard-width-temp { padding: 0px; margin: 0px; list-style: none; width: auto; float: left; } .marginleft175 { margin-left: 170px; } .creditcard-width-temp li input[type="text"], .creditcard-width-temp li input[type="password"] { width: 100%; } .creditcard-width-temp * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .creditcard-width-temp li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; float: left; position: relative; } .creditcard-width-temp li input.inputbox-type1 { font-size: 15px; color: #545554 !important; height: 38px; line-height: 1.42857; padding: 6px 8px; border: 1px solid #959494; border-radius: 4px; } .creditcard-width-temp li.col-width50per { width: 50%; } .creditcard-width-temp li.col-width40per { width: 40%; } .creditcard-width-temp li.col-width20per { width: 20%; } .creditcard-width-temp li.input-cardtype input { padding-left: 50px !important;  } .marginbottom15.busProfile dd { margin-bottom: 15px !important; } .creditcard-width-temp li.input-cardtype [type="text"][disabled] { padding-left: 50px !important; /*background:transparent!important;*/ } #cardimage1:before { content: ""; position: absolute; background-position: 0 0; background-repeat: no-repeat; background-size: 32px auto; left: 13px; top: 9px; z-index: 5; width: 32px; height: 25px; } #cardimage1.no-card:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png); } #cardimage1.visa:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png); } #cardimage1.mastercard:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png); } #cardimage1.americanexpress:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png); } #cardimage1.discover:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png); } .creditcard-label-text { float: left; width: 175px; margin-top: 25px; } .creditcard-label-text ul { padding: 0px; margin: 0px; list-style: none; } .creditcard-label-text ul li label { font-size: 15px; margin-right: 0px; padding-top: 11px; } .creditcard-label-text li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; min-height: 38px; float: left; position: relative; }  </style></head><body class="modal-body"> <ul class="creditcard-width-temp list-inline cc-detail cc-lifull-width clearfix"> <li id="cardimage1" class="input-cardtype no-card"> <input type="text" id="temptxtCCNo" class="inputbox-type1 form-control"  placeholder="Card Number"  /> </li> <li class="col-width50per "> <input type="text" id="temptxtMonthYear" class="inputbox-type1 form-control" placeholder="MM/YY"/> </li> <li class="col-width50per "> <input type="password" id="temptxtSecurityCode" class="inputbox-type1 form-control" placeholder="CVV" /> </li> <li class="col-width40per "> <input type="text" id="temptxtFirstName" class="inputbox-type1 form-control" placeholder="First Name"/> </li> <li class="col-width20per "> <input type="text" id="temptxtMiddleName"  placeholder="MI" class="inputbox-type1 form-control" /> </li> <li class="col-width40per"> <input type="text" id="temptxtLastName" class="inputbox-type1 form-control" placeholder="Last Name" /> </li> </ul></body></html>':'<html><head><title></title> <style> ::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important} .creditcard-width-temp { padding: 0px; margin: 0px; list-style: none; width: auto; float: left; } .marginleft175 { margin-left: 170px; } .creditcard-width-temp li input[type="text"], .creditcard-width-temp li input[type="password"] { width: 100%; } .creditcard-width-temp * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .creditcard-width-temp li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; float: left; position: relative; } .creditcard-width-temp li input.inputbox-type1 { font-size: 15px; color: #545554 !important; height: 38px; line-height: 1.42857; padding: 6px 8px; border: 1px solid #959494; border-radius: 4px; } .creditcard-width-temp li.col-width50per { width: 50%; } .creditcard-width-temp li.col-width40per { width: 40%; } .creditcard-width-temp li.col-width20per { width: 20%; } .creditcard-width-temp li.input-cardtype input { padding-left: 50px !important;  } .marginbottom15.busProfile dd { margin-bottom: 15px !important; } .creditcard-width-temp li.input-cardtype [type="text"][disabled] { padding-left: 50px !important; /*background:transparent!important;*/ } #cardimage1:before { content: ""; position: absolute; background-position: 0 0; background-repeat: no-repeat; background-size: 32px auto; left: 13px; top: 9px; z-index: 5; width: 32px; height: 25px; } #cardimage1.no-card:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png); } #cardimage1.visa:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png); } #cardimage1.mastercard:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png); } #cardimage1.americanexpress:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png); } #cardimage1.discover:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png); } .creditcard-label-text { float: left; width: 175px; margin-top: 25px; } .creditcard-label-text ul { padding: 0px; margin: 0px; list-style: none; } .creditcard-label-text ul li label { font-size: 15px; margin-right: 0px; padding-top: 11px; } .creditcard-label-text li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; min-height: 38px; float: left; position: relative; }  </style></head><body class="modal-body"> <ul class="creditcard-width-temp list-inline cc-detail cc-lifull-width clearfix"> <li id="cardimage1" class="input-cardtype no-card"> <input type="text" id="temptxtCCNo" class="inputbox-type1 form-control"  placeholder="Card Number"  /> </li> <li class="col-width40per "> <input type="text" id="temptxtMonthYear" class="inputbox-type1 form-control" placeholder="MM/YY"/> </li> <li class="col-width20per "> <input type="password" id="temptxtSecurityCode" class="inputbox-type1 form-control" placeholder="CVV" /> </li><li class="col-width40per "> <input type="text" id="temptxtZipCode" class="inputbox-type1 form-control" placeholder="Billing Zip/Postal code" /> </li> <li class="col-width40per "> <input type="text" id="temptxtFirstName" class="inputbox-type1 form-control" placeholder="First Name"/> </li> <li class="col-width20per "> <input type="text" id="temptxtMiddleName"  placeholder="MI" class="inputbox-type1 form-control" /> </li> <li class="col-width40per"> <input type="text" id="temptxtLastName" class="inputbox-type1 form-control" placeholder="Last Name" /> </li> </ul></body></html>'},getMerchantReport:function(e,t,o,n,a){this.modal=!1,this.height=o,this.width=n,this.iswebview=a,this.contentContainer=e;var i={data:{url:t},custom_code:1e3};this._callCreditCardSuccess(i)},generateStripeRadarSession:function(e,t,o,n){try{if(parseInt(e)>1){if("object"==typeof localStorage&&void 0!==localStorage.StripeStorageObject){var a=JSON.parse(localStorage.StripeStorageObject);if(null!=a&&void 0!==a){var i=new Date(a.CreateDate),r=((new Date).getTime()-i.getTime())/1e3;if(a.ipAddress==o&&r<=14400)return void(vui.stripeRadarSession=a.stripeRadarSessionId)}}void 0!==n&&setTimeout(function(){Stripe(n,{canCreateRadarSession:!0}).createRadarSession().then(function(e){if(e.error)vui.stripeRadarSession="striperadarerror:"+e.error,console.error(e.error);else if(vui.stripeRadarSession=e.radarSession.id,"object"==typeof localStorage){var t={};t.CreateDate=new Date,t.ipAddress=o,t.stripeRadarSessionId=e.radarSession.id,localStorage.removeItem("StripeStorageObject"),localStorage.StripeStorageObject=JSON.stringify(t)}})},3e3)}}catch(e){}}},$(window).on("resize",function(){null!=vui.frame&&vui.frame.zenswipe.getSize()}),GetHTMLDummyFrame=function(e){return 0==(void 0!==$("#hdnIsNewCCIframe").val()&&""!=$("#hdnIsNewCCIframe").val()&&JSON.parse($("#hdnIsNewCCIframe").val()))?'<html> <head> <title></title> <style>::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important}.creditcard-width-temp{padding:0;margin:0;list-style:none;width:auto;float:left}.marginleft175{margin-left:170px}.creditcard-width-temp li input[type=password],.creditcard-width-temp li input[type=text]{width:100%}.creditcard-width-temp *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.creditcard-width-temp li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;float:left;position:relative}.creditcard-width-temp li input.inputbox-type1{font-size:15px;color:#545554!important;height:38px;line-height:1.42857;padding:6px 8px;border:1px solid #959494;border-radius:4px;width:100%}.creditcard-width-temp li.col-width50per{width:50%}.creditcard-width-temp li.col-width40per{width:40%}.creditcard-width-temp li.col-width20per{width:20%}.creditcard-width-temp li.input-cardtype input{padding-left:50px!important}.marginbottom15.busProfile dd{margin-bottom:15px!important}.creditcard-width-temp li.input-cardtype [type=text][disabled]{padding-left:50px!important}.creditcard-width-temp #cardimage1:before{content:"";position:absolute;background-position:0 0;background-repeat:no-repeat;background-size:32px auto;left:13px;top:9px;z-index:5;width:32px;height:25px}.creditcard-width-temp #cardimage1.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png)}.creditcard-width-temp #cardimage1.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #cardimage1.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}.creditcard-width-temp #cardimage1.americanexpress:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}.creditcard-width-temp #cardimage1.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.creditcard-width-temp .creditcard-label-text{float:left;width:175px;margin-top:25px}.creditcard-width-temp .creditcard-label-text ul{padding:0;margin:0;list-style:none}.creditcard-width-temp .creditcard-label-text ul li label{font-size:15px;margin-right:0;padding-top:11px}.creditcard-width-temp .creditcard-label-text li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;min-height:38px;float:left;position:relative}.creditcard-width-temp.marchent-signup-popup .modal-header{padding:0}.creditcard-width-temp.marchent-signup-popup .modal-header h4.modal-title{padding:0 0 8px 0;margin:0;color:#333;font-weight:500}.creditcard-width-temp .cc-detail.cc-lifull-width li.cc-detail-input{width:33.333333%;margin:0}.creditcard-width-temp ul.list-inline{margin:0 -5px}.creditcard-width-temp ul.list-inline li>label{clear:both;padding-top:16px;font-size:18px;line-height:24px;display:block;color:#000;padding-bottom:8px}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .cc-detail-address-input{padding-left:65px;box-sizing:border-box}.creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{padding-right:6px;padding-left:6px}.select2-container-multi .select2-choices{min-height:22px;width:100%}.select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap;width:100%}.creditcard-width-temp .secured-by{display:block;text-align:right;float:right;margin-top:16px}.creditcard-width-temp .secured-by p{margin:0;font-size:12px;line-height:16px;color:#333;font-weight:400}.creditcard-width-temp .secured-by p span{padding-right:5px;display:inline-block}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp ul.list-inline li>label{margin:0}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .addresswithcountry .countrydropdown{background-position:59px center!important;background-size:25px auto!important;background-repeat:no-repeat;border:1px solid #ccc!important;border-radius:2px 0 0 2px;float:left;position:absolute;left:0;top:0;width:74px;margin:0;cursor:pointer;line-height:40px}.creditcard-width-temp .addresswithcountry .countryselectoption{background-color:#fff;position:absolute;left:0;top:39px;list-style:none;margin:0;padding:0;border:1px solid #ccc;width:213px;border-radius:2px;z-index:-2;border-top-right-radius:0;border-top-left-radius:0}.creditcard-width-temp .form-control{background-color:#fff;background-repeat:no-repeat;border:1px solid #ccc;border-radius:2px;box-shadow:none;color:#333;display:block;font-size:15px;height:40px;line-height:1.42857;padding:6px 12px;width:100%;font-weight:400}body .select2-container-multi .select2-choices .select2-search-field input{font-size:15px;line-height:26px}.select2-container-multi .select2-choices .select2-search-field input{color:#545554}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp #card-image.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/Icon.png)}.creditcard-width-temp #card-image.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #card-image:before{content:"";position:absolute;background-position:left center;background-repeat:no-repeat;background-size:21px auto;left:13px;top:13px;z-index:5;width:21px;height:18px}.creditcard-width-temp .form-control.inputtransparent{padding-left:30px!important}.creditcard-width-temp ul.list-inline li input.form-control{border-color:#cdcdcd;padding-top:10px;padding-bottom:6px;line-height:22px}.marchent-signup-popup ul li{margin-bottom:8px;float:none}.marchent-signup-popup ul{display:flex;flex-wrap:wrap}.marchent-signup-popup ul li label{font-weight:500}#card-image.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}#card-image.amex:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}#card-image.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.addresswithcountry .countrydropdown .selectedcountry.us-f:before{content:""!important}.creditcard-width-temp .modal-body{padding:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.aus-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.canada-f,.creditcard-width-temp .addresswithcountry.countryselectoption li.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.uk-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.us-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry{background-repeat:no-repeat;background-position:8px center;background-size:30px 22px;height:100%;width:100%}.creditcard-width-temp .addresswithcountry .countryselectoption li{background-repeat:no-repeat;background-size:30px 22px;background-position:8px center;font-size:16px;line-height:36px;padding-left:50px;cursor:pointer;background-repeat:no-repeat}.creditcard-width-temp .addresswithcountry .countrydropdown:after{width:25px}.creditcard-width-temp .addresswithcountry .countryselectoption{bottom:39px;top:inherit}.marchent-signup-popup.creditcard-width-temp{padding-bottom:90px;z-index:0;position:relative}.mobPro-htmldesign .ffsharinCCgonline .w-tabs.fullwidth-element .w-form .payment-iframe .addresswithcountry{margin:0}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{height:auto;padding-top:10px;padding-bottom:10px;line-height:18px;border-radius:3px}.creditcard-width-temp #card-image:before{top:11px!important}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control.inputtransparent{padding-left:35px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit}.creditcard-width-temp .secured-by.creditcard-width-temp img{top:3px;position:relative}@media screen and (max-width:767px){#dvccframeforfreecard .addresswithcountry .cc-detail-address-input input.inputbox-type1.form-control.preventcopy {height: 48px;}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{padding-top:14px;padding-bottom:14px;font-size:16px}.creditcard-width-temp #card-image:before{top:15px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countrydropdown{height:48px}.mobPro-htmldesign .creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{height:48px}body.mobPro-htmldesign .creditcard-width-temp .select2-container-multi .select2-choices .select2-search-field input{font-size:16px;line-height:36px}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit;bottom:47px}.creditcard-width-temp .addresswithcountry .countrydropdown:after{top:5px}}#dibBusinessSteps .secured-by.creditcard-width-temp img{top:-2px!important}#ctl00_ctl00_VagaroContentPlaceHolder_nestedPlaceHolder_divPaymentInfo .creditcard-width-temp{width:100%}#Book247CCDetails.payment-iframe{margin:0}#Book247CCAddress.payment-iframe{margin:0}#dvccframeforfreecard .modal-header{margin-bottom:-15px;margin-left:5px}#dvccframeforfreecard .modal-body{margin-left:-15px}.late-payment-parent .mon-pay-info-right .marchent-signup-popup.creditcard-width-temp{padding:0 9px;box-sizing:border-box}.late-payment-parent .creditcard-width-temp .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:73px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 73px)}.late-payment-parent .creditcard-width-temp p{padding:0 5px}.late-payment-parent .creditcard-width-temp li input.inputbox-type1{border:1px solid #ccc;height:40px;font-size:15px}.late-payment-parent .creditcard-width-temp li#card-image:before{top:12px!important}.creditcard-width-temp li input.inputbox-type1{height:40px}.creditcard-width-temp ul.list-inline li input.form-control{padding-top:8px;padding-bottom:8px}#AddCardDetails.modal-dialog #card-image:before{top:12px}#divEmpCCDetails .marchent-signup-popup .creditcard-width-temp{margin-left:-25px}#divEmpCCDetails .modal-title{margin-left:-18px}</style> </head> <body class="modal-body"> <div class="marchent-signup-popup creditcard-width-temp"> <div class="modal-header"> <h4 class="modal-title">Credit Card</h4> </div><div class="modal-body clearfix"> <div id="tabs-container"> <ul class="creditcard-width-temp list-inline cc-detail cc-lifull-width clearfix"> <li class="full"> <input type="text" id="temptxtNameOnCard" name="Name" class="inputbox-type1 form-control preventcopy" placeholder="Name on Card"/> </li><li id="card-image" class="full no-card"> <input type="tel" id="temptxtCCNo" class="inputbox-type1 form-control preventcopy creditcardnumber inputtransparent" placeholder="1234 1234 1234 1234"/> </li><li class="cc-detail-input"> <input type="text" id="temptxtMonthYear" name="date" class="inputbox-type1 form-control preventcopy" placeholder="Expiry (MM / YY)"/> </li><li class="cc-detail-input"> <input type="text" id="temptxtSecurityCode1" name="code" class="inputbox-type1 form-control preventcopy" placeholder="Security Code"/> </li><li class="cc-detail-input"> <input type="text" id="tempBillingZip" class="inputbox-type1 form-control preventcopy" name="text" placeholder="Billing Zip"> </li></ul> <div class="secured-by creditcard-width-temp"> <p><span>Secured by</span> <img src="https://vagaro.azureedge.net/static-content/Images/secuery-by.svg" alt="secuery-by"></p></div></div></div></div></body></html>':'<html> <head> <title></title> <style>::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important}.creditcard-width-temp{padding:0;margin:0;list-style:none;width:auto;float:left}.marginleft175{margin-left:170px}.creditcard-width-temp li input[type=password],.creditcard-width-temp li input[type=text]{width:100%}.creditcard-width-temp *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.creditcard-width-temp li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;float:left;position:relative}.creditcard-width-temp li input.inputbox-type1{font-size:15px;color:#545554!important;height:38px;line-height:1.42857;padding:6px 8px;border:1px solid #959494;border-radius:4px;width:100%}.creditcard-width-temp li.col-width50per{width:50%}.creditcard-width-temp li.col-width40per{width:40%}.creditcard-width-temp li.col-width20per{width:20%}.creditcard-width-temp li.input-cardtype input{padding-left:50px!important}.marginbottom15.busProfile dd{margin-bottom:15px!important}.creditcard-width-temp li.input-cardtype [type=text][disabled]{padding-left:50px!important}.creditcard-width-temp #cardimage1:before{content:"";position:absolute;background-position:0 0;background-repeat:no-repeat;background-size:32px auto;left:13px;top:9px;z-index:5;width:32px;height:25px}.creditcard-width-temp #cardimage1.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png)}.creditcard-width-temp #cardimage1.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #cardimage1.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}.creditcard-width-temp #cardimage1.americanexpress:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}.creditcard-width-temp #cardimage1.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.creditcard-width-temp .creditcard-label-text{float:left;width:175px;margin-top:25px}.creditcard-width-temp .creditcard-label-text ul{padding:0;margin:0;list-style:none}.creditcard-width-temp .creditcard-label-text ul li label{font-size:15px;margin-right:0;padding-top:11px}.creditcard-width-temp .creditcard-label-text li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;min-height:38px;float:left;position:relative}.creditcard-width-temp.marchent-signup-popup .modal-header{padding:0}.creditcard-width-temp.marchent-signup-popup .modal-header h4.modal-title{padding:0 0 8px 0;margin:0;color:#333;font-weight:500}.creditcard-width-temp .cc-detail.cc-lifull-width li.cc-detail-input{width:50%;margin:0}.creditcard-width-temp ul.list-inline{margin:0 -5px}.creditcard-width-temp ul.list-inline li>label{clear:both;padding-top:16px;font-size:18px;line-height:24px;display:block;color:#000;padding-bottom:8px}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{padding-right:6px;padding-left:6px}.creditcard-width-temp .secured-by{display:block;text-align:right;float:right;margin-top:16px}.creditcard-width-temp .secured-by p{margin:0;font-size:12px;line-height:16px;color:#333;display:flex;width:100%;justify-content:end}.creditcard-width-temp .secured-by p span{padding-right:5px;display:inline-block}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp ul.list-inline li>label{margin:0}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .addresswithcountry .countrydropdown{background-position:59px center!important;background-size:25px auto!important;background-repeat:no-repeat;border:1px solid #ccc!important;border-radius:2px 0 0 2px;float:left;position:absolute;left:0;top:0;width:74px;margin:0;cursor:pointer;line-height:40px}.creditcard-width-temp .addresswithcountry .countryselectoption{background-color:#fff;position:absolute;left:0;top:39px;list-style:none;margin:0;padding:0;border:1px solid #ccc;width:213px;border-radius:2px;z-index:-2;border-top-right-radius:0;border-top-left-radius:0}.creditcard-width-temp .form-control{background-color:#fff;background-repeat:no-repeat;border:1px solid #ccc;border-radius:2px;box-shadow:none;color:#333;display:block;font-size:15px;height:40px;line-height:1.42857;padding:6px 12px;width:100%;font-weight:400}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp #card-image.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/Icon.png)}.creditcard-width-temp #card-image.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #card-image:before{content:"";position:absolute;background-position:left center;background-repeat:no-repeat;background-size:21px auto;left:13px;top:13px;z-index:5;width:21px;height:18px}.creditcard-width-temp .form-control.inputtransparent{padding-left:30px!important}.creditcard-width-temp ul.list-inline li input.form-control{border-color:#cdcdcd;padding-top:10px;padding-bottom:6px;line-height:22px}.creditcard-width-temp.marchent-signup-popup ul li{margin-bottom:8px;float:none}.creditcard-width-temp.marchent-signup-popup ul{display:flex;flex-wrap:wrap}.creditcard-width-temp.marchent-signup-popup ul li label{font-weight:500}.creditcard-width-temp #card-image.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}.creditcard-width-temp #card-image.amex:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}.creditcard-width-temp #card-image.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.us-f:before{content:""!important}.creditcard-width-temp .modal-body{padding:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.aus-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.canada-f,.creditcard-width-temp .addresswithcountry.countryselectoption li.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.uk-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.us-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry{background-repeat:no-repeat;background-position:8px center;background-size:30px 22px;height:100%;width:100%}.creditcard-width-temp .addresswithcountry .countryselectoption li{background-repeat:no-repeat;background-size:30px 22px;background-position:8px center;font-size:16px;line-height:36px;padding-left:50px;cursor:pointer;background-repeat:no-repeat}.creditcard-width-temp .addresswithcountry .countrydropdown:after{width:25px}.creditcard-width-temp .addresswithcountry .countryselectoption{bottom:39px;top:inherit}.marchent-signup-popup.creditcard-width-temp{padding-bottom:90px;z-index:0;position:relative}.mobPro-htmldesign .ffsharinCCgonline .w-tabs.fullwidth-element .w-form .payment-iframe .addresswithcountry{margin:0}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{height:auto;padding-top:10px;padding-bottom:10px;line-height:18px;border-radius:3px}.creditcard-width-temp #card-image:before{top:11px!important}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control.inputtransparent{padding-left:35px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit}.creditcard-width-temp .secured-by.creditcard-width-temp img{top:4px;position:relative}@media screen and (max-width:767px){#dvccframeforfreecard .addresswithcountry .cc-detail-address-input input.inputbox-type1.form-control.preventcopy {height: 48px;}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{padding-top:14px;padding-bottom:14px;font-size:16px}.creditcard-width-temp #card-image:before{top:15px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countrydropdown{height:48px}.mobPro-htmldesign .creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{height:48px}body.mobPro-htmldesign{font-size:16px;line-height:36px}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit;bottom:47px}.creditcard-width-temp .creditcard-width-temp .addresswithcountry .countrydropdown:after{top:5px}}#dibBusinessSteps .secured-by.creditcard-width-temp img{top:0!important}#Book247CCDetails.payment-iframe{margin:0}#Book247CCAddress.payment-iframe{margin:0}#dvccframeforfreecard .modal-header{margin-bottom:-15px;margin-left:5px}#dvccframeforfreecard .modal-body{margin-left:-15px}#ctl00_VagaroContentPlaceHolder_ddOtherCC .addresswithcountry .cc-detail-address-input input.inputbox-type1,#ddCDPaymentOptions .addresswithcountry .cc-detail-address-input input.inputbox-type1,#divCreateBusinessImport .addresswithcountry .cc-detail-address-input input.inputbox-type1,#divEmpCCDetails .addresswithcountry .cc-detail-address-input input.inputbox-type1,#divRenterCCIframe .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvDepositPopupBody .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvRentFeesCCIframe .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvccframeforfreecard .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:73px;position:relative;border-top-left-radius:0!important;border-bottom-left-radius:0!important;width:calc(100% - 73px);height:40px}#Book247CCDetails #Book247CCAddress .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvAddCardBlock .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvCheckoutBookingPaymentMethod .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:66px;position:relative;border-top-left-radius:0!important;border-bottom-left-radius:0!important;width:calc(100% - 66px);height:40px}#step3-billing .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:8px;position:relative;border-top-left-radius:0!important;border-bottom-left-radius:0!important;width:calc(100% - 8px);height:40px}.late-payment-parent .mon-pay-info-right .marchent-signup-popup.creditcard-width-temp{padding:0 9px;box-sizing:border-box}.late-payment-parent .creditcard-width-temp .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:73px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 73px)}.late-payment-parent .creditcard-width-temp p{padding:0 5px}.late-payment-parent .creditcard-width-temp li input.inputbox-type1{border:1px solid #ccc;height:40px;font-size:15px}.late-payment-parent .creditcard-width-temp li#card-image:before{top:12px!important}#AddCardDetails .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:74px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 74px)}.creditcard-width-temp li input.inputbox-type1{height:40px}.creditcard-width-temp ul.list-inline li input.form-control{padding-top:8px;padding-bottom:8px;font-size:15px!important}.settingWrapperHalf .settingnew-design .marchent-signup-popup ul li.full .addresswithcountry .cc-detail-address-input input.inputbox-type1.form-control{margin-left:73px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 73px)}#divEmpCCDetails .marchent-signup-popup .creditcard-width-temp{margin-left:-25px}#divEmpCCDetails .modal-title{margin-left:-18px}</style> </head> <body class=" modal-body"> <div class="marchent-signup-popup creditcard-width-temp"> <div class="modal-header"> <h4 class="modal-title">Credit Card</h4> </div><div class="modal-body clearfix"> <div id="tabs-container"> <ul class="creditcard-width-temp list-inline cc-detail cc-lifull-width clearfix"> <li class="full"> <input type="text" id="temptxtNameOnCard" name="Name" class="inputbox-type1 form-control preventcopy" placeholder="Name on Card"/> </li><li id="card-image" class="full no-card"> <input type="tel" id="temptxtCCNo" class="inputbox-type1 form-control preventcopy creditcardnumber inputtransparent" placeholder="1234 1234 1234 1234"/> </li><li class="cc-detail-input"> <input type="text" id="temptxtMonthYear" name="date" class="inputbox-type1 form-control preventcopy" placeholder="Expiry (MM / YY)"/> </li><li class="cc-detail-input"> <input type="text" id="temptxtSecurityCode1" name="code" class="inputbox-type1 form-control preventcopy" placeholder="Security Code"/> </li><li class="full"> <label>Billing Address</label> <div class="addresswithcountry"> <div class="cc-detail-country"> <div class="w-custom-dropdown countrydropdown"> <div id="mycountry" class="selectedcountry us-f"></div></div></div><div class="cc-detail-address-input"> <input type="text" class="inputbox-type1 form-control preventcopy" name="temptxtAddress" placeholder="Address1"/> </div></div></li><li class="full"> <input type="text" class="inputbox-type1 form-control preventcopy" name="text" placeholder="Address 2 (optional)"> </li></ul> <div class="secured-by creditcard-width-temp"> <p><span>Secured by</span> <img src="https://vagaro.azureedge.net/static-content/Images/secuery-by.svg" alt="secuery-by"></p></div></div></div></div></body></html>'},GetStyleForZSFrame=function(){var e="";return"undefined"!=typeof backGroundColor&&""!=backGroundColor&&(e+=".popupwidth542 .modal-body { background-color:"+backGroundColor+"}"),""!=$("#hdnButtonBackColor").val()&&null!=$("#hdnButtonBackColor").val()&&""!=$("#hdnButtonFontColor").val()&&null!=$("#hdnButtonFontColor").val()&&(e+=".btn-primary  { background-color: "+$("#hdnButtonBackColor").val()+"!important;border-color:"+$("#hdnButtonBackColor").val()+"!important; color : "+$("#hdnButtonFontColor").val()+"!important;}",e+=".btn-primary:hover { background-color: "+$("#hdnButtonHoveColor").val()+"!important;border-color:"+$("#hdnButtonHoveColor").val()+"!important;}",e+=".btn-default  { background-color!important:  #666666 };"),null!=$("#hdnAddBusinessDummyToken").val()&&""!=$("#hdnAddBusinessDummyToken").val()&&(e+=".addbusiness-right-col { min-height:738px;}",e+=".cc-detail.cc-lifull-width li { margin-bottom:38px;}",e+=".list-inline { margin-left:-5px; margin-right: 0px;}",e+=".modal-content { background:transparent;}",e+=".RadCaptcha img { margin-bottom:14px; margin-top:10px;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px; background-color : #fff;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px;}",e+=".cc-detail.cc-lifull-width li:nth-of-type(4n),.cc-detail.cc-lifull-width li:nth-of-type(5n),.cc-detail.cc-lifull-width li:nth-of-type(6n){margin-bottom:20px}"),e},onRequiredCallback=function(){null!=vui.loader&&vui.loader(!1)},$(window).bind("orientationchange",function(e){setTimeout(function(){setMerchantFrameHeight()},1e3)}),$(".settingMainWarp").on("touchend",function(e){vui.frame.zenswipe.getHeight(),setTimeout(function(){setMerchantFrameHeight()},1e3)}),$(".settingMainWarp").on("touchstart",function(e){vui.frame.zenswipe.getHeight(),setTimeout(function(){setMerchantFrameHeight()},1e3)}),function(e){_cardIntendent={Model:{IntendentInfo:null},Controls:{frame3d_cardintent:"#frame3d_cardintent",divframe3d_cardintent:"#divframe3d_cardintent",zenswipepaymentframe:".zenswipe-payment-frame"},LoadCardIntendentInfo:function(t){_cardIntendent.Model.IntendentInfo=t;var o='<iframe id="cardIntentInfo" src="'+t.PaymentIntentURL+'" frameborder="0" scrolling="yes"   ></iframe>';e(_cardIntendent.Controls.divframe3d_cardintent).html("");var n=e(_cardIntendent.Controls.frame3d_cardintent);e(_cardIntendent.Controls.divframe3d_cardintent,n).html(o),e(_cardIntendent.Controls.divframe3d_cardintent,n).animate({scrollTop:0},1e3),e(_cardIntendent.Controls.frame3d_cardintent).show(),void 0!==t.IsAffirm&&null!=t.IsAffirm&&1==t.IsAffirm&&(e(_cardIntendent.Controls.zenswipepaymentframe).addClass("AffirmiFrameModal"),e("body").addClass("BodyAffirmiFrameModal")),void 0!==t.IsAffirm&&null!=t.IsAffirm&&0==t.IsAffirm&&(e(_cardIntendent.Controls.zenswipepaymentframe).removeClass("AffirmiFrameModal"),e("body").removeClass("BodyAffirmiFrameModal")),e(_cardIntendent.Controls.zenswipepaymentframe).addClass("showpopup"),ShowLoader(!1)},LoadCardCaptureIntendentInfo:function(e){createCapture3DSecurePopup(),_cardIntendent.LoadCardIntendentInfo(e)},CloseCardIntendentInfo:function(t){if(null!=_cardIntendent.Model.IntendentInfo){var o=_cardIntendent.Model.IntendentInfo;e(_cardIntendent.Controls.frame3d_cardintent).hide(),e(_cardIntendent.Controls.zenswipepaymentframe).removeClass("showpopup"),e("body").removeClass("BodyAffirmiFrameModal"),e(_cardIntendent.Controls.divframe3d_cardintent).html(""),1==t?o.SuccessCallBack(o.SuccessCallBackResponse):o.FailedCallback(o.FailedCallBackResponse)}},CloseCardIntendentInfoFromPayment:function(t){void 0!==t&&null!=t&&(void 0!==t.PaymentIntentId&&null!=t.PaymentIntentId||void 0!==t.PSPReferenceNo&&null!=t.PSPReferenceNo)&&(null!=_cardIntendent.Model.IntendentInfo&&(intentInfo=_cardIntendent.Model.IntendentInfo),"undefined"!=typeof intentInfo&&null!=intentInfo&&1!=intentInfo.Type&&(e(_cardIntendent.Controls.frame3d_cardintent).hide(),e(_cardIntendent.Controls.zenswipepaymentframe).removeClass("showpopup"),e("body").removeClass("BodyAffirmiFrameModal"),e(_cardIntendent.Controls.divframe3d_cardintent).html("")),1==t.IsSuccess?("undefined"!=intentInfo.SuccessCallBackResponse&&null!=intentInfo.SuccessCallBackResponse||(intentInfo.SuccessCallBackResponse={PaymentIntentRespons:null}),intentInfo.SuccessCallBackResponse.PaymentIntentResponse=t,intentInfo.SuccessCallBack(intentInfo.SuccessCallBackResponse)):("undefined"!=intentInfo.FailedCallBackResponse&&null!=intentInfo.FailedCallBackResponse||(intentInfo.FailedCallBackResponse={PaymentIntentRespons:null}),intentInfo.FailedCallBackResponse.PaymentIntentResponse=t,intentInfo.FailedCallback(intentInfo.FailedCallBackResponse)))}}}(jQuery,window,document);var stateList={},street=$("#txtStreet"),city=$("#txtCity"),state=$("#txtState"),zip=$("#txtZip"),country=$("#hdnCountry"),ddlstate=$("#ddlState"),street1=$("#txtStreet1"),hdnAddressData=$("#hdnAddressData"),hdnStatecode=$("#hdnStateId"),IsVPLCheckout=!1,IsCCCheckout=!1,IsEntireCCTransaction=!1,IsBackTransaction=!1,addressData={},tipType="percentage";function CallWSJSON(e,t,o,n){if("undefined"==typeof keepAlive&&$("#IsWaitforKeepALive").length>0&&void 0!==$("#IsWaitforKeepALive").val()&&"true"===$("#IsWaitforKeepALive").val().toLowerCase())setTimeout(function(){CallWSJSON(e,t,o,n)},500);else{var a=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";"undefined"!=typeof regionId&&""!=regionId&&(a=a+regionId+"/"),e=a+"WebServices/"+e,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",beforeSend:function(e){"undefined"!=typeof keepAlive&&e.setRequestHeader("keepAlive",keepAlive),1==$("#hdnToken1").length&&void 0!==$("#hdnToken1").val()&&e.setRequestHeader("token1",$("#hdnToken1").val()),1==$("#hdnToken2").length&&void 0!==$("#hdnToken2").val()&&e.setRequestHeader("token2",$("#hdnToken2").val())},url:e,data:t,dataType:"json",success:o,error:function(e,t,o){try{if(403===e.status)return alert("Your session is expired. Please reload your page."),void location.reload(!0);""!=n&&null!=n&&null!=n&&"function"==typeof n&&n(e,t,o)}catch(e){}}})}}function CallbackforMobileApp(e,t,o,n,a,i){var r=i;"string"==typeof i&&(r=i.replace(/\\\"/g,'"').replace(/"/g,'\\"'));var d='{"navType": '+e+',"screenType": '+t+',"screenTitle" : "'+o+'","message": "'+n+'","messageType": '+a+',"action" : "'+r+'"}';null!=window.JSInterface&&window.JSInterface.CallWSMethod(d)}!function(){_vgCovidCleanCheckout={model:{hdnCovidSummy:"hdngetcoviddatasumary",tipAmt:"tiptotalAmt",divCheckoutSummry:"checkout-summry-data",divCheckoutSummryVPL:"checkout-summry-data-vpl",hdnCheckoutHtml:"hdnCheckoutHtml",checkSummryLink:"checkpaysummary",checkSummryLinkVPL:"checkpaysummaryvpl",checkOutSummeryData:{},btnNextForSignatureScreen:"btn-nxt",btnAddTip:"btn-addtip",checkoutRatting:"checkout-ratting",btnSplitTip:"split-button",btnChargeCard:"chrg-card",btnNextFromAddTip:"btn-next-fromaddtip",btnChargeCardFromAddTip:"chrg-card-from-addtip",btnFromSplitToSignature:"btn-split-addtip",divSummeryScreen:"screen1",btnGetStartedVPL:"btnGetStarted",hdnUserDetails:"hdnUserDetails",userDetailsData:{},btnNextScreen2VPL:"btnNextVPLScreen2",btnBackScreen2VPL:"btnBackVPLScreen2",btnNextScreen3VPL:"btnNextVPLScreen3",btnAddBankVPLCheckoutScreen3:"btnAddBankVPLCheckoutScreen3",btnClosePopup:"btnClosePopup",btnOKPopup:"btnOKPopup",btnVPLloginIntoBank:"btnVPLloginIntoBank",divVplCheckoutScreen:"VplCheckoutScreen",divVplGetStarted:"VplScreen1",divVplCheckoutTotalDue:"VplCheckoutScreen1",divVplCheckoutTip:"VplCheckoutScreen2",divVplCheckoutComplate:"VplCheckoutScreen4",divVplSuccessCheckout:"VPLSuccessCheckout",divVplCheckoutSlotList:"VplCheckoutScreen3",btnAcceptCheckoutScreen:"btnAcceptCheckoutScreen",btnDeclineCheckoutScreen:"btnDeclineCheckoutScreen",btnNextVplCheckoutScreen1:"btnNextVplCheckoutScreen1",btnNextVplCheckoutScreen2:"btnNextVplCheckoutScreen2",btnCheckoutVplCheckoutScreen3:"btnCheckoutVplCheckoutScreen3",btnNextVplCheckoutScreen4:"btnNextVplCheckoutScreen4",chechoutBackArrowVpl:"chechoutBackArrowVpl",divTipVplCheckout:"divTipVplCheckout",divBankList1:"divBankList1",divBankList2:"divBankList2",divBankList3:"divBankList3",divNextSign:"divNextSign",divVplSignUp:"VplScreen2",divVplThankyou:"VplScreen3",divVplDownloadApp:"VplScreen4",hdnIsVplPage:"hdnIsVplPage",hdnIsVplCheckoutPage:"hdnIsVplCheckoutPage",hdnInviteMongoID:"hdnInviteMongoID",hdnVagaroCoreAPIUrl:"hdnVagaroCoreAPIUrl",divAddTip:"screen2",divSplitPaymentScreen:"SplitPaymentScreen",divSplitCC:"divSplitCC",divCCCharge:"cc-charge",divSplitVPL:"divSplitVPL",divVPLCharge:"vpl-charge",divCCVPLTotal:"ccvpl-total",divSplitPaymentContinue:"divSplitPaymentContinue",divSplitPaymentScreenVPL:"SplitPaymentScreenVPL",divvplccSplit:"vplccSplit",btnChargeCardCC:"btnChargeCardCC",btnCancelEntireTransaction:"btnCancelEntireTransaction",addtipLinks:"addtip-links",divSplitScreen:"screen5",divSigNature:"screen3",ccbtnPrice:"ccbtn-price",chrgCardFromSplitScreen:"chrg-card-from-splitScreen",checkoutComplete:"screen4",LastScreen:[],chechoutBackarrow:"chechout-backarrow",ChardMyCardFromSummeryPage:"chard-card-summrypage",chStarts:"ch-starts",divCovidoader:"divCovidoader",hdnIsThreeDS:"hdnIsThreeDS",checkoutHeader:"checkoutHeader",btnNxt:"btnNxt",screenAuthentication:"screenAuthentication",threeDSAuthentication:"threeDSAuthentication",checkoutTimeOut:"checkoutTimeOut",checkoutResent:"checkoutResent",PaymentComplete:"PaymentComplete",PaymentCompleted:"PaymentCompleted",titleCheckout:"titleCheckout",cardType:{Visa:"visachip",MasterCard:"MCchip",Stripe:"stripechip",Paypal:"paypalchip",Discover:"DCchip",Jcb:"jcbchip",Amex:"amexchip",DinersClub:"dinersClubchip",cc:"CCardchip"},custTip:"cust-tip",customTipDiv:"custom-tip-div",glbTipTotalForAddTipScreen:0,hdnIsErrorAccount:"hdnIsErrorAccount",signaturePad:"",ItemType:{Class:8,IOU:4,Membership:7,Package:3,Product:2,GC:3,Service:1,ServiceAddonsType:19,ClassAddonsType:20,FeeType:18,VCFFee:21},PaidType:{Deposit:2,FirstTranDepositClass:5,FirstTranPaidWithMembershipClass:6,FirstTranPrepayClass:4,Normal:0,PaidWithMembership:3,Prepay:1,OfflineDeposit:7,OfflineDepositPrepay:8,NoShowCancellation:9},tipPercentageValue:0,AmountType:{ALL:5,CC:4,Cash:1,Cheque:2,GC:3,IOU:6,VPL:7},FinalResponseType:{AuthorizationFail:7,ConfigurationMismatch:6,Distrubution:2,Fail:0,OldVersion:4,PartialSuccess:3,ServiceMismatch:8,Success:1,TokenMissMatch:5,VCFDistribution:11},DistributeType:{Membership:3,General:1,Retail:2,ShopOwner:4},splitInputButton:"split-input-in",ErrorMessage:"hdnErroressage",divLinkExpire:"checkout-timeout",divAlreadyCheckout:"checkout-finish",isProcessTipDistribution:!1,errorType:{LinkExpire:1,AlreadyCheckout:2,PartialSuccess:3},divAppNotFound:"divAppNotFound",ItemCode:{Class:"CLS",GC:"GC",IOU:"IOU",Membership:"MS",Package:"Pkg",Service:"srvc",Fee:"fee"},VPLTwoFactor:{None:0,Email:1,Cell:2,EmailAndCell:3},FeeAmountType:{Percentage:0,Fixed:1},divPartialSuccess:"screen7",isCheckoutFromSplittip:!1,signaturePadId:"signature-pad",isclicked:1,TotalPaidCount:0,actionUrl:"",IsDepositAppWithVPL:!1,VplUserDetails:[],countryMapping:{1:"us",2:"gb",3:"ca",4:"au"},countryMapImage:{1:"us-f",2:"uk-f",3:"canada-f",4:"aus-f"},countryNameMapping:{1:"United States of America",2:"United Kingdom",3:"Canada",4:"Australia"},ScreenVPLFail:"#screen10",vplTwoFactorStatus:0,ScreenVPLCCFail:"#screen11",ScreenVPLCCEntireFail:"#screen12",hdngetBusinessFee:"hdngetBusinessFee",checkoutvplAffirmFailedMessage:"checkoutvplAffirmFailedMessage",IsFromVCFFlow:"",VplGatewayType:!1,VplProviderType:{Certegy:1,Affirm:2},VplGatewayTypeText:""},init:function(){var o=$("#hdnVplGatewayType");o.length&&"2"===$.trim(o.val()).toLowerCase()?(_vgCovidCleanCheckout.model.VplGatewayType=_vgCovidCleanCheckout.model.VplProviderType.Affirm,_vgCovidCleanCheckout.model.VplGatewayTypeText="Affirm"):_vgCovidCleanCheckout.model.VplGatewayTypeText="Vagaro Pay Later",$(".VPLTextInfo").html(_vgCovidCleanCheckout.model.VplGatewayTypeText),$("#divBusinessVCFInfocovidcheckout").hide(),$("#"+_vgCovidCleanCheckout.model.checkoutvplAffirmFailedMessage).val(""),$("#"+_vgCovidCleanCheckout.model.checkoutvplAffirmFailedMessage).hide(),_vgCovidCleanCheckout.CompletePayment();var n=$("#"+_vgCovidCleanCheckout.model.hdnIsVplPage).val(),a=$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val();"true"==n.toLowerCase()?($("#txtAddress").on("select2-focus",function(e){$(".countryselectmyacprofile").is(":visible")&&$(".countryselectmyacprofile").hide()}),addressData.address=street.val(),addressData.city=city.val(),addressData.state=state.val(),addressData.zip=zip.val(),addressData.country=country.val(),addressData.countryText=_vgCovidCleanCheckout.model.countryMapping[country.val()],addressData.statecode=hdnStatecode.val(),addressData.street1=street1.val(),hdnAddressData.val(JSON.stringify(addressData)),_vgCovidCleanCheckout.setAddressControl(),$("#s2id_autogen1").attr("autocomplete","off"),_vgCovidCleanCheckout.vplGetStartedProcess()):"true"==a.toLowerCase()?_vgCovidCleanCheckout.checkoutAffirmPayment():(_vgCovidCleanCheckout.setCheckoutSummeryData(),_vgCovidCleanCheckout.SetCovidCleanCheckoutFlag()),$("."+_vgCovidCleanCheckout.model.btnGetStartedVPL).click(function(){if(String.isNullOrUndefineOrBlank($("#hdninvited").val())){var t={};t.InviteMongoID=$("#"+_vgCovidCleanCheckout.model.hdnInviteMongoID).val(),_checkout.ajax(e.getVplInviteHistoryData,t,_checkout.GetInviteHistoryDetails_Success,_checkout.CallFailed,!1,void 0,!0)}else window.location.href=$("#hdninvited").val()}),$("."+_vgCovidCleanCheckout.model.btnBackScreen2VPL).click(function(){$("#"+_vgCovidCleanCheckout.model.divVplSignUp).hide(),$("#"+_vgCovidCleanCheckout.model.divVplGetStarted).show()}),$("."+_vgCovidCleanCheckout.model.btnNextScreen2VPL).click(function(){var t={};t.InviteMongoID=$("#"+_vgCovidCleanCheckout.model.hdnInviteMongoID).val(),_checkout.ajax(e.getVplInviteHistoryData,t,_checkout.GetInviteHistoryDetailsScreen3_Success,_checkout.CallFailed,!1,void 0,!0)}),$("."+_vgCovidCleanCheckout.model.btnNextScreen3VPL).click(function(){if(iOS||isAndroid){if(null!=navigator&&null!=navigator.userAgent&&navigator.userAgent.toLowerCase().indexOf("vagaroapp")>-1)return void(iOS?CallbackforMobileApp(0,0,"","",0,1):CallbackforMobileApp(0,0,"","",0,28));window.location="vagaroapp:///BusinessId=0";var e="";e=isAndroid?"https://play.google.com/store/search?q=pname:com.vagaro":"http://itunes.apple.com/app/vagaro/id536110000?mt=8",$("#aDownloadVagaroApp").attr("href",e),$("#"+_vgCovidCleanCheckout.model.divVplThankyou).hide(),$("#"+_vgCovidCleanCheckout.model.divVplDownloadApp).show(),$("#divDownloadBtn").show()}else window.location.href=$("#hdnParentDomain").val()+"/"+document.getElementById("hdnVagaroURL").value}),$(".close-modal").click(function(){$("#divAddressDetails").modal("hide")}),$("."+_vgCovidCleanCheckout.model.btnVPLloginIntoBank).click(function(){if(String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.EmailId)||String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Cell)||String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Street)||String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.BirthDate)||new Date(_vgCovidCleanCheckout.model.VplUserDetails.BirthDate).getYear()<0){if($("#hdncountryid").val(_vgCovidCleanCheckout.model.VplUserDetails.CountryID),$("#hdnUserType").val(_vgCovidCleanCheckout.model.VplUserDetails.UserType),"undefined"!=typeof MyAccountVPLCell&&null!=MyAccountVPLCell||(MyAccountVPLCell=$("#txtCell").PhonePlugin({UserRole:String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.UserType)||"1"!=_vgCovidCleanCheckout.model.VplUserDetails.UserType?1:2,ControlText:"Mobile Phone",IsPhoneNoRequire:!0,CurrentLocationCountryID:"undefined"!=typeof cookie&&null!=cookie?parseInt(cookie.countryid):1,CountryId:_vgCovidCleanCheckout.model.VplUserDetails.CellCountryID>0?_vgCovidCleanCheckout.model.VplUserDetails.CellCountryID:1})),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Cell)?_vgCovidCleanCheckout.model.vplTwoFactorStatus=_vgCovidCleanCheckout.model.VPLTwoFactor.Cell:($("#hdnCellNoBeforeChange").val(_vgCovidCleanCheckout.model.VplUserDetails.Cell),MyAccountVPLCell.setPhoneData(_vgCovidCleanCheckout.model.VplUserDetails.CellCountryID,_vgCovidCleanCheckout.model.VplUserDetails.Cell)),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.EmailId)?_vgCovidCleanCheckout.model.vplTwoFactorStatus=_vgCovidCleanCheckout.model.vplTwoFactorStatus!=_vgCovidCleanCheckout.model.VPLTwoFactor.None?_vgCovidCleanCheckout.model.VPLTwoFactor.EmailAndCell:_vgCovidCleanCheckout.model.VPLTwoFactor.Email:($("#hdnEmailBeforeChange").val(_vgCovidCleanCheckout.model.VplUserDetails.EmailId),$("#emailid").val(_vgCovidCleanCheckout.model.VplUserDetails.EmailId)),!String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.BirthDate)&&new Date(_vgCovidCleanCheckout.model.VplUserDetails.BirthDate).getYear()>0){var e=new Date(_vgCovidCleanCheckout.model.VplUserDetails.BirthDate);$("#cboMonth").val(e.getMonth()+1),$("#cboDay").val(e.getDate()),$("#cboYear").val(e.getFullYear())}$("#selectedCountrudiv").removeClass().addClass("selectedcountry "+_vgCovidCleanCheckout.model.countryMapImage[_vgCovidCleanCheckout.model.VplUserDetails.CountryID]);var o,n,a;return o=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Street)?"":_vgCovidCleanCheckout.model.VplUserDetails.Street+", ",n=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.City)?"":_vgCovidCleanCheckout.model.VplUserDetails.City+", ",a=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Zip)?"":_vgCovidCleanCheckout.model.VplUserDetails.Zip,$("#txtAddress").select2("val",o+n+""+a),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.StreetNo)||$("#txtSuite").val(_vgCovidCleanCheckout.model.VplUserDetails.StreetNo),void $("#divVplAddBankDetails").show()}var i,r;ShowLoader(!0);for(var d=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),l=0;l<d.length;l++)r=window.location.href.indexOf("?")>-1?d[l].split("?"):"";i=r[1],String.isNullOrUndefineOrBlank(i)&&(i=r[0]),String.isNullOrUndefineOrBlank(t.email_address)&&(t.email_address=_vgCovidCleanCheckout.model.VplUserDetails.EmailId),String.isNullOrUndefineOrBlank(t.phone_number)&&(t.phone_number=_vgCovidCleanCheckout.model.VplUserDetails.Cell),t.merchant_token_id=i,_vgVPLOnline.EnrollNewUser(t)}),$("."+_vgCovidCleanCheckout.model.btnAddBankVPLCheckoutScreen3).click(function(){ShowLoader(!0);var e=$("#"+_vgCovidCleanCheckout.model.hdnUserDetails).val(),o=_vgCovidCleanCheckout.model.userDetailsData;(void 0===o.UserID||String.isNullOrUndefineOrBlank(o.UserID))&&(o=JSON.parse(e)),null==o.CountryName&&(o.CountryName="USA"),null==o.StateCode&&(o.StateCode=""),t.submerchant_id=128789,t.CoreAPIURL=document.getElementById("hdnVagaroCoreAPIUrl").value,t.UserID=o.UserID,t.billing_address={city_locality:o.City,postal_code:o.Zip,line_1:o.Street,line_2:o.StreetNo,country_code:o.CountryName,state_province:o.StateCode},t.company_name="",null!=document.getElementById("hdnVplCustomerBirthDate").value&&""!=document.getElementById("hdnVplCustomerBirthDate").value?(t.date_of_birth=moment(document.getElementById("hdnVplCustomerBirthDate").value)._d.format("yyyy-mm-dd"),"1-01-01"==t.date_of_birth&&(t.date_of_birth="1900-01-01")):t.date_of_birth="1900-01-01",t.email_address=o.EmailId,t.email_address_is_verified=!0,t.external_customer_id="101",t.first_name=o.FirstName,t.last_name=o.LastName,t.phone_number=o.Cell,t.phone_number_is_verified=!0,t.merchant_token_id=$("#hdnPMerchantTokenID").val(),t.consumer=null!=vplCustomerBankListCheckout&&vplCustomerBankListCheckout.length>0?vplCustomerBankListCheckout[0].CertegyTokenID:"",t.ClientIP=$("#hdnIPAddress").val(),_vgVPLOnline.EnrollNewUser(t)}),$("#MultipleMerchantfeess").click(function(){$("#MultipleMerchantfees").modal("show"),$("#MultipleMerchantfees").each(function(e,t){centerModal(t)})}),$("."+_vgCovidCleanCheckout.model.btnOKPopup).click(function(){$("#vpl-applied").hide(),$("#"+_vgCovidCleanCheckout.model.vplAppliedPopup).css("display","none")}),$("."+_vgCovidCleanCheckout.model.btnClosePopup).click(function(){$("#vpl-applied").hide(),$("#"+_vgCovidCleanCheckout.model.vplAppliedPopup).css("display","none")}),$("."+_vgCovidCleanCheckout.model.btnNextVplCheckoutScreen1).click(function(){var e=_vgCovidCleanCheckout.responseCovidSummuryCCVPL();e[0].checkoutData.ccAmt>0&&e[0].checkoutData.vplAmt>0?($("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).hide(),0==e[0].checkoutData.isSignatureEnabled&&(IsBackTransaction=!1,$("#VplCheckoutScreen3 ."+_vgCovidCleanCheckout.model.divvplccSplit).show(),$("#VplCheckoutScreen3 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).show()),_vgCovidCleanCheckout.VPLCheckoutTimerCheck(2)):_vgCovidCleanCheckout.VPLCheckoutTimerCheck(1)}),$("#VplCheckoutScreen ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).click(function(){$("#"+_vgCovidCleanCheckout.model.divVplCheckoutScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divVplGetStarted).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).show()}),$("#VplCheckoutScreen2 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).click(function(){$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).show()}),$("."+_vgCovidCleanCheckout.model.btnAcceptCheckoutScreen).click(function(){ShowLoader(!0),_vgCovidCleanCheckout.VcfWithccvplCheckout()}),$("."+_vgCovidCleanCheckout.model.btnDeclineCheckoutScreen).click(function(){$("#"+_vgCovidCleanCheckout.model.divVplCheckoutScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divVplGetStarted).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).show()}),$("#screen1 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).click(function(){$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreen).show()}),$("#VplCheckoutScreen1 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).click(function(){$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).hide(),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).show()}),$("#VplCheckoutScreen3 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).click(function(){var e=_vgCovidCleanCheckout.responseCovidSummuryCCVPL();e[0].checkoutData.ccAmt>0&&e[0].checkoutData.vplAmt>0?(0==e[0].checkoutData.isSignatureEnabled&&(IsBackTransaction=!0),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).hide(),_vgCovidCleanCheckout.VPLCheckoutTimerCheck(2)):_vgCovidCleanCheckout.VPLCheckoutTimerCheck(1)}),$("."+_vgCovidCleanCheckout.model.btnNextVplCheckoutScreen2).click(function(){var e=_vgCovidCleanCheckout.responseCovidSummuryCCVPL();if(e[0].checkoutData.ccAmt>0&&e[0].checkoutData.vplAmt>0){var t=parseFloat(parseFloat(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccAmt)+parseFloat(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.vplAmt)).toFixed(2),o=_checkout.GetVCFFeeAmount(!1);o>0&&(t=parseFloat(parseFloat(t)+parseFloat(o))),$("."+_vgCovidCleanCheckout.model.divCCVPLTotal).html("Total: "+e[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2})),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreen).show()}else _vgCovidCleanCheckout.VPLCheckoutTimerCheck(2)}),$("#SplitPaymentScreen ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).click(function(){$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).show()}),$("#SplitPaymentScreen #"+_vgCovidCleanCheckout.model.divSplitPaymentContinue).click(function(){$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreen).hide(),_vgCovidCleanCheckout.setCheckoutSummeryDataVPL(),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).show(),$("#screen1 ."+_vgCovidCleanCheckout.model.divvplccSplit).show(),$("#screen1 ."+_vgCovidCleanCheckout.model.divvplccSplit).text("PAYMENT 1 OF 2"),$("#screen1 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).show();var e=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccAmt,t=_checkout.GetVCFFeeAmount(!1);t>0&&(e=parseFloat(parseFloat(e)+parseFloat(t))),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).show(),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).html("Charge Card "+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+e.toLocaleString("en",{minimumFractionDigits:2})),$("."+_vgCovidCleanCheckout.model.btnAddTip).hide(),$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).hide()}),$("#screen11 ."+_vgCovidCleanCheckout.model.btnChargeCardCC).click(function(){IsEntireCCTransaction=!0,_vgCovidCleanCheckout.VcfWithccvplCheckout(!0)}),$("#screen11 ."+_vgCovidCleanCheckout.model.btnCancelEntireTransaction).click(function(){_vgCovidCleanCheckout.hideShowLoader(!0);var e=_vgCovidCleanCheckout.model.checkOutSummeryData;e[0].checkoutData.resultType=0,e[0].checkoutData.ID=e[0].Id;var t={};t.checkoutData=e[0].checkoutData;var o=new vagaro.ajax;o.datamodel.Token="UpdateCovidCleanCheckoutResponse",o.datamodel.data=t,o.datamodel.callback=function(e){e===_vgCovidCleanCheckout.model.FinalResponseType.Fail&&(_vgCovidCleanCheckout.hideShowLoader(!1),$(_vgCovidCleanCheckout.model.ScreenVPLCCFail).hide(),$(_vgCovidCleanCheckout.model.ScreenVPLCCEntireFail).show())},o.Post()}),$("."+_vgCovidCleanCheckout.model.btnCheckoutVplCheckoutScreen3).click(function(){_vgCovidCleanCheckout.VPLCheckoutTimerCheck(3)}),$("."+_vgCovidCleanCheckout.model.btnNextVplCheckoutScreen4).click(function(){_vgCovidCleanCheckout.VPLCheckoutTimerCheck(4)}),$("#"+_vgCovidCleanCheckout.model.checkSummryLink).click(function(){_vgCovidCleanCheckout.hideShowCheckoutSummery()}),$("#"+_vgCovidCleanCheckout.model.checkSummryLinkVPL).click(function(){_vgCovidCleanCheckout.hideShowCheckoutSummeryVPL()}),$("."+_vgCovidCleanCheckout.model.btnAddTip).click(function(){_vgCovidCleanCheckout.loadAddTipScreen()}),$("."+_vgCovidCleanCheckout.model.btnSplitTip).click(function(){_vgCovidCleanCheckout.loadSplitScreen_new()}),$("."+_vgCovidCleanCheckout.model.btnFromSplitToSignature).click(function(){_vgCovidCleanCheckout.setTipAmmountToCheckoutArray_new(!0);var e=_vgCovidCleanCheckout.responseCovidSummuryCCVPL();e[0].checkoutData.ccAmt>0&&e[0].checkoutData.vplAmt>0?($("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreen).show()):"True"==$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val()?_vgCovidCleanCheckout.VPLCheckoutTimerCheck(2):_vgCovidCleanCheckout.NavigationManagement(_vgCovidCleanCheckout.model.divSplitScreen)}),$("."+_vgCovidCleanCheckout.model.btnNextFromAddTip).click(function(){_vgCovidCleanCheckout.loadSignatureScreen(),_vgCovidCleanCheckout.NavigationManagement(_vgCovidCleanCheckout.model.divAddTip)}),$("."+_vgCovidCleanCheckout.model.btnChargeCard).click(function(){if(_vgCovidCleanCheckout.model.isclicked>1)return!1;_vgCovidCleanCheckout.model.isclicked++,_vgCovidCleanCheckout.findChargeCard()}),$("."+_vgCovidCleanCheckout.model.chrgCardFromSplitScreen).click(function(){if(_vgCovidCleanCheckout.model.isclicked>1)return!1;_vgCovidCleanCheckout.model.isclicked++,_vgCovidCleanCheckout.setTipAmmountToCheckoutArray_new(!1)}),$("."+_vgCovidCleanCheckout.model.btnChargeCardFromAddTip).click(function(){if(_vgCovidCleanCheckout.model.isclicked>1)return!1;_vgCovidCleanCheckout.model.isclicked++,_vgCovidCleanCheckout.chargeMyCardCommon()}),$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).click(function(){_vgCovidCleanCheckout.loadSignatureScreen(),_vgCovidCleanCheckout.NavigationManagement(_vgCovidCleanCheckout.model.divSummeryScreen)}),$("."+_vgCovidCleanCheckout.model.chechoutBackarrow).click(function(){if(window.location.href.includes("paylatercheckout"))if($("#"+_vgCovidCleanCheckout.model.divSigNature).is(":visible"))if($("#"+_vgCovidCleanCheckout.model.divSigNature).hide(),1==_vgCovidCleanCheckout.model.IsDepositAppWithVPL)$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).show();else{var e=_vgCovidCleanCheckout.responseCovidSummuryCCVPL();e[0].checkoutData.ccAmt>0&&e[0].checkoutData.vplAmt>0?($("#"+_vgCovidCleanCheckout.model.divSummeryScreen).show(),$("#"+_vgCovidCleanCheckout.model.divSigNature).hide()):$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).show()}else $("#"+_vgCovidCleanCheckout.model.divSplitScreen).is(":visible")&&($("#"+_vgCovidCleanCheckout.model.divSplitScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).show());else _vgCovidCleanCheckout.NavigationOnBack()}),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).click(function(){var e=_vgCovidCleanCheckout.responseCovidSummuryCCVPL();e[0].checkoutData.ccAmt>0&&e[0].checkoutData.vplAmt>0?($("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide(),e[0].checkoutData.isSignatureEnabled?_vgCovidCleanCheckout.VPLCheckoutTimerCheck(2):_vgCovidCleanCheckout.VPLCheckoutTimerCheck(4)):_vgCovidCleanCheckout.SaveCheckoutData()}),$("."+_vgCovidCleanCheckout.model.chStarts).click(function(){_vgCovidCleanCheckout.selectStart()}),$("#"+_vgCovidCleanCheckout.model.signaturePadId).mousedown(function(){$(".signature-here-text").hide(),$("#btnEraseSignature").show()}),$("#"+_vgCovidCleanCheckout.model.signaturePadId).click(function(){$(".signature-here-text").hide(),$("#btnEraseSignature").show()})},responseCovidSummuryCCVPL:function(){var e=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val();return JSON.parse(e)},showSplitPaymentScreenVPL:function(){setTimeout(function(){$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreenVPL).hide(),$("#VplCheckoutScreen3 ."+_vgCovidCleanCheckout.model.divvplccSplit).show(),$("#VplCheckoutScreen3 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).show()},3e3)},vplGetStartedProcess:function(){String.isNullOrUndefineOrBlank($("#hdninvited").val())?setTimeout(function(){$("#btnGetStartedID").click()},200):$("#"+_vgCovidCleanCheckout.model.divVplGetStarted).show(),_vgCovidCleanCheckout.ClearAddressValue(),$("#txtAddress").select2("data",{id:null,text:null})},vplCheckoutTotalDueScreen:function(){var e=$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val(),t=$("#"+_vgCovidCleanCheckout.model.hdnIsErrorAccount).val(),o=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val(),n=_vgCovidCleanCheckout.model.checkOutSummeryData=JSON.parse(o);if(_checkout.InitializeVariableForVCF(),"undfined"!=typeof t&&null!=t&&""!=t&&"false"!=t.toLowerCase()){if(void 0!==o&&null!=o&&""!=o&&void 0!==n&&null!=n&&""!=n){$(".totalVPLAmtpay").text(n[0].checkoutData.currencySymbol+n[0].checkoutData.vplAmt.toLocaleString("en",{minimumFractionDigits:2})),$(".totalVPLAmt").text("Total: "+n[0].checkoutData.currencySymbol+n[0].checkoutData.vplAmt.toFixed(2)),n[0].checkoutData.ccAmt>0&&($("#"+_vgCovidCleanCheckout.model.divSplitCC).show(),$("."+_vgCovidCleanCheckout.model.divCCCharge).html(n[0].checkoutData.currencySymbol+n[0].checkoutData.ccAmt.toLocaleString("en",{minimumFractionDigits:2})));var a=n[0].checkoutData.vplAmt.toLocaleString("en",{minimumFractionDigits:2});$("."+_vgCovidCleanCheckout.model.divVPLCharge).html(n[0].checkoutData.currencySymbol+a);var i=parseFloat(parseFloat(n[0].checkoutData.ccAmt)+parseFloat(n[0].checkoutData.vplAmt)).toFixed(2),r=_checkout.GetVCFFeeAmount(!1);r>0&&(i=parseFloat(parseFloat(i)+parseFloat(r))),$("."+_vgCovidCleanCheckout.model.divCCVPLTotal).html("Total: "+n[0].checkoutData.currencySymbol+i.toLocaleString("en",{minimumFractionDigits:2}));var d=n[0].checkoutData.vplAmt.toFixed(2)/4;$(".dueSlotAmount").text("Due Now: "+n[0].checkoutData.currencySymbol+d.toFixed(2)),_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm&&$(".dueSlotAmount").hide(),$(".businessName").text(n[0].checkoutData.salonName),$("#hdnVPLCheckoutCustmerID").val(n[0].checkoutData.payeeId),$(".textBeforFiveStar").text("How was your experience with "+n[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?");var l=document.getElementsByTagName("canvas")[0];l.width=512,l.height=147,$(".classtext").text(n[0].checkoutData.salonName),_vgCovidCleanCheckout.model.signaturePad=new SignaturePad(l)}n[0].checkoutData.ccAmt>0&&n[0].checkoutData.vplAmt>0?(_vgCovidCleanCheckout.setCheckoutSummeryDataVPL(),_vgCovidCleanCheckout.VPLCheckoutTimerCheck(1)):$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).show()}else if("true"==e.toLowerCase()){var s=$("#"+_vgCovidCleanCheckout.model.ErrorMessage).val();parseInt(s)==_vgCovidCleanCheckout.model.errorType.LinkExpire?($(".vagaro-blue-icon").hide(),$(".vagaro-close-icon-size").show(),$("#"+_vgCovidCleanCheckout.model.checkoutTimeOut).text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout Timed Out"),$("#"+_vgCovidCleanCheckout.model.checkoutResent).text("Ask for the "+_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout to be re-sent."),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show()):($(".vagaro-blue-icon").hide(),$(".sucesslogo").show(),$("#"+_vgCovidCleanCheckout.model.PaymentCompleted).text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout Complete"),$("#"+_vgCovidCleanCheckout.model.titleCheckout).text("Vagaro | "+_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout"),$("."+_vgCovidCleanCheckout.model.divAlreadyCheckout).show()),$(".checkout-final-price").text(n[0].checkoutData.currencySymbol+n[0].checkoutData.vplAmt.toFixed(2)),$(".checkoutClass").text(n[0].checkoutData.salonName),n[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==n[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+n[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?"),$(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show()}else $(".chcekoutComplateHeader").text("Checkout Complete"),$(".timeoutMsg").text("Checkout Timed Out"),$(".timeoutResetMsg").text("Ask for the Checkout to be re-sent."),$(".checkout-final-price").text(n[0].checkoutData.currencySymbol+n[0].checkoutData.vplAmt.toFixed(2)),$(".checkoutClass").text(n[0].checkoutData.salonName),n[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==n[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+n[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?"),$(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show(),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show()},setSuggestedTipOptionVPLCheckout:function(){_checkout.ApplyVCFFee(!1);var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==e&&null!=e&&""!=e&&(""!=e[0].checkoutData.suggestedTipValues&&null!=e[0].checkoutData.suggestedTipValues||(e[0].checkoutData.suggestedTipValues="0"),"undfined"!=e[0].checkoutData.suggestedTipValues&&null!=e[0].checkoutData.suggestedTipValues&&""!=e[0].checkoutData.suggestedTipValues)){var t=e[0].checkoutData.suggestedTipValues.split(","),o="";_vgCovidCleanCheckout.CalculateSumAmtInSignature(e[0].checkoutData.tip,e[0].checkoutData.amtDue,e[0].checkoutData.vplAmt),$("."+_vgCovidCleanCheckout.model.divTipVplCheckout).html(""),void 0!==e[0].checkoutData.tipType&&null!=e[0].checkoutData.tipType&&""!=e[0].checkoutData.tipType&&(tipType=e[0].checkoutData.tipType.toLowerCase());for(var n=0;n<t.length;n++)if("0"!=t[n]){var a,i,r;"dollar"===tipType.toLowerCase()?(a=parseFloat(t[n]),i=e[0].checkoutData.currencySymbol+a,r="0"):(a=_vgCovidCleanCheckout.GetSumOfProdcutOrService()*parseFloat(t[n])/100,i=t[n]+"%",r=t[n]);var d="dollar"===tipType.toLowerCase()?"":"<span>"+e[0].checkoutData.currencySymbol+a.toFixed(2)+"</span>";o=a==e[0].checkoutData.tip&&e[0].checkoutData.tip>0?"<a href='javascript:void(0);' class='tip-sug addtip-fields active' tip-amount='"+a.toFixed(2)+"' tip-percentage='"+r+"' onClick='_vgCovidCleanCheckout.setActiveToTipSuggetion_new(this)'><strong>"+i+"</strong>"+d+"</a>":"<a href='javascript:void(0);' class='tip-sug addtip-fields' tip-amount='"+a.toFixed(2)+"' tip-percentage='"+r+"' onClick='_vgCovidCleanCheckout.setActiveToTipSuggetion_new(this)'><strong>"+i+"</strong>"+d+"</a>",$("."+_vgCovidCleanCheckout.model.divTipVplCheckout).append(o)}var l="";void 0!==o&&null!=o&&""!=o?(l="<div class='custom-tip-div addtip-fields'><input type='text' onkeypress='return _vgCovidCleanCheckout.validateCustomTipKeyPress(this, event);' oninput='_vgCovidCleanCheckout.enforceCustomTipMinimum(this);' class='tip-sug cust-tip cust-tip-input'  maxlength='6' tip-amount='0' placeholder='Custom' onBlur='_vgCovidCleanCheckout.onBlurValidateCustomTip_new(this);' onfocus='_vgCovidCleanCheckout.onFocusValidateCustomTip(this,\""+e[0].checkoutData.currencySymbol+"\");_vgCovidCleanCheckout.SelectTextboxContent(this);' onkeyup='_vgCovidCleanCheckout.makeCurrencySymbolInTextbox(this,\""+e[0].checkoutData.currencySymbol+"\");_vgCovidCleanCheckout.pasteHandlerKeyup(this,event,1);_vgCovidCleanCheckout.enforceCustomTipMinimum(this);'>  </div>",$("."+_vgCovidCleanCheckout.model.divTipVplCheckout).append(l)):(l="<div class='custom-tip-div fullradius'><input type='text' onkeypress='return _vgCovidCleanCheckout.validateCustomTipKeyPress(this, event);' oninput='_vgCovidCleanCheckout.enforceCustomTipMinimum(this);' class='tip-sug cust-tip cust-tip-input'  maxlength='6' tip-amount='0' placeholder='Custom' onBlur='_vgCovidCleanCheckout.onBlurValidateCustomTip_new(this);' onfocus='_vgCovidCleanCheckout.onFocusValidateCustomTip(this,\""+e[0].checkoutData.currencySymbol+"\");_vgCovidCleanCheckout.SelectTextboxContent(this);' onkeyup='_vgCovidCleanCheckout.makeCurrencySymbolInTextbox(this,\""+e[0].checkoutData.currencySymbol+"\");_vgCovidCleanCheckout.pasteHandlerKeyup(this,event,1);_vgCovidCleanCheckout.enforceCustomTipMinimum(this);'>  </div>",$("."+_vgCovidCleanCheckout.model.divTipVplCheckout).html(""),$("."+_vgCovidCleanCheckout.model.divTipVplCheckout).append(l))}},setCheckoutSummeryData:function(){var e=$("#"+_vgCovidCleanCheckout.model.hdnIsErrorAccount).val();if("undfined"!=typeof e&&null!=e&&""!=e&&"false"!=e.toLowerCase()){var t=document.getElementsByTagName("canvas")[0];if(t.width=512,t.height=147,$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).show(),void 0!==(r=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val())&&null!=r&&""!=r){var o=_vgCovidCleanCheckout.model.checkOutSummeryData=JSON.parse(r);if(void 0!==o&&null!=o&&""!=o){var n=o[0].checkoutData.amtPaid,a=_checkout.GetVCFFeeAmount(!1);a>0&&(n+=a),$(".tiptotalAmt").text("Total: "+o[0].checkoutData.currencySymbol+n.toFixed(2)),$(".splittip-total").text(o[0].checkoutData.currencySymbol+o[0].checkoutData.amtPaid.toFixed(2)),void 0!==o[0].checkoutData.ccDetails.ccNo&&null!=o[0].checkoutData.ccDetails.ccNo&&""!=o[0].checkoutData.ccDetails.ccNo?$(".cc-tip").text(o[0].checkoutData.ccDetails.ccNo+""):$(".cc-tip").text("****"),_vgCovidCleanCheckout.setCCardType(o[0].checkoutData.ccDetails.ccType),$(".classtext").text(o[0].checkoutData.salonName),_vgCovidCleanCheckout.model.signaturePad=new SignaturePad(t),_checkout.InitializeVariableForVCF()}}if($("."+_vgCovidCleanCheckout.model.divCheckoutSummry).html($("#"+_vgCovidCleanCheckout.model.hdnCheckoutHtml).val()),void 0!==(c=_vgCovidCleanCheckout.model.checkOutSummeryData)&&null!=c&&""!=c&&c.length>0)if(void 0!==c[0].checkoutData.suggestedTipValues&&null!=c[0].checkoutData.suggestedTipValues&&""!=c[0].checkoutData.suggestedTipValues&&0!=c[0].checkoutData.suggestedTipValues){var i=_vgCovidCleanCheckout.validateOfflineDeposit(c[0].checkoutData);0==c[0].checkoutData.isSignatureEnabled&&0==i?_checkout.ApplyVCFFee(!1):$("#divBusinessVCFInfocovidcheckout").hide(),_vgCovidCleanCheckout.hideShowButtonOnAllScreen(c[0].checkoutData.isSignatureEnabled,i,c[0].checkoutData.thresholdAmount)}else 0==c[0].checkoutData.isSignatureEnabled?_checkout.ApplyVCFFee(!1):$("#divBusinessVCFInfocovidcheckout").hide(),_vgCovidCleanCheckout.hideShowButtonOnAllScreen(c[0].checkoutData.isSignatureEnabled,!1,c[0].checkoutData.thresholdAmount);_vgCovidCleanCheckout.CalculateCharges()}else{$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show();var r=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val(),d=_vgCovidCleanCheckout.model.checkOutSummeryData=JSON.parse(r);_checkout.InitializeVariableForVCF();i=!1;$.grep(d[0].checkoutData.checkoutGridrow,function(e){return e.paidType==_vgCovidCleanCheckout.model.PaidType.NoShowCancellation}).length>0&&(i=!0),i?$("."+_vgCovidCleanCheckout.model.checkoutRatting).hide():$("."+_vgCovidCleanCheckout.model.checkoutRatting).show();var l=$("#"+_vgCovidCleanCheckout.model.ErrorMessage).val();if(parseInt(l)==_vgCovidCleanCheckout.model.errorType.LinkExpire)$("."+_vgCovidCleanCheckout.model.divLinkExpire).show(),_vgCovidCleanCheckout.lableChangeTimeoutScreen();else if(parseInt(l)==_vgCovidCleanCheckout.model.errorType.PartialSuccess){d[0].checkOutResponseData.resultMessage;var s=d[0].checkOutResponseData.resultMessage.split("$##$");null!=s&&""!=s&&s.length>0&&0==d[0].checkoutData.IsWebServiceCall?($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divPartialSuccess).show(),$(".checkoutfaild-list-block").html(""),$(".checkoutfaild-list-block").html(s[2])):null!=s&&""!=s&&s.length>0&&1==d[0].checkoutData.IsWebServiceCall&&($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divPartialSuccess).show(),$(".checkoutfaild-list-block").html(""),$(".checkoutfaild-list-block").html(s[0]))}else{var c;if($("."+_vgCovidCleanCheckout.model.divAlreadyCheckout).show(),void 0!==_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkOutResponseData.amtPaid&&null!=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkOutResponseData.amtPaid&&""!=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkOutResponseData.amtPaid)void 0!==(c=_vgCovidCleanCheckout.model.checkOutSummeryData)&&null!=c&&""!=c&&$(".checkout-final-price").text(c[0].checkoutData.currencySymbol+d[0].checkOutResponseData.amtPaid.toFixed(2));$(".checkoutClass").text(d[0].checkoutData.salonName),d[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==d[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+d[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?")}}},setCheckoutSummeryDataVPL:function(){var e=$("#"+_vgCovidCleanCheckout.model.hdnIsErrorAccount).val();if("undfined"!=typeof e&&null!=e&&""!=e&&"false"!=e.toLowerCase()){var t=document.getElementsByTagName("canvas")[0];if(t.width=512,t.height=147,void 0!==(r=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val())&&null!=r&&""!=r){var o=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==o&&null!=o&&""!=o){var n=o[0].checkoutData.ccAmt,a=_checkout.GetVCFFeeAmount(!1);a>0&&(n+=a),$(".tiptotalAmt").text("Total: "+o[0].checkoutData.currencySymbol+n.toLocaleString("en",{minimumFractionDigits:2})),$(".splittip-total").text(o[0].checkoutData.currencySymbol+o[0].checkoutData.ccAmt.toFixed(2)),void 0!==o[0].checkoutData.ccDetails.ccNo&&null!=o[0].checkoutData.ccDetails.ccNo&&""!=o[0].checkoutData.ccDetails.ccNo?$(".cc-tip").text(o[0].checkoutData.ccDetails.ccNo+""):$(".cc-tip").text("****"),_vgCovidCleanCheckout.setCCardType(o[0].checkoutData.ccDetails.ccType),$(".classtext").text(o[0].checkoutData.salonName),_vgCovidCleanCheckout.model.signaturePad=new SignaturePad(t)}}if($("."+_vgCovidCleanCheckout.model.divCheckoutSummry).html($("#"+_vgCovidCleanCheckout.model.hdnCheckoutHtml).val()),void 0!==(c=_vgCovidCleanCheckout.model.checkOutSummeryData)&&null!=c&&""!=c&&c.length>0)if(void 0!==c[0].checkoutData.suggestedTipValues&&null!=c[0].checkoutData.suggestedTipValues&&""!=c[0].checkoutData.suggestedTipValues&&0!=c[0].checkoutData.suggestedTipValues){var i=_vgCovidCleanCheckout.validateOfflineDeposit(c[0].checkoutData);_vgCovidCleanCheckout.hideShowButtonOnAllScreen(c[0].checkoutData.isSignatureEnabled,i,c[0].checkoutData.thresholdAmount)}else _vgCovidCleanCheckout.hideShowButtonOnAllScreen(c[0].checkoutData.isSignatureEnabled,!1,c[0].checkoutData.thresholdAmount);_vgCovidCleanCheckout.CalculateCharges()}else{$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show();var r=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val();_vgCovidCleanCheckout.model.checkOutSummeryData=JSON.parse(r),_checkout.InitializeVariableForVCF();var d=_vgCovidCleanCheckout.model.checkOutSummeryData;i=!1;$.grep(d[0].checkoutData.checkoutGridrow,function(e){return e.paidType==_vgCovidCleanCheckout.model.PaidType.NoShowCancellation}).length>0&&(i=!0),i?$("."+_vgCovidCleanCheckout.model.checkoutRatting).hide():$("."+_vgCovidCleanCheckout.model.checkoutRatting).show();var l=$("#"+_vgCovidCleanCheckout.model.ErrorMessage).val();if(parseInt(l)==_vgCovidCleanCheckout.model.errorType.LinkExpire)$("."+_vgCovidCleanCheckout.model.divLinkExpire).show(),_vgCovidCleanCheckout.lableChangeTimeoutScreen();else if(parseInt(l)==_vgCovidCleanCheckout.model.errorType.PartialSuccess){d[0].checkOutResponseData.resultMessage;var s=d[0].checkOutResponseData.resultMessage.split("$##$");null!=s&&""!=s&&s.length>0&&0==d[0].checkoutData.IsWebServiceCall?($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divPartialSuccess).show(),$(".checkoutfaild-list-block").html(""),$(".checkoutfaild-list-block").html(s[2])):null!=s&&""!=s&&s.length>0&&1==d[0].checkoutData.IsWebServiceCall&&($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divPartialSuccess).show(),$(".checkoutfaild-list-block").html(""),$(".checkoutfaild-list-block").html(s[0]))}else{var c;if($("."+_vgCovidCleanCheckout.model.divAlreadyCheckout).show(),void 0!==_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkOutResponseData.amtPaid&&null!=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkOutResponseData.amtPaid&&""!=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkOutResponseData.amtPaid)void 0!==(c=_vgCovidCleanCheckout.model.checkOutSummeryData)&&null!=c&&""!=c&&$(".checkout-final-price").text(c[0].checkoutData.currencySymbol+d[0].checkOutResponseData.amtPaid.toFixed(2));$(".checkoutClass").text(d[0].checkoutData.salonName),d[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==d[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+d[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?")}}},validateOfflineDeposit:function(e){return $.grep(e.checkoutGridrow,function(e){return e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDepositPrepay&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.NoShowCancellation}).length>0},hideShowCheckoutSummery:function(){"open"==$("."+_vgCovidCleanCheckout.model.divCheckoutSummry).attr("status")?($("."+_vgCovidCleanCheckout.model.divCheckoutSummry).hide(),$("."+_vgCovidCleanCheckout.model.divCheckoutSummry).attr("status","close"),$("#covidCheckoutDiv").removeClass("removebottomCurv"),$("#checkpaysummary").removeClass("chckdownarrow")):($("."+_vgCovidCleanCheckout.model.divCheckoutSummry).show(),$("."+_vgCovidCleanCheckout.model.divCheckoutSummry).attr("status","open"),$("#covidCheckoutDiv").addClass("removebottomCurv"),$("#checkpaysummary").addClass("chckdownarrow"))},hideShowCheckoutSummeryVPL:function(){"open"==$("."+_vgCovidCleanCheckout.model.divCheckoutSummryVPL).attr("status")?($("."+_vgCovidCleanCheckout.model.divCheckoutSummryVPL).hide(),$("."+_vgCovidCleanCheckout.model.divCheckoutSummryVPL).attr("status","close"),$("#checkpaysummaryvpl").removeClass("chckdownarrow")):($("."+_vgCovidCleanCheckout.model.divCheckoutSummryVPL).html($("#"+_vgCovidCleanCheckout.model.hdnCheckoutHtml).val()),$("."+_vgCovidCleanCheckout.model.divCheckoutSummryVPL).show(),$("."+_vgCovidCleanCheckout.model.divCheckoutSummryVPL).attr("status","open"),$("#checkpaysummaryvpl").addClass("chckdownarrow"))},hideShowButtonOnAllScreen:function(e,t,o){var n=_vgCovidCleanCheckout.model.checkOutSummeryData,a=_vgCovidCleanCheckout.ConvertDecimalWithFixed(n[0].checkoutData.ccAmt+n[0].checkoutData.vplAmt,!0,2);if(e&&(e=a>o),"true"==$("#"+_vgCovidCleanCheckout.model.hdnIsThreeDS).val().toLowerCase())$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).show(),$("."+_vgCovidCleanCheckout.model.btnAddTip).hide(),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).hide(),$("#"+_vgCovidCleanCheckout.model.checkoutHeader).text("Authenticate Checkout"),$("#"+_vgCovidCleanCheckout.model.titleCheckout).text("Vagaro | Authenticate Checkout"),$("#"+_vgCovidCleanCheckout.model.btnNxt).text("Authorize");else if($("#"+_vgCovidCleanCheckout.model.checkoutHeader).text("Contactless Checkout"),$("#"+_vgCovidCleanCheckout.model.titleCheckout).text("Vagaro | Contactless Checkout"),$("#"+_vgCovidCleanCheckout.model.btnNxt).text("Next"),1==e&&1==t)$("."+_vgCovidCleanCheckout.model.btnAddTip).show(),$("."+_vgCovidCleanCheckout.model.btnChargeCard).show(),$("."+_vgCovidCleanCheckout.model.btnNextFromAddTip).show(),$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).hide(),$("."+_vgCovidCleanCheckout.model.btnChargeCardFromAddTip).hide(),$("."+_vgCovidCleanCheckout.model.chrgCardFromSplitScreen).hide(),$("."+_vgCovidCleanCheckout.model.btnFromSplitToAddTip).show(),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).hide();else if(0==e&&1==t)n[0].checkoutData.ccAmt>0&&n[0].checkoutData.vplAmt>0?($("."+_vgCovidCleanCheckout.model.chrgCardFromSplitScreen).hide(),$("."+_vgCovidCleanCheckout.model.btnFromSplitToSignature).show()):($("."+_vgCovidCleanCheckout.model.chrgCardFromSplitScreen).show(),$("."+_vgCovidCleanCheckout.model.btnFromSplitToSignature).hide()),$("."+_vgCovidCleanCheckout.model.btnAddTip).show(),$("."+_vgCovidCleanCheckout.model.btnNextFromAddTip).hide(),$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).hide(),$("."+_vgCovidCleanCheckout.model.btnChargeCardFromAddTip).show(),$("."+_vgCovidCleanCheckout.model.btnNextFromAddTip).hide(),$("."+_vgCovidCleanCheckout.model.btnFromSplitToAddTip).hide(),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).hide();else if(1==e&&0==t)$("."+_vgCovidCleanCheckout.model.btnAddTip).hide(),$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).show(),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).hide(),$("."+_vgCovidCleanCheckout.model.btnNextFromAddTip).hide(),$("."+_vgCovidCleanCheckout.model.btnChargeCardFromAddTip).hide(),n[0].checkoutData.ccAmt>0&&n[0].checkoutData.vplAmt>0?($("."+_vgCovidCleanCheckout.model.chrgCardFromSplitScreen).hide(),$("."+_vgCovidCleanCheckout.model.btnFromSplitToSignature).show()):($("."+_vgCovidCleanCheckout.model.chrgCardFromSplitScreen).show(),$("."+_vgCovidCleanCheckout.model.btnFromSplitToSignature).hide());else{_checkout.GetVCFFeeAmount(!1)>0?$("#divBusinessVCFInfocovidcheckout").show():$("#divBusinessVCFInfocovidcheckout").hide(),$("."+_vgCovidCleanCheckout.model.ChardMyCardFromSummeryPage).show(),$("."+_vgCovidCleanCheckout.model.btnAddTip).hide(),$("."+_vgCovidCleanCheckout.model.btnNextForSignatureScreen).hide()}},lableChangeTimeoutScreen:function(){var e=$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val();"true"==$("#"+_vgCovidCleanCheckout.model.hdnIsThreeDS).val().toLowerCase()?($(".vagaro-close-icon-size").hide(),$("#"+_vgCovidCleanCheckout.model.checkoutTimeOut).text("Authenticate Checkout Timed Out"),$("#"+_vgCovidCleanCheckout.model.checkoutResent).text("Ask for the Authenticate Checkout to be re-sent.")):"true"==e.toLowerCase()?($(".vagaro-blue-icon").hide(),$(".vagaro-close-icon-size").show(),$("#"+_vgCovidCleanCheckout.model.checkoutTimeOut).text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout Timed Out"),$("#"+_vgCovidCleanCheckout.model.checkoutResent).text("Ask for the "+_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout to be re-sent.")):($(".vagaro-close-icon-size").hide(),$("#"+_vgCovidCleanCheckout.model.checkoutTimeOut).text("Contactless Checkout Timed Out"),$("#"+_vgCovidCleanCheckout.model.checkoutResent).text("Ask for the Contactless Checkout to be re-sent."))},loadAddTipScreen:function(){$("#"+_vgCovidCleanCheckout.model.divAddTip).css("display","flex"),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide(),_vgCovidCleanCheckout.NavigationManagement(_vgCovidCleanCheckout.model.divSummeryScreen),void 0!==_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.splitTip&&null!=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.splitTip||(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.splitTip=[]),_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.splitTip.length>1?$("."+_vgCovidCleanCheckout.model.btnSplitTip).show():$("."+_vgCovidCleanCheckout.model.btnSplitTip).hide(),_checkout.ApplyVCFFee(!1),_vgCovidCleanCheckout.setSuggestedTipOption()},setSuggestedTipOption:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==e&&null!=e&&""!=e&&"undfined"!=e[0].checkoutData.suggestedTipValues&&null!=e[0].checkoutData.suggestedTipValues&&""!=e[0].checkoutData.suggestedTipValues){var t=e[0].checkoutData.suggestedTipValues.split(","),o="";_vgCovidCleanCheckout.CalculateSumAmtInSignature(e[0].checkoutData.tip,e[0].checkoutData.amtDue,e[0].checkoutData.ccAmt),$("."+_vgCovidCleanCheckout.model.addtipLinks).html(""),void 0!==e[0].checkoutData.tipType&&null!=e[0].checkoutData.tipType&&""!=e[0].checkoutData.tipType&&(tipType=e[0].checkoutData.tipType.toLowerCase());for(var n=0;n<t.length;n++){var a,i,r,d=_vgCovidCleanCheckout.GetSumOfProdcutOrService();d<=0&&(d=_vgCovidCleanCheckout.GetSumOfProdcutOrService(null,!0)),"dollar"===tipType.toLowerCase()?(a=parseFloat(t[n]),i=e[0].checkoutData.currencySymbol+a,r="0"):(a=d*parseFloat(t[n])/100,i=t[n]+"%",r=t[n]);var l="dollar"===tipType.toLowerCase()?"":"<span>"+e[0].checkoutData.currencySymbol+a.toFixed(2)+"</span>";o=a==e[0].checkoutData.tip&&e[0].checkoutData.tip>0?"<a href='javascript:void(0);' class='tip-sug addtip-fields web-display-small radius-none active' tip-amount='"+a.toFixed(2)+"' tip-percentage='"+r+"' onClick='_vgCovidCleanCheckout.setActiveToTipSuggetion_new(this)'><strong>"+i+"</strong>"+l+"</a>":"<a href='javascript:void(0);' class='tip-sug addtip-fields web-display-small radius-none' tip-amount='"+a.toFixed(2)+"' tip-percentage='"+r+"' onClick='_vgCovidCleanCheckout.setActiveToTipSuggetion_new(this)'><strong>"+i+"</strong>"+l+"</a>",$("."+_vgCovidCleanCheckout.model.addtipLinks).append(o)}var s="<div class='custom-tip-div addtip-fields'><input type='text' onkeypress='return _vgCovidCleanCheckout.validateCustomTipKeyPress(this, event);' oninput='_vgCovidCleanCheckout.enforceCustomTipMinimum(this);' class='tip-sug cust-tip cust-tip-input'  maxlength='6' tip-amount='0' placeholder='Custom' onBlur='_vgCovidCleanCheckout.onBlurValidateCustomTip_new(this);' onfocus='_vgCovidCleanCheckout.onFocusValidateCustomTip(this,\""+e[0].checkoutData.currencySymbol+"\");_vgCovidCleanCheckout.SelectTextboxContent(this);' onkeyup='_vgCovidCleanCheckout.makeCurrencySymbolInTextbox(this,\""+e[0].checkoutData.currencySymbol+"\");_vgCovidCleanCheckout.pasteHandlerKeyup(this,event,1);_vgCovidCleanCheckout.enforceCustomTipMinimum(this);'>  </div>";void 0!==o&&null!=o&&""!=o&&$("."+_vgCovidCleanCheckout.model.addtipLinks).append(s)}},loadSplitScreen_new:function(){$("#"+_vgCovidCleanCheckout.model.divSplitScreen).css("display","flex"),"True"==$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val()?$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide():($("#"+_vgCovidCleanCheckout.model.divAddTip).hide(),_vgCovidCleanCheckout.NavigationManagement(_vgCovidCleanCheckout.model.divAddTip));var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==e&&null!=e&&""!=e&&e.length>0){for(var t=e[0].checkoutData.checkoutGridrow,o=[],n=0;n<e[0].checkoutData.splitTip.length;n++)o.push(e[0].checkoutData.splitTip[n].serviceProviderID);var a=o.filter(function(e,t,o){return t==o.indexOf(e)});$(".split-list-box").html("");var i=e[0].checkoutData.suggestedTipValues.split(",");$(".split-input-dd").remove(),void 0!==e[0].checkoutData.tipType&&null!=e[0].checkoutData.tipType&&""!=e[0].checkoutData.tipType&&(tipType=e[0].checkoutData.tipType.toLowerCase());for(n=0;n<a.length;n++){var r,d="",l="",s=$.grep(t,function(e){return e.serviceProviderID==a[n]}),c=$("#hdnSpData").val();void 0!==c&&null!=c&&""!=c&&(r=JSON.parse(c));for(var u=0;u<s.length;u++)l+="<div class='split-class'><span class='spclass-name'>"+s[u].itemName+"</span><div class='spclass-price'>("+e[0].checkoutData.currencySymbol+s[u].price+")</div></div>";var h,p="";void 0!==r&&null!=r&&""!=r&&(p=$.grep(r,function(e){return e.UserID==a[n]}));var m=!1;0==p.length||null==p[0].Photo||""==p[0].Photo?(h=_vgCovidCleanCheckout.FindInitials(s[0].serviceProviderName),m=!1):(h=p[0].CDNUrl+"/Original/"+p[0].Photo,m=!0),d+="<div class='split-list-field'><div class='left-split'><div class='split-profile'>",d+=m?"<div class='avtar-img' style='background-image: url("+h+")'></div>":"<div class='avtar-img' style='text-align: center;line-height: 36px;'  style='background-image: url('')'>"+h+"</div>",d+="<div class='avtar-text'>"+s[0].serviceProviderName+"</div></div>"+l+"</div> <div class='split-input-box'> <div class='split-input-in'><input type='text' maxlength='6' value='0.00' onkeypress='return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))'  class='tipsp' id='txtTip"+n+"' spid='"+s[0].serviceProviderID+"' onblur='_vgCovidCleanCheckout.ManageSpliTipTextbox(this);' suggetionid='sug"+n+"' onclick='_vgCovidCleanCheckout.SelectTextboxContent(this);_vgCovidCleanCheckout.SplitTipSuggetionBox(this);'><div class='split-dollar'>"+e[0].checkoutData.currencySymbol+"</div> </div>";for(var v="<div class='split-input-dd sug"+n+"' style='display:none'>",f=0;f<i.length;f++){var g,C,y,k=_vgCovidCleanCheckout.GetSumOfProdcutOrService(a[n]);k<=0&&(k=_vgCovidCleanCheckout.GetSumOfProdcutOrService(a[n],!0)),"dollar"===tipType.toLowerCase()?(g=parseFloat(i[f]),C=e[0].checkoutData.currencySymbol+g,y=0):(g=k*parseFloat(i[f])/100,C=i[f]+"%",y=i[f]),g=_vgCovidCleanCheckout.ConvertDecimalWithFixed(g,!0,2);var w="dollar"===tipType.toLowerCase()?"":"<span>"+e[0].checkoutData.currencySymbol+g+"</span>";v+="<a href='javascript:void(0);' suggetionlinkid='sug"+n+"' onclick=\"_vgCovidCleanCheckout.ClickTipOptionFromPage("+g+","+y+',this)"><strong>'+C+"</strong>"+w+"</a>"}d+=(v+="</div>")+" </div> </div>",$(".split-list-box").append(d)}}_vgCovidCleanCheckout.OpenSplitTipPopUp()},setTipAmmountToCheckoutArray_new:function(e){var t=_vgCovidCleanCheckout.model.checkOutSummeryData;"True"==$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val()?(_vgCovidCleanCheckout.SubmitSplitTipData(),_vgCovidCleanCheckout.OpenSplitTipPopUp()):(void 0!==t&&null!=t&&""!=t&&t.length>0&&(_vgCovidCleanCheckout.model.isCheckoutFromSplittip=0==e,_vgCovidCleanCheckout.SubmitSplitTipData(),_vgCovidCleanCheckout.OpenSplitTipPopUp()),e&&(_vgCovidCleanCheckout.loadSignatureScreen(),_vgCovidCleanCheckout.NavigationManagement(_vgCovidCleanCheckout.model.divSplitScreen)))},setActiveToTipSuggetion_new:function(e){$(".tip-sug").removeClass("active"),$(e).addClass("active");for(var t=0,o=0,n=$(".tip-sug"),a=0;a<n.length;a++){$(n[a]).hasClass("active")&&(t=parseFloat($(n[a]).attr("tip-percentage")),o=parseFloat($(n[a]).attr("tip-amount")))}$(".cust-tip-input").val(""),$(".cust-tip-input").attr("placeholder","Custom"),$(".cust-tip-input").attr("tip-percentage",0),0==t?_vgCovidCleanCheckout.UpdateTipFromAddTip(0,o):_vgCovidCleanCheckout.UpdateTipFromAddTip(t,0)},loadSignatureScreen:function(){if("true"==$("#"+_vgCovidCleanCheckout.model.hdnIsThreeDS).val().toLowerCase()){var e=$.grep(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(e,t){return void 0===e.NextActionUrl||null==e.NextActionUrl||""==e.NextActionUrl?e.isProcess=!0:e.isProcess=!1,void 0!==e.NextActionUrl&&null!=e.NextActionUrl&&""!=e.NextActionUrl});null!=e&&""!=e&&e.length>0&&_vgCovidCleanCheckout.OpenIframeOfThreeDS(e[0])}else{$("#"+_vgCovidCleanCheckout.model.screenAuthentication).hide(),$("#"+_vgCovidCleanCheckout.model.divSigNature).show(),$(".chargebutton").show(),$("#"+_vgCovidCleanCheckout.model.divAddTip).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide(),_checkout.ApplyVCFFee(!1);var t=_vgCovidCleanCheckout.model.checkOutSummeryData;void 0!==t&&null!=t&&""!=t&&t.length>0&&_vgCovidCleanCheckout.CalculateSumAmtInSignature(t[0].checkoutData.tip,t[0].checkoutData.amtDue,t[0].checkoutData.ccAmt)}},findChargeCard:function(){if(0==_vgCovidCleanCheckout.model.signaturePad.isEmpty()){var e=canvas.toDataURL("image/png"),t=e.indexOf(",")+1;e=e.substring(t);var o=_vgCovidCleanCheckout.model.checkOutSummeryData;void 0!==o&&null!=o&&""!=o&&o.length>0&&(o[0].checkoutData.ccDetails.signature=e),_vgCovidCleanCheckout.SaveCheckoutData()}else _vgCovidCleanCheckout.WarningMessage("Signature required."),_vgCovidCleanCheckout.model.isclicked=1},clearCanvas:function(){_vgCovidCleanCheckout.model.signaturePad.clear(),$(".signature-here-text").show(),$("#btnEraseSignature").hide()},chargeMyCardCommon:function(){_vgCovidCleanCheckout.SaveCheckoutData()},NavigationManagement:function(e){void 0!==e&&null!=e&&""!=e&&(_vgCovidCleanCheckout.model.LastScreen=[],_vgCovidCleanCheckout.model.LastScreen.push(e))},NavigationOnBack:function(){_vgCovidCleanCheckout.model.LastScreen.length>0?($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.LastScreen[0]).css("display","flex"),_vgCovidCleanCheckout.model.LastScreen=[]):($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).css("display","flex"))},FindInitials:function(e,t){var o=/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,n=["ASS","WTF","SEX","SUK","FUK","DIE","BUM","TIT","BCH","DAM","HAH","OUT"];if(null!=e&&""!=e){var a=(e=e.replace("s+","")).split(" "),i="";if(a.length>0){for(var r=0;r<a.length;r++){var d=a[r].substr(0,1);1!=o.test(d)&&d==d.toUpperCase()&&0==_vgCovidCleanCheckout.is_numeric(d)&&(i+=d)}i.length<=0&&(i=e.substr(0,1))}else i=a[0].substr(0,1);return i.length>=3?(i=i.substr(0,3),_vgCovidCleanCheckout.Arrcontains(n,i)&&(i=i.substr(0,i.length-1)),n=null,"SP"==t?i.substr(0,2).toUpperCase():i.toUpperCase()):i.toUpperCase()}return e},is_numeric:function(e){return/^\d+$/.test(e)},Arrcontains:function(e,t){for(var o=0;o<e.length;o++)if(e[o]===t)return!0;return!1},SaveCheckoutData:function(e){if(1==_checkout.IsEnableVCFFee&&1!=e)_vgCovidCleanCheckout.model.IsFromVCFFlow=1,_checkout.CallSaveCheckoutForVCF();else _vgCovidCleanCheckout.model.checkOutSummeryData,_vgCovidCleanCheckout.CheckTimeWhileCheckOut()},LoadSuccessCheckout:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;void 0!==e&&null!=e&&""!=e&&($(".checkout-final-price").text(e[0].checkoutData.currencySymbol+e[0].checkoutData.amtPaid.toFixed(2)),$(".checkoutClass").text(e[0].checkoutData.salonName),_vgCovidCleanCheckout.CalculateSumAmtInSignature(e[0].checkoutData.tip,e[0].checkoutData.amtDue,e[0].checkoutData.ccAmt))},SetCovidCleanCheckoutFlag:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==e&&null!=e&&""!=e&&e.length>0)for(var t=0;t<e[0].checkoutData.checkoutGridrow.length;t++)e[0].checkoutData.checkoutGridrow[t].CovidCleanCheckout=e[0].CovidCleanCheckoutType,e[0].checkoutData.CovidCheckoutMongoIdentity=e[0].Id},selectStart:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==e&&null!=e&&""!=e&&e.length>0){if(void 0!==e[0].checkoutData.salonUrl&&null!=e[0].checkoutData.salonUrl&&""!=e[0].checkoutData.salonUrl){var t="";null!=$("#hdnSpEmailId").val()&&""!=$("#hdnSpEmailId").val()&&null!=$("#hdnPayeeId").val()&&""!=$("#hdnPayeeId").val()?t=$("#hdnParentDomain").val()+"/"+e[0].checkoutData.salonUrl+"/addreview?qsp="+$("#hdnSpEmailId").val()+"&uid="+$("#hdnPayeeId").val():null!=$("#hdnPayeeId").val()&&""!=$("#hdnPayeeId").val()&&(t=$("#hdnParentDomain").val()+"/"+e[0].checkoutData.salonUrl+"/addreview?uid="+$("#hdnPayeeId").val()),"true"==$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val().toLowerCase()&&(t+="&vplcheckout=1")}void 0!==t&&""!=t&&null!=t&&(window.location.href=t)}},hideShowLoader:function(e){e?$("#"+_vgCovidCleanCheckout.model.divCovidoader).show():$("#"+_vgCovidCleanCheckout.model.divCovidoader).hide()},setCCardType:function(e){void 0!==e&&null!=e&&""!=e&&(getCardType=_vgCovidCleanCheckout.model.cardType[e],"Undefined"!=typeof getCardType&&null!=getCardType&&""!=getCardType?$(".card-type").addClass(getCardType):$(".card-type").addClass(_vgCovidCleanCheckout.model.cardType.cc))},onBlurValidateCustomTip_new:function(e){var t=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==t&&null!=t&&""!=t&&t.length>0){var o=$(e).attr("tip-percentage");o=parseFloat(o);var n=$(e).val();""!=n&&(n=n.replace(t[0].checkoutData.currencySymbol,""),n=parseFloat(n)),void 0!==n&&null!=n&&""!=n&&n>=0?($(e).val(""),$(e).attr("placeholder",t[0].checkoutData.currencySymbol+n.toFixed(2)+""),$(e).attr("tip-percentage",n.toFixed(2))):($(e).val(""),$(e).attr("placeholder","Custom"),$(e).attr("tip-percentage",0),n=0)}_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,_vgCovidCleanCheckout.UpdateTipFromAddTip(0,n)},onFocusValidateCustomTip:function(e,t){$(".tip-sug").removeClass("active"),$(e).addClass("active"),$(e).removeAttr("placeholder"),_vgCovidCleanCheckout.makeCurrencySymbolInTextbox(e,t)},validateCustomTipKeyPress:function(e,t){if(!(8!=t.charCode&&0==t.charCode||46==t.charCode||t.charCode>=48&&t.charCode<=57))return!1;if(46==t.charCode||t.charCode>=48&&t.charCode<=57){var o=e.value||"",n="number"==typeof e.selectionStart?e.selectionStart:o.length,a="number"==typeof e.selectionEnd?e.selectionEnd:o.length,i=(o.substring(0,n)+String.fromCharCode(t.charCode)+o.substring(a)).replace(/^[^0-9.]*/,"");if(46==t.charCode&&!/[1-9]/.test(i.split(".")[0]))return!1}return!0},enforceCustomTipMinimum:function(e){var t,o=e.value||"",n=o.replace(/^[^0-9.]*/,""),a=parseFloat(n);(t=a>0&&a<1?"0":n.replace(/^0+(?=\d)/,""))!==n&&(e.value=o.substring(0,o.length-n.length)+t)},SuccessMessage:function(e,t){String.isNullOrUndefineOrBlank(t)&&(t=2e3),$(".success").addClass("active"),$("#suctext").text(e),setTimeout(function(){$(".wartext").removeClass("active")},t)},WarningMessage:function(e,t){String.isNullOrUndefineOrBlank(t)&&(t=2e3),$(".warning").addClass("active"),$("#wartext").text(e),setTimeout(function(){$(".warning").removeClass("active")},t)},FailedMessage:function(e,t){String.isNullOrUndefineOrBlank(t)&&(t=2e3),$(".fail").addClass("active"),$("#failtext").text(e),setTimeout(function(){$(".fail").removeClass("active")},t)},GetSumOfProdcutOrService:function(e,t){var o=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==o&&null!=o&&""!=o&&o.length>0){var n=0,a=!1;if(_vgCovidCleanCheckout.model.TotalPaidCount=0,0==$.grep(o[0].checkoutData.checkoutGridrow,function(e){return e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType}).length||1==t){a=!0;var i=$.grep(o[0].checkoutData.checkoutGridrow,function(e){return e.recordType==_vgCovidCleanCheckout.model.ItemType.Product});_vgCovidCleanCheckout.model.TotalPaidCount=i.length}var r=0;return String.isNullOrUndefineOrBlank(e)||(r=e),$.each(o[0].checkoutData.checkoutGridrow,function(e,i){if(i.recordType!==_vgCovidCleanCheckout.model.ItemType.Service&&i.recordType!==_vgCovidCleanCheckout.model.ItemType.Class&&i.recordType!==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType&&i.recordType!==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType||0!=a||0!=r&&i.serviceProviderID!=r){if(i.recordType===_vgCovidCleanCheckout.model.ItemType.Product&&1==a&&(0==r||i.serviceProviderID==r)){0==$.grep(o[0].checkoutData.checkoutGridrow,function(e){return e.serviceProviderID==i.serviceProviderID&&(e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType)&&1!=t}).length&&(n=_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.discountedPrice,!1,2),!1,2))}}else i.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&i.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDepositPrepay&&(_vgCovidCleanCheckout.model.TotalPaidCount+=1,n=i.paidType==_vgCovidCleanCheckout.model.PaidType.Deposit&&0==_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.discountedPrice,!1,2)?100==_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.discount)?_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.price,!1,2)+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.deposit,!1,2),!1,2):_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.discountedPrice,!1,2),!1,2):i.paidType!=_vgCovidCleanCheckout.model.PaidType.Prepay||i.recordType!==_vgCovidCleanCheckout.model.ItemType.Service&&i.recordType!==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||1!=i.isPaid?i.paidType==_vgCovidCleanCheckout.model.PaidType.Prepay&&0==_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.discountedPrice,!1,2)?_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.OriginalPrepaidPrice,!1,2)):0==o[0].checkoutData.amtDue&&i.paidType!=_vgCovidCleanCheckout.model.PaidType.Prepay&&i.paidType!=_vgCovidCleanCheckout.model.PaidType.Deposit?_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.price,!1,2)):i.deposit>0?_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.discountedPrice,!1,2)+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.deposit,!1,2),!1,2):_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.originalServicePriceForPackage,!1,2),!1,2):_vgCovidCleanCheckout.ConvertDecimalWithFixed(n+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.price,!1,2)+_vgCovidCleanCheckout.ConvertDecimalWithFixed(i.prepayAmount,!1,2),!1,2))}),n>0?n:0}},GetDiscountedPrice:function(e,t){return _vgCovidCleanCheckout.ConvertDecimalWithFixed(e*t/100,!1,2)},InitializeCCConfimationPopup:function(e){var t=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==t&&null!=t&&""!=t&&t.length>0)try{t[0].checkoutData.isPrint=t[0].checkoutData.isPrintSetting;$.grep(t[0].checkoutData.checkoutGridrow,function(e){return e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.Product||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType});0==t[0].checkoutData.isSignatureEnabled?t[0].checkoutData.isPrint=!(t[0].checkoutData.vplAmt>0&&t[0].checkoutData.ccAmt<=0):t[0].checkoutData.isPrint=!1;var o=$.extend(!0,new Array,t[0].checkoutData.RedeemedByGC);$.each(t[0].checkoutData.checkoutGridrow,function(e,o){if(1===o.membershipAssignStatus){var n={};n.BusinessID=t[0].checkoutData.businessID,n.RedeemBusinessId=o.RedeemBusinessId,n.UserID=o.MSUserId,n.RedeemUserID=o.userID,n.MembershipID=o.membershipId,n.MembershipItemId=_vgCovidCleanCheckout.ConvertInt(o.membershipItemId),n.ItemType="1"==o.recordType?"1":"8"==o.recordType?"2":"3",n.VisitUsed="1"==o.recordType||"8"==o.recordType?1:o.membershipProductVisit,n.Type=2,n.GroupId=o.membershipGroupId,n.IsUnlimitedVisit=o.IsUnlimitedVisit,n.ServiceProductName=o.itemName,o.MembershipRedeemedDetails=n}void 0!==t[0].checkoutData.IsIncludeTaxInOnlinePricing&&1==t[0].checkoutData.IsIncludeTaxInOnlinePricing&&o.paidType==_vgCovidCleanCheckout.model.PaidType.Deposit&&(o.priceWithTax=_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.payableAmount-o.AmountPaid<0?0:o.payableAmount-o.AmountPaid,!0,2),t[0].checkoutData.IsFromCheckoutScreen=!0)}),_vgCovidCleanCheckout.hideShowLoader(!0);var n={};t[0].checkoutData.distributionRequestType=e,1==_checkout.isConsiderVCF&&1==_checkout.IsEnableVCFFee?t[0].checkoutData.IsVCFDistribution=!0:t[0].checkoutData.IsVCFDistribution=!1,"0"===$("#hdnIsSplitTip").val()&&0==_vgCovidCleanCheckout.IsAnyZeroPriceService()&&IsVPLCheckout&&IsCCCheckout&&_vgCovidCleanCheckout.SetFinalTipValue(),n.checkoutData=t[0].checkoutData,void 0!==$("#hdnStripeRadarSession").val()&&(n.checkoutData.StripeRadarSession=$("#hdnStripeRadarSession").val());var a=new vagaro.ajax;a.datamodel.Token="SaveCheckout",a.datamodel.data=n,a.datamodel.callback=_vgCovidCleanCheckout.InitializeCCConfimationPopup_Success,a.datamodel.Error=_vgCovidCleanCheckout.InitializeCCConfimationPopup_Failed,a.Post(),t[0].checkoutData.RedeemedByGC=o}catch(e){_vgCovidCleanCheckout.model.isProcessTipDistribution=!1}},InitializeCCConfimationPopup_Success:function(e){try{_vgCovidCleanCheckout.hideShowLoader(!1);var t=_vgCovidCleanCheckout.model.checkOutSummeryData;if(null!==e){if(t[0].checkoutData.Token=e.Token,e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.OldVersion||e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.ConfigurationMismatch)return _vgCovidCleanCheckout.FailedMessage("something went wrong"),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,!1;if(e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.TokenMissMatch)return _vgCovidCleanCheckout.FailedMessage("TokenMissMatch","Save Checkout"),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,!1;if(e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.ServiceMismatch)return _vgCovidCleanCheckout.hideShowLoader(!1),_vgCovidCleanCheckout.FailedMessage(_vgCovidCleanCheckout.formatMessage(e.resultMessage)),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,!1;if(t[0].checkoutData.ccAmt>0&&(t[0].checkoutData.isRetailAccount=e.isRetailAccount),null!==e.ccDistribution&&e.ccDistribution.length>0){var o=0;if(_checkout.isConsiderVCF=!1,t[0].checkoutData.ccDetails.ccDistribution=$.extend(!0,new Array,e.ccDistribution),e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.VCFDistribution)return 2==_vgCovidCleanCheckout.model.IsFromVCFFlow?_vgCovidCleanCheckout.VcfWithccvplCheckout(!0):_vgCovidCleanCheckout.SaveCheckoutData(!0),!1;if(_checkout.ApplyVCFFee(!1),$.each(t[0].checkoutData.ccDetails.ccDistribution,function(e,n){n.merchantType===_vgCovidCleanCheckout.model.DistributeType.General?(1==t[0].checkoutData.distributionRequestType&&t[0].checkoutData.merchantAccountModeType===t[0].checkoutData.IndividualAccount&&n.ccAmount>0&&n.serviceproviderId.toString()===t[0].checkoutData.shopOwnerId.toString()&&(o=_vgCovidCleanCheckout.ConvertDecimalWithFixed(o+n.ccAmount,!1,2)),n.ccAmount):n.merchantType===_vgCovidCleanCheckout.model.DistributeType.Retail?n.ccAmount:n.merchantType!==_vgCovidCleanCheckout.model.DistributeType.Membership&&n.merchantType!==_vgCovidCleanCheckout.model.DistributeType.ShopOwner||n.ccAmount}),t[0].checkoutData.merchantAccountModeType===t[0].checkoutData.IndividualAccount)$.grep(t[0].checkoutData.ccDetails.ccDistribution,function(e){return _vgCovidCleanCheckout.model.isProcessTipDistribution=!1,e.merchantType==_vgCovidCleanCheckout.model.DistributeType.General});1==_vgCovidCleanCheckout.model.isCheckoutFromSplittip&&_vgCovidCleanCheckout.SaveCheckoutData()}else 0===e.resultType&&void 0!==e.resultMessage&&null!=e.resultMessage&&""!=e.resultMessage&&_vgCovidCleanCheckout.FailedMessage(_vgCovidCleanCheckout.formatMessage(e.resultMessage))}}catch(e){}_vgCovidCleanCheckout.model.isProcessTipDistribution=!1},InitializeCCConfimationPopup_Failed:function(){_vgCovidCleanCheckout.hideShowLoader(!1),_vgCovidCleanCheckout.FailedMessage("Our system indicates that there is some network related error occures. Please refresh your browser and try again!"),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1},ConvertDecimalWithFixed:function(e,t,o){return isNaN(parseFloat(e))&&(e=0),t?parseFloat(e).toFixed(o):parseFloat(parseFloat(e).toFixed(o))},UpdateTipFromAddTip:function(e,t){var o=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==o&&null!=o&&""!=o&&o.length>0){_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.vplAmt>0&&_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccAmt<=0&&(_vgCovidCleanCheckout.model.isProcessTipDistribution=!1);var n=0;if(0!=e){var a=_vgCovidCleanCheckout.GetSumOfProdcutOrService();a<=0&&(a=_vgCovidCleanCheckout.GetSumOfProdcutOrService(null,!0)),n=_vgCovidCleanCheckout.GetDiscountedPrice(a,e),_vgCovidCleanCheckout.model.tipPercentageValue=e}else _vgCovidCleanCheckout.model.tipPercentageValue="0",n=t;if(_vgCovidCleanCheckout.ClearSplitTipPopUp(!1),_vgCovidCleanCheckout.MakeTipReadOnlyOrNot(),_vgCovidCleanCheckout.AssignTip(0!=e?o[0].checkoutData.tip:n),void 0!==o[0].checkoutData.suggestedTipValues&&null!=o[0].checkoutData.suggestedTipValues&&""!=o[0].checkoutData.suggestedTipValues&&0!=o[0].checkoutData.suggestedTipValues){var i=_vgCovidCleanCheckout.validateOfflineDeposit(o[0].checkoutData);_vgCovidCleanCheckout.hideShowButtonOnAllScreen(o[0].checkoutData.isSignatureEnabled,i,o[0].checkoutData.thresholdAmount)}else _vgCovidCleanCheckout.hideShowButtonOnAllScreen(o[0].checkoutData.isSignatureEnabled,!1,o[0].checkoutData.thresholdAmount)}},IsAnyZeroPriceService:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;return 0==$.grep(e[0].checkoutData.checkoutGridrow,function(e){return(e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType)&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.NoShowCancellationFee})?$.grep(e[0].checkoutData.checkoutGridrow,function(e){return e.recordType==_vgCovidCleanCheckout.model.ItemType.Product&&0==parseFloat(e.originalServicePriceForPackage)}).length>0:$.grep(e[0].checkoutData.checkoutGridrow,function(e){return(e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType)&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.NoShowCancellationFee&&0==parseFloat(e.originalServicePriceForPackage)}).length>0},SetFinalTipValue:function(){var e=0,t=0,o=0,n=_vgCovidCleanCheckout.model.checkOutSummeryData;n[0].checkoutData.tip>0&&"0"==_vgCovidCleanCheckout.model.tipPercentageValue&&((o=_vgCovidCleanCheckout.GetSumOfProdcutOrService())<=0&&(o=_vgCovidCleanCheckout.GetSumOfProdcutOrService(null,!0)),o>0&&(_vgCovidCleanCheckout.model.tipPercentageValue=_vgCovidCleanCheckout.ConvertDecimalWithFixed(100*n[0].checkoutData.tip/o,!1,2)));var a=!1;0==$.grep(n[0].checkoutData.checkoutGridrow,function(e){return(e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType)&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.NoShowCancellationFee}).length&&(a=!0),$.each(n[0].checkoutData.checkoutGridrow,function(i,r){var d=0;if(r.recordType!==_vgCovidCleanCheckout.model.ItemType.Service&&r.recordType!==_vgCovidCleanCheckout.model.ItemType.Class&&r.recordType!=_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType&&r.recordType!=_vgCovidCleanCheckout.model.ItemType.ClassAddonsType||0!=a){if(r.recordType===_vgCovidCleanCheckout.model.ItemType.Product&&1==a){0==$.grep(n[0].checkoutData.checkoutGridrow,function(e){return(e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType)&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDepositPrepay&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.NoShowCancellationFee}).length&&(d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.discountedPrice,!1,2),!1,2))}}else r.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&r.paidType!=_vgCovidCleanCheckout.model.PaidType.NoShowCancellationFee&&(r.paidType==_vgCovidCleanCheckout.model.PaidType.Deposit&&0==_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.discountedPrice,!1,2)?d=100==_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.discount)?_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.price,!1,2)+_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.deposit,!1,2),!1,2):_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.discountedPrice,!1,2),!1,2):r.paidType!=_vgCovidCleanCheckout.model.PaidType.Prepay||r.recordType!==_vgCovidCleanCheckout.model.ItemType.Service&&r.recordType!==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||1!=r.isPaid?r.paidType==_vgCovidCleanCheckout.model.PaidType.Prepay&&0==_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.discountedPrice,!1,2)?d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.OriginalPrepaidPrice,!1,2)):0==n[0].checkoutData.amtDue&&r.paidType!=_vgCovidCleanCheckout.model.PaidType.Prepay&&r.paidType!=_vgCovidCleanCheckout.model.PaidType.Deposit?d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.price,!1,2)):1==r.packageAssignStatus||1==r.membershipAssignStatus||1==r.pointAssignStatus?d+=_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.originalServicePriceForPackage,!1,2):d=r.deposit>0?_vgCovidCleanCheckout.ConvertDecimalWithFixed(d+_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.discountedPrice,!1,2)+_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.deposit,!1,2),!1,2):_vgCovidCleanCheckout.ConvertDecimalWithFixed(d+_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.originalServicePriceForPackage,!1,2),!1,2):d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.price,!1,2)+_vgCovidCleanCheckout.ConvertDecimalWithFixed(r.prepayAmount,!1,2),!1,2));d>0&&(calculatedTip=0,(e=++e)==_vgCovidCleanCheckout.model.TotalPaidCount?calculatedTip=n[0].checkoutData.tip-t:calculatedTip=d*_vgCovidCleanCheckout.model.tipPercentageValue/100,r.calculatedTip=_vgCovidCleanCheckout.ConvertDecimalWithFixed(calculatedTip,!1,2),t+=parseFloat(r.calculatedTip)),0==d&&0==o&&(0==a&&r.recordType==_vgCovidCleanCheckout.model.ItemType.Service||r.recordType==_vgCovidCleanCheckout.model.ItemType.Class||r.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||r.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType||1==a&&r.recordType==_vgCovidCleanCheckout.model.ItemType.Product)&&(calculatedTip=0,(e=++e)==_vgCovidCleanCheckout.model.TotalPaidCount?calculatedTip=n[0].checkoutData.tip-t:calculatedTip=n[0].checkoutData.tip/_vgCovidCleanCheckout.model.TotalPaidCount,r.calculatedTip=_vgCovidCleanCheckout.ConvertDecimalWithFixed(calculatedTip,!1,2),t+=parseFloat(r.calculatedTip))})},DistributedTipInObject:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==e&&null!=e&&""!=e&&e.length>0&&(0==_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.tip,!1,2)&&null!=e[0].checkoutData.checkoutGridrow&&$.each(e[0].checkoutData.checkoutGridrow,function(e,t){t.calculatedTip=0}),"0"===$("#hdnIsSplitTip").val()&&e[0].checkoutData.splitTip.length>0)){var t=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.tip/e[0].checkoutData.splitTip.length,!1,2),o=0;$.each(e[0].checkoutData.splitTip,function(n,a){var i=n===e[0].checkoutData.splitTip.length-1?e[0].checkoutData.tip-o:t;o+=i,a.tipAmt=_vgCovidCleanCheckout.ConvertDecimalWithFixed(i,!0,2)})}},ConvertInt:function(e){return isNaN(parseInt(e))&&(e=0),parseInt(e,10)},SetPayAmountsInTextbox:function(e,t){var o=_vgCovidCleanCheckout.model.checkOutSummeryData;t=_vgCovidCleanCheckout.removePrefixSuffixCurrencySymbol(t),e===_vgCovidCleanCheckout.model.AmountType.CC?(o[0].checkoutData.ccAmt=_vgCovidCleanCheckout.ConvertDecimalWithFixed(t,!1,2),o[0].checkoutData.vplAmt>0&&(IsVPLCheckout=!0),IsCCCheckout=!0):e===_vgCovidCleanCheckout.model.AmountType.VPL&&(o[0].checkoutData.vplAmt=_vgCovidCleanCheckout.ConvertDecimalWithFixed(t,!1,2),IsVPLCheckout=!0),_vgCovidCleanCheckout.CalculateAmountsPaidByUser()},removePrefixSuffixCurrencySymbol:function(e){var t=e;return t.toString().indexOf("$")>=0?t=t.replace("$",""):t.toString().indexOf("£")>=0?t=t.replace("£",""):t.toString().indexOf("%")>=0&&(t=t.replace("%","")),t},CalculateAmountsPaidByUser:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;e[0].checkoutData.amtPaid=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.cashAmt+e[0].checkoutData.chequeAmt+e[0].checkoutData.gcAmt+e[0].checkoutData.ccAmt+e[0].checkoutData.vplAmt,!1,2),e[0].checkoutData.changeDue=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.amtPaid+e[0].checkoutData.IOUAmt-e[0].checkoutData.amtDue,!1,2)},AssignTip:function(e){if(0==_vgCovidCleanCheckout.model.isProcessTipDistribution)try{_vgCovidCleanCheckout.model.isProcessTipDistribution=!0;var t=_vgCovidCleanCheckout.model.checkOutSummeryData,o=t[0].checkoutData.tip;if("0"!=_vgCovidCleanCheckout.model.tipPercentageValue&&o==e){var n=_vgCovidCleanCheckout.GetSumOfProdcutOrService();n<=0&&(n=_vgCovidCleanCheckout.GetSumOfProdcutOrService(null,!0)),e=_vgCovidCleanCheckout.GetDiscountedPrice(n,_vgCovidCleanCheckout.model.tipPercentageValue)}else o!=e&&(_vgCovidCleanCheckout.model.tipPercentageValue="0");if(t[0].checkoutData.tip=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e,!1,2),_vgCovidCleanCheckout.DistributedTipInObject(),_vgCovidCleanCheckout.SetChargesTextbox(),o!=t[0].checkoutData.tip||"1"==$("#hdnIsSplitTip").val())if(1==t[0].checkoutData.IsVPLPayment&&t[0].checkoutData.ccAmt<=0){var a=t[0].checkoutData.vplAmt+(t[0].checkoutData.tip-o);a<0&&(a=0),_vgCovidCleanCheckout.SetPayAmountsInTextbox(_vgCovidCleanCheckout.model.AmountType.VPL,a),_vgCovidCleanCheckout.InitializeCCConfimationPopup(1),_vgCovidCleanCheckout.CalculateSumAmtInSignature(t[0].checkoutData.tip,t[0].checkoutData.vplAmt,0)}else{var i=t[0].checkoutData.ccAmt+(t[0].checkoutData.tip-o);i<0&&(i=0),_vgCovidCleanCheckout.SetPayAmountsInTextbox(_vgCovidCleanCheckout.model.AmountType.CC,i),_vgCovidCleanCheckout.InitializeCCConfimationPopup(1),_vgCovidCleanCheckout.CalculateSumAmtInSignature(t[0].checkoutData.tip,t[0].checkoutData.amtDue,t[0].checkoutData.ccAmt)}else _vgCovidCleanCheckout.model.isProcessTipDistribution=!1,1==_vgCovidCleanCheckout.model.isCheckoutFromSplittip&&_vgCovidCleanCheckout.SaveCheckoutData()}catch(e){_vgCovidCleanCheckout.model.isProcessTipDistribution=!1}},OpenSplitTipPopUp:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(e[0].checkoutData.tip>0)for(var t=$(".tipsp"),o=0;o<t.length;o++)objResult=$.grep(e[0].checkoutData.splitTip,function(e){return e.serviceProviderID==$(t[o]).attr("spid")}),objResult.length>0&&$(t[o]).val(_vgCovidCleanCheckout.ConvertDecimalWithFixed(objResult[0].tipAmt,!0,2));_vgCovidCleanCheckout.setSplitTipLableValue()},SubmitSplitTipData:function(){for(var e=_vgCovidCleanCheckout.model.checkOutSummeryData,t=0,o=$(".tipsp"),n=0;n<o.length;n++)tipAmt=_vgCovidCleanCheckout.ConvertDecimalWithFixed($(o[n]).val(),!1,2),spID=$(o[n]).attr("spid"),$.each(e[0].checkoutData.splitTip,function(e,t){if(t.serviceProviderID.toString()===spID)return t.tipAmt=tipAmt,!1}),t+=tipAmt;$("#hdnIsSplitTip").val(t>0?"1":"0"),t>0&&(_vgCovidCleanCheckout.model.tipPercentageValue="0"),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,_vgCovidCleanCheckout.AssignTip(t)},CalculateSumAmtInSignature:function(e,t,o){var n=_vgCovidCleanCheckout.model.checkOutSummeryData,a=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e,!0,2),i=_checkout.GetVCFFeeAmount(!1);if(i>0&&(o+=i),n[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==n[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+n[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?"),a>0){var r=t-e;$(".cccharge-tip").text("("+n[0].checkoutData.currencySymbol+r.toLocaleString("en",{minimumFractionDigits:2})+" + "+n[0].checkoutData.currencySymbol+e.toLocaleString("en",{minimumFractionDigits:2})+" tip)"),$(".cccharge-pertage").text(n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2})),$(".ccbtn-price").text(n[0].checkoutData.currencySymbol+o.toLocaleString("en",{minimumFractionDigits:2})),$(".addtip-tip").text("("+n[0].checkoutData.currencySymbol+r.toLocaleString("en",{minimumFractionDigits:2})+" + "+n[0].checkoutData.currencySymbol+e.toLocaleString("en",{minimumFractionDigits:2})+" tip)"),$(".addtip-pertage").text(n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2})),$(".splittip-tip").text("("+n[0].checkoutData.currencySymbol+r.toLocaleString("en",{minimumFractionDigits:2})+" + "+n[0].checkoutData.currencySymbol+e.toLocaleString("en",{minimumFractionDigits:2})+" tip)"),$(".splittip-pertage").text(n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2}))}else $(".cccharge-tip").text(""),$(".cccharge-pertage").text(n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2})),$(".ccbtn-price").text(n[0].checkoutData.currencySymbol+o.toLocaleString("en",{minimumFractionDigits:2})),$(".addtip-tip").text(""),$(".addtip-pertage").text(n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2})),$(".splittip-tip").text(""),$(".splittip-pertage").text(n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2}));if(n[0].checkoutData.ccAmt>0&&n[0].checkoutData.vplAmt>0){if(a>0){var d=n[0].checkoutData.ccAmt-e;$(".cccharge-tip").text("("+n[0].checkoutData.currencySymbol+d.toLocaleString("en",{minimumFractionDigits:2})+" + "+n[0].checkoutData.currencySymbol+e.toLocaleString("en",{minimumFractionDigits:2})+" tip)")}else $(".cccharge-tip").text("");$(".cccharge-pertage").text(n[0].checkoutData.currencySymbol+n[0].checkoutData.ccAmt.toLocaleString("en",{minimumFractionDigits:2})),$("."+_vgCovidCleanCheckout.model.divCCCharge).html(n[0].checkoutData.currencySymbol+n[0].checkoutData.ccAmt.toLocaleString("en",{minimumFractionDigits:2})),$("."+_vgCovidCleanCheckout.model.divCCVPLTotal).html("Total: "+n[0].checkoutData.currencySymbol+t.toLocaleString("en",{minimumFractionDigits:2}))}$("#hdnVPLTipAmnt").text(a)},ClearTipData:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;$("#hdnIsSplitTip").val("0"),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,_vgCovidCleanCheckout.AssignTip(0),e[0].checkoutData.splitTip=new Array},MakeTipReadOnlyOrNot:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;0===$.grep(e[0].checkoutData.checkoutGridrow,function(e){return(e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.Product||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType)&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDeposit&&e.paidType!=_vgCovidCleanCheckout.model.PaidType.OfflineDepositPrepay}).length&&_vgCovidCleanCheckout.ClearTipData()},ClearSplitTipPopUp:function(e){var t=_vgCovidCleanCheckout.ConvertDecimalWithFixed(0,!0,2);$("#hdnIsSplitTip").val("0"),e&&(_vgCovidCleanCheckout.AssignTip(t),_vgCovidCleanCheckout.MakeTipReadOnlyOrNot())},ManageSpliTipTextbox:function(e){var t=$(e).val();t=t>0?t:0,$(e).val(parseFloat(t).toFixed(2)),_vgCovidCleanCheckout.setSplitTipLableValue()},SplitTipSuggetionBox:function(e){for(var t=$(e).attr("suggetionid"),o=$(".split-input-dd"),n=0;n<o.length;n++){t!="sug"+n?$(".sug"+n).hide():$("."+t).toggle()}},ClickTipOptionFromPage:function(e,t,o){var n=$(o).attr("suggetionlinkid");$("input[suggetionid="+n+"]").val(parseFloat(e).toFixed(2)),$("."+n).hide(),_vgCovidCleanCheckout.setSplitTipLableValue()},VPLCheckoutTimerCheck:function(e){_checkout.ApplyVCFFee(!1);var t=_vgCovidCleanCheckout.model.checkOutSummeryData,o={};o.dtDate=t[0].createdDate,o.strObjectId=_vgCovidCleanCheckout.model.checkOutSummeryData[0].Id;var n=new vagaro.ajax;n.datamodel.Token="CheckCovidCleanCheckoutTime",n.datamodel.data=o,n.datamodel.callback=function(t){if(null!==t&&1==t){if(1==e){(r=_vgCovidCleanCheckout.model.checkOutSummeryData)[0].checkoutData.splitTip.length>1?($(".split-box").show(),$("."+_vgCovidCleanCheckout.model.btnSplitTip).show(),$("#vplsplitbutton").show()):($(".split-box").hide(),$("."+_vgCovidCleanCheckout.model.btnSplitTip).hide(),$("#vplsplitbutton").hide());var o=$.grep(r[0].checkoutData.checkoutGridrow,function(e){var t=e.recordType,o=e.barcodeID;if(1!==e.pointAssignStatus){if(t===_vgCovidCleanCheckout.model.ItemType.Membership)return e;if(t===_vgCovidCleanCheckout.model.ItemType.GC){if(o.toLowerCase()===_vgCovidCleanCheckout.model.ItemCode.Package.toLowerCase())return e;if(o.toLowerCase()===_vgCovidCleanCheckout.model.ItemCode.GC.toLowerCase())return e}else if(o.toLowerCase()===_vgCovidCleanCheckout.model.ItemCode.IOU.toLowerCase())return e}}),n=$.grep(r[0].checkoutData.checkoutGridrow,function(e){return e.recordType==_vgCovidCleanCheckout.model.ItemType.Service||e.recordType==_vgCovidCleanCheckout.model.ItemType.Class||e.recordType==_vgCovidCleanCheckout.model.ItemType.Product||e.recordType==_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType||e.recordType==_vgCovidCleanCheckout.model.ItemType.ClassAddonsType}),a=$.grep(r[0].checkoutData.checkoutGridrow,function(e){if(e.paidType==_vgCovidCleanCheckout.model.PaidType.OfflineDeposit||e.paidType==_vgCovidCleanCheckout.model.PaidType.OfflineDepositPrepay)return _vgCovidCleanCheckout.model.IsDepositAppWithVPL=!0,e});if(void 0!==o&&o.length>0||void 0!==a&&a.length>0)if($("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).hide(),ShowLoader(!0),n.length>0&&(void 0===a||0==a.length))$("#VplCheckoutScreen2 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).hide(),_vgCovidCleanCheckout.setSuggestedTipOptionVPLCheckout(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).show(),ShowLoader(!1);else if(r[0].checkoutData.ccAmt>0&&r[0].checkoutData.vplAmt>0)$("#SplitPaymentScreen ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreen).show(),ShowLoader(!1);else if(r[0].checkoutData.isSignatureEnabled)_vgCovidCleanCheckout.hideShowLoader(!1),$("#"+_vgCovidCleanCheckout.model.screenAuthentication).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide(),$("#"+_vgCovidCleanCheckout.model.divSigNature).show(),$(".chargebutton").hide(),$("#"+_vgCovidCleanCheckout.model.divNextSign).show();else{var i=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val(),r=_vgCovidCleanCheckout.model.checkOutSummeryData,d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r[0].checkoutData.vplAmt.toFixed(2),!1,2),!1,2),l=r[0].checkoutData.vplAmt.toLocaleString("en",{minimumFractionDigits:2});$(".totalVPLAmtpay").text("$"+l),_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm?_checkout.PaymentSchduleSuccess():_vgVPLOnline.PaymentSchedule(d.toFixed(2),_checkout.PaymentSchduleSuccess,_checkout.PaymentSchdulefail)}else _vgCovidCleanCheckout.setSuggestedTipOptionVPLCheckout(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTotalDue).hide(),$("#VplCheckoutScreen2 ."+_vgCovidCleanCheckout.model.chechoutBackArrowVpl).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).show()}else if(2==e){ShowLoader(!0);i=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val(),r=_vgCovidCleanCheckout.model.checkOutSummeryData,d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r[0].checkoutData.vplAmt.toFixed(2),!1,2),!1,2),l=r[0].checkoutData.vplAmt.toLocaleString("en",{minimumFractionDigits:2});var s=d;s<Math.round($("#hdnVplMinAmount").val())?(_vgCovidCleanCheckout.hideShowLoader(!1),$(".popupMinMaxMsgVPLamt").text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" is not available for any transaction with a total below $"+$("#hdnVplMinAmount").val()+". Please update the amount or choose a different payment method."),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,$("#vpl-applied").show(),$("#vpl-applied").modal("show"),$("#"+_vgCovidCleanCheckout.model.vplAppliedPopup).css("display","flex"),$(".modal:visible").each(function(e,t){centerModal(t)})):s>Math.round($("#hdnVplMaxAmount").val())?(_vgCovidCleanCheckout.hideShowLoader(!1),$(".popupMinMaxMsgVPLamt").text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" is not available for any transaction with a total over $"+$("#hdnVplMaxAmount").val()+". Please update the amount or choose a different payment method."),_vgCovidCleanCheckout.model.isProcessTipDistribution=!1,$("#vpl-applied").show(),$("#vpl-applied").modal("show"),$("#"+_vgCovidCleanCheckout.model.vplAppliedPopup).css("display","flex"),$(".modal:visible").each(function(e,t){centerModal(t)})):($("#"+_vgCovidCleanCheckout.model.divSplitScreen).hide(),r[0].checkoutData.isSignatureEnabled?(_vgCovidCleanCheckout.hideShowLoader(!1),$("#"+_vgCovidCleanCheckout.model.screenAuthentication).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide(),$("#"+_vgCovidCleanCheckout.model.divSigNature).show(),$(".chargebutton").hide(),$("#"+_vgCovidCleanCheckout.model.divNextSign).show()):IsBackTransaction?0==r[0].checkoutData.isSignatureEnabled&&(_vgCovidCleanCheckout.hideShowLoader(!1),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).show()):($(".totalVPLAmtpay").text("$"+l),_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm?_checkout.PaymentSchduleSuccess():_vgVPLOnline.PaymentSchedule(d,_checkout.PaymentSchduleSuccess,_checkout.PaymentSchdulefail),$("#totalAmtVplCheckoutScreen3").text("$"+l)))}else if(3==e){r=_vgCovidCleanCheckout.model.checkOutSummeryData,d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r[0].checkoutData.vplAmt.toFixed(2),!1,2),!1,2);if(1==r[0].checkoutData.isSignatureEnabled&&0==_vgCovidCleanCheckout.model.signaturePad.isEmpty()){var c=canvas.toDataURL("image/png"),u=c.indexOf(",")+1;c=c.substring(u),void 0!==r&&null!=r&&""!=r&&r.length>0&&(r[0].checkoutData.ccDetails.signature=c),_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm?(ShowLoader(!0),_vgCovidCleanCheckout.VcfWithccvplCheckout()):_checkout.VplCheckoutScreen(d,_checkout.PaymentSchduleSuccess,_checkout.PaymentSchdulefail)}else{if(1==r[0].checkoutData.isSignatureEnabled&&1==_vgCovidCleanCheckout.model.signaturePad.isEmpty())return _vgCovidCleanCheckout.WarningMessage("Signature required."),_vgCovidCleanCheckout.model.isclicked=1,!1;_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm?(ShowLoader(!0),_vgCovidCleanCheckout.VcfWithccvplCheckout()):_checkout.VplCheckoutScreen(d,_checkout.PaymentSchduleSuccess,_checkout.PaymentSchdulefail)}}else if(4==e){if(1==(r=_vgCovidCleanCheckout.model.checkOutSummeryData)[0].checkoutData.isSignatureEnabled&&1==_vgCovidCleanCheckout.model.signaturePad.isEmpty())return _vgCovidCleanCheckout.WarningMessage("Signature required."),void(_vgCovidCleanCheckout.model.isclicked=1);(i=_vgCovidCleanCheckout.responseCovidSummuryCCVPL())[0].checkoutData.ccAmt>0&&i[0].checkoutData.vplAmt>0&&($("#"+_vgCovidCleanCheckout.model.divSigNature).hide(),$("#"+_vgCovidCleanCheckout.model.divSplitPaymentScreenVPL).show(),_vgCovidCleanCheckout.showSplitPaymentScreenVPL());d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(_vgCovidCleanCheckout.ConvertDecimalWithFixed(r[0].checkoutData.vplAmt.toFixed(2),!1,2),!1,2),l=r[0].checkoutData.vplAmt.toLocaleString("en",{minimumFractionDigits:2});$(".totalVPLAmtpay").text("$"+l),_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm?_checkout.PaymentSchduleSuccess():_vgVPLOnline.PaymentSchedule(d,_checkout.PaymentSchduleSuccess,_checkout.PaymentSchdulefail),$("#totalAmtVplCheckoutScreen3").text("$"+l)}}else $(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show(),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show(),_vgCovidCleanCheckout.lableChangeTimeoutScreen()},n.Post()},CheckTimeWhileCheckOut:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData,t={};t.dtDate=e[0].createdDate,t.strObjectId=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.CovidCheckoutMongoIdentity;var o=new vagaro.ajax;o.datamodel.Token="CheckCovidCleanCheckoutTime",o.datamodel.data=t,o.datamodel.callback=function(t){if(null!==t&&1==t){if(void 0!==e&&null!=e&&""!=e&&e.length>0){"true"!=$("#"+_vgCovidCleanCheckout.model.hdnIsThreeDS).val().toLowerCase()&&_vgCovidCleanCheckout.hideShowLoader(!0);var o={};e[0].checkoutData.distributionRequestType=2,0==e[0].checkoutData.ccAmt&&(e[0].checkoutData.isMerchantsNeededForEMV=0,e[0].checkoutData.emvTransactionType=0),"0"!==$("#hdnIsSplitTip").val()||0!=_vgCovidCleanCheckout.IsAnyZeroPriceService()||IsCCCheckout||(_vgCovidCleanCheckout.SetFinalTipValue(),e[0].checkoutData.splitTip=new Array),o.checkoutData=e[0].checkoutData,void 0!==$("#hdnStripeRadarSession").val()&&(o.checkoutData.StripeRadarSession=$("#hdnStripeRadarSession").val()),void 0!==e[0].checkoutData.IsIncludeTaxInOnlinePricing&&1==e[0].checkoutData.IsIncludeTaxInOnlinePricing&&$.each(e[0].checkoutData.checkoutGridrow,function(t,o){o.paidType==_vgCovidCleanCheckout.model.PaidType.Deposit&&(o.priceWithTax=_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.payableAmount-o.AmountPaid<0?0:o.payableAmount-o.AmountPaid,!0,2),e[0].checkoutData.IsFromCheckoutScreen=!0)});var n=new vagaro.ajax;n.datamodel.Token="SaveCheckout",n.datamodel.data=o,n.datamodel.callback=function(t){if(_vgCovidCleanCheckout.hideShowLoader(!1),null!==t.resultType){if(e[0].checkoutData.Token=t.Token,t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.OldVersion||t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.ConfigurationMismatch)return _vgCovidCleanCheckout.hideShowLoader(!1),_vgCovidCleanCheckout.FailedMessage("something went wrong"),_vgCovidCleanCheckout.model.isclicked=1,!1;if(t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.TokenMissMatch)return _vgCovidCleanCheckout.hideShowLoader(!1),_vgCovidCleanCheckout.FailedMessage("Our system indicates that there is  some network related error. Your transaction might be completed. It's recommended to verify Transaction List Report to avoid duplicate Transactions."),_vgCovidCleanCheckout.model.isclicked=1,!1;if(t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.ServiceMismatch)return _vgCovidCleanCheckout.hideShowLoader(!1),_vgCovidCleanCheckout.FailedMessage(_vgCovidCleanCheckout.formatMessage(t.resultMessage)),_vgCovidCleanCheckout.model.isclicked=1,!1;if(e[0].checkoutData.ccAmt>0&&(e[0].checkoutData.isRetailAccount=t.isRetailAccount),void 0!==t.salonDateTime&&null!=t.salonDateTime&&""!=t.salonDateTime&&(e[0].checkoutData.SalonDateTime=t.salonDateTime),t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.Fail){_vgCovidCleanCheckout.hideShowLoader(!1);return 1==t.resultMessage.includes("already checked out")?_vgCovidCleanCheckout.WarningMessage("This transection already checkout",5e3):_vgCovidCleanCheckout.WarningMessage(_vgCovidCleanCheckout.formatMessage(t.resultMessage),5e3),_vgCovidCleanCheckout.model.isclicked=1,"true"==$("#"+_vgCovidCleanCheckout.model.hdnIsThreeDS).val().toLowerCase()&&($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show(),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show(),$("#"+_vgCovidCleanCheckout.model.checkoutTimeOut).text("Authenticate Checkout Failed"),$("#"+_vgCovidCleanCheckout.model.checkoutResent).text("Ask for the Authenticate Checkout to be re-sent.")),!1}if(t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.AuthorizationFail){_vgCovidCleanCheckout.hideShowLoader(!1);var o=parseFloat(t.resultMessage);return isNaN(o)&&(o=0),o>0?_vgCovidCleanCheckout.WarningMessage("According to the customer’s bank the balance on this card is "+e[0].checkoutData.currencySymbol+o+" only. Vagaro can charge this amount but the customer will need to provide the remaining amount by cash, check, gift cards or other means possible. You can also have the customer provide you a different credit card."):_vgCovidCleanCheckout.WarningMessage("According to the customer’s bank the balance on this card is "+e[0].checkoutData.currencySymbol+o+" only. Please use different credit card."),_vgCovidCleanCheckout.model.isclicked=1,!1}if(t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.PartialSuccess){var n=t.resultMessage.split("$##$");null!=n&&""!=n&&($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divPartialSuccess).show(),$(".checkoutfaild-list-block").html(""),n.length>1?$(".checkoutfaild-list-block").html(n[2]):$(".checkoutfaild-list-block").html(n[0]))}else t.resultType===_vgCovidCleanCheckout.model.FinalResponseType.Success&&($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.checkoutComplete).css("display","flex"),_vgCovidCleanCheckout.LoadSuccessCheckout(),void 0!==t.resultMessage&&null!=t.resultMessage&&""!=t.resultMessage&&_vgCovidCleanCheckout.SuccessMessage(_vgCovidCleanCheckout.formatMessage(t.resultMessage)),_vgCovidCleanCheckout.CompletePayment());_vgCovidCleanCheckout.hideShowLoader(!1)}else _vgCovidCleanCheckout.hideShowLoader(!1),_vgCovidCleanCheckout.model.isclicked=1},n.Post()}}else $(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show(),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show(),_vgCovidCleanCheckout.lableChangeTimeoutScreen()},o.Post()},CompletePayment:function(){"true"==$("#"+_vgCovidCleanCheckout.model.hdnIsThreeDS).val().toLowerCase()?($("#"+_vgCovidCleanCheckout.model.PaymentComplete).text("Authenticate Checkout Complete"),$("#"+_vgCovidCleanCheckout.model.PaymentCompleted).text("Authenticate Checkout Complete"),$("#"+_vgCovidCleanCheckout.model.titleCheckout).text("Vagaro | Authenticate Checkout")):($("#"+_vgCovidCleanCheckout.model.PaymentComplete).text("Contactless Checkout Complete"),$("#"+_vgCovidCleanCheckout.model.PaymentCompleted).text("Contactless Checkout Complete"),$("#"+_vgCovidCleanCheckout.model.titleCheckout).text("Vagaro | Contactless Checkout"))},VcfWithccvplCheckout:function(e){1==_checkout.IsEnableVCFFee&&1!=e?(_vgCovidCleanCheckout.model.IsFromVCFFlow=2,_checkout.CallSaveCheckoutForVCF()):_vgCovidCleanCheckout.VPLCheckTimeWhileCheckOut()},VPLCheckTimeWhileCheckOut:function(e){var t=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==t&&null!=t&&""!=t&&t.length>0){_vgCovidCleanCheckout.hideShowLoader(!0);var o=0,n={},a={},i=$("#"+_vgCovidCleanCheckout.model.hdnUserDetails).val(),r=_vgCovidCleanCheckout.model.userDetailsData=JSON.parse(i);null==r.CountryName&&(r.CountryName="US"),null==r.StateCode&&(r.StateCode="");var d=$.grep(vplCustomerBankListCheckout,function(e){return e.Id==$('input[type="radio"][name="vpl-bank"]:checked').val()});t[0].checkoutData.distributionRequestType=2,IsEntireCCTransaction?(t[0].checkoutData.ccAmt+=parseFloat(t[0].checkoutData.vplAmt),t[0].checkoutData.vplAmt=0,t[0].checkoutData.vplDetails=null,t[0].checkoutData.ccDetails.ccDistribution=null,t[0].checkoutData.isOverrideVPLToCC=!0,t[0].checkoutData.IsVPLPayment=!1,t[0].checkoutData.checkoutGridrow[0].CovidCleanCheckout=1,$("#VplCheckoutScreen4 .vplSlotAmt1").text("Total: "+t[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(t[0].checkoutData.ccAmt,!0,2))):("0"!==$("#hdnIsSplitTip").val()||0!=_vgCovidCleanCheckout.IsAnyZeroPriceService()||IsVPLCheckout||(_vgCovidCleanCheckout.SetFinalTipValue(),t[0].checkoutData.splitTip=new Array),o=$(".totalVPLAmtpay").text(),o=(o=_vgCovidCleanCheckout.removePrefixSuffixCurrencySymbol(o)).replace(/,/g,""),t[0].checkoutData.vplAmt=_vgCovidCleanCheckout.ConvertDecimalWithFixed(o,!0,2),t[0].checkoutData.amtPaid=t[0].checkoutData.amtPaid,t[0].checkoutData.vplDetails={},void 0===$("#hdnUserAccountMongoId")||String.isNullOrUndefineOrBlank($("#hdnUserAccountMongoId").val())||(t[0].checkoutData.vplDetails.VplBankMasterId=$("#hdnUserAccountMongoId").val()),_vgCovidCleanCheckout.model.VplGatewayType!=_vgCovidCleanCheckout.model.VplProviderType.Affirm&&(t[0].checkoutData.vplDetails.BankAccountId=d[0].bank_id,t[0].checkoutData.vplDetails.AccountNumber=d[0].AccountNumber,t[0].checkoutData.vplDetails.ConsumerId=d[0].CertegyTokenID),t[0].checkoutData.vplDetails.signature=t[0].checkoutData.ccDetails.signature,t[0].checkoutData.vplDetails.BillingAddress={city_locality:r.City,postal_code:r.Zip,line_1:r.Street,line_2:r.StreetNo,country_code:r.CountryName,state_province:r.StateCode},t[0].checkoutData.vplDetails.vplDistribution=null,t[0].checkoutData.IsFromInHouseCheckout=!0),t[0].checkoutData.CovidCheckoutMongoIdentity=t[0].Id,a.checkoutRequest=t[0].checkoutData,_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm&&(a.checkoutRequest.VPLGatewayType=_vgCovidCleanCheckout.model.VplProviderType.Affirm,a.checkoutRequest.PayLaterInfo=_vgCovidCleanCheckout.GenerateVplRequest(!1),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.checkOutSummeryData.TransactionId)||(a.checkoutRequest.PayLaterInfo.TransactionId=_vgCovidCleanCheckout.model.checkOutSummeryData.TransactionId)),n.ChkRequest=a;var l=new vagaro.ajax;l.datamodel.Token="SaveCheckout",l.datamodel.data=n.ChkRequest,l.datamodel.callback=function(e){if(e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.PartialSuccess){var o=e.resultMessage.split("$##$");null!=o&&""!=o&&($(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divPartialSuccess).show(),$(".checkoutfaild-list-block").html(""),o.length>1?$(".checkoutfaild-list-block").html(o[2]):$(".checkoutfaild-list-block").html(o[0]),_vgCovidCleanCheckout.hideShowLoader(!1),IsEntireCCTransaction&&$(_vgCovidCleanCheckout.model.ScreenVPLCCFail).hide())}else if(e.resultType===_vgCovidCleanCheckout.model.FinalResponseType.Success)_vgCovidCleanCheckout.hideShowLoader(!1),IsEntireCCTransaction?($(".failedlogo").hide(),$(".checkout-payment-text").hide(),$(_vgCovidCleanCheckout.model.ScreenVPLCCFail).hide(),$(".failVplCheckout").text("Checkout Complete"),$(".checkout-ratting").show(),$(".textBeforFiveStar").show(),$(".sucesslogo").show(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutComplate).show()):($("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutScreen).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutComplate).show(),t[0].checkoutData.ccAmt>0&&t[0].checkoutData.vplAmt>0||_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm?($("#"+_vgCovidCleanCheckout.model.divVplSuccessCheckout).hide(),$(".checkout-payment-text").hide()):($(".checkout-payment-text").show(),$("#"+_vgCovidCleanCheckout.model.divVplSuccessCheckout).show()));else{if(_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm&&null!=e.gatewayResponse&&null!=e.gatewayResponse.data&&1==e.gatewayResponse.data.isSuccess&&!String.isNullOrUndefineOrBlank(e.gatewayResponse.data.NextActionUrl))return _vgCovidCleanCheckout.hideShowLoader(!1),ShowLoader(!1),_vgCovidCleanCheckout.AuthoriseAffirmPayment(e),!1;if(_vgCovidCleanCheckout.hideShowLoader(!1),ShowLoader(!1),$(".failVplCheckout").text("Checkout Failed"),$(".checkout-ratting").hide(),$(".textBeforFiveStar").hide(),$(".sucesslogo").hide(),$(".failedlogo").show(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutScreen).hide(),$(_vgCovidCleanCheckout.model.ScreenVPLCCFail).hide(),t[0].checkoutData.vplAmt>0&&t[0].checkoutData.ccAmt>0)return $(_vgCovidCleanCheckout.model.ScreenVPLCCFail).show(),$(".btnChargeCardCC").html("Charge Card "+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.amtDue.toLocaleString("en",{minimumFractionDigits:2})),!1;var n=e.resultMessage;if(n.includes("Certegy")){$(".customeb-body p").html("");var a=e.resultMessage.split("|~|");$("#vpl-payment-fail-popup").modal("show"),$(".modal:visible").each(function(e,t){centerModal(t)});var i=a[0],r=a[1];return $(".customeb-body p").html(i),$(".customeb-body-last #certegydate").html(String.format("{0}",(new Date).format("MMMM dd, yyyy hh:mm"))),$(".customeb-body-last #certegyref").text(r),ShowLoader(!1),$(".modal:visible").each(function(e,t){centerModal(t)}),!1}t[0].checkoutData.vplAmt>0&&_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm&&($("#"+_vgCovidCleanCheckout.model.checkoutvplAffirmFailedMessage).html(n),$("#"+_vgCovidCleanCheckout.model.checkoutvplAffirmFailedMessage).show()),$(_vgCovidCleanCheckout.model.ScreenVPLFail).show()}},l.Post()}},AuthoriseAffirmPayment:function(e){var t={CountryID:1};t.PaymentIntentURL=e.gatewayResponse.data.NextActionUrl,t.SuccessCallBack=_vgCovidCleanCheckout.AffirmSuccessCheckout,t.FailedCallback=_vgCovidCleanCheckout.AffirmFailCheckout,t.IsAffirm=!0,_cardIntendent.LoadCardCaptureIntendentInfo(t)},AffirmSuccessCheckout:function(e){void 0===e||null==e||null==e.PaymentIntentResponse||String.isNullOrUndefineOrBlank(e.PaymentIntentResponse.PSPReferenceNo)?_vgCovidCleanCheckout.AffirmFailCheckout():(_vgCovidCleanCheckout.model.checkOutSummeryData.TransactionId=e.PaymentIntentResponse.PSPReferenceNo,_vgCovidCleanCheckout.VPLCheckTimeWhileCheckOut())},AffirmFailCheckout:function(e){_vgCovidCleanCheckout.hideShowLoader(!1),ShowLoader(!1),$(".failVplCheckout").text("Checkout Failed"),$(".checkout-ratting").hide(),$(".textBeforFiveStar").hide(),$(".sucesslogo").hide(),$(".failedlogo").show(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutScreen).hide(),$(_vgCovidCleanCheckout.model.ScreenVPLCCFail).hide();var t=_vgCovidCleanCheckout.model.checkOutSummeryData;if(t[0].checkoutData.vplAmt>0&&t[0].checkoutData.ccAmt>0)return $(_vgCovidCleanCheckout.model.ScreenVPLCCFail).show(),$(".btnChargeCardCC").html("Charge Card "+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.amtDue.toLocaleString("en",{minimumFractionDigits:2})),!1;_vgCovidCleanCheckout.model.checkOutSummeryData.TransactionId="FAIL",_vgCovidCleanCheckout.VPLCheckTimeWhileCheckOut(),$(_vgCovidCleanCheckout.model.ScreenVPLFail).show()},GenerateVplRequest:function(e){var t=$("#"+_vgCovidCleanCheckout.model.hdnUserDetails).val(),o=_vgCovidCleanCheckout.model.userDetailsData=JSON.parse(t);if(1==e&&String.isNullOrUndefineOrBlank(o.EmailId))return _onlineCheckout.WarningMessage("Please enter valid emailId"),!1;var n="";return n=2==o.CountryID?"UK":3==o.CountryID?"CA":4==o.CountryID?"AU":"US",{ShopperName:{FirstName:o.FirstName,LastName:o.LastName},ShopperAddress:{City:String.isNullOrUndefineOrBlank(o.City)?"":o.City,Country:n,HouseNumberOrName:String.isNullOrUndefineOrBlank(o.StreetNo)?"":o.StreetNo,PostalCode:String.isNullOrUndefineOrBlank(o.Zip)?"":o.Zip,StateOrProvince:String.isNullOrUndefineOrBlank(o.StateCode)?"":o.StateCode,Street:String.isNullOrUndefineOrBlank(o.Street)?"":o.Street},ShopperEmail:o.EmailId,ShopperPhoneNumber:String.isNullOrUndefineOrBlank(o.Cell)?"":o.Cell}},SetChargesTextbox:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;e[0].checkoutData.amtDue=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.serviceCharges+e[0].checkoutData.classCharges+e[0].checkoutData.membershipCharges+e[0].checkoutData.iouCharges+e[0].checkoutData.productCharges+e[0].checkoutData.packageCharges+e[0].checkoutData.gcCharges+_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.tax,!1,2)+e[0].checkoutData.serviceAddonCharges+e[0].checkoutData.classAddonCharges+e[0].checkoutData.tip+e[0].checkoutData.feeCharges-e[0].checkoutData.discount,!1,2),"0"!=_vgCovidCleanCheckout.model.tipPercentageValue&&_vgCovidCleanCheckout.AssignTip(_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.tip,!0,2)),_vgCovidCleanCheckout.CalculateAmountsPaidByUser()},onClickOfSigPad:function(){0==_vgCovidCleanCheckout.model.signaturePad.isEmpty()?($(".signature-here-text").hide(),$("#btnEraseSignature").show()):($(".signature-here-text").show(),$("#btnEraseSignature").hide())},CalculateCharges:function(){var e=_vgCovidCleanCheckout.model.checkOutSummeryData;if(1==e[0].checkoutData.IsWebServiceCall)try{e[0].checkoutData.tax=0,$.each(e[0].checkoutData.checkoutGridrow,function(t,o){var n=o.recordType,a=_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.price,!1,2),i=_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.discountedPrice,!1,2);7!=o.paidType&&8!=o.paidType||(a=i);var r=o.barcodeID,d=_vgCovidCleanCheckout.ConvertInt(o.pointsRedeem);1!==o.pointAssignStatus&&(n===_vgCovidCleanCheckout.model.ItemType.Service&&1!==o.packageAssignStatus||(n===_vgCovidCleanCheckout.model.Class&&1!==objOldObject.packageAssignStatus?e[0].checkoutData.classCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.classCharges+a,!1,2):n===_vgCovidCleanCheckout.model.ItemType.Product?e[0].checkoutData.productCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.productCharges+a,!1,2):n===_vgCovidCleanCheckout.model.ItemType.Membership?(e[0].checkoutData.serviceCharges>=a&&(e[0].checkoutData.serviceCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.serviceCharges-a,!1,2)),e[0].checkoutData.membershipCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.membershipCharges+a,!1,2)):n===_vgCovidCleanCheckout.model.ItemType.IOU?e[0].checkoutData.iouCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.iouCharges+a,!1,2):n===_vgCovidCleanCheckout.model.ItemType.GC?r.toLowerCase()===_vgCovidCleanCheckout.model.ItemCode.Package.toLowerCase()?e[0].checkoutData.packageCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.packageCharges+a,!1,2):r.toLowerCase()===_vgCovidCleanCheckout.model.ItemCode.GC.toLowerCase()&&(e[0].checkoutData.gcCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.gcCharges+a,!1,2)):n===_vgCovidCleanCheckout.model.ItemType.ServiceAddonsType?e[0].checkoutData.serviceAddonCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.serviceAddonCharges+a,!1,2):n===_vgCovidCleanCheckout.model.ItemType.ClassAddonsType?e[0].checkoutData.classAddonCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.classAddonCharges+a,!1,2):n===_vgCovidCleanCheckout.model.ItemType.FeeType&&(e[0].checkoutData.feeCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.feeCharges+a,!1,2)))),e[0].checkoutData.totalCharges=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.totalCharges+_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.price,!1,2),!1,2),e[0].checkoutData.totalPointNeed=_vgCovidCleanCheckout.ConvertInt(e[0].checkoutData.totalPointNeed+d),e[0].checkoutData.discount=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.discount+(a-i),!1,2),e[0].checkoutData.deposit=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.deposit+_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.deposit,!1,2),!1,2),e[0].checkoutData.prepayAmount=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.prepayAmount+_vgCovidCleanCheckout.ConvertDecimalWithFixed(o.prepayAmount,!1,2),!1,2),e[0].checkoutData.tax=_vgCovidCleanCheckout.ConvertDecimalWithFixed(e[0].checkoutData.tax+o.calculatedTax,!1,3)}),_vgCovidCleanCheckout.SetChargesTextbox()}catch(e){_vgCovidCleanCheckout.FailedMessage("something went wrong ")}},makeCurrencySymbolInTextbox:function(e,t){e.value.indexOf("$")>=0||(e.value.indexOf("£")>=0||(e.value.indexOf("%")>=0||(e.value=t+e.value.replace(t,""))))},pasteHandlerKeyup:function(e,t,o){if("Microsoft Internet Explorer"==navigator.appName){if(IsSelected){nDotCount=0;var n=checkMaxLength(stripChars(e.value,o),e.maxLength);e.value=n,IsSelected=!1}8!=t.keyCode&&46!=t.keyCode||identifyDot(e.value)||(nDotCount=0),""==e.value&&(nDotCount=0)}else{if("keyup"==t.type&&IsPaste){nDotCount=0;n=checkMaxLength(stripChars(e.value,o),e.maxLength);e.value=n,IsPaste=!1}8!=t.which&&46!=t.which||identifyDot(e.value)||(nDotCount=0),""==e.value&&(nDotCount=0)}},SelectTextboxContent:function(e){setTimeout(function(){$(e).is(":focus")&&(_vgCovidCleanCheckout.IsIpad()?e.setSelectionRange(0,parseInt(e.value.length+1)):e.select())},10)},IsIpad:function(){return navigator.userAgent.match(/iPad/i)&&null!==navigator.userAgent.match(/iPad/i)},formatMessage:function(e){var t=e,o=document.createElement("div");return o.innerHTML=t,o.textContent||o.innerText||""},setSplitTipLableValue:function(){for(var e=_vgCovidCleanCheckout.model.checkOutSummeryData,t=$(".tipsp"),o=0,n=0;n<t.length;n++){var a=$(t[n]).val();a=parseFloat(a),!String.isNullOrUndefineOrBlank(a)&&a>0&&(o+=a)}var i=e[0].checkoutData.amtDue-e[0].checkoutData.tip,r=e[0].checkoutData.ccAmt-e[0].checkoutData.tip;if(o>0){var d=i+o;r+=o,$(".splittip-tip").text("("+e[0].checkoutData.currencySymbol+i.toLocaleString("en",{minimumFractionDigits:2})+" + "+e[0].checkoutData.currencySymbol+o.toLocaleString("en",{minimumFractionDigits:2})+" tip)"),$(".splittip-pertage").text(e[0].checkoutData.currencySymbol+d.toLocaleString("en",{minimumFractionDigits:2})),$(".ccbtn-price").text(e[0].checkoutData.currencySymbol+r.toLocaleString("en",{minimumFractionDigits:2}))}else $(".splittip-tip").text(""),$(".splittip-pertage").text(e[0].checkoutData.currencySymbol+i.toLocaleString("en",{minimumFractionDigits:2})),$(".ccbtn-price").text(e[0].checkoutData.currencySymbol+r.toLocaleString("en",{minimumFractionDigits:2}))},threeAuthentication:function(e){_vgCovidCleanCheckout.LoadThreeDSIntendentInfo(e)},LoadThreeDSIntendentInfo:function(e){_cardIntendent.Model.IntendentInfo=e,$("#"+_vgCovidCleanCheckout.model.threeDSAuthentication).html('<iframe src="'+e.PaymentIntentURL+'" frameborder="0" style="width: 100%; height: 600px; "></iframe>'),setTimeout(function(){_vgCovidCleanCheckout.hideShowLoader(!1)},1e3)},OpenIframeOfThreeDS:function(e){if(_vgCovidCleanCheckout.hideShowLoader(!0),void 0!==e&&null!=e){$.grep(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(t){t.NextActionUrl==e.NextActionUrl&&(t.isProcess=!0)}),_vgCovidCleanCheckout.model.actionUrl=e.NextActionUrl;var t=_vgCovidCleanCheckout.model.checkOutSummeryData,o={};o.dtDate=t[0].createdDate,o.strObjectId=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.CovidCheckoutMongoIdentity;var n=new vagaro.ajax;n.datamodel.Token="CheckCovidCleanCheckoutTime",n.datamodel.data=o,n.datamodel.callback=function(e){if(null!==e&&1==e){$("#"+_vgCovidCleanCheckout.model.screenAuthentication).show(),$("#"+_vgCovidCleanCheckout.model.divSummeryScreen).hide();var t={};t.CountryID=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.payeeCountryId,t.PaymentIntentURL=_vgCovidCleanCheckout.model.actionUrl,t.SuccessCallBack=SuccessCallBack=_vgCovidCleanCheckout.threeDSSuccessCheckout,t.FailedCallback=_vgCovidCleanCheckout.threeDSFailCheckout,t.Type=1,_vgCovidCleanCheckout.threeAuthentication(t)}else $(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show(),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show(),_vgCovidCleanCheckout.lableChangeTimeoutScreen(),_vgCovidCleanCheckout.hideShowLoader(!1)},n.Post()}},threeDSSuccessCheckout:function(e){if(void 0!==e&&null!=e){var t=$.grep(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(t,o){return 1==t.isProcess&&t.NextActionUrl==_vgCovidCleanCheckout.model.actionUrl&&(t.PaymentIntentId=e.PaymentIntentResponse.PaymentIntentId),0==t.isProcess});null!=t&&""!=t&&t.length>0?_vgCovidCleanCheckout.OpenIframeOfThreeDS(t[0]):_vgCovidCleanCheckout.CheckTimeWhileCheckOut()}},threeDSFailCheckout:function(e){var t=$.grep(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(t,o){return 1==t.isProcess&&t.NextActionUrl==_vgCovidCleanCheckout.model.actionUrl&&(t.PaymentIntentId=e.PaymentIntentResponse.PaymentIntentId),0==t.isProcess});null!=t&&""!=t&&t.length>0?_vgCovidCleanCheckout.OpenIframeOfThreeDS(t[0]):_vgCovidCleanCheckout.CheckTimeWhileCheckOut()},validatePhone:function(e,t){var o=$("#hdncountryid").val(),n=$(e),a=n.val().replace(/([()-\s])+/g,""),i=a.length;if(i<=0)return"txtCell"==n.attr("id")?($(t).show(),$(t).html("required."),n.addClass("errorInput"),!1):($(t).hide(),$(t).html(""),n.removeClass("errorInput"),!0);if(i>0)if(2!=o&&11==i&&0==a[0]&&(i=(a=a.substring(1)).length),1==o||3==o){if(10!=i)return n.val(a),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 10 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 10 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 10 digits")),n.addClass("errorInput"),$(t).show(),!1}else if(2==o){if(i<10||i>11)return n.val(a),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 10 or 11 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 10 or 11 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 10 or 11 digits")),n.addClass("errorInput"),$(t).show(),!1;10==i&&0!=a[0]?i=(a=0+a).length:(i<=10||12==i)&&0==a[0]&&(i=(a=a.substring(1)).length),n.val(a.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"))}else if(4==o){if(i<9||i>10)return n.val(a),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 9 or 10 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 9 or 10 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 9 or 10 digits")),n.addClass("errorInput"),$(t).show(),!1;9==i&&0!=a[0]?i=(a=0+a).length:(i<=9||i>10)&&0==a[0]&&(i=(a=a.substring(1)).length),n.val(a.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3"))}return $(t).hide(),n.removeClass("errorInput"),!0},Phone_format:function(e,t,o){var n=1;null!=typeof o&&null!=o&&""!=o&&(n=o);var a=$(e);/\D/g.test(a.val())&&a.val(a.val().replace(/\D/g,"")),1==n?a.removeClass("cntry-ca").addClass("cntry-us"):3==n?a.removeClass("cntry-us").addClass("cntry-ca"):a.removeClass("cntry-ca cntry-us");var i=a.val().replace(/([()-\s])+/g,""),r=i.length;if(!(r<=0)){a.removeClass("error");return String.isNullOrUndefineOrBlank(i)||/^\d+$/.test(i)?($(t).hide(),2!=n&&11==r&&0==i[0]&&(r=(i=i.substring(1)).length),1!=n&&3!=n||10!=r?2==n?(10==r&&0!=i[0]?r=(i=0+i).length:(r<=10||12==r)&&0==i[0]&&(r=(i=i.substring(1)).length),10==r||11==r?(a.val(i.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3")),!0):a.val(i)):4==n?(9==r&&0!=i[0]?r=(i=0+i).length:(r<=9||r>10)&&0==i[0]&&(r=(i=i.substring(1)).length),9==r||10==r?(a.val(i.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")),!0):a.val(i)):a.val(i):(3==n?a.val(i.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3")):a.val(i.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3")),!0),!0):(event.preventDefault(),!1)}},ValidateEmail:function(){return""==$("#emailid").val()?($("#lblInvalidEmail").hide(),!0):_vgCovidCleanCheckout.isValidEmailAddress($("#emailid").val())?($("#lblInvalidEmail").hide(),$("#emailid").removeClass("errorInput"),$('[id*="spanVendorEmailRequire"]').hide(),!0):($("#lblInvalidEmail").show(),$("#emailid").focus(),$("#emailid").removeClass("errorInput"),$('[id*="spanVendorEmailRequire"]').hide(),$("#emailid").addClass("errorInput"),!1)},isValidEmailAddress:function(e){return new RegExp(/^[A-Za-z0-9_\+-]+(\.[A-Za-z0-9_\+-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.([A-Za-z]{2,10})$/g).test(e)},ShowCountry:function(){return $(".countryselectmyacprofile").is(":visible")?void $(".countryselectmyacprofile").hide():void $(".countryselectmyacprofile").show()},setDialingCode:function(e){var t="";switch($("#txtCell").removeClass(function(e,t){return(t.match(/(^|\s)cntry-\S+/g)||[]).join(" ")}),$("#txtNightPhone").removeClass(function(e,t){return(t.match(/(^|\s)cntry-\S+/g)||[]).join(" ")}),$("#txtDayPhone").removeClass(function(e,t){return(t.match(/(^|\s)cntry-\S+/g)||[]).join(" ")}),e){case 1:t="+1",$("#txtCell").addClass("cntry-us"),$("#txtNightPhone").addClass("cntry-us"),$("#txtDayPhone").addClass("cntry-us");break;case 2:t="+44";break;case 3:t="+1",$("#txtCell").addClass("cntry-ca"),$("#txtNightPhone").addClass("cntry-ca"),$("#txtDayPhone").addClass("cntry-ca");break;case 4:t="+61"}$(".country-icon").text(t)},selectCountry:function(e){$("#txtAddress").select2("val"," "),$("#selectedCountrudiv").attr("data-country",e),$("#selectedCountrudiv").removeClass().addClass("selectedcountry "+_vgCovidCleanCheckout.model.countryMapImage[e]),$("#temphdncountryid").val(e),$("#txtAddress").select2("focus"),_vgCovidCleanCheckout.setDialingCode(e),_twoFactor.Phone_format("#txtCell","#divInvalidMobileMessage",e),_vgCovidCleanCheckout.BindState()},ClearAddressValue:function(e){$("#txtStreet").val(""),$("#txtCity").val(""),$("#txtState").val(""),$("#txtZip").val("")},BindState:function(){ddlstate.html(""),ddlstate.html('<option value="0">Select</option>'),$.grep(stateList,function(e){e.CountryID==_vgCovidCleanCheckout.model.VplUserDetails.CountryID&&ddlstate.append($("<option></option>").val(e.StateID).html(e.DisplayStateCode))}),void 0===addressData.statecode||String.isNullOrUndefineOrBlank(addressData.statecode)||$.grep(stateList,function(e){e.StateCode==addressData.statecode&&ddlstate.val(e.StateID)})},GetCity:function(t){t=$(t).val();var o=_vgCovidCleanCheckout.model.VplUserDetails.CountryID.length<=0?parseInt($("#cboCountry").val()):parseInt(_vgCovidCleanCheckout.model.VplUserDetails.CountryID),n=$("#divsmallloading");if(n.show(),""!=t&&o>0){var a=new vagaro.ajax,i={};i.CountryID=o,i.StrZipCode=t,a.datamodel.Token=_vgCovidCleanCheckout.GetCoreAPIURLWithToken(e.Getcitybyzipcode,""),a.datamodel.data=i,a.datamodel.IsNewVagaroAPI=!0,a.datamodel.callback=function(e){if(e.CustomCode==vagaro.VagaroCoreApiResponseCode.UnderMaintanance)_vgCovidCleanCheckout.WarningMessage("Business is Under Maintenance. This won't take long");else if(e.CustomCode==vagaro.VagaroCoreApiResponseCode.Error)_vgCovidCleanCheckout.FailedMessage("Sorry something went wrong, please try again!");else if(e.CustomCode==vagaro.VagaroCoreApiResponseCode.Success){var o=e=e.Data;n.hide();var a=o.split("|")[0],i=1*o.split("|")[1],r=o.split("|")[2];$("#txtCity").val(a),$("#txtState").val(r),$("#ddlState").val(i),$("#txtZip").val(t),""==e?($("#txtState").val(""),$("#txtZip").val("")):$("#txtState").attr("disabled",!0);var d=$("#cboRState"),l=$("#cboRState option[value="+i+"]").length;if(null==l||0==l)return void d.prop("selectedIndex",0);d.val(i)}},a.datamodel.Error=function(e){_vgCovidCleanCheckout.FailedMessage("Sorry something went wrong, please try again!")},a.Post()}else n.hide()},GetCoreAPIURLWithToken:function(e,t){try{var o="",n=CoreAPIURL.split("/");if(void 0!==t&&null!=t&&""!=t)n[3]=t,o=n.join("/")+e;else if("undefined"!=typeof myAccountUserGroupID&&null!=myAccountUserGroupID&&""!=myAccountUserGroupID){var a=myAccountUserGroupID.split(",");a.length>0&&(n[3]=a[0],o=n.join("/")+e)}return""==o&&(o=CoreAPIURL+e),o}catch(t){return CoreAPIURL+e}},openCloseAddresspopup:function(t){if(1==t){$("html, body").addClass("hide-bgscrollappoint"),$("#divAddressDetails").modal("show"),$("#txtStreet").focus();var o=_vgCovidCleanCheckout.model.VplUserDetails.CountryID.length<=0?parseInt($("#cboCountry").val()):parseInt(_vgCovidCleanCheckout.model.VplUserDetails.CountryID),n=$("#txtZip").val();street1.val($("#txtSuite").val());var a={};return a.CountryID=parseInt(o),a.StrZipCode=$.trim(n),(new vagaro.ajax).datamodel.Token=_vgCovidCleanCheckout.GetCoreAPIURLWithToken(e.getStateCode,a,function(e){if(1e3==data.CustomCode){var t=(e=data.Data).split("|")[0],o=(String.isNullOrUndefineOrBlank(e)||e.split("|")[1],e.split("|")[2]);city.val(t),state.val(o),ddlstate.val(State)}},function(){swal({title:"Failed to validate address details.",text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn"},function(e){swal.close()})}),!1}return $("#divAddressDetails").modal("hide"),$("html, body").removeClass("hide-bgscrollappoint"),$("html, body").scrollTop($("#txtAddress").offset().top),street1.val($("#txtSuite").val()),!1},GetState:function(){var t=new vagaro.ajax;t.datamodel.Token=_vgCovidCleanCheckout.GetCoreAPIURLWithToken(e.getState),t.datamodel.data={},t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=_vgCovidCleanCheckout.GetState_Success,t.datamodel.Error=function(e){ShowLoader(!1)},t.datamodel.async=!1,t.Post()},GetState_Success:function(e){1e3==e.CustomCode&&(stateList=e.Data,_vgCovidCleanCheckout.BindState())},setAddressControl:function(){var e=$("#txtAddress").select2({searchInputPlaceholder:"Address Line 1",minimumInputLength:1,combobox:!0,dropdownCssClass:"select-location-icons select2-drop-active select-customdropdown",selectOnClick:!1,multiple:!1,closeOnSelect:!0,formContainer:"#page-wrapper",allowClear:!0,ajax:{type:"POST",contentType:"application/json; charset=utf-8",url:"/WebServices/CommonWebService.asmx/GetLocationOrPlaceDetail",dataType:"json",quietMillis:250,transport:function(e){return e.beforeSend=function(e){try{"function"==typeof EncH&&e.setRequestHeader("H",EncH())}catch(e){}e.setRequestHeader("K",getek()),e.setRequestHeader("I",getei()),e.setRequestHeader("Val",EncIV()),"undefined"!=typeof keepAlive&&e.setRequestHeader("keepAlive",keepAlive),1==$("#hdnToken1").length&&void 0!==$("#hdnToken1").val()&&e.setRequestHeader("token1",$("#hdnToken1").val()),1==$("#hdnToken2").length&&void 0!==$("#hdnToken2").val()&&e.setRequestHeader("token2",$("#hdnToken2").val()),1==$("#hdnToken0").length&&void 0!==$("#hdnToken0").val()&&e.setRequestHeader("token0",$("#hdnToken0").val())},$.ajax(e)},data:function(){return{searchText:$("#txtAddress").val(),countryFilter:_vgCovidCleanCheckout.model.countryMapping[_vgCovidCleanCheckout.model.VplUserDetails.CountryID],Location:"0,0"}},results:function(e,t){return{results:e}},params:{error:function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}}},cache:!1},formatNoMatches:function(){return $("#select2-drop").css("display","block"),"No matches found"},formatSearching:function(){return $("#select2-drop").css("display","block"),"Searching"},formatInputTooShort:function(e,t){return $("#select2-drop").css("display","none"),""},initSelection:function(e,t){t({id:$("#txtAddress").val(),text:$("#txtAddress").val()})},formatResult:function(e){return $("#select2-drop").css("display","block"),'<div data-placeid="'+e.place_id+'"><span class="fullocation">'+e.FormattedAddress+"</span></div>"}});e.on("select2-loaded",function(e){$(".select2-result-unselectable").addClass("select2-result-selectable").removeClass("select2-result-unselectable")}),e.on("select2-blur",function(e){e.preventDefault()}),e.on("selected",function(e){$(e.currentTarget).select2("val",e.choice.CityState),$(e.currentTarget).data("selectedid",e.choice.CityState),$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:"/WebServices/CommonWebService.asmx/GetPlaceDetailByPlaceId",dataType:"json",beforeSend:function(e){try{"function"==typeof EncH&&e.setRequestHeader("H",EncH())}catch(e){}e.setRequestHeader("K",getek()),e.setRequestHeader("I",getei()),e.setRequestHeader("Val",EncIV()),"undefined"!=typeof keepAlive&&e.setRequestHeader("keepAlive",keepAlive),1==$("#hdnToken1").length&&void 0!==$("#hdnToken1").val()&&e.setRequestHeader("token1",$("#hdnToken1").val()),1==$("#hdnToken2").length&&void 0!==$("#hdnToken2").val()&&e.setRequestHeader("token2",$("#hdnToken2").val()),1==$("#hdnToken0").length&&void 0!==$("#hdnToken0").val()&&e.setRequestHeader("token0",$("#hdnToken0").val())},data:JSON.stringify({placeId:e.choice.place_id,description:e.choice.CityState}),success:function(e){if(null!=e&&"null"!=e){var t=null!=(e=e.d)&&null==e.City?"":e.City.split(",")[0],o=null==e.State?"":e.State;o=o.trim(),addressData.street=e.Address,addressData.city=t,addressData.state=o,addressData.zip=e.ZipCode,addressData.country=e.CountryID,addressData.countrytext=_vgCovidCleanCheckout.model.countryMapping[e.CountryID],addressData.statecode=e.StateCode,$("#txtStreet").val(e.Address),$("#txtCity").val(t),$("#txtState").val(o),$("#txtZip").val(e.ZipCode),_vgCovidCleanCheckout.GetCity($("#txtZip")),$("#txtSuite").focus()}},error:function(e){console.log(e)}})})},validateAddressData:function(){var e=void 0===_vgCovidCleanCheckout.model.VplUserDetails.CountryID?parseInt($("#cboCountry").val()):parseInt(_vgCovidCleanCheckout.model.VplUserDetails.CountryID);return!(String.isNullOrUndefineOrBlank($("#txtStreet").val())||String.isNullOrUndefineOrBlank($("#txtZip").val())||String.isNullOrUndefineOrBlank($("#txtState").val())||String.isNullOrUndefineOrBlank($("#txtCity").val()))||(_vgCovidCleanCheckout.GetState(),_vgCovidCleanCheckout.ChangeCountry(e),_vgCovidCleanCheckout.openCloseAddresspopup(1),$(".modal:visible").each(function(e,t){centerModal(t)}),!1)},ChangeCountry:function(e){var t="";$("#selectedCountrudiv").attr("data-country",e),$("#selectedCountrudiv").removeClass().addClass("selectedcountry "+_vgCovidCleanCheckout.model.countryMapImage[e]),$(".countryflag").removeClass("active").attr("aria-selected",!1),1==e?($("#lblZipCode").text("ZIP Code:"),$("#txtZip").attr("placeholder","ZIP Code"),$("#lblState").text("State:"),$("#lblCity").text("City:"),$("#txtCity").attr("placeholder","City"),t="us-f"):2==e?($("#lblZipCode").text("Postcode:"),$("#txtZip").attr("placeholder","Postcode"),$("#lblState").text("County:"),$("#lblCity").text("City:"),$("#txtCity").attr("placeholder","City"),t="uk-f"):3==e?($("#lblZipCode").text("Postal Code:"),$("#txtZip").attr("placeholder","Postal Code"),$("#lblState").text("Province:"),$("#lblCity").text("City:"),$("#txtCity").attr("placeholder","City"),t="canada-f"):4==e&&($("#lblZipCode").text("Postcode:"),$("#txtZip").attr("placeholder","Postcode"),$("#lblState").text("State/Territory:"),$("#lblCity").text("Suburb:"),$("#txtCity").attr("placeholder","Suburb"),t="aus-f"),$(".flag-"+t).addClass("active").attr("aria-selected",!0),_vgCovidCleanCheckout.BindState(!1),$("#hdncountryid").val(e),$("#mycountrypopup").removeClass(),$("#mycountrypopup").addClass("selectedcountry "+t),$(".selectoptionpopup").removeAttr("style").attr("style","display:none"),$(".selectoptionpopup").removeClass("active").attr("aria-selected",!1)},SaveAddress:function(e){var t=$("#txtStreet").val(),o=$("#txtCity").val(),n=$("#txtState").val(),a=$("#txtZip").val(),i=null==t?"":t;return i=(i=(i=i+(""!=i?", ":"")+(null==o?"":o))+(""!=i?", ":"")+(null==n?"":n))+(""!=i?", ":"")+(null==a?"":a),$("#txtAddress").select2("val",i),$("#txtAddress").attr("data-preval",i),_vgCovidCleanCheckout.setAddressControl(),$("#txtSuite").val($("#txtStreet1").val()),_vgCovidCleanCheckout.openCloseAddresspopup(0),!1},CancelAddress:function(e){_vgCovidCleanCheckout.ClearAddressValue(),_vgCovidCleanCheckout.openCloseAddresspopup(0)},checkBirthDate:function(){var e=document.getElementById("cboDay").value,t=document.getElementById("cboMonth").value,o=document.getElementById("cboYear").value,n=!1;return"-1"!=e&&"-1"!=t&&"-1"!=o&&(n=chkDate(t+"/"+e+"/"+o,!0)),n},ProccessBank:function(){if(!MyAccountVPLCell.validatePhoneNumber(!0)){var e=MyAccountVPLCell.getValidateMessage();return 1==e.WarningType?_vgCovidCleanCheckout.WarningMessage("Please enter mobile no"):_vgCovidCleanCheckout.WarningMessage(e.WarningMessage),!1}if(String.isNullOrUndefineOrBlank($("#emailid").val()))return _vgCovidCleanCheckout.WarningMessage("Please enter emailId"),!1;if(0==_vgCovidCleanCheckout.ValidateEmail())return _vgCovidCleanCheckout.WarningMessage("Please enter valid emailId"),!1;if(!_vgCovidCleanCheckout.checkBirthDate()||"-1"==$("#cboMonth").val()&&"-1"==$("#cboMonth").val()&&"-1"==$("#cboYear").val())return _vgCovidCleanCheckout.WarningMessage("Invalid Birth Date"),!1;if(String.isNullOrUndefineOrBlank($("#txtAddress").val()))return _vgCovidCleanCheckout.WarningMessage("Please enter address"),!1;if(""!=$("#txtAddress").val().trim()){if(!_vgCovidCleanCheckout.validateAddressData())return!1}else $("#cboRState").val("-1");var t=$("#hdnEmailBeforeChange").val(),o=$("#hdnCellNoBeforeChange").val(),n=t!=$("#emailid").val(),a=o!=$("#txtCell").val().replace(/([()-\s])+/g,"");if(IsEmailPhoneChanged=!1,1!=n&&1!=a||(_vgCovidCleanCheckout.model.vplTwoFactorStatus=1==n&&1==a?_vgCovidCleanCheckout.model.VPLTwoFactor.EmailAndCell:1==n?_vgCovidCleanCheckout.model.VPLTwoFactor.Email:_vgCovidCleanCheckout.model.VPLTwoFactor.Cell),_vgCovidCleanCheckout.model.vplTwoFactorStatus!=_vgCovidCleanCheckout.model.VPLTwoFactor.None){if(TwoFactorPageType=_twoFactor.PageType.CovidClean,UserID=_vgCovidCleanCheckout.model.VplUserDetails.UserID,$("#hdnEmailAndCell2FScreenVPL").val()>_twoFactor.EmailAndCell2FScreen.None)if(_vgCovidCleanCheckout.model.vplTwoFactorStatus==_vgCovidCleanCheckout.model.VPLTwoFactor.EmailAndCell||_vgCovidCleanCheckout.model.vplTwoFactorStatus==_vgCovidCleanCheckout.model.VPLTwoFactor.Email){authenticationMode=_twoFactor.AuthCodeReceiveMode.Email,IsEmailPhoneChanged=_vgCovidCleanCheckout.model.vplTwoFactorStatus==_vgCovidCleanCheckout.model.VPLTwoFactor.EmailAndCell;var i='"strUserName" :""';i+=',"strEmailID" :"'+$("#emailid").val()+'"',i+=',"UserID" :'+parseInt(UserID),CallWebServicehed("MySampleService.asmx/CheckUserNameAvailabilityWithUserID",i,_vgCovidCleanCheckout.CallSuccessWithEmail,_vgCovidCleanCheckout.CallFailedCustomerJSON)}else _vgCovidCleanCheckout.model.vplTwoFactorStatus==_vgCovidCleanCheckout.model.VPLTwoFactor.Cell?(authenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,_vgCovidCleanCheckout.GetfilterrequestDataByEmail()):_vgCovidCleanCheckout.SaveVPLUSerDetailProfile()}else _vgCovidCleanCheckout.SaveVPLUSerDetailProfile()},SaveVPLUSerDetailProfile:function(){if(!MyAccountVPLCell.validatePhoneNumber(!0)){var e=MyAccountVPLCell.getValidateMessage();return 1==e.WarningType?_vgCovidCleanCheckout.WarningMessage("Please enter mobile no"):_vgCovidCleanCheckout.WarningMessage(e.WarningMessage),!1}if(String.isNullOrUndefineOrBlank($("#emailid").val()))return _vgCovidCleanCheckout.WarningMessage("Please enter emailId"),!1;if(0==_vgCovidCleanCheckout.ValidateEmail())return _vgCovidCleanCheckout.WarningMessage("Please enter valid emailId"),!1;if(!_vgCovidCleanCheckout.checkBirthDate()||"-1"==$("#cboMonth").val()&&"-1"==$("#cboMonth").val()&&"-1"==$("#cboYear").val())return _vgCovidCleanCheckout.WarningMessage("Invalid Birth Date"),!1;if(String.isNullOrUndefineOrBlank($("#txtAddress").val()))return _vgCovidCleanCheckout.WarningMessage("Please enter address"),!1;if(""!=$("#txtAddress").val().trim()){if(!_vgCovidCleanCheckout.validateAddressData())return!1}else $("#cboRState").val("-1");$("#hdnEmailBeforeChange").val($("#emailid").val()),$("#hdnCellNoBeforeChange").val($("#txtCell").val().replace(/([()-\s])+/g,"")),_vgCovidCleanCheckout.model.vplTwoFactorStatus=_vgCovidCleanCheckout.model.VPLTwoFactor.None,ShowLoader(!0);var t={};t.UserID=_vgCovidCleanCheckout.model.VplUserDetails.UserID,t.strFirstName=_vgCovidCleanCheckout.model.VplUserDetails.FirstName,t.strLastName=_vgCovidCleanCheckout.model.VplUserDetails.LastName,t.CustomerEmail=$("#emailid").val().trim(),t.strStreet=$("#txtStreet").val().trim(),t.CountryID=$("#hdncountryid").val(),t.strState=$("#ddlState").val(),t.strCity=$("#txtCity").val().trim(),t.strZip=$("#txtZip").val().trim(),t.Cell=$("#txtCell").val().replace(/([()-\s])+/g,""),t.DayPhone="",t.NightPhone="","-1"==$("#cboMonth").val()&&"-1"==$("#cboMonth").val()?(t.Month=null,t.Day=null,t.Year=null):(t.Month=$("#cboMonth").val(),t.Day=$("#cboDay").val(),t.Year=$("#cboYear").val()),t.strStreetNo=$("#txtSuite").val(),t.strStateName=$("#txtState").val(),t.strCellProvider="-1",t.strExp=_vgCovidCleanCheckout.model.VplUserDetails.BusinessSummary,t.Gender=_vgCovidCleanCheckout.model.VplUserDetails.Gender,t.IsFromOnline=!0;var o={};o.objCustInfo=t,o.ObjCustomerprofile=null,CallWSJSON("VagaroWebOffline.asmx/AddEditCustomer",JSON.stringify(o),_vgCovidCleanCheckout.CallSuccess_InsertCustomer,_vgCovidCleanCheckout.CallFailedCustomerJSON),ShowLoader(!1)},CallSuccess_InsertCustomer:function(e){if(e=e.d,ShowLoader(!1),null==e)_vgCovidCleanCheckout.FailedMessage("something went wrong");else if(e.UserID<=0)_vgCovidCleanCheckout.WarningMessage(e.Message);else{var t,o,n={};n.submerchant_id=128789,n.CoreAPIURL=document.getElementById("hdnVagaroCoreAPIUrl").value,n.UserID=_vgCovidCleanCheckout.model.VplUserDetails.UserID,n.billing_address={city_locality:e.City,postal_code:e.Zip,line_1:e.Street,line_2:e.StreetNo,country_code:_vgCovidCleanCheckout.model.countryMapping[e.CountryID],state_province:e.StateID},n.company_name="",null!=e.BirthDate&&""!=e.BirthDate?(n.date_of_birth=moment(e.BirthDate)._d.format("yyyy-mm-dd"),"1-01-01"==n.date_of_birth&&(n.date_of_birth="1900-01-01")):n.date_of_birth="1900-01-01",n.email_address=e.EmailId,n.email_address_is_verified=!0,n.external_customer_id="101",n.first_name=e.FirstName,n.last_name=e.LastName,n.phone_number=e.Cell,n.phone_number_is_verified=!0;for(var a=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<a.length;i++)o=window.location.href.indexOf("?")>-1?a[i].split("?"):"";t=o[1],String.isNullOrUndefineOrBlank(t)&&(t=o[0]),n.merchant_token_id=t,_vgCovidCleanCheckout.model.VplUserDetails.EmailId=$("#emailid").val().trim(),_vgCovidCleanCheckout.model.VplUserDetails.Cell=$("#txtCell").val().replace(/([()-\s])+/g,""),_vgCovidCleanCheckout.model.VplUserDetails.Street=$("#txtStreet").val().trim(),_vgCovidCleanCheckout.model.VplUserDetails.BirthDate=n.date_of_birth,$("#divVplAddBankDetails").hide(),_vgVPLOnline.EnrollNewUser(n)}},CallFailedCustomerJSON:function(e){ShowLoader(!1),_vgCovidCleanCheckout.WarningMessage("Something went wrong, Try Again.")},CallSuccessWithEmail:function(e){1*e.d==1?(_vgCovidCleanCheckout.WarningMessage("Email already exists."),ShowLoader(!1)):_vgCovidCleanCheckout.GetfilterrequestDataByEmail()},GetfilterrequestDataByEmail:function(){ShowLoader(!0);var e={};String.isNullOrUndefineOrBlank(fpDeviceId)||(e.UserAgent=navigator.userAgent,e.VisitorID=fpDeviceId),e.UserEmail=$("#emailid").val(),e.OwnersPhone=MyAccountVPLCell.getPhoneData().phoneNo,e.IP=$("#hdnIPAddress").val(),e.UserId=parseInt(_vgCovidCleanCheckout.model.VplUserDetails.UserID);var t=new vagaro.ajax;t.datamodel.Token="websiteapi/myaccount/getdatabybrowservisitorid",t.datamodel.IsNewVagaroAPI=!0,t.datamodel.data=e,t.datamodel.callback=function(e){if(null!=typeof e&&null!=e&&(userccattemptdata=e),null!=typeof userccattemptdata&&null!=userccattemptdata){if(1==userccattemptdata.IsBlock)return ShowLoader(!1),String.isNullOrUndefineOrBlank(userccattemptdata.BlockErrorCode)||"XJ140"!=userccattemptdata.BlockErrorCode||($("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)),void(IsBlocked=!0);if(IsBlocked=!1,"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.CovidClean){TwoFactorPageType=_twoFactor.PageType.CovidClean;var t={};t.emailid=$("#emailid").val(),t.phone=MyAccountVPLCell.getPhoneData().phoneNo,t.fullname=_vgCovidCleanCheckout.model.VplUserDetails.Fullname,t.CountryID=MyAccountVPLCell.getPhoneData().countryId,t.IP=$("#hdnIPAddress").val(),t.IsEmailPhoneChanges=IsEmailPhoneChanged,t.NoOfLoginAttemptemail=NoOfLoginAttemptemail,t.AuthenticationMode=authenticationMode,t.IsFromBusinessSignup=!0,_twoFactor.SendTowFactorAuthenticationCode(t)}}else IsBlocked=!1,ShowLoader(!1)},t.datamodel.Error=function(){ShowLoader(!1)},t.Post()},showConfirmbox:function(e,t,o,n,a){$("#divConfirmBox").find("#confirmmsg").html(e),$("#divConfirmBox").find("#confirmTitle").html(o),$("#divConfirmBox").find(".w-button-primary").show(),$("#divConfirmBox").find(".close-modal").show(),$("#divConfirmBox").fadeIn(),$("html").addClass("popupscroll"),$("body").css("overflow","hidden"),$("#divConfirmBox").addClass("in"),n||$("#divConfirmBox").find(".w-button-primary").hide(),0==a&&$("#divConfirmBox").find(".close-modal").hide()},hideConfirmbox:function(){$("#divConfirmBox").fadeOut(),$("#divConfirmBox").removeClass("in"),$("html").removeClass("popupscroll"),$("body").css("overflow","auto"),location.reload(!0)},checkoutAffirmPayment:function(){var e=$("#"+_vgCovidCleanCheckout.model.hdnIsVplCheckoutPage).val(),t=$("#"+_vgCovidCleanCheckout.model.hdnIsErrorAccount).val(),o=$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val(),n=_vgCovidCleanCheckout.model.checkOutSummeryData=JSON.parse(o);if("undfined"!=typeof t&&null!=t&&""!=t&&"false"!=t.toLowerCase())_vgCovidCleanCheckout.ShowAffirmAddressScreen();else if("true"==e.toLowerCase()){var a=$("#"+_vgCovidCleanCheckout.model.ErrorMessage).val();parseInt(a)==_vgCovidCleanCheckout.model.errorType.LinkExpire?($(".vagaro-blue-icon").hide(),$(".vagaro-close-icon-size").show(),$("#"+_vgCovidCleanCheckout.model.checkoutTimeOut).text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout Timed Out"),$("#"+_vgCovidCleanCheckout.model.checkoutResent).text("Ask for the "+_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout to be re-sent."),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show()):($(".vagaro-blue-icon").hide(),$(".sucesslogo").show(),$("#"+_vgCovidCleanCheckout.model.PaymentCompleted).text(_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout Complete"),$("#"+_vgCovidCleanCheckout.model.titleCheckout).text("Vagaro | "+_vgCovidCleanCheckout.model.VplGatewayTypeText+" Checkout"),$("."+_vgCovidCleanCheckout.model.divAlreadyCheckout).show()),$(".checkout-final-price").text(n[0].checkoutData.currencySymbol+n[0].checkoutData.vplAmt.toFixed(2)),$(".checkoutClass").text(n[0].checkoutData.salonName),n[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==n[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+n[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?"),$(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show()}else $(".chcekoutComplateHeader").text("Checkout Complete"),$(".timeoutMsg").text("Checkout Timed Out"),$(".timeoutResetMsg").text("Ask for the Checkout to be re-sent."),$(".checkout-final-price").text(n[0].checkoutData.currencySymbol+n[0].checkoutData.vplAmt.toFixed(2)),$(".checkoutClass").text(n[0].checkoutData.salonName),n[0].checkoutData.checkoutGridrow.length>1?$(".exp-text").text("How was your experience?"):1==n[0].checkoutData.checkoutGridrow.length&&$(".exp-text").text("How was your experience with "+n[0].checkoutData.checkoutGridrow[0].serviceProviderName+"?"),$(".checkout-addtip-inner").hide(),$("#"+_vgCovidCleanCheckout.model.divAppNotFound).show(),$("."+_vgCovidCleanCheckout.model.divLinkExpire).show()},ShowAffirmAddressScreen:function(){_vgCovidCleanCheckout.model.VplUserDetails=JSON.parse($("#hdnUserDetails").val()),_vgCovidCleanCheckout.model.VplUserDetails.InitialOfName=_vgCovidCleanCheckout.FindInitials(_vgCovidCleanCheckout.model.VplUserDetails.Fullname),$("#txtAddress").on("select2-focus",function(e){$(".countryselectmyacprofile").is(":visible")&&$(".countryselectmyacprofile").hide()}),_vgCovidCleanCheckout.setAddressControl(),$("#s2id_autogen1").attr("autocomplete","off"),$("#hdncountryid").val(_vgCovidCleanCheckout.model.VplUserDetails.CountryID),$("#hdnCountry").val(_vgCovidCleanCheckout.model.VplUserDetails.CountryID),$("#hdnUserType").val(_vgCovidCleanCheckout.model.VplUserDetails.UserType),"undefined"!=typeof MyAccountVPLCell&&null!=MyAccountVPLCell||(MyAccountVPLCell=$("#txtCell").PhonePlugin({UserRole:String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.UserType)||"1"!=_vgCovidCleanCheckout.model.VplUserDetails.UserType?1:2,ControlText:"Mobile Phone",IsPhoneNoRequire:!0,CurrentLocationCountryID:"undefined"!=typeof cookie&&null!=cookie?parseInt(cookie.countryid):1,CountryId:_vgCovidCleanCheckout.model.VplUserDetails.CellCountryID>0?_vgCovidCleanCheckout.model.VplUserDetails.CellCountryID:1})),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Cell)?_vgCovidCleanCheckout.model.vplTwoFactorStatus=_vgCovidCleanCheckout.model.VPLTwoFactor.Cell:($("#hdnCellNoBeforeChange").val(_vgCovidCleanCheckout.model.VplUserDetails.Cell),MyAccountVPLCell.setPhoneData(_vgCovidCleanCheckout.model.VplUserDetails.CellCountryID,_vgCovidCleanCheckout.model.VplUserDetails.Cell)),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.EmailId)?_vgCovidCleanCheckout.model.vplTwoFactorStatus=_vgCovidCleanCheckout.model.vplTwoFactorStatus!=_vgCovidCleanCheckout.model.VPLTwoFactor.None?_vgCovidCleanCheckout.model.VPLTwoFactor.EmailAndCell:_vgCovidCleanCheckout.model.VPLTwoFactor.Email:($("#hdnEmailBeforeChange").val(_vgCovidCleanCheckout.model.VplUserDetails.EmailId),$("#emailid").val(_vgCovidCleanCheckout.model.VplUserDetails.EmailId)),$("#selectedCountrudiv").removeClass().addClass("selectedcountry "+_vgCovidCleanCheckout.model.countryMapImage[_vgCovidCleanCheckout.model.VplUserDetails.CountryID]);var e,t,o,n;if(e=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Street)?"":_vgCovidCleanCheckout.model.VplUserDetails.Street+", ",t=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.City)?"":_vgCovidCleanCheckout.model.VplUserDetails.City+", ",o=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.StateName)?"":_vgCovidCleanCheckout.model.VplUserDetails.StateName+", ",n=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Zip)?"":_vgCovidCleanCheckout.model.VplUserDetails.Zip,$("#txtAddress").select2("val",e+t+o+n),$("#txtStreet").val(e),$("#txtCity").val(t),$("#txtState").val(o),$("#txtZip").val(n),$("#hdnStateId").val(_vgCovidCleanCheckout.model.VplUserDetails.StateID),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.StreetNo)||$("#txtSuite").val(_vgCovidCleanCheckout.model.VplUserDetails.StreetNo),document.getElementById("vplUserName").innerHTML=_vgCovidCleanCheckout.model.VplUserDetails.Fullname,document.getElementById("vplUserEmail").innerHTML=_vgCovidCleanCheckout.model.VplUserDetails.EmailId,document.getElementById("vplUserContact").innerHTML=_checkout.FormatPhoneByCountry(_vgCovidCleanCheckout.model.VplUserDetails.Cell,_vgCovidCleanCheckout.model.VplUserDetails.CountryID),$("#hdnVPLUserID").val(_vgCovidCleanCheckout.model.VplUserDetails.UserID),String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.Photo))$("#theImgAvatar").hide(),document.getElementById("vplUserAvatar").innerHTML=String.isNullOrUndefineOrBlank(_vgCovidCleanCheckout.model.VplUserDetails.InitialOfName)?"":_vgCovidCleanCheckout.model.VplUserDetails.InitialOfName;else{var a=_vgCovidCleanCheckout.model.VplUserDetails.CDNUrl+"Original/"+_vgCovidCleanCheckout.model.VplUserDetails.Photo;$("#theImgAvatar").attr("src",a)}$("#affirmPaymentTitle").text("Confirm Your Details for Affirm Payment"),$("#affirmbankdetails").hide(),$("#affirmBirthdate").hide(),$("#btnBackVPLScreen2").hide(),$("#btnProccessBank").text("Next"),$("#"+_vgCovidCleanCheckout.model.divVplSignUp).show(),$("#divVplAddBankDetails").show()},UpdateAffirmUserData:function(){if(!MyAccountVPLCell.validatePhoneNumber(!0)){var e=MyAccountVPLCell.getValidateMessage();return 1==e.WarningType?_vgCovidCleanCheckout.WarningMessage("Please enter mobile no"):_vgCovidCleanCheckout.WarningMessage(e.WarningMessage),!1}if(String.isNullOrUndefineOrBlank($("#emailid").val()))return _vgCovidCleanCheckout.WarningMessage("Please enter emailId"),!1;if(0==_vgCovidCleanCheckout.ValidateEmail())return _vgCovidCleanCheckout.WarningMessage("Please enter valid emailId"),!1;if(String.isNullOrUndefineOrBlank($("#txtAddress").val()))return _vgCovidCleanCheckout.WarningMessage("Please enter address"),!1;if(""!=$("#txtAddress").val().trim()){if(!_vgCovidCleanCheckout.validateAddressData())return!1}else $(".cboRState").val("-1");_vgCovidCleanCheckout.model.VplUserDetails=JSON.parse($("#hdnUserDetails").val()),_vgCovidCleanCheckout.model.VplUserDetails.EmailId=$("#emailid").val().trim(),_vgCovidCleanCheckout.model.VplUserDetails.Cell=MyAccountVPLCell.getPhoneData().phoneNo,_vgCovidCleanCheckout.model.VplUserDetails.Street=$("#txtStreet").val().trim(),_vgCovidCleanCheckout.model.VplUserDetails.City=$("#txtCity").val().trim(),_vgCovidCleanCheckout.model.VplUserDetails.CountryID=$("#hdncountryid").val(),_vgCovidCleanCheckout.model.VplUserDetails.Zip=$("#txtZip").val().trim(),addressData?.statecode&&(_vgCovidCleanCheckout.model.VplUserDetails.StateCode=addressData.statecode),$("#hdnUserDetails").val(JSON.stringify(_vgCovidCleanCheckout.model.VplUserDetails)),$("#"+_vgCovidCleanCheckout.model.divVplSignUp).hide(),_vgCovidCleanCheckout.vplCheckoutTotalDueScreen()}},_HighRiskEmailCheck={},_HighRiskEmailCheck.CertegyFailedEmail=function(){ShowLoader(!0);var e=JSON.parse($("#hdnUserDetails").val()).EmailId,t=$(".customeb-body p").text(),o=$(".customeb-body-last #certegydate").text(),n=$(".customeb-body-last #certegyref").text(),a=new vagaro.ajax;a.datamodel.Token="SendMailForCertegyHighRisk",a.datamodel.callback=function(e){},a.datamodel.data=[e,t,o,n],a.datamodel.Error=function(e){},a.Post(),$("#vpl-payment-fail-popup").modal("show"),$(".customeb-body a").replaceWith("<p>Email is sent to your email ID. Please check Inbox.</p>"),ShowLoader(!1)},_checkout={},_checkout.ajax=function(e,t,o,n,a,i,r){_common.resetSessiontimer();var d=new vagaro.ajax;d.datamodel.Token=e,d.datamodel.data=t,d.datamodel.callback=o,d.datamodel.Error=n,void 0!==r&&null!=r&&1==r&&(d.datamodel.IsNewVagaroAPI=!0),void 0!==i&&1==i&&(d.datamodel.ErrorMessage=_checkout.Empty),a?d.PostQue():d.Post()};var e={getVplInviteHistoryData:document.getElementById("hdnVagaroCoreAPIUrl").value+"VagaroPayLater/getuservplinvitehistorydetail",getVplCustomerAccountDetailsData:document.getElementById("hdnVagaroCoreAPIUrl").value+"VagaroPayLater/getuservplaccountdetail",getvplmerchanttokenid:document.getElementById("hdnVagaroCoreAPIUrl").value+"VagaroPayLater/getvplmerchanttokenid",getState:"myaccount/getstatesbymultiplecountryid",getStateCode:"myaccount/GetCityByZipCodeWithStatecode",Getcitybyzipcode:"myaccount/getcitybyzipcode"};_common={},_common.resetSessiontimer=function(){try{"function"==typeof resetTimer&&resetTimer()}catch(e){}},_checkout.CallFailed=function(){};var t={};_checkout.GetInviteHistoryDetails_Success=function(e){var o=e.Data;if(_vgCovidCleanCheckout.model.VplUserDetails=o.userDetailsVPL,null==o.userDetailsVPL.CountryName&&(o.userDetailsVPL.CountryName=""),null==o.userDetailsVPL.StateCode&&(o.userDetailsVPL.StateCode=""),t.submerchant_id=128789,t.CoreAPIURL=document.getElementById("hdnVagaroCoreAPIUrl").value,t.UserID=o.userDetailsVPL.UserID,t.billing_address={city_locality:o.userDetailsVPL.City,postal_code:o.userDetailsVPL.Zip,line_1:o.userDetailsVPL.Street,line_2:o.userDetailsVPL.StreetNo,country_code:o.userDetailsVPL.CountryName,state_province:o.userDetailsVPL.StateCode},t.company_name="",null!=o.userDetailsVPL.BirthDate&&""!=o.userDetailsVPL.BirthDate?(t.date_of_birth=moment(o.userDetailsVPL.BirthDate)._d.format("yyyy-mm-dd"),"1-01-01"==t.date_of_birth&&(t.date_of_birth="1900-01-01")):t.date_of_birth="1900-01-01",t.email_address=o.userDetailsVPL.EmailId,t.email_address_is_verified=!0,t.external_customer_id="101",t.first_name=o.userDetailsVPL.FirstName,t.last_name=o.userDetailsVPL.LastName,t.phone_number=o.userDetailsVPL.Cell,t.phone_number_is_verified=!0,document.getElementById("vplUserName").innerHTML=o.userDetailsVPL.Fullname,document.getElementById("vplUserEmail").innerHTML=o.userDetailsVPL.EmailId,String.isNullOrUndefineOrBlank(o.userDetailsVPL.CountryID)&&(o.userDetailsVPL.CountryID=1),document.getElementById("vplUserContact").innerHTML=_checkout.FormatPhoneByCountry(o.userDetailsVPL.Cell,o.userDetailsVPL.CountryID),$("#hdnVPLUserID").val(o.userDetailsVPL.UserID),null!=o.vplUserInviteHistory&&($("#hdnVPLUserBusinessID").val(o.vplUserInviteHistory.BusinessID),document.getElementById("vplUserEmail").innerHTML=o.vplUserInviteHistory.Email,document.getElementById("vplUserContact").innerHTML=_checkout.FormatPhoneByCountry(o.vplUserInviteHistory.Cell,o.userDetailsVPL.CountryID)),""!=o.userDetailsVPL.Photo){var n=o.userDetailsVPL.Photo;$("#theImgAvatar").attr("src",n)}else $("#theImgAvatar").hide(),document.getElementById("vplUserAvatar").innerHTML=o.userDetailsVPL.InitialOfName;$("#"+_vgCovidCleanCheckout.model.divVplSignUp).show(),$("#"+_vgCovidCleanCheckout.model.divVplGetStarted).hide(),_checkout.AfterBankAddedSuccess()},_checkout.GetInviteHistoryDetailsScreen3_Success=function(e){var t=e.Data;if(null==t.userAccountDetailsVPL)return!1;if($("#"+_vgCovidCleanCheckout.model.divVplSignUp).hide(),$("#"+_vgCovidCleanCheckout.model.divVplThankyou).show(),String.isNullOrUndefineOrBlank(t.userDetailsVPL.CountryID)&&(t.userDetailsVPL.CountryID=1),_vgCovidCleanCheckout.model.VplUserDetails=t.userDetailsVPL,document.getElementById("vplUserName3").innerHTML=t.userDetailsVPL.Fullname,document.getElementById("vplUserEmail3").innerHTML=t.userDetailsVPL.EmailId,document.getElementById("vplUserContact3").innerHTML=_checkout.FormatPhoneByCountry(t.userDetailsVPL.Cell,t.userDetailsVPL.CountryID),null!=t.userAccountDetailsVPL){document.getElementById("vplBankName").innerHTML=t.userAccountDetailsVPL.bank_name;var o=t.userAccountDetailsVPL.account_number,n=o.substring(o.length-4,o.length);document.getElementById("vplBankAcFourDigit").innerHTML="ending in "+n}if(null!=t.vplUserInviteHistory&&(document.getElementById("vplUserEmail3").innerHTML=t.vplUserInviteHistory.Email,document.getElementById("vplUserContact3").innerHTML=_checkout.FormatPhoneByCountry(t.vplUserInviteHistory.Cell,t.userDetailsVPL.CountryID)),""!=t.userDetailsVPL.Photo){var a=t.userDetailsVPL.Photo;$("#theImgAvatar3").attr("src",a)}else $("#theImgAvatar3").hide(),document.getElementById("vplUserAvatar3").innerHTML=t.userDetailsVPL.InitialOfName},_checkout.GetInviteHistoryDetailsScreen3_SuccessLogin=function(e){var t=e.Data;if(null==t.userAccountDetailsVPL)return!1;if($("#"+_vgCovidCleanCheckout.model.divVplSignUp).hide(),$("#"+_vgCovidCleanCheckout.model.divVplThankyou).show(),String.isNullOrUndefineOrBlank(t.userDetailsVPL.CountryID)&&(t.userDetailsVPL.CountryID=1),_vgCovidCleanCheckout.model.VplUserDetails=t.userDetailsVPL,document.getElementById("vplUserName3").innerHTML=t.userDetailsVPL.Fullname,document.getElementById("vplUserEmail3").innerHTML=t.userDetailsVPL.EmailId,document.getElementById("vplUserContact3").innerHTML=_checkout.FormatPhoneByCountry(t.userDetailsVPL.Cell,t.userDetailsVPL.CountryID),null!=t.userAccountDetailsVPL){document.getElementById("vplBankName").innerHTML=t.userAccountDetailsVPL.bank_name;var o=t.userAccountDetailsVPL.account_number,n=o.substring(o.length-4,o.length);document.getElementById("vplBankAcFourDigit").innerHTML="ending in "+n}if(null!=t.vplUserInviteHistory&&(document.getElementById("vplUserEmail3").innerHTML=t.vplUserInviteHistory.Email,document.getElementById("vplUserContact3").innerHTML=_checkout.FormatPhoneByCountry(t.vplUserInviteHistory.Cell,t.userDetailsVPL.CountryID)),""!=t.userDetailsVPL.Photo){var a=t.userDetailsVPL.Photo;$("#theImgAvatar3").attr("src",a)}else $("#theImgAvatar3").hide(),document.getElementById("vplUserAvatar3").innerHTML=t.userDetailsVPL.InitialOfName},vplCustomerBankListCheckout={},_checkout.GetCustomerBankAccountDetails_Success=function(e){var t=e.Data;if(null!=t.vplUserAccounts&&t.vplUserAccounts.length>0){vplCustomerBankListCheckout=t.vplUserAccounts;var o=t.vplUserAccounts[t.vplUserAccounts.length-1].ACFourDigit;$("#BankList").html(""),$("#tmplUserBankListtmplUserBankList").tmpl(vplCustomerBankListCheckout).appendTo("#BankList"),$("#rb_"+o).attr("checked","checked")}$("#"+_vgCovidCleanCheckout.model.vplAppliedPopup).hide(),$("#"+_vgCovidCleanCheckout.model.vplAppliedPopup).css("display","none"),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutTip).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).show(),$("#"+_vgCovidCleanCheckout.model.divSigNature).hide()},ShowLoader=function(e){e?$("#"+_vgCovidCleanCheckout.model.divCovidoader).show():$("#"+_vgCovidCleanCheckout.model.divCovidoader).hide()},_checkout.FormatPhoneByCountry=function(e,t){try{if(null!=e&&void 0!==e&&0!=e.length&&e.length>8){var o=e.replace(/\D/g,""),n={0:"(",3:") ",6:"-"};void 0!==t&&null!=t&&1*t>0&&(2==t&&10==o.length||4==t&&9==o.length)&&(o="0"+o),void 0!==t&&null!=t&&1*t>0&&(2==t?n={3:" ",7:" "}:3==t?n={3:"-",6:"-"}:4==t&&(n={0:"(",2:") ",6:" "})),e="";for(var a=0;a<o.length;a++)e+=(n[a]||"")+o[a]}return e}catch(t){return e}},ShowPopupAlert=function(e,t,o){},_checkout.AfterBankAddedSuccess=function(){var t={};t.InviteMongoID=$("#"+_vgCovidCleanCheckout.model.hdnInviteMongoID).val(),_checkout.ajax(e.getVplInviteHistoryData,t,_checkout.GetInviteHistoryDetailsScreen3_SuccessLogin,_checkout.CallFailed,!1,void 0,!0)},_checkout.AfterBankAddedSuccessCheckoutTime=function(){var t={};t.UserID=parseInt($("#hdnVPLCheckoutCustmerID").val()),t.EncryptUserID=$("#hdnEncPayeeId").val(),_checkout.ajax(e.getVplCustomerAccountDetailsData,t,_checkout.GetCustomerBankAccountDetails_Success,_checkout.CallFailed,!1,void 0,!0)},_checkout.AfterPaymentSuccessCheckoutTime=function(e){ShowLoader(!0),_vgCovidCleanCheckout.VcfWithccvplCheckout(e)};var o=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();isAndroid=!(!o.match(/Android/i)&&!o.toLowerCase().match(/kf/i)),iOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_checkout.PaymentSchduleSuccess=function(t){if(_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm||void 0!==t&&null!=t&&t.InstallmentDetails.length>0){$("#"+_vgCovidCleanCheckout.model.hdnCovidSummy).val();var o=_vgCovidCleanCheckout.model.checkOutSummeryData;if(_vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Certegy){var n=t.InstallmentDetails[0];if($(".vplSlotAmt1").text(o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.amount,!0,2)),o[0].checkoutData.ccAmt>0&&o[0].checkoutData.vplAmt>0){var a=parseFloat(o[0].checkoutData.ccAmt)+parseFloat(n.amount),i=_vgCovidCleanCheckout.model.checkOutSummeryData;if(void 0!==i&&null!=i&&""!=i){var r=_checkout.GetVCFFeeAmount(!1);r>0&&(a=r+a)}var d=parseFloat(a).toFixed(2);$("#VplCheckoutScreen4 .vplSlotAmt1").text("Total: "+o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(d,!0,2))}$(".vplSlotWeek1").text(" Due Today"),$(".vplSlotWeek1").addClass("m-4-span-none"),$("#vplparentclassw").addClass("m-4-install-first-ins"),$(".vplSlotDate1").text(moment(n.date).format(DatePickerFormat(VagaroCountryDateFormat.SmallDate))),$(".duetodayCheckoutScreen").text("Due Today: "+o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.amount,!0,2)),$(".dueAmtWithTextVPLCheckoutScreen3").text("4 interest-free payments of "+o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.amount,!0,2)),$(".dueAmtVplCheckoutScreen3").text(o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.amount,!0,2)+" due now");var l=t.InstallmentDetails[1];$(".vplSlotAmt2").text(o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(l.amount,!0,2)),$(".vplSlotWeek2").text("Due In 2 Weeks"),$(".vplSlotWeek2").addClass("m-4-span-none"),$(".vplSlotDate2").text(moment(l.date).format(DatePickerFormat(VagaroCountryDateFormat.SmallDate)));var s=t.InstallmentDetails[2];$(".vplSlotAmt3").text(o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(s.amount,!0,2)),$(".vplSlotWeek3").text("Due In 4 Weeks"),$(".vplSlotWeek3").addClass("m-4-span-none"),$(".vplSlotDate3").text(moment(s.date).format(DatePickerFormat(VagaroCountryDateFormat.SmallDate)));var c=t.InstallmentDetails[3];$(".vplSlotAmt4").text(o[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(c.amount,!0,2)),$(".vplSlotWeek4").text("Due In 6 Weeks"),$(".vplSlotWeek4").addClass("m-4-span-none"),$(".vplSlotDate4").text(moment(c.date).format(DatePickerFormat(VagaroCountryDateFormat.SmallDate)))}else _vgCovidCleanCheckout.model.VplGatewayType==_vgCovidCleanCheckout.model.VplProviderType.Affirm&&($(".dueAmtVplCheckoutScreen3").hide(),$(".vplinstallmentdetails").hide());var u={};u.UserID=parseInt($("#hdnVPLCheckoutCustmerID").val()),u.EncryptUserID=$("#hdnEncPayeeId").val(),_checkout.ajax(e.getVplCustomerAccountDetailsData,u,_checkout.GetCustomerBankAccountDetails_Success,_checkout.CallFailed,!1,void 0,!0),ShowLoader(!1)}else ShowLoader(!1),_vgCovidCleanCheckout.FailedMessage("Certegy is under maintenance.")},_checkout.PaymentSchdulefail=function(e){ShowLoader(!1),_vgCovidCleanCheckout.FailedMessage("something went wrong")},_checkout.VplCheckoutScreen=function(e,t,o){var n=_vgCovidCleanCheckout.model.checkOutSummeryData;$("#"+_vgCovidCleanCheckout.model.divVplCheckoutSlotList).hide(),$("#"+_vgCovidCleanCheckout.model.divVplCheckoutScreen).show(),$("#subtotalCheckoutScreen").text("Subtotal: "+n[0].checkoutData.currencySymbol+e.toLocaleString("en",{minimumFractionDigits:2}))},_checkout.openApp=function(e){$("<iframe />").attr("src",e).attr("style","display:none;").appendTo("body")},_checkout.BankRadioClick=function(e){$("#BankList input:radio").prop("checked",!1),$(e).find("input:radio").prop("checked","checked")},_checkout.InitializeVariableForVCF=function(){_checkout.TempVCFMerchants=new Array,_checkout.VCFGridData=new Array,_checkout.IsEnableVCFFee=1==_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.IsEnableVCF,_checkout.BusinessFees=JSON.parse($("#"+_vgCovidCleanCheckout.model.hdngetBusinessFee).val()),_checkout.isConsiderVCF=!1,_checkout.shopOwnerId=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.shopOwnerId},_checkout.GetVCFFeeAmount=function(e){var t=0,o=0;return void 0!==_checkout.VCFGridData&&null!=_checkout.VCFGridData&&_checkout.VCFGridData.length>0&&($.each(_checkout.VCFGridData,function(e,n){n.recordType==_vgCovidCleanCheckout.model.ItemType.VCFFee&&(t+=_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.price,!1,2),o=n.itemID)}),1==e&&_checkout.SetVCFFeeDisplayNameAndAmt(t,o)),t},_checkout.GetVCFFeeForCCDistribution=function(e,t){var o=0;if(1==e.IsConsiderMerchant||1==e.IsOverrideMerchantForVCF){e.VcfccAmt=0;var n=$.grep(_checkout.VCFGridData,function(n){if(n.recordType==_vgCovidCleanCheckout.model.ItemType.VCFFee&&n.serviceProviderID==e.serviceproviderId&&n.FeeAccountType==e.AccountType)o+=_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.price,!1,2),e.VcfccAmt=e.VcfccAmt+_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.price,!1,2);else if(void 0!==e.changeSpId&&null!=e.changeSpId&&n.serviceProviderID==parseInt(e.changeSpId)&&n.FeeAccountType==e.AccountType&&null!=_checkout.TempVCFMerchants&&_checkout.TempVCFMerchants.length>0&&1==_vgCovidCleanCheckout.Arrcontains(_checkout.TempVCFMerchants,parseInt(e.changeSpId))){if(e.merchantType!==_vgCovidCleanCheckout.model.DistributeType.ShopOwner&&0==t&&e.changeSpId.toString()===_checkout.shopOwnerId.toString())return;o+=_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.price,!1,2),e.VcfccAmt=e.VcfccAmt+_vgCovidCleanCheckout.ConvertDecimalWithFixed(n.price,!1,2),_checkout.TempVCFMerchants=$.grep(_checkout.TempVCFMerchants,function(t){return t!=parseInt(e.changeSpId)})}});if(null!=n&&n.length>0)return o}return o},_checkout.SetVCFFeeDisplayNameAndAmt=function(e,t){var o=$.grep(_checkout.BusinessFees,function(e){return e.BusinessFeeID==t});if(null!=o&&o.length>0){var n=void 0!==_checkout.VCFGridData&&null!=_checkout.VCFGridData?_checkout.VCFGridData.length:1,a=o[0].FeeName+" ("+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(o[0].FeeAmount,!0,2)+" X "+n+")";a=1==n?o[0].FeeName+":":o[0].FeeName+" ("+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(o[0].FeeAmount,!0,2)+")",$(".clsVCFDisplayName").text(a)}$(".clsVcfAdminFee").text(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+_vgCovidCleanCheckout.ConvertDecimalWithFixed(e,!0,2));var i=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccAmt;e>0&&(i+=e),$(".ccbtn-price").text(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.currencySymbol+i.toLocaleString("en",{minimumFractionDigits:2}))},_checkout.IsExistsVCFMerchant=function(e,t,o){var n=!1,a=$.grep(e,function(e){return e.ServiceProviderId==t&&e.AccountType==o});return null!=a&&a.length>0&&(n=!0),n},_checkout.SetVCFDistributionValue=function(e,t,o,n){if(1==e)0;else if(0==e){var a=0,i=0,r=0,d=0;_checkout.TempVCFMerchants=new Array,$.each(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(e,t){if(void 0!==t.changeSpId&&null!=t.changeSpId){var o=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution.filter(e=>e.serviceproviderId==parseInt(t.changeSpId)&&e.AccountType==t.AccountType);null!=o&&o.length<=0&&_checkout.TempVCFMerchants.push(parseInt(t.changeSpId))}});var l=!1,s=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution.filter(e=>null!=e.changeSpId&&parseInt(e.changeSpId)==parseInt(_checkout.shopOwnerId));if(void 0!==s&&null!=s&&s.length>0){var c=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution.filter(e=>e.serviceproviderId==parseInt(_checkout.shopOwnerId));void 0!==c&&null!=c&&c.length<=0&&(l=!0)}$.each(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(e,t){t.merchantType===_vgCovidCleanCheckout.model.DistributeType.General?(1==_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.distributionRequestType&&_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.merchantAccountModeType===_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.IndividualAccount&&(t.ccAmount>0&&t.serviceproviderId.toString()===_checkout.shopOwnerId.toString()&&(d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(d+t.ccAmount,!1,2)),t.vplAmount>0&&t.serviceproviderId.toString()===_checkout.shopOwnerId.toString()&&(d=_vgCovidCleanCheckout.ConvertDecimalWithFixed(d+t.vplAmount,!1,2))),a=a+t.vplAmount+t.ccAmount,t.vplAmount,t.ccAmount,_checkout.GetVCFFeeForCCDistribution(t,!1),1==l&&void 0!==t.changeSpId&&null!=t.changeSpId&&t.changeSpId.length>0&&t.changeSpId.toString()===_checkout.shopOwnerId.toString()&&_checkout.GetVCFFeeForCCDistribution(t,!0)):t.merchantType===_vgCovidCleanCheckout.model.DistributeType.Retail?(i=i+t.vplAmount+t.ccAmount,t.vplAmount,t.ccAmount,_checkout.GetVCFFeeForCCDistribution(t,!1)):t.merchantType!==_vgCovidCleanCheckout.model.DistributeType.Membership&&t.merchantType!==_vgCovidCleanCheckout.model.DistributeType.ShopOwner||(r=r+t.vplAmount+t.ccAmount,t.vplAmount,t.ccAmount,_checkout.GetVCFFeeForCCDistribution(t,!1))})}},_checkout.IsExistsVCFFeesRecordsInGrid=function(e,t){var o=String.isNullOrUndefineOrBlank(t)||String.isNullOrUndefineOrBlank(t.serviceproviderId)?"":t.serviceproviderId;void 0!==t&&void 0!==t.changeSpId&&null!=t.changeSpId&&(o=String.isNullOrUndefineOrBlank(t)||String.isNullOrUndefineOrBlank(t.changeSpId)?o:t.changeSpId);var n=$.grep(_checkout.VCFGridData,function(e){return e.recordType==_vgCovidCleanCheckout.model.ItemType.VCFFee&&(String.isNullOrUndefineOrBlank(o)||e.serviceProviderID==o&&e.FeeAccountType==t.AccountType)});return 1==e?n[0]:null!=n&&n.length>0},_checkout.ValidateOverrideVCF=function(){var e=new Array;$.each(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(t,o){if(o.IsOverrideMerchantForVCF=!1,1==o.IsConsiderMerchant){if(void 0!==o.changeSpId&&null!=o.changeSpId){var n=_checkout.IsExistsVCFMerchant(e,parseInt(o.changeSpId),o.AccountType);o.IsOverrideMerchantForVCF=1!=n}else{n=_checkout.IsExistsVCFMerchant(e,o.serviceproviderId,o.AccountType);o.IsOverrideMerchantForVCF=1!=n}var a;if(void 0!==o.changeSpId&&null!=o.changeSpId)(a={}).ServiceProviderId=parseInt(o.changeSpId),a.AccountType=o.AccountType,e.push(a);else(a={}).ServiceProviderId=parseInt(o.serviceproviderId),a.AccountType=o.AccountType,e.push(a)}})},_checkout.ApplyVCFFee=function(e){if(1==_checkout.IsEnableVCFFee&&_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccAmt>0){if(1==e)_checkout.GetVCFFeeAmount(!0);else if(0==e&&null!==_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution&&_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution.length>0)return _checkout.VCFGridData=new Array,_checkout.ValidateOverrideVCF(),$.each(_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.ccDetails.ccDistribution,function(e,t){1==t.IsOverrideMerchantForVCF&&0==_checkout.IsExistsVCFFeesRecordsInGrid(!1,t)&&_checkout.AddUpdateVCFFeeItemInGrid(t)}),_checkout.SetVCFDistributionValue(!1),_checkout.GetVCFFeeAmount(!0),!1}else $(".clsBusinessVCFInfo").hide()},_checkout.AddUpdateVCFFeeItemInGrid=function(e){if(0==_checkout.IsExistsVCFFeesRecordsInGrid(!1,e)){var t=$.extend(!0,[],_checkout.BusinessFees);if(null!=(t=$.grep(t,function(e){return 1==e.AutoApplyFees&&"99"==e.ApplyType}))&&t.length>0){new Array;t[0].ItemId=t[0].BusinessFeeID,t[0].ItemName=t[0].FeeName,t[0].Price=t[0].FeeAmount,t[0].Qty=1,t[0].ApplyType=[99],void 0!==e.changeSpId&&null!=e.changeSpId?(t[0].serviceProviderID=parseInt(e.changeSpId),t[0].serviceProviderName=e.changeSpName):(t[0].serviceProviderID=e.serviceproviderId,t[0].serviceProviderName=e.serviceproviderName);var o=e.originalSpId.split(",");if(o.length>0&&o.indexOf(""+e.serviceproviderId)>-1)t[0].OriginalServiceProviderID=e.serviceproviderId;else{var n=$.grep(o,function(e,t){return""!==e&&null!=e&&e.length>0});null!=n&&n.length>0?t[0].OriginalServiceProviderID=parseInt(n[0]):t[0].OriginalServiceProviderID=e.serviceproviderId}t[0].OriginalserviceProviderName=e.serviceproviderName,t[0].FeeAccountType=e.AccountType,_checkout.VCFGridData.push(_checkout.AddObjectForFees(t[0],!0))}}},_checkout.AddObjectForFees=function(e,t){var o={},n=$.grep(_checkout.BusinessFees,function(t){return t.BusinessFeeID==e.ItemId});return o.itemName=e.ItemName,o.userID=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.payeeId,o.userName=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.payeeFirstName+" "+_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.payeeLastName,o.barcodeID=_vgCovidCleanCheckout.model.ItemCode.Fee,o.serviceProviderID=e.serviceProviderID,o.serviceProviderName=e.serviceProviderName,o.price=e.Price,o.taxes=e.BusinessTaxIDs,o.recordType=_vgCovidCleanCheckout.model.ItemType.VCFFee,o.itemID=e.ItemId,o.quantity=e.Qty,o.transactionType=e.TransactionType,o.feeAmountType=e.AmountType,o.autoApplyFees=e.AutoApplyFees,o.feePrice=n[0].FeeAmount,o.feeApplyType=String.isNullOrUndefineOrBlank(e.ApplyType)?"":e.ApplyType.join(","),o.feeType=e.FeeType,o.OriginalServiceProviderID=e.OriginalServiceProviderID,o.OriginalserviceProviderName=e.OriginalserviceProviderName,o.FeeAccountType=e.FeeAccountType,o},_checkout.CallSaveCheckoutForVCF=function(){var e=65,t=_vgCovidCleanCheckout.model.checkOutSummeryData;$.each(_checkout.VCFGridData,function(o,n){if(n.recordType==_vgCovidCleanCheckout.model.ItemType.VCFFee){e+=1;var a={};a.uniqID=e,a.AppConfirmUniqueID=void 0,a.ApplyToAllDiscount=!1,a.ApprovedBy=0,a.CancelledByCustomer=void 0,a.ConstantOriginalServicePrice=n.price.toString(),a.CutOffHours=void 0,a.DeletedAddonDetails=void 0,a.DenyComment=void 0,a.DepositsPaid=0,a.DepositsRemaining=0,a.GCAssignToEmailId="",a.GCAssignToName="",a.GCColor="",a.GCServiceName="",a.GroupID=void 0,a.InvoiceID=0,a.InvoicePayment=!1,a.IsAmount=!1,a.IsAskApprovalPopup=0,a.IsChargeFee=0,a.IsDeposit=void 0,a.IsFeeTaken=!1,a.IsPreservOldTaxForInvoice=!1,a.IsShowApprovalPriceDiscount=0,a.NewStatus=void 0,a.NoShowCancelFeeAmount=void 0,a.NoShowCancelFeePercentage=void 0,a.OldQuantity=n.quantity,a.OriginalDepositsPercentage=0,a.OriginalDiscount="0.00",a.OriginalDiscountType=2,a.OriginalDiscountedPrice=0,a.OriginalPrepaidPrice="0.00",a.PackageDetailId=void 0,a.ProductChange=!1,a.PromotionDiscount=0,a.ServiceOldPrice=0,a.SessionDetails="",a.TotalProductVisit=0,a.appType=-1,a.appointmentDate="",a.appointmentID=0,a.appointmentTime="",a.assignTo=0,a.autoApplyFees=n.autoApplyFees,a.barcodeID=n.barcodeID,a.billingCycle=0,a.businessPackageID=0,a.calculatedTax=0,a.calculatedTaxTypeWise="[]",a.cardTokenIdForRenew="",a.chargeFrequency=0,a.childAge="",a.costToBusiness=0,a.deposit="0.00",a.depositChange=!1,a.depositType=2,a.depositsPercentage=0,a.discount="0.00",a.discountType=2,a.discountedPrice=n.price.toString(),a.discountid=void 0,a.expiresOn="",a.feeAmountType=n.feeAmountType,a.feeApplyType=n.feeApplyType,a.feePrice=n.feePrice,a.feeType=null==n.feeType?1:n.feeType,a.giftCertificateCatID=0,a.giftCertificateChangePrice=void 0,a.giftCertificatePhotoID=0,a.glbCustomPackage="",a.imagePath="",a.initialDiscount=0,a.isAddon=!1,a.isAmountInitialDiscount=!1,a.isAutoRenewalMembership=!1,a.isCarryBal=!1,a.isClickFromDiscount=!1,a.isInitialDiscount=!1,a.isPaid=void 0,a.isPrint=!1,a.isRecurring=!1,a.isSendEmailToRecipient=!1,a.isSendEmailToSender=!1,a.isWorkShop=!1,a.itemID=n.itemID,a.itemName=n.itemName,a.lowQtyWarning=0,a.maxNoFamilyFriends=0,a.membershipAssignStatus=0,a.membershipDiscount=0,a.membershipGroupId=0,a.membershipPaymentToBeTaken=!1,a.membershipProductVisit=0,a.message="",a.originalServicePriceForPackage=n.price.toString(),a.originalServicePriceForServices=n.price.toString(),a.packageAssignStatus=0,a.packageEventType=0,a.paidType=0,a.parentAppointmentID=void 0,a.payableAmount=0,a.pointAssignStatus=0,a.pointsGained=0,a.pointsRedeem=0,a.prepayAmount=0,a.price=n.price.toString(),a.priceDiff=0,a.productBrandName=void 0,a.productDisc=0,a.promotionStatus=0,a.promotionTitle="",a.promotionid=void 0,a.quantity=n.quantity,a.recGiftCertificateID=0,a.recordType=n.recordType,a.redeemID=0,a.redeemMembershipId=0,a.relationships="",a.renewalOn=0,a.salonTime=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.checkoutGridrow[0].SalonTime,a.selectedFamilyFriends="",a.serviceDisc=0,a.serviceProviderID=n.OriginalServiceProviderID,a.serviceProviderName=n.OriginalserviceProviderName,a.sessionAttendeeID=0,a.startTime=_vgCovidCleanCheckout.model.checkOutSummeryData[0].checkoutData.checkoutGridrow[0].startTime,a.taxPercentage=0,a.taxation=0,a.taxationValue=0,a.taxes="",a.totalQty=0,a.transactionType=n.transactionType,a.usedInBiling=0,a.userID=n.userID,a.userName=n.userName,a.FeeAccountType=n.FeeAccountType,t[0].checkoutData.checkoutGridrow.push(a)}});var o=_checkout.GetVCFFeeAmount(!0);o>0&&(t[0].checkoutData.feeCharges=t[0].checkoutData.feeCharges+o);var n=t[0].checkoutData.ccAmt+o;n<0&&(n=0),_vgCovidCleanCheckout.SetPayAmountsInTextbox(_vgCovidCleanCheckout.model.AmountType.CC,n),_vgCovidCleanCheckout.SetChargesTextbox(),_checkout.isConsiderVCF=!0,_vgCovidCleanCheckout.InitializeCCConfimationPopup(1)}}(),"undefined"==typeof _vgVPLOnline&&(_vgVPLOnline={});var VPLBankDetail="";!function(e){_vgVPLOnline.Controls={DivActiveDialog:"#divActiveDialog",Lblterms:"#lblterms",ChkDialogAggree:"#chkDialogAggree"},_vgVPLOnline.Model={BtnSaveVplTerms:"btnSaveVplTerms",BtnSaveVpl:"btnSaveVpl",BtnClose:"btnClose",BtnCancel:"btnCancel",vplStatus:0,objVPLCutomerRsponse:{},CustomerObject:{},TransactionIntent:"",objBankDetails:[],certegyAmount:0,certegyCallbackSuccessFucn:"",certegyCallbackErrorFucn:"",certegyInstallmentCallCount:0},_vgVPLOnline.Messages={},_vgVPLOnline.WebsiteApiPath="websiteapi/homepage/",_vgVPLOnline.ApiURLEnumVPL={AddBankAccount:"myaccount/addbankinmongo",EnrollCustomer:"enrollcustomervpl",CertegyIntents:"certegyintentsvpl",PaymentSchedule:"paymentschedulevpl",CertegyTransactionIntents:"certegytransactionintents",CertegyTransactionAction:"certegytransactionaction"},_vgVPLOnline.AddBankErrorType={Cancel:"Cancel",Close:"Close",Error:"Error",Success:"Success"},_vgVPLOnline.TransactionActionType={Authorize:1,Capture:2,Refund:3,Cancel:4},_vgVPLOnline.EnrollUser={},_vgVPLOnline.VagaroApiResponseEnum={ResponseCode:{Success:1e3,Error:1001}},_vgVPLOnline.VPLGatewayType={Certegy:1,Affirm:2},_vgVPLOnline.EnrollNewUser=function(e){if(1==_siteBuilderDetail.isAffirmEnable)ShowLoader(!1);else{if(ShowLoader(!0),(String.isNullOrUndefineOrBlank(e)||String.isNullOrUndefineOrBlank(e.merchant_token_id))&&(e.merchant_token_id="MCT1d983d51-5ddf-48e1-a630-58a5b6fbb48d"),CustomerObject=e,"undefined"==typeof CoreAPIURL&&(CoreAPIURL=e.CoreAPIURL),String.isNullOrUndefineOrBlank(e))return;var t=new vagaro.ajax;t.datamodel.Token=_vgVPLOnline.WebsiteApiPath+_vgVPLOnline.ApiURLEnumVPL.EnrollCustomer,t.datamodel.data=e,t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=_vgVPLOnline.EnrollNewUserSuccess,t.datamodel.Error=_vgVPLOnline.callFailed,t.Post()}},_vgVPLOnline.EnrollNewUserSuccess=function(e){ShowLoader(!1),e.IsSucess?(_vgVPLOnline.EnrollUser={},_vgVPLOnline.EnrollUser.ConsumerId=e.ConsumerId,_vgVPLOnline.EnrollUser.EnrollmentId=e.EnrollmentId,_vgVPLOnline.ProcessEnroll()):vagaro.alert({message:"Something went wrong, please try again!",title:"Oops!"})},_vgVPLOnline.callFailed=function(e){ShowLoader(!1),vagaro.alert({message:"Something went wrong, please try again!",title:"Oops!"})},_vgVPLOnline.ProcessEnroll=function(){const t=new BankPay.Sdk({publishableKey:e("#hdnCertegyPublishableKey").val(),environment:e("#hdnCertegyEnvironment").val()}).createEnrollment(_vgVPLOnline.EnrollUser.EnrollmentId);t.events.addEventListener(BankPay.EventName.ReadyForAuthorization,({data:e})=>{_vgVPLOnline.CertegyIntents(e.intentId)}),t.events.addEventListener(BankPay.EventName.Close,()=>{_vgVPLOnline.AddBankResponce(_vgVPLOnline.AddBankErrorType.Close,null)}),t.events.addEventListener(BankPay.EventName.Cancel,()=>{_vgVPLOnline.AddBankResponce(_vgVPLOnline.AddBankErrorType.Cancel,null)}),t.events.addEventListener(BankPay.EventName.Failure,({data:e})=>{_vgVPLOnline.AddBankResponce(_vgVPLOnline.AddBankErrorType.Error,e)}),t.events.addEventListener(BankPay.EventName.Success,({data:e})=>{_vgVPLOnline.AddBankResponce(_vgVPLOnline.AddBankErrorType.Success,e)}),t.open()},_vgVPLOnline.CertegyIntents=function(e){if(!String.isNullOrUndefineOrBlank(e)){var t={};t.enrollment_id=e;var o=new vagaro.ajax;o.datamodel.Token=_vgVPLOnline.WebsiteApiPath+_vgVPLOnline.ApiURLEnumVPL.CertegyIntents,o.datamodel.data=t,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=_vgVPLOnline.CertegyIntentsSuccess,o.datamodel.Error=_vgVPLOnline.callFailed,o.Post()}},_vgVPLOnline.CertegyIntentsSuccess=function(e){if(null!=typeof e&&null!=e&&null!=e.BankAccount){var t={};t.BankId=e.BankAccount.id,t.UserID=CustomerObject.UserID,t.strLoginUserId=CustomerObject.strLoginUserId,t.FirstName=CustomerObject.first_name,t.LastName=CustomerObject.last_name,t.AccountNumber=e.BankAccount.account_number,VPLBankDetail=e.BankAccount.account_number,t.RoutingNumber=e.BankAccount.routing_number,t.BankName="",t.CertegyConsumerTokenID=e.ConsumerId,t.CertegyEnrollmentID=e.EnrollmentId,t.ClientIP=CustomerObject.ClientIpAddress,_vgVPLOnline.Model.objBankDetails=t,_vgVPLOnline.AddBank(t)}},_vgVPLOnline.AddBankResponce=function(e,t){e==_vgVPLOnline.AddBankErrorType.Close||e==_vgVPLOnline.AddBankErrorType.Cancel||e==_vgVPLOnline.AddBankErrorType.Error||(ShowLoader(!1),console.log("Bank Add"+t))},_vgVPLOnline.AddBank=function(e){ShowLoader(!0);var t=new vagaro.ajax;t.datamodel.Token=_vgVPLOnline.GetCoreAPIURLWithToken(_vgVPLOnline.ApiURLEnumVPL.AddBankAccount),t.datamodel.data=e,t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=_vgVPLOnline.OnSuccess_addBankDetails,t.datamodel.Error=function(e){ShowLoader(!1)},t.Post()},_vgVPLOnline.OnSuccess_addBankDetails=function(e){if(ShowLoader(!1),void 0!==e&&e.CustomCode==vagaro.VagaroCoreApiResponseCode.Success&&null!=e.Data&&null!=e.Data){if(2==e.Data)return void vagaro.alert({message:"Same bank already added",title:"Information"});window.location.href.includes("paylatersignup")?_checkout.AfterBankAddedSuccess():window.location.href.includes("shopping-bag")?_onlineCheckout.VPLBankDetailsBind():window.location.href.includes("book-now")?_onlineCheckout.BindVPLBank():window.location.href.includes("paylatercheckout")?_checkout.AfterBankAddedSuccessCheckoutTime():window.location.href.includes("freecardreader")&&_freeCardReader.BindVPLBank()}},_vgVPLOnline.OnFaild_addBankDetails=function(e){ShowLoader(!1),console.log(e),vagaro.alert({message:"Something went wrong, please try again!",title:"Oops!"})},_vgVPLOnline.PaymentSchedule=function(e,t,o){if(1==_siteBuilderDetail.isAffirmEnable)e>=_siteBuilderDetail.UserLocationInfo.Model.BusinessDetail.MinimumAmount&&e<=_siteBuilderDetail.UserLocationInfo.Model.BusinessDetail.MaximumAmount||(ShowLoader(!1),console.log("Vpl limit not match for certagy"));else if(e>=_siteBuilderDetail.UserLocationInfo.Model.BusinessDetail.MinimumAmount&&e<=_siteBuilderDetail.UserLocationInfo.Model.BusinessDetail.MaximumAmount){_vgVPLOnline.Model.certegyAmount=e,_vgVPLOnline.Model.certegyCallbackSuccessFucn=t,_vgVPLOnline.Model.certegyCallbackErrorFucn=o;var n={};n.encryptAmount=e,(window.location.href.includes("book-now")||window.location.href.includes("shopping-bag"))&&ShowLoader(!0);var a=new vagaro.ajax;a.datamodel.Token=_vgVPLOnline.WebsiteApiPath+_vgVPLOnline.ApiURLEnumVPL.PaymentSchedule,a.datamodel.data=n,a.datamodel.IsNewVagaroAPI=!0,a.datamodel.callback=_vgVPLOnline.ValidatePaymentSchedule,a.datamodel.Error=o,a.Post()}else ShowLoader(!1),console.log("Vpl limit not match for certagy")},_vgVPLOnline.ValidatePaymentSchedule=function(t){"0"==e("#finalCheckout").val()&&ShowLoader(!1);var o=0;void 0!==t&&null!=t&&t.InstallmentDetails.length>0&&(e.grep(t.InstallmentDetails,function(e){o+=parseFloat(e.amount)}),o.toFixed(2)==parseFloat(_vgVPLOnline.Model.certegyAmount)?_vgVPLOnline.Model.certegyCallbackSuccessFucn(t):(_vgVPLOnline.Model.certegyInstallmentCallCount++,_vgVPLOnline.Model.certegyInstallmentCallCount>3?(vagaro.alert({message:"Something went wrong, please try again!",title:"Oops!"}),setTimeout(function(){window.location.reload()},3e3)):_vgVPLOnline.Model.certegyCallbackErrorFucn(null)))},_vgVPLOnline.CertegyTransactionIntents=function(e){if(e.Amount>=_siteBuilderDetail.UserLocationInfo.Model.BusinessDetail.MinimumAmount&&e.Amount<=_siteBuilderDetail.UserLocationInfo.Model.BusinessDetail.MaximumAmount){if(void 0!==e&&null!=e){var t=new vagaro.ajax;t.datamodel.Token=_vgVPLOnline.WebsiteApiPath+_vgVPLOnline.ApiURLEnumVPL.CertegyTransactionIntents,t.datamodel.data=e,t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=_vgVPLOnline.CertegyTransactionIntentSuccess,t.datamodel.Error=_vgVPLOnline.CertegyTransactionIntentError,t.Post()}}else ShowLoader(!1),console.log("Vpl limit not match for certagy")},_vgVPLOnline.CertegyTransactionIntentSuccess=function(t){if(void 0===t||null==t||null==t.TransactionId)return ShowLoader(!1),void console.log("certagy issue");{_vgVPLOnline.Model.TransactionIntent=t.TransactionId;const o=new BankPay.Sdk({publishableKey:e("#hdnCertegyPublishableKey").val(),environment:e("#hdnCertegyEnvironment").val()}).createTransaction(_vgVPLOnline.Model.TransactionIntent);o.events.addEventListener(BankPay.EventName.Close,()=>{}),o.events.addEventListener(BankPay.EventName.Cancel,()=>{}),o.events.addEventListener(BankPay.EventName.Failure,({data:e})=>{_vgVPLOnline.CetegyFreamInError(e)}),o.events.addEventListener(BankPay.EventName.ReadyForAuthorization,({data:e})=>{_vgVPLOnline.CertegyTreanscationAuth(e)}),o.events.addEventListener(BankPay.EventName.Success,({data:e})=>{}),o.open(),(window.location.href.includes("shopping-bag")||window.location.href.includes("book-now")||window.location.href.includes("paylatercheckout")||window.location.href.includes("Users/BusinessWidget.aspx"))&&ShowLoader(!1)}},_vgVPLOnline.CetegyFreamInError=function(e){console.log(e)},_vgVPLOnline.CertegyTransactionIntentError=function(e){console.log(e)},_vgVPLOnline.CertegyTreanscationAuth=function(e){if(window.location.href.includes("shopping-bag"))return ShowLoader(!1),void _onlineCheckout.SavecheckoutVPL(e);window.location.href.includes("paylatercheckout")?_checkout.AfterPaymentSuccessCheckoutTime(e):(window.location.href.includes("book-now")||window.location.href.includes("Users/BusinessWidget.aspx"))&&_shopdetail.SaveServiceBookVPL(e)},_vgVPLOnline.ProccessTransaction=function(e){if(void 0!==e&&null!=e){var t={};t.transaction_id=_vgVPLOnline.Model.TransactionIntent,t.transaction_action=_vgVPLOnline.TransactionActionType.Authorize;var o=new vagaro.ajax;o.datamodel.Token=_vgVPLOnline.WebsiteApiPath+_vgVPLOnline.ApiURLEnumVPL.CertegyTransactionAction,o.datamodel.data=t,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=_vgVPLOnline.ProccessTransactionSuccess,o.datamodel.Error=_vgVPLOnline.ProccessTransactionError,o.Post()}},_vgVPLOnline.ProccessTransactionSuccess=function(e){if(void 0!==e&&null!=e){if(window.location.href.includes("shopping-bag"))return void _onlineCheckout.SavecheckoutVPL(e);if(window.location.href.includes("paylatercheckout"))return void _checkout.AfterPaymentSuccessCheckoutTime(e);if(window.location.href.includes("book-now"))return void _shopdetail.SaveServiceBookVPL(result)}},_vgVPLOnline.ProccessTransactionError=function(e){console.log(e)},_vgVPLOnline.GetCoreAPIURLWithToken=function(e,t){try{var o="",n=CoreAPIURL.split("/");if(void 0!==t&&null!=t&&""!=t)n[3]=t,o=n.join("/")+e;else if("undefined"!=typeof myAccountUserGroupID&&null!=myAccountUserGroupID&&""!=myAccountUserGroupID){var a=myAccountUserGroupID.split(",");a.length>0&&(n[3]=a[0],o=n.join("/")+e)}return""==o&&(o=CoreAPIURL+e),o}catch(t){return CoreAPIURL+e}}}(jQuery,window,document);
/*!
 * Signature Pad v1.2.3
 * https://github.com/szimek/signature_pad
 *
 * Copyright 2013 Szymon Nowak
 * Released under the MIT license
 *
 * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
 * http://corner.squareup.com/2012/07/smoother-signatures.html
 *
 * Implementation of interpolation using cubic Bézier curves is taken from:
 * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
 *
 * Algorithm for approximated length of a Bézier curve is taken from:
 * http://www.lemoda.net/maths/bezier-length/index.html
 *
 */
var signaturePad,frmcontainer,SignaturePad=function(e){"use strict";var t=function(e,t){var o=t||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||2.5,this.maxWidth=o.maxWidth||3.5,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseEvents(),this._handleTouchEvents()};t.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._reset()},t.prototype.toDataURL=function(e,t){var o=this._canvas;return o.toDataURL.apply(o,arguments)},t.prototype.fromDataURL=function(e){var t=this,o=new Image;this._reset(),o.src=e,o.onload=function(){t._ctx.drawImage(o,0,0,t._canvas.width,t._canvas.height)},this._isEmpty=!1},t.prototype._handleMouseEvents=function(){var t=this;this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",function(e){if(1===e.which){t._mouseButtonDown=!0,t._reset();var o=t._createPoint(e);t._addPoint(o)}}),this._canvas.addEventListener("mousemove",function(e){if(t._mouseButtonDown){var o=t._createPoint(e);t._addPoint(o)}}),e.addEventListener("mouseup",function(e){if(1===e.which&&t._mouseButtonDown){t._mouseButtonDown=!1;var o=t.points.length>2,n=t.points[0],a=t._ctx,i="function"==typeof t.dotSize?t.dotSize.call(t):t.dotSize;!o&&n&&(a.beginPath(),t._drawPoint(n.x,n.y,i),a.closePath(),a.fill())}})},t.prototype._handleTouchEvents=function(){var t=this;this._canvas.addEventListener("touchstart",function(e){t._reset();var o=e.changedTouches[0],n=t._createPoint(o);t._addPoint(n)}),this._canvas.addEventListener("touchmove",function(e){e.preventDefault();var o=e.changedTouches[0],n=t._createPoint(o);t._addPoint(n)}),e.addEventListener("touchend",function(e){var o=e.target===t._canvas,n=t.points.length>2,a=t.points[0],i=t._ctx,r="function"==typeof t.dotSize?t.dotSize.call(t):t.dotSize;o&&!n&&a&&(i.beginPath(),t._drawPoint(a.x,a.y,r),i.closePath(),i.fill())})},t.prototype.isEmpty=function(){return this._isEmpty},t.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._isEmpty=!0,this._ctx.fillStyle=this.penColor},t.prototype._createPoint=function(e){var t=this._canvas.getBoundingClientRect();return new o(e.clientX-t.left,e.clientY-t.top)},t.prototype._addPoint=function(e){var t,o,a,i=this.points;i.push(e),i.length>2&&(3===i.length&&i.unshift(i[0]),t=this._calculateCurveControlPoints(i[0],i[1],i[2]).c2,o=this._calculateCurveControlPoints(i[1],i[2],i[3]).c1,a=new n(i[1],t,o,i[2]),this._addCurve(a),i.shift())},t.prototype._calculateCurveControlPoints=function(e,t,n){var a=e.x-t.x,i=e.y-t.y,r=t.x-n.x,d=t.y-n.y,l=(e.x+t.x)/2,s=(e.y+t.y)/2,c=(t.x+n.x)/2,u=(t.y+n.y)/2,h=Math.sqrt(a*a+i*i),p=Math.sqrt(r*r+d*d),m=p/(h+p),v=c+(l-c)*m,f=u+(s-u)*m,g=t.x-v,C=t.y-f;return{c1:new o(l+g,s+C),c2:new o(c+g,u+C)}},t.prototype._addCurve=function(e){var t,o,n=e.startPoint;t=e.endPoint.velocityFrom(n),t=this.velocityFilterWeight*t+(1-this.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(t),this._drawCurve(e,this._lastWidth,o),this._lastVelocity=t,this._lastWidth=o},t.prototype._drawPoint=function(e,t,o){var n=this._ctx;n.moveTo(e,t),n.arc(e,t,o,0,2*Math.PI,!1),this._isEmpty=!1},t.prototype._drawCurve=function(e,t,o){var n,a,i,r,d,l,s,c,u,h,p,m=this._ctx,v=o-t;for(n=Math.floor(e.length()),m.beginPath(),i=0;i<n;i++)l=(d=(r=i/n)*r)*r,h=(u=(c=(s=1-r)*s)*s)*e.startPoint.x,h+=3*c*r*e.control1.x,h+=3*s*d*e.control2.x,h+=l*e.endPoint.x,p=u*e.startPoint.y,p+=3*c*r*e.control1.y,p+=3*s*d*e.control2.y,p+=l*e.endPoint.y,a=t+l*v,this._drawPoint(h,p,a);m.closePath(),m.fill()},t.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)};var o=function(e,t,o){this.x=e,this.y=t,this.time=o||(new Date).getTime()};o.prototype.velocityFrom=function(e){return this.distanceTo(e)/(this.time-e.time)},o.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))};var n=function(e,t,o,n){this.startPoint=e,this.control1=t,this.control2=o,this.endPoint=n};return n.prototype.length=function(){var e,t,o,n,a,i,r,d,l=0;for(e=0;e<=10;e++)t=e/10,o=this._point(t,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),n=this._point(t,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y),e>0&&(r=o-a,d=n-i,l+=Math.sqrt(r*r+d*d)),a=o,i=n;return l},n.prototype._point=function(e,t,o,n,a){return t*(1-e)*(1-e)*(1-e)+3*o*(1-e)*(1-e)*e+3*n*(1-e)*e*e+a*e*e*e},t}(document),wrapper=document.getElementById("signature-pad"),canvas=wrapper.querySelector("canvas");function resizeCanvas(){var e=window.devicePixelRatio||1;0==canvas.offsetWidth||0==canvas.offsetHeight?(canvas.width=645*e,canvas.height=207*e):(canvas.width=canvas.offsetWidth*e,canvas.height=canvas.offsetHeight*e),canvas.getContext("2d").scale(e,e)}function InitCanvasAndHide(){wrapper=document.getElementById("signature-pad"),canvas=wrapper.querySelector("canvas"),document.getElementById("signature-pad-parent").style.display="block"}function InitCanvas(){wrapper=document.getElementById("signature-pad"),canvas=wrapper.querySelector("canvas")}function ShowCanvas(){return document.getElementById("signature-pad").style.display="block",resizeCanvas(),signaturePad=new SignaturePad(canvas),!1}function ClearSignatureData(){return signaturePad.clear(),!1}window.onresize=resizeCanvas,resizeCanvas(),signaturePad=new SignaturePad(canvas),function(e,t,o){"use strict";!function e(t,o,n){function a(r,d){if(!o[r]){if(!t[r]){var l="function"==typeof require&&require;if(!d&&l)return l(r,!0);if(i)return i(r,!0);var s=new Error("Cannot find module '"+r+"'");throw s.code="MODULE_NOT_FOUND",s}var c=o[r]={exports:{}};t[r][0].call(c.exports,function(e){var o=t[r][1][e];return a(o||e)},c,c.exports,e,t,o,n)}return o[r].exports}for(var i="function"==typeof require&&require,r=0;r<n.length;r++)a(n[r]);return a}({1:[function(n,a,i){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});var d,l,s,c,u=n("./modules/handle-dom"),h=n("./modules/utils"),p=n("./modules/handle-swal-dom"),m=n("./modules/handle-click"),v=r(n("./modules/handle-key")),f=r(n("./modules/default-params")),g=r(n("./modules/set-params"));i.default=s=c=function(){function n(e){var t=a;return t[e]===o?f.default[e]:t[e]}var a=arguments[0];if(u.addClass(t.body,"stop-scrolling"),p.resetInput(),a===o)return h.logStr("SweetAlert expects at least 1 attribute!"),!1;var i=h.extend({},f.default);switch(typeof a){case"string":i.title=a,i.text=arguments[1]||"",i.type=arguments[2]||"";break;case"object":if(a.title===o)return h.logStr('Missing "title" argument!'),!1;for(var r in i.title=a.title,f.default)i[r]=n(r);i.confirmButtonText=i.showCancelButton?"Confirm":f.default.confirmButtonText,i.confirmButtonText=n("confirmButtonText"),i.doneFunction=arguments[1]||null;break;default:return h.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof a),!1}"undefined"!=typeof SweetAlertBeforeOpenCallback&&SweetAlertBeforeOpenCallback(arguments,p.getModal()),g.default(i),p.fixVerticalPosition(),p.openModal(arguments[1]),"undefined"!=typeof SweetAlertOpenCallback&&SweetAlertOpenCallback(arguments,p.getModal());for(var s=p.getModal(),C=s.querySelectorAll("button"),y=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],$=function(e){return m.handleButton(e,i,s)},k=0;k<C.length;k++)for(var w=0;w<y.length;w++){var b=y[w];C[k][b]=$}p.getOverlay().onclick=$,d=e.onkeydown;e.onkeydown=function(e){return v.default(e,i,s)},e.onfocus=function(){setTimeout(function(){l!==o&&(l.focus(),l=o)},0)},c.enableButtons()},s.setDefaults=c.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");h.extend(f.default,e)},s.close=c.close=function(){$(".gencutom-title").html("Alert");var n=p.getModal();"undefined"!=typeof SweetAlertCloseCallback&&setTimeout(function(){SweetAlertCloseCallback(e.previousActiveElement,n)},1),u.fadeOut(p.getOverlay(),5),u.fadeOut(n,5),u.removeClass(n,"showSweetAlert"),u.addClass(n,"hideSweetAlert"),u.removeClass(n,"visible");var a=n.querySelector(".sa-icon.sa-success");u.removeClass(a,"animate"),u.removeClass(a.querySelector(".sa-tip"),"animateSuccessTip"),u.removeClass(a.querySelector(".sa-long"),"animateSuccessLong");var i=n.querySelector(".sa-icon.sa-error");u.removeClass(i,"animateErrorIcon"),u.removeClass(i.querySelector(".sa-x-mark"),"animateXMark");var r=n.querySelector(".sa-icon.sa-warning");return u.removeClass(r,"pulseWarning"),u.removeClass(r.querySelector(".sa-body"),"pulseWarningIns"),u.removeClass(r.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=n.getAttribute("data-custom-class");u.removeClass(n,e)},300),u.removeClass(t.body,"stop-scrolling"),e.onkeydown=d,e.previousActiveElement&&e.previousActiveElement.focus(),l=o,clearTimeout(n.timeout),!0},s.showInputError=c.showInputError=function(e){var t=p.getModal(),o=t.querySelector(".sa-input-error");u.addClass(o,"show");var n=t.querySelector(".sa-error-container");u.addClass(n,"show"),n.querySelector("p").innerHTML=e,setTimeout(function(){s.enableButtons()},1),t.querySelector("input").focus()},s.resetInputError=c.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=p.getModal(),o=t.querySelector(".sa-input-error");u.removeClass(o,"show");var n=t.querySelector(".sa-error-container");u.removeClass(n,"show")},s.disableButtons=c.disableButtons=function(){var e=p.getModal(),t=e.querySelector("button.confirm"),o=e.querySelector("button.cancel");t.disabled=!0,o.disabled=!0},s.enableButtons=c.enableButtons=function(){var e=p.getModal(),t=e.querySelector("button.confirm"),o=e.querySelector("button.cancel");t.disabled=!1,o.disabled=!1},void 0!==e?e.sweetAlert=e.swal=s:h.logStr("SweetAlert is a frontend module!"),a.exports=i.default},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});o.default={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#eb6663",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1},t.exports=o.default},{}],3:[function(t,o,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t("./utils"),i=(t("./handle-swal-dom"),t("./handle-dom")),r=function(e,t){var o=!0;i.hasClass(e,"show-input")&&((o=e.querySelector("input").value)||(o="")),t.doneFunction(o),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},d=function(e,t){var o=String(t.doneFunction).replace(/\s/g,"");"function("===o.substring(0,9)&&")"!==o.substring(9,10)&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};n.default={handleButton:function(t,o,n){function l(e){m&&o.confirmButtonColor&&(p.style.backgroundColor=e)}var s,c,u,h=t||e.event,p=h.target||h.srcElement,m=-1!==p.className.indexOf("confirm"),v=-1!==p.className.indexOf("sweet-overlay"),f=i.hasClass(n,"visible"),g=o.doneFunction&&"true"===n.getAttribute("data-has-done-function");switch(m&&o.confirmButtonColor&&(s=o.confirmButtonColor,c=a.colorLuminance(s,-.04),u=a.colorLuminance(s,-.14)),h.type){case"mouseover":case"mouseup":l(c);break;case"mouseout":l(s);break;case"mousedown":l(u);break;case"focus":var C=n.querySelector("button.confirm"),y=n.querySelector("button.cancel");m?y.style.boxShadow="none":C.style.boxShadow="none";break;case"click":var $=n===p,k=i.isDescendant(n,p);if(!$&&!k&&f&&!o.allowOutsideClick)break;m&&g&&f?r(n,o):g&&f||v?d(n,o):i.isDescendant(n,p)&&"BUTTON"===p.tagName&&sweetAlert.close()}},handleConfirm:r,handleCancel:d},o.exports=n.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(o,n,a){Object.defineProperty(a,"__esModule",{value:!0});var i=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},r=function(e){e.style.opacity="",e.style.display="block"},d=function(e){e.style.opacity="",e.style.display="none"};a.hasClass=i,a.addClass=function(e,t){i(e,t)||(e.className+=" "+t)},a.removeClass=function(e,t){var o=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(i(e,t)){for(;o.indexOf(" "+t+" ")>=0;)o=o.replace(" "+t+" "," ");e.className=o.replace(/^\s+|\s+$/g,"")}},a.escapeHtml=function(e){var o=t.createElement("div");return o.appendChild(t.createTextNode(e)),o.innerHTML},a._show=r,a.show=function(e){if(e&&!e.length)return r(e);for(var t=0;t<e.length;++t)r(e[t])},a._hide=d,a.hide=function(e){if(e&&!e.length)return d(e);for(var t=0;t<e.length;++t)d(e[t])},a.isDescendant=function(e,t){for(var o=t.parentNode;null!==o;){if(o===e)return!0;o=o.parentNode}return!1},a.getTopMargin=function(e){e.style.left="-9999px",e.style.display="block";var t,o=e.clientHeight;if("undefined"!=typeof setPopupPosi&&"undefined"!=typeof getQueryStringData||"undefined"!=typeof setPopupPosi&&"undefined"!=typeof WebsiteBuilderType){if("Builder"==getQueryStringData("Type")||"undefined"!=typeof WebsiteBuilderType&&"Builder"==WebsiteBuilderType){var n=o/2+50;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none",+parseInt(Number(scrollPositionW)+n)+"px"}return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((o+t)/2)+"px"}return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((o+t)/2)+"px"},a.fadeIn=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var o=+new Date,n=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-o)/100,o=+new Date,+e.style.opacity<1&&setTimeout(n,t)});n()}e.style.display="block"},a.fadeOut=function(e,t){t=t||16,e.style.opacity=1;var o=+new Date,n=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-o)/100,o=+new Date,+e.style.opacity>0?setTimeout(n,t):e.style.display="none"});n()},a.fireClick=function(o){if("function"==typeof MouseEvent){var n=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});o.dispatchEvent(n)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),o.dispatchEvent(a)}else t.createEventObject?o.fireEvent("onclick"):"function"==typeof o.onclick&&o.onclick()},a.stopEventPropagation=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)}},{}],5:[function(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var i=t("./handle-dom"),r=t("./handle-swal-dom");a.default=function(t,n,a){var d=t||e.event,l=d.keyCode||d.which,s=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),u=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var h=d.target||d.srcElement,p=-1,m=0;m<u.length;m++)if(h===u[m]){p=m;break}9===l?(h=-1===p?s:p===u.length-1?u[0]:u[p+1],i.stopEventPropagation(d),h.focus(),n.confirmButtonColor&&r.setFocusStyle(h,n.confirmButtonColor)):13===l?("INPUT"===h.tagName&&(h=s,s.focus()),h=-1===p?s:o):27===l&&!0===n.allowEscapeKey?(h=c,i.fireClick(h,d)):h=o}},n.exports=a.default},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(o,n,a){var i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var r=o("./utils"),d=o("./handle-dom"),l=i(o("./default-params")),s=i(o("./injected-html")),c=function(){var e=t.createElement("div");for(e.innerHTML=s.default;e.firstChild;)t.body.appendChild(e.firstChild)},u=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(".sweet-alert");return e||(c(),e=u()),e}),h=function(){var e=u();return e?e.querySelector("input"):void 0},p=function(){return t.querySelector(".sweet-overlay")},m=function(e){if(e&&13===e.keyCode)return!1;var t=u(),o=t.querySelector(".sa-input-error");d.removeClass(o,"show");var n=t.querySelector(".sa-error-container");d.removeClass(n,"show")};a.sweetAlertInitialize=c,a.getModal=u,a.getOverlay=p,a.getInput=h,a.setFocusStyle=function(e,t){var o=r.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+o+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},a.openModal=function(o){var n=u();d.fadeIn(p(),10),d.show(n),d.addClass(n,"showSweetAlert"),d.removeClass(n,"hideSweetAlert"),e.previousActiveElement=t.activeElement,n.querySelector("button.confirm").focus(),setTimeout(function(){d.addClass(n,"visible"),"undefined"!=typeof WebsiteBuilderType&&"Builder"==WebsiteBuilderType&&d.addClass(n,"wbshowSweetAlert")},500);var a=n.getAttribute("data-timer");if("null"!==a&&""!==a){var i=o;n.timeout=setTimeout(function(){(i?"true"===n.getAttribute("data-has-done-function"):null)?i(null):sweetAlert.close()},a)}},a.resetInput=function(){var e=u(),t=h();d.removeClass(e,"show-input"),t.value=l.default.inputValue,t.setAttribute("type",l.default.inputType),t.setAttribute("placeholder",l.default.inputPlaceholder),m()},a.resetInputError=m,a.fixVerticalPosition=function(){u().style.marginTop=d.getTopMargin(u())}},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});o.default='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert vagaro-modal"><div class="gencustom-head"><div class="gencutom-title modal-title">Alert</div><button class="gencustom-close"></button></div><div class="gencustom-content"><div class="sa-icon sa-error">\n      <span class="sa-x-mark">\n        <span class="sa-line sa-left"></span>\n        <span class="sa-line sa-right"></span>\n      </span>\n    </div><div class="sa-icon sa-warning">\n      <span class="sa-body"></span>\n      <span class="sa-dot"></span>\n    </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n      <span class="sa-line sa-tip"></span>\n      <span class="sa-line sa-long"></span>\n\n      <div class="sa-placeholder"></div>\n      <div class="sa-fix"></div>\n    </div><div class="sa-icon sa-custom"></div><h2 class="web-body-font-secondary">Title</h2>\n    <p>Text</p>\n    <fieldset>\n      <input type="text" tabIndex="3" />\n      <div class="sa-input-error"></div>\n    </fieldset><div class="sa-error-container">\n      <div class="icon">!</div>\n      <p>Not valid!</p>\n    </div></div><div class="sa-button-container">\n      <button class="cancel secondary-button" tabIndex="2">Cancel</button>\n      <div class="sa-confirm-button-container">\n        <button class="confirm btn btn-primary green-primary-button" tabIndex="1">OK</button><div class="la-ball-fall">\n          <div></div>\n          <div></div>\n          <div></div>\n        </div>\n      </div>\n    </div></div>',t.exports=o.default},{}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var a=e("./utils"),i=e("./handle-swal-dom"),r=e("./handle-dom"),d=["error","warning","info","success","input","prompt"];n.default=function(e){var t=i.getModal(),n=t.querySelector("h2"),l=t.querySelector("p"),s=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(n.innerHTML=e.html?e.title:r.escapeHtml(e.title).split("\n").join("<br>"),l.innerHTML=e.html?e.text:r.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&r.show(l),e.customClass)r.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var u=t.getAttribute("data-custom-class");r.removeClass(t,u),t.setAttribute("data-custom-class","")}if(r.hide(t.querySelectorAll(".sa-icon")),e.type&&!a.isIE8()){var h=function(){for(var n=!1,a=0;a<d.length;a++)if(e.type===d[a]){n=!0;break}if(!n)return logStr("Unknown alert type: "+e.type),{v:!1};var l=o;-1!==["success","error","warning","info"].indexOf(e.type)&&(l=t.querySelector(".sa-icon.sa-"+e.type),r.show(l));var s=i.getInput();switch(e.type){case"success":r.addClass(l,"animate"),r.addClass(l.querySelector(".sa-tip"),"animateSuccessTip"),r.addClass(l.querySelector(".sa-long"),"animateSuccessLong");break;case"error":r.addClass(l,"animateErrorIcon"),r.addClass(l.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":r.addClass(l,"pulseWarning"),r.addClass(l.querySelector(".sa-body"),"pulseWarningIns"),r.addClass(l.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":s.setAttribute("type",e.inputType),s.value=e.inputValue,s.setAttribute("placeholder",e.inputPlaceholder),r.addClass(t,"show-input"),setTimeout(function(){s.focus(),s.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof h)return h.v}if(e.imageUrl){var p=t.querySelector(".sa-icon.sa-custom");p.style.backgroundImage="url("+e.imageUrl+")",r.show(p);var m=80,v=80;if(e.imageSize){var f=e.imageSize.toString().split("x"),g=f[0],C=f[1];g&&C?(m=g,v=C):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}p.setAttribute("style",p.getAttribute("style")+"width:"+m+"px; height:"+v+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?s.style.display="inline-block":r.hide(s),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":r.hide(c),e.cancelButtonText&&(s.innerHTML=r.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=r.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,i.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var y=!!e.doneFunction;t.setAttribute("data-has-done-function",y),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)},t.exports=n.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,o,n){Object.defineProperty(n,"__esModule",{value:!0});n.extend=function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},n.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},n.isIE8=function(){return e.attachEvent&&!e.addEventListener},n.logStr=function(t){e.console&&e.console.log("SweetAlert: "+t)},n.colorLuminance=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var o,n,a="#";for(n=0;3>n;n++)o=parseInt(e.substr(2*n,2),16),a+=("00"+(o=Math.round(Math.min(Math.max(0,o+o*t),255)).toString(16))).substr(o.length);return a}},{}]},{},[1]),"function"==typeof define1&&define1.amd?define1(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),$(document).ready(function(){$("#sweetalertClose").length&&$("#sweetalertClose").on("click",function(){$("#sweetConfirmbutton").trigger("click")})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(a(e,t))return;return 1}function r(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){for(var o=[],n=e.length,a=0;a<n;++a)o.push(t(e[a],a));return o}function c(e,t){for(var o in t)a(t,o)&&(e[o]=t[o]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,o,n){return xt(e,t,o,n,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=h(e),o=v.call(t.parsedDateParts,function(e){return null!=e});o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function m(e){var t=u(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}var v=Array.prototype.some||function(e){for(var t=Object(this),o=t.length>>>0,n=0;n<o;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},f=t.momentProperties=[],g=!1;function C(e,t){var o,n,a,i=f.length;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=h(t)),r(t._locale)||(e._locale=t._locale),0<i)for(o=0;o<i;o++)r(a=t[n=f[o]])||(e[n]=a);return e}function y(e){C(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,t.updateOffset(this),g=!1)}function $(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function k(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,o){var n=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var i,r,d=[],l=arguments.length,s=0;s<l;s++){if(i="","object"==typeof arguments[s]){for(r in i+="\n["+s+"] ",arguments[0])a(arguments[0],r)&&(i+=r+": "+arguments[0][r]+", ");i=i.slice(0,-2)}else i=arguments[s];d.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack),n=!1}return o.apply(this,arguments)},o)}var b={};function S(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),b[e]||(k(o),b[e]=!0)}function _(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var o,i=c({},e);for(o in t)a(t,o)&&(n(e[o])&&n(t[o])?(i[o]={},c(i[o],e[o]),c(i[o],t[o])):null!=t[o]?i[o]=t[o]:delete i[o]);for(o in e)a(e,o)&&!a(t,o)&&n(e[o])&&(i[o]=c({},i[o]));return i}function P(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var D=Object.keys||function(e){var t,o=[];for(t in e)a(e,t)&&o.push(t);return o};function T(e,t,o){var n=""+Math.abs(e);return(0<=e?o?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},E={};function O(e,t,o,n){var a="string"==typeof n?function(){return this[n]()}:n;e&&(E[e]=a),t&&(E[t[0]]=function(){return T(a.apply(this,arguments),t[1],t[2])}),o&&(E[o]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function M(e,t){return e.isValid()?(t=N(t,e.localeData()),A[t]=A[t]||function(e){for(var t,o=e.match(I),n=0,a=o.length;n<a;n++)E[o[n]]?o[n]=E[o[n]]:o[n]=(t=o[n]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var n="",i=0;i<a;i++)n+=_(o[i])?o[i].call(t,e):o[i];return n}}(t),A[t](e)):e.localeData().invalidDate()}function N(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;0<=o&&F.test(e);)e=e.replace(F,n),F.lastIndex=0,--o;return e}var L={};function V(e,t){var o=e.toLowerCase();L[o]=L[o+"s"]=L[t]=e}function B(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function R(e){var t,o,n={};for(o in e)a(e,o)&&(t=B(o))&&(n[t]=e[o]);return n}var U={};function W(e,t){U[e]=t}function j(e){return e%4==0&&e%100!=0||e%400==0}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=0;return 0!=(e=+e)&&isFinite(e)?H(e):t}function z(e,o){return function(n){return null!=n?(Y(this,e,n),t.updateOffset(this,o),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,o){e.isValid()&&!isNaN(o)&&("FullYear"===t&&j(e.year())&&1===e.month()&&29===e.date()?(o=G(o),e._d["set"+(e._isUTC?"UTC":"")+t](o,e.month(),De(o,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](o))}var Z=/\d/,K=/\d\d/,J=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,ae=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,de=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ue(e,t,o){me[e]=_(t)?t:function(e,n){return e&&o?o:t}}function he(e,t){return a(me,e)?me[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,a){return t||o||n||a})))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={},ve={};function fe(e,t){var o,n,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,o){o[t]=G(e)}),n=e.length,o=0;o<n;o++)ve[e[o]]=a}function ge(e,t){fe(e,function(e,o,n,a){n._w=n._w||{},t(e,n._w,n,a)})}var Ce,ye=0,$e=1,ke=2,we=3,be=4,Se=5,_e=6,xe=7,Pe=8;function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var o=(t%(o=12)+o)%o;return e+=(t-o)/12,1==o?j(e)?29:28:31-o%7%2}Ce=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},O("M",["MM",2],"Mo",function(){return this.month()+1}),O("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),O("MMMM",0,0,function(e){return this.localeData().months(this,e)}),V("month","M"),W("month",8),ue("M",ee),ue("MM",ee,K),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),fe(["M","MM"],function(e,t){t[$e]=G(e)-1}),fe(["MMM","MMMM"],function(e,t,o,n){null!=(n=o._locale.monthsParse(e,n,o._strict))?t[$e]=n:h(o).invalidMonth=e});var Te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae=ce,Ee=ce;function Oe(e,t){var o;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!d(t=e.localeData().monthsParse(t)))return;o=Math.min(e.date(),De(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,o)}}function Me(e){return null!=e?(Oe(this,e),t.updateOffset(this,!0),this):q(this,"Month")}function Ne(){function e(e,t){return t.length-e.length}for(var t,o=[],n=[],a=[],i=0;i<12;i++)t=u([2e3,i]),o.push(this.monthsShort(t,"")),n.push(this.months(t,"")),a.push(this.months(t,"")),a.push(this.monthsShort(t,""));for(o.sort(e),n.sort(e),a.sort(e),i=0;i<12;i++)o[i]=pe(o[i]),n[i]=pe(n[i]);for(i=0;i<24;i++)a[i]=pe(a[i]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Le(e){return j(e)?366:365}O("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),O(0,["YY",2],0,function(){return this.year()%100}),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),V("year","y"),W("year",1),ue("Y",de),ue("YY",ee,K),ue("YYYY",ae,X),ue("YYYYY",ie,Q),ue("YYYYYY",ie,Q),fe(["YYYYY","YYYYYY"],ye),fe("YYYY",function(e,o){o[ye]=2===e.length?t.parseTwoDigitYear(e):G(e)}),fe("YY",function(e,o){o[ye]=t.parseTwoDigitYear(e)}),fe("Y",function(e,t){t[ye]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return G(e)+(68<G(e)?1900:2e3)};var Ve=z("FullYear",!0);function Be(e,t,o,n,a,i,r){var d;return e<100&&0<=e?(d=new Date(e+400,t,o,n,a,i,r),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,o,n,a,i,r),d}function Re(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ue(e,t,o){return(o=7+t-o)-(7+Re(e,0,o).getUTCDay()-t)%7-1}function We(e,t,o,n,a){var i;o=(t=1+7*(t-1)+(7+o-n)%7+Ue(e,n,a))<=0?Le(i=e-1)+t:t>Le(e)?(i=e+1,t-Le(e)):(i=e,t);return{year:i,dayOfYear:o}}function je(e,t,o){var n,a,i=Ue(e.year(),t,o);return(i=Math.floor((e.dayOfYear()-i-1)/7)+1)<1?n=i+He(a=e.year()-1,t,o):i>He(e.year(),t,o)?(n=i-He(e.year(),t,o),a=e.year()+1):(a=e.year(),n=i),{week:n,year:a}}function He(e,t,o){var n=Ue(e,t,o);t=Ue(e+1,t,o);return(Le(e)-n+t)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),V("week","w"),V("isoWeek","W"),W("week",5),W("isoWeek",5),ue("w",ee),ue("ww",ee,K),ue("W",ee),ue("WW",ee,K),ge(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=G(e)}),O("d",0,"do","day"),O("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),O("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),O("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),V("day","d"),V("weekday","e"),V("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ue("d",ee),ue("e",ee),ue("E",ee),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,o,n){null!=(n=o._locale.weekdaysParse(e,n,o._strict))?t.d=n:h(o).invalidWeekday=e}),ge(["d","e","E"],function(e,t,o,n){t[n]=G(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ce,Ke=ce,Je=ce;function Xe(){function e(e,t){return t.length-e.length}for(var t,o,n,a=[],i=[],r=[],d=[],l=0;l<7;l++)n=u([2e3,1]).day(l),t=pe(this.weekdaysMin(n,"")),o=pe(this.weekdaysShort(n,"")),n=pe(this.weekdays(n,"")),a.push(t),i.push(o),r.push(n),d.push(t),d.push(o),d.push(n);a.sort(e),i.sort(e),r.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){O(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,Qe),O("k",["kk",2],0,function(){return this.hours()||24}),O("hmm",0,0,function(){return""+Qe.apply(this)+T(this.minutes(),2)}),O("hmmss",0,0,function(){return""+Qe.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),O("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),O("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),et("a",!0),et("A",!1),V("hour","h"),W("hour",13),ue("a",tt),ue("A",tt),ue("H",ee),ue("h",ee),ue("k",ee),ue("HH",ee,K),ue("hh",ee,K),ue("kk",ee,K),ue("hmm",te),ue("hmmss",oe),ue("Hmm",te),ue("Hmmss",oe),fe(["H","HH"],we),fe(["k","kk"],function(e,t,o){e=G(e),t[we]=24===e?0:e}),fe(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),fe(["h","hh"],function(e,t,o){t[we]=G(e),h(o).bigHour=!0}),fe("hmm",function(e,t,o){var n=e.length-2;t[we]=G(e.substr(0,n)),t[be]=G(e.substr(n)),h(o).bigHour=!0}),fe("hmmss",function(e,t,o){var n=e.length-4,a=e.length-2;t[we]=G(e.substr(0,n)),t[be]=G(e.substr(n,2)),t[Se]=G(e.substr(a)),h(o).bigHour=!0}),fe("Hmm",function(e,t,o){var n=e.length-2;t[we]=G(e.substr(0,n)),t[be]=G(e.substr(n))}),fe("Hmmss",function(e,t,o){var n=e.length-4,a=e.length-2;t[we]=G(e.substr(0,n)),t[be]=G(e.substr(n,2)),t[Se]=G(e.substr(a))}),ce=z("Hours",!0);var ot,nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Ie,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:Ye,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},at={},it={};function rt(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){var t;if(void 0===at[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=ot._abbr,require("./locale/"+e),lt(t)}catch(t){at[e]=null}return at[e]}function lt(e,t){return e&&((t=r(t)?ct(e):st(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function st(e,t){if(null===t)return delete at[e],null;var o,n=nt;if(t.abbr=e,null!=at[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])n=at[t.parentLocale]._config;else{if(null==(o=dt(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;n=o._config}return at[e]=new P(x(n,t)),it[e]&&it[e].forEach(function(e){st(e.name,e.config)}),lt(e),at[e]}function ct(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!o(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,o,n,a,i=0;i<e.length;){for(t=(a=rt(e[i]).split("-")).length,o=(o=rt(e[i+1]))?o.split("-"):null;0<t;){if(n=dt(a.slice(0,t).join("-")))return n;if(o&&o.length>=t&&function(e,t){for(var o=Math.min(e.length,t.length),n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}(a,o)>=t-1)break;t--}i++}return ot}(e)}function ut(e){var t=e._a;return t&&-2===h(e).overflow&&(t=t[$e]<0||11<t[$e]?$e:t[ke]<1||t[ke]>De(t[ye],t[$e])?ke:t[we]<0||24<t[we]||24===t[we]&&(0!==t[be]||0!==t[Se]||0!==t[_e])?we:t[be]<0||59<t[be]?be:t[Se]<0||59<t[Se]?Se:t[_e]<0||999<t[_e]?_e:-1,h(e)._overflowDayOfYear&&(t<ye||ke<t)&&(t=ke),h(e)._overflowWeeks&&-1===t&&(t=xe),h(e)._overflowWeekday&&-1===t&&(t=Pe),h(e).overflow=t),e}var ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((-?\d+)/i,Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function $t(e){var t,o,n,a,i,r,d=e._i,l=ht.exec(d)||pt.exec(d),s=(d=vt.length,ft.length);if(l){for(h(e).iso=!0,t=0,o=d;t<o;t++)if(vt[t][1].exec(l[1])){a=vt[t][0],n=!1!==vt[t][2];break}if(null==a)e._isValid=!1;else{if(l[3]){for(t=0,o=s;t<o;t++)if(ft[t][1].exec(l[3])){i=(l[2]||" ")+ft[t][0];break}if(null==i)return void(e._isValid=!1)}if(n||null==i){if(l[4]){if(!mt.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=a+(i||"")+(r||""),St(e)}else e._isValid=!1}}else e._isValid=!1}function kt(e){var t,o,n,a,i=Ct.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=function(e,t,o,n,a,i){return e=[function(e){return(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e}(e),Ie.indexOf(t),parseInt(o,10),parseInt(n,10),parseInt(a,10)],i&&e.push(parseInt(i,10)),e}(i[4],i[3],i[2],i[5],i[6],i[7]),n=t,a=e,(o=i[1])&&qe.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()?(h(a).weekdayMismatch=!0,a._isValid=!1):(e._a=t,e._tzm=(o=i[8],n=i[9],a=i[10],o?yt[o]:n?0:((o=parseInt(a,10))-(n=o%100))/100*60+n),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0)):e._isValid=!1}function wt(e,t,o){return null!=e?e:null!=t?t:o}function bt(e){var o,n,a,i,r,d,l,s,c,u,p,m=[];if(!e._d){for(a=e,i=new Date(t.now()),n=a._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],e._w&&null==e._a[ke]&&null==e._a[$e]&&(null!=(i=(a=e)._w).GG||null!=i.W||null!=i.E?(s=1,c=4,r=wt(i.GG,a._a[ye],je(Pt(),1,4).year),d=wt(i.W,1),((l=wt(i.E,1))<1||7<l)&&(u=!0)):(s=a._locale._week.dow,c=a._locale._week.doy,p=je(Pt(),s,c),r=wt(i.gg,a._a[ye],p.year),d=wt(i.w,p.week),null!=i.d?((l=i.d)<0||6<l)&&(u=!0):null!=i.e?(l=i.e+s,(i.e<0||6<i.e)&&(u=!0)):l=s),d<1||d>He(r,s,c)?h(a)._overflowWeeks=!0:null!=u?h(a)._overflowWeekday=!0:(p=We(r,d,l,s,c),a._a[ye]=p.year,a._dayOfYear=p.dayOfYear)),null!=e._dayOfYear&&(i=wt(e._a[ye],n[ye]),(e._dayOfYear>Le(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),u=Re(i,0,e._dayOfYear),e._a[$e]=u.getUTCMonth(),e._a[ke]=u.getUTCDate()),o=0;o<3&&null==e._a[o];++o)e._a[o]=m[o]=n[o];for(;o<7;o++)e._a[o]=m[o]=null==e._a[o]?2===o?1:0:e._a[o];24===e._a[we]&&0===e._a[be]&&0===e._a[Se]&&0===e._a[_e]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Re:Be).apply(null,m),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(h(e).weekdayMismatch=!0)}}function St(e){if(e._f===t.ISO_8601)$t(e);else if(e._f===t.RFC_2822)kt(e);else{e._a=[],h(e).empty=!0;for(var o,n,i,r,d,l=""+e._i,s=l.length,c=0,u=N(e._f,e._locale).match(I)||[],p=u.length,m=0;m<p;m++)n=u[m],(o=(l.match(he(n,e))||[])[0])&&(0<(i=l.substr(0,l.indexOf(o))).length&&h(e).unusedInput.push(i),l=l.slice(l.indexOf(o)+o.length),c+=o.length),E[n]?(o?h(e).empty=!1:h(e).unusedTokens.push(n),i=n,d=e,null!=(r=o)&&a(ve,i)&&ve[i](r,d._a,d,i)):e._strict&&!o&&h(e).unusedTokens.push(n);h(e).charsLeftOver=s-c,0<l.length&&h(e).unusedInput.push(l),e._a[we]<=12&&!0===h(e).bigHour&&0<e._a[we]&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,o){return null==o?t:null!=e.meridiemHour?e.meridiemHour(t,o):null!=e.isPM?((e=e.isPM(o))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[we],e._meridiem),null!==(s=h(e).era)&&(e._a[ye]=e._locale.erasConvertYear(s,e._a[ye])),bt(e),ut(e)}}function _t(e){var a,i,u,v=e._i,f=e._f;return e._locale=e._locale||ct(e._l),null===v||void 0===f&&""===v?m({nullInput:!0}):("string"==typeof v&&(e._i=v=e._locale.preparse(v)),$(v)?new y(ut(v)):(l(v)?e._d=v:o(f)?function(e){var t,o,n,a,i,r,d=!1,l=e._f.length;if(0===l)return h(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<l;a++)i=0,r=!1,t=C({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],St(t),p(t)&&(r=!0),i=(i+=h(t).charsLeftOver)+10*h(t).unusedTokens.length,h(t).score=i,d?i<n&&(n=i,o=t):(null==n||i<n||r)&&(n=i,o=t,r&&(d=!0));c(e,o||t)}(e):f?St(e):r(f=(v=e)._i)?v._d=new Date(t.now()):l(f)?v._d=new Date(f.valueOf()):"string"==typeof f?(i=v,null!==(a=gt.exec(i._i))?i._d=new Date(+a[1]):($t(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:t.createFromInputFallback(i))))):o(f)?(v._a=s(f.slice(0),function(e){return parseInt(e,10)}),bt(v)):n(f)?(a=v)._d||(u=void 0===(i=R(a._i)).day?i.date:i.day,a._a=s([i.year,i.month,u,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),bt(a)):d(f)?v._d=new Date(f):t.createFromInputFallback(v),p(e)||(e._d=null),e))}function xt(e,t,a,r,d){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==a&&!1!==a||(r=a,a=void 0),(n(e)&&i(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=d,l._l=a,l._i=e,l._f=t,l._strict=r,(d=new y(ut(_t(d=l))))._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function Pt(e,t,o,n){return xt(e,t,o,n,!1)}function Dt(e,t){var n,a;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Pt();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}t.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},te=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),oe=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()});var Tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var t=(e=R(e)).year||0,o=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,r=e.day||0,d=e.hour||0,l=e.minute||0,s=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,o,n=!1,i=Tt.length;for(t in e)if(a(e,t)&&(-1===Ce.call(Tt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(o=0;o<i;++o)if(e[Tt[o]]){if(n)return!1;parseFloat(e[Tt[o]])!==G(e[Tt[o]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*s+6e4*l+1e3*d*60*60,this._days=+r+7*i,this._months=+n+3*o+12*t,this._data={},this._locale=ct(),this._bubble()}function Ft(e){return e instanceof It}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Et(e,t){O(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+T(~~(e/60),2)+t+T(~~e%60,2)})}Et("Z",":"),Et("ZZ",""),ue("Z",se),ue("ZZ",se),fe(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=Mt(se,e)});var Ot=/([\+\-]|\d\d)/gi;function Mt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ot)||["-",0,0])[1]+G(e[2]))?0:"+"===e[0]?t:-t}function Nt(e,o){var n;return o._isUTC?(o=o.clone(),n=($(e)||l(e)?e:Pt(e)).valueOf()-o.valueOf(),o._d.setTime(o._d.valueOf()+n),t.updateOffset(o,!1),o):Pt(e).local()}function Lt(e){return-Math.round(e._d.getTimezoneOffset())}function Vt(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var o,n=e,i=null;return Ft(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(i=Bt.exec(e))?(o="-"===i[1]?-1:1,n={y:0,d:G(i[ke])*o,h:G(i[we])*o,m:G(i[be])*o,s:G(i[Se])*o,ms:G(At(1e3*i[_e]))*o}):(i=Rt.exec(e))?(o="-"===i[1]?-1:1,n={y:Wt(i[2],o),M:Wt(i[3],o),w:Wt(i[4],o),d:Wt(i[5],o),h:Wt(i[6],o),m:Wt(i[7],o),s:Wt(i[8],o)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=function(e,t){var o;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?o=jt(e,t):((o=jt(t,e)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}(Pt(n.from),Pt(n.to)),(n={}).ms=t.milliseconds,n.M=t.months),i=new It(n),Ft(e)&&a(e,"_locale")&&(i._locale=e._locale),Ft(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Wt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function jt(e,t){var o={};return o.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function Ht(e,t){return function(o,n){var a;return null===n||isNaN(+n)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=o,o=n,n=a),Gt(this,Ut(o,n),e),this}}function Gt(e,o,n,a){var i=o._milliseconds,r=At(o._days);o=At(o._months);e.isValid()&&(a=null==a||a,o&&Oe(e,q(e,"Month")+o*n),r&&Y(e,"Date",q(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&t.updateOffset(e,r||o))}function zt(e){return"string"==typeof e||e instanceof String}function qt(e,t){if(e.date()<t.date())return-qt(t,e);var o=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(o,"months");return-(o+(t=t-n<0?(t-n)/(n-e.clone().add(o-1,"months")):(t-n)/(e.clone().add(1+o,"months")-n)))||0}function Yt(e){return void 0===e?this._locale._abbr:(null!=(e=ct(e))&&(this._locale=e),this)}function Zt(){return this._locale}Ut.fn=It.prototype,Ut.invalid=function(){return Ut(NaN)},Te=Ht(1,"add"),ze=Ht(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ye=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Kt=126227808e5;function Jt(e,t){return(e%t+t)%t}function Xt(e,t,o){return e<100&&0<=e?new Date(e+400,t,o)-Kt:new Date(e,t,o).valueOf()}function Qt(e,t,o){return e<100&&0<=e?Date.UTC(e+400,t,o)-Kt:Date.UTC(e,t,o)}function eo(e,t){return t.erasAbbrRegex(e)}function to(){for(var e=[],t=[],o=[],n=[],a=this.eras(),i=0,r=a.length;i<r;++i)t.push(pe(a[i].name)),e.push(pe(a[i].abbr)),o.push(pe(a[i].narrow)),n.push(pe(a[i].name)),n.push(pe(a[i].abbr)),n.push(pe(a[i].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function oo(e,t){O(0,[e,e.length],0,t)}function no(e,t,o,n,a){var i;return null==e?je(this,n,a).year:(i=He(e,n,a),function(e,t,o,n,a){return t=Re((e=We(e,t,o,n,a)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=i<t?i:t,o,n,a))}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),ue("N",eo),ue("NN",eo),ue("NNN",eo),ue("NNNN",function(e,t){return t.erasNameRegex(e)}),ue("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){(n=o._locale.erasParse(e,n,o._strict))?h(o).era=n:h(o).invalidEra=e}),ue("y",re),ue("yy",re),ue("yyy",re),ue("yyyy",re),ue("yo",function(e,t){return t._eraYearOrdinalRegex||re}),fe(["y","yy","yyy","yyyy"],ye),fe(["yo"],function(e,t,o,n){var a;o._locale._eraYearOrdinalRegex&&(a=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[ye]=o._locale.eraYearOrdinalParse(e,a):t[ye]=parseInt(e,10)}),O(0,["gg",2],0,function(){return this.weekYear()%100}),O(0,["GG",2],0,function(){return this.isoWeekYear()%100}),oo("gggg","weekYear"),oo("ggggg","weekYear"),oo("GGGG","isoWeekYear"),oo("GGGGG","isoWeekYear"),V("weekYear","gg"),V("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),ue("G",de),ue("g",de),ue("GG",ee,K),ue("gg",ee,K),ue("GGGG",ae,X),ue("gggg",ae,X),ue("GGGGG",ie,Q),ue("ggggg",ie,Q),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,n){t[n.substr(0,2)]=G(e)}),ge(["gg","GG"],function(e,o,n,a){o[a]=t.parseTwoDigitYear(e)}),O("Q",0,"Qo","quarter"),V("quarter","Q"),W("quarter",7),ue("Q",Z),fe("Q",function(e,t){t[$e]=3*(G(e)-1)}),O("D",["DD",2],"Do","date"),V("date","D"),W("date",9),ue("D",ee),ue("DD",ee,K),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],ke),fe("Do",function(e,t){t[ke]=G(e.match(ee)[0])}),ae=z("Date",!0),O("DDD",["DDDD",3],"DDDo","dayOfYear"),V("dayOfYear","DDD"),W("dayOfYear",4),ue("DDD",ne),ue("DDDD",J),fe(["DDD","DDDD"],function(e,t,o){o._dayOfYear=G(e)}),O("m",["mm",2],0,"minute"),V("minute","m"),W("minute",14),ue("m",ee),ue("mm",ee,K),fe(["m","mm"],be);var ao;X=z("Minutes",!1),O("s",["ss",2],0,"second"),V("second","s"),W("second",15),ue("s",ee),ue("ss",ee,K),fe(["s","ss"],Se),ie=z("Seconds",!1);for(O("S",0,0,function(){return~~(this.millisecond()/100)}),O(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,function(){return 10*this.millisecond()}),O(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),O(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),O(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),O(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),O(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),V("millisecond","ms"),W("millisecond",16),ue("S",ne,Z),ue("SS",ne,K),ue("SSS",ne,J),ao="SSSS";ao.length<=9;ao+="S")ue(ao,re);function io(e,t){t[_e]=G(1e3*("0."+e))}for(ao="S";ao.length<=9;ao+="S")fe(ao,io);function ro(e){return e}function lo(e,t,o,n){var a=ct();n=u().set(n,t);return a[o](n,e)}function so(e,t,o){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return lo(e,t,o,"month");for(var n=[],a=0;a<12;a++)n[a]=lo(e,a,o,"month");return n}function co(e,t,o,n){"boolean"==typeof e?d(t)&&(o=t,t=void 0):(t=e,e=!1,d(o=t)&&(o=t,t=void 0)),t=t||"";var a,i=ct(),r=e?i._week.dow:0,l=[];if(null!=o)return lo(t,(o+r)%7,n,"day");for(a=0;a<7;a++)l[a]=lo(t,(a+r)%7,n,"day");return l}Q=z("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName"),(Z=y.prototype).add=Te,Z.calendar=function(e,r){1===arguments.length&&(arguments[0]?function(e){return $(e)||l(e)||zt(e)||d(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!d(t)&&zt(e)}).length),t&&n}(e)||function(e){var t,o=n(e)&&!i(e),r=!1,d=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=d.length;for(t=0;t<l;t+=1)r=r||a(e,d[t]);return o&&r}(e)||null==e}(arguments[0])?(e=arguments[0],r=void 0):function(e){for(var t=n(e)&&!i(e),o=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],d=0;d<r.length;d+=1)o=o||a(e,r[d]);return t&&o}(arguments[0])&&(r=arguments[0],e=void 0):r=e=void 0);var s=Nt(e=e||Pt(),this).startOf("day");s=t.calendarFormat(this,s)||"sameElse",r=r&&(_(r[s])?r[s].call(this,e):r[s]);return this.format(r||this.localeData().calendar(s,this,Pt(e)))},Z.clone=function(){return new y(this)},Z.diff=function(e,t,o){var n,a,i;if(!this.isValid())return NaN;if(!(n=Nt(e,this)).isValid())return NaN;switch(a=6e4*(n.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=qt(this,n)/12;break;case"month":i=qt(this,n);break;case"quarter":i=qt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return o?i:H(i)},Z.endOf=function(e){var o,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Qt:Xt,e){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=36e5-Jt(o+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":o=this._d.valueOf(),o+=6e4-Jt(o,6e4)-1;break;case"second":o=this._d.valueOf(),o+=1e3-Jt(o,1e3)-1}return this._d.setTime(o),t.updateOffset(this,!0),this},Z.format=function(e){return e=M(this,e=e||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat)),this.localeData().postformat(e)},Z.from=function(e,t){return this.isValid()&&($(e)&&e.isValid()||Pt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.fromNow=function(e){return this.from(Pt(),e)},Z.to=function(e,t){return this.isValid()&&($(e)&&e.isValid()||Pt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.toNow=function(e){return this.to(Pt(),e)},Z.get=function(e){return _(this[e=B(e)])?this[e]():this},Z.invalidAt=function(){return h(this).overflow},Z.isAfter=function(e,t){return e=$(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},Z.isBefore=function(e,t){return e=$(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},Z.isBetween=function(e,t,o,n){return e=$(e)?e:Pt(e),t=$(t)?t:Pt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,o):!this.isBefore(e,o))&&(")"===n[1]?this.isBefore(t,o):!this.isAfter(t,o))},Z.isSame=function(e,t){e=$(e)?e:Pt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},Z.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Z.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Z.isValid=function(){return p(this)},Z.lang=Ye,Z.locale=Yt,Z.localeData=Zt,Z.max=oe,Z.min=te,Z.parsingFlags=function(){return c({},h(this))},Z.set=function(e,t){if("object"==typeof e)for(var o=function(e){var t,o=[];for(t in e)a(e,t)&&o.push({unit:t,priority:U[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=R(e)),n=o.length,i=0;i<n;i++)this[o[i].unit](e[o[i].unit]);else if(_(this[e=B(e)]))return this[e](t);return this},Z.startOf=function(e){var o,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Qt:Xt,e){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=Jt(o+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":o=this._d.valueOf(),o-=Jt(o,6e4);break;case"second":o=this._d.valueOf(),o-=Jt(o,1e3)}return this._d.setTime(o),t.updateOffset(this,!0),this},Z.subtract=ze,Z.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Z.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?M(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",M(t,"Z")):M(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",o="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+o+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Z[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.eraName=function(){for(var e,t=this.localeData().eras(),o=0,n=t.length;o<n;++o){if(e=this.clone().startOf("day").valueOf(),t[o].since<=e&&e<=t[o].until)return t[o].name;if(t[o].until<=e&&e<=t[o].since)return t[o].name}return""},Z.eraNarrow=function(){for(var e,t=this.localeData().eras(),o=0,n=t.length;o<n;++o){if(e=this.clone().startOf("day").valueOf(),t[o].since<=e&&e<=t[o].until)return t[o].narrow;if(t[o].until<=e&&e<=t[o].since)return t[o].narrow}return""},Z.eraAbbr=function(){for(var e,t=this.localeData().eras(),o=0,n=t.length;o<n;++o){if(e=this.clone().startOf("day").valueOf(),t[o].since<=e&&e<=t[o].until)return t[o].abbr;if(t[o].until<=e&&e<=t[o].since)return t[o].abbr}return""},Z.eraYear=function(){for(var e,o,n=this.localeData().eras(),a=0,i=n.length;a<i;++a)if(e=n[a].since<=n[a].until?1:-1,o=this.clone().startOf("day").valueOf(),n[a].since<=o&&o<=n[a].until||n[a].until<=o&&o<=n[a].since)return(this.year()-t(n[a].since).year())*e+n[a].offset;return this.year()},Z.year=Ve,Z.isLeapYear=function(){return j(this.year())},Z.weekYear=function(e){return no.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(e){return no.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Z.month=Me,Z.daysInMonth=function(){return De(this.year(),this.month())},Z.week=Z.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Z.isoWeek=Z.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Z.weeksInYear=function(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)},Z.weeksInWeekYear=function(){var e=this.localeData()._week;return He(this.weekYear(),e.dow,e.doy)},Z.isoWeeksInYear=function(){return He(this.year(),1,4)},Z.isoWeeksInISOWeekYear=function(){return He(this.isoWeekYear(),1,4)},Z.date=ae,Z.day=Z.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,o,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,o=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=o.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},Z.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Z.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,o=this.localeData(),o="string"==typeof t?o.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?o:o-7)):this.day()||7:null!=e?this:NaN;var t,o},Z.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Z.hour=Z.hours=ce,Z.minute=Z.minutes=X,Z.second=Z.seconds=ie,Z.millisecond=Z.milliseconds=Q,Z.utcOffset=function(e,o,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Lt(this);if("string"==typeof e){if(null===(e=Mt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&o&&(a=Lt(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!o||this._changeInProgress?Gt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(e){return this.utcOffset(0,e)},Z.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this},Z.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Mt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Vt,Z.isUTC=Vt,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=w("dates accessor is deprecated. Use date instead.",ae),Z.months=w("months accessor is deprecated. Use month instead",Me),Z.years=w("years accessor is deprecated. Use year instead",Ve),Z.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),Z.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e,t={};return C(t,this),(t=_t(t))._a?(e=(t._isUTC?u:Pt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t){for(var o=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i=0;i<o;i++)G(e[i])!==G(t[i])&&a++;return a+n}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),(K=P.prototype).calendar=function(e,t,o){return _(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,o):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=ro,K.postformat=ro,K.relativeTime=function(e,t,o,n){var a=this._relativeTime[o];return _(a)?a(e,t,o,n):a.replace(/%d/i,e)},K.pastFuture=function(e,t){return _(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,o;for(o in e)a(e,o)&&(_(t=e[o])?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(e,o){for(var n,a=this._eras||ct("en")._eras,i=0,r=a.length;i<r;++i){if("string"==typeof a[i].since)n=t(a[i].since).startOf("day"),a[i].since=n.valueOf();switch(typeof a[i].until){case"undefined":a[i].until=1/0;break;case"string":n=t(a[i].until).startOf("day").valueOf(),a[i].until=n.valueOf()}}return a},K.erasParse=function(e,t,o){var n,a,i,r,d,l=this.eras();for(e=e.toUpperCase(),n=0,a=l.length;n<a;++n)if(i=l[n].name.toUpperCase(),r=l[n].abbr.toUpperCase(),d=l[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[n];break;case"NNNN":if(i===e)return l[n];break;case"NNNNN":if(d===e)return l[n]}else if(0<=[i,r,d].indexOf(e))return l[n]},K.erasConvertYear=function(e,o){var n=e.since<=e.until?1:-1;return void 0===o?t(e.since).year():t(e.since).year()+(o-e.offset)*n},K.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||to.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return a(this,"_erasNameRegex")||to.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||to.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(e,t,o){var n,a;if(this._monthsParseExact)return function(e,t,o){var n,a,i;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return o?"MMM"===t?-1!==(a=Ce.call(this._shortMonthsParse,e))?a:null:-1!==(a=Ce.call(this._longMonthsParse,e))?a:null:"MMM"===t?-1!==(a=Ce.call(this._shortMonthsParse,e))||-1!==(a=Ce.call(this._longMonthsParse,e))?a:null:-1!==(a=Ce.call(this._longMonthsParse,e))||-1!==(a=Ce.call(this._shortMonthsParse,e))?a:null}.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=u([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(o&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!o&&this._monthsParse[n].test(e))return n}},K.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return je(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ge(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.weekdaysParse=function(e,t,o){var n,a;if(this._weekdaysParseExact)return function(e,t,o){var n,a,i;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return o?"dddd"===t?-1!==(a=Ce.call(this._weekdaysParse,e))?a:null:"ddd"===t?-1!==(a=Ce.call(this._shortWeekdaysParse,e))?a:null:-1!==(a=Ce.call(this._minWeekdaysParse,e))?a:null:"dddd"===t?-1!==(a=Ce.call(this._weekdaysParse,e))||-1!==(a=Ce.call(this._shortWeekdaysParse,e))||-1!==(a=Ce.call(this._minWeekdaysParse,e))?a:null:"ddd"===t?-1!==(a=Ce.call(this._shortWeekdaysParse,e))||-1!==(a=Ce.call(this._weekdaysParse,e))||-1!==(a=Ce.call(this._minWeekdaysParse,e))?a:null:-1!==(a=Ce.call(this._minWeekdaysParse,e))||-1!==(a=Ce.call(this._weekdaysParse,e))||-1!==(a=Ce.call(this._shortWeekdaysParse,e))?a:null}.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=u([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(o&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(o&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!o&&this._weekdaysParse[n].test(e))return n}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,o){return 11<e?o?"pm":"PM":o?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.lang=w("moment.lang is deprecated. Use moment.locale instead.",lt),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ct);var uo=Math.abs;function ho(e,t,o,n){return t=Ut(t,o),e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function po(e){return e<0?Math.floor(e):Math.ceil(e)}function mo(e){return 4800*e/146097}function vo(e){return 146097*e/4800}function fo(e){return function(){return this.as(e)}}function go(e){return function(){return this.isValid()?this._data[e]:NaN}}ne=fo("ms"),J=fo("s"),Te=fo("m"),oe=fo("h"),te=fo("d"),ze=fo("w"),ce=fo("M"),X=fo("Q"),ie=fo("y");Q=go("milliseconds"),ae=go("seconds"),Ve=go("minutes"),K=go("hours");var Co=go("days"),yo=go("months"),$o=go("years"),ko=Math.round,wo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var bo=Math.abs;function So(e){return(0<e)-(e<0)||+e}function _o(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,a,i,r,d=bo(this._milliseconds)/1e3,l=bo(this._days),s=bo(this._months),c=this.asSeconds();return c?(e=H(d/60),t=H(e/60),d%=60,e%=60,o=H(s/12),s%=12,n=d?d.toFixed(3).replace(/\.?0+$/,""):"",a=So(this._months)!==So(c)?"-":"",i=So(this._days)!==So(c)?"-":"",r=So(this._milliseconds)!==So(c)?"-":"",(c<0?"-":"")+"P"+(o?a+o+"Y":"")+(s?a+s+"M":"")+(l?i+l+"D":"")+(t||e||d?"T":"")+(t?r+t+"H":"")+(e?r+e+"M":"")+(d?r+n+"S":"")):"P0D"}var xo=It.prototype;return xo.isValid=function(){return this._isValid},xo.abs=function(){var e=this._data;return this._milliseconds=uo(this._milliseconds),this._days=uo(this._days),this._months=uo(this._months),e.milliseconds=uo(e.milliseconds),e.seconds=uo(e.seconds),e.minutes=uo(e.minutes),e.hours=uo(e.hours),e.months=uo(e.months),e.years=uo(e.years),this},xo.add=function(e,t){return ho(this,e,t,1)},xo.subtract=function(e,t){return ho(this,e,t,-1)},xo.as=function(e){if(!this.isValid())return NaN;var t,o,n=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,o=this._months+mo(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(vo(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},xo.asMilliseconds=ne,xo.asSeconds=J,xo.asMinutes=Te,xo.asHours=oe,xo.asDays=te,xo.asWeeks=ze,xo.asMonths=ce,xo.asQuarters=X,xo.asYears=ie,xo.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},xo._bubble=function(){var e=this._milliseconds,t=this._days,o=this._months,n=this._data;return 0<=e&&0<=t&&0<=o||e<=0&&t<=0&&o<=0||(e+=864e5*po(vo(o)+t),o=t=0),n.milliseconds=e%1e3,e=H(e/1e3),n.seconds=e%60,e=H(e/60),n.minutes=e%60,e=H(e/60),n.hours=e%24,t+=H(e/24),o+=e=H(mo(t)),t-=po(vo(e)),e=H(o/12),o%=12,n.days=t,n.months=o,n.years=e,this},xo.clone=function(){return Ut(this)},xo.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},xo.milliseconds=Q,xo.seconds=ae,xo.minutes=Ve,xo.hours=K,xo.days=Co,xo.weeks=function(){return H(this.days()/7)},xo.months=yo,xo.years=$o,xo.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o=!1,n=wo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(n=Object.assign({},wo,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),t=function(e,t,o,n){var a=Ut(e).abs(),i=ko(a.as("s")),r=ko(a.as("m")),d=ko(a.as("h")),l=ko(a.as("d")),s=ko(a.as("M")),c=ko(a.as("w"));return a=ko(a.as("y")),i=(i<=o.ss?["s",i]:i<o.s&&["ss",i])||r<=1&&["m"]||r<o.m&&["mm",r]||d<=1&&["h"]||d<o.h&&["hh",d]||l<=1&&["d"]||l<o.d&&["dd",l],(i=(i=null!=o.w?i||c<=1&&["w"]||c<o.w&&["ww",c]:i)||s<=1&&["M"]||s<o.M&&["MM",s]||a<=1&&["y"]||["yy",a])[2]=t,i[3]=0<+e,i[4]=n,function(e,t,o,n,a){return a.relativeTime(t||1,!!o,e,n)}.apply(null,i)}(this,!o,n,e=this.localeData()),o&&(t=e.pastFuture(+this,t)),e.postformat(t)},xo.toISOString=_o,xo.toString=_o,xo.toJSON=_o,xo.locale=Yt,xo.localeData=Zt,xo.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_o),xo.lang=Ye,O("X",0,0,"unix"),O("x",0,0,"valueOf"),ue("x",de),ue("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),fe("x",function(e,t,o){o._d=new Date(G(e))}),t.version="2.29.4",e=Pt,t.fn=Z,t.min=function(){return Dt("isBefore",[].slice.call(arguments,0))},t.max=function(){return Dt("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return Pt(1e3*e)},t.months=function(e,t){return so(e,t,"months")},t.isDate=l,t.locale=lt,t.invalid=m,t.duration=Ut,t.isMoment=$,t.weekdays=function(e,t,o){return co(e,t,o,"weekdays")},t.parseZone=function(){return Pt.apply(null,arguments).parseZone()},t.localeData=ct,t.isDuration=Ft,t.monthsShort=function(e,t){return so(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return co(e,t,o,"weekdaysMin")},t.defineLocale=st,t.updateLocale=function(e,t){var o,n;return null!=t?(n=nt,null!=at[e]&&null!=at[e].parentLocale?at[e].set(x(at[e]._config,t)):(t=x(n=null!=(o=dt(e))?o._config:n,t),null==o&&(t.abbr=e),(n=new P(t)).parentLocale=at[e],at[e]=n),lt(e)):null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===lt()&&lt(e)):null!=at[e]&&delete at[e]),at[e]},t.locales=function(){return D(at)},t.weekdaysShort=function(e,t,o){return co(e,t,o,"weekdaysShort")},t.normalizeUnits=B,t.relativeTimeRounding=function(e){return void 0===e?ko:"function"==typeof e&&(ko=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==wo[e]&&(void 0===t?wo[e]:(wo[e]=t,"s"===e&&(wo.ss=t-1),!0))},t.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},t.prototype=Z,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),function(e){function t(t,o,n,a){var i={data:a||0===a||!1===a?a:o?o.data:{},_wrap:o?o._wrap:null,tmpl:null,parent:o||null,nodes:[],calls:l,nest:s,wrap:c,html:u,update:h};return t&&e.extend(i,t,{nodes:[],parent:o}),n&&(i.tmpl=n,i._ctnt=i._ctnt||i.tmpl(e,i),i.key=++$,(w.length?C:g)[$]=i),i}function o(t,a,i){var r,l=i?e.map(i,function(e){return"string"==typeof e?t.key?e.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+v+'="'+t.key+'" $2'):e:o(e,t,e._ctnt)}):t;return a?l:((l=l.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,o,a,i){d(r=e(a).get()),o&&(r=n(o).concat(r)),i&&(r=r.concat(n(i)))}),r||n(l))}function n(t){var o=document.createElement("div");return o.innerHTML=t,e.makeArray(o.childNodes)}function a(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+e.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,o,n,a,i,d,l){var s,c,u,h=e.tmpl.tag[n];if(!h)throw"Unknown template tag: "+n;return s=h._default||[],d&&!/\w$/.test(i)&&(i+=d,d=""),i?(i=r(i),l=l?","+r(l)+")":d?")":"",c=d?i.indexOf(".")>-1?i+r(d):"("+i+").call($item"+l:i,u=d?c:"(typeof("+i+")==='function'?("+i+").call($item):("+i+"))"):u=c=s.$1||"null",a=r(a),"');"+h[o?"close":"open"].split("$notnull_1").join(i?"typeof("+i+")!=='undefined' && ("+i+")!=null":"true").split("$1a").join(u).split("$1").join(c).split("$2").join(a||s.$2||"")+"__.push('"})+"');}return __;")}function i(t,n){t._wrap=o(t,!0,e.isArray(n)?n:[f.test(n)?n:e(n).html()]).join("")}function r(e){return e?e.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function d(o){function n(o){function n(e){r=l[e+=d]=l[e]||t(r,g[r.parent.key+d]||r.parent)}var a,i,r,s,c=o;if(s=o.getAttribute(v)){for(;c.parentNode&&1===(c=c.parentNode).nodeType&&!(a=c.getAttribute(v)););a!==s&&(c=c.parentNode?11===c.nodeType?0:c.getAttribute(v)||0:0,(r=g[s])||((r=t(r=C[s],g[c]||C[c])).key=++$,g[$]=r),k&&n(s)),o.removeAttribute(v)}else k&&(r=e.data(o,"tmplItem"))&&(n(r.key),g[r.key]=r,c=(c=e.data(o.parentNode,"tmplItem"))?c.key:0);if(r){for(i=r;i&&i.key!=c;)i.nodes.push(o),i=i.parent;delete r._ctnt,delete r._wrap,e.data(o,"tmplItem",r)}}for(var a,i,r,d="_"+k,l={},s=0,c=o.length;s<c;s++)if(1===(a=o[s]).nodeType){for(r=(i=a.getElementsByTagName("*")).length-1;r>=0;r--)n(i[r]);n(a)}}function l(e,t,o,n){if(!e)return w.pop();w.push({_:e,tmpl:t,item:this,data:o,options:n})}function s(t,o,n){return e.tmpl(e.template(t),o,n,this)}function c(t,o){var n=t.options||{};return n.wrapped=o,e.tmpl(e.template(t.tmpl),t.data,n,t.item)}function u(t,o){var n=this._wrap;return e.map(e(e.isArray(n)?n.join(""):n).filter(t||"*"),function(e){return o?e.innerText||e.textContent:e.outerHTML||function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e)})}function h(){var t=this.nodes;e.tmpl(null,null,null,this).insertBefore(t[0]),e(t).hide(),e(t).remove()}var p,m=e.fn.domManip,v="_tmplitem",f=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,g={},C={},y={key:0,data:{}},$=0,k=0,w=[];e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,o){e.fn[t]=function(n){var a,i,r,d,l=[],s=e(n),c=1===this.length&&this[0].parentNode;if(p=g||{},c&&11===c.nodeType&&1===c.childNodes.length&&1===s.length)s[o](this[0]),l=this;else{for(i=0,r=s.length;i<r;i++)k=i,a=(i>0?this.clone(!0):this).get(),e(s[i])[o](a),l=l.concat(a);k=0,l=this.pushStack(l,t,s.selector)}return d=p,p=null,e.tmpl.complete(d),l}}),e.fn.extend({tmpl:function(t,o,n){return e.tmpl(this[0],t,o,n)},tmplItem:function(){return e.tmplItem(this[0])},template:function(t){return e.template(t,this[0])},domManip:function(t,o,n){if(t[0]&&e.isArray(t[0])){for(var a,i=e.makeArray(arguments),r=t[0],d=r.length,l=0;l<d&&!(a=e.data(r[l++],"tmplItem")););a&&k&&(i[2]=function(t){e.tmpl.afterManip(this,t,n)}),m.apply(this,i)}else m.apply(this,arguments);return k=0,p||e.tmpl.complete(g),this}}),e.extend({tmpl:function(n,a,r,d){var l,s=!d;if(s)d=y,n=e.template[n]||e.template(null,n),C={};else if(!n)return n=d.tmpl,g[d.key]=d,d.nodes=[],d.wrapped&&i(d,d.wrapped),e(o(d,null,d.tmpl(e,d)));return n?("function"==typeof a&&(a=a.call(d||{})),r&&r.wrapped&&i(r,r.wrapped),l=e.isArray(a)?e.map(a,function(e){return e?t(r,d,n,e):null}):[t(r,d,n,a)],s?e(o(d,null,l)):l):[]},tmplItem:function(t){var o;for(t instanceof e&&(t=t[0]);t&&1===t.nodeType&&!(o=e.data(t,"tmplItem"))&&(t=t.parentNode););return o||y},template:function(t,o){return o?("string"==typeof o?o=a(o):o instanceof e&&(o=o[0]||{}),o.nodeType&&(o=e.data(o,"tmpl")||e.data(o,"tmpl",a(o.innerHTML))),"string"==typeof t?e.template[t]=o:o):t?"string"!=typeof t?e.template(null,t):e.template[t]||e.template(null,f.test(t)?t:e(t)):null},encode:function(e){return(""+e).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),e.extend(e.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){g={}},afterManip:function(t,o,n){var a=11===o.nodeType?e.makeArray(o.childNodes):1===o.nodeType?[o]:[];n.call(t,o),d(a),k++}})}(jQuery),function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var o=e([0]),n=-1,a=this.length;++n<a&&(o.context=o[0]=this[n])&&!1!==t.call(o[0],n,o););return this}})}(jQuery),function(){var e=!1,t=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(o){var n=this.prototype;e=!0;var a=new this;for(var i in e=!1,o)a[i]="function"==typeof o[i]&&"function"==typeof n[i]&&t.test(o[i])?function(e,t){return function(){var o=this._super;this._super=n[e];var a=t.apply(this,arguments);return this._super=o,a}}(i,o[i]):o[i];function r(){!e&&this.init&&this.init.apply(this,arguments)}return r.prototype=a,r.prototype.constructor=r,r.extend=arguments.callee,r}}(),function(e,t){"use strict";if(window.Select2===t){var o,n,a,i,r,d,l,s,c,u={x:0,y:0},h={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},p={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z"};l=e(document),c=1,r=function(){return c++},l.on("mousemove",function(e){u.x=e.pageX,u.y=e.pageY}),o=Class.extend({bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(o){var n,a,i,d,l,c=".select2-results";this.opts=o=this.prepareOpts(o),this.id=o.id,o.element.data("select2")!==t&&null!==o.element.data("select2")&&o.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(o.element.attr("id")||"autogen"+r()).replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.containerSelector="#"+this.containerId,this.container.attr("id",this.containerId),this.body=(i=function(){return o.element.closest("body")},l=!1,function(){return!1===l&&(d=i(),l=!0),d}),b(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",o.element.attr("style")),this.container.css(I(o.containerCss)),this.container.addClass(I(o.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").attr("aria-hidden",!0).before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),b(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(o.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(c),this.search=a=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",function(o){var n=u;n!==t&&n.x===o.pageX&&n.y===o.pageY||e(o.target).trigger("mousemove-filtered",o)}),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",c,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchend",c,this.bind(this.selectHighlighted)),this.dropdown.on("touchmove",c,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",c,this.bind(this.clearTouchMoved)),function(e,t){var o=k(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){f(e.target,t.get())>=0&&o(e)})}(80,this.results),this.dropdown.on("scroll-debounced",c,this.bind(this.loadMoreIfNeeded)),e(this.container,this.dropdown).on("change",".select2-input",this.bind(function(t){t.stopPropagation(),e(t.target).trigger("native-change",t)})),e.fn.mousewheel&&n.mousewheel(function(e,t,o,a){var i=n.scrollTop();a>0&&i-a<=0?(n.scrollTop(0),w(e)):a<0&&n.get(0).scrollHeight-n.scrollTop()+a<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(e))}),$(a),a.on("keyup-change input paste",this.bind(this.updateResults)),a.on("focus",function(){a.addClass("select2-focused")}),a.on("blur",function(){a.removeClass("select2-focused")}),this.dropdown.on("mouseup",c,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==o.maximumInputLength&&this.search.attr("maxlength",o.maximumInputLength);var h=o.element.prop("disabled");h===t&&(h=!1),this.enable(!h);var p=o.element.prop("readonly");p===t&&(p=!1),this.readonly(p),s=s||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo("body");var o={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),o}(),this.autofocus=o.element.prop("autofocus"),o.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",o.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,o=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),o!==t&&(o.container.remove(),o.liveRegion.remove(),o.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:g(e.attr("locked"),"locked")||g(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(o){var n,a,i,d,l=this;if("select"===(n=o.element).get(0).tagName.toLowerCase()&&(this.select=a=o.element),a&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in o)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(o=e.extend({},{populateResults:function(n,a,i){var d,s=this.opts.id,c=this.liveRegion,u=this.opts.collapasable,h=a.length;d=function(n,a,p,m){var v,f,g,C,y,$,k,w,b,S,_;for(v=0,f=(n=o.sortResults(n,a,i)).length;v<f;v+=1)C=!(y=!0===(g=n[v]).disabled)&&s(g)!==t,$=g.children&&g.children.length>0,_=!1,void 0!==g.IsDefault&&g.IsDefault?(_=!0,C=!0):_=!1,void 0!==g.children&&0==g.children.length&&0==_||(k=e("<li></li>"),1==u&&void 0!==m&&1==m&&(void 0!==g.isShow&&1==g.isShow?k.css("display",""):k.css("display","none")),k.addClass("select2-results-dept-"+p),k.addClass("select2-result"),k.addClass(C?"select2-result-selectable":"select2-result-unselectable"),y&&k.addClass("select2-disabled"),$&&k.addClass("select2-result-with-children"),_&&k.addClass("select2-result-with-children select2-hilight-title"),k.addClass(l.opts.formatResultCssClass(g)),k.attr("role","presentation"),w=e(document.createElement("div")),void 0!==g.serviceDisplayClass&&null!=g.serviceDisplayClass&&""!=g.serviceDisplayClass&&k.addClass(g.serviceDisplayClass),w.addClass("select2-result-label"),w.attr("id","select2-result-label-"+r()),w.attr("role","option"),(S=o.formatResult(g,w,i,l.opts.escapeMarkup))!==t&&(w.html(S),k.append(w)),$&&((b=e("<ul></ul>")).addClass("select2-result-sub text-primary"),d(g.children,b,p+1,!0),k.append(b)),k.data("select2-data",g),a.append(k),1==u&&1==$&&(k.off("click.custom"),k.on("click.custom",function(){e(this).find("li").is(":visible")?(e(this).find("li").hide(),e(this).removeClass("parentli-expanded")):(e(this).addClass("parentli-expanded"),e(this).find("li").show())}),1==h&&(k.addClass("parentli-expanded"),k.find("li").show())));c.text(o.formatMatches(n.length))},d(a,n,0)}},e.fn.select2.defaults,o)).id&&(i=o.id,o.id=function(e){return e[i]}),e.isArray(o.element.data("select2Tags"))){if("tags"in o)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+o.element.attr("id");o.tags=o.element.data("select2Tags")}if(a?(o.query=this.bind(function(e){var o,a,i,r={results:[],more:!1},d=e.term;i=function(t,o){var n;t.is("option")?e.matcher(d,t.text(),t)&&o.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){i(t,n.children)}),n.children.length>0&&o.push(n))},o=n.children(),this.getPlaceholder()!==t&&o.length>0&&(a=this.getPlaceholderOption())&&(o=o.not(a)),o.each2(function(e,t){i(t,r.results)}),e.callback(r)}),o.id=function(e){return e.id}):"query"in o||("ajax"in o?((d=o.element.data("ajax-url"))&&d.length>0&&(o.ajax.url=d),o.query=x.call(o.element,o.ajax)):"data"in o?o.query=P(o.data):"tags"in o&&(o.query=D(o.tags),o.createSearchChoice===t&&(o.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),o.initSelection===t&&(o.initSelection=function(t,n){var a=[];e(C(t.val(),o.separator)).each(function(){var t={id:this,text:this},n=o.tags;e.isFunction(n)&&(n=n()),e(n).each(function(){if(g(this.id,t.id))return t=this,!1}),a.push(t)}),n(a)}))),"function"!=typeof o.query)throw"query function not defined for Select2 "+o.element.attr("id");if("top"===o.createSearchChoicePosition)o.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===o.createSearchChoicePosition)o.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof o.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return o},monitorSource:function(){var e,o,n=this.opts.element;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),e=this.bind(function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var o=n.prop("readonly");o===t&&(o=!1),this.readonly(o),b(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(I(this.opts.containerCssClass)),b(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(this.opts.dropdownCssClass))}),n.on("propertychange.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),(o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new o(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var o=e.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(o),!o.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,o,n,a,i,r=this.dropdown,d=this.container.offset(),l=this.container.outerHeight(!1),c=this.container.outerWidth(!1),u=r.outerHeight(!1),h=e(window),p=h.width(),m=h.height(),v=h.scrollLeft()+p,f=h.scrollTop()+m,g=d.top+l,C=d.left,y=g+u<=f,$=d.top-u>=h.scrollTop(),k=r.outerWidth(!1),w=C+k<=v;r.hasClass("select2-drop-above")?(o=!0,!$&&y&&(n=!0,o=!1)):(o=!1,!y&&$&&(n=!0,o=!0)),n&&(r.hide(),d=this.container.offset(),l=this.container.outerHeight(!1),c=this.container.outerWidth(!1),u=r.outerHeight(!1),v=h.scrollLeft()+p,f=h.scrollTop()+m,g=d.top+l,w=(C=d.left)+(k=r.outerWidth(!1))<=v,r.show()),this.opts.dropdownAutoWidth?(i=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(k=r.outerWidth(!1)+(i.scrollHeight===i.clientHeight?0:s.width))>c?c=k:k=c,w=C+k<=v):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(g-=(t=this.body().offset()).top,C-=t.left),w||(C=d.left+this.container.outerWidth(!1)-k),a={left:C,width:c},o?(a.top=d.top-u,a.bottom="auto",this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above")):(a.top=g,a.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),a=e.extend(a,I(this.opts.dropdownCss)),r.css(a)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var t,o=this.containerId,n="scroll."+o,a="resize."+o,i="orientationchange."+o;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(o){m(t);var n,a=e("#select2-drop");a.length>0&&((n=a.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),"undefined"!=typeof _common&&void 0!==_common.closeServiceSelection&&_common.closeServiceSelection(),n.close(),o.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){e(this).on(a+" "+n+" "+i,function(e){r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,o="scroll."+t,n="resize."+t,a="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(o).off(n).off(a)}),this.clearDropdownAlignmentPreference(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close")),setTimeout(function(){e("#select2-drop-mask").hide()},400)}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return 0==this.opts.maximumSelectionSize?e("#select2-drop ul.select2-results").parent().addClass("selectbox-hide"):e("#select2-drop ul.select2-results").parent().removeClass("selectbox-hide"),I(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,o,n,a,i,r,d,l=this.results;(o=this.highlight())<0||(0!=o?(t=this.findHighlightableChoices().find(".select2-result-label"),a=(n=e(t[o])).offset().top+n.outerHeight(!0),o===t.length-1&&(d=l.find("li.select2-more-results")).length>0&&(a=d.offset().top+d.outerHeight(!0)),a>(i=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(a-i)),(r=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+r)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var o=this.findHighlightableChoices(),n=this.highlight();n>=-1&&n<o.length;){var a=e(o[n+=t]);if(a.hasClass("select2-result-selectable")&&!a.hasClass("select2-disabled")&&!a.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var o,n,a=this.findHighlightableChoices();if(0===arguments.length)return f(a.filter(".select2-highlighted")[0],a.get());t>=a.length&&(t=a.length-1),t<0&&(t=0),this.removeHighlight(),(o=e(a[t])).addClass("select2-highlighted"),this.ensureHighlightVisible(),this.liveRegion.text(o.text()),(n=o.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var o=e(t.target).closest(".select2-result-selectable");if(o.length>0&&!o.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(o))}else 0==o.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),o=e.parent().find("li.select2-more-pager"),n=this.resultsPage+1,a=this,i=this.search.val(),r=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:i,page:n,context:r,matcher:this.opts.matcher,callback:this.bind(function(d){a.opened()&&(a.opts.populateResults.call(this,e,d.results,{term:i,page:n,context:r}),a.postprocessResults(d,!1,!1),null!=o&&o.appendTo(e.parent()).text(I(a.opts.formatPager,n+1)),!0===d.more?(t.detach().appendTo(e).text(I(a.opts.formatLoadMore,n+1)),window.setTimeout(function(){a.loadMoreIfNeeded()},10)):t.remove(),a.positionDropdown(),a.resultsPage=n,a.context=d.context,this.opts.element.trigger({type:"select2-loaded",items:d}))})}))},tokenize:function(){},updateResults:function(o){var n,a,i,r=this.search,d=this.results,l=this.opts,s=this,c=r.val(),u=e.data(this.container,"select2-last-term");if((!0===o||!u||!g(c,u))&&(e.data(this.container,"select2-last-term",c),!0===o||!1!==this.showSearchInput&&this.opened())){i=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&T(l.formatSelectionTooBig,"formatSelectionTooBig"))))return r.val().length<l.minimumInputLength?(T(l.formatInputTooShort,"formatInputTooShort")?(m("<li class='select2-no-results'>"+I(l.formatInputTooShort,r.val(),l.minimumInputLength)+"</li>"),e(".select2-more-pager").remove()):m(""),void(o&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&r.val().length>l.maximumInputLength?T(l.formatInputTooLong,"formatInputTooLong")?m("<li class='select2-no-results'>"+I(l.formatInputTooLong,r.val(),l.maximumInputLength)+"</li>"):m(""):(l.formatSearching&&this.findHighlightableChoices().length<=10&&m("<li class='select2-searching'>"+I(l.formatSearching)+"</li>"),r.addClass("select2-active"),this.removeHighlight(),(a=this.tokenize())!=t&&null!=a&&r.val(a),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var a;if(i==this.queryCount)if(this.opened()){if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&(a=this.opts.createSearchChoice.call(s,r.val(),n.results))!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)&&0===e(n.results).filter(function(){return g(s.id(this),s.id(a))}).length&&this.opts.createSearchChoicePosition(n.results,a),0===n.results.length&&T(l.formatNoMatches,"formatNoMatches"))return"s2id_txtSearchServiceMain"==this.containerId||"s2id_ddlLiveStreamClass"==this.containerId||"s2id_ddlServices"==this.containerId||"s2id_txtMobileService"==this.containerId?m(I(l.formatEmptyMessage,r.val())):m("<li class='select2-no-results'>"+I(l.formatNoMatches,r.val())+"</li>"),void d.parent().find("li.select2-more-pager").remove();d.empty(),d.parent().find("li.select2-more-pager").remove(),s.opts.populateResults.call(this,d,n.results,{term:r.val(),page:this.resultsPage,context:null}),!0===n.more&&T(l.formatLoadMore,"formatLoadMore")&&(d.append("<li class='select2-more-results'>"+s.opts.escapeMarkup(I(l.formatLoadMore,this.resultsPage))+"</li>"),d.parent().append("<li class='select2-more-pager'>"+s.opts.escapeMarkup(I(l.formatPager,this.resultsPage))+"</li>"),window.setTimeout(function(){s.loadMoreIfNeeded()},10)),this.postprocessResults(n,o),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")})})));m("<li class='select2-selection-limit'>"+I(l.formatSelectionTooBig,h)+"</li>")}function p(){r.removeClass("select2-active"),s.positionDropdown(),d.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?s.liveRegion.text(d.text()):s.liveRegion.text(s.opts.formatMatches(d.find(".select2-result-selectable").length))}function m(e){d.html(e),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,o=e[0],n=e.val().length;e.focus(),(o.offsetWidth>0||o.offsetHeight>0)&&o===document.activeElement&&(o.setSelectionRange?o.setSelectionRange(n,n):o.createTextRange&&((t=o.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var o=this.highlight(),n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");n?(this.highlight(o),this.onSelect(n,e)):e&&e.noFocus&&this.close(),"s2id_txtSearchServiceMain"!=this.containerId&&"s2id_ddlLiveStreamClass"!=this.containerId&&"s2id_ddlServices"!=this.containerId&&"s2id_txtMobileService"!=this.containerId||e==t&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var o=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&o||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(o.text())&&""===o.val())return o}},initContainerWidth:function(){var o=function(){var o,n,a,i,r;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((o=this.opts.element.attr("style"))!==t)for(i=0,r=(n=o.split(";")).length;i<r;i+=1)if(null!==(a=n[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&a.length>=1)return a[1];return"resolve"===this.opts.width?(o=this.opts.element.css("width")).indexOf("%")>0?o:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==o&&this.container.css("width",o)}}),n=o.extend({createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search' style='display:none;'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='false' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input text-primary' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this._super.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var o,n,a;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this._super.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(o=this.search.get(0)).createTextRange?((n=o.createTextRange()).collapse(!1),n.select()):o.setSelectionRange&&(a=this.search.val().length,o.setSelectionRange(a,a)),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this._super.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this._super.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this._super.apply(this,arguments)},initContainer:function(){var t,o,n=this.container,a=this.dropdown,i=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+i),this.focusser.attr("aria-labelledby","select2-chosen-"+i),this.results.attr("id","select2-results-"+i),this.search.attr("aria-owns","select2-results-"+i),this.focusser.attr("id","s2id_autogen"+i),o=e("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(o.text()).attr("for",this.focusser.attr("id"));var d=this.opts.element.attr("title");this.opts.element.attr("title",d||o.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled())if(e.which!==h.PAGE_UP&&e.which!==h.PAGE_DOWN)switch(e.which){case h.UP:case h.DOWN:return this.moveHighlight(e.which===h.UP?-1:1),void w(e);case h.ENTER:return this.selectHighlighted(),void w(e);case h.TAB:return void this.selectHighlighted({noFocus:!0});case h.ESC:return this.cancel(e),void w(e)}else w(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==h.TAB&&!h.isControl(e)&&!h.isFunctionKey(e)&&e.which!==h.ESC){if(!1!==this.opts.openOnEnter||e.which!==h.ENTER){if(e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void w(e)}return e.which==h.DELETE||e.which==h.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(e)):void 0}w(e)}})),$(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),function(e){e.preventDefault(),e.stopImmediatePropagation()}(e),this.close(),this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(o){m(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(o)})),a.on("mousedown touchstart",this.bind(function(){this.search.focus()})),t.on("focus",this.bind(function(e){w(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var o=this.selection.data("select2-data");if(o){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var a=this.getPlaceholderOption();this.opts.element.val(a?a.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(o),choice:o}),this.triggerChange({removed:o}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(o){o!==t&&null!==o&&(e.updateSelection(o),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(o,e.search.val()))})}},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this._super.apply(this,arguments),o=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(o.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(o,n){var a=o.val(),i=null;t.query({matcher:function(e,o,n){var r=g(a,t.id(n));return r&&(i=n),r},callback:e.isFunction(n)?function(){n(i)}:e.noop})}),t},getPlaceholder:function(){if(this.select&&this.getPlaceholderOption()===t)return t;this._super.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,o){var n=0,a=this;if(this.findHighlightableChoices().each2(function(e,t){if(g(a.id(t.data("select2-data")),a.opts.element.val()))return n=e,!1}),!1!==o&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var i=this.opts.minimumResultsForSearch;i>=0&&this.showSearch(F(e.results)>=i)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var o=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),g(o,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var o,n,a=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),a.empty(),null!==e&&(o=this.opts.formatSelection(e,a,this.opts.escapeMarkup)),o!==t&&a.append(o),(n=this.opts.formatSelectionCssClass(e,a))!==t&&a.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,o=!1,n=null,a=this,i=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(o=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=a.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),o&&this.triggerChange({added:n,removed:i});else{if(!e&&0!==e)return void this.clear(o);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){a.opts.element.val(e?a.id(e):""),a.updateSelection(e),a.setPlaceholder(),o&&a.triggerChange({added:e,removed:i})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var o,n=!1;if(0===arguments.length)return(o=this.selection.data("select2-data"))==t&&(o=null),o;arguments.length>1&&(n=arguments[1]),e?(o=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:o})):this.clear(n)}}),a=o.extend({createContainer:function(){var t="<input type='text' autocomplete='true' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input standrad-maphour-block'";return t+=">",e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field other'>","    <label for='' class='select2-offscreen' aria-hidden='true'></label>",t,"  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var t=this._super.apply(this,arguments),o=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(o.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(o,n){var a=C(o.val(),t.separator),i=[];t.query({matcher:function(o,n,r){var d=e.grep(a,function(e){return g(e,t.id(r))}).length;return d&&i.push(r),d},callback:e.isFunction(n)?function(){for(var e=[],o=0;o<a.length;o++)for(var r=a[o],d=0;d<i.length;d++){var l=i[d];if(g(r,t.id(l))){e.push(l),i.splice(d,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this._super.apply(this,arguments)},initContainer:function(){var t,o=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(o);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+r()),this.search.attr("role","combobox"),this.search.attr("aria-autocomplete","list"),this.search.attr("aria-expanded","false"),this.search.attr("aria-controls","select2-drop"),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(o){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),a=n.prev(".select2-search-choice:not(.select2-locked)"),i=n.next(".select2-search-choice:not(.select2-locked)"),r=function(t){var o=0,n=0;if("selectionStart"in(t=e(t)[0]))o=t.selectionStart,n=t.selectionEnd-o;else if("selection"in document){t.focus();var a=document.selection.createRange();n=document.selection.createRange().text.length,a.moveStart("character",-t.value.length),o=a.text.length-n}return{offset:o,length:n}}(this.search);if(n.length&&(o.which==h.LEFT||o.which==h.RIGHT||o.which==h.BACKSPACE||o.which==h.DELETE||o.which==h.ENTER)){var d=n;return o.which==h.LEFT&&a.length?d=a:o.which==h.RIGHT?d=i.length?i:null:o.which===h.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),d=a.length?a:i):o.which==h.DELETE?this.unselect(n.first())&&(this.search.width(10),d=i.length?i:null):o.which==h.ENTER&&(d=null),this.selectChoice(d),w(o),void(d&&d.length||this.open())}if((o.which===h.BACKSPACE&&1==this.keydowns||o.which==h.LEFT)&&0==r.offset&&!r.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void w(o);if(this.selectChoice(null),this.opened())switch(o.which){case h.UP:case h.DOWN:return this.moveHighlight(o.which===h.UP?-1:1),void w(o);case h.ENTER:if(this.selectHighlighted(),"s2id_txtSearchServiceMain"==this.containerId&&"undefined"!=typeof _common&&void 0!==_common.GetChoiceForSeleect2){var l=_common.GetChoiceForSeleect2(e("#txtSearchServiceMain")).text;void 0!==l&&""!=l&&"undefined"!=typeof _common&&void 0!==_common.SetLocationBySearch&&_common.SetLocationBySearch(o)}return void w(o);case h.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case h.ESC:return this.cancel(o),void w(o)}if(o.which!==h.TAB&&!h.isControl(o)&&!h.isFunctionKey(o)&&o.which!==h.BACKSPACE&&o.which!==h.ESC){if(o.which===h.ENTER){if(!1===this.opts.openOnEnter)return;if(o.altKey||o.ctrlKey||o.shiftKey||o.metaKey)return}this.open(),o.which!==h.PAGE_UP&&o.which!==h.PAGE_DOWN||w(o),o.which===h.ENTER&&w(o)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",o,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",o,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active vagaro-dropdown-multilayer"),null!=document.getElementById("divLiveStreamLocationSearchPopUp")&&"undefind"!=typeof document.getElementById("divLiveStreamLocationSearchPopUp")&&"block"==document.getElementById("divLiveStreamLocationSearchPopUp").style.display&&this.dropdown.addClass("select-list-popup"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this._super.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(o){o!==t&&null!==o&&(e.updateSelection(o),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),o=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(o>0?o:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this._super.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this._super.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var o=[],n=[],a=this;e(t).each(function(){f(a.id(this),o)<0&&(o.push(a.id(this)),n.push(this))}),t=n,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){a.addSelectedChoice(this)}),a.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,o){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),o&&o.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(o){var n,a,i=!o.locked,r=e("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),d=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=i?r:d,s=this.id(o),c=this.getVal();(n=this.opts.formatSelection(o,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith("<div>"+n+"</div>"),(a=this.opts.formatSelectionCssClass(o,l.find("div")))!=t&&l.addClass(a),i&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),w(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",o),l.insertBefore(this.searchContainer),c.push(s),this.setVal(c)},unselect:function(t){var o,n,a=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(o=t.data("select2-data")){var i=e.Event("select2-removing");if(i.val=this.id(o),i.choice=o,this.opts.element.trigger(i),i.isDefaultPrevented())return!1;for(;(n=f(this.id(o),a))>=0;)a.splice(n,1),this.setVal(a),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(o),choice:o}),this.triggerChange({removed:o}),!0}},postprocessResults:function(e,t,o){var n=this.getVal(),a=this.results.find(".select2-result"),i=this.results.find(".select2-result-with-children"),r=this;a.each2(function(e,t){f(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),i.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==o&&("s2id_txtSearchServiceMain"==this.containerId||"s2id_ddlLiveStreamClass"==this.containerId||"s2id_ddlServices"==this.containerId||"s2id_txtMobileService"==this.containerId||r.highlight(0)),!this.opts.createSearchChoice&&!a.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&T(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+I(r.opts.formatNoMatches,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,o,n,a,i=y(this.search);t=function(t){if(!d){var o=t[0].currentStyle||window.getComputedStyle(t[0],null);(d=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:o.fontSize,fontFamily:o.fontFamily,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,textTransform:o.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e("body").append(d)}return d.text(t.val()),d.width()}(this.search)+10,o=this.search.offset().left,(a=(n=this.selection.width())-(o-this.selection.offset().left)-i)<t&&(a=n-i),a<40&&(a=n-i),a<=0&&(a=t),this.search.width(Math.floor(a))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:C(e=this.opts.element.val(),this.opts.separator)},setVal:function(t){var o;this.select?this.select.val(t):(o=[],e(t).each(function(){f(this,o)<0&&o.push(this)}),this.opts.element.val(0===o.length?"":o.join(this.opts.separator)))},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var o=0;o<t.length;o++)for(var n=0;n<e.length;n++)g(this.opts.id(t[o]),this.opts.id(e[n]))&&(t.splice(o,1),o>0&&o--,e.splice(n,1),n--);return{added:t,removed:e}},val:function(o,n){var a,i=this;if(0===arguments.length)return this.getVal();if((a=this.data()).length||(a=[]),!o&&0!==o)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:a}));if(this.setVal(o),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(a,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var o=e.map(t,i.id);i.setVal(o),i.updateSelection(t),i.clearSearch(),n&&i.triggerChange(i.buildChangeDetails(a,i.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],o=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(o.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,o){var n,a,i=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();a=this.data(),t||(t=[]),n=e.map(t,function(e){return i.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),o&&this.triggerChange(this.buildChangeDetails(a,this.data()))}}),i=a.extend({initContainer:function(){this._super.apply(this,arguments),this.search.on("native-change",this.bind(this.triggerChange)).on("input paste",this.bind(function(){this.setVal(this.search.val())}))},clearSearch:function(){},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect&&this.close(),this.triggerChange({added:e}))},addSelectedChoice:function(e){this.setVal(e.text),this.search.val(e.text)},setVal:function(e){this.select?this.select.val(e):this.opts.element.val(e)}}),e.fn.select2=function(){var o,n,a,i,r,d=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search","onSelect"],s=["opened","isFocused","container","dropdown"],c=["val","data"],u={search:"externalSearch"};return this.each(function(){if(0===d.length||"object"==typeof d[0]){if((o=0===d.length?{}:e.extend({},d[0])).element=e(this),o.combobox)return void new window.Select2.class.combobox(o);"select"===o.element.get(0).tagName.toLowerCase()?r=o.element.prop("multiple"):(r=o.multiple||!1,"tags"in o&&(o.multiple=r=!0)),n=r?new window.Select2.class.multi(o):new window.Select2.class.single(o)}else{if("string"!=typeof d[0])throw"Invalid arguments to select2 plugin: "+d;if(f(d[0],l)<0)throw"Unknown method: "+d[0];if(i=t,(n=e(this).data("select2"))===t)return;if("container"===(a=d[0])?i=n.container:"dropdown"===a?i=n.dropdown:(u[a]&&(a=u[a]),i=n[a].apply(n,d.slice(1))),f(d[0],s)>=0||f(d[0],c)&&1==d.length)return!1}}),i===t?this:i},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,o,n){var a=[];return S(e.text,o.term,a,n),a.join("")},formatSelection:function(e,o,n){return e?n(e.text):t},sortResults:function(e,t,o){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,o){return t},formatMatches:function(e){return e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatEmptyMessage:function(){return""},formatInputTooShort:function(e,t){var o=t-e.length;return"Please enter "+o+" or more character"+(1==o?"":"s")},formatInputTooLong:function(e,t){var o=e.length-t;return"Please delete "+o+" character"+(1==o?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatPager:function(e){return""},formatSearching:function(){return"Searching…"},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},collapasable:!1,matcher:function(e,t,o){return v(""+t).toUpperCase().indexOf(v(""+e).toUpperCase())>=0==1&&(void 0!==o&&"object"==typeof o&&(o.isShow=!0),!0)},separator:",",tokenSeparators:[],tokenizer:function(e,o,n,a){var i,r,d,l,s,c=e,u=!1;if(!a.createSearchChoice||!a.tokenSeparators||a.tokenSeparators.length<1)return t;for(;;){for(r=-1,d=0,l=a.tokenSeparators.length;d<l&&(s=a.tokenSeparators[d],!((r=e.indexOf(s))>=0));d++);if(r<0)break;if(i=e.substring(0,r),e=e.substring(r+s.length),i.length>0&&(i=a.createSearchChoice.call(this,i,o))!==t&&null!==i&&a.id(i)!==t&&null!==a.id(i)){for(u=!1,d=0,l=o.length;d<l;d++)if(g(a.id(i),a.id(o[d]))){u=!0;break}u||n(i)}}return c!==e?e:void 0},escapeMarkup:_,blurOnChange:!1,selectOnBlur:!1,selectOnClick:!0,formContainer:"body",adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,o){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:x,local:P,tags:D},util:{debounce:k,markMatch:S,escapeMarkup:_,stripDiacritics:v},class:{abstract:o,single:n,multi:a,combobox:i}}}function m(t){var o=e(document.createTextNode(""));t.before(o),o.before(t),o.remove()}function v(e){var t,o,n,a;if(!e||e.length<1)return e;for(t="",o=0,n=e.length;o<n;o++)a=e.charAt(o),t+=p[a]||a;return t}function f(e,t){for(var o=0,n=t.length;o<n;o+=1)if(g(e,t[o]))return o;return-1}function g(e,o){return e===o||e!==t&&o!==t&&(null!==e&&null!==o&&(e.constructor===String?e+""==o+"":o.constructor===String&&o+""==e+""))}function C(t,o){var n,a,i;if(null===t||t.length<1)return[];for(a=0,i=(n=t.split(o)).length;a<i;a+=1)n[a]=e.trim(n[a]);return n}function y(e){return e.outerWidth(!1)-e.width()}function $(o){var n="keyup-change-value";o.on("keydown",function(){e.data(o,n)===t&&e.data(o,n,o.val())}),o.on("keyup",function(){var a=e.data(o,n);a!==t&&o.val()!==a&&(e.removeData(o,n),o.trigger("keyup-change"))})}function k(e,o,n){var a;return n=n||t,function(){var t=arguments;window.clearTimeout(a),a=window.setTimeout(function(){o.apply(n,t)},e)}}function w(e){e.preventDefault(),e.stopPropagation()}function b(t,o,n){var a,i,r=[];(a=t.attr("class"))&&e((a=""+a).split(" ")).each2(function(){0===this.indexOf("select2-")&&r.push(this)}),(a=o.attr("class"))&&e((a=""+a).split(" ")).each2(function(){0!==this.indexOf("select2-")&&(i=n(this))&&r.push(i)}),t.attr("class",r.join(" "))}function S(e,t,o,n){var a=v(e.toUpperCase()).indexOf(v(t.toUpperCase())),i=t.length;a<0?o.push(n(e)):(o.push(n(e.substring(0,a))),o.push("<span class='select2-match'>"),o.push(n(e.substring(a,a+i))),o.push("</span>"),o.push(n(e.substring(a+i,e.length))))}function _(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function x(o){var n,a=null,i=o.quietMillis||100,r=o.url,d=o.minimumInputLengthForAjaxCall||0,l=this;return function(s){window.clearTimeout(n),n=window.setTimeout(function(){var n=o.data,i=r,c=o.transport||e.fn.select2.ajaxDefaults.transport,u={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||t,dataType:o.dataType||"json"},h=e.extend({},e.fn.select2.ajaxDefaults.params,u);if(n=n?n.call(l,s.term,s.page,s.context):null,i="function"==typeof i?i.call(l,s.term,s.page,s.context):i,a&&"function"==typeof a.abort&&a.abort(),o.params&&(e.isFunction(o.params)?e.extend(h,o.params.call(l)):e.extend(h,o.params)),0==d||d<=n.searchText.length)e.extend(h,{url:i,dataType:o.dataType,data:n,success:function(e){var t=o.results(e,s.page);s.callback(t)}});else{var p=o.results(null,s.page);s.callback(p)}a=c.call(l,h)},i)}}function P(t){var o,n,a=t,i=function(e){return""+e.text};e.isArray(a)&&(a={results:n=a}),!1===e.isFunction(a)&&(n=a,a=function(){return n});var r=a();return r.text&&(i=r.text,e.isFunction(i)||(o=r.text,i=function(e){return e[o]})),function(t){var o,n=t.term,r={results:[]};""!==n?(o=function(a,r){var d,l;if((a=a[0]).children){for(l in d={},a)a.hasOwnProperty(l)&&(d[l]=a[l]);d.children=[],e(a.children).each2(function(e,t){o(t,d.children)}),(d.children.length||t.matcher(n,i(d),a))&&r.push(d)}else t.matcher(n,i(a),a)&&r.push(a)},e(a().results).each2(function(e,t){o(t,r.results)}),t.callback(r)):t.callback(a())}}function D(o){var n=e.isFunction(o);return function(a){var i=a.term,r={results:[]};e(n?o():o).each(function(){var e=this.text!==t,o=e?this.text:this;(""===i||a.matcher(i,o))&&r.results.push(e?this:{id:this,text:this})}),a.callback(r)}}function T(t,o){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(o+" must be a string, function, or falsy value")}function I(t){if(e.isFunction(t)){var o=Array.prototype.slice.call(arguments,1);return t.apply(null,o)}return t}function F(t){var o=0;return e.each(t,function(e,t){t.children?o+=F(t.children):o++}),o}}(jQuery);var NoOfLoginAttempt=0,NoOfLoginAttemptemail=0,fpDeviceId="",PageType="",isWindowsPhone=navigator.userAgent.match(/windows phone/i)||!1,AndroidMobile=null!=navigator.userAgent.match(/Android/i)&&null!=navigator.userAgent.match(/Mobile/i)&&null==navigator.userAgent.match(/Windows/i),isiPhone=null!=navigator.userAgent.match(/iphone/i);_twoFactor={isMobileDevice:0==(/iPad/.test(navigator.userAgent)&&!window.MSStream)&&(isiPhone||isWindowsPhone||AndroidMobile),WillDoLater:"I’ll do this later",Model:{isFromInvalidEmailCell:!1,DialingCode:""},PageType:{BusinessSignup:"BusinessSignup",ProfilePage:"ProfilePage",CustomerSignup:"CustomerSignup",CustomerSignIn:"CustomerSignIn",MultiLocation:"MultiLocation",PaymentMethods:"PaymentMethods",CovidClean:"CovidClean",ShoppingBag:"ShoppingBag"},ApiURLEnum:{TwoFactorAuthenticationCustomer:"websiteapi/homepage/twofactorauthenticationcustomer",AddBusinessTwoFactorAuthentication:"addbusiness/twofactorauthentication",SaveFilterrequestForCardValidate:"websiteapi/homepage/savefilterrequestforcardvalidate",GetLogDataonBackClick:"addbusiness/getlogdataonbackclick"},AuthCodeReceiveMode:{Email:1,Cell:2,EmailAndCell:3},EmailAndCell2FScreen:{None:0,EmailOrPhone:1,EmailAndPhone:2,EmailOrPhoneNew:3},VarificationType:{None:0,Email:1,Cell:2,EmailAndCell:3,EmailOrPhone:4},ScreenType:{EmailInput:1,EmailVerify:2,EmailInput:3,EmailVerify:4,SuccessScreen:5},ValidationMessages:{FailedErrorMessage:"Something went wrong, please try again.",FailedUserSaveMsg:"User detail not saved",InvalidEmailIdMsg:"Email address is invalid. Please enter valid email address."},SuccessMessage:{EmailVerified:"Email verified",PhoneVerified:"Mobile number verified",ResendCode:"New verification code sent."},AmplitudeEvent:{SignupEmailVerificationTriggered:53,SignupPhoneVerificationTriggered:54,SignupStep1Completed:55,SignupVerificationTriggered:106},FailOTPMessage:function(e,t=!1){if(t)return void 0!==e&&null!=e&&""!=e?"Please contact support at "+e+" or support@vagaro.com.":"Please contact support at support@vagaro.com.";var o='<a href="mailto:support@vagaro.com" class="questions link" style="font-size:14px"> support@vagaro.com</a>';return void 0!==e&&null!=e&&""!=e?'Please contact support at <a href="tel:'+e+'" class="questions link" style="font-size:14px">'+e+"</a> or "+o+".":"Please contact support at "+o+"."},LoadTwoFactorControlForInput:function(e){PageType=currentPage;var t={UserControlPath:"~/UserControls/ucTwoFactor.ascx",PageNamePath:"~/detail1.aspx",isRemoveFormTag:!0,Parameters:{}},o=new vagaro.ajax;o.datamodel.Token="websiteapi/homepage/loadusercontrol",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(t){if($("#dvtwostepemailcodeinfo").html(""),$("#dvtwostepemailcodeinfo").append(t),"undefined"!=typeof getCookie&&"undefined"!=typeof ProximityCookieName&&null!=typeof ProximityCookieName&&""!=typeof ProximityCookieName&&(cookie=getCookie(ProximityCookieName)),twoFactorCellPhone=$("#txtCellInputCode").PhonePlugin({UserRole:"1"==e.UserType?2:1,IsPhoneNoRequire:!0,ControlText:"Mobile Phone",CountryId:parseInt(e.CountryID),CurrentLocationCountryID:"undefined"!=typeof cookie&&null!=cookie?parseInt(cookie.countryid):1}),_twoFactor.isMobileDevice?$("input[type=tel]").attr("autocomplete","one-time-code"):$("input[type=tel]").attr("autocomplete","off"),currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#divtwofactorauthentication .modal-window").addClass("myaccount-popup");else if(currentPage==_twoFactor.PageType.BusinessSignup){var o=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();(null!=o&&/com.vagaro.iospro/i.test(o)||/com.vagaro.androidpro/i.test(o))&&$(".previous-btn").hide()}else $("#divtwofactorauthentication .modal-window").removeClass("myaccount-popup");e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email||e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.EmailAndCell?_twoFactor.AppendEmailInputScreen(e):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellInputScreen(e)},o.datamodel.data=t,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()},SendTowFactorAuthenticationCode:function(e){PageType=currentPage;var t={UserControlPath:"~/UserControls/ucTwoFactor.ascx",PageNamePath:"~/detail1.aspx",isRemoveFormTag:!0,Parameters:{}},o=new vagaro.ajax;o.datamodel.Token="websiteapi/homepage/loadusercontrol",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(t){try{if(currentPage==_twoFactor.PageType.BusinessSignup){vm.CurrentstepsCompleted=_twoFactor.AmplitudeEvent.SignupVerificationTriggered;var o={},n=JSON.parse(localStorage.getItem("BusinessSignupStep1Data"));if(o.FirstName=n.firstName,o.LastName=n.lastName,o.UserId=n.userId,o.Email=n.email,o.Step=_twoFactor.AmplitudeEvent.SignupVerificationTriggered,o.BusinessName=n.businessname,o.UserName=localStorage.getItem("eventusername"),o.PageURL=window.location.href,o.PromoCode=n.promotioncode,o.Address1=n.businessaddress+","+n.city+","+n.statename+","+n.businesszip,o.Address2=n.suit,o.Phone=n.phone,o.BusinessPhone=n.OwnerPhone,o.SignupType=n.userType,o.HearAboutVagaro=n.aboutyou,o.Licence=localStorage.getItem("NoOfLicences"),o.City=n.city,o.State=n.statename,o.Country=n.Country,"0"==n.IsMobileServiceMandatory?o.MobileService="PhysicalLocation":"1"==n.IsMobileServiceMandatory?o.MobileService="MobileBusiness":o.MobileService="Both",o.UserAgent=null!=navigator.userAgent.toLowerCase()?navigator.userAgent.toLowerCase():"","undefined"!=typeof amplitude)o.AmplitudeDeviceId=amplitude.getInstance().getDeviceId();else try{o.AmplitudeDeviceId=vm.GetAmplitudeDeviceId()}catch(e){o.AmplitudeDeviceId=""}var a={};a.AddLogInAmplitude=o,vm.AjaxOld("AddLogInAmplitudeV2",a,vm.AddLogInAmplitudeSuccess,vm.AddLogInAmplitudeSuccessFail)}}catch(e){console.log(e)}if($("#dvtwostepemailcodeinfo").html(""),$("#dvtwostepemailcodeinfo").append(t),"undefined"!=typeof getCookie&&"undefined"!=typeof ProximityCookieName&&null!=typeof ProximityCookieName&&""!=typeof ProximityCookieName&&(cookie=getCookie(ProximityCookieName)),twoFactorCellPhone=$("#txtCellInputCode").PhonePlugin({UserRole:1,IsPhoneNoRequire:!0,ControlText:"Mobile Phone",CountryId:parseInt(e.CountryID),CurrentLocationCountryID:parseInt(e.CountryID)}),_twoFactor.isMobileDevice?$("input[type=tel]").attr("autocomplete","one-time-code"):$("input[type=tel]").attr("autocomplete","off"),currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#divtwofactorauthentication").removeAttr("style");else if(currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup){if(currentPage==_twoFactor.PageType.CustomerSignup&&$(".signup-loader-height").length>0){var i=e.authenticationMode==_twoFactor.AuthCodeReceiveMode.Cell?"phone":"email";$(".signup-loader-height").addClass(i)}currentPage==_twoFactor.PageType.CustomerSignup&&(_twoFactor.isMobileDevice&&$("#btnCreateAccount",parent.document).hide(),$("#iFrameSignUp",parent.document).parents().find("body").removeClass("signupiframe"));var r=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();(null!=r&&/customerios/i.test(r)||/customerandroid amazon/i.test(r)||/customerandroid/i.test(r)||/com.vagaro.iospro/i.test(r)||/com.vagaro.androidpro/i.test(r))&&$(".previous-btn").hide()}else $("#divtwofactorauthentication .modal-window").removeClass("myaccount-popup");_twoFactor.SendTwoFactorCode(e)},o.datamodel.data=t,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()},SendTwoFactorCode:function(e){if(e.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),currentPage==_twoFactor.PageType.BusinessSignup&&$("#AuthEmailNextbtn").length>0&&$("#AuthEmailNextbtn").addClass("flamingo-button").text("Next"),currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.MultiLocation){var t=new vagaro.ajax;e.EmailCellAppSetting=$("#hdnEmailAndCell2FScreen").val(),e.IsTwoFactorSignupLoadData=currentPage==_twoFactor.PageType.BusinessSignup,currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.MultiLocation?t.datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication:(currentPage==_twoFactor.PageType.CustomerSignIn&&$("#hdnUserType").length>0&&(e.UserType=$("#hdnUserType").val()),t.datamodel.Token=_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer),t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=function(t){if(void 0!==t&&null!=t)if(t.IsAlreadyVarified&&currentPage!=_twoFactor.PageType.CustomerSignup)currentPage==_twoFactor.PageType.BusinessSignup?(ShowLoader(!1),vm.SkipTwoFactorStep()):currentPage==_twoFactor.PageType.CustomerSignIn&&(ShowLoadingPanelLogin(!1),isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||SkipTwoFactoFromSignIn());else{if(NoOfLoginAttempt=t.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=t.TwoFactorRequest,currentPage==_twoFactor.PageType.CustomerSignup?t.formattedPhone=$.trim($("#txtCell").val()):currentPage==_twoFactor.PageType.BusinessSignup?t.formattedPhone=$.trim($("#txtOwnerPhone").val()):currentPage==_twoFactor.PageType.CustomerSignIn?t.formattedPhone=$.trim($("#txtCellInputCode").val()):currentPage==_twoFactor.PageType.MultiLocation&&(t.formattedPhone=$.trim($("#txtTelephone").val())),t.IsSucess)void 0!==t.WidgetUserID&&null!=t.WidgetUserID&&""!=t.WidgetUserID&&(widgetcookievalue=t.WidgetUserID),e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell?_twoFactor.AppendCellScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.EmailAndCell&&_twoFactor.AppendEmailScreen(t);else if(currentPage==_twoFactor.PageType.BusinessSignup)if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){var o={};isNullOrUndefineOrBlank(fpDeviceId)||(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=$("#txtEmail").val(),o.UserEmail=$("#txtEmail").val(),o.State=vm.addressData.state,o.City=vm.addressData.city,o.Country=$("#ddlcountry").val(),o.NoofAttempt=vm.NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName=vm.deviceFrom;var n=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");2==o.Country&&0==n[0]?o.OwnersPhone=n.substring(1):o.OwnersPhone=n,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(o),_twoFactor.showErrorDiv(e.AuthenticationMode,!0),vm.resetTimer=!1}else{var a=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/signup-1";window.setTimeout(function(){window.location.href=a},4300)}else if(currentPage==_twoFactor.PageType.CustomerSignup)if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){$("#hdnIsBlocked").val(1),IsBlocked=!0,_twoFactor.showErrorDiv(twoStepEmail.AuthenticationMode),o={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(o.UserAgent=navigator.userAgent,o.VisitorID=$("#fpId").val()):(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=$("#txtEmail").val(),o.UserEmail=$("#txtEmail").val(),o.Country=$("#divCountryCode").attr("data-countryid"),o.NoofAttempt=NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName="";var i=$("#txtCell").val().replace(/([()-\s])+/g,"");2==o.Country&&0==i[0]?o.OwnersPhone=i.substring(1):o.OwnersPhone=i,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(o),isResetTimer=!1}else window.setTimeout(function(){$("#divAuth").hide(),$("#pnlSignup").show(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").show()},4300);else if(currentPage==_twoFactor.PageType.CustomerSignIn)if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){$("#hdnIsBlocked").val(1),IsBlocked=!0,_twoFactor.showErrorDiv(twoStepEmail.AuthenticationMode),o={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(o.UserAgent=navigator.userAgent,o.VisitorID=$("#fpId").val()):(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),o.UserEmail=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),o.Country="5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"),o.NoofAttempt=NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName="";var r=isNullOrUndefineOrBlank(userccattemptdata.PhoneNo)?$("#txtCellInputCode").val().replace(/([()-\s])+/g,""):$.trim(userccattemptdata.PhoneNo);2==o.Country&&0==r[0]?o.OwnersPhone=r.substring(1):o.OwnersPhone=r,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(o),isResetTimer=!1}else window.setTimeout(function(){},4300);currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.MultiLocation?ShowLoader(!1):ShowLoadingPanelLogin(!1)}else currentPage==_twoFactor.PageType.BusinessSignup?ShowLoader(!1):ShowLoadingPanelLogin(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.datamodel.data=e,t.datamodel.Error=function(){currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.Post()}else currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||($("#hdnUserType").length>0&&(e.UserType=$("#hdnUserType").val()),e.EmailCellAppSetting=currentPage!=_twoFactor.PageType.ProfilePage||"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType?$("#hdnEmailAndCell2FScreenVPL").val():$("#hdnEmailAndCell2FScreen").val(),(t=new vagaro.ajax).datamodel.Token=currentPage==_twoFactor.PageType.ProfilePage?ApiURLEnumMyAccount.TwoFactorAuthenticationCustomer:_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=function(t){if(void 0!==t&&null!=t)if(t.IsAlreadyVarified)currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?_myAccount.SaveVPLUSerDetailProfile():_myAccount.SaveProfile():currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile();else{if(NoOfLoginAttempt=t.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=t.TwoFactorRequest,currentPage==_twoFactor.PageType.ProfilePage?t.formattedPhone=MyAccountMobilePhone.getphoneformat(t.cellDisplay,e.CountryID):t.formattedPhone=$.trim($("#txtCell").val()),t.IsSucess)$("#divtwofactorauthentication").modal("show"),$("#divtwofactorauthentication .modal-backdrop").css("pointer-events","none"),$("#AuthCellBackbtn").text("Close"),$("#AutCellhBackbtn").text("Close"),$("#closed").show(),$("#divtwofactorauthentication").addClass("mobile-popup-myaccount"),$("#mobile-popup-myaccount-inner").addClass("mobile-popup-myaccount-inner"),$("#divModalWindow").addClass("myaccount-popup"),e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell?_twoFactor.AppendCellScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.EmailAndCell&&_twoFactor.AppendEmailScreen(t);else{if($("#divtwofactorauthentication").modal("show"),NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val()){var o={};isNullOrUndefineOrBlank(fpDeviceId)||(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=$("#txtEmail").val(),o.UserEmail=$("#txtEmail").val(),o.State=$("#txtState").val(),o.City=$("#txtCity").val(),o.Country=$("#ddlcountry").val(),o.NoofAttempt=NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName="";var n=$("#txtCell").val().replace(/([()-\s])+/g,"");2==o.Country&&0==n[0]?o.OwnersPhone=n.substring(1):o.OwnersPhone=n,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,currentPage==_twoFactor.PageType.ProfilePage||(o.UserID=parseInt(UserID)),_twoFactor.SaveFilterRequestForCardValidate(o),$("#divtwofactorauthentication").modal("show"),_twoFactor.showErrorDiv(e.AuthenticationMode,!0)}$("#divtwofactorauthentication .modal-backdrop").css("pointer-events","none")}ShowLoader(!1)}else ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.datamodel.data=e,t.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.Post())},SendTwoFactorCodeForCell:function(e,t=!1){if(currentPage==_twoFactor.PageType.BusinessSignup&&$("#AuthCellNextbtn").length>0&&$("#AuthCellNextbtn").addClass("flamingo-button").text("Next"),e.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),"undefined"!=typeof ShowLoader&&ShowLoader(!0),currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation)e.EmailCellAppSetting=$("#hdnEmailAndCell2FScreen").val(),e.IsTwoFactorSignupLoadData=currentPage==_twoFactor.PageType.BusinessSignup,(o=new vagaro.ajax).datamodel.Token=currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.MultiLocation?_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication:_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(o){if("undefined"!=typeof ShowLoader&&ShowLoader(!0),void 0!==o&&null!=o)if(o.formattedPhone=e.formattedPhone,currentPage==_twoFactor.PageType.BusinessSignup)if(3==o.IsAlreadyVarified)ShowLoader(!1),vm.SkipTwoFactorStep();else{if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else{if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(e.AuthenticationMode);var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var a=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");return 2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1)}if(currentPage==_twoFactor.PageType.BusinessSignup){var i=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/signup-1";window.setTimeout(function(){window.location.href=i},4300)}}ShowLoader(!1)}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)void 0!==o.WidgetUserID&&null!=o.WidgetUserID&&""!=o.WidgetUserID&&(widgetcookievalue=o.WidgetUserID),e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(e.AuthenticationMode),n={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(n.UserAgent=navigator.userAgent,n.VisitorID=$("#fpId").val()):(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.Country=$("#divCountryCode").attr("data-countryid"),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="";var r=$("#txtCell").val().replace(/([()-\s])+/g,"");return 2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(n),isResetTimer=!1,void ShowLoadingPanelLogin(!1)}ShowLoadingPanelLogin(!1)}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e.AuthenticationMode),n={},isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),n.UserEmail=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),n.Country="5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"),n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",a=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$("#txtCellInputCode").val().replace(/([()-\s])+/g,""):$.trim(userccattemptdata.EmailId),2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoadingPanelLogin(!1);ShowLoadingPanelLogin(!1)}else currentPage==_twoFactor.PageType.MultiLocation&&(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess&&(e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t)),ShowLoader(!1));else currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!1):currentPage==_twoFactor.PageType.BusinessSignup&&ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.datamodel.data=e,o.datamodel.Error=function(){currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){var o;e.EmailCellAppSetting=currentPage!=_twoFactor.PageType.ProfilePage||"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType?$("#hdnEmailAndCell2FScreenVPL").val():$("#hdnEmailAndCell2FScreen").val(),(o=new vagaro.ajax).datamodel.Token=currentPage==_twoFactor.PageType.ProfilePage?ApiURLEnumMyAccount.TwoFactorAuthenticationCustomer:_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(o){if(void 0!==o&&null!=o)if(currentPage==_twoFactor.PageType.ProfilePage?o.formattedPhone=MyAccountMobilePhone.getphoneformat(o.cellDisplay,twoStepEmail.CountryID):o.formattedPhone=e.formattedPhone,3==o.IsAlreadyVarified)currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?_myAccount.SaveVPLUSerDetailProfile():_myAccount.SaveProfile():currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile();else{if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(e.AuthenticationMode);var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var a=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");return 2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,currentPage==_twoFactor.PageType.ProfilePage||(n.UserID=parseInt(UserID)),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1)}ShowLoader(!1)}else ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()}},AppendEmailInputScreen:function(e){$(".signup-verify").hide(),currentPage==_twoFactor.PageType.CustomerSignIn&&(void 0!==e.emailid&&null!=e.emailid&&""!=e.emailid&&$("#txtEmailInputCode").val(e.emailid),$(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show(),$(".signup-user-found").hasClass("w-hiddenstrict")||($(".signup-user-found").addClass(" w-hiddenstrict"),$(".sign-in-btn-divinner").removeClass(" w-hiddenstrict"),$(".sign-in-logo-div").removeClass(" w-hiddenstrict")),ShowLoadingPanelLogin(!1)),$("#dvAddEmailCode").show(),$("#txtEmailInputCode").focus()},AppendCellInputScreen:function(e,t=!1){$(".signup-verify").hide(),currentPage==_twoFactor.PageType.CustomerSignIn&&(void 0!==e.phone&&null!=e.phone&&""!=e.phone&&($("#txtCellInputCode").val(e.phone),setTimeout(function(){$("#txtCellInputCode").blur()},5e3),_twoFactor.Phone_format("#txtCellInputCode","#dvCellInputCodeError")),$(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),void 0!==e.CountryID&&""!=e.CountryID&&($("#selectedCountrydiv").attr("data-countryId",e.CountryID),_twoFactor.Phone_format("#txtCellInputCode","#dvCellInputCodeError",e.CountryID),2==e.CountryID?$("#selectedCountrydiv").removeClass().addClass("selectedcountry uk-f"):3==e.CountryID?$("#selectedCountrydiv").removeClass().addClass("selectedcountry canada-f"):4==e.CountryID&&$("#selectedCountrydiv").removeClass().addClass("selectedcountry aus-f")),$("#divtwofactorauthentication").show(),$(".signup-user-found").hasClass("w-hiddenstrict")||($(".signup-user-found").addClass(" w-hiddenstrict"),$(".sign-in-btn-divinner").removeClass(" w-hiddenstrict"),$(".sign-in-logo-div").removeClass(" w-hiddenstrict")),ShowLoadingPanelLogin(!1)),$("#dvAddPhoneCode").show(),$("#txtCellInputCode").focus(),t&&currentPage==_twoFactor.PageType.CustomerSignIn&&ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified)),$("#h2VerifyPhone").attr("tabindex",-1).focus()},SendEmailCodeFromInputScreen:function(e=!1){if(e||(e=_twoFactor.validateEmail()),e)if(currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!0):ShowLoader(!0),isNullOrUndefineOrBlank(userccattemptdata.EmailId)||userccattemptdata.EmailId.toLowerCase()==$.trim($("#txtEmailInputCode").val()).toLowerCase())twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmailInputCode").val()),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.SendTwoFactorCode(twoStepEmail);else{var t='"strUserName" :""';t+=',"strEmailID" :"'+$.trim($("#txtEmailInputCode").val())+'"',CallWebServicehed("MySampleService.asmx/CheckUserNameAvailabilityWithEmail",t,function(e){1*e.d==1?(ShowLoader(!1),$("#txtEmailInputCode").addClass("error"),$("#dvEmailInputError").html("This email is being used by an existing Vagaro account.").show()):(twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmailInputCode").val()),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.SendTwoFactorCode(twoStepEmail))},function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)})}$("#txtEmailCode").focus()},SendPhoneCodeFromInputScreen:function(e=!1){if(e||(e=_twoFactor.validatePhone("#txtCellInputCode","#dvCellInputCodeError")),e){currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!0):ShowLoader(!0),twoStepPhone={},twoStepPhone.emailid=$.trim($("#txtEmailInputCode").val());var t={};if(!twoFactorCellPhone.validatePhoneNumber(!0)){var o=twoFactorCellPhone.getValidateMessage();return 3==o.WarningType?($("#dvCellInputCodeError").html("Phone number should be of 10 digits."),$("#dvCellInputCodeError").show()):1==o.WarningType?($("#dvCellInputCodeError").html("Enter your mobile phone"),$("#dvCellInputCodeError").show()):($("#dvCellInputCodeError").html(o.WarningMessage),$("#dvCellInputCodeError").show()),currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!1):ShowLoader(!1),!1}$("#dvCellInputCodeError").hide(),t=twoFactorCellPhone.getPhoneData(),twoStepPhone.phone=t.phoneNo,twoStepPhone.CountryID=t.countryId,twoStepPhone.DialingCode=t.dialingCode,twoStepPhone.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepPhone.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepPhone.IsFromBusinessSignup=!0,_twoFactor.SendTwoFactorCode(twoStepPhone)}$("#txtCellCode").focus()},AppendEmailScreen:function(e,t){if($(".signup-verify").hide(),$("#dvEmailVerify").show(),currentPage==_twoFactor.PageType.BusinessSignup)$("#spnForMerchantSignup").show(),$("#divBusinessSteps").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show(),vm.isResetTimer=!1;else if(currentPage==_twoFactor.PageType.MultiLocation)$("#divtwofactorauthentication").css("z-index","10001"),$find("mpeNewBusiness").hide(),showLoadingPanel(0),$("#divtwofactorauthentication").show();else if(currentPage==_twoFactor.PageType.CustomerSignup){$("#spnForMerchantSignup").show(),$("#pnlSignup").hide(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").hide(),$("#divAuth").show(),$("#divtwofactorauthentication").show();var o=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");o.length>0&&(o.addClass("email"),o.removeClass("phone"),o.removeClass("success"))}else currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag?$("#verificationDesc").html($("#verificationDesc").html().replace("For your security, Vagaro wants to make sure it’s really you. Enter the sent a 6-digit code we sent to ","Enter the 6-digit code we sent to ")):currentPage==_twoFactor.PageType.CustomerSignIn&&($("#spnForMerchantSignup").hide(),$(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show());$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||currentPage!=_twoFactor.PageType.BusinessSignup&&currentPage!=_twoFactor.PageType.CustomerSignup&&currentPage!=_twoFactor.PageType.MultiLocation?$("#lblEmail").text(e.emailDisplay+". "):($("#verificationTitle").text("Verify Your Email or Mobile Phone"),$("#verificationPara").show(),currentPage==_twoFactor.PageType.CustomerSignup?$("#lblEmailorCell").text($("#txtCell").val()+". "):$("#lblEmailorCell").text(e.formattedPhone+". "),$("#lblEmail").text(e.emailDisplay)),$("#txtEmailCode").focus(),$(".signup-loader-height").length>0&&$(".signup-loader-height").addClass("email")},AppendCellScreen:function(e,t=!1){if($(".signup-verify").hide(),$("#dvPhoneVerify").show(),(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),_twoFactor.CheckDevice(),t&&(currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation?ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified)):currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||(_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?$("#hdnEmailBeforeChange").val($("#paymentmethods #emailid").val()):$("#hdnEmailBeforeChange").val($("#txtEmail").val()))),currentPage==_twoFactor.PageType.BusinessSignup)$("#divBusinessSteps").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show();else if(currentPage==_twoFactor.PageType.CustomerSignup){$("#pnlSignup").hide(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").hide(),$("#divAuth").show(),$("#divtwofactorauthentication").show();var o=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");o.length>0&&(o.addClass("phone"),o.removeClass("email"),o.removeClass("success")),t&&ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified))}else currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag?($("#verificationCell").html($("#verificationCell").html().replace("Next, Verify Your Mobile Phone","Verify Your Mobile Phone")),$("#enterCell").html($("#enterCell").html().replace("Enter the sent a 6-digit code we sent to ","Enter the 6-digit code we sent to "))):currentPage==_twoFactor.PageType.CustomerSignIn&&($(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show());"5"==$("#selectedCountrydiv").attr("data-countryid")||$("#selectedCountrydiv").attr("data-countryid"),$("#lblCell").text(e.formattedPhone),$(".signup-loader-height").length>0&&$(".signup-loader-height").addClass("phone"),$("#txtCellCode").focus()},CheckDevice:function(){var e=navigator.userAgent;return null!=e.match(/(iPhone|iPod)/)||null!=e.match(/BlackBerry/)||null!=e.match(/Silk/)||null!=e.match(/Android/)||null!=e.match(/iPad/)},EmailCodeSuccess:function(e,t=!1){currentPage==_twoFactor.PageType.CustomerSignIn?_twoFactor.AppendCellInputScreen(e,t):_twoFactor.SendTwoFactorCodeForCell(e,t)},CellCodeSuccess:function(e=!1){_twoFactor.ShowFinalSuccessScreen(e)},ShowFinalSuccessScreen:function(e=!1){if($(".signup-verify").hide(),currentPage!=_twoFactor.PageType.BusinessSignup&&($("#AuthSuccessBackbtn").hide(),$("#AuthSuccessNextbtn").text("Done")),currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)_twoFactor.BackFromAuth();else if(currentPage==_twoFactor.PageType.CustomerSignup){var t=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");t.length>0&&(t.removeClass("phone"),t.removeClass("email"),t.addClass("success")),$("#dvSuccessVerify").show()}else{currentPage!=_twoFactor.PageType.BusinessSignup&&$("#dvSuccessVerify").show();var o=null!=navigator.userAgent.toLowerCase()?navigator.userAgent.toLowerCase():"";"undefined"==typeof vgAppicationType||1!=vgAppicationType||isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||isNullOrUndefineOrBlank(_securelogin.AfterSuccessfullLogin)||!(o.indexOf("com.vagaro.customerandroid")>-1||o.indexOf("com.vagaro.customerios")>-1)||setTimeout(function(){SkipTwoFactoFromSignIn()},700)}e?currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation?(currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),currentPage,_twoFactor.PageType.CustomerSignup,ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified))):currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||("undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.EmailVerified),currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?($("#hdnEmailBeforeChange").val($("#paymentmethods #emailid").val()),_myAccount.SaveVPLUSerDetailProfile()):($("#hdnEmailBeforeChange").val($("#txtEmail").val()),_myAccount.SaveProfile()):currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile()):currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation?(currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),currentPage==_twoFactor.PageType.BusinessSignup?(ShowLoader(!0),_twoFactor.SuccessTwoFactor()):ShowHideDoneMessage(_twoFactor.SuccessMessage.PhoneVerified)):currentPage==_twoFactor.PageType.CustomerSignup?ShowHideDoneMessage(_twoFactor.SuccessMessage.PhoneVerified):currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||("undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.PhoneVerified),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.PhoneVerified),currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?($("#hdnCellNoBeforeChange").val(MyAccountVPLCell.getPhoneData().phoneNo),_myAccount.SaveVPLUSerDetailProfile()):($("#hdnCellNoBeforeChange").val($("#txtCell").val().replace(/([()-\s])+/g,"")),_myAccount.SaveProfile()):currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile())},SuccessTwoFactor:function(){if(currentPage==_twoFactor.PageType.BusinessSignup){if(vm.buttonClicked=!0,!isNullOrUndefineOrBlank(vm)&&!isNullOrUndefineOrBlank(vm.SkipTwoFactorStep)){var e=parseInt($("#ddlcountry option:selected").val());localStorage.setItem("CountryId",e),localStorage.setItem("isFromTwoFactor",!0),localStorage.setItem("VarificationType",$("#hdnEmailAndCellAPIValidationSignup").val()),vm.SkipTwoFactorStep()}}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#divtwofactorauthentication").modal("hide");else if(currentPage==_twoFactor.PageType.CustomerSignup){var t=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");t.length>0&&(t.removeClass("phone"),t.removeClass("email"),t.removeClass("success")),$("#hdnIsCheckCapcha").val("0"),$("#btnRegister").click(),$(t).hide(),window.parent.ShowLoadingPanelLogin(!0)}else if(currentPage==_twoFactor.PageType.CustomerSignIn)isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||isNullOrUndefineOrBlank(_securelogin.AfterSuccessfullLogin)||SkipTwoFactoFromSignIn();else if(currentPage==_twoFactor.PageType.MultiLocation&&(showLoadingPanel(1),$("#divtwofactorauthentication").css("z-index","0"),$("#divtwofactorauthentication").hide(),$("#hdnIsFromMFA").val("true"),$("#btnAddBusinessInfoContinue").click(),null!=typeof _mlMultiLocation.controls.txtTelephone&&null!=_mlMultiLocation.controls.txtTelephone&&null!=typeof _mlMultiLocation.model.LastVerifiedCell&&null!=_mlMultiLocation.model.LastVerifiedCell)){var o=$(_mlMultiLocation.controls.txtTelephone).val().replace(/([()-\s])+/g,"");2==parseInt(e)&&0==o[0]&&(o=o.substring(1)),_mlMultiLocation.model.LastVerifiedCell=o}},resendcodestartloader:function(){var e=1*$("#hdnAuthCodeExpireTime").val()*60;$("#txtfirstcode").focus(),$("#twostepcountdown").show(),$("#divtwostepcountdown").show(),interval=setInterval(function(){--e<=35&&($("#twostepcountdown").fadeOut(500),$("#twostepcountdown").fadeIn(500),$("#twostepcountdown").css({color:"red"})),d=Number(e);var t=Math.floor(d%3600/60),o=Math.floor(d%3600%60);if(o<10&&(o="0"+o),$("#twostepcountdown").text(t+":"+o),e<=0)return $("#dvCodeError").hide(),$("#dvCodeErrorExpire").hide(),$("#dvCodeErrorTimeOut").show(),clearInterval(interval),void setTimeout(function(){$("#twostepcountdown").hide(),$("#divtwostepcountdown").hide()},500)},1e3)},AllowOnlyNumber:function(e){null!=e&&(thisnumberCtrl=$("#"+e),1==thisnumberCtrl.val().length?"txtsixcode"!=!thisnumberCtrl[0].id&&$(thisnumberCtrl).next(".inputcode").focus():"txtsixcode"==e?($("#txtfivecode").val(""),$("#txtfivecode").focus()):"txtfivecode"==e?($("#txtfourcode").val(""),$("#txtfourcode").focus()):"txtfourcode"==e?($("#txtthirdcode").val(""),$("#txtthirdcode").focus()):"txtthirdcode"==e?($("#txtsecondcode").val(""),$("#txtsecondcode").focus()):"txtsecondcode"==e&&($("#txtfirstcode").val(""),$("#txtfirstcode").focus())),$("#dvCodeError").hide(),$("#dvCodeErrorExpire").hide(),$("#dvCodeErrorTimeOut").hide()},ReSendTowFactorAuthenticationCode:function(e,t){if($(t).addClass("active"),$("#txtEmailCode").removeClass("error"),$("#txtCellCode").removeClass("error"),$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||(e=_twoFactor.AuthCodeReceiveMode.EmailAndCell),currentPage==_twoFactor.PageType.BusinessSignup){ShowLoader(!0);var o={},n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var a=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");if(2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),o.emailid=$.trim($("#txtEmail").val()),o.phone=$.trim($("#txtOwnerPhone").val().replace(/([()-\s])+/g,"")),o.fullname=$.trim($("#txtFirstName").val())+" "+$.trim($("#txtLastName").val()),o.CountryID=$("#ddlcountry option:selected").val(),o.IP=$("#hdnIPAddress").val(),o.IsEmailPhoneChanges=vm.IsEmailPhoneChanged,o.NoOfLoginAttemptemail=vm.NoOfLoginAttemptemail,o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.IsFromCustomerSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",o.DialingCode=vm.DialingCode,o.IsTwoFactorSignupLoadData=!0,(r=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.callback=function(a){void 0!==a&&null!=a&&(a.IsSucess&&(_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=a.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=a.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),PageType==_twoFactor.PageType.BusinessSignup&&_twoFactor.SaveFilterRequestForCardValidate(n))),$(t).removeClass("active"),ShowLoader(!1)},r.datamodel.data=o,r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},r.Post()}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){ShowLoader(!0),o={},n={},isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId);var i="";if(currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(n.UserName=$("#paymentmethods #emailid").val(),n.UserEmail=$("#paymentmethods #emailid").val(),i=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):(n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),i=$("#txtCell").val().replace(/([()-\s])+/g,""),n.Country=MyAccountMobilePhone.getPhoneData().countryId):currentPage==_twoFactor.PageType.CovidClean?(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),i=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):currentPage==_twoFactor.PageType.ShoppingBag&&(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),i=ShoppingBagVPLCell.getPhoneData().phoneNo,n.Country=ShoppingBagVPLCell.getPhoneData().countryId),2==n.Country&&0==i[0]?n.OwnersPhone=i.substring(1):n.OwnersPhone=i,n.State=$("#txtState").val(),n.City=$("#txtCity").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,currentPage==_twoFactor.PageType.ProfilePage||(n.UserID=parseInt(UserID)),$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),$("#txtCellCode").removeClass("error"),$("#txtEmailCode").removeClass("error"),NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),currentPage==_twoFactor.PageType.ProfilePage?("undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(o.emailid=$("#paymentmethods #emailid").val(),o.phone=MyAccountVPLCell.getPhoneData().phoneNo,o.CountryID=MyAccountVPLCell.getPhoneData().countryId):(o.emailid=$.trim($("#txtEmail").val()),o.phone=MyAccountMobilePhone.getPhoneData().phoneNo,o.CountryID=MyAccountMobilePhone.getPhoneData().countryId),o.fullname=$.trim($("#txtFName").val())+" "+$.trim($("#txtLName").val())):currentPage==_twoFactor.PageType.CovidClean?(o.emailid=$("#emailid").val(),o.phone=MyAccountVPLCell.getPhoneData().phoneNo,o.CountryID=MyAccountVPLCell.getPhoneData().countryId,o.fullname=_vgCovidCleanCheckout.model.VplUserDetails.Fullname):currentPage==_twoFactor.PageType.ShoppingBag&&(o.emailid=$("#emailid").val(),o.phone=ShoppingBagVPLCell.getPhoneData().phoneNo,o.CountryID=ShoppingBagVPLCell.getPhoneData().countryId,o.fullname=_onlineCheckout.CustomerDetails.FirstName+" "+_onlineCheckout.CustomerDetails.LastName),o.IP=$("#hdnIPAddress").val(),o.IsEmailPhoneChanges="false",o.NoOfLoginAttemptemail=NoOfLoginAttemptemail,o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",$("#hdnUserType").length>0&&(o.UserType=$("#hdnUserType").val());var r=new vagaro.ajax;currentPage==_twoFactor.PageType.ShoppingBag?r.datamodel.Token=_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer:r.datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.callback=function(n){void 0!==n&&null!=n&&(n.IsSucess&&(_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),"undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.ResendCode),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.ResendCode)),NoOfLoginAttempt=n.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=n.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),currentPage==_twoFactor.PageType.ProfilePage?(_twoFactor.BackFromAuth(),_myAccount.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)):currentPage==_twoFactor.PageType.ShoppingBag?($("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_twoFactor.BackFromAuth(),_onlineCheckout.hideConfirmbox()):currentPage==_twoFactor.PageType.CovidClean&&($("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_twoFactor.BackFromAuth(),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)))),$(t).removeClass("active"),ShowLoader(!1)},r.datamodel.data=o,r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},r.Post()}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if(ShowLoader(!0),o={},n={},isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmailInputCode").val(),n.UserEmail=$("#txtEmailInputCode").val(),twoStepPhonedata=twoFactorCellPhone.getPhoneData(),n.CountryID=twoStepPhonedata.countryId,n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",a=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),o.emailid=$.trim($("#txtEmailInputCode").val()),o.phone=twoStepPhonedata.phoneNo,o.CountryID=twoStepPhonedata.countryId,o.DialingCode=twoStepPhonedata.dialingCode,o.fullname=userccattemptdata.FullName,o.IP=$("#hdnIPAddress").val(),o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",$("#hdnUserType").length>0&&(o.UserType=$("#hdnUserType").val()),o.EmailCellAppSetting=$("#hdnEmailAndCell2FScreen").val(),(r=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.callback=function(a){void 0!==a&&null!=a&&(a.IsSucess&&(_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=a.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=a.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),_twoFactor.SaveFilterRequestForCardValidate(n))),$(t).removeClass("active"),ShowLoader(!1)},r.datamodel.data=o,r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},r.Post()}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(ShowLoadingPanelLogin(!0),o={},n={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(n.UserAgent=navigator.userAgent,n.VisitorID=$("#fpId").val()):(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.Country=$("#divCountryCode").attr("data-countryid"),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",i=$("#txtCell").val().replace(/([()-\s])+/g,""),2==n.Country&&0==i[0]?n.OwnersPhone=i.substring(1):n.OwnersPhone=i,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoadingPanelLogin(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),o.emailid=$.trim($("#txtEmail").val());var d=custSignupCellPhone.getPhoneData();o.phone=d.phoneNo,o.fullname=$.trim($("#txtFirstname").val())+" "+$.trim($("#txtLastname").val()),o.CountryID=d.countryId,o.IP="",o.IsEmailPhoneChanges=IsEmailPhoneChanged,o.NoOfLoginAttemptemail=NoOfLoginAttemptemail,o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.IsFromCustomerSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",IsEmailPhoneChanged=!1,(r=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.callback=function(a){void 0!==a&&null!=a&&(a.IsSucess&&(void 0!==a.WidgetUserID&&null!=a.WidgetUserID&&""!=a.WidgetUserID&&(widgetcookievalue=a.WidgetUserID),_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=a.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=a.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),_twoFactor.SaveFilterRequestForCardValidate(n))),$(t).removeClass("active"),1==o.AuthenticationMode?$("#txtEmailCode").focus():2==o.AuthenticationMode&&$("#txtCellCode").focus(),ShowLoadingPanelLogin(!1)},r.datamodel.data=o,r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},r.Post()}else currentPage==_twoFactor.PageType.MultiLocation&&(ShowLoader(!0),$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),_twoFactor.cleartwofactortextboxwithoutfocus(e),(r=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.callback=function(o){void 0!==o&&null!=o&&(o.IsSucess&&(_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest),$(t).removeClass("active"),ShowLoader(!1)},r.datamodel.data=twoStepEmail,r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},r.Post())},cleartwofactortextbox:function(e){e==_twoFactor.AuthCodeReceiveMode.Email||e==_twoFactor.AuthCodeReceiveMode.EmailAndCell?$("#txtEmailCode").val("").focus():$("#txtCellCode").val("").focus()},cleartwofactortextboxwithoutfocus:function(e){e==_twoFactor.AuthCodeReceiveMode.Email||e==_twoFactor.AuthCodeReceiveMode.EmailAndCell?$("#txtEmailCode").val(""):$("#txtCellCode").val("")},disabletwofactortextbox:function(e){$(e).attr("disabled","disabled");var t=5;interval=setInterval(function(){if(--t<=0){var e=$("#spnCountryPhoneNo").text();currentPage==_twoFactor.PageType.CustomerSignup?($("#divConfirmBox").find(".w-button-default").attr("value","Cancel"),e=$("#spnCountryPhoneNo").text(),showConfirmbox(_twoFactor.FailOTPMessage(e),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)):currentPage==_twoFactor.PageType.BusinessSignup&&vm.showConfirmbox(_twoFactor.FailOTPMessage(e),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)}},3e3)},VerifyEmailCode:function(){try{void 0!==vm.SignupStepsClicklog&&"function"==typeof vm.SignupStepsClicklog&&currentPage==_twoFactor.PageType.BusinessSignup&&vm.SignupStepsClicklog(1.1)}catch(e){}if(void 0===$("#txtEmailCode").val()||""==$("#txtEmailCode").val())return $("#dvEmailCodeError").show(),$("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").text("Please enter verification code."),$("#txtEmailCode").focus(),!1;if($("#txtEmailCode").val().length<=5)return $("#dvEmailCodeError").show(),$("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").text("Invalid code, try again."),!1;if(currentPage==_twoFactor.PageType.BusinessSignup){vm.buttonClicked=!0,$("#dvEmailCodeError").hide();var e="Unknown",t={};if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email);var o=$("#spnCountryPhoneNo").text();return void vm.showConfirmbox(_twoFactor.FailOTPMessage(o),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)}if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux");var n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2);t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,parseInt($("#ddlcountry option:selected").val()),$("#hdnEmailAndCellAPIValidationSignup").val()==_twoFactor.VarificationType.Email&&$("#hdnEmailAndCell2FScreen").val(_twoFactor.EmailAndCell2FScreen.EmailOrPhone),t.AuthenticationMode=$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhone||$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew?_twoFactor.AuthCodeReceiveMode.EmailAndCell:_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,t.IsSignupLoadData=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){if($("#dvEmailCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email),void(currentPage==_twoFactor.PageType.ProfilePage?(_twoFactor.BackFromAuth(),_myAccount.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)):currentPage==_twoFactor.PageType.ShoppingBag?(_twoFactor.BackFromAuth(),_onlineCheckout.hideConfirmbox()):currentPage==_twoFactor.PageType.CovidClean&&(_twoFactor.BackFromAuth(),$("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)));if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(buttonClicked=!0,$("#dvEmailCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email),void(PageType==_twoFactor.PageType.BusinessSignup&&(o=$("#spnCountryPhoneNo").text()));if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoadingPanelLogin(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhone?_twoFactor.AuthCodeReceiveMode.EmailAndCell:_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if($("#dvEmailCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email),void bootbox.alert({className:"vagaro-midium-popup",message:_twoFactor.FailOTPMessage(),title:"Error Code: XJ140"});if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoadingPanelLogin(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.MultiLocation&&($("#dvEmailCodeError").hide(),e="Unknown",(t={}).Code=$("#txtEmailCode").val(),""!=t.Code)){ShowLoader(!0);try{var a;-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhone?_twoFactor.AuthCodeReceiveMode.EmailAndCell:_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}},VerifyCellCode:function(){try{void 0!==vm.SignupStepsClicklog&&"function"==typeof vm.SignupStepsClicklog&&currentPage==_twoFactor.PageType.BusinessSignup&&vm.SignupStepsClicklog(1.2)}catch(e){}if(void 0===$("#txtCellCode").val()||""==$("#txtCellCode").val())return $("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Please enter verification code."),$("#dvCellCodeError").focus(),!1;if($("#txtCellCode").val().length<=5)$("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.");else if(currentPage==_twoFactor.PageType.BusinessSignup){vm.buttonClicked=!0,vm.buttonClicked=!0,$("#dvCellCodeError").hide();var e="Unknown",t={};if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell);var o=$("#spnCountryPhoneNo").text();return void vm.showConfirmbox(_twoFactor.FailOTPMessage(o),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)}if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux");var n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2);t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,t.IsSignupLoadData=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){if(void 0===$("#txtCellCode").val()||""==$("#txtCellCode").val()||$("#txtCellCode").val().length<=5)return $("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),"undefined"==$("#txtCellCode").val()||""==$("#txtCellCode").val()?($("#dvCellCodeError").text("Please enter verification code."),$("#txtCellCode").focus()):$("#dvCellCodeError").text("Invalid code, try again."),!1;if($("#dvCellCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),void(currentPage==_twoFactor.PageType.ProfilePage?(_twoFactor.BackFromAuth(),_myAccount.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)):currentPage==_twoFactor.PageType.ShoppingBag?(_twoFactor.BackFromAuth(),_onlineCheckout.hideConfirmbox()):currentPage==_twoFactor.PageType.CovidClean&&(_twoFactor.BackFromAuth(),$("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)));if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(buttonClicked=!0,$("#dvCellCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),$("#divConfirmBox").find(".w-button-default").attr("value","Cancel"),o=$("#spnCountryPhoneNo").text(),void showConfirmbox(_twoFactor.FailOTPMessage(o),OnBlockConfirm,"Error Code: XJ140",!1,!0);if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoadingPanelLogin(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if($("#dvCellCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),void vagaro.alertsmall({message:_twoFactor.FailOTPMessage(),title:"Error Code: XJ140"});if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.MultiLocation&&($("#dvCellCodeError").hide(),e="Unknown",(t={}).Code=$("#txtCellCode").val(),""!=t.Code)){ShowLoader(!0);try{var a;-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(a=new Date).getFullYear()+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+("0"+a.getDate()).slice(-2)+" "+("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}},verifytwostepAuthenticationCode:function(e,t){if(e.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),currentPage==_twoFactor.PageType.BusinessSignup)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var a=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");if(2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),ShowLoader(!1),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(t),sessionStorage.clear(),n.IsBlock=1,void _twoFactor.SaveFilterRequestForCardValidate(n);if("Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce){if(currentPage==_twoFactor.PageType.BusinessSignup&&($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n),$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmail").val()),twoStepEmail.phone=$.trim($("#txtOwnerPhone").val().replace(/([()-\s])+/g,"")),twoStepEmail.formattedPhone=$("#txtOwnerPhone").val(),twoStepEmail.fullname=$.trim($("#txtFirstName").val())+" "+$.trim($("#txtLastName").val()),twoStepEmail.CountryID=$("#ddlcountry option:selected").val(),twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.IsEmailPhoneChanges=vm.IsEmailPhoneChanged,twoStepEmail.NoOfLoginAttemptemail=vm.NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,twoStepEmail.DialingCode=vm.DialingCode,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):(parseInt($("#ddlcountry option:selected").val()),_twoFactor.CellCodeSuccess(!1))),o.VarificationType==_twoFactor.VarificationType.Cell||o.VarificationType==_twoFactor.VarificationType.EmailAndCell)){var i={step:1,isNextClick:1},r=new vagaro.ajax;r.datamodel.Token=_twoFactor.ApiURLEnum.GetLogDataonBackClick,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.data=i,r.datamodel.callback=function(e){},r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},r.Post()}}else"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),_twoFactor.cleartwofactortextbox(t))}},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId);var a="";if(currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(n.UserName=$("#paymentmethods #emailid").val(),n.UserEmail=$("#paymentmethods #emailid").val(),a=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):(n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),a=$("#txtCell").val().replace(/([()-\s])+/g,""),n.Country=MyAccountMobilePhone.getPhoneData().countryId):currentPage==_twoFactor.PageType.CovidClean?(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),a=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):currentPage==_twoFactor.PageType.ShoppingBag&&(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),a=ShoppingBagVPLCell.getPhoneData().phoneNo,n.Country=ShoppingBagVPLCell.getPhoneData().countryId),2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.State=$("#txtState").val(),n.City=$("#txtCity").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),currentPage==_twoFactor.PageType.ProfilePage||(n.UserID=parseInt(UserID)),ShowLoader(!1),NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(t),sessionStorage.clear(),n.IsBlock=1,void _twoFactor.SaveFilterRequestForCardValidate(n);"Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce?($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n),t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email&&1==IsEmailPhoneChanged?(twoStepEmail={},currentPage==_twoFactor.PageType.ProfilePage?("undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(twoStepEmail.emailid=$("#paymentmethods #emailid").val(),twoStepEmail.phone=MyAccountVPLCell.getPhoneData().phoneNo,twoStepEmail.CountryID=MyAccountVPLCell.getPhoneData().countryId,twoStepEmail.formattedPhone=MyAccountVPLCell.getphoneformat(MyAccountVPLCell.getPhoneData().phoneNo,MyAccountVPLCell.getPhoneData().countryId)):(twoStepEmail.emailid=$.trim($("#txtEmail").val()),twoStepEmail.phone=MyAccountMobilePhone.getPhoneData().phoneNo,twoStepEmail.CountryID=MyAccountMobilePhone.getPhoneData().countryId,twoStepEmail.formattedPhone=MyAccountMobilePhone.getphoneformat(MyAccountMobilePhone.getPhoneData().phoneNo,MyAccountMobilePhone.getPhoneData().countryId)),twoStepEmail.fullname=$.trim($("#txtFName").val())+" "+$.trim($("#txtLName").val())):currentPage==_twoFactor.PageType.CovidClean?(twoStepEmail.emailid=$("#emailid").val(),twoStepEmail.phone=MyAccountVPLCell.getPhoneData().phoneNo,twoStepEmail.CountryID=MyAccountVPLCell.getPhoneData().countryId,twoStepEmail.fullname=_vgCovidCleanCheckout.model.VplUserDetails.Fullname,twoStepEmail.formattedPhone=MyAccountVPLCell.getphoneformat(MyAccountVPLCell.getPhoneData().phoneNo,MyAccountVPLCell.getPhoneData().countryId)):currentPage==_twoFactor.PageType.ShoppingBag&&(twoStepEmail.emailid=$("#emailid").val(),twoStepEmail.phone=ShoppingBagVPLCell.getPhoneData().phoneNo,twoStepEmail.CountryID=ShoppingBagVPLCell.getPhoneData().countryId,twoStepEmail.fullname=_onlineCheckout.CustomerDetails.FirstName+" "+_onlineCheckout.CustomerDetails.LastName,twoStepEmail.formattedPhone=ShoppingBagVPLCell.getphoneformat(ShoppingBagVPLCell.getPhoneData().phoneNo,ShoppingBagVPLCell.getPhoneData().countryId)),twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.IsEmailPhoneChanges=IsEmailPhoneChanged,twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0),IsEmailPhoneChanged):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess())):"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),_twoFactor.cleartwofactortextbox(t))}},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.CustomerSignup)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(n.UserAgent=navigator.userAgent,n.VisitorID=$("#fpId").val()):(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.Country=$("#divCountryCode").attr("data-countryId"),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",n.IsPolicyAck=_twoFactor.Model.IsPolicyAck;var a=$("#txtCell").val().replace(/([()-\s])+/g,"");if(2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),ShowLoadingPanelLogin(!1),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){sessionStorage.clear(),n.IsBlock=1,$("#hdnIsBlocked").val(1),IsBlocked=!0,_twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),_twoFactor.SaveFilterRequestForCardValidate(n),$("#divConfirmBox").find(".w-button-default").attr("value","Cancel");var i=$("#spnCountryPhoneNo").text();return void showConfirmbox(_twoFactor.FailOTPMessage(i),OnBlockConfirm,"Error Code: XJ140",!1,!0)}if("Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce)if($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n),$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone)if(t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email){var r=custSignupCellPhone.getPhoneData();twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmail").val()),twoStepEmail.phone=r.phoneNo,twoStepEmail.formattedPhone=$("#txtCell").val(),twoStepEmail.fullname=$.trim($("#txtFirstname").val())+" "+$.trim($("#txtLastname").val()),twoStepEmail.CountryID=r.countryId,twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.IsEmailPhoneChanges=IsEmailPhoneChanged,twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,twoStepEmail.IsFromCustomerSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)}else $("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess());else $("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess());else"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),_twoFactor.cleartwofactortextbox(t))}ShowLoadingPanelLogin(!1)},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.CustomerSignIn)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),n.UserEmail=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="";var a=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,"");if(2==("5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"))&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.UserId=userccattemptdata.UserID,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(t),sessionStorage.clear(),n.IsBlock=1,void _twoFactor.SaveFilterRequestForCardValidate(n);if(ShowLoadingPanelLogin(!1),"Valid"==o.Verifyresponce){$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n);var i=0==isNullOrUndefineOrBlank($("#txtEmailInputCode").val())&&userccattemptdata.EmailId!=$("#txtEmailInputCode").val(),r=0==isNullOrUndefineOrBlank($("#txtCellInputCode").val().replace(/([()-\s])+/g,""))&&userccattemptdata.PhoneNo!=$("#txtCellInputCode").val().replace(/([()-\s])+/g,"");if(i||r){vgSaveUserProfiledata={},vgSaveUserProfiledata.UserID=userccattemptdata.UserID,vgSaveUserProfiledata.EmailID=i?$.trim($("#txtEmailInputCode").val()):userccattemptdata.EmailId;var d=r?$.trim($("#txtCellInputCode").val().replace(/([()-\s])+/g,"")):userccattemptdata.PhoneNo.replace(/([()-\s])+/g,"");2==("5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"))&&0==d[0]?vgSaveUserProfiledata.Cell=d.substring(1):vgSaveUserProfiledata.Cell=d;var l=new vagaro.ajax;l.datamodel.Token="websiteapi/homepage/saveuseremailphonefortwofactor",l.datamodel.data=vgSaveUserProfiledata,l.datamodel.IsNewVagaroAPI=!0,l.datamodel.callback=function(e){null!=e&&e?$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone||!isNullOrUndefineOrBlank(userccattemptdata.IsTwoStepForSP)&&userccattemptdata.IsTwoStepForSP?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail={},twoStepEmail.emailid=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),twoStepEmail.phone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.formattedPhone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.fullname=userccattemptdata.FullName,twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess(!0):_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess()):vagaro.alert(_twoFactor.ValidationMessages.FailedUserSaveMsg)},l.datamodel.Error=function(e){ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},l.Post()}else $("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone||!isNullOrUndefineOrBlank(userccattemptdata.IsTwoStepForSP)&&userccattemptdata.IsTwoStepForSP?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail={},twoStepEmail.emailid=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),twoStepEmail.phone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.formattedPhone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.fullname=userccattemptdata.FullName,twoStepEmail.CountryID=userccattemptdata.CountryID,twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess(!0):_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(_twoFactor.AuthCodeReceiveMode.Email,_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess())}else"Invalid"!=o.Verifyresponce&&"Expired"!=o.Verifyresponce||("Invalid"==o.Verifyresponce?t==_twoFactor.AuthCodeReceiveMode.Email?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code."))),t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.EmailAndCell2FScreen.EmailOrPhone||t==_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew?$("#txtEmailCode").focus():$("#txtCellCode").focus())}},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.MultiLocation){var o;(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,"Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce?($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell):$("#hdnTwoFactorVerified").val(o.VarificationType),$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess())):"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),ShowLoader(!1),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),ShowLoader(!1),_twoFactor.cleartwofactortextbox(t))}},o.datamodel.Error=function(){ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()}},resetTimer:function(){var e=1*$("#hdnAuthCodeExpireTime").val()*60;if(e>0){d=Number(e);var t=Math.floor(d%3600/60),o=Math.floor(d%3600%60);o<10&&(o="0"+o),$("#twostepcountdown").text(t+":"+o)}},SaveFilterRequestForCardValidate:function(e,t=""){if(currentPage==_twoFactor.PageType.BusinessSignup)ShowLoader(!0),e.IsFromSignup=!0,(o=new vagaro.ajax).datamodel.Token="addbusiness/savefilterrequestforcardvalidate",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(o){if(null!=o&&(ShowLoader(!1),currentPage==_twoFactor.PageType.BusinessSignup)){if(o.Step=e.Step,vm.userccattemptdata=o,!isNullOrUndefineOrBlank(vm.userccattemptdata)&&(vm.userccattemptdata.IsBlock||vm.userccattemptdata.NoOfAttempt>=10)){var n=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/signup-1";window.setTimeout(function(){window.location.href=n},4300)}""!=t&&3==vm.userccattemptdata.Step&&(ShowLoader(!1),swal({title:t,text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},function(e){"true"==$("#hdnIsShowBusinessCaptcha").val()&&0==isNullOrUndefineOrBlank(vm.userccattemptdata)&&vm.userccattemptdata.NoOfAttempt>=3?($("#zs_paymentframe").html(""),$("#zs_paymentframe").hide(),vm.ShowCustomCaptcha(),ShowLoader(!1)):vm.LoadCCFrame()}))}},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){ShowLoader(!0);var o=new vagaro.ajax;currentPage==_twoFactor.PageType.ProfilePage?o.datamodel.Token=ApiURLEnumMyAccount.SaveFilterRequestForCardValidate:o.datamodel.Token=_twoFactor.ApiURLEnum.SaveFilterrequestForCardValidate,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){if(null!=e){ShowLoader(!1);var t=e;!isNullOrUndefineOrBlank(t)&&t.IsBlock&&(CallWebServicehed("MySampleService.asmx/DoLogout","",CallSuccessLogout,CallFailed),CallbackforMobileApp(0,0,"","",0,6))}},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()}else currentPage==_twoFactor.PageType.CustomerSignup?(ShowLoadingPanelLogin(!0),(o=new vagaro.ajax).datamodel.Token="addbusiness/savefilterrequestforcardvalidate",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){null!=e&&(ShowLoadingPanelLogin(!1),userccattemptdata=e,!isNullOrUndefineOrBlank(userccattemptdata)&&(userccattemptdata.IsBlock||userccattemptdata.NoOfAttempt>=$("#hdnFraudNoOfAttempt").val())&&window.setTimeout(function(){$("#divAuth").hide(),$("#pnlSignup").show(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").show(),$("#divConfirmBox").find(".w-button-default").attr("value","Cancel");var e=$("#spnCountryPhoneNo").text();showConfirmbox(_twoFactor.FailOTPMessage(e),"","Error Code: XJ140",!1,!1)},4300))},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()):currentPage==_twoFactor.PageType.CustomerSignIn?(ShowLoadingPanelLogin(!0),(o=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.SaveFilterrequestForCardValidate,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){void 0!==e&&null!=e&&(ShowLoadingPanelLogin(!1),(e.IsBlock||e.NoOfAttempt>=3)&&window.setTimeout(function(){bootbox.alert({className:"vagaro-midium-popup",message:_twoFactor.FailOTPMessage(),title:"Error Code: XJ140",callback:function(){window.location.reload()}})},4300))},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()):currentPage==_twoFactor.PageType.ProfilePage&&(ShowLoader(!0),(o=new vagaro.ajax).datamodel.Token=ApiURLEnumMyAccount.SaveFilterRequestForCardValidate,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){if(null!=e){ShowLoader(!1);var t=e;!isNullOrUndefineOrBlank(t)&&t.IsBlock&&(CallWebServicehed("MySampleService.asmx/DoLogout","",CallSuccessLogout,CallFailed),CallbackforMobileApp(0,0,"","",0,6))}},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post())},AllowNumberOnly:function(e){if(69==event.keyCode)return event.preventDefault(),!1;var t=$(e);t.removeClass("error"),t.next("span").hide(),13==event.keyCode&&("txtEmailCode"==$(e).attr("id")?_twoFactor.VerifyEmailCode():_twoFactor.VerifyCellCode()),/\D/g.test(t.val())&&t.val(t.val().replace(/\D/g,""));var o=t.val(),n=o.length;if(n<=0)return t.removeClass("filled"),!1;if(n>6)return t.val(o.substring(0,6)),!1;var a=/^\d+$/;if(currentPage==_twoFactor.PageType.CustomerSignup){if(!isNullOrUndefineOrBlank(o)&&!a.test(o))return event.preventDefault(),!1}else if(!isNullOrUndefineOrBlank(o)&&!a.test(o))return event.preventDefault(),!1;return"txtCellCode"!=e.id&&"txtEmailCode"!=e.id||t.addClass("filled"),!0},showErrorDiv:function(e,t=!1){var o=$("#spnCountryPhoneNo").text();e==_twoFactor.AuthCodeReceiveMode.Email?(t&&_twoFactor.AppendEmailScreen(ReturnValue,currentPage),_twoFactor.disabletwofactortextbox("#txtEmailCode"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("You have reached your limit of attempts. "+_twoFactor.FailOTPMessage(o,!0))):e==_twoFactor.AuthCodeReceiveMode.Cell?(t&&_twoFactor.AppendCellScreen(ReturnValue),_twoFactor.disabletwofactortextbox("#txtCellCode"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("You have reached your limit of attempts. "+_twoFactor.FailOTPMessage(o,!0))):e==_twoFactor.AuthCodeReceiveMode.EmailAndCell&&(_twoFactor.disabletwofactortextbox("#txtEmailCode"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("You have reached your limit of attempts. "+_twoFactor.FailOTPMessage(o,!0)))},validateEmail:function(){var e=$("#txtEmailInputCode").val();return""!=e?null==e.match(/^[A-Za-z0-9_\+-]+(\.[A-Za-z0-9_\+-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.([A-Za-z]{2,10})$/g)?($("#txtEmailInputCode").addClass("error").focus(),$("#dvEmailInputError").html("Invalid email address").show(),ShowLoadingPanelLogin(!1),!1):($("#txtEmailInputCode").removeClass("error"),$("#dvEmailInputError").html("").hide(),ShowLoadingPanelLogin(!1),13==event.keyCode&&_twoFactor.SendEmailCodeFromInputScreen(!0),!0):($("#txtEmailInputCode").addClass("error").focus(),$("#dvEmailInputError").html("Enter your email").show(),ShowLoadingPanelLogin(!1),!1)},BackFromAuth:function(e){if(e==_twoFactor.PageType.CustomerSignup){isResetTimer=!1;var t=$("#iFrameSignUp").contents();$("#pnlSignup",t).show(),$("#signupheaderpart").show(),$("#divAuth",t).hide(),$("#hdnIsResetCode",t).val("0"),(o=$("#dvRegHid")).length>0&&(o.removeClass("email"),o.removeClass("phone"),o.removeClass("success")),_twoFactor.isMobileDevice&&$("#btnCreateAccount",parent.document).show(),$("#iFrameSignUp",parent.document).parents().find("body").addClass("signupiframe")}else if(currentPage==_twoFactor.PageType.CustomerSignIn)ShowLoadingPanelLogin(!0),null!=typeof _twoFactor.Model.IsPolicyAck&&void 0!==_twoFactor.Model.IsPolicyAck&&_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID,!0):isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||SkipTwoFactoFromSignIn();else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#dvPhoneVerify").hide(),$("#dvEmailVerify").hide(),$("#divtwofactorauthentication").modal("hide");else if(currentPage==_twoFactor.PageType.CustomerSignup){var o;isResetTimer=!1,$("#pnlSignup").show(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").show(),$("#divAuth").hide(),(o=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid")).length>0&&(o.removeClass("email"),o.removeClass("phone"),o.removeClass("success")),_twoFactor.isMobileDevice&&$("#btnCreateAccount",parent.document).show(),$("#iFrameSignUp",parent.document).parents().find("body").addClass("signupiframe")}else if(currentPage==_twoFactor.PageType.BusinessSignup){1==_twoFactor.Model.isFromInvalidEmailCell&&($("#hdnEmailAndCell2FScreen").val(_twoFactor.EmailAndCell2FScreen.None),_twoFactor.Model.isFromInvalidEmailCell=!1),vm.ISfromgetmailphonevalidated=!1,vm.isResetTimer=!1,$("#dvAuth").hide(),$("#divBusinessSteps").show();var n={step:-11,isNextClick:0},a=new vagaro.ajax;a.datamodel.Token=_twoFactor.ApiURLEnum.GetLogDataonBackClick,a.datamodel.IsNewVagaroAPI=!0,a.datamodel.data=n,a.datamodel.callback=function(e){},a.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},a.Post()}else currentPage==_twoFactor.PageType.MultiLocation&&($find("mpeNewBusiness").show(),$("#divtwofactorauthentication").css("z-index","0"),$("#divtwofactorauthentication").hide())},validatePhone:function(e,t,o){if(currentPage==_twoFactor.PageType.CustomerSignIn)var n=$("#selectedCountrydiv").attr("data-countryid");else currentPage==_twoFactor.PageType.ProfilePage&&(n=$("#temphdncountryid").val());void 0!==o&&null!=o&&""!=o&&(n=o);var a=$(e),i=a.val().replace(/([()-\s])+/g,""),r=i.length;if(r<=0)return"#revtxtnightphoneCust"==t||"#revtxtdayphoneCust"==t||"#divInvalidMobileMessage"==t?$(t).hide():($(t).show(),$(t).html("Enter your mobile phone")),a.addClass("error").focus(),ShowLoadingPanelLogin(!1),!1;if(!isNullOrUndefineOrBlank(i)&&!/^\d+$/.test(i))return event.preventDefault(),ShowLoadingPanelLogin(!1),!1;if(2!=n&&11==r&&0==i[0]&&(r=(i=i.substring(1)).length),1==n||3==n){if(10!=r)return a.val(i),$(t).show(),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 10 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 10 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 10 digits")),a.addClass("error").focus(),!1}else if(2==n){if(r<10||r>11)return a.val(i),$(t).show(),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 10 or 11 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 10 or 11 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 10 or 11 digits")),a.addClass("error").focus(),!1;10==r&&0!=i[0]?r=(i=0+i).length:(r<=10||12==r)&&0==i[0]&&(r=(i=i.substring(1)).length),a.val(i.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"))}else if(4==n||5==n){if(r<9||r>10)return a.val(i),$(t).show(),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 9 or 10 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 9 or 10 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 9 or 10 digits")),a.addClass("error").focus(),!1;9==r&&0!=i[0]?r=(i=0+i).length:(r<=9||r>10)&&0==i[0]&&(r=(i=i.substring(1)).length),a.val(i.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3"))}return $(t).hide(),13==event.keyCode&&_twoFactor.SendPhoneCodeFromInputScreen(!0),!0},ShowCountry:function(){return $(".countryselectoption").is(":visible")?void $(".countryselectoption").hide():void $(".countryselectoption").show()},selectCountry:function(e,t){$("#selectedCountrydiv").removeClass().addClass("selectedcountry "+t),$("#selectedCountrydiv").attr("data-countryId",e),_twoFactor.Phone_format("#txtCellInputCode","#dvCellInputCodeError",e),_twoFactor.ShowCountry(),$("#txtCellInputCode").attr("tabindex",-1).focus(),_twoFactor.Model.DialingCode=2==e||5==e?2==e?"44":"353":""},Phone_format:function(e,t,o){if(currentPage==_twoFactor.PageType.CustomerSignIn)var n=$("#selectedCountrydiv").attr("data-countryId");else currentPage==_twoFactor.PageType.ProfilePage&&(n=$("#temphdncountryid").val());null!=typeof o&&null!=o&&""!=o&&(n=o);var a=$(e);/\D/g.test(a.val())&&a.val(a.val().replace(/\D/g,"")),1==n?a.removeClass("cntry-ca cntry-ie").addClass("cntry-us"):3==n?a.removeClass("cntry-us cntry-ie").addClass("cntry-ca"):5==n?a.removeClass("cntry-ca cntry-us").addClass("cntry-ie"):a.removeClass("cntry-ca cntry-us cntry-ie");var i=a.val().replace(/([()-\s])+/g,""),r=i.length;if(!(r<=0))return a.removeClass("error"),isNullOrUndefineOrBlank(i)||/^\d+$/.test(i)?($(t).hide(),2!=n&&11==r&&0==i[0]&&(r=(i=i.substring(1)).length),1!=n&&3!=n||10!=r?2==n?(10==r&&0!=i[0]?r=(i=0+i).length:(r<=10||12==r)&&0==i[0]&&(r=(i=i.substring(1)).length),10==r||11==r?a.val(i.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3")):a.val(i)):4==n||5==n?(9==r&&0!=i[0]?r=(i=0+i).length:(r<=9||r>10)&&0==i[0]&&(r=(i=i.substring(1)).length),9==r||10==r?a.val(i.replace(5==n?/(\d{3})\-?(\d{3})\-?(\d{4})/:/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")):a.val(i)):a.val(i):3==n?a.val(i.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3")):a.val(i.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3")),ShowLoadingPanelLogin(!1),!0):(event.preventDefault(),ShowLoadingPanelLogin(!1),!1);ShowLoadingPanelLogin(!1)},formatEmail:function(e){var t=e.split("@");return 2==t.length&&(e=_twoFactor.formatCell(t[0],!0)+"@"+t[1]),e},formatCell:function(e,t=!1,o=0){var n="",a=3;e.length<=3&&(a=1);for(var i=0;i<e.length-a;i++)n+="*";if(0==t){switch(o){case"4":phoneNumHidden="(**) **** *";break;case"3":phoneNumHidden="***-***-*";break;case"2":phoneNumHidden="*** **** *";case"1":phoneNumHidden="(***) ***-*";break;default:phoneNumHidden=n}e=phoneNumHidden+e.substring(e.length-a,e.length)}else e=n+e.substring(e.length-a,e.length);return e},AdaPassiveMessage:function(e,t){$("#spnEmailCellcode").html(e),setTimeout(function(){$("#spnEmailCellcode").html("")},5e3),void 0!==t&&null!=t&&(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?$("#txtEmailCode").focus():$("#txtCellCode").focus())},IsFromCookieLessWidget:function(){var e=!1;if("undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())e=!("undefined"==typeof _common||void 0===_common.IsCookieLessWidget||!_common.IsCookieLessWidget());else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&(e=!(void 0===window.parent._common||void 0===window.parent._common.IsCookieLessWidget||!window.parent._common.IsCookieLessWidget()))}catch(e){}return e},AjaxOld:function(e,t,o,n){var a=new vagaro.ajax;a.datamodel.Token=e,a.datamodel.data=t,a.datamodel.callback=o,a.datamodel.Error=n,a.Post()}};var intRegex=/^\d+$/;function pasteValues(e){var t=e.split("");$(t).each(function(e){var o="txtfirstcode";switch(e){case 1:o="txtsecondcode";break;case 2:o="txtthirdcode";break;case 3:o="txtfourcode";break;case 4:o="txtfivecode";break;case 5:o="txtsixcode";break;default:o="txtfirstcode"}$('.inputcode[name="'+o+'"]').val(t[e]),"txtfirstcode"==o&&$("#txtsixcode").focus()})}function ShowHideDoneMessage(e,t){if(currentPage==_twoFactor.PageType.MultiLocation)$(".multilocation-Success .text-block-28").html(e),$(".multilocation-Success").addClass("showmsgTop").css("display",""),setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},200),setTimeout(function(){$(".multilocation-Success").removeClass("showmsgTop").css("display","")},3200);else if(currentPage==_twoFactor.PageType.CustomerSignup)window.parent.$(".banner-success-master.customerSignup .text-block-28").html(e),window.parent.$(".banner-success-master.customerSignup").addClass("showmsgTop").css("display",""),setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},200),setTimeout(function(){window.parent.$(".banner-success-master").removeClass("showmsgTop").css("display","")},3200);else{$(".banner-success-master .text-block-28").html(e);var o=$(".banner-success-master");o.addClass("showmsgTop").css("display",""),e!=_twoFactor.SuccessMessage.EmailVerified&&e!=_twoFactor.SuccessMessage.PhoneVerified||setTimeout(function(){o.removeAttr("role").attr("aria-label",e).attr("tabindex",-1).focus()},300),setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},200),setTimeout(function(){var t=$(".banner-success-master");t.removeClass("showmsgTop").css("display",""),e!=_twoFactor.SuccessMessage.EmailVerified&&e!=_twoFactor.SuccessMessage.PhoneVerified||(t.removeAttr("aria-label").attr("role","none"),setTimeout(function(){$("#h2AccountVerified").is(":visible")?$("#h2AccountVerified").attr("tabindex",-1).focus():($("#h2VerifyPhone").is(":visible")||e==_twoFactor.SuccessMessage.PhoneVerified)&&$("#h2VerifyPhone").attr("tabindex",-1).focus()},500))},3200)}}function GetDisplayMessageTime(e){var t=2e3;return""!=e&&e.length>0&&(e.length<50?t=2e3:e.length<100?t=3e3:e.length<200?t=4e3:e.length>200&&(t=7e3)),t}function isNullOrUndefineOrBlank(e){return void 0===e||null==e||""==e||null==e}$(document).on("input.fromManual",".inputcode",function(){intRegex.test($(this).val())||$(this).val("")}),$(document).on("focus","#twostepemailcodeinfo input",function(){(isiPhone||/iPad/.test(navigator.userAgent))&&setTimeout(function(){isNullOrUndefineOrBlank(currentPage)||currentPage!=_twoFactor.PageType.CustomerSignup?$("html").scrollTop("0"):$("html",parent.document).scrollTop("0")},100)}),$(document).on("focusin","#txtEmailInputCode,#txtEmailCode,#txtCellInputCode,#txtCellCode",function(){currentPage==_twoFactor.PageType.CustomerSignup&&_twoFactor.isMobileDevice&&$("body.customer-signup-body").addClass("keyboradopen")}),$(document).on("focusout","#txtEmailInputCode,#txtEmailCode,#txtCellInputCode,#txtCellCode",function(){currentPage==_twoFactor.PageType.CustomerSignup&&_twoFactor.isMobileDevice&&$("body.customer-signup-body").removeClass("keyboradopen")}),$(document).on("paste",".inputcode",function(){var e=$(this),t=e.val();e.val(""),e.one("input.fromPaste",function(){$currentInputBox=$(this);var o=$currentInputBox.val();6==o.length&&intRegex.test(o)?pasteValues(o):e.val(t),$(".inputcode").attr("maxlength",1)}),$(".inputcode").attr("maxlength",6)}),$.fn.GoogleAddressPlugin=function(e){var t=$.extend({Control:this,ControlId:this.attr("id"),Address2Control:"",CurrentLocationCountryID:1,AddressData:{},CountryDropDownRole:2,AddressFor:1,IsLiveStreamAddress:!1,IsDisabled:!1,ScrollType:2,IsAddManualAddress:!1,IsSaveManualAddress:!1,IsAddressRequired:!1,DisabledCountry:!1,IsReturnCountryID:!1,IsDistance:!1},e),o={model:{countryFlag:{1:"us-f",2:"uk-f",3:"canada-f",4:"aus-f"},countryMapForAPI:{1:"US",2:"GB",3:"CA",4:"AU"},countryName:{1:"United States of America",2:"United Kingdom",3:"Canada",4:"Australia"},stateList:{},CountryId:void 0!==t.AddressData.country?t.AddressData.country:"undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):t.CurrentLocationCountryID,errorMessage:"Something went wrong, Try Again.",addressPlaceHolder:"Address Line 1",addressPlaceHolderUKOnly:"E.g. Post Code 'CR0 3RL' or 1st line '36 Factory Lane'",lableLanguage:[{CountryId:0,Zip:"Postal Code",City:"City",State:"State",IsStateDropDown:0,IsStateless:0,IsZipless:0},{CountryId:1,Zip:"ZIP Code",City:"City",State:"State",IsStateDropDown:1,IsStateless:0,IsZipless:0},{CountryId:2,Zip:"Postcode",City:"City",State:"County",IsStateDropDown:1,IsStateless:0,IsZipless:0},{CountryId:3,Zip:"Postal Code",City:"City",State:"Province",IsStateDropDown:1,IsStateless:0,IsZipless:0},{CountryId:4,Zip:"Postcode",City:"Suburb",State:"State/Territory",IsStateDropDown:1,IsStateless:0,IsZipless:0},{CountryId:194,Zip:"Postal Code",City:"City",State:"State",IsStateDropDown:0,IsStateless:1,IsZipless:0},{CountryId:236,Zip:"Postal Code",City:"City",State:"State",IsStateDropDown:0,IsStateless:0,IsZipless:1},{CountryId:12,Zip:"Postal Code",City:"City",State:"State",IsStateDropDown:0,IsStateless:0,IsZipless:1}],lblRow:{},IsStateless:0,IsZipless:0},ApiURLEnum:{getState:"address/getstatesbymultiplecountryid",getStateCode:"address/GetCityByZipCodeWithStatecode",getPlaceDetailByPlaceId:"address/GetPlaceDetailByPlaceId",getLocationOrPlaceDetail:"address/GetLocationOrPlaceDetail"},ControlsPrefix:{addressControl:"#"+t.ControlId,countrySelectOption:"#countryselectoption"+t.ControlId,addressPopup:"#addressPopup"+t.ControlId,AddressControllerCountry:"#AddressControllerCountry"+t.ControlId,myCountryPopup:"#mycountryPopup"+t.ControlId,countrySelectoptionPopup:"#countryselectoptionpopup"+t.ControlId,btnPopupClose:"#btnPopupClose"+t.ControlId,popUpCntryDropDownID:"#popUpCntryDropDownID"+t.ControlId,ddlState:"#ddlState"+t.ControlId,lblZipCodePopup:"#lblZipCodePopup"+t.ControlId,txtZip:"#txtZip"+t.ControlId,lblStatePopup:"#lblStatePopup"+t.ControlId,lblCityPopup:"#lblCityPopup"+t.ControlId,txtCity:"#txtCity"+t.ControlId,txtStreet:"#txtStreet"+t.ControlId,txtStreet1:"#txtStreet1"+t.ControlId,txtState:"#txtState"+t.ControlId,btnCancelGetAddress:"#btnCancelGetAddress"+t.ControlId,btnGetAddress:"#btnGetAddress"+t.ControlId,dvDdlState:"#dvDdlState"+t.ControlId,ddlMainCountry:"#ddlMainCountry"+t.ControlId,ddlPopupCountry:"#ddlPopupCountry"+t.ControlId,dvWrap:"#dvWrap"+t.ControlId}},n=()=>{searchTextBox=t.ControlId,$("#"+searchTextBox).wrap('<div id="dvWrap'+searchTextBox+'" class="select-country-mar address-phone-plugin">').parent().wrap('<div class="addresswithcountry clearfix">');var e="",n=document.getElementById(searchTextBox).tabIndex;e+=' <div class="w-custom-dropdown countrydropdown allflag-show">';o.ControlsPrefix.countrySelectOption;e+='<div id="AddressControllerCountry'+searchTextBox+'" class="selectedcountry" tabindex="-1"></div > ',e+='<select id="ddlMainCountry'+searchTextBox+'" class="form-control" tabindex="'+n+'">  </select>',e+="</div>",e+='<ul id="countryselectoption'+searchTextBox+'" class="countryselectoption" style="display: none">',e+=" </ul>",0!=t.CountryDropDownRole&&$(o.ControlsPrefix.countrySelectOption).length<=0&&(null!=$("#"+searchTextBox).parent()?$("#"+searchTextBox).parent().before(e):$("#"+searchTextBox).before(e),$(o.ControlsPrefix.AddressControllerCountry).bind("click",function(){t.IsDisabled||$(o.ControlsPrefix.countrySelectOption).is(":visible")||$(".countryselectoption").hide()}));var a='<div id="addressPopup'+searchTextBox+'" class="general-addresspopup verifyAddressPopup address-phone-plugin" style="display:none">';a+='<div class="general-addresspopup-container ">',a+='<div class="general-addresspopup-body">',a+='<div class="pop-model-body settingnew-design addresspopup-billing">',a+='<div class="loginWrap loginContentwrap-addbus">',a+="<header>",a+="<a id="+o.ControlsPrefix.btnPopupClose.replace("#","")+' class="popupCloseImg" href="javascript:void(0)" >',a+="&#xf00d;",a+="</a>",a+='<h4 id="mycountryPopupTitle'+searchTextBox+'">Verify Address</h4>',a+="</header>",a+='<div class="modal-body">',a+='<div class="popContainWrapper clearfix">',a+='<div class="loginContainer clearfix">',a+='<div class="loginContentwrap">',a+='<div class="formlayout1" id="divMain'+searchTextBox+'">',a+='<p class="discription-location" id="mycountryPopupsubTitle'+searchTextBox+'">',a+="Our system doesn’t recognize your address. Please provide the following information.",a+="</p>",a+="</div>",a+="<ul>",a+='<li class="addressDropdownBox">',a+="<label>Address Line 1</label>";var i="'"+o.ControlsPrefix.countrySelectoptionPopup+"'";a+='<div class="addresswithcountry clearfix" >',a+=' <div class="w-custom-dropdown countrydropdown allflag-show">',a+='<div id="mycountryPopup'+searchTextBox+'" class="selectedcountry us-f" '+(0==t.CountryDropDownRole?" disabled=true ":"")+' onclick="$('+i+').toggle()"></div>',a+='<select id="ddlPopupCountry'+searchTextBox+'" class="form-control" '+(0==t.CountryDropDownRole?" disabled=true ":"")+">  </select>",a+="</div>",a+='<ul id="countryselectoptionpopup'+searchTextBox+'" class="countryselectoption selectoptionpopup" style="display: none">',a+=" </ul>",a+=' <div class="select-country-mar">',a+='<input name="txtStreet" type="text" maxlength="500" id="txtStreet'+searchTextBox+'" class="inputbox-type1 validAddress'+searchTextBox+'" autocomplete="off" placeholder="Address Line 1">',a+=" </div>",a+="</div>",a+="</li>",a+="<li>",a+="<label>Address Line 2</label>",a+='<input name="txtStreet1" type="text" maxlength="100" id="txtStreet1'+searchTextBox+'" class="inputbox-type1" autocomplete="off" placeholder="Address Line 2 (Optional)">',a+="</li>",a+="</ul>",a+='<ul class="location-city-row">',a+="<li>",a+='<label id="lblCityPopup'+searchTextBox+'">City:</label>',a+='<input name="txtCity" type="text" maxlength="48" id="txtCity'+searchTextBox+'" class="inputbox-type1 validAddress'+searchTextBox+'" autocomplete="off" placeholder="City">',a+="</li>",a+="<li>",a+='<label id="lblStatePopup'+searchTextBox+'">State/Province:</label>',a+='<input name="txtState" type="text" maxlength="50" id="txtState'+searchTextBox+'" class="inputbox-type1" autocomplete="off" style="display:none" placeholder="State" />',a+='<div class="dropdowndiv" id="dvDdlState'+searchTextBox+'">',a+='<select id="ddlState'+searchTextBox+'" class="" style="width: 100%;"></select>',a+="</div>",a+="</li>",a+="<li>",a+='<label id="lblZipCodePopup'+searchTextBox+'">Zip/Postal Code:</label>',a+='<input name="txtZip" type="text" maxlength="10" placeholder="Zip" id="txtZip'+searchTextBox+'" title="Zipcode is mandatory because it will help your customer to find shop using google map." class="inputbox-type1 validAddress'+searchTextBox+'" autocomplete="off" />',a+='<div class="smallloading" id="divsmallloading'+searchTextBox+'" style="display:none;"></div>',a+="</li>",a+="</ul>",a+="</div>",a+="</div>",a+="</div>",a+="</div>",a+='<div class="popupBtnContainer clearfix modal-footer">',a+='<input type="button" name="btnCancelGetAddress" value="Cancel" id="btnCancelGetAddress'+searchTextBox+'" class="btn btn-default" tabindex="-1" />',a+='<input type="button" name="btnGetAddress" value="Save" id="btnGetAddress'+searchTextBox+'" class=" btn btn-primary" tabindex="-1" />',a+="</div>",a+="</div>",a+="</div>",a+="</div>",a+="</div>",a+="</div>",$(o.ControlsPrefix.addressPopup).length>0&&$(o.ControlsPrefix.addressPopup).remove(),$(o.ControlsPrefix.addressPopup).length<=0&&($("body").prepend(a),r(),$(o.ControlsPrefix.btnPopupClose).bind("click",function(){k()}),$(o.ControlsPrefix.btnCancelGetAddress).bind("click",function(){k()}),$(o.ControlsPrefix.btnGetAddress).bind("click",function(){return t.IsSaveManualAddress=!0,_(!0)}),$(o.ControlsPrefix.addressControl).bind("change",function(){p()})),$(".validAddress"+t.ControlId).on("blur",function(){""==$(this).val().trim()&&(!this.id.includes("txtZip")||this.id.includes("txtZip")&&0==o.model.IsZipless)?0==$(this).siblings("span").length&&($(this).addClass("errorInput"),$(this).after('<span id="rfv'+$(this).attr("id")+'" class="requiredErrorText" style="color:Red;">required</span>')):($(this).removeClass("errorInput"),$(this).next("span").remove())}),$(o.ControlsPrefix.txtState).on("blur",function(){""!=$(this).val().trim()&&($(this).removeClass("errorInput"),$(this).next("span").remove())})},a=()=>{var e=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";if($.ajax({url:e+"WebServices/MySampleService.asmx/GetLocation",type:"POST",contentType:"application/json; charset=utf-8"}).success(function(e){ipLocation=e.lat+","+e.lon}),"undefined"==typeof keepAlive&&$("#IsWaitforKeepALive").length>0&&void 0!==$("#IsWaitforKeepALive").val()&&"true"===$("#IsWaitforKeepALive").val().toLowerCase())setTimeout(function(){a()},500);else{var n=t.Control.select2({searchInputPlaceholder:o.model.addressPlaceHolder,minimumInputLength:1,combobox:!0,dropdownCssClass:"select2DD select2borderbox",selectOnClick:!1,multiple:!1,closeOnSelect:!0,allowClear:!0,ajax:{url:m(o.ApiURLEnum.getLocationOrPlaceDetail),dataType:"json",quietMillis:250,params:{},data:function(){var e={};return e.searchText=t.Control.val(),e.countryFilter=null==o.model.countryMapForAPI[o.model.CountryId]?"":o.model.countryMapForAPI[o.model.CountryId],e.Location=ipLocation,e.IsCallNewAddressAPI=!t.IsLiveStreamAddress,e},results:function(e,t){return{results:e.Data}},cache:!1},formatNoMatches:function(){return $("#select2-drop").css("display","block"),$("#select2-drop").css("z-index","100002"),"No matches found"},formatSearching:function(){return $("#select2-drop").css("display","block"),$("#select2-drop").css("z-index","100002"),"Searching…"},formatInputTooShort:function(e,t){return $("#select2-drop").css("display","none"),$("#select2-drop").css("z-index","100002"),""},initSelection:function(e,o){var n={id:t.Control.val(),text:t.Control.val()};$("#select2-drop").css("z-index","100002"),o(n)},formatResult:function(e){$("#select2-drop").css("display","block"),$("#select2-drop").css("z-index","100002");return'<div data-placeid="'+e.place_id+'"><img  style="vertical-align:middle" src="https://vagaro.azureedge.net/static-content/Images/flamingo-map-newicon-new@2x.png" width="12" /><span class="fullocation">'+e.FormattedAddress+"</span></div>"}});n.on("select2-loaded",function(e){$(".select2-result-unselectable").addClass("select2-result-selectable").removeClass("select2-result-unselectable")}),n.on("select2-blur",function(e){e.preventDefault()}),n.on("select2-focus",function(e){$(this).find(".select2-input").select()}),n.on("selected",function(e){$(e.currentTarget).select2("val",e.choice.CityState),$(e.currentTarget).data("selectedid",e.choice.CityState);var t={};t.placeId=e.choice.place_id,t.description=e.choice.CityState,t.CountryID=parseInt(o.model.CountryId),t.IsStateless=1==o.model.IsStateless,t.CountryCode=o.model.countryMapForAPI[o.model.CountryId],t.IsCallNewAddressAPI=e.choice.IsCallNewAddressAPI,i(m(o.ApiURLEnum.getPlaceDetailByPlaceId),t,r,placeDetailFail,!1,!1,!0)});var r=function(e){if(1e3==e.ResponseCode){$(o.ControlsPrefix.addressControl).removeClass("errorInput");var n=null!=(e=e.Data)&&null==e.CityState?"":e.CityState.split(",")[0],a=null==e.State?"":e.State;a=a.trim(),(addressData={}).address=e.Address,addressData.address2=e.Address2,addressData.state=a,addressData.zip=e.ZipCode,addressData.country=o.model.CountryId,addressData.statecode=e.StateCode;var i=addressData.address;2==e.CountryID&&(""==e.State||""==e.StateCode?(n=e.City,o.model.IsStateless=1):o.model.IsStateless=0),addressData.city=n,t.AddressData=addressData,i=i+(""!=i?", ":"")+addressData.city,0==o.model.IsStateless&&(i=i+(""!=i&&""!=addressData.state?", ":"")+(1==o.model.CountryId?addressData.statecode:addressData.state)),i=i+(""!=i&&""!=addressData.zip?", ":"")+addressData.zip,u(i)?(t.Control.select2("data",{id:null,text:null}),swal({title:"Address is not valid.",text:"",type:"",timer:6e3,showCancelButton:!1,confirmButtonColor:"#eb6663",customClass:"sweet-alert-model auto-footer-btton "},function(e){$(o.ControlsPrefix.addressControl).focus(),$(o.ControlsPrefix.addressControl).select2("open")})):t.Control.select2("val",i),u(t.Address2Control)||$(t.Address2Control).val(t.AddressData.address2);var r=e.GetCityByZipString;if(!u(r)){var d=r.split("|")[0],l=1*r.split("|")[1],s=r.split("|")[2];u(d)||$(o.ControlsPrefix.txtCity).val(d),u(s)||(t.AddressData.state=s,t.AddressData.stateId=l,$(o.ControlsPrefix.ddlState).val(l))}t.IsLiveStreamAddress&&_shopdetail.ChangeCustomerStartTime(e.TimeZoneOffSet,e.CountryID,e.IsSupportDayLight)}};placeDetailFail=function(e){console.log(e)},I()}},i=(e,t,o,n,a,i,r)=>{var d=new vagaro.ajax;d.datamodel.Token=e,d.datamodel.data=t,d.datamodel.callback=o,d.datamodel.Error=n,void 0!==r&&null!=r&&1==r&&(d.datamodel.IsNewVagaroAPI=!0),void 0!==i&&1==i&&(d.datamodel.ErrorMessage=""),a?d.PostQue():d.Post()},r=()=>{if(T())d(_glbPluginCountryList);else{var e={},t={businessID:0,loginUserID:0};e.RegisterDeviceRequest=t,i("GetAllCountryList",e,d,s,!1,!1,!1)}},d=e=>{if(void 0!==e&&null!=e&&e.length>0){T()||(_glbPluginCountryList=e),o.model.countryMapForAPI={},o.model.countryFlag={},o.model.countryName={};var n='<optgroup label="Current Location">',a='<optgroup label="Other Locations">';e.sort((e,t)=>{var o=e.CountryName.toUpperCase(),n=t.CountryName.toUpperCase();return o<n?-1:o>n?1:0}),$.each(e,function(e,i){if(2==t.AddressFor||1==t.AddressFor&&!u(i.IsBusinessUseOnly)&&1==i.IsBusinessUseOnly){var r="liFront"+t.ControlId+e,d="<li  id='"+r+"' class="+i.CSSClass+" >"+i.CountryName+" </li>";$(o.ControlsPrefix.countrySelectOption).append(d),$("#"+r).bind("click",function(){h(i.CountryID)}),d="<li id='"+(r="liPopup"+t.ControlId+e)+"' class="+i.CSSClass+" >"+i.CountryName+" </li>",$(o.ControlsPrefix.countrySelectoptionPopup).append(d),$("#"+r).bind("click",function(){C(i.CountryID)}),o.model.countryMapForAPI[i.CountryID]=i.CountryCode,o.model.countryFlag[i.CountryID]=i.CSSClass,o.model.countryName[i.CountryID]=i.CountryName,i.CountryID==("undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):t.CurrentLocationCountryID)?n+=' <option class="'+i.CSSClass+'" value="'+i.CountryID+'">'+i.CountryName+"</option> </optgroup >":a+=' <option class="'+i.CSSClass+'" value="'+i.CountryID+'">'+i.CountryName+"</option>"}}),a+="</optgroup >",$(o.ControlsPrefix.ddlMainCountry).append(n+a),$(o.ControlsPrefix.ddlMainCountry).select2({searchInputPlaceholder:"Search for a Country",closeOnSelect:!1,formatResult:c,dropdownCssClass:"all-country-flag"}).on("select2-selected",function(e){o.model.CountryId=parseInt(e.choice.id),h(o.model.CountryId),$(o.ControlsPrefix.addressControl).select2("open")}).on("select2-opening",function(e){!1===$(e.target).is(".select2-container")&&$(".select2-dropdown-open").select2("close"),$(o.ControlsPrefix.ddlMainCountry).select2("data",{id:o.model.CountryId})}).on("select2-open",function(e){if(("undefined"==typeof IsMobileDevice||u(IsMobileDevice))&&(isiPhone=null!=navigator.userAgent.match(/iphone/i),isWindowsPhone=navigator.userAgent.match(/windows phone/i)||!1,AndroidMobile=null!=navigator.userAgent.match(/Android/i)&&null!=navigator.userAgent.match(/Mobile/i)&&null==navigator.userAgent.match(/Windows/i),IsMobileDevice=/iPad/.test(navigator.userAgent)||isiPhone||isWindowsPhone||AndroidMobile||/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&($(window).width()<=850||$(window).height()<=850)),1==IsMobileDevice&&l(),this.selectedIndex>0){var o=$("#select2-drop .select2-results"),n=o.find(".select2-highlighted").position().top;1==t.ScrollType?o.scrollTop(n+o.scrollTop()):o.scrollTop(n)}}),$(o.ControlsPrefix.ddlPopupCountry).append(n+a),$(o.ControlsPrefix.ddlPopupCountry).select2({searchInputPlaceholder:"Search for a Country",closeOnSelect:!1,formatResult:c,dropdownCssClass:"all-country-flag"}).on("select2-selected",function(e){o.model.CountryId=parseInt(e.choice.id),C(o.model.CountryId),t.Control.select2("data",{id:null,text:null}),p(),setTimeout(function(){$(o.ControlsPrefix.txtStreet).focus()},100)}).on("select2-opening",function(e){$(o.ControlsPrefix.ddlPopupCountry).select2("data",{id:o.model.CountryId})}).on("select2-open",function(e){if(("undefined"==typeof IsMobileDevice||u(IsMobileDevice))&&(isiPhone=null!=navigator.userAgent.match(/iphone/i),isWindowsPhone=navigator.userAgent.match(/windows phone/i)||!1,AndroidMobile=null!=navigator.userAgent.match(/Android/i)&&null!=navigator.userAgent.match(/Mobile/i)&&null==navigator.userAgent.match(/Windows/i),IsMobileDevice=/iPad/.test(navigator.userAgent)||isiPhone||isWindowsPhone||AndroidMobile||/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&($(window).width()<=850||$(window).height()<=850)),1==IsMobileDevice&&l(),this.selectedIndex>0){var o=$("#select2-drop .select2-results"),n=o.find(".select2-highlighted").position().top;1==t.ScrollType?o.scrollTop(n+o.scrollTop()):o.scrollTop(n)}}),h(o.model.CountryId,"0")}},l=()=>{$(".select2-input text-primary demo, :focus,input").prop("focus",!1).blur()},s=e=>{h(o.model.CountryId,"0"),swal({title:o.model.errorMessage,text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn"},function(e){swal.close()})},c=e=>$('<span class="'+e.css+'" >'+e.text+"</span>"),u=e=>void 0===e||null==e||""==e||null==e,h=(e,n)=>{o.model.CountryId=e,I();var a=o.model.countryFlag[e];u(a)&&(o.model.CountryId=t.CurrentLocationCountryID,a=o.model.countryFlag[o.model.CountryId],n=""),"0"!=n&&($(".select2-results").empty(),t.Control.select2("data",{id:null,text:null}),$(".select2-results").empty(),p()),$(o.ControlsPrefix.AddressControllerCountry).removeClass(),$(o.ControlsPrefix.AddressControllerCountry).addClass("selectedcountry "+a),$(o.ControlsPrefix.myCountryPopup).removeClass(),$(o.ControlsPrefix.myCountryPopup).addClass("selectedcountry "+a),$(o.ControlsPrefix.countrySelectOption).removeAttr("style").attr("style","display:none"),$(o.ControlsPrefix.countrySelectOption).removeClass("active"),$(o.ControlsPrefix.dvWrap).removeClass(),$(o.ControlsPrefix.dvWrap).addClass("select-country-mar vg-select-icon-mar add-input-focus-relative "),("undefined"==typeof lblRow||0==Object.keys(lblRow).length||"undefined"!=typeof lblRow&&Object.keys(lblRow).length>0&&lblRow.CountryId!=o.model.CountryId)&&($.grep(o.model.lableLanguage,function(e,t){e.CountryId==o.model.CountryId&&(lblRow=o.model.lableLanguage[t])}),"undefined"!=typeof lblRow&&0!=Object.keys(lblRow).length&&lblRow.CountryId==o.model.CountryId||(lblRow=o.model.lableLanguage[0])),o.model.IsStateless=lblRow.IsStateless,o.model.IsZipless=lblRow.IsZipless},p=()=>{t.AddressData={}},m=(e,t)=>{try{var o=VagaroCorePublicAPIURLV2;if(void 0===window.parent.VagaroCorePublicAPIURLV2||u(window.parent.VagaroCorePublicAPIURLV2)||(o=window.parent.VagaroCorePublicAPIURLV2),u(o))return void console.log("Core API URL not found.");var n="",a=o.split("/");if(void 0!==t&&null!=t&&""!=t)a[3]=t,n=a.join("/")+e;else if("undefined"!=typeof myAccountUserGroupID&&null!=myAccountUserGroupID&&""!=myAccountUserGroupID){var i=myAccountUserGroupID.split(",");i.length>0&&(a[3]=i[0],n=a.join("/")+e)}return""==n&&(n=o+e),n}catch(t){return o+e}},v=()=>{o.model.stateList.length>0&&($(o.ControlsPrefix.ddlState).html(""),$(o.ControlsPrefix.ddlState).html('<option value="0">Select</option>'),$.grep(o.model.stateList,function(e){e.CountryID==o.model.CountryId&&$(o.ControlsPrefix.ddlState).append($("<option></option>").val(e.StateID).html(e.DisplayStateCode))}),void 0===t.AddressData.statecode||u(t.AddressData.statecode)||$.grep(o.model.stateList,function(e){e.StateCode==t.AddressData.statecode&&e.CountryID==o.model.CountryId&&$(o.ControlsPrefix.ddlState).val(e.StateID)}))},f=e=>{1e3==e.ResponseCode&&(o.model.stateList=e.Data,v())},g=e=>{swal({title:o.model.errorMessage,text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn"},function(e){swal.close()})},C=e=>{var t;$(".countryflag").removeClass("active"),o.model.CountryId=e,("undefined"==typeof lblRow||0==Object.keys(lblRow).length||"undefined"!=typeof lblRow&&Object.keys(lblRow).length>0&&lblRow.CountryId!=e)&&($.grep(o.model.lableLanguage,function(t,n){t.CountryId==e&&(lblRow=o.model.lableLanguage[n])}),"undefined"!=typeof lblRow&&0!=Object.keys(lblRow).length&&lblRow.CountryId==e||(lblRow=o.model.lableLanguage[0])),$(o.ControlsPrefix.lblZipCodePopup).text(lblRow.Zip),$(o.ControlsPrefix.txtZip).attr("placeholder",lblRow.Zip),$(o.ControlsPrefix.lblStatePopup).text(lblRow.State),$(o.ControlsPrefix.lblCityPopup).text(lblRow.City),$(o.ControlsPrefix.txtCity).attr("placeholder",lblRow.City),o.model.IsStateless=lblRow.IsStateless,o.model.IsZipless=lblRow.IsZipless,0==lblRow.IsStateDropDown?($(o.ControlsPrefix.txtState).show(),$(o.ControlsPrefix.ddlState).hide(),$(o.ControlsPrefix.dvDdlState).removeClass()):($(o.ControlsPrefix.txtState).hide(),$(o.ControlsPrefix.ddlState).show(),$(o.ControlsPrefix.dvDdlState).addClass("dropdowndiv")),t=o.model.countryFlag[e],$(".flag-"+t).addClass("active"),v(),$(o.ControlsPrefix.AddressControllerCountry).removeClass().addClass("selectedcountry "+t),$(o.ControlsPrefix.myCountryPopup).removeClass(),$(o.ControlsPrefix.myCountryPopup).addClass("selectedcountry "+t),$(".selectoptionpopup").css("display","none"),$(".selectoptionpopup").removeClass("active"),$(o.ControlsPrefix.txtZip).val(""),$(o.ControlsPrefix.txtCity).val(""),$(o.ControlsPrefix.txtStreet).val(""),$(o.ControlsPrefix.txtStreet1).val(""),$(o.ControlsPrefix.txtState).val("")},y=(e,t)=>{t?($(e).fadeIn("fast"),$("html").addClass("popupscroll"),$("body").css("overflow","hidden"),$(e).addClass("in"),$("#pnlCustomer").length&&"none"!==$("#pnlCustomer").css("display")&&$("#pnlCustomer").removeAttr("tabindex"),$(o.ControlsPrefix.txtStreet).focus()):($(e).fadeOut("fast"),$(e).removeClass("in"),$("html").removeClass("popupscroll"),$("body").css("overflow","auto"),$("#pnlCustomer").length&&"none"!==$("#pnlCustomer").css("display")&&$("#pnlCustomer").attr("tabindex","-1"))},k=e=>{if(1==e){if($(o.ControlsPrefix.txtCity).removeClass("errorInput").val(t.AddressData.city),$(o.ControlsPrefix.txtZip).removeClass("errorInput").val(t.AddressData.zip),$(o.ControlsPrefix.txtStreet).attr("maxlength",500).removeClass("errorInput").val(t.AddressData.address),$(o.ControlsPrefix.txtState).val(t.AddressData.state),u(t.Address2Control)||(t.AddressData.address2=$(t.Address2Control).val()),$(o.ControlsPrefix.txtStreet1).val(t.AddressData.address2),""!=t.AddressData.zip&&t.AddressData.country>0){var n={};n.CountryID=parseInt(t.AddressData.country),n.StrZipCode=$.trim(t.AddressData.zip),n.CountryCode=o.model.countryMapForAPI[o.model.CountryId],i(m(o.ApiURLEnum.getStateCode),n,w,b,!1,!1,!0)}return"undefined"!=typeof setPopupPosi&&"undefined"!=typeof getQueryStringData&&"Builder"==getQueryStringData("Type")&&($(o.ControlsPrefix.addressPopup).addClass("wb-general-addresspopup"),$(o.ControlsPrefix.addressPopup).after('<div class="wbgeneraladdresspopup-backdrop"></div>'),setPopupPosi(o.ControlsPrefix.addressPopup)),y(o.ControlsPrefix.addressPopup,!0),!1}return"undefined"!=typeof setPopupPosi&&"undefined"!=typeof getQueryStringData&&"Builder"==getQueryStringData("Type")&&($(o.ControlsPrefix.addressPopup).css({top:"",bottom:""}),$(".wbgeneraladdresspopup-backdrop").remove(),$(o.ControlsPrefix.addressPopup).removeClass("wb-general-addresspopup")),y(o.ControlsPrefix.addressPopup,!1),"undefined"!=typeof SelectedOption&&"2"==SelectedOption&&$("#txtCalAppointmentAddress").val(""),!1},w=e=>{if(1e3==e.ResponseCode){res=e.Data;var t=res.split("|")[0],n=u(res)?0:1*res.split("|")[1],a=res.split("|")[2];$(o.ControlsPrefix.txtCity).val(t),$(o.ControlsPrefix.txtState).val(a),$(o.ControlsPrefix.ddlState).val(n)}},b=e=>{swal({title:"Failed to validate address details.",text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn"},function(e){swal.close()})},S=e=>{if(Object.keys(t.AddressData).length>0){t.AddressData.state=null==t.AddressData.state?"":t.AddressData.state,t.AddressData.zip=null==t.AddressData.zip?"":t.AddressData.zip;var n=t.AddressData.address;n=n+(""!=n?", ":"")+t.AddressData.city,2==t.AddressData.country&&(u(t.AddressData.state)?o.model.IsStateless=1:o.model.IsStateless=0),0==o.model.IsStateless&&(n=n+(""!=n&&""!=t.AddressData.state?", ":"")+t.AddressData.state),n=n+(""!=n&&""!=t.AddressData.zip?", ":"")+t.AddressData.zip,e?(t.Control.select2("val",n),$(".select2-results").empty(),void 0===t.AddressData.address2||u(t.Address2Control)||$(t.Address2Control).val(t.AddressData.address2)):t.Control.select2("val",n),1==t.IsAddManualAddress&&1==t.IsSaveManualAddress&&(t.IsAddManualAddress=!1,t.IsSaveManualAddress=!1,SaveAddressData()),1==t.IsSaveManualAddress&&(t.IsDistance=!0,t.IsSaveManualAddress=!1),1==t.IsDistance&&"undefined"!=typeof GetDistance&&(GetDistance(n),t.IsDistance=!1)}},_=e=>{if("undefined"!=typeof isFromVagaroProduct&&null!=isFromVagaroProduct&&1==isFromVagaroProduct)for(var n=$(".general-addresspopup").length,a=1;a<n;a++)null!=$(".general-addresspopup")[a]&&null!=$(".general-addresspopup")[a]&&$(".general-addresspopup")[a].remove();var i=!1;return $(".validAddress"+t.ControlId).each(function(){""==$(this).val().trim()&&(!this.id.includes("txtZip")||this.id.includes("txtZip")&&0==o.model.IsZipless)?(0==$(this).siblings("span").length&&($(this).addClass("errorInput"),$(this).after('<span id="rfv'+$(this).attr("id")+'" class="requiredErrorText" style="color:Red;">required</span>')),i=!0):0!=$(this).siblings("span").length&&($(this).next("span").remove(),$(this).removeClass("errorInput"))}),i?($(o.ControlsPrefix.addressPopup).find(".errorInput:first").focus(),!1):($(o.ControlsPrefix.txtState).is(":visible")||$(o.ControlsPrefix.txtState).val($(o.ControlsPrefix.ddlState+" option:selected").text()),0!=o.model.IsStateless||""!=$(o.ControlsPrefix.txtState).val().trim()&&"Select"!=$(o.ControlsPrefix.txtState).val().trim()?(1==o.model.IsZipless&&$(o.ControlsPrefix.txtZip).val(""),x(),!1):($(o.ControlsPrefix.txtState).next("span").remove(),$(o.ControlsPrefix.txtState).removeClass("errorInput"),0==o.model.IsZipless?($(o.ControlsPrefix.txtZip).addClass("errorInput"),swal({title:"System can't find State based on entered zipcode.Please enter valid zip.",text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn googlecontrolalert"},function(e){swal.close()})):($(o.ControlsPrefix.txtState).addClass("errorInput"),$(o.ControlsPrefix.txtState).after('<span id="rfv'+o.ControlsPrefix.txtState.replace("#","")+'" class="requiredErrorText" style="color:Red;">required</span>')),!1))},x=()=>{var e=$(o.ControlsPrefix.txtZip).val(),t=o.model.CountryId;if((""!=e||1==o.model.IsZipless)&&t>0){var n={};n.CountryID=parseInt(o.model.CountryId),n.StrZipCode=$(o.ControlsPrefix.txtZip).val().trim(),n.City=$(o.ControlsPrefix.txtCity).val().trim(),n.StateName=$(o.ControlsPrefix.txtState).val().trim(),n.Address=$(o.ControlsPrefix.txtStreet).val().trim()+" "+$(o.ControlsPrefix.txtCity).val().trim()+" "+$(o.ControlsPrefix.txtState).val().trim()+" "+$(o.ControlsPrefix.txtZip).val().trim(),n.IsStateless=1==o.model.IsStateless,n.CountryCode=o.model.countryMapForAPI[o.model.CountryId],i(m(o.ApiURLEnum.getStateCode),n,P,D,!1,!1,!0)}},P=e=>{if(1e3==e.ResponseCode){var n=e.Data;if(u(n))swal({title:"Wrong Address.",text:"",type:"",timer:6e3,showCancelButton:!1,confirmButtonColor:"#eb6663",customClass:"sweet-alert-model auto-footer-btton "});else{$(o.ControlsPrefix.ddlState).html(""),$(o.ControlsPrefix.ddlState).html('<option value="0">Select</option>'),t.AddressData={},t.AddressData.address=$(o.ControlsPrefix.txtStreet).val().trim(),t.AddressData.city=$(o.ControlsPrefix.txtCity).val().trim(),t.AddressData.state=$(o.ControlsPrefix.txtState).val().trim(),t.AddressData.zip=$(o.ControlsPrefix.txtZip).val().trim(),t.AddressData.country=o.model.CountryId,t.AddressData.address2=$(o.ControlsPrefix.txtStreet1).val().trim(),k();var a=n.split("|")[0],i=1*n.split("|")[1],r=n.split("|")[2];""!=a&&(t.AddressData.city=a,$(o.ControlsPrefix.txtCity).removeClass("errorInput").val(a),$(o.ControlsPrefix.txtCity).next("span").css("display","none")),0==u(r)&&(t.AddressData.state=r,t.AddressData.stateId=i,$(o.ControlsPrefix.ddlState).val(i),t.AddressData.statecode=n.split("|")[3]),S(!0)}}},D=e=>{swal({title:o.model.errorMessage,text:"",timer:4e3,type:"",showConfirmButton:!1,customClass:"swal-nobutton sweet-alert-model auto-footer-btton"},function(e){swal.close()})},T=()=>"undefined"!=typeof _glbPluginCountryList&&null!=_glbPluginCountryList&&0!=Object.keys(_glbPluginCountryList).length,I=()=>{2==o.model.CountryId?$(o.ControlsPrefix.dvWrap+" :input[type='text']").prop("placeholder",o.model.addressPlaceHolderUKOnly):$(o.ControlsPrefix.dvWrap+" :input[type='text']").prop("placeholder",o.model.addressPlaceHolder)};n(),a();var F={setAddressData:function(e){var n,a,i,r,d,l,s;t.AddressData=e,n=t.AddressData.country,a=t.AddressData.address,i=t.AddressData.address2,r=t.AddressData.city,d=t.AddressData.state,l=t.AddressData.zip,s=!1,null!=n&&null==d&&h(n,"0"),u(d)?$(o.ControlsPrefix.txtState).val(""):($(o.ControlsPrefix.txtState).val(d),s=!0),u(a)?($(o.ControlsPrefix.txtStreet).val(""),t.AddressData.address=""):($(o.ControlsPrefix.txtStreet).val(a),s=!0),u(r)?($(o.ControlsPrefix.txtCity).val(""),t.AddressData.city=""):($(o.ControlsPrefix.txtCity).val(r),s=!0),u(l)?$(o.ControlsPrefix.txtZip).val(""):($(o.ControlsPrefix.txtZip).val(l),s=!0),u(i)?($(o.ControlsPrefix.txtStreet1).val(""),t.AddressData.address2=""):($(o.ControlsPrefix.txtStreet1).val(i),s=!0),h(n,"0"),S(),0==s&&(t.Control.select2("data",{id:null,text:null}),p())},getAddressData:function(){return 0==Object.keys(t.AddressData).length&&(t.AddressData.country=o.model.CountryId,t.AddressData.address="",t.AddressData.address2="",t.AddressData.city="",t.AddressData.state="",t.AddressData.zip=""),t.AddressData.IsReturnCountryID=t.IsReturnCountryID,u(t.AddressData.country)||(t.AddressData.countryName=o.model.countryName[t.AddressData.country],t.AddressData.countryCode=o.model.countryMapForAPI[t.AddressData.country]),t.AddressData},validateAddressData:function(e=!1,n=!1){if(u(n)||(t.IsDistance=n),""!=t.Control.val().trim()||1==e){if(0==Object.keys(t.AddressData).length||u(t.AddressData.city)||u(t.AddressData.state)&&0==o.model.IsStateless||u(t.AddressData.zip)&&0==o.model.IsZipless||u(t.AddressData.address)||1==e)return 1==e&&($("#mycountryPopupsubTitle"+t.ControlId).html(""),$("#mycountryPopupTitle"+t.ControlId).html("Change Address"),t.IsAddManualAddress=e),""!=t.Control.val()&&(null==typeof t.AddressData||""!=t.AddressData.address&&null!=t.AddressData.address||(t.AddressData.address=t.Control.val().trim())),i(m(o.ApiURLEnum.getState),{},f,g,!1,!1,!0),C(o.model.CountryId),k(1),!1}else{if(t.IsAddressRequired)return $(o.ControlsPrefix.addressControl).addClass("errorInput"),!1;t.AddressData={},$(o.ControlsPrefix.txtZip).val(""),$(o.ControlsPrefix.txtCity).val(""),$(o.ControlsPrefix.txtStreet).val(""),$(o.ControlsPrefix.txtStreet1).val(""),$(o.ControlsPrefix.txtState).val("")}return!0},setDisabledControl:function(e){t.IsDisabled=e,$(o.ControlsPrefix.addressControl).attr("disabled",e),$(o.ControlsPrefix.ddlMainCountry).attr("disabled",e),$(o.ControlsPrefix.ddlPopupCountry).attr("disabled",e);var n=o.model.countryFlag[o.model.CountryId];$(o.ControlsPrefix.AddressControllerCountry).removeClass(),$(o.ControlsPrefix.AddressControllerCountry).addClass("selectedcountry "+(1==e?"select2-container-disabled ":"")+n)},setDisabledCountry:function(e){t.DisabledCountry=e,t.IsReturnCountryID=e,$(o.ControlsPrefix.ddlMainCountry).attr("disabled",e),$(o.ControlsPrefix.ddlPopupCountry).attr("disabled",e);var n=o.model.countryFlag[o.model.CountryId];$(o.ControlsPrefix.AddressControllerCountry).removeClass(),$(o.ControlsPrefix.AddressControllerCountry).addClass("selectedcountry "+(1==e?"select2-container-disabled ":"")+n)},setAddressTwoData:function(e){t.AddressData.address2=e,$(o.ControlsPrefix.txtStreet1).val(t.AddressData.address2)}};return F},$(document).on("click",function(e){try{!1===$(e.target).is(".selectedcountry")&&$(".countryselectoption").length>0&&$(".countryselectoption").hide(),!1===$(e.target).is(".select2-container")&&$(".select2-dropdown-open").length>0&&$(".select2-dropdown-open").select2("close")}catch(e){}}),$.fn.PhonePlugin=function(e){var t=$.extend({Control:this,ControlId:this.attr("id"),CurrentLocationCountryID:1,CountryId:0,UserRole:2,ControlText:"Cell",IsPhoneNoRequire:!1,IsDisabled:!1,ScrollType:2,CellOldValue:"",ValidateReturnObject:{}},e),o={model:{countryFlag:{1:"us-f",2:"uk-f",3:"canada-f",4:"aus-f"},countryDialingCode:{1:"1",2:"44",3:"1",4:"61"},CountryId:void 0===t.CountryId||0==t.CountryId?"undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):t.CurrentLocationCountryID:t.CountryId,DialingCode:"+1",errorMessage:"Something went wrong, Try Again.",IsPaste:!1,IsSelected:!1,nDotCount:0,CountryList:{},CountryCode:"US"},ControlsPrefix:{PhoneControl:"#"+t.ControlId,PhoneControllerCountry:"#PhoneControllerCountry"+t.ControlId,countrySelectOption:"#countryselectoption"+t.ControlId,ddlMainCountry:"#ddlMainCountry"+t.ControlId,dvWrap:"#dvWrap"+t.ControlId,dvDialingCode:"#dvDialingCode"+t.ControlId},Message:{InvalidPhone:"Invalid ",InvalidLength:" should be of ",Required:" is required."},WarningType:{Required:1,InvalidPhone:2,InvalidLength:3}},n=()=>{if(P())a(_glbPluginCountryList);else{var e={},t={businessID:0,loginUserID:0};e.RegisterDeviceRequest=t,((e,t,o,n,a,i,r)=>{var d=new vagaro.ajax;d.datamodel.Token=e,d.datamodel.data=t,d.datamodel.callback=o,d.datamodel.Error=n,void 0!==r&&null!=r&&1==r&&(d.datamodel.IsNewVagaroAPI=!0),void 0!==i&&1==i&&(d.datamodel.ErrorMessage=""),a?d.PostQue():d.Post()})("GetAllCountryList",e,a,d,!1,!0)}},a=e=>{if(void 0!==e&&null!=e&&e.length>0){P()||(_glbPluginCountryList=e),o.model.countryFlag={},o.model.countryDialingCode={},o.model.CountryList=e;var n='<optgroup label="Current Location">',a='<optgroup label="Other Locations">';e.sort((e,t)=>{var o=e.CountryName.toUpperCase(),n=t.CountryName.toUpperCase();return o<n?-1:o>n?1:0}),$.each(e,function(e,i){if(2==t.UserRole||1==t.UserRole&&!l(i.IsBusinessUseOnly)&&1==i.IsBusinessUseOnly){var r="liFront"+t.ControlId+e;i.CSSClass,i.CountryName,i.DialingCode;$("#"+r).bind("click",function(){o.model.CountryId=i.CountryID,o.model.DialingCode=i.DialingCode,s()}),o.model.countryFlag[i.CountryID]=i.CSSClass,o.model.countryDialingCode[i.CountryID]=i.DialingCode,i.CountryID==("undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):t.CurrentLocationCountryID)?n+=' <option class="'+i.CSSClass+'" value="'+i.CountryID+'">'+i.CountryName+"+"+i.DialingCode+"</option> </optgroup >":a+=' <option class="'+i.CSSClass+'" value="'+i.CountryID+'">'+i.CountryName+"+"+i.DialingCode+"</option>"}}),a+="</optgroup >",$(o.ControlsPrefix.ddlMainCountry).append(n+a),$(o.ControlsPrefix.ddlMainCountry).select2({searchInputPlaceholder:"Search for a Country",closeOnSelect:!1,dropdownCssClass:"all-country-flag",formatResult:r}).on("select2-selected",function(e){o.model.CountryId=parseInt(e.choice.id),s(),b(),setTimeout(function(){$(o.ControlsPrefix.PhoneControl).focus()},100)}).on("select2-opening",function(e){!1===$(e.target).is(".select2-container")&&$(".select2-dropdown-open").select2("close"),$(o.ControlsPrefix.ddlMainCountry).select2("data",{id:o.model.CountryId})}).on("select2-open",function(e){if(("undefined"==typeof IsMobileDevice||l(IsMobileDevice))&&(isiPhone=null!=navigator.userAgent.match(/iphone/i),isWindowsPhone=navigator.userAgent.match(/windows phone/i)||!1,AndroidMobile=null!=navigator.userAgent.match(/Android/i)&&null!=navigator.userAgent.match(/Mobile/i)&&null==navigator.userAgent.match(/Windows/i),IsMobileDevice=/iPad/.test(navigator.userAgent)||isiPhone||isWindowsPhone||AndroidMobile||/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&($(window).width()<=850||$(window).height()<=850)||/androidcheckin/.test(navigator.userAgent)),1==IsMobileDevice&&$(".select2-input text-primary demo, :focus,input").prop("focus",!1).blur(),this.selectedIndex>0){var o=$("#select2-drop .select2-results"),n=o.find(".select2-highlighted").position().top;1==t.ScrollType?o.scrollTop(n+o.scrollTop()):o.scrollTop(n)}}),s(),b()}},r=e=>{var t=e.text.split("+");return $('<span class="'+e.css+'" >'+t[0]+'</span><span class="country-code-text" >'+(1==l(t[1])?"":"+"+t[1])+"</span>")},d=e=>{swal({title:o.model.errorMessage,text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn"},function(e){swal.close()})},l=e=>void 0===e||null==e||""==e||null==e,s=()=>{0==o.model.CountryId&&(o.model.CountryId=1),void 0!==o.model.countryFlag[o.model.CountryId]&&null!=o.model.countryFlag[o.model.CountryId]||(o.model.CountryId=1),o.model.CountryId="undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):o.model.CountryId;var e=o.model.countryFlag[o.model.CountryId];l(e)&&(o.model.CountryId=t.CurrentLocationCountryID,e=o.model.countryFlag[o.model.CountryId]),o.model.DialingCode=o.model.countryDialingCode[o.model.CountryId],$(o.ControlsPrefix.PhoneControllerCountry).removeClass(),$(o.ControlsPrefix.PhoneControllerCountry).addClass("selectedcountry "+e),$(o.ControlsPrefix.myCountryPopup).removeClass(),$(o.ControlsPrefix.myCountryPopup).addClass("selectedcountry "+e),$(o.ControlsPrefix.countrySelectOption).removeAttr("style").attr("style","display:none"),$(o.ControlsPrefix.countrySelectOption).removeClass("active"),$(o.ControlsPrefix.dvWrap).removeClass(),$(o.ControlsPrefix.dvWrap).addClass("select-country-mar vg-select-icon-mar input-focus-relative "+e),$(o.ControlsPrefix.dvDialingCode).text("+"+o.model.DialingCode)},c=()=>{u(),p(3,0),y()},u=()=>{var e=t.Control,o=$(e).val().trim();$(e).val(h(o))},h=e=>(e.match(/(<([^>]+)>)/gi)&&(e=e.replace(/(<([^>]+)>)/gi,"")),e),p=(e,t)=>{var n=$(o.ControlsPrefix.PhoneControl);nDotCount=0;var a=0;if(n.val(m(v(n.val(),e),20)),1==e&&1==g(n.val())){if(n.val(Math.round(n.val()*Math.pow(10,t))/Math.pow(10,t)),0==g(n.val()))for(a=0;a<t;a++)0;else if(n.val().length-1-C(n.val())<t)for(a=n.val().length-1-C(n.val());a<t;a++)0}else if(1==e&&0==g(n.val()))for(n.val(Math.round(n.val()*Math.pow(10,t))/Math.pow(10,t)),a=0;a<t;a++)0},m=(e,t)=>{if(t>0&&t<e.length){var o=e.split(""),n="",a=0;for(a=0;a<t;a++)n+=o[a];return n}return e},v=(e,t)=>{var o="",n=e.length,a=e.split(""),i=0,r=0;for(r=0;r<n;r++)1==f(a[r],t)&&(1==t?"."==a[r]&&0==i&&1!=nDotCount?(o+=a[r],i+=1,nDotCount=1):"."!=a[r]&&(o+=a[r]):o+=a[r]);return o},f=(e,t)=>{var o;0==t?o="0123456789":1==t?o="0123456789.":2==t?o="0123456789 ":3==t&&(o="0123456789()- ");var n,a=!0;for(i=0;i<e.length&&1==a;i++)n=e.charAt(i),-1==o.indexOf(n)&&(a=!1);return a},g=e=>{var t=0,o=!1;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(o=!0);return o},C=e=>{var t=0,o=0;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(o=t);return o},y=(e=!1)=>{var n=$(o.ControlsPrefix.PhoneControl),a=!0,i=o.model.CountryId,r="",d=0;if(n.val().length>0){var s=n.val().replace(/[^0-9.]/g,"").trim();if("undefined"!=typeof _sharing&&null!=_sharing&&void 0!==_sharing.SelectedFFRelation&&null!=_sharing.SelectedFFRelation&&""!=_sharing.SelectedFFRelation&&"child"==_sharing.SelectedFFRelation.toLowerCase()&&""===s)return!e||{isSucess:!0,WarningMessage:"",WarningType:0};var c="";if(i<=4)Minlength=4==i||2==i?9:10,Maxlength=4==i||2==i?11:10,c=Minlength==Maxlength?" 10 ":" 9 to 11 ",""==n.val().replace(/[^0-9.]/g,"").trim()?(a=!1,r="Please enter "+t.ControlText+".",d=o.WarningType.Required):(n.val().trim().match(/\d/g).length<Minlength||n.val().trim().match(/\d/g).length>Maxlength)&&(a=!1,r=t.ControlText+o.Message.InvalidLength+c+"digits.",d=o.WarningType.InvalidLength);else{var u=new libphonenumber.AsYouType(x(o.model.CountryId).CountryCode);u.input(n.val().replace(/[^0-9.]/g,""));a=u.isValid()}}else 1==t.IsPhoneNoRequire&&(a=!1,d=o.WarningType.Required,r=t.ControlText+o.Message.Required);return a?n.removeClass("errorInput"):(n.addClass("errorInput"),0==e&&(d=l(r)?o.WarningType.InvalidPhone:d,"undefined"!=typeof Webflow&&null!=Webflow&&void 0!==Webflow.require&&null!=Webflow.require&&S(l(r)?o.Message.InvalidPhone+t.ControlText+".":r))),0==e?a:(ValidateCellNoResult={},ValidateCellNoResult.WarningMessage=l(r)?o.Message.InvalidPhone+t.ControlText+".":r,ValidateCellNoResult.isSucess=a,ValidateCellNoResult.WarningType=d,ValidateCellNoResult)},k=(e,n)=>{var a=t.Control;if("Microsoft Internet Explorer"==navigator.appName){if(o.model.IsSelected){o.model.nDotCount=0;var i=m(w(a.val(),n),11);a.val(i),o.model.IsSelected=!1}8!=e.keyCode&&46!=e.keyCode||g(a.val())||(o.model.nDotCount=0),""==a.val()&&(o.model.nDotCount=0)}else{if("keyup"==e.type&&o.model.IsPaste){o.model.nDotCount=0;i=m(w(a.val(),n),11);a.val(i),o.model.IsPaste=!1}8!=e.which&&46!=e.which||g(a.val())||(o.model.nDotCount=0),""==a.val()&&(o.model.nDotCount=0)}},w=(e,t)=>{var n="",a=e.length,i=e.split(""),r=0,d=0;for(d=0;d<a;d++)1==f(i[d],t)&&(1==t?"."==i[d]&&0==r&&1!=o.model.nDotCount?(n+=i[d],r+=1,o.model.nDotCount=1):"."!=i[d]&&(n+=i[d]):n+=i[d]);return n},b=()=>{var e=o.model.CountryId,n=$(o.ControlsPrefix.PhoneControl);if(void 0!==e&&null!=e&&""!=e){var a=n.val().replace(/([()-\s])+/g,""),i=a.length;if(i<=0)return;if(11==i&&0==a[0]&&parseInt(e)<=4&&(t.CellOldValue=a,i=(a=a.substring(1)).length),"1"!=e&&"3"!=e||10!=i)if("2"==e)i>=9&&i<=11&&(d="1"==a.substring(0,1)?a.replace(/(\d{4})\-?(\d{6})/,"$1 $2"):"2"==a.substring(0,1)?a.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"):"7"==a.substring(0,1)?a.replace(/(\d{4})\-?(\d{3})\-?(\d{3})/,"$1 $2 $3"):a.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"),t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d));else if("4"==e){if(i>=9&&i<=11){d=a.replace(/(\d{1})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3");10==i&&(d=a.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")),t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}}else{var r=new libphonenumber.AsYouType(x(o.model.CountryId).CountryCode);d=r.input(a);!r.isValid()||t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}else if("3"==e){var d=a.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3");t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}else{var d=a.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3");t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}}else{d=n.val().replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1)-$2-$3");n.val(d)}},S=e=>{$(".banner-warning .text-block-28").html(e);var t=Webflow.require("ix"),o=$(".banner-warning"),n=_(e);if("undefined"!=typeof ver)if(ver[0]<=9){var a={type:"click",preserve3d:!0,stepsA:[{display:"-webkit-flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(a,o)}else{a={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(a,o)}else{a={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(a,o)}},_=e=>{var t="2s";return""!=e&&e.length>0&&(e.length<50?t="2s":e.length<100?t="3s":e.length<200?t="4s":e.length>200&&(t="7s")),t},x=e=>(Country=jQuery.grep(o.model.CountryList,function(t){return t.CountryID==parseInt(e)}),Country[0]),P=()=>"undefined"!=typeof _glbPluginCountryList&&null!=_glbPluginCountryList&&0!=Object.keys(_glbPluginCountryList).length;return l(t.ControlId)||(()=>{var e=t.ControlId,a=document.getElementById(e).tabIndex;$("#"+e).wrap('<div id="dvWrap'+e+'" class="select-country-mar vg-select-icon-mar input-focus-relative address-phone-plugin">').parent().wrap('<div class="addresswithcountry vagaro-dropdown-icon clearfix">');var i=' <div class="w-custom-dropdown countrydropdown allflag-show">';o.ControlsPrefix.countrySelectOption,i+='<div id="PhoneControllerCountry'+e+'" class="selectedcountry" ></div > ',i+='<div id="dvDialingCode'+e+'" class="country-code" >+1</div > ',i+='<select id="ddlMainCountry'+e+'" class="form-control" tabindex="'+a+'">  </select>',i+="</div>",i+='<ul id="countryselectoption'+e+'" class="countryselectoption" style="display: none">',i+=" </ul>",$("#countryselectoption"+e).length<=0&&(null!=$("#"+e).parent()?$("#"+e).parent().before(i):$("#"+e).before(i),n(),$(o.ControlsPrefix.PhoneControl).on("blur",function(){c()}),$(o.ControlsPrefix.PhoneControl).on("keyup",function(e){b(),k(e,3)}),$(o.ControlsPrefix.PhoneControllerCountry).bind("click",function(){t.IsDisabled||$(o.ControlsPrefix.countrySelectOption).is(":visible")||$(".countryselectoption").hide()}))})(),{validatePhoneNumber:function(e=!1,o=null,n=null){if(0==e)return y(e);null!=typeof n&&null!=n&&(n.IsValid=!0);var a=y(e);return null!=typeof n&&null!=n&&(n.IsValid=a.isSucess),0==a.isSucess?(t.ValidateReturnObject=a,null!=o&&($(o).html(a.WarningMessage),$(o).show()),a.isSucess):(null!=o&&$(o).hide(),a.isSucess)},setPhoneData:function(e,n){return o.model.CountryId=e,t.CellOldValue="",l(n)||$(o.ControlsPrefix.PhoneControl).val(n),s(),b(),$(o.ControlsPrefix.PhoneControl).val()},getPhoneData:function(){var e={};e.countryId=parseInt(o.model.CountryId);var t="",n="";return null!=$(o.ControlsPrefix.PhoneControl).val()&&""!=$(o.ControlsPrefix.PhoneControl).val()&&(t=$(o.ControlsPrefix.PhoneControl).val().replace(/([()-\s])+/g,""),n=e.countryId>5?t:2==e.countryId?t.length>11?t.substring(1):t:t.length>10?t.substring(1):t),e.phoneNo=n,e.dialingCode=o.model.DialingCode,e.countryCode=x(o.model.CountryId).CountryCode,e},getCountryId:function(){return o.model.CountryId},setDisabledControl:function(e){t.IsDisabled=e,$(o.ControlsPrefix.PhoneControl).attr("disabled",e),$(o.ControlsPrefix.ddlMainCountry).attr("disabled",e);var n=o.model.countryFlag[o.model.CountryId];$(o.ControlsPrefix.PhoneControllerCountry).removeClass(),$(o.ControlsPrefix.PhoneControllerCountry).addClass("selectedcountry "+(1==e?"select2-container-disabled ":"")+n)},setDisabledCountry:function(e){t.IsDisabled=e,$(o.ControlsPrefix.ddlMainCountry).attr("disabled",e);var n=o.model.countryFlag[o.model.CountryId];$(o.ControlsPrefix.PhoneControllerCountry).removeClass(),$(o.ControlsPrefix.PhoneControllerCountry).addClass("selectedcountry "+(1==e?"select2-container-disabled ":"")+n)},getCountryList:function(){return o.model.CountryList},getdialingCode:function(e){return e>0?x(e).DialingCode:""},getphoneformat:function(e,o){if(void 0!==o&&null!=o&&""!=o){var n=null==e?"":e.replace(/([()-\s])+/g,""),a=n.length;if(a<=0)return;if(0==n[0]&&parseInt(o)<=4&&(t.CellOldValue=n,a=(n=n.substring(1)).length),!("1"!=o&&"3"!=o||9!=a&&10!=a))return"3"==o?n.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3"):n.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3");if("2"==o){if(9==a||10==a)return"1"==n.substring(0,1)?n.replace(/(\d{4})\-?(\d{6})/,"$1 $2"):"2"==n.substring(0,1)?n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"):"7"==n.substring(0,1)?n.replace(/(\d{4})\-?(\d{3})\-?(\d{3})/,"$1 $2 $3"):n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3")}else{if("4"!=o)return new libphonenumber.AsYouType(x(o>0?o:1).CountryCode).input(e);if(8==a||9==a)return n.replace(/(\d{1})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3");if(10==a)return n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")}}return e},getValidateMessage:function(){return t.ValidateReturnObject}}},$(document).on("click",function(e){try{!1===$(e.target).is(".select2-container")&&$(".select2-dropdown-open").length>0&&$(".select2-dropdown-open").select2("close")}catch(e){}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).libphonenumber={})}(this,function(e){"use strict";var t={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6],0,0,0,0,0,0,0,[["6[2-467]\\d{3}",[5]],["4\\d{4}",[5]],0,0,0,0,["(?:0[1-9]|[1589]\\d)\\d{4}",[6]]]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[["[78]\\d{5}",[6]],["690\\d{6}|[356]\\d{5}",[6,9]],["180[02]\\d{4}",[8]],["[19]\\d{5}",[6]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["[2-4679][2-8]\\d{6}",[8]],["5[024-68]\\d{7}",[9]],["400\\d{6}|800\\d{2,9}"],["900[02]\\d{5}",[9]],0,0,["600[25]\\d{5}",[9]],0,0,["700[05]\\d{5}",[9]]]],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}"],["7\\d{8}"]]],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268",[["268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}"],["268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,["26840[69]\\d{4}"],["26848[01]\\d{4}"]]],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264",[["264(?:292|4(?:6[12]|9[78]))\\d{4}"],["264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,["264724\\d{4}"]]],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0",0,0,0,0,0,[["4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",[8]],["6(?:[78][2-9]|9\\d)\\d{6}",[9]],["800\\d{4}",[7]],["900[1-9]\\d\\d",[6]],["700[2-9]\\d{4}",[8]],0,0,0,0,["808[1-9]\\d\\d",[6]]]],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}"],["(?:33|4[1349]|55|77|88|9[13-9])\\d{6}"],["800\\d{5}"],["90[016]\\d{5}"],0,0,0,0,["60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[01])\\d{4}"],["80[1-4]\\d{5}"]]],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],0,0,0,0,0,0,[["2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}"],["9[1-59]\\d{7}"]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",0,0,[["3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",[10]],["93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}"],["800\\d{7,8}"],["60[04579]\\d{7}",[10]],0,0,["810\\d{7}",[10]]]],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684",[["6846(?:22|33|44|55|77|88|9[19])\\d{4}"],["684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}"],["6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",[7,8,9,10,11,12,13]],["800\\d{6,10}",[9,10,11,12,13]],["(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",[9,10,11,12,13]],0,0,0,0,["5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",[5,6,7,8,9,10,11,12,13]],["8(?:10|2[018])\\d{6,10}|828\\d{5}",[8,9,10,11,12,13]]]],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],0,0,0,0,0,0,[["5(?:2\\d|8[1-9])\\d{4}"],["(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}"],["800\\d{4}"],["900\\d{4}"],0,0,0,0,["(?:28\\d|501)\\d{4}"]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",[["18[1-8]\\d{3,6}",[6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}"],["36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}"],["88\\d{7}"],["900200\\d{3}"]]],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",[8]],["6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}"],["8[08]\\d{6}",[8]],["9[0246]\\d{6}",[8]],0,0,["703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",[8]],0,0,["8[12]\\d{6}",[8]]]],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246",[["246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}"],["246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:246976|900[2-9]\\d\\d)\\d{4}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,["246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}"],0,["24631\\d{5}"]]],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0",0,0,0,0,0,[["(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}"],["(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",[10]],["80[03]\\d{7}",[10]],0,0,0,0,0,["96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",[10]]]],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0",0,0,0,0,0,[["80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",[8]],["4[5-9]\\d{7}",[9]],["800[1-9]\\d{4}",[8]],["(?:70(?:2[0-57]|3[04-7]|44|6[569]|7[0579])|90(?:0[0-8]|1[36]|2[0-3568]|3[0-689]|[47][2-68]|5[1-68]|6[0-378]|9[34679]))\\d{4}",[8]],0,0,["78(?:0[57]|1[014-8]|2[25]|3[15-8]|48|[56]0|7[06-8]|9\\d)\\d{4}",[8]],0,0,["7879\\d{4}",[8]]]],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],0,0,0,0,0,0,[["2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}"],["(?:0[1-35-7]|5[1-8]|[67]\\d)\\d{6}"]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",[6,7,8]],["(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",[8,9]],["800\\d{5}",[8]],["90\\d{6}",[8]],0,0,0,0,0,["700\\d{5}",[8]]]],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],0,0,0,0,0,0,[["(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}"],["(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}"],["80\\d{6}"],["(?:87|9[014578])\\d{6}"],0,0,0,0,0,["84\\d{6}"]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],0,0,0,0,0,0,[["(?:22|31)\\d{6}"],["(?:29|6[1257-9]|7[125-9])\\d{6}"]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]],0,0,0,0,0,0,[["2(?:02|1[037]|2[45]|3[68])\\d{5}"],["(?:40|5[1-9]|6\\d|9[013-9])\\d{6}"],0,0,0,0,["81\\d{6}"],0,["857[58]\\d{4}"]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441",[["441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}"],["441(?:[2378]\\d|5[0-39])\\d{5}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}"],["(?:22[89]|[78]\\d\\d)\\d{4}"],0,0,0,0,0,0,["5[34]\\d{5}"]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?",0,0,0,[["(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",[8]],["[67]\\d{7}",[8]],["8001[07]\\d{4}",[9]]]],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]",[["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}"],["(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}"]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",0,0,[["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",[10]],["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",[10,11]],["800\\d{6,7}",[9,10]],["300\\d{6}|[59]00\\d{6,7}",[9,10]],0,0,0,0,0,["(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}",[8,10]]]],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242",[["242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-4]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}"],["242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}"],["242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,["242225\\d{4}"]]],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],0,0,0,0,0,0,[["(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",[7]],["(?:1[67]|77)\\d{6}",[8]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",[7]],["(?:321|7(?:[1-7]\\d|8[01]))\\d{5}",[8]],["(?:0800|800\\d)\\d{6}",[10]],["90\\d{5}",[7]],0,0,0,0,["79(?:1(?:[01]\\d|2[0-7])|2[0-7]\\d)\\d{3}",[8]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,[["(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",[9]],["(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",[9]],["800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}"],["(?:810|902)\\d{7}",[10]],0,0,0,0,["249\\d{6}",[9]]],"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],0,0,0,0,0,0,[["(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",[7]],["6[0-35-7]\\d{5}",[7]],["0800\\d{7}",[11]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-7]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["12\\d{7}|[1-6]\\d{6}"],["88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}"]]],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],0,0,0,0,0,0,[["2[12]\\d{6}"],["7[02457]\\d{6}"],0,["8776\\d{4}"]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],0,0,0,0,0,0,[["222[1-589]\\d{5}"],["026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}"],0,["80(?:0\\d\\d|120)\\d{4}"]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}"],["7[35-9]\\d{7}"],["800\\d{6}"],["90[016]\\d{6}"],["878\\d{6}"],0,["5[18]\\d{7}"],["74[0248]\\d{6}"],0,["84[0248]\\d{6}"]]],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],0,0,0,0,0,0,[["2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|[23][45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}"],["0704[0-7]\\d{5}|0(?:[15]\\d\\d|7(?:0[0-37-9]|[4-9][7-9]))\\d{6}"]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["(?:2\\d|3[13-7]|4[1-5])\\d{3}"],["[578]\\d{4}"]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],0,0,0,0,0,0,[["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[0346]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|7[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["",[9]],["(?:123|8)00\\d{6}",[9,11]],0,0,0,0,0,["44\\d{7}",[9]],["600\\d{7,8}",[10,11]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],0,0,0,0,0,0,[["2(?:22|33)\\d{6}",[9]],["(?:24[23]|6[25-9]\\d)\\d{6}",[9]],["88\\d{6,7}"]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,[["(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",[7,8,9,10,11]],["1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",[11]],["(?:(?:10|21)8|8)00\\d{7}",[10,12]],["16[08]\\d{5}",[8]],0,0,0,0,0,["400\\d{7}|950\\d{7,8}|(?:10|2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",[7,8,9,10,11]]],"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0(4(?:[14]4|56)|[579])?",0,0,0,[["60[124-8][2-9]\\d{6}",[10]],["3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",[10]],["1800\\d{7}",[11]],["19(?:0[01]|4[78])\\d{7}",[11]]]],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))",0,0,0,[["210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",[8]],["(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",[8]],["800\\d{7}",[10]],["90[059]\\d{7}",[10]],0,0,0,0,["(?:210[0-6]|4\\d{3}|5100)\\d{4}",[8]]]],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}"],["5\\d{7}",[8]],["800\\d{7}",[10]],0,0,0,0,0,0,["807\\d{7}",[10]]]],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}"],["(?:36|5[1-389]|9\\d)\\d{5}"],["800\\d{4}"],0,0,0,0,0,["(?:3[3-5]|4[356])\\d{5}"]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]",[["9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}"],["953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}"],0,0,0,0,0,["955\\d{5}",[8]],0,["60[0-2]\\d{4}",[7]]]],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],0,0,0,0,0,0,[["2[2-6]\\d{6}"],["9[4-79]\\d{6}"],["800\\d{5}"],["90[09]\\d{5}"],["700\\d{5}"],0,["(?:50|77)\\d{6}"],0,0,["80[1-9]\\d{5}"]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}"],["(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}"],["800\\d{6}"],["9(?:0[05689]|76)\\d{6}"],["70[01]\\d{6}"],0,["9(?:5\\d|7[2-4])\\d{6}"],0,["9[17]0\\d{6}"],["8[134]\\d{7}"]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0",0,0,0,0,0,[["32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",[5,6,7,8,9,10,11,12,13,14,15]],["15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",[10,11]],["800\\d{7,12}",[10,11,12,13,14,15]],["(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",[10,11]],["700\\d{8}",[11]],0,["18(?:1\\d{5,11}|[2-9]\\d{8})",[8,9,10,11,12,13,14]],["16(?:4\\d{1,10}|[89]\\d{1,11})",[4,5,6,7,8,9,10,11,12,13,14]],0,["180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",[7,8,9,10,11,12,13,14]]]],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],0,0,0,0,0,0,[["2(?:1[2-5]|7[45])\\d{5}"],["77\\d{6}"]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],0,0,0,0,0,0,[["(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}"],[""],["80\\d{6}"],["90\\d{6}"]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767",[["767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}"],["767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9",[["8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}"],["8[024]9[2-9]\\d{6}"],["8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0",0,0,0,0,0,[["9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}"],["(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",[9]],["800\\d{6}",[9]],["80[3-689]1\\d{5}",[9]],0,0,0,0,["98[23]\\d{6}",[9]],["80[12]1\\d{5}",[9]]]],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["[2-7][2-7]\\d{6}",[8]],["964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",[9]],["1800\\d{7}|1[78]00\\d{6}",[10,11]],0,0,0,0,0,["[2-7]890\\d{4}",[8]]]],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",[7]],["(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:23|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[3679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",[7,8]],["800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}"],["(?:40\\d\\d|900)\\d{4}",[7,8]],["70[0-2]\\d{5}",[8]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0",0,0,0,0,0,[["13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",[8,9]],["1[0-25]\\d{8}",[10]],["800\\d{7}",[10]],["900\\d{7}",[10]]]],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]",[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}"],["(?:17[1-3]|7\\d\\d)\\d{4}"]]],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],0,0,0,0,0,0,[["96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}"],["(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}"],["[89]00\\d{6}"],["80[367]\\d{6}"],["70\\d{7}"],0,["51\\d{7}"],0,0,["90[12]\\d{6}"]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0",0,0,0,0,0,[["11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[78]|2[69]|39|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}"],["7001\\d{5}|(?:7(?:0[1-9]|1[01]|77|86|99)|9\\d\\d)\\d{6}"]]],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",[["(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",[5,6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,[["603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",[7]],["(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",[7]],["0800\\d{7}",[11]]],"00"],FK:["500","00","[2-7]\\d{4}",[5],0,0,0,0,0,0,0,[["[2-47]\\d{4}"],["[56]\\d{4}"]]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]],0,0,0,0,0,0,[["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}"],["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}"]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))",0,0,0,[["(?:20|[34]\\d|8[19])\\d{4}"],["(?:[27][1-9]|5\\d|9[16])\\d{4}"],["80[257-9]\\d{3}"],["90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d"],0,0,0,0,["(?:6[0-36]|88)\\d{4}"]]],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0",0,0,0,0,0,[["(?:[1-35]\\d|4[1-9])\\d{7}"],["(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7(?:00|[3-9]\\d))\\d{6}"],["80[0-5]\\d{6}"],["836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}"],0,0,["80[6-9]\\d{6}"],0,["9\\d{8}"],["8(?:1[01]|2[0156]|4[02]|84)\\d{6}"]]],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",0,0,[["[01]1\\d{6}",[8]],["(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}"]]],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473",[["473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}"],["473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}"],["5(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|11(?:33|51)|[25]222|3333)[0-4]\\d{3}|5(?:00(?:0\\d|5[05])|11(?:00|[124]\\d|3[01])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}"],["800\\d{6}"],0,0,0,0,0,["70[67]\\d{6}"]]],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["594(?:[023]\\d|1[0-2]|4[03-9]|5[6-9]|6[0-3]|80|9[0-8])\\d{4}"],["694(?:[0-249]\\d|3[0-48])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976\\d{6}"]]],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0",0,0,0,0,0,[["3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",[9]],["(?:2(?:[0346-9]\\d|5[67])|5(?:[0457]\\d|6[01]|9[1-9]))\\d{6}",[9]],["800\\d{5}",[8]]]],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]],0,0,0,0,0,0,[["21(?:6[24-7]\\d|90[0-2])\\d{3}|2(?:00|2[25])\\d{5}"],["(?:5[146-8]\\d|606)\\d{5}"]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],0,0,0,0,0,0,[["(?:19|3[1-7]|6[14689]|70|8[14-79]|9\\d)\\d{4}"],["[245]\\d{5}"],["80\\d{4}"],0,0,0,0,0,["3[89]\\d{4}"]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}"],["(?:[23679]\\d|5[0-389])\\d{5}"]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],0,0,0,0,0,0,[["3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",[8]],["6[0-356]\\d{7}",[9]],0,0,0,0,0,0,["722\\d{6}",[9]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-289]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]],0,0,0,0,0,0,[["33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}"],["(?:222|55\\d)\\d{6}"],["80\\d[1-9]\\d{5}"],["90\\d[1-9]\\d{5}"]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",[10]],["68[57-9]\\d{7}|(?:69|94)\\d{8}",[10]],["800\\d{7,9}"],["90[19]\\d{7}",[10]],["70\\d{8}",[10]],0,["5005000\\d{3}",[10]],0,0,["8(?:0[16]|12|[27]5|50)\\d{7}",[10]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["[267][2-9]\\d{6}",[8]],["[3-5]\\d{7}",[8]],["18[01]\\d{8}",[11]],["19\\d{9}",[11]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671",[["671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],0,0,0,0,0,0,[["443\\d{6}",[9]],["9(?:5\\d|6[569]|77)\\d{6}",[9]],0,0,0,0,0,0,["40\\d{5}",[7]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],0,0,0,0,0,0,[["(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}"],["(?:6\\d\\d|70[015-7])\\d{4}"],["(?:289|862)\\d{4}"],["9008\\d{3}"]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:38[45][0-8]|58(?:0[1-8]|1[2-9]))\\d{4}|(?:2(?:[13-9]\\d|2[013-9])|3(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69]|89))\\d{5}",[8]],["(?:4(?:44[5-9]|6(?:0[0-7]|1[0-6]|4[0-57-9]|6[0-4]|7[0-8]))|573[0-6]|6(?:26[013-8]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|9(?:29[013-9]|59[0-4]))\\d{4}|(?:4(?:4[01]|6[2358])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",[8]],["800\\d{6}",[9]],["900(?:[0-24-9]\\d{7}|3\\d{1,4})",[5,6,7,8,11]],["8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",[8]],0,["30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",[8]],["7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",[8]]],"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],0,0,0,0,0,0,[["2(?:2(?:0[0-359]|1[1-367]|[23]\\d|4[03-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[78]|2[3-59]|3[13-9]|4[0-68]|5[1-35])|5(?:0[7-9]|16|4[03-5]|5\\d|6[014-6]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[04]|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",[8]],["[37-9]\\d{7}",[8]],["8002\\d{7}",[11]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",[8,9]],["98\\d{6,7}|975(?:1\\d|9[67])\\d{4}|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}",[8,9]],["80[01]\\d{4,6}",[7,8,9]],["6[01459]\\d{6}|6[01]\\d{4,5}",[6,7,8]],["7[45]\\d{6}",[8]],0,["62\\d{6,7}|72\\d{6}",[8,9]]]],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]],0,0,0,0,0,0,[["2(?:2\\d|5[1-5]|81|9[149])\\d{5}"],["[34]\\d{7}"],["8\\d{7}"],0,0,0,0,0,["9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}"]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06",0,0,0,0,0,[["(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",[8]],["(?:[257]0|3[01])\\d{7}",[9]],["(?:[48]0\\d|680[29])\\d{5}"],["9[01]\\d{6}",[8]],0,0,["38\\d{7}",[9]],0,["21\\d{7}",[9]]]],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0",0,0,0,0,0,[["2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",[7,8,9,10,11]],["8[1-35-9]\\d{7,10}",[9,10,11,12]],["00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",[8,9,10,11,12,13]],["809\\d{7}",[10]],0,0,["(?:1500|8071\\d{3})\\d{3}",[7,10]],0,0,["804\\d{7}",[10]]]],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}"],["8(?:22|[35-9]\\d)\\d{6}",[9]],["1800\\d{6}",[10]],["15(?:1[2-8]|[2-8]0|9[089])\\d{6}",[10]],["700\\d{6}",[9]],0,["818\\d{6}",[9]],0,["76\\d{7}",[9]],["18[59]0\\d{6}",[10]]]],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0",0,0,0,0,0,[["153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",[8,11,12]],["5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",[9]],["1(?:255|80[019]\\d{3})\\d{3}",[7,10]],["1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}",[8,10]],0,0,["1599\\d{6}",[10]],0,["7(?:380|8(?:33|55|77|81))\\d{5}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",[9]],["1700\\d{6}",[10]]]],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24",[["1624(?:230|[5-8]\\d\\d)\\d{3}"],["76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}"],["808162\\d{4}"],["8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}"],["70\\d{8}"],0,["3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}"],0,["56\\d{8}"]]],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0",0,0,0,0,0,[["2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",[10]],["(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}",[10]],["000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))"],["186[12]\\d{9}",[13]],0,0,["140\\d{7}",[10]],0,0,["1860\\d{7}",[11]]]],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]],0,0,0,0,0,0,[["37\\d{5}"],["38\\d{5}"]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",[8,9]],["7[3-9]\\d{8}",[10]]]],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",[6,7,10]],["9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:[0-46]\\d\\d|5[15]0|8(?:1\\d|88)|9(?:0[0-3]|[19]\\d|21|77|8[7-9])))\\d{5}",[10]],0,0,0,0,["96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",[4,5]]]],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",[7]],["(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}"],["80[0-8]\\d{4}",[7]],["90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",[7]],0,0,["809\\d{4}",[7]],0,["49[0-24-79]\\d{4}",[7]]],"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876",[["8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[02357-9]|[23]\\d|40|5[06]|6[2-589]|7[025-7]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}"],["(?:658295|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",[8]],["7(?:[78][0-25-9]|9\\d)\\d{6}",[9]],["80\\d{6}",[8]],["9\\d{7}",[8]],["70\\d{7}",[9]],0,["8(?:10|8\\d)\\d{5}",[8]],["74(?:66|77)\\d{5}",[9]],0,["85\\d{6}",[8]]]],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",[9]],["[7-9]0[1-9]\\d{7}",[10]],["00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}"],["990\\d{6}",[9]],["60\\d{7}",[9]],0,["570\\d{6}",[9]],["20\\d{8}",[10]],["50[1-9]\\d{7}",[10]]]],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",[7,8,9]],["(?:1(?:0[0-6]|1[0-5]|2[014]|30)|7\\d\\d)\\d{6}",[9]],["800[2-8]\\d{5,6}",[9,10]],["900[02-9]\\d{5}",[9]]]],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",[9]],["312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|7(?:[07]\\d|55)|88[08]|99[05-9])\\d{6}",[9]],["800\\d{6,7}"]]],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",[8,9]],["(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",[8,9]],["1800(?:1\\d|2[019])\\d{4}",[10]],["1900(?:1\\d|2[09])\\d{4}",[10]]]],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0",0,0,0,0,0,[["(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}"],["(?:63\\d{3}|73(?:0[0-5]\\d|140))\\d{3}|[67]200[01]\\d{3}",[8]],0,0,0,0,0,0,["30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",[8]]]],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],0,0,0,0,0,0,[["7[4-7]\\d{5}"],["[34]\\d{6}"],0,["8\\d{6}"]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869",[["869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}"],["869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}"],["19[1-3]\\d{7}",[10]]]],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?",0,0,0,[["(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",[5,6,8,9,10]],["1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[1-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",[9,10]],["00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",[9,11,12,13,14]],["60[2-9]\\d{6}",[9]],["50\\d{8,9}",[10,11]],0,["1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[168]|88)|8(?:00|33|55|77|99))\\d{4}",[8]],["15\\d{7,8}",[9,10]],["70\\d{8}",[10]]]],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]],0,0,0,0,0,0,[["2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",[8]],["(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|111|222|333|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|22|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|3(?:00|33)|5(?:00|5\\d)))\\d{4}",[8]],["18\\d{5}",[7]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345",[["345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|[48]8)|9(?:14|4[035-9]))\\d{4}"],["345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:345976|900[2-9]\\d\\d)\\d{4}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,["345849\\d{4}"]]],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",[["(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9])|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",[10]],["7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",[10]],["8(?:00|108\\d{3})\\d{7}"],["809\\d{7}",[10]],["808\\d{7}",[10]],0,0,0,["751\\d{7}",[10]]],"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",[8]],["(?:20(?:[239]\\d|5[24-9]|7[6-8]|88)|302\\d)\\d{6}",[10]],0,0,0,0,["30[013-9]\\d{6}",[9]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0",0,0,0,0,0,[["7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}"],["793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}"],0,["9[01]\\d{6}",[8]],0,0,0,0,0,["80\\d{6}",[8]]]],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758",[["758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}"],["758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)",0,0,0,[["(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",[7]],["(?:6(?:(?:4[5-9]|5[0-4])\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}"],["8002[28]\\d\\d|80(?:05\\d|9)\\d{4}"],["90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",[7]],0,0,["870(?:28|87)\\d\\d",[7]]]],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}"],["7(?:[0-25-8]\\d|4[0-4])\\d{6}"],0,0,0,0,["1973\\d{5}"]]],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0",0,0,0,0,0,[["(?:2\\d{3}|33333)\\d{4}",[8,9]],["(?:(?:330|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",[7,9]],0,["332(?:02|[34]\\d)\\d{4}",[9]]]],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],0,0,0,0,0,0,[["2\\d{7}"],["[56]\\d{7}"],["800[256]\\d{4}"]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]",0,0,0,[["(?:3[1478]|4[124-6]|52)\\d{6}"],["6\\d{7}"],["80[02]\\d{5}"],["9(?:0[0239]|10)\\d{5}"],["70[05]\\d{5}"],0,["70[67]\\d{5}"],0,["[89]01\\d{5}"],["808\\d{5}"]]],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",0,0,0,[["(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}"],["6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",[9]],["800\\d{5}",[8]],["90[015]\\d{5}",[8]],0,0,0,0,["20(?:1\\d{5}|[2-689]\\d{1,7})",[4,5,6,7,8,9,10]],["801\\d{5}",[8]]]],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],0,0,0,0,0,0,[["6\\d{7}"],["2\\d{7}"],["80\\d{6}"],["90\\d{6}"],0,0,0,0,0,["81\\d{6}"]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}"],["9[1-6]\\d{7}"]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[89]|389)","5(?:29[89]|389)0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0",0,0,0,0,0,[["(?:870|9[2-47-9]\\d)\\d{5}",[8]],["4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}"],["(?:800|90\\d)\\d{5}",[8]]]],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}"],["562\\d{5}|(?:6\\d|7[16-9])\\d{6}"],["800\\d{5}"],["90[056]\\d{5}"],0,0,["803\\d{5}"],0,["3[08]\\d{6}"],["808\\d{5}"]]],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",[8]],["6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",[8]],["80(?:[0-2578]|9\\d)\\d{5}"],["9(?:4[1568]|5[178])\\d{5}",[8]],0,0,["77[1-9]\\d{5}",[8]],0,["78[1-49]\\d{5}",[8]]]],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1",0,0,[["2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}"],["3[2-489]\\d{7}"],0,0,0,0,0,0,["22\\d{7}"]]],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1",0,0,0,0,0,[["(?:247|528|625)\\d{4}"],["(?:(?:23|54)5|329|45[356])\\d{4}"],0,0,0,0,0,0,["635\\d{4}"]]],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[23]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}"],["7(?:3555|4(?:60\\d|747)|94(?:[01]\\d|2[0-4]))\\d{3}|7(?:[0-25-8]\\d|3[1-4]|42|9[23])\\d{5}"],["800\\d{5}"],["5[02-9]\\d{6}"],0,0,0,0,0,["8(?:0[1-9]|[1-9]\\d)\\d{5}"]]],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],0,0,0,0,0,0,[["2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}"],["2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[2-49])\\d{6}"],["80\\d{6}"]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[2-469]|39|46|6[25]|7[0-3]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|2[246]|39|46|62|7[0-3]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[0-3])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|247[23]|3(?:20\\d|470)|4(?:2[04]\\d|47[23])|7(?:(?:3\\d|8[01459])\\d|4(?:39|60|7[013]))))\\d{4}|5(?:2(?:2\\d{5,6}|47[023]\\d{4})|(?:347[23]|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[0-2])|8(?:20\\d|47[02])|9(?:20\\d|47[01]))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:2\\d|4[1-9]|51)\\d|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",[6,7,8,9]],["(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|9[4-8])\\d|7(?:3|40|[5-9]\\d)|8(?:78|[89]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",[7,8,9,10]],["80080(?:[01][1-9]|2\\d)\\d{3}",[10]],0,0,0,0,0,["1333\\d{4}|[12]468\\d{4}",[8]]]],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0",0,0,0,0,0,[["[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}"],["(?:83[01]|920)\\d{5}|(?:5[05]|6[06]|8[015689]|9[013-9])\\d{6}",[8]],0,0,0,0,0,0,["712[0-79]\\d{4}|7(?:1[013-9]|[25-8]\\d)\\d{5}",[8]]]],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]],0,0,0,0,0,0,[["(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",[8]],["6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",[8]],["0800\\d{3}",[7]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670",[["670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["596(?:[03-7]\\d|10|2[7-9]|8[09]|9[4-9])\\d{4}"],["69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976(?:6\\d|7[0-367])\\d{4}"]]],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],0,0,0,0,0,0,[["(?:25[08]|35\\d|45[1-7])\\d{5}"],["[2-4][0-46-9]\\d{6}"],["800\\d{5}"]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664",[["6644(?:1[0-3]|91)\\d{4}"],["664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],0,0,0,0,0,0,[["20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}"],["(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}"],["800(?:02|[3467]\\d)\\d{3}"],["5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}"],0,0,["501\\d{5}"],["7117\\d{4}"],["3550\\d{4}"]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,[["(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-7])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",[7,8]],["5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])\\d{5}",[8]],["802\\d{7}|80[0-2]\\d{4}",[7,10]],["30\\d{5}",[7]],0,0,0,0,["3(?:20|9\\d)\\d{4}",[7]]],"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["(?:3(?:0[0-3]|3[0-59])|6(?:[57][02468]|6[024-68]|8[024689]))\\d{4}",[7]],["46[46]\\d{4}|(?:7\\d|9[13-9])\\d{5}",[7]],["800\\d{7}",[10]],["900\\d{7}",[10]],0,0,["4(?:0[01]|50)\\d{4}",[7]]],"00"],MW:["265","00","(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[2-9]|2[12]\\d\\d)\\d{5}"],["111\\d{6}|(?:31|77|88|9[89])\\d{7}",[9]]]],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,[["657[12]\\d{6}|(?:2(?:0[01]|2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",[10]],["657[12]\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}"],["8(?:00|88)\\d{7}",[10]],["900\\d{7}",[10]],["500\\d{7}",[10]],0,0,0,0,["300\\d{7}",[10]]],"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",[8,9]],["1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",[9,10]],["1[378]00\\d{6}",[10]],["1600\\d{6}",[10]],0,0,0,0,["15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",[10]]]],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",[8]],["8[2-79]\\d{7}",[9]],["800\\d{6}",[9]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}"],["(?:60|8[1245])\\d{7}",[9]],["80\\d{7}",[9]],["8701\\d{5}",[9]],0,0,0,0,["8(?:3\\d\\d|86)\\d{5}"]]],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],0,0,0,0,0,0,[["(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}"],["(?:5[0-4]|[79]\\d|8[0-79])\\d{4}"],["050\\d{3}"],["36\\d{4}"]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]],0,0,0,0,0,0,[["2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}"],["(?:23|7[04]|[89]\\d)\\d{6}"],["08\\d{6}"],["09\\d{6}"]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1",0,0,[["(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}"],["(?:14|3[58])\\d{4}"]]],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",[7,8]],["(?:702[0-24-9]|8(?:01|19)[01])\\d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|1[2356]))\\d{7}",[10]],["800\\d{7,11}",[10,11,12,13,14]],0,0,0,["700\\d{7,11}",[10,11,12,13,14]]]],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],0,0,0,0,0,0,[["2\\d{7}"],["(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}"],["1800\\d{4}"]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",[9]],["(?:6[1-58]|970\\d)\\d{7}",[9,11]],["800\\d{4,7}",[7,8,9,10]],["90[069]\\d{4,7}",[7,8,9,10]],0,0,["140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",[5,6,9]],["66\\d{7}",[9]],["(?:85|91)\\d{7}",[9]]]],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]",[["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",[8]],["(?:4[015-8]|59|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}",[8]],0,["(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0",0,0,0,0,0,[["(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",[8]],["9(?:6[0-3]|7[024-6]|8[0-24-68])\\d{7}",[10]],["1(?:66001|800\\d\\d)\\d{5}",[11]]]],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],0,0,0,0,0,0,[["444\\d{4}"],["(?:55[3-9]|666|8\\d\\d)\\d{4}"]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]],0,0,0,0,0,0,[["[47]\\d{3}",[4]],["888[4-9]\\d{3}",[7]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,[["24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",[8]],["2[0-27-9]\\d{7,8}|21\\d{6}",[8,9,10]],["508\\d{6,7}|80\\d{6,8}",[8,9,10]],["(?:11\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",[7,8,9,10]],["70\\d{7}",[9]],0,["8(?:1[6-9]|22|3\\d|4[045]|5[459]|7[0-3579]|90)\\d{2,7}"],["[28]6\\d{6,7}",[8,9]]],"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]],0,0,0,0,0,0,[["2[2-6]\\d{6}",[8]],["1505\\d{4}|(?:7(?:[1289]\\d|7[0-4])|9(?:0[1-9]|[1-9]\\d))\\d{5}",[8]],["8007\\d{4,5}|(?:500|800[05])\\d{4}"],["900\\d{5}",[8]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",[7]],["(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",[7,8]],["800\\d{4,5}|(?:00800|800\\d)\\d{6}"],["(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",[7]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",[8]],["9\\d{8}",[9]],["800\\d{5}",[8]],["805\\d{5}",[8]],["80[24]\\d{5}",[8]],0,0,0,0,["801\\d{5}",[8]]],"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["4(?:0[4-689]|9[4-68])\\d{5}",[8]],["8[7-9]\\d{6}",[8]],["80[0-5]\\d{6}",[9]],0,0,0,["44\\d{4}",[6]],0,["499\\d{5}",[8]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,[["(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",[7]],["(?:7\\d|8[128])\\d{6}",[8]],["180\\d{4}",[7]],0,0,0,0,["27[01]\\d{4}",[7]],["2(?:0[0-57]|7[568])\\d{4}",[7]]],"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0",0,0,0,0,0,[["(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",[6,8,9,10]],["(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",[10]],["1800\\d{7,9}",[11,12,13]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",[9,10]],["3(?:[0-24]\\d|3[0-7]|55|64)\\d{7}",[10]],["800\\d{5}(?:\\d{3})?",[8,11]],["900\\d{5}",[8]],["122\\d{6}",[9]],0,["(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",[11,12]]]],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["47\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",[7,9]],["21(?:1(?:[145]\\d|3[1-5])|2[0-4]\\d)\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",[9]],["800\\d{6,7}",[9,10]],["70[01346-8]\\d{6}",[9]],0,0,["804\\d{6}",[9]],["64\\d{4,7}",[6,7,8,9]],["39\\d{7}",[9]],["801\\d{6}",[9]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:4[1-356]|50)\\d{4}",[6]],["(?:4[02-4]|5[056])\\d{4}",[6]],["80[0-5]\\d{6}",[9]]]],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939",[["(?:787|939)[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",[8]],["5[69]\\d{7}",[9]],["1800\\d{6}",[10]],0,0,0,0,0,0,["1700\\d{6}",[10]]]],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],0,0,0,0,0,0,[["2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}"],["6(?:[06]92(?:30|9\\d)|[35]92(?:3[03]|9\\d))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}"],["80[02]\\d{6}"],["(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}"],["884[0-4689]\\d{5}"],0,["70(?:7\\d|8[17])\\d{5}"],0,["30\\d{7}"],["80(?:8\\d|9[1579])\\d{5}"]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}"],["(?:(?:46|83)[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}"]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",[7,8,9]],["9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",[9]],["9800\\d{5,7}",[9,10,11]],0,0,0,["[2-9]0\\d{4,7}",[6,7,8,9]],0,["8700[0-4]\\d{4}",[9]]]],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]],0,0,0,0,0,0,[["414[1-4]\\d{4}|(?:23|4[04])\\d{6}",[8]],["(?:2[89]|[35-7]\\d)\\d{6}",[8]],["800\\d{4}(?:\\d{2})?",[7,9]],0,0,0,0,["2(?:[12]\\d|61)\\d{4}",[7]]]],RE:["262","00","976\\d{6}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]",[["26(?:2\\d\\d|3(?:0\\d|1[01]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))|976(?:2[27]|3[0-37]|9\\d))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,0,["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,[["[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d"],["7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[019])\\d{6}",[9]],["800\\d{6}",[9]],["90[0136]\\d{6}",[9]],0,0,["(?:37\\d|80[578])\\d{6}",[9]],0,0,["801\\d{6}",[9]]],0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0",0,0,0,0,0,[["(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",[7,8,9,10,11,12]],["6(?:[0-689]|7\\d)\\d{6,7}",[8,9,10]],["800\\d{3,9}"],["(?:78\\d|90[0169])\\d{3,7}",[6,7,8,9,10]],0,0,["7[06]\\d{4,10}"]]],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",[["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0",0,0,0,0,0,[["(?:06|2[23568]\\d)\\d{6}"],["7[2389]\\d{7}",[9]],["800\\d{6}",[9]],["900\\d{6}",[9]]]],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0",0,0,0,0,0,[["1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",[9]],["579[01]\\d{5}|5(?:[013-689]\\d|7[0-35-8])\\d{6}",[9]],["800\\d{7}",[10]],["925\\d{6}",[9]],0,0,["811\\d{7}",[10]],0,0,["920\\d{6}",[9]]]],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],0,0,0,0,0,0,[["(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",[5]],["48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}"],["1[38]\\d{3}",[5]],0,0,0,0,0,["5[12]\\d{3}",[5]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,[["4[2-46]\\d{5}"],["2[125-8]\\d{5}"],["800[08]\\d{3}"],0,0,0,0,0,["971\\d{4}|(?:64|95)\\d{5}"]],"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1(?:5\\d|8[35-7])\\d{6}"],["(?:1[0-2]|9[0-3569])\\d{7}"]]],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0",0,0,0,0,0,[["(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",[7,8,9]],["7[02369]\\d{7}",[9]],["20\\d{4,7}",[6,7,8,9]],["649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",[7,8,9,10]],["75[1-8]\\d{6}",[9]],0,["10[1-8]\\d{6}",[9]],["74[02-9]\\d{6}",[9]],0,["77[0-7]\\d{6}",[9]]]],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-5]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",[8]],["8(?:05[0-3]|95[0-2])\\d{4}|(?:8(?:0[1-4]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",[8]],["(?:18|8)00\\d{7}",[10,11]],["1900\\d{7}",[11]],0,0,["7000\\d{7}",[11]],0,["(?:3[12]\\d|666)\\d{5}",[8]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]",[["2(?:[0-57-9]\\d|6[4-9])\\d\\d"],["[56]\\d{4}",[5]],0,0,0,0,0,0,["262\\d\\d",[5]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:[1-357][2-8]|4[24-8])\\d{6}",[8]],["65(?:1\\d|55|6[01]|70)\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",[8]],["80\\d{4,6}",[6,7,8]],["89[1-3]\\d{2,5}|90\\d{4,6}"],0,0,0,0,["(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",[8]]],"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79",[["79\\d{6}",[8]],["(?:4[015-8]|59|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}",[8]],0,["(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d"],["909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",[9]],["800\\d{6}",[9]],["9(?:00|[78]\\d)\\d{6}",[9]],0,0,["96\\d{7}",[9]],["9090\\d{3}",[7]],["6(?:02|5[0-4]|9[0-6])\\d{6}",[9]],["8[5-9]\\d{7}",[9]]]],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0",0,0,0,0,0,[["22[2-4][2-9]\\d{4}"],["(?:25|3[0-5]|66|7[2-9]|8[08]|9[09])\\d{6}"]]],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1",0,0,[["0549(?:8[0157-9]|9\\d)\\d{4}",[10]],["6[16]\\d{6}",[8]],0,["7[178]\\d{6}",[8]],0,0,0,0,["5[158]\\d{6}",[8]]]],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],0,0,0,0,0,0,[["3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}"],["75(?:01|[38]3)\\d{5}|7(?:[06-8]\\d|21|5[4-7]|90)\\d{6}"],["800\\d{6}"],["88[4689]\\d{6}"],0,0,0,0,["(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}"],["81[02468]\\d{6}"]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0",0,0,0,0,0,[["(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",[6,7]],["(?:(?:15|(?:3[59]|4[89]|79|8[08])\\d|6(?:0[5-7]|[1-9]\\d)|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:6\\d|7[1-9])\\d{6}",[7,8,9]]]],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]],0,0,0,0,0,0,[["(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}"],["(?:7[124-7]|8[124-9])\\d{5}",[7]],0,0,0,0,0,0,["56\\d{4}",[6]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1[89]\\d{7}"],["(?:12|9[1257-9])\\d{7}"]]],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]],0,0,0,0,0,0,[["22\\d{5}"],["900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}"]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["2(?:[1-6]\\d{3}|[79]90[034]|890[0245])\\d{3}",[8]],["66(?:[02-9]\\d\\d|1(?:[02-9]\\d|16))\\d{3}|(?:6[0-57-9]|7\\d)\\d{6}",[8]],["800\\d{4}(?:\\d{4})?",[7,11]],["900\\d{4}(?:\\d{4})?",[7,11]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721",[["7215(?:4[2-8]|8[239]|9[056])\\d{4}"],["7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0",0,0,0,0,0,[["21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}"],["9[1-689]\\d{7}",[9]]]],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]],0,0,0,0,0,0,[["[23][2-5]\\d{6}",[8]],["7[6-9]\\d{6}",[8]],["0800\\d{4}",[8]],["900\\d{6}",[9]],0,0,0,0,["70\\d{6}",[8]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8",[["8\\d{3}"]]],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649",[["649(?:266|712|9(?:4\\d|50))\\d{4}"],["649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["649(?:71[01]|966)\\d{4}"]]],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,[["22(?:[37-9]0|5[0-5]|6[89])\\d{4}"],["(?:6[023568]|77|9\\d)\\d{6}"]],"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],0,0,0,0,0,0,[["2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}"],["(?:7[09]|9[0-36-9])\\d{6}"]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",[8]],["671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",[9]],["(?:001800\\d|1800)\\d{6}",[10,13]],["1900\\d{6}",[10]],0,0,0,0,["6[08]\\d{7}",[9]]]],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,[["(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}"],["41[18]\\d{6}|(?:[034]0|[17][017]|2[02]|5[05]|8[08]|9\\d)\\d{7}"]],"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7],0,0,0,0,0,0,0,[["(?:2[2-4]|[34]\\d)\\d{2,5}"],["7[2-4]\\d{2,5}"]]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]],0,0,0,0,0,0,[["(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",[7]],["7[2-8]\\d{6}",[8]],["80\\d{5}",[7]],["90\\d{5}",[7]],["70\\d{5}",[7]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,[["(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}"],["6\\d{7}"]],"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],0,0,0,0,0,0,[["81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}"],["3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}"],["8010\\d{4}"],["88\\d{6}"],0,0,0,0,0,["8[12]10\\d{4}"]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],0,0,0,0,0,0,[["(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",[5]],["(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",[7]],["0800\\d{3}",[7]],0,0,0,0,0,["55[0-37-9]\\d{4}",[7]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0",0,0,0,0,0,[["(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",[10]],["56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",[10]],["8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",[10,12,13]],["(?:8[89]8|900)\\d{7}",[10]],["592(?:21[12]|461)\\d{4}",[10]],0,["444\\d{4}",[7]],["512\\d{7}",[10]],["850\\d{7}",[10]]]],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868",[["868(?:2(?:0[13]|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}"],["868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["2[02-9]\\d{3}",[5]],["(?:7[01]\\d|90)\\d{4}",[6,7]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",[8,9]],["(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",[9]],["80[0-79]\\d{6}|800\\d{5}",[8,9]],["20(?:[013-9]\\d\\d|2)\\d{4}",[7,9]],["99\\d{7}",[9]],0,["50[0-46-9]\\d{6}",[9]],0,["7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",[10,11]]],0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0",0,0,0,0,0,[["2[2-8]\\d{7}"],["77[2-9]\\d{6}|(?:6[1-9]|7[1-689])\\d{7}"],["80[08]\\d{6}"],["90\\d{7}"],0,0,0,0,["41\\d{7}"],["8(?:40|6[01])\\d{6}"]]],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",[9]],["(?:39|50|6[36-8]|7[1-3]|9[1-9])\\d{7}",[9]],["800[1-8]\\d{5,6}"],["900[239]\\d{5,6}"],0,0,0,0,["89[1-579]\\d{6}",[9]]],"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0",0,0,0,0,0,[["20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}"],["726[01]\\d{5}|7(?:[01578]\\d|20|36|[46][0-4]|9[89])\\d{6}"],["800[1-3]\\d{5}"],["90[1-3]\\d{6}"]]],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|5[25]|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:770|987)|(?:2\\d|4[2-7])\\d\\d)\\d{4}",[8]],["9[1-9]\\d{6}",[8]],["(?:4\\d{5}|80[05])\\d{4}|405\\d{4}",[7,10]],["90[0-8]\\d{4}",[7]]],"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,[["(?:6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}"],["(?:(?:33|88|9[0-57-9])\\d{3}|55(?:50[013]|90\\d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}"]],"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698",[["06698\\d{1,6}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784",[["784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}"],["784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["78451[0-2]\\d{4}"]]],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}"],["4(?:1[24-8]|2[46])\\d{7}"],["800\\d{7}"],["90[01]\\d{7}"],0,0,["501\\d{7}"]]],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284",[["284496[0-5]\\d{3}|284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}"],["284496[6-9]\\d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340",[["340(?:2(?:0[0-38]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0",0,0,0,0,0,[["2(?:0[3-9]|1[0-689]|2[0-25-9]|3[2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|8[2-79]|9[0-4679])\\d{7}",[10]],["(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",[9]],["1800\\d{4,6}|12(?:0[13]|28)\\d{4}",[8,9,10]],["1900\\d{4,6}",[8,9,10]],0,0,["(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",[7,8]],0,["672\\d{6}",[9]]]],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],0,0,0,0,0,0,[["(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",[5]],["(?:[58]\\d|7[013-7])\\d{5}",[7]],["81[18]\\d\\d",[5]],0,0,0,["(?:3[03]|900\\d)\\d{3}"],0,["9(?:0[1-9]|1[01])\\d{4}",[7]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["72\\d{4}",[6]],["(?:72|8[23])\\d{4}",[6]],["80[0-5]\\d{6}",[9]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",[5,6]],["(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",[7,10]],["800\\d{3}",[6]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[89]|39)0\\d{6}|[23][89]\\d{6}"],["4[3-9]\\d{6}",[8]],["800\\d{5}",[8]],["900\\d{5}",[8]]]],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",[7,8]],["7[0137]\\d{7}",[9]]]],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63",[["269(?:0[0-367]|5[0-3]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",[9]],["(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",[5,6,7,8,9]],["80\\d{7}",[9]],["(?:86[2-9]|9[0-2]\\d)\\d{6}",[9]],0,0,["861\\d{6,7}",[9,10]],0,["87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",[9]],["860\\d{6}",[9]]]],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0",0,0,0,0,0,[["21[1-8]\\d{6}"],["(?:7[679]|9[5-8])\\d{7}"],["800\\d{6}"],0,0,0,0,0,["63\\d{7}"]]],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}"],["7(?:[178]\\d|3[1-9])\\d{6}",[9]],["80(?:[01]\\d|20|8[0-8])\\d{3}",[7]],0,0,0,0,0,["86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",[10]]]]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function o(e,o){var n=Array.prototype.slice.call(o);return n.push(t),e.apply(this,n)}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},r(e)}function d(e,t,o){return d=l()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return o&&s(a,o.prototype),a},d.apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(d,e);var t,o,n,r=(t=d,o=l(),function(){var e,n=c(t);if(o){var i=c(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return a(this,e)});function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=r.call(this,e),Object.setPrototypeOf(i(t),d.prototype),t.name=t.constructor.name,t}return n=d,Object.defineProperty(n,"prototype",{writable:!1}),n}(r(Error)),h="".concat("-‐-―−ー－").concat("／/").concat("．.").concat("  ­​⁠　").concat("()（）［］\\[\\]").concat("~⁓∼～");function p(e,t){e=e.split("-"),t=t.split("-");for(var o=e[0].split("."),n=t[0].split("."),a=0;a<3;a++){var i=Number(o[a]),r=Number(n[a]);if(i>r)return 1;if(r>i)return-1;if(!isNaN(i)&&isNaN(r))return 1;if(isNaN(i)&&!isNaN(r))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,o){return t&&f(e.prototype,t),o&&f(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var C=" ext. ",y=/^\d+$/,$=function(){function e(t){v(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!x(e)||!x(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(x(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+P(e)+": "+e,"."))}(t),this.metadata=t,F.call(this,t)}return g(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&y.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new k(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new k(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var o=this.nonGeographic()[e];if(o)return o}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),k=function(){function e(t,o){v(this,e),this.globalMetadataObject=o,this.metadata=t,F.call(this,o.metadata)}return g(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new w(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&_(this.types(),e))return new S(_(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?C:this.metadata[13]||C}}]),e}(),w=function(){function e(t,o){v(this,e),this._format=t,this.metadata=o}return g(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||b.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),b=/^\(?\$1\)?$/,S=function(){function e(t,o){v(this,e),this.type=t,this.metadata=o}return g(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function _(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var x=function(e){return"object"===m(e)},P=function(e){return m(e)};function D(e,t){return(t=new $(t)).hasCountry(e)?t.country(e).ext():C}function T(e,t){if((t=new $(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function I(e,t){return void 0!==t.countries[e]}function F(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===p(t,"1.2.0")?this.v2=!0:-1===p(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var A=function(e){return"([".concat("0-9０-９٠-٩۰-۹","]{1,").concat(e,"})")};function E(e){var t="#?";return";ext="+A("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|доб|anexo)[:\\.．]?[  \\t,-]*"+A("20")+"#?|[  \\t,]*(?:[xｘ#＃~～]|int|ｉｎｔ)[:\\.．]?[  \\t,-]*"+A("9")+"#?|[- ]+"+A("6")+"#|[  \\t]*(?:,{2}|;)[:\\.．]?[  \\t,-]*"+A("15")+"#?|[  \\t]*(?:,)+[:\\.．]?[  \\t,-]*"+A("9")+t}var O="[+＋]{0,1}(?:["+h+"]*[0-9０-９٠-٩۰-۹]){3,}["+h+"0-9０-９٠-٩۰-۹]*",M=new RegExp("^[+＋]{0,1}(?:["+h+"]*[0-9０-９٠-٩۰-۹]){1,2}$","i"),N=O+"(?:"+E()+")?",L=new RegExp("^[0-9０-９٠-٩۰-۹]{2}$|^"+N+"$","i");function V(e){return e.length>=2&&L.test(e)}var B=new RegExp("(?:"+E()+")$","i");function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var U={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function W(e){return U[e]}function j(e){for(var t,o="",n=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return R(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=n()).done;){var a=W(t.value);a&&(o+=a)}return o}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function G(e){for(var t,o="",n=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return H(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?H(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=n()).done;)o+=z(t.value,o)||"";return o}function z(e,t){if("+"===e){if(t)return;return"+"}return W(e)}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Y(e,t){return Z(e,void 0,t)}function Z(e,t,o){var n=o.type(t),a=n&&n.possibleLengths()||o.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!o.type("FIXED_LINE"))return Z(e,"MOBILE",o);var i=o.type("MOBILE");i&&(a=function(e,t){for(var o,n=e.slice(),a=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return q(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?q(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(o=a()).done;){var i=o.value;e.indexOf(i)<0&&n.push(i)}return n.sort(function(e,t){return e-t})}(a,i.possibleLengths()))}else if(t&&!n)return"INVALID_LENGTH";var r=e.length,d=a[0];return d===r?"IS_POSSIBLE":d>r?"TOO_SHORT":a[a.length-1]<r?"TOO_LONG":a.indexOf(r,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function K(e,t){return"IS_POSSIBLE"===Y(e,t)}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,a,i=[],r=!0,d=!1;try{for(o=o.call(e);!(r=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);r=!0);}catch(e){d=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(d)throw a}}return i}}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){if(e){if("string"==typeof e)return Q(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ee(e){for(var t,o,n,a=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=X(e))){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}((e=e.replace(/^tel:/,"tel=")).split(";"));!(n=a()).done;){var i=J(n.value.split("="),2),r=i[0],d=i[1];switch(r){case"tel":t=d;break;case"ext":o=d;break;case"phone-context":"+"===d[0]&&(t=d+t)}}if(!V(t))return{};var l={number:t};return o&&(l.ext=o),l}function te(e){var t=e.number,o=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(o?";ext="+o:"")}function oe(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var ae=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ie(e,t,o){if(t=t||{},e.country){(o=new $(o)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(oe(n,o.nationalNumberPattern())){if(re(n,"FIXED_LINE",o))return o.type("MOBILE")&&""===o.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":o.type("MOBILE")?re(n,"MOBILE",o)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var a,i=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return ne(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(ae);!(a=i()).done;){var r=a.value;if(re(n,r,o))return r}}}}function re(e,t,o){return!(!(t=o.type(t))||!t.pattern())&&!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&oe(e,t.pattern())}function de(e,t,o){return t=t||{},o=new $(o),!!e.country&&(o.selectNumberingPlan(e.country,e.countryCallingCode),o.hasTypes()?void 0!==ie(e,t,o.metadata):oe(t.v2?e.nationalNumber:e.phone,o.nationalNumberPattern()))}function le(e){return e.replace(new RegExp("[".concat(h,"]+"),"g")," ").trim()}var se=/(\$\d)/;function ce(e,t,o){var n=o.useInternationalFormat,a=o.withNationalPrefix;o.carrierCode,o.metadata;var i=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(se,t.nationalPrefixFormattingRule()):t.format());return n?le(i):i}var ue=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function me(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(o),!0).forEach(function(t){ve(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ve(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var fe={formatExtension:function(e,t,o){return"".concat(e).concat(o.ext()).concat(t)}};function ge(e,t,o,n,a){var i=function(e,t){for(var o,n=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return he(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?he(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(o=n()).done;){var a=o.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(0!==t.search(i))continue}if(oe(t,a.pattern()))return a}}(n.formats(),e);return i?ce(e,i,{useInternationalFormat:"INTERNATIONAL"===o,withNationalPrefix:!i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix,carrierCode:t,metadata:n}):e}function Ce(e,t,o,n){return t?n(e,t,o):e}function ye(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function $e(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(o),!0).forEach(function(t){ke(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ye(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ke(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function we(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var be=function(){function e(t,o,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!o)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var a=new $(n);Se(t)&&(this.country=t,a.country(t),t=a.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=o,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=n}var t,o;return t=e,o=[{key:"setExt",value:function(e){this.ext=e}},{key:"isPossible",value:function(){return function(e,t,o){if(void 0===t&&(t={}),o=new $(o),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");o.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!o.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));o.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");o.selectNumberingPlan(e.countryCallingCode)}}if(o.possibleLengths())return K(e.phone||e.nationalNumber,o);if(e.countryCallingCode&&o.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return de(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new $(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return ie(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return function(e,t,o,n){if(o=o?me(me({},fe),o):fe,n=new $(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var a,i=n.countryCallingCode(),r=o.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return r?Ce(a=ge(r,e.carrierCode,"NATIONAL",n,o),e.ext,n,o.formatExtension):"";case"INTERNATIONAL":return r?(a=ge(r,null,"INTERNATIONAL",n,o),Ce(a="+".concat(i," ").concat(a),e.ext,n,o.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(r);case"RFC3966":return te({number:"+".concat(i).concat(r),ext:e.ext});case"IDD":if(!o.fromCountry)return;var d=function(e,t,o,n,a){if(T(n,a.metadata)===o){var i=ge(e,t,"NATIONAL",a);return"1"===o?o+" "+i:i}var r=function(e,t,o){var n=new $(o);return n.selectNumberingPlan(e,void 0),n.defaultIDDPrefix()?n.defaultIDDPrefix():ue.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,0,a.metadata);if(r)return"".concat(r," ").concat(o," ").concat(ge(e,null,"INTERNATIONAL",a))}(r,e.carrierCode,i,o.fromCountry,n);return Ce(d,e.ext,n,o.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?$e($e({},t),{},{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],o&&we(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Se=function(e){return/^[A-Z]{2}$/.test(e)},_e=new RegExp("([0-9０-９٠-٩۰-۹])");function xe(e,t,o,n){if(t){var a=new $(n);a.selectNumberingPlan(t,o);var i=new RegExp(a.IDDPrefix());if(0===e.search(i)){var r=(e=e.slice(e.match(i)[0].length)).match(_e);if(!(r&&null!=r[1]&&r[1].length>0&&"0"===r[1]))return e}}}function Pe(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var o=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=o.exec(e);if(n){var a,i,r,d=n.length-1,l=d>0&&n[d];if(t.nationalPrefixTransformRule()&&l)a=e.replace(o,t.nationalPrefixTransformRule()),d>1&&(i=n[1]);else{var s=n[0];a=e.slice(s.length),l&&(i=n[1])}if(l){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(r=t.numberingPlan.nationalPrefix())}else r=n[0];return{nationalNumber:a,nationalPrefix:r,carrierCode:i}}}return{nationalNumber:e}}function De(e,t){var o=Pe(e,t),n=o.carrierCode,a=o.nationalNumber;if(a!==e){if(!function(e,t,o){return!(oe(e,o.nationalNumberPattern())&&!oe(t,o.nationalNumberPattern()))}(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(Y(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:n}}function Te(e,t,o,n){var a=t?T(t,n):o;if(0===e.indexOf(a)){(n=new $(n)).selectNumberingPlan(t,o);var i=e.slice(a.length),r=De(i,n).nationalNumber,d=De(e,n).nationalNumber;if(!oe(d,n.nationalNumberPattern())&&oe(r,n.nationalNumberPattern())||"TOO_LONG"===Y(d,n))return{countryCallingCode:a,number:i}}return{number:e}}function Ie(e,t,o,n){if(!e)return{};if("+"!==e[0]){var a=xe(e,t,o,n);if(!a||a===e){if(t||o){var i=Te(e,t,o,n),r=i.countryCallingCode,d=i.number;if(r)return{countryCallingCode:r,number:d}}return{number:e}}e="+"+a}if("0"===e[1])return{};n=new $(n);for(var l=2;l-1<=3&&l<=e.length;){var s=e.slice(1,l);if(n.hasCallingCode(s))return n.selectNumberingPlan(s),{countryCallingCode:s,number:e.slice(l)};l++}return{}}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Ae(e,t,o){var n=o.getCountryCodesForCallingCode(e);if(n)return 1===n.length?n[0]:function(e,t,o){o=new $(o);for(var n,a=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Fe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=a()).done;){var i=n.value;if(o.country(i),o.leadingDigits()){if(t&&0===t.search(o.leadingDigits()))return i}else if(ie({phone:t,country:i},void 0,o.metadata))return i}}(n,t,o.metadata)}var Ee=new RegExp("[+＋0-9０-９٠-٩۰-۹]"),Oe=new RegExp("[^0-9０-９٠-٩۰-۹#]+$");function Me(e,t,o){if(t=t||{},o=new $(o),t.defaultCountry&&!o.hasCountry(t.defaultCountry)){if(t.v2)throw new u("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var n=function(e,t,o){if(e&&0===e.indexOf("tel:"))return ee(e);var n=function(e,t,o){if(e)if(e.length>250){if(o)throw new u("TOO_LONG")}else{if(!1===t)return e;var n=e.search(Ee);if(!(n<0))return e.slice(n).replace(Oe,"")}}(e,o,t);if(!n)return{};if(!V(n))return function(e){return M.test(e)}(n)?{error:"TOO_SHORT"}:{};var a=function(e){var t=e.search(B);if(t<0)return{};for(var o=e.slice(0,t),n=e.match(B),a=1;a<n.length;){if(n[a])return{number:o,ext:n[a]};a++}}(n);return a.ext?a:{number:n}}(e,t.v2,t.extract),a=n.number,i=n.ext,r=n.error;if(!a){if(t.v2){if("TOO_SHORT"===r)throw new u("TOO_SHORT");throw new u("NOT_A_NUMBER")}return{}}var d=function(e,t,o,n){var a,i=Ie(G(e),t,o,n.metadata),r=i.countryCallingCode,d=i.number;if(r)n.selectNumberingPlan(r);else{if(!d||!t&&!o)return{};n.selectNumberingPlan(t,o),t&&(a=t),r=o||T(t,n.metadata)}if(!d)return{countryCallingCode:r};var l=De(G(d),n),s=l.nationalNumber,c=l.carrierCode,u=Ae(r,s,n);return u&&(a=u,"001"===u||n.country(a)),{country:a,countryCallingCode:r,nationalNumber:s,carrierCode:c}}(a,t.defaultCountry,t.defaultCallingCode,o),l=d.country,s=d.nationalNumber,c=d.countryCallingCode,h=d.carrierCode;if(!o.hasSelectedNumberingPlan()){if(t.v2)throw new u("INVALID_COUNTRY");return{}}if(!s||s.length<2){if(t.v2)throw new u("TOO_SHORT");return{}}if(s.length>17){if(t.v2)throw new u("TOO_LONG");return{}}if(t.v2){var p=new be(c,s,o.metadata);return l&&(p.country=l),h&&(p.carrierCode=h),i&&(p.ext=i),p}var m=!!(t.extended?o.hasSelectedNumberingPlan():l)&&oe(s,o.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:c,carrierCode:h,valid:m,possible:!!m||!(!0!==t.extended||!o.possibleLengths()||!K(s,o)),phone:s,ext:i}:m?function(e,t,o){var n={country:e,phone:t};return o&&(n.ext=o),n}(l,s,i):{}}function Ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Le(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(o),!0).forEach(function(t){Ve(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ne(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Ve(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Be(e,t,o){return Me(e,Le(Le({},t),{},{v2:!0}),o)}function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ue(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function We(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function He(){var e=Ge(arguments);return Be(e.text,e.options,e.metadata)}function Ge(e){var t,o,n,a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,a,i=[],r=!0,d=!1;try{for(o=o.call(e);!(r=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);r=!0);}catch(e){d=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(d)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return je(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.prototype.slice.call(e),4),i=a[0],r=a[1],d=a[2],l=a[3];if("string"!=typeof i)throw new TypeError("A text for parsing must be a string.");if(t=i,r&&"string"!=typeof r){if(!ze(r))throw new Error("Invalid second argument: ".concat(r));d?(o=r,n=d):n=r}else l?(o=d,n=l):(o=void 0,n=d),r&&(o=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(o),!0).forEach(function(t){We(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ue(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({defaultCountry:r},o));return{text:t,options:o,metadata:n}}var ze=function(e){return"object"===Re(e)};function qe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Ye(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(o),!0).forEach(function(t){Ze(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Ze(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ke(e,t,o){t&&t.defaultCountry&&!I(t.defaultCountry,o)&&(t=Ye(Ye({},t),{},{defaultCountry:void 0}));try{return Be(e,t,o)}catch(e){if(!(e instanceof u))throw e}}function Je(){var e=Ge(arguments);return Ke(e.text,e.options,e.metadata)}function Xe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Qe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(o),!0).forEach(function(t){et(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Xe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function et(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function tt(){var e=Ge(arguments),t=e.text,o=e.options,n=e.metadata,a=Ke(t,o=Qe(Qe({},o),{},{extract:!1}),n);return a&&a.isValid()||!1}function ot(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(o),!0).forEach(function(t){at(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ot(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function at(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function it(){var e=Ge(arguments),t=e.text,o=e.options,n=e.metadata,a=Ke(t,o=nt(nt({},o),{},{extract:!1}),n);return a&&a.isPossible()||!1}function rt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function dt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(o),!0).forEach(function(t){lt(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rt(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function lt(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function st(){var e=Ge(arguments),t=e.text,o=e.options,n=e.metadata;o=dt(dt({},o),{},{extract:!1});try{var a=Be(t,o,n);(n=new $(n)).selectNumberingPlan(a.countryCallingCode);var i=Y(a.nationalNumber,n);if("IS_POSSIBLE"!==i)return i}catch(e){if(e instanceof u)return e.message;throw e}}function ct(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ut(e,t,o){return t&&ct(e.prototype,t),o&&ct(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var pt=ut(function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ht(this,e),this.key=t,this.value=o,this.next=n,this.prev=a}),mt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;ht(this,e),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}return ut(e,[{key:"put",value:function(e,t){if(this.ensureLimit(),this.head){var o=new pt(e,t,this.head);this.head.prev=o,this.head=o}else this.head=this.tail=new pt(e,t);this.cache[e]=this.head,this.size++}},{key:"get",value:function(e){if(this.cache[e]){var t=this.cache[e].value;return this.remove(e),this.put(e,t),t}console.log("Item not available in cache for key ".concat(e))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(e){var t=this.cache[e];null!==t.prev?t.prev.next=t.next:this.head=t.next,null!==t.next?t.next.prev=t.prev:this.tail=t.prev,delete this.cache[e],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),e}();function vt(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ft=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=new mt(t)}var t,o;return t=e,(o=[{key:"getPatternForRegExp",value:function(e){var t=this.cache.get(e);return t||(t=new RegExp("^"+e),this.cache.put(e,t)),t}}])&&vt(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gt(e,t){if(e<0||t<=0||t<e)throw new TypeError;return"{".concat(e,",").concat(t,"}")}function Ct(e,t){var o=t.search(e);return o>=0?t.slice(0,o):t}var yt="   ᠎ - \u2028\u2029  　",$t="[".concat(yt,"]"),kt="[^".concat(yt,"]"),wt="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹０-９","]"),bt="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",St="[".concat(bt,"]"),_t=new RegExp(St),xt="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩＄￠￡￥￦","]"),Pt=new RegExp(xt),Dt="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),Tt=new RegExp(Dt),It=new RegExp("[\0--ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function Ft(e){return!(!_t.test(e)&&!Tt.test(e))&&It.test(e)}function At(e){return"%"===e||Pt.test(e)}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var Ot={POSSIBLE:function(e,t,o){return!0},VALID:function(e,t,o){return!(!de(e,void 0,o)||!Mt(e,t.toString()))},STRICT_GROUPING:function(e,t,o,n){var a=t.toString();return!(!de(e,void 0,o)||!Mt(e,a)||Lt(e,a)||!Nt(e))&&Vt(e,t,o,Ut,n)},EXACT_GROUPING:function(e,t,o,n){var a=t.toString();return!(!de(e,void 0,o)||!Mt(e,a)||Lt(e,a)||!Nt(e))&&Vt(e,t,o,Rt,n)}};function Mt(e,t,o){for(var n=0;n<t.length-1;n++){var a=t.charAt(n);if("x"===a||"X"===a){var i=t.charAt(n+1);if("x"===i||"X"===i){if(n++,util.isNumberMatch(e,t.substring(n))!=MatchType.NSN_MATCH)return!1}else if(j(t.substring(n))!==e.ext)return!1}}return!0}function Nt(e,t){if("FROM_DEFAULT_COUNTRY"!=e.getCountryCodeSource())return!0;var o=util.getRegionCodeForCountryCode(e.getCountryCode()),n=util.getMetadataForRegion(o);if(null==n)return!0;var a=util.getNationalSignificantNumber(e),i=util.chooseFormattingPatternForNumber(n.numberFormats(),a);if(i&&i.getNationalPrefixFormattingRule().length>0){if(i.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(i.getNationalPrefixFormattingRule()))return!0;var r=PhoneNumberUtil.normalizeDigitsOnly(e.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(r,n,null)}return!0}function Lt(e,t){var o=t.indexOf("/");if(o<0)return!1;var n=t.indexOf("/",o+1);return!(n<0)&&(!(e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(t.substring(0,o))!==String(e.getCountryCode())||t.slice(n+1).indexOf("/")>=0)}function Vt(e,t,o,n,a){var i=normalizeDigits(t,!0),r=Bt(o,e,null);if(n(o,e,i,r))return!0;var d=MetadataManager.getAlternateFormatsForCountry(e.getCountryCode()),l=util.getNationalSignificantNumber(e);if(d)for(var s,c=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Et(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Et(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d.numberFormats());!(s=c()).done;){var u=s.value;if((!(u.leadingDigitsPatterns().length>0)||a.getPatternForRegExp("^"+u.leadingDigitsPatterns()[0]).test(l))&&n(o,e,i,r=Bt(o,e,u)))return!0}return!1}function Bt(e,t,o){if(o){var n=util.getNationalSignificantNumber(t);return util.formatNsnUsingPattern(n,o,"RFC3966",e).split("-")}var a=formatNumber(t,"RFC3966",e),i=a.indexOf(";");i<0&&(i=a.length);var r=a.indexOf("-")+1;return a.slice(r,i).split("-")}function Rt(e,t,o,n){var a=o.split(NON_DIGITS_PATTERN),i=t.hasExtension()?a.length-2:a.length-1;if(1==a.length||a[i].contains(util.getNationalSignificantNumber(t)))return!0;for(var r,d,l=n.length-1;l>0&&i>=0;){if(a[i]!==n[l])return!1;l--,i--}return i>=0&&(r=a[i],d=n[0],r.indexOf(d,r.length-d.length)===r.length-d.length)}function Ut(e,t,o,n){var a,i=0;if(t.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var r=String(t.getCountryCode());i=o.indexOf(r)+r.length()}for(var d=0;d<n.length;d++){if((i=o.indexOf(n[d],i))<0)return!1;if(i+=n[d].length(),0==d&&i<o.length()){var l=util.getRegionCodeForCountryCode(t.getCountryCode());if(null!=util.getNddPrefixForRegion(l,!0)&&Character.isDigit(o.charAt(i)))return a=util.getNationalSignificantNumber(t),0===o.slice(i-n[d].length).indexOf(a)}}return o.slice(i).contains(t.getExtension())}var Wt=/[\\/] *x/;function jt(e){return Ct(Wt,e)}var Ht=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,Gt=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,zt=/^:[0-5]\d/;function qt(e,t,o){if(Ht.test(e))return!1;if(Gt.test(e)){var n=o.slice(t+e.length);if(zt.test(n))return!1}return!0}var Yt="(\\[（［",Zt="[^".concat(Yt).concat(")\\]）］","]"),Kt="[".concat(Yt).concat("+＋","]"),Jt=new RegExp("^"+Kt),Xt=gt(0,3),Qt=new RegExp("^(?:[(\\[（［])?(?:"+Zt+"+[)\\]）］])?"+Zt+"+(?:[(\\[（［]"+Zt+"+[)\\]）］])"+Xt+Zt+"*$"),eo=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function to(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function oo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function no(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(o),!0).forEach(function(t){ao(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oo(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ao(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function io(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ro=E(),lo=["\\/+(.*)/","(\\([^(]*)","(?:".concat($t,"-|-").concat($t,")").concat($t,"*(.+)"),"[‒-―－]".concat($t,"*(.+)"),"\\.+".concat($t,"*([^.]+)"),"".concat($t,"+(").concat(kt,"+)")],so=gt(0,2),co=gt(0,4),uo=gt(0,20),ho="[".concat(h,"]")+co,po=wt+gt(1,20),mo="(?:"+Kt+ho+")"+so+po+"(?:"+ho+po+")"+uo+"(?:"+ro+")?",vo=new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹０-９").concat(bt,"#]+$")),fo=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,go=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!(o=no(no({},o),{},{defaultCallingCode:o.defaultCallingCode,defaultCountry:o.defaultCountry&&I(o.defaultCountry,n)?o.defaultCountry:void 0,leniency:o.leniency||o.extended?"POSSIBLE":"VALID",maxTries:o.maxTries||fo})).leniency)throw new TypeError("`Leniency` not supplied");if(o.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=t,this.options=o,this.metadata=n,this.leniency=Ot[o.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(o.leniency,"."));this.maxTries=o.maxTries,this.PATTERN=new RegExp(mo,"ig"),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new ft(32)}var t,o;return t=e,o=[{key:"find",value:function(){for(var e;this.maxTries>0&&null!==(e=this.PATTERN.exec(this.text));){var t=e[0],o=e.index;if(qt(t=jt(t),o,this.text)){var n=this.parseAndVerify(t,o,this.text)||this.extractInnerMatch(t,o,this.text);if(n){if(this.options.v2){var a=new be(n.country||n.countryCallingCode,n.phone,this.metadata);return n.ext&&(a.ext=n.ext),{startsAt:n.startsAt,endsAt:n.endsAt,number:a}}return n}}this.maxTries--}}},{key:"extractInnerMatch",value:function(e,t,o){for(var n,a=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return to(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?to(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(lo);!(n=a()).done;)for(var i=n.value,r=!0,d=void 0,l=new RegExp(i,"g");this.maxTries>0&&null!==(d=l.exec(e));){if(r){var s=Ct(vo,e.slice(0,d.index)),c=this.parseAndVerify(s,t,o);if(c)return c;this.maxTries--,r=!1}var u=Ct(vo,d[1]),h=e.indexOf(u,d.index),p=this.parseAndVerify(u,t+h,o);if(p)return p;this.maxTries--}}},{key:"parseAndVerify",value:function(e,t,o){if(function(e,t,o,n){if(Qt.test(e)&&!eo.test(e)){if("POSSIBLE"!==n){if(t>0&&!Jt.test(e)){var a=o[t-1];if(At(a)||Ft(a))return!1}var i=t+e.length;if(i<o.length){var r=o[i];if(At(r)||Ft(r))return!1}}return!0}}(e,t,o,this.options.leniency)){var n=Me(e,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(n.possible&&this.leniency(n,e,this.metadata,this.regExpCache)){var a={startsAt:t,endsAt:t+e.length,phone:n.phone};return n.country&&"001"!==n.country?a.country=n.country:a.countryCallingCode=n.countryCallingCode,n.ext&&(a.ext=n.ext),a}}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",e}}],o&&io(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Co(){var e=Ge(arguments);return function(e,t,o){for(var n=new go(e,t,o),a=[];n.hasNext();)a.push(n.next());return a}(e.text,e.options,e.metadata)}function yo(){var e=Ge(arguments),t=e.text,o=e.options,n=e.metadata,a=new go(t,o,n);return function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},Symbol.iterator,function(){return{next:function(){return a.hasNext()?{done:!1,value:a.next()}:{done:!0}}}})}function $o(e){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(e)}function ko(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function wo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(o),!0).forEach(function(t){bo(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ko(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function bo(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function So(e,t,o,n){var a=_o(t,o,n);return Co(e,a.options,a.metadata)}function _o(e,t,o){return o?e&&(t=wo(wo({},t),{},{defaultCountry:e})):t?(o=t,t=e?xo(e)?e:{defaultCountry:e}:void 0):(o=e,t=void 0),{options:wo(wo({},t),{},{v2:!0}),metadata:o}}var xo=function(e){return"object"===$o(e)};function Po(e,t,o,n){var a=_o(t,o,n);return yo(e,a.options,a.metadata)}function Do(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var To=function(){function e(t){var o=t.onCountryChange,n=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=o,this.onCallingCodeChange=n}var t,o;return t=e,(o=[{key:"reset",value:function(e,t){this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,t)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(e){for(var t=0,o=Object.keys(e);t<o.length;t++){var n=o[t];this[n]=e[n]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&Do(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var Fo="x",Ao=new RegExp(Fo);function Eo(e,t){if(t<1)return"";for(var o="";t>1;)1&t&&(o+=e),t>>=1,e+=e;return o+e}function Oo(e,t){return")"===e[t]&&t++,function(e){for(var t=[],o=0;o<e.length;)"("===e[o]?t.push(o):")"===e[o]&&t.pop(),o++;var n=0,a="";t.push(e.length);for(var i=0,r=t;i<r.length;i++){var d=r[i];a+=e.slice(n,d),n=d+1}return a}(e.slice(0,t))}function Mo(e,t,o){var n=o.metadata,a=o.shouldTryNationalPrefixFormattingRule,i=o.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,o){var n=o.metadata,a=o.shouldTryNationalPrefixFormattingRule,i=o.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var r=No(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:n});if(r)return r}return No(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function No(e,t,o){var n=o.metadata,a=o.useNationalPrefixFormattingRule,i=o.getSeparatorAfterNationalPrefix,r=ce(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:n});if(a||(e.nationalPrefix?r=e.nationalPrefix+i(t)+r:e.complexPrefixBeforeNationalSignificantNumber&&(r=e.complexPrefixBeforeNationalSignificantNumber+" "+r)),function(e,t){return j(e)===t.getNationalDigits()}(r,e))return r}function Lo(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Vo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o;return t=e,(o=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],o=t.branches,n=t.instructions;if(o)return{op:"|",args:o.concat([Wo(n)])};if(0===n.length)throw new Error("Pattern is required");return 1===n.length?n[0]:n}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(Uo);if(t){var o=t[1],n=e.slice(0,t.index),a=e.slice(t.index+o.length);switch(o){case"(?:":n&&this.parsePattern(n),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(n&&this.parsePattern(n),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var i=this.getContext().branches;i.push(Wo(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:i});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(n&&this.parsePattern(n),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(Wo(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":n&&this.parsePattern(n),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Bo(n)});break;default:throw new Error("Unknown operator: ".concat(o))}a&&this.parsePattern(a)}else{if(Ro.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])&&Lo(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){for(var t=[],o=0;o<e.length;){if("-"===e[o]){if(0===o||o===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[o-1].charCodeAt(0)+1,a=e[o+1].charCodeAt(0)-1,i=n;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[o]);o++}return t}var Ro=/[\(\)\[\]\?\:\|]/,Uo=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Wo(e){return 1===e.length?e[0]:e}function jo(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Ho(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ho(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Go(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var zo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new Vo).parse(t)}var t,o;return t=e,o=[{key:"match",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!e)throw new Error("String is required");var o=qo(e.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!o||!o.overflow||t)return o}}],o&&Go(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qo(e,t,o){if("string"==typeof t){var n=e.join("");return 0===t.indexOf(n)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===n.indexOf(t)?o&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var r=qo(a,t[i],o&&i===t.length-1);if(!r)return;if(r.overflow)return r;if(!r.match){if(r.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(r,null,2)))}if(0===(a=a.slice(r.matchedChars.length)).length)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};i++}return o?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var d,l,s=jo(t.args);!(l=s()).done;){var c=qo(e,l.value,o);if(c){if(c.overflow)return c;if(c.match)return{match:!0,matchedChars:c.matchedChars};if(!c.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(c,null,2)));d=!0}}return d?{partialMatch:!0}:void 0;case"[]":for(var u,h=jo(t.args);!(u=h()).done;){var p=u.value;if(e[0]===p)return 1===e.length?{match:!0,matchedChars:e}:o?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function Yo(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Zo(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Ko(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Jo=Eo("9",15),Xo=/[- ]/,Qo=new RegExp("["+h+"]*\\$1["+h+"]*(\\$\\d["+h+"]*)*$"),en=function(){function e(t){t.state;var o=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=o,this.resetFormat()}var t,o;return t=e,o=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var o=this;if(function(e,t){return"IS_POSSIBLE"===Y(e,t)}(t.nationalSignificantNumber,this.metadata))for(var n,a=Yo(this.matchingFormats);!(n=a()).done;){var i=n.value,r=Mo(t,i,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return o.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return o.getSeparatorAfterNationalPrefix(e)}});if(r)return this.resetFormat(),this.chosenFormat=i,this.setNationalNumberTemplate(r.replace(/\d/g,Fo),t),this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Fo),r}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var o=this.chosenFormat,n=this.chooseFormat(t);if(n)return n===o?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,o=e.nationalSignificantNumber,n=e.nationalPrefix,a=e.international,i=o,r=i.length-3;r<0&&(r=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,a,n)&&t.formatMatches(e,i,r)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,o){return!(o&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!o&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,o){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;o=Math.min(o,n-1);var a=e.leadingDigitsPatterns()[o];if(t.length<3)try{return void 0!==new zo(a).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(a,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,o=this,n=function(){var n=t.value;return o.chosenFormat===n?"break":Qo.test(o.getFormatFormat(n,e.international))?o.createTemplateForFormat(n,e)?(o.chosenFormat=n,"break"):(o.matchingFormats=o.matchingFormats.filter(function(e){return e!==n}),"continue"):"continue"},a=Yo(this.matchingFormats.slice());!(t=a()).done;){if("break"===n())break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var o=this.getTemplateForFormat(e,t);return o?(this.setNationalNumberTemplate(o,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&Xo.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var o=e.IDDPrefix,n=e.missingPlus;return o?t&&!1===t.spacing?o:o+" ":n?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,o=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";o<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(Fo,t+1),o++;return Oo(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,Fo)+Eo(Fo,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var o=t.nationalSignificantNumber,n=t.international,a=t.nationalPrefix,i=t.complexPrefixBeforeNationalSignificantNumber,r=e.pattern();r=r.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var d=Jo.match(r)[0];if(!(o.length>d.length)){var l=new RegExp("^"+r+"$"),s=o.replace(/\d/g,"9");l.test(s)&&(d=s);var c,u=this.getFormatFormat(e,n);if(this.shouldTryNationalPrefixFormattingRule(e,{international:n,nationalPrefix:a})){var h=u.replace(se,e.nationalPrefixFormattingRule());if(j(e.nationalPrefixFormattingRule())===(a||"")+j("$1")&&(u=h,c=!0,a))for(var p=a.length;p>0;)u=u.replace(/\d/,Fo),p--}var m=d.replace(new RegExp(r),u).replace(new RegExp("9","g"),Fo);return c||(i?m=Eo(Fo,i.length)+" "+m:a&&(m=Eo(Fo,a.length)+this.getSeparatorAfterNationalPrefix(e)+m)),n&&(m=le(m)),m}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,o){for(var n,a=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Io(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Io(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.split(""));!(n=a()).done;){var i=n.value;if(e.slice(t+1).search(Ao)<0)return;t=e.search(Ao),e=e.replace(Ao,i)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],Oo(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var o=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var a=e.usesNationalPrefix();if(a&&n||!a&&!o)return!0}}}],o&&Ko(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,a,i=[],r=!0,d=!1;try{for(o=o.call(e);!(r=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);r=!0);}catch(e){d=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(d)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?on(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function nn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var an=new RegExp("^["+h+"0-9０-９٠-٩۰-۹]+$","i"),rn="(?:[+＋]["+h+"0-9０-９٠-٩۰-۹]*|["+h+"0-9０-９٠-٩۰-۹]+)",dn=new RegExp("[^"+h+"0-9０-９٠-٩۰-۹]+.*$"),ln=/[^\d\[\]]/,sn=function(){function e(t){var o=t.defaultCountry,n=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=o,this.defaultCallingCode=n,this.metadata=a,this.onNationalSignificantNumberChange=i}var t,o;return t=e,(o=[{key:"input",value:function(e,t){var o,n=function(e){var t=tn(function(e){var t=function(e){var t,o=e.search(rn);if(!(o<0))return"+"===(e=e.slice(o))[0]&&(t=!0,e=e.slice(1)),e=e.replace(dn,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice(1),!0]:[t]}(e),2),o=t[0],n=t[1];return an.test(o)||(o=""),[o,n]}(e),a=tn(n,2),i=a[0],r=a[1],d=j(i);return r&&(t.digits||(t.startInternationalNumber(),d||(o=!0))),d&&this.inputDigits(d,t),{digits:d,justLeadingPlus:o}}},{key:"inputDigits",value:function(e,t){var o=t.digits,n=o.length<3&&o.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,o=e.callingCode;return t&&!o}},{key:"extractCountryCallingCode",value:function(e){var t=Ie("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=t.countryCallingCode,n=t.number;if(o)return e.setCallingCode(o),e.update({nationalSignificantNumber:n}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&ln.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var o=Pe(e,this.metadata),n=o.nationalPrefix,a=o.nationalNumber,i=o.carrierCode;if(a!==e)return this.onExtractedNationalNumber(n,i,a,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,o){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,o);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=Pe(e,this.metadata),a=n.nationalPrefix,i=n.nationalNumber,r=n.carrierCode;if(i!==t)return this.onExtractedNationalNumber(a,r,i,e,o),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,o,n,a){var i,r,d=n.lastIndexOf(o);if(d>=0&&d===n.length-o.length){r=!0;var l=n.slice(0,d);l!==e&&(i=l)}a({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:o,nationalSignificantNumberMatchesInput:r,complexPrefixBeforeNationalSignificantNumber:i}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,o=e.IDDPrefix,n=e.digits;if(e.nationalSignificantNumber,!t&&!o){var a=xe(n,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==a&&a!==n?(e.update({IDDPrefix:n.slice(0,n.length-a.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=Te(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=t.countryCallingCode;if(t.number,o)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:o}),!0}}},{key:"startInternationalNumber",value:function(e,t){var o=t.country,n=t.callingCode;e.startInternationalNumber(o,n),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}])&&nn(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cn(e){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(e)}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function hn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pn=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new $(o);var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,a,i=[],r=!0,d=!1;try{for(o=o.call(e);!(r=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);r=!0);}catch(e){d=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(d)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return un(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?un(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.getCountryAndCallingCode(t),2),a=n[0],i=n[1];this.defaultCountry=a,this.defaultCallingCode=i,this.reset()}var t,o;return t=e,(o=[{key:"getCountryAndCallingCode",value:function(e){var t,o;return e&&("object"===cn(e)?(t=e.defaultCountry,o=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,o]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),o=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(o){var n;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(o,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(n=this.formatter.format(a,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new To({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,o){e.metadata.selectNumberingPlan(o,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new en({state:this.state,metadata:this.metadata}),this.parser=new sn({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset(this.defaultCountry,this.defaultCallingCode),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var o=this.state.callingCode;return function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e}(o?e?"".concat(o," ").concat(e):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,o=e.complexPrefixBeforeNationalSignificantNumber,n=e.nationalPrefix,a=t,i=o||n;return i&&(a=i+a),a}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,Fo)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Ae(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,o=e.callingCode,n=e.country,a=e.nationalSignificantNumber;if(t)return this.isInternational()?o?"+"+o+a:"+"+t:n||o?"+"+(n?this.metadata.countryCallingCode():o)+a:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,o=e.carrierCode,n=e.callingCode,a=this._getCountry();if(t&&(a||n)){var i=new be(a||n,t,this.metadata.metadata);return o&&(i.carrierCode=o),i}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])&&hn(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mn(e){return new $(e).getCountries()}function vn(e,t,o){if(t[e])return new be(e,t[e],o)}function fn(e,t,o){return o||(o=t,t=void 0),new pn(t,o).input(e)}function gn(){return o(He,arguments)}function Cn(){return o(Je,arguments)}function yn(e,o){return go.call(this,e,o,t)}function $n(e){return pn.call(this,e,t)}function kn(){return $.call(this,t)}yn.prototype=Object.create(go.prototype,{}),yn.prototype.constructor=yn,$n.prototype=Object.create(pn.prototype,{}),$n.prototype.constructor=$n,kn.prototype=Object.create($.prototype,{}),kn.prototype.constructor=kn,e.AsYouType=$n,e.DIGIT_PLACEHOLDER=Fo,e.Metadata=kn,e.ParseError=u,e.PhoneNumberMatcher=yn,e.default=Cn,e.findNumbers=function(){return o(Co,arguments)},e.findPhoneNumbersInText=function(){return o(So,arguments)},e.formatIncompletePhoneNumber=function(){return o(fn,arguments)},e.formatRFC3966=te,e.getCountries=function(){return o(mn,arguments)},e.getCountryCallingCode=function(){return o(T,arguments)},e.getExampleNumber=function(){return o(vn,arguments)},e.getExtPrefix=function(){return o(D,arguments)},e.isPossiblePhoneNumber=function(){return o(it,arguments)},e.isSupportedCountry=function(){return o(I,arguments)},e.isValidPhoneNumber=function(){return o(tt,arguments)},e.parseDigits=j,e.parseIncompletePhoneNumber=G,e.parsePhoneNumber=gn,e.parsePhoneNumberCharacter=z,e.parsePhoneNumberFromString=Cn,e.parsePhoneNumberWithError=gn,e.parseRFC3966=ee,e.searchNumbers=function(){return o(yo,arguments)},e.searchPhoneNumbersInText=function(){return o(Po,arguments)},e.validatePhoneNumberLength=function(){return o(st,arguments)},Object.defineProperty(e,"__esModule",{value:!0})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){$.extend($.fn,{validate:function(e){if(this.length){var t=$.data(this[0],"validator");return t||(this.attr("novalidate","novalidate"),t=new $.validator(e,this[0]),$.data(this[0],"validator",t),t.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){t.settings.submitHandler&&(t.submitButton=e.target),$(e.target).hasClass("cancel")&&(t.cancelSubmit=!0),void 0!==$(e.target).attr("formnovalidate")&&(t.cancelSubmit=!0)}),this.submit(function(e){function o(){var o,n;return!t.settings.submitHandler||(t.submitButton&&(o=$("<input type='hidden'/>").attr("name",t.submitButton.name).val($(t.submitButton).val()).appendTo(t.currentForm)),n=t.settings.submitHandler.call(t,t.currentForm,e),t.submitButton&&o.remove(),void 0!==n&&n)}return t.settings.debug&&e.preventDefault(),t.cancelSubmit?(t.cancelSubmit=!1,o()):t.form()?t.pendingRequest?(t.formSubmitted=!0,!1):o():(t.focusInvalid(),!1)})),t)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){return this.validate().form()},removeAttrs:function(e){var t={},o=this;return $.each(e.split(/\s/),function(e,n){t[n]=o.attr(n),o.removeAttr(n)}),t},rules:function(e,t){var o,n,a,i,r,d,l=this[0];if(e)switch(n=(o=$.data($(l).closest("[data-type=validcontainer]")[0],"validator").settings).rules,a=$.validator.staticRules(l),e){case"add":$.extend(a,$.validator.normalizeRule(t)),delete a.messages,n[l.name]=a,t.messages&&(o.messages[l.name]=$.extend(o.messages[l.name],t.messages));break;case"remove":return t?(d={},$.each(t.split(/\s/),function(e,t){d[t]=a[t],delete a[t],"required"===t&&$(l).removeAttr("aria-required")}),d):(delete n[l.name],a)}return(i=$.validator.normalizeRules($.extend({},$.validator.classRules(l),$.validator.attributeRules(l),$.validator.dataRules(l),$.validator.staticRules(l)),l)).required&&(r=i.required,delete i.required,i=$.extend({required:r},i),$(l).attr("aria-required","true")),i.remote&&(r=i.remote,delete i.remote,i=$.extend(i,{remote:r})),i}}),$.extend($.expr[":"],{blank:function(e){return!$.trim(""+$(e).val())},filled:function(e){return!!$.trim(""+$(e).val())},unchecked:function(e){return!$(e).prop("checked")}}),$.validator=function(e,t){this.settings=$.extend(!0,{},$.validator.defaults,e),this.currentForm=t,this.init()},$.validator.format=function(e,t){return 1===arguments.length?function(){var t=$.makeArray(arguments);return t.unshift(e),$.validator.format.apply(this,t)}:(arguments.length>2&&t.constructor!==Array&&(t=$.makeArray(arguments).slice(1)),t.constructor!==Array&&(t=[t]),$.each(t,function(t,o){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return o})}),e)},$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"errorInput",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||(e.name in this.submitted||e===this.lastElement)&&this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,o){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(o):$(e).parent().hasClass("dropdowndiv")?$(e).parent().addClass(t).removeClass(o):$(e).addClass(t).removeClass(o)},unhighlight:function(e,t,o){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(o):$(e).parent().hasClass("dropdowndiv")?$(e).parent().removeClass(t).addClass(o):$(e).removeClass(t).addClass(o)}},setDefaults:function(e){$.extend($.validator.defaults,e)},messages:{required:"required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm),this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e,t=this.groups={};function o(e){var t=$.data($(this[0]).closest("[data-type=validcontainer]")[0],"validator"),o="on"+e.type.replace(/^validate/,""),n=t.settings;t&&n[o]&&!this.is(n.ignore)&&n[o].call(t,this[0],e)}$.each(this.settings.groups,function(e,o){"string"==typeof o&&(o=o.split(/\s/)),$.each(o,function(o,n){t[n]=e})}),e=this.settings.rules,$.each(e,function(t,o){e[t]=$.validator.normalizeRule(o)}),$(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",o).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",o),this.settings.invalidHandler&&$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),$(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),$.extend(this.submitted,this.errorMap),this.invalid=$.extend({},this.errorMap),this.valid()||$(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){var t=this.clean(e),o=this.validationTargetFor(t),n=!0;return this.lastElement=o,void 0===o?delete this.invalid[t.name]:(this.prepareElement(o),this.currentElements=$(o),(n=!1!==this.check(o))?delete this.invalid[o.name]:this.invalid[o.name]=!0),$(e).attr("aria-invalid",!n),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n},showErrors:function(e){if(e){for(var t in $.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[t],element:this.findByName(t)[0]});this.successList=$.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){$.fn.resetForm&&$(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid"),this.elements().parent().hasClass("dropdowndiv")&&this.elements().parent().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,o=0;for(t in e)o++;return o},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===$.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,t={};return $(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in t||!e.objectLength($(this).rules()))&&(t[this.name]=!0,!0)})},clean:function(e){return $(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=$([]),this.toHide=$([]),this.currentElements=$([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t,o=$(e),n=e.type;return"radio"===n||"checkbox"===n?$("input[name='"+e.name+"']:checked").val():"number"===n&&void 0!==e.validity?!e.validity.badInput&&o.val():"string"==typeof(t=o.val())?t.replace(/\r/g,""):t},check:function(e){e=this.validationTargetFor(this.clean(e));var t,o,n,a=$(e).rules(),i=$.map(a,function(e,t){return t}).length,r=!1,d=this.elementValue(e);for(o in a){n={method:o,parameters:a[o]};try{if("dependency-mismatch"===(t=$.validator.methods[o].call(this,d,e,n.parameters))&&1===i){r=!0;continue}if(r=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,n),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",t),t}}if(!r)return this.objectLength(a)&&this.successList.push(e),!0},customDataMessage:function(e,t){return $(e).data("msg"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())||$(e).data("msg")},customMessage:function(e,t){var o=this.settings.messages[e];return o&&(o.constructor===String?o:o[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){return this.findDefined(this.customMessage(e.name,t),this.customDataMessage(e,t),!this.settings.ignoreTitle&&e.title||void 0,$.validator.messages[t],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,t){var o=this.defaultMessage(e,t.method),n=/\$?\{(\d+)\}/g;"function"==typeof o?o=o.call(this,t.parameters,e):n.test(o)&&(o=$.validator.format(o.replace(n,"{$1}"),t.parameters)),this.errorList.push({message:o,element:e,method:t.method}),this.errorMap[e.name]=o,this.submitted[e.name]=o},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,o;for(e=0;this.errorList[e];e++)o=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,o.element,this.settings.errorClass,this.settings.validClass),this.showLabel(o.element,o.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return $(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var o,n,a,i=this.errorsFor(e),r=this.idOrName(e),d=$(e).attr("aria-describedby");i.length?(i.removeClass(this.settings.validClass).addClass(this.settings.errorClass),i.html(t)):(o=i=$("<"+this.settings.errorElement+">").attr("id",r+"-error").addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(o=i.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(o):this.settings.errorPlacement?this.settings.errorPlacement(o,$(e)):$(e).parent().hasClass("dropdowndiv")?o.insertAfter($(e).parent()):o.insertAfter(e),i.is("label")?i.attr("for",r):0===i.parents("label[for='"+r+"']").length&&(a=i.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),d?d.match(new RegExp("\\b"+a+"\\b"))||(d+=" "+a):d=a,$(e).attr("aria-describedby",d),(n=this.groups[e.name])&&$.each(this.groups,function(e,t){t===n&&$("[name='"+e+"']",this.currentForm).attr("aria-describedby",i.attr("id"))}))),!t&&this.settings.success&&(i.text(""),"string"==typeof this.settings.success?i.addClass(this.settings.success):this.settings.success(i,e)),this.toShow=this.toShow.add(i)},errorsFor:function(e){var t=this.idOrName(e),o=$(e).attr("aria-describedby"),n="label[for='"+t+"'], label[for='"+t+"'] *";return o&&(n=n+", #"+o.replace(/\s+/g,", #")),this.errors().filter(n)},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),$(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return $(this.currentForm).find("[name='"+e+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return $("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(e,t){return!!$(e,t).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!$.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?($(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&($(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return $.data(e,"previousValue")||$.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:$.extend(this.classRuleSettings,e)},classRules:function(e){var t={},o=$(e).attr("class");return o&&$.each(o.split(" "),function(){this in $.validator.classRuleSettings&&$.extend(t,$.validator.classRuleSettings[this])}),t},attributeRules:function(e){var t,o,n={},a=$(e),i=e.getAttribute("type");for(t in $.validator.methods)"required"===t?(""===(o=e.getAttribute(t))&&(o=!0),o=!!o):o=a.attr(t),/min|max/.test(t)&&(null===i||/number|range|text/.test(i))&&(o=Number(o)),o||0===o?n[t]=o:i===t&&"range"!==i&&(n[t]=!0);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var t,o,n={},a=$(e);for(t in $.validator.methods)void 0!==(o=a.data("rule"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()))&&(n[t]=o);return n},staticRules:function(e){var t={},o=$.data($(e).closest("[data-type=validcontainer]")[0],"validator");return o.settings.rules&&(t=$.validator.normalizeRule(o.settings.rules[e.name])||{}),t},normalizeRules:function(e,t){return $.each(e,function(o,n){if(!1!==n){if(n.param||n.depends){var a=!0;switch(typeof n.depends){case"string":a=!!$(n.depends,t).length;break;case"function":a=n.depends.call(t,t)}a?e[o]=void 0===n.param||n.param:delete e[o]}}else delete e[o]}),$.each(e,function(o,n){e[o]=$.isFunction(n)?n(t):n}),$.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),$.each(["rangelength","range"],function(){var t;e[this]&&($.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(t=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(t[0]),Number(t[1])]))}),$.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var t={};$.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,o){$.validator.methods[e]=t,$.validator.messages[e]=void 0!==o?o:$.validator.messages[e],t.length<3&&$.validator.addClassRules(e,$.validator.normalizeRule(e))},methods:{required:function(e,t,o){if(!this.depend(o,t))return"dependency-mismatch";if("select"===t.nodeName.toLowerCase()){var n=$(t).val();return n&&n.length>0}return this.checkable(t)?this.getLength(e,t)>0:$.trim(e).length>0},email:function(e,t){return this.optional(t)||/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},url:function(e,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(e))return!1;var o,n,a=0,i=0,r=!1;if((e=e.replace(/\D/g,"")).length<13||e.length>19)return!1;for(o=e.length-1;o>=0;o--)n=e.charAt(o),i=parseInt(n,10),r&&(i*=2)>9&&(i-=9),a+=i,r=!r;return a%10==0},minlength:function(e,t,o){var n=$.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n>=o},maxlength:function(e,t,o){var n=$.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n<=o},rangelength:function(e,t,o){var n=$.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n>=o[0]&&n<=o[1]},min:function(e,t,o){return this.optional(t)||e>=o},max:function(e,t,o){return this.optional(t)||e<=o},range:function(e,t,o){return this.optional(t)||e>=o[0]&&e<=o[1]},equalTo:function(e,t,o){var n=$(o);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){$(t).valid()}),e===n.val()},remote:function(e,t,o){if(this.optional(t))return"dependency-mismatch";var n,a,i=this.previousValue(t);return this.settings.messages[t.name]||(this.settings.messages[t.name]={}),i.originalMessage=this.settings.messages[t.name].remote,this.settings.messages[t.name].remote=i.message,o="string"==typeof o&&{url:o}||o,i.old===e?i.valid:(i.old=e,n=this,this.startRequest(t),(a={})[t.name]=e,$.ajax($.extend(!0,{url:o,mode:"abort",port:"validate"+t.name,dataType:"json",data:a,context:n.currentForm,success:function(o){var a,r,d,l=!0===o||"true"===o;n.settings.messages[t.name].remote=i.originalMessage,l?(d=n.formSubmitted,n.prepareElement(t),n.formSubmitted=d,n.successList.push(t),delete n.invalid[t.name],n.showErrors()):(a={},r=o||n.defaultMessage(t,"remote"),a[t.name]=i.message=$.isFunction(r)?r(e):r,n.invalid[t.name]=!0,n.showErrors(a)),i.valid=l,n.stopRequest(t,l)}},o)),"pending")}}}),$.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var t,o={};$.ajaxPrefilter?$.ajaxPrefilter(function(e,t,n){var a=e.port;"abort"===e.mode&&(o[a]&&o[a].abort(),o[a]=n)}):(t=$.ajax,$.ajax=function(e){var n=("mode"in e?e:$.ajaxSettings).mode,a=("port"in e?e:$.ajaxSettings).port;return"abort"===n?(o[a]&&o[a].abort(),o[a]=t.apply(this,arguments),o[a]):t.apply(this,arguments)}),$.extend($.fn,{validateDelegate:function(e,t,o){return this.bind(t,function(t){var n=$(t.target);if(n.is(e))return o.apply(n,arguments)})}})});var dtCh="/",minYear=1900,maxYear=2100;function isInteger(e){var t;for(t=0;t<e.length;t++){var o=e.charAt(t);if(o<"0"||o>"9")return!1}return!0}function stripCharsInBag(e,t){var o,n="";for(o=0;o<e.length;o++){var a=e.charAt(o);-1==t.indexOf(a)&&(n+=a)}return n}function daysInFebruary(e){return e%4!=0||e%100==0&&e%400!=0?28:29}function DaysArray(e){for(var t=new Array(12),o=1;o<=e;o++)t[o]=31,4!=o&&6!=o&&9!=o&&11!=o||(t[o]=30),2==o&&(t[o]=29);return t}function chkDate(e,t){var o=DaysArray(12),n=e.indexOf(dtCh),a=e.indexOf(dtCh,n+1),i=e.substring(0,n),r=e.substring(n+1,a),d=e.substring(a+1);strYr=d,"0"==r.charAt(0)&&r.length>1&&(r=r.substring(1)),"0"==i.charAt(0)&&i.length>1&&(i=i.substring(1));for(var l=1;l<=3;l++)"0"==strYr.charAt(0)&&strYr.length>1&&(strYr=strYr.substring(1));if(month=parseInt(i),day=parseInt(r),year=parseInt(strYr),-1==n||-1==a)return!1;if(i.length<1||month<1||month>12)return!1;if(1==month){if(day>31)return!1}else if(day>o[month])return!1;if(r.length<1||day<1||day>31||2==month&&day>daysInFebruary(year))return!1;if(4!=d.length||0==year||year<minYear||year>maxYear)return!1;if(-1!=e.indexOf(dtCh,a+1)||0==isInteger(stripCharsInBag(e,dtCh)))return!1;if(t){var s=new Date;if(new Date(e).getTime()>s.getTime())return!1}return!0}var VagaroCountryDateFormat=Object.freeze({SmallDate:1,SmallDateWithTime:2,LargeDate:3,LargeDateWithTime:4,MiniDate:5,LongMiniDate:6,ChartDate:7});function countryDateFormat(e,t,o){try{if("undefined"==e||null==e||""==e||"---"==e||"--"==e)return e;void 0!==o&&null!=o&&""!=o||(o=GetBusinessCountry()),2!=o&&(o=1);var n=_countryDateFormat.find(function(e){return e.countryId===parseInt(o)&&e.dateFormatId===t});return null!=n&&""!=n&&n&&""!==n.dateFormat.trim()?"Invalid date"==moment(e).format(n.jsDateFormat)?e:moment(e).format(n.jsDateFormat):e.format("MMM dd, yyyy")}catch(t){console.error(t);try{return e.format("MMM dd, yyyy")}catch(t){return e}}}function DatePickerFormat(e){let t=GetBusinessCountry();return 2!=t&&(t=1),_countryDateFormat.find(function(o){return o.countryId==t&&o.dateFormatId===e}).jsDateFormat}function GetBusinessCountry(){return"undefined"!=typeof bCountryID&&null!=bCountryID&&"0"!=bCountryID&&"0"!=bCountryID?bCountryID:"undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId&&""!=glbBusinessCountryId&&"0"!=glbBusinessCountryId?glbBusinessCountryId:"undefined"!=typeof _businessCountryId&&null!=_businessCountryId&&""!=_businessCountryId&&"0"!=_businessCountryId?_businessCountryId:"undefined"!=typeof BusinessCountryID&&null!=BusinessCountryID&&"0"!=BusinessCountryID&&"0"!=BusinessCountryID?BusinessCountryID:"undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&"0"!=countryIdBusDetail&&"0"!=countryIdBusDetail?countryIdBusDetail:"undefined"!=typeof countryid&&null!=countryid&&"0"!=countryid&&"0"!=countryid?countryid:1}