/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!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 i=[],n=i.slice,a=i.concat,o=i.push,s=i.indexOf,r={},c=r.toString,l=r.hasOwnProperty,d={},u="1.11.3",p=function(e,t){return new p.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,h=/^-ms-/,m=/-([\da-z])/gi,g=function(e,t){return t.toUpperCase()};function v(e){var t="length"in e&&e.length,i=p.type(e);return"function"!==i&&!p.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e))}p.fn=p.prototype={jquery:u,constructor:p,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=p.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return p.each(this,e,t)},map:function(e){return this.pushStack(p.map(this,function(t,i){return e.call(t,i,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,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:o,sort:i.sort,splice:i.splice},p.extend=p.fn.extend=function(){var e,t,i,n,a,o,s=arguments[0]||{},r=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[r]||{},r++),"object"==typeof s||p.isFunction(s)||(s={}),r===c&&(s=this,r--);c>r;r++)if(null!=(a=arguments[r]))for(n in a)e=s[n],s!==(i=a[n])&&(l&&i&&(p.isPlainObject(i)||(t=p.isArray(i)))?(t?(t=!1,o=e&&p.isArray(e)?e:[]):o=e&&p.isPlainObject(e)?e:{},s[n]=p.extend(l,o,i)):void 0!==i&&(s[n]=i));return s},p.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"===p.type(e)},isArray:Array.isArray||function(e){return"array"===p.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!p.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==p.type(e)||e.nodeType||p.isWindow(e))return!1;try{if(e.constructor&&!l.call(e,"constructor")&&!l.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(d.ownLast)for(t in e)return l.call(e,t);for(t in e);return void 0===t||l.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[c.call(e)]||"object":typeof e},globalEval:function(t){t&&p.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(h,"ms-").replace(m,g)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,a=e.length,o=v(e);if(i){if(o)for(;a>n&&!1!==t.apply(e[n],i);n++);else for(n in e)if(!1===t.apply(e[n],i))break}else if(o)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(f,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(v(Object(e))?p.merge(i,"string"==typeof e?[e]:e):o.call(i,e)),i},inArray:function(e,t,i){var n;if(t){if(s)return s.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,t){for(var i=+t.length,n=0,a=e.length;i>n;)e[a++]=t[n++];if(i!=i)for(;void 0!==t[n];)e[a++]=t[n++];return e.length=a,e},grep:function(e,t,i){for(var n=[],a=0,o=e.length,s=!i;o>a;a++)!t(e[a],a)!==s&&n.push(e[a]);return n},map:function(e,t,i){var n,o=0,s=e.length,r=[];if(v(e))for(;s>o;o++)null!=(n=t(e[o],o,i))&&r.push(n);else for(o in e)null!=(n=t(e[o],o,i))&&r.push(n);return a.apply([],r)},guid:1,proxy:function(e,t){var i,a,o;return"string"==typeof t&&(o=e[t],t=e,e=o),p.isFunction(e)?(i=n.call(arguments,2),a=function(){return e.apply(t||this,i.concat(n.call(arguments)))},a.guid=e.guid=e.guid||p.guid++,a):void 0},now:function(){return+new Date},support:d}),p.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){r["[object "+t+"]"]=t.toLowerCase()});var y=function(e){var t,i,n,a,o,s,r,c,l,d,u,p,f,h,m,g,v,y,b,_="sizzle"+1*new Date,C=e.document,w=0,x=0,I=se(),S=se(),k=se(),N=function(e,t){return e===t&&(u=!0),0},D=1<<31,B={}.hasOwnProperty,T=[],A=T.pop,M=T.push,$=T.push,P=T.slice,O=function(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",E="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=E.replace("w","w#"),W="\\["+L+"*("+E+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+L+"*\\]",U=":("+E+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",H=new RegExp(L+"+","g"),V=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),j=new RegExp("^"+L+"*,"+L+"*"),Y=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),z=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),q=new RegExp(U),G=new RegExp("^"+F+"$"),J={ID:new RegExp("^#("+E+")"),CLASS:new RegExp("^\\.("+E+")"),TAG:new RegExp("^("+E.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ne=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ae=function(){p()};try{$.apply(T=P.call(C.childNodes),C.childNodes),T[C.childNodes.length].nodeType}catch(e){$={apply:T.length?function(e,t){M.apply(e,P.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e,t,n,a){var o,r,l,d,u,h,v,y,w,x;if((t?t.ownerDocument||t:C)!==f&&p(t),n=n||[],d=(t=t||f).nodeType,"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!a&&m){if(11!==d&&(o=Q.exec(e)))if(l=o[1]){if(9===d){if(!(r=t.getElementById(l))||!r.parentNode)return n;if(r.id===l)return n.push(r),n}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(l))&&b(t,r)&&r.id===l)return n.push(r),n}else{if(o[2])return $.apply(n,t.getElementsByTagName(e)),n;if((l=o[3])&&i.getElementsByClassName)return $.apply(n,t.getElementsByClassName(l)),n}if(i.qsa&&(!g||!g.test(e))){if(y=v=_,w=t,x=1!==d&&e,1===d&&"object"!==t.nodeName.toLowerCase()){for(h=s(e),(v=t.getAttribute("id"))?y=v.replace(te,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",u=h.length;u--;)h[u]=y+ge(h[u]);w=ee.test(e)&&he(t.parentNode)||t,x=h.join(",")}if(x)try{return $.apply(n,w.querySelectorAll(x)),n}catch(e){}finally{v||t.removeAttribute("id")}}}return c(e.replace(V,"$1"),t,n,a)}function se(){var e=[];return function t(i,a){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=a}}function re(e){return e[_]=!0,e}function ce(e){var t=f.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 i=e.split("|"),a=e.length;a--;)n.attrHandle[i[a]]=t}function de(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function fe(e){return re(function(t){return t=+t,re(function(i,n){for(var a,o=e([],i.length,t),s=o.length;s--;)i[a=o[s]]&&(i[a]=!(n[a]=i[a]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,a,s=e?e.ownerDocument||e:C;return s!==f&&9===s.nodeType&&s.documentElement?(f=s,h=s.documentElement,(a=s.defaultView)&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",ae,!1):a.attachEvent&&a.attachEvent("onunload",ae)),m=!o(s),i.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=ce(function(e){return e.appendChild(s.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=K.test(s.getElementsByClassName),i.getById=ce(function(e){return h.appendChild(e).id=_,!s.getElementsByName||!s.getElementsByName(_).length}),i.getById?(n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],a=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[a++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(e,t){return m?t.getElementsByClassName(e):void 0},v=[],g=[],(i.qsa=K.test(s.querySelectorAll))&&(ce(function(e){h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),ce(function(e){var t=s.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce(function(e){i.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",U)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=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)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument===C&&b(C,e)?-1:t===s||t.ownerDocument===C&&b(C,t)?1:d?O(d,e)-O(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,a=e.parentNode,o=t.parentNode,r=[e],c=[t];if(!a||!o)return e===s?-1:t===s?1:a?-1:o?1:d?O(d,e)-O(d,t):0;if(a===o)return de(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)c.unshift(i);for(;r[n]===c[n];)n++;return n?de(r[n],c[n]):r[n]===C?-1:c[n]===C?1:0},s):f},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(z,"='$1']"),!(!i.matchesSelector||!m||v&&v.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return oe(t,f,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var a=n.attrHandle[t.toLowerCase()],o=a&&B.call(n.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==o?o:i.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],a=0,o=0;if(u=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(N),u){for(;t=e[o++];)t===e[o]&&(a=n.push(o));for(;a--;)e.splice(n[a],1)}return d=null,e},a=oe.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=a(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=a(t);return i},n=oe.selectors={cacheLength:50,createPseudo:re,match:J,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(ie,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&q.test(i)&&(t=s(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var a=oe.attr(n,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&a.indexOf(i)>-1:"$="===t?i&&a.slice(-i.length)===i:"~="===t?(" "+a.replace(H," ")+" ").indexOf(i)>-1:"|="===t&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,a){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),r="of-type"===t;return 1===n&&0===a?function(e){return!!e.parentNode}:function(t,i,c){var l,d,u,p,f,h,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=r&&t.nodeName.toLowerCase(),y=!c&&!r;if(g){if(o){for(;m;){for(u=t;u=u[m];)if(r?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&y){for(f=(l=(d=g[_]||(g[_]={}))[e]||[])[0]===w&&l[1],p=l[0]===w&&l[2],u=f&&g.childNodes[f];u=++f&&u&&u[m]||(p=f=0)||h.pop();)if(1===u.nodeType&&++p&&u===t){d[e]=[w,f,p];break}}else if(y&&(l=(t[_]||(t[_]={}))[e])&&l[0]===w)p=l[1];else for(;(u=++f&&u&&u[m]||(p=f=0)||h.pop())&&((r?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(y&&((u[_]||(u[_]={}))[e]=[w,p]),u!==t)););return(p-=a)===n||p%n===0&&p/n>=0}}},PSEUDO:function(e,t){var i,a=n.pseudos[e]||n.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[_]?a(t):a.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?re(function(e,i){for(var n,o=a(e,t),s=o.length;s--;)e[n=O(e,o[s])]=!(i[n]=o[s])}):function(e){return a(e,0,i)}):a}},pseudos:{not:re(function(e){var t=[],i=[],n=r(e.replace(V,"$1"));return n[_]?re(function(e,t,i,a){for(var o,s=n(e,null,a,[]),r=e.length;r--;)(o=s[r])&&(e[r]=!(t[r]=o))}):function(e,a,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}}),has:re(function(e){return function(t){return oe(e,t).length>0}}),contains:re(function(e){return e=e.replace(ie,ne),function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:re(function(e){return G.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(ie,ne).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.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 X.test(e.nodeName)},input:function(e){return Z.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:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,i){return[0>i?i+t:i]}),even:fe(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:fe(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:fe(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:fe(function(e,t,i){for(var n=0>i?i+t:i;++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]=ue(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=pe(t);function me(){}function ge(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function ve(e,t,i){var n=t.dir,a=i&&"parentNode"===n,o=x++;return t.first?function(t,i,o){for(;t=t[n];)if(1===t.nodeType||a)return e(t,i,o)}:function(t,i,s){var r,c,l=[w,o];if(s){for(;t=t[n];)if((1===t.nodeType||a)&&e(t,i,s))return!0}else for(;t=t[n];)if(1===t.nodeType||a){if((r=(c=t[_]||(t[_]={}))[n])&&r[0]===w&&r[1]===o)return l[2]=r[2];if(c[n]=l,l[2]=e(t,i,s))return!0}}}function ye(e){return e.length>1?function(t,i,n){for(var a=e.length;a--;)if(!e[a](t,i,n))return!1;return!0}:e[0]}function be(e,t,i,n,a){for(var o,s=[],r=0,c=e.length,l=null!=t;c>r;r++)(o=e[r])&&(!i||i(o,n,a))&&(s.push(o),l&&t.push(r));return s}function _e(e,t,i,n,a,o){return n&&!n[_]&&(n=_e(n)),a&&!a[_]&&(a=_e(a,o)),re(function(o,s,r,c){var l,d,u,p=[],f=[],h=s.length,m=o||function(e,t,i){for(var n=0,a=t.length;a>n;n++)oe(e,t[n],i);return i}(t||"*",r.nodeType?[r]:r,[]),g=!e||!o&&t?m:be(m,p,e,r,c),v=i?a||(o?e:h||n)?[]:s:g;if(i&&i(g,v,r,c),n)for(l=be(v,f),n(l,[],r,c),d=l.length;d--;)(u=l[d])&&(v[f[d]]=!(g[f[d]]=u));if(o){if(a||e){if(a){for(l=[],d=v.length;d--;)(u=v[d])&&l.push(g[d]=u);a(null,v=[],l,c)}for(d=v.length;d--;)(u=v[d])&&(l=a?O(o,u):p[d])>-1&&(o[l]=!(s[l]=u))}}else v=be(v===s?v.splice(h,v.length):v),a?a(null,s,v,c):$.apply(s,v)})}function Ce(e){for(var t,i,a,o=e.length,s=n.relative[e[0].type],r=s||n.relative[" "],c=s?1:0,d=ve(function(e){return e===t},r,!0),u=ve(function(e){return O(t,e)>-1},r,!0),p=[function(e,i,n){var a=!s&&(n||i!==l)||((t=i).nodeType?d(e,i,n):u(e,i,n));return t=null,a}];o>c;c++)if(i=n.relative[e[c].type])p=[ve(ye(p),i)];else{if((i=n.filter[e[c].type].apply(null,e[c].matches))[_]){for(a=++c;o>a&&!n.relative[e[a].type];a++);return _e(c>1&&ye(p),c>1&&ge(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(V,"$1"),i,a>c&&Ce(e.slice(c,a)),o>a&&Ce(e=e.slice(a)),o>a&&ge(e))}p.push(i)}return ye(p)}function we(e,t){var i=t.length>0,a=e.length>0,o=function(o,s,r,c,d){var u,p,h,m=0,g="0",v=o&&[],y=[],b=l,_=o||a&&n.find.TAG("*",d),C=w+=null==b?1:Math.random()||.1,x=_.length;for(d&&(l=s!==f&&s);g!==x&&null!=(u=_[g]);g++){if(a&&u){for(p=0;h=e[p++];)if(h(u,s,r)){c.push(u);break}d&&(w=C)}i&&((u=!h&&u)&&m--,o&&v.push(u))}if(m+=g,i&&g!==m){for(p=0;h=t[p++];)h(v,y,s,r);if(o){if(m>0)for(;g--;)v[g]||y[g]||(y[g]=A.call(c));y=be(y)}$.apply(c,y),d&&!o&&y.length>0&&m+t.length>1&&oe.uniqueSort(c)}return d&&(w=C,l=b),v};return i?re(o):o}return me.prototype=n.filters=n.pseudos,n.setFilters=new me,s=oe.tokenize=function(e,t){var i,a,o,s,r,c,l,d=S[e+" "];if(d)return t?0:d.slice(0);for(r=e,c=[],l=n.preFilter;r;){for(s in(!i||(a=j.exec(r)))&&(a&&(r=r.slice(a[0].length)||r),c.push(o=[])),i=!1,(a=Y.exec(r))&&(i=a.shift(),o.push({value:i,type:a[0].replace(V," ")}),r=r.slice(i.length)),n.filter)!(a=J[s].exec(r))||l[s]&&!(a=l[s](a))||(i=a.shift(),o.push({value:i,type:s,matches:a}),r=r.slice(i.length));if(!i)break}return t?r.length:r?oe.error(e):S(e,c).slice(0)},r=oe.compile=function(e,t){var i,n=[],a=[],o=k[e+" "];if(!o){for(t||(t=s(e)),i=t.length;i--;)(o=Ce(t[i]))[_]?n.push(o):a.push(o);(o=k(e,we(a,n))).selector=e}return o},c=oe.select=function(e,t,a,o){var c,l,d,u,p,f="function"==typeof e&&e,h=!o&&s(e=f.selector||e);if(a=a||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(d=l[0]).type&&i.getById&&9===t.nodeType&&m&&n.relative[l[1].type]){if(!(t=(n.find.ID(d.matches[0].replace(ie,ne),t)||[])[0]))return a;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(c=J.needsContext.test(e)?0:l.length;c--&&(d=l[c],!n.relative[u=d.type]);)if((p=n.find[u])&&(o=p(d.matches[0].replace(ie,ne),ee.test(l[0].type)&&he(t.parentNode)||t))){if(l.splice(c,1),!(e=o.length&&ge(l)))return $.apply(a,o),a;break}}return(f||r(e,h))(o,t,!m,a,ee.test(e)&&he(t.parentNode)||t),a},i.sortStable=_.split("").sort(N).join("")===_,i.detectDuplicates=!!u,p(),i.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||le(R,function(e,t,i){var n;return i?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),oe}(e);p.find=y,p.expr=y.selectors,p.expr[":"]=p.expr.pseudos,p.unique=y.uniqueSort,p.text=y.getText,p.isXMLDoc=y.isXML,p.contains=y.contains;var b=p.expr.match.needsContext,_=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;function w(e,t,i){if(p.isFunction(t))return p.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return p.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(C.test(t))return p.filter(t,e,i);t=p.filter(t,e)}return p.grep(e,function(e){return p.inArray(e,t)>=0!==i})}p.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?p.find.matchesSelector(n,e)?[n]:[]:p.find.matches(e,p.grep(t,function(e){return 1===e.nodeType}))},p.fn.extend({find:function(e){var t,i=[],n=this,a=n.length;if("string"!=typeof e)return this.pushStack(p(e).filter(function(){for(t=0;a>t;t++)if(p.contains(n[t],this))return!0}));for(t=0;a>t;t++)p.find(e,n[t],i);return(i=this.pushStack(a>1?p.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},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&&b.test(e)?p(e):e||[],!1).length}});var x,I=e.document,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=p.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:S.exec(e))||!i[1]&&t)return!t||t.jquery?(t||x).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof p?t[0]:t,p.merge(this,p.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:I,!0)),_.test(i[1])&&p.isPlainObject(t))for(i in t)p.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=I.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return x.find(e);this.length=1,this[0]=n}return this.context=I,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):p.isFunction(e)?void 0!==x.ready?x.ready(e):e(p):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),p.makeArray(e,this))};k.prototype=p.fn,x=p(I);var N=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}p.extend({dir:function(e,t,i){for(var n=[],a=e[t];a&&9!==a.nodeType&&(void 0===i||1!==a.nodeType||!p(a).is(i));)1===a.nodeType&&n.push(a),a=a[t];return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),p.fn.extend({has:function(e){var t,i=p(e,this),n=i.length;return this.filter(function(){for(t=0;n>t;t++)if(p.contains(this,i[t]))return!0})},closest:function(e,t){for(var i,n=0,a=this.length,o=[],s=b.test(e)||"string"!=typeof e?p(e,t||this.context):0;a>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&p.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?p.unique(o):o)},index:function(e){return e?"string"==typeof e?p.inArray(this[0],p(e)):p.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(p.unique(p.merge(this.get(),p(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p.dir(e,"parentNode")},parentsUntil:function(e,t,i){return p.dir(e,"parentNode",i)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return p.dir(e,"nextSibling")},prevAll:function(e){return p.dir(e,"previousSibling")},nextUntil:function(e,t,i){return p.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return p.dir(e,"previousSibling",i)},siblings:function(e){return p.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return p.sibling(e.firstChild)},contents:function(e){return p.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:p.merge([],e.childNodes)}},function(e,t){p.fn[e]=function(i,n){var a=p.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=p.filter(n,a)),this.length>1&&(D[e]||(a=p.unique(a)),N.test(e)&&(a=a.reverse())),this.pushStack(a)}});var T,A=/\S+/g,M={};function $(){I.addEventListener?(I.removeEventListener("DOMContentLoaded",P,!1),e.removeEventListener("load",P,!1)):(I.detachEvent("onreadystatechange",P),e.detachEvent("onload",P))}function P(){(I.addEventListener||"load"===event.type||"complete"===I.readyState)&&($(),p.ready())}p.Callbacks=function(e){e="string"==typeof e?M[e]||function(e){var t=M[e]={};return p.each(e.match(A)||[],function(e,i){t[i]=!0}),t}(e):p.extend({},e);var t,i,n,a,o,s,r=[],c=!e.once&&[],l=function(u){for(i=e.memory&&u,n=!0,o=s||0,s=0,a=r.length,t=!0;r&&a>o;o++)if(!1===r[o].apply(u[0],u[1])&&e.stopOnFalse){i=!1;break}t=!1,r&&(c?c.length&&l(c.shift()):i?r=[]:d.disable())},d={add:function(){if(r){var n=r.length;!function t(i){p.each(i,function(i,n){var a=p.type(n);"function"===a?e.unique&&d.has(n)||r.push(n):n&&n.length&&"string"!==a&&t(n)})}(arguments),t?a=r.length:i&&(s=n,l(i))}return this},remove:function(){return r&&p.each(arguments,function(e,i){for(var n;(n=p.inArray(i,r,n))>-1;)r.splice(n,1),t&&(a>=n&&a--,o>=n&&o--)}),this},has:function(e){return e?p.inArray(e,r)>-1:!(!r||!r.length)},empty:function(){return r=[],a=0,this},disable:function(){return r=c=i=void 0,this},disabled:function(){return!r},lock:function(){return c=void 0,i||d.disable(),this},locked:function(){return!c},fireWith:function(e,i){return!r||n&&!c||(i=[e,(i=i||[]).slice?i.slice():i],t?c.push(i):l(i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},p.extend({Deferred:function(e){var t=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var e=arguments;return p.Deferred(function(i){p.each(t,function(t,o){var s=p.isFunction(e[t])&&e[t];a[o[1]](function(){var e=s&&s.apply(this,arguments);e&&p.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?p.extend(e,n):n}},a={};return n.pipe=n.then,p.each(t,function(e,o){var s=o[2],r=o[3];n[o[1]]=s.add,r&&s.add(function(){i=r},t[1^e][2].disable,t[2][2].lock),a[o[0]]=function(){return a[o[0]+"With"](this===a?n:this,arguments),this},a[o[0]+"With"]=s.fireWith}),n.promise(a),e&&e.call(a,a),a},when:function(e){var t,i,a,o=0,s=n.call(arguments),r=s.length,c=1!==r||e&&p.isFunction(e.promise)?r:0,l=1===c?e:p.Deferred(),d=function(e,i,a){return function(o){i[e]=this,a[e]=arguments.length>1?n.call(arguments):o,a===t?l.notifyWith(i,a):--c||l.resolveWith(i,a)}};if(r>1)for(t=new Array(r),i=new Array(r),a=new Array(r);r>o;o++)s[o]&&p.isFunction(s[o].promise)?s[o].promise().done(d(o,a,s)).fail(l.reject).progress(d(o,i,t)):--c;return c||l.resolveWith(a,s),l.promise()}}),p.fn.ready=function(e){return p.ready.promise().done(e),this},p.extend({isReady:!1,readyWait:1,holdReady:function(e){e?p.readyWait++:p.ready(!0)},ready:function(e){if(!0===e?! --p.readyWait:!p.isReady){if(!I.body)return setTimeout(p.ready);p.isReady=!0,!0!==e&&--p.readyWait>0||(T.resolveWith(I,[p]),p.fn.triggerHandler&&(p(I).triggerHandler("ready"),p(I).off("ready")))}}}),p.ready.promise=function(t){if(!T)if(T=p.Deferred(),"complete"===I.readyState)setTimeout(p.ready);else if(I.addEventListener)I.addEventListener("DOMContentLoaded",P,!1),e.addEventListener("load",P,!1);else{I.attachEvent("onreadystatechange",P),e.attachEvent("onload",P);var i=!1;try{i=null==e.frameElement&&I.documentElement}catch(e){}i&&i.doScroll&&function e(){if(!p.isReady){try{i.doScroll("left")}catch(t){return setTimeout(e,50)}$(),p.ready()}}()}return T.promise(t)};var O,R="undefined";for(O in p(d))break;d.ownLast="0"!==O,d.inlineBlockNeedsLayout=!1,p(function(){var e,t,i,n;(i=I.getElementsByTagName("body")[0])&&i.style&&(t=I.createElement("div"),(n=I.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==R&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",d.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(n))}),function(){var e=I.createElement("div");if(null==d.deleteExpando){d.deleteExpando=!0;try{delete e.test}catch(e){d.deleteExpando=!1}}e=null}(),p.acceptData=function(e){var t=p.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var L=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,E=/([A-Z])/g;function F(e,t,i){if(void 0===i&&1===e.nodeType){var n="data-"+t.replace(E,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:L.test(i)?p.parseJSON(i):i)}catch(e){}p.data(e,t,i)}else i=void 0}return i}function W(e){var t;for(t in e)if(("data"!==t||!p.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function U(e,t,n,a){if(p.acceptData(e)){var o,s,r=p.expando,c=e.nodeType,l=c?p.cache:e,d=c?e[r]:e[r]&&r;if(d&&l[d]&&(a||l[d].data)||void 0!==n||"string"!=typeof t)return d||(d=c?e[r]=i.pop()||p.guid++:r),l[d]||(l[d]=c?{}:{toJSON:p.noop}),("object"==typeof t||"function"==typeof t)&&(a?l[d]=p.extend(l[d],t):l[d].data=p.extend(l[d].data,t)),s=l[d],a||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[p.camelCase(t)]=n),"string"==typeof t?null==(o=s[t])&&(o=s[p.camelCase(t)]):o=s,o}}function H(e,t,i){if(p.acceptData(e)){var n,a,o=e.nodeType,s=o?p.cache:e,r=o?e[p.expando]:p.expando;if(s[r]){if(t&&(n=i?s[r]:s[r].data)){p.isArray(t)?t=t.concat(p.map(t,p.camelCase)):t in n?t=[t]:t=(t=p.camelCase(t))in n?[t]:t.split(" "),a=t.length;for(;a--;)delete n[t[a]];if(i?!W(n):!p.isEmptyObject(n))return}(i||(delete s[r].data,W(s[r])))&&(o?p.cleanData([e],!0):d.deleteExpando||s!=s.window?delete s[r]:s[r]=null)}}}p.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?p.cache[e[p.expando]]:e[p.expando])&&!W(e)},data:function(e,t,i){return U(e,t,i)},removeData:function(e,t){return H(e,t)},_data:function(e,t,i){return U(e,t,i,!0)},_removeData:function(e,t){return H(e,t,!0)}}),p.fn.extend({data:function(e,t){var i,n,a,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(a=p.data(o),1===o.nodeType&&!p._data(o,"parsedAttrs"))){for(i=s.length;i--;)s[i]&&(0===(n=s[i].name).indexOf("data-")&&F(o,n=p.camelCase(n.slice(5)),a[n]));p._data(o,"parsedAttrs",!0)}return a}return"object"==typeof e?this.each(function(){p.data(this,e)}):arguments.length>1?this.each(function(){p.data(this,e,t)}):o?F(o,e,p.data(o,e)):void 0},removeData:function(e){return this.each(function(){p.removeData(this,e)})}}),p.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=p._data(e,t),i&&(!n||p.isArray(i)?n=p._data(e,t,p.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=p.queue(e,t),n=i.length,a=i.shift(),o=p._queueHooks(e,t);"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===t&&i.unshift("inprogress"),delete o.stop,a.call(e,function(){p.dequeue(e,t)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return p._data(e,i)||p._data(e,i,{empty:p.Callbacks("once memory").add(function(){p._removeData(e,t+"queue"),p._removeData(e,i)})})}}),p.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?p.queue(this[0],e):void 0===t?this:this.each(function(){var i=p.queue(this,e,t);p._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&p.dequeue(this,e)})},dequeue:function(e){return this.each(function(){p.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,a=p.Deferred(),o=this,s=this.length,r=function(){--n||a.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=p._data(o[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(r));return r(),a.promise(t)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,j=["Top","Right","Bottom","Left"],Y=function(e,t){return e=t||e,"none"===p.css(e,"display")||!p.contains(e.ownerDocument,e)},z=p.access=function(e,t,i,n,a,o,s){var r=0,c=e.length,l=null==i;if("object"===p.type(i))for(r in a=!0,i)p.access(e,t,r,i[r],!0,o,s);else if(void 0!==n&&(a=!0,p.isFunction(n)||(s=!0),l&&(s?(t.call(e,n),t=null):(l=t,t=function(e,t,i){return l.call(p(e),i)})),t))for(;c>r;r++)t(e[r],i,s?n:n.call(e[r],r,t(e[r],i)));return a?e:l?t.call(e):c?t(e[0],i):o},q=/^(?:checkbox|radio)$/i;!function(){var e=I.createElement("input"),t=I.createElement("div"),i=I.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d.leadingWhitespace=3===t.firstChild.nodeType,d.tbody=!t.getElementsByTagName("tbody").length,d.htmlSerialize=!!t.getElementsByTagName("link").length,d.html5Clone="<:nav></:nav>"!==I.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,i.appendChild(e),d.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,i.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",d.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,d.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){d.noCloneEvent=!1}),t.cloneNode(!0).click()),null==d.deleteExpando){d.deleteExpando=!0;try{delete t.test}catch(e){d.deleteExpando=!1}}}(),function(){var t,i,n=I.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(d[t+"Bubbles"]=i in e)||(n.setAttribute(i,"t"),d[t+"Bubbles"]=!1===n.attributes[i].expando);n=null}();var G=/^(?:input|select|textarea)$/i,J=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,K=/^([^.]*)(?:\.(.+)|)$/;function Q(){return!0}function ee(){return!1}function te(){try{return I.activeElement}catch(e){}}function ie(e){var t=ne.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}p.event={global:{},add:function(e,t,i,n,a){var o,s,r,c,l,d,u,f,h,m,g,v=p._data(e);if(v){for(i.handler&&(i=(c=i).handler,a=c.selector),i.guid||(i.guid=p.guid++),(s=v.events)||(s=v.events={}),(d=v.handle)||(d=v.handle=function(e){return typeof p===R||e&&p.event.triggered===e.type?void 0:p.event.dispatch.apply(d.elem,arguments)},d.elem=e),r=(t=(t||"").match(A)||[""]).length;r--;)h=g=(o=K.exec(t[r])||[])[1],m=(o[2]||"").split(".").sort(),h&&(l=p.event.special[h]||{},h=(a?l.delegateType:l.bindType)||h,l=p.event.special[h]||{},u=p.extend({type:h,origType:g,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&p.expr.match.needsContext.test(a),namespace:m.join(".")},c),(f=s[h])||((f=s[h]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,n,m,d)||(e.addEventListener?e.addEventListener(h,d,!1):e.attachEvent&&e.attachEvent("on"+h,d))),l.add&&(l.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),a?f.splice(f.delegateCount++,0,u):f.push(u),p.event.global[h]=!0);e=null}},remove:function(e,t,i,n,a){var o,s,r,c,l,d,u,f,h,m,g,v=p.hasData(e)&&p._data(e);if(v&&(d=v.events)){for(l=(t=(t||"").match(A)||[""]).length;l--;)if(h=g=(r=K.exec(t[l])||[])[1],m=(r[2]||"").split(".").sort(),h){for(u=p.event.special[h]||{},f=d[h=(n?u.delegateType:u.bindType)||h]||[],r=r[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=o=f.length;o--;)s=f[o],!a&&g!==s.origType||i&&i.guid!==s.guid||r&&!r.test(s.namespace)||n&&n!==s.selector&&("**"!==n||!s.selector)||(f.splice(o,1),s.selector&&f.delegateCount--,u.remove&&u.remove.call(e,s));c&&!f.length&&(u.teardown&&!1!==u.teardown.call(e,m,v.handle)||p.removeEvent(e,h,v.handle),delete d[h])}else for(h in d)p.event.remove(e,h+t[l],i,n,!0);p.isEmptyObject(d)&&(delete v.handle,p._removeData(e,"events"))}},trigger:function(t,i,n,a){var o,s,r,c,d,u,f,h=[n||I],m=l.call(t,"type")?t.type:t,g=l.call(t,"namespace")?t.namespace.split("."):[];if(r=u=n=n||I,3!==n.nodeType&&8!==n.nodeType&&!X.test(m+p.event.triggered)&&(m.indexOf(".")>=0&&(g=m.split("."),m=g.shift(),g.sort()),s=m.indexOf(":")<0&&"on"+m,(t=t[p.expando]?t:new p.Event(m,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:p.makeArray(i,[t]),d=p.event.special[m]||{},a||!d.trigger||!1!==d.trigger.apply(n,i))){if(!a&&!d.noBubble&&!p.isWindow(n)){for(c=d.delegateType||m,X.test(c+m)||(r=r.parentNode);r;r=r.parentNode)h.push(r),u=r;u===(n.ownerDocument||I)&&h.push(u.defaultView||u.parentWindow||e)}for(f=0;(r=h[f++])&&!t.isPropagationStopped();)t.type=f>1?c:d.bindType||m,(o=(p._data(r,"events")||{})[t.type]&&p._data(r,"handle"))&&o.apply(r,i),(o=s&&r[s])&&o.apply&&p.acceptData(r)&&(t.result=o.apply(r,i),!1===t.result&&t.preventDefault());if(t.type=m,!a&&!t.isDefaultPrevented()&&(!d._default||!1===d._default.apply(h.pop(),i))&&p.acceptData(n)&&s&&n[m]&&!p.isWindow(n)){(u=n[s])&&(n[s]=null),p.event.triggered=m;try{n[m]()}catch(e){}p.event.triggered=void 0,u&&(n[s]=u)}return t.result}},dispatch:function(e){e=p.event.fix(e);var t,i,a,o,s,r=[],c=n.call(arguments),l=(p._data(this,"events")||{})[e.type]||[],d=p.event.special[e.type]||{};if(c[0]=e,e.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,e)){for(r=p.event.handlers.call(this,e,l),t=0;(o=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,s=0;(a=o.handlers[s++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,void 0!==(i=((p.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,c))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,a,o,s=[],r=t.delegateCount,c=e.target;if(r&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(a=[],o=0;r>o;o++)void 0===a[i=(n=t[o]).selector+" "]&&(a[i]=n.needsContext?p(i,this).index(c)>=0:p.find(i,this,null,[c]).length),a[i]&&a.push(n);a.length&&s.push({elem:c,handlers:a})}return r<t.length&&s.push({elem:this,handlers:t.slice(r)}),s},fix:function(e){if(e[p.expando])return e;var t,i,n,a=e.type,o=e,s=this.fixHooks[a];for(s||(this.fixHooks[a]=s=Z.test(a)?this.mouseHooks:J.test(a)?this.keyHooks:{}),n=s.props?this.props.concat(s.props):this.props,e=new p.Event(o),t=n.length;t--;)e[i=n[t]]=o[i];return e.target||(e.target=o.srcElement||I),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):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 i,n,a,o=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(a=(n=e.target.ownerDocument||I).documentElement,i=n.body,e.pageX=t.clientX+(a&&a.scrollLeft||i&&i.scrollLeft||0)-(a&&a.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(a&&a.scrollTop||i&&i.scrollTop||0)-(a&&a.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?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 p.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return p.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var a=p.extend(new p.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?p.event.trigger(a,null,t):p.event.dispatch.call(t,a),a.isDefaultPrevented()&&i.preventDefault()}},p.removeEvent=I.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)}:function(e,t,i){var n="on"+t;e.detachEvent&&(typeof e[n]===R&&(e[n]=null),e.detachEvent(n,i))},p.Event=function(e,t){return this instanceof p.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&&p.extend(this,t),this.timeStamp=e&&e.timeStamp||p.now(),void(this[p.expando]=!0)):new p.Event(e,t)},p.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()}},p.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){p.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,a=e.handleObj;return(!n||n!==this&&!p.contains(this,n))&&(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}}),d.submitBubbles||(p.event.special.submit={setup:function(){return!p.nodeName(this,"form")&&void p.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,i=p.nodeName(t,"input")||p.nodeName(t,"button")?t.form:void 0;i&&!p._data(i,"submitBubbles")&&(p.event.add(i,"submit._submit",function(e){e._submit_bubble=!0}),p._data(i,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&p.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!p.nodeName(this,"form")&&void p.event.remove(this,"._submit")}}),d.changeBubbles||(p.event.special.change={setup:function(){return G.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(p.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,e,!0)})),!1):void p.event.add(this,"beforeactivate._change",function(e){var t=e.target;G.test(t.nodeName)&&!p._data(t,"changeBubbles")&&(p.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||p.event.simulate("change",this.parentNode,e,!0)}),p._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 p.event.remove(this,"._change"),!G.test(this.nodeName)}}),d.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){p.event.simulate(t,e.target,p.event.fix(e),!0)};p.event.special[t]={setup:function(){var n=this.ownerDocument||this,a=p._data(n,t);a||n.addEventListener(e,i,!0),p._data(n,t,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this,a=p._data(n,t)-1;a?p._data(n,t,a):(n.removeEventListener(e,i,!0),p._removeData(n,t))}}}),p.fn.extend({on:function(e,t,i,n,a){var o,s;if("object"==typeof e){for(o in"string"!=typeof t&&(i=i||t,t=void 0),e)this.on(o,t,i,e[o],a);return this}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),!1===n)n=ee;else if(!n)return this;return 1===a&&(s=n,n=function(e){return p().off(e),s.apply(this,arguments)},n.guid=s.guid||(s.guid=p.guid++)),this.each(function(){p.event.add(this,e,n,i,t)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,t,i){var n,a;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,p(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)&&(i=t,t=void 0),!1===i&&(i=ee),this.each(function(){p.event.remove(this,e,i,t)})},trigger:function(e,t){return this.each(function(){p.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];return i?p.event.trigger(e,t,i,!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,oe=new RegExp("<(?:"+ne+")[\\s/>]","i"),se=/^\s+/,re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ce=/<([\w:]+)/,le=/<tbody/i,de=/<|&#?\w+;/,ue=/<(?:script|style|link)/i,pe=/checked\s*(?:[^=]|=\s*.checked.)/i,fe=/^$|\/(?:java|ecma)script/i,he=/^true\/(.*)/,me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ge={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:d.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ve=ie(I).appendChild(I.createElement("div"));function ye(e,t){var i,n,a=0,o=typeof e.getElementsByTagName!==R?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==R?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],i=e.childNodes||e;null!=(n=i[a]);a++)!t||p.nodeName(n,t)?o.push(n):p.merge(o,ye(n,t));return void 0===t||t&&p.nodeName(e,t)?p.merge([e],o):o}function be(e){q.test(e.type)&&(e.defaultChecked=e.checked)}function _e(e,t){return p.nodeName(e,"table")&&p.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ce(e){return e.type=(null!==p.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function xe(e,t){for(var i,n=0;null!=(i=e[n]);n++)p._data(i,"globalEval",!t||p._data(t[n],"globalEval"))}function Ie(e,t){if(1===t.nodeType&&p.hasData(e)){var i,n,a,o=p._data(e),s=p._data(t,o),r=o.events;if(r)for(i in delete s.handle,s.events={},r)for(n=0,a=r[i].length;a>n;n++)p.event.add(t,i,r[i][n]);s.data&&(s.data=p.extend({},s.data))}}function Se(e,t){var i,n,a;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!d.noCloneEvent&&t[p.expando]){for(n in(a=p._data(t)).events)p.removeEvent(t,n,a.handle);t.removeAttribute(p.expando)}"script"===i&&t.text!==e.text?(Ce(t).text=e.text,we(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),d.html5Clone&&e.innerHTML&&!p.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&q.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,p.extend({clone:function(e,t,i){var n,a,o,s,r,c=p.contains(e.ownerDocument,e);if(d.html5Clone||p.isXMLDoc(e)||!oe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ve.innerHTML=e.outerHTML,ve.removeChild(o=ve.firstChild)),!(d.noCloneEvent&&d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||p.isXMLDoc(e)))for(n=ye(o),r=ye(e),s=0;null!=(a=r[s]);++s)n[s]&&Se(a,n[s]);if(t)if(i)for(r=r||ye(e),n=n||ye(o),s=0;null!=(a=r[s]);s++)Ie(a,n[s]);else Ie(e,o);return(n=ye(o,"script")).length>0&&xe(n,!c&&ye(e,"script")),n=r=a=null,o},buildFragment:function(e,t,i,n){for(var a,o,s,r,c,l,u,f=e.length,h=ie(t),m=[],g=0;f>g;g++)if((o=e[g])||0===o)if("object"===p.type(o))p.merge(m,o.nodeType?[o]:o);else if(de.test(o)){for(r=r||h.appendChild(t.createElement("div")),c=(ce.exec(o)||["",""])[1].toLowerCase(),u=ge[c]||ge._default,r.innerHTML=u[1]+o.replace(re,"<$1></$2>")+u[2],a=u[0];a--;)r=r.lastChild;if(!d.leadingWhitespace&&se.test(o)&&m.push(t.createTextNode(se.exec(o)[0])),!d.tbody)for(a=(o="table"!==c||le.test(o)?"<table>"!==u[1]||le.test(o)?0:r:r.firstChild)&&o.childNodes.length;a--;)p.nodeName(l=o.childNodes[a],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(p.merge(m,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=h.lastChild}else m.push(t.createTextNode(o));for(r&&h.removeChild(r),d.appendChecked||p.grep(ye(m,"input"),be),g=0;o=m[g++];)if((!n||-1===p.inArray(o,n))&&(s=p.contains(o.ownerDocument,o),r=ye(h.appendChild(o),"script"),s&&xe(r),i))for(a=0;o=r[a++];)fe.test(o.type||"")&&i.push(o);return r=null,h},cleanData:function(e,t){for(var n,a,o,s,r=0,c=p.expando,l=p.cache,u=d.deleteExpando,f=p.event.special;null!=(n=e[r]);r++)if((t||p.acceptData(n))&&(s=(o=n[c])&&l[o])){if(s.events)for(a in s.events)f[a]?p.event.remove(n,a):p.removeEvent(n,a,s.handle);l[o]&&(delete l[o],u?delete n[c]:typeof n.removeAttribute!==R?n.removeAttribute(c):n[c]=null,i.push(o))}}}),p.fn.extend({text:function(e){return z(this,function(e){return void 0===e?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||I).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 i,n=e?p.filter(e,this):this,a=0;null!=(i=n[a]);a++)t||1!==i.nodeType||p.cleanData(ye(i)),i.parentNode&&(t&&p.contains(i.ownerDocument,i)&&xe(ye(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&p.cleanData(ye(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&p.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 p.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},i=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)||!d.htmlSerialize&&oe.test(e)||!d.leadingWhitespace&&se.test(e)||ge[(ce.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(re,"<$1></$2>");try{for(;n>i;i++)1===(t=this[i]||{}).nodeType&&(p.cleanData(ye(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,p.cleanData(ye(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 i,n,o,s,r,c,l=0,u=this.length,f=this,h=u-1,m=e[0],g=p.isFunction(m);if(g||u>1&&"string"==typeof m&&!d.checkClone&&pe.test(m))return this.each(function(i){var n=f.eq(i);g&&(e[0]=m.call(this,i,n.html())),n.domManip(e,t)});if(u&&(i=(c=p.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===c.childNodes.length&&(c=i),i)){for(o=(s=p.map(ye(c,"script"),Ce)).length;u>l;l++)n=c,l!==h&&(n=p.clone(n,!0,!0),o&&p.merge(s,ye(n,"script"))),t.call(this[l],n,l);if(o)for(r=s[s.length-1].ownerDocument,p.map(s,we),l=0;o>l;l++)n=s[l],fe.test(n.type||"")&&!p._data(n,"globalEval")&&p.contains(r,n)&&(n.src?p._evalUrl&&p._evalUrl(n.src):p.globalEval((n.text||n.textContent||n.innerHTML||"").replace(me,"")));c=i=null}return this}}),p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){p.fn[e]=function(e){for(var i,n=0,a=[],s=p(e),r=s.length-1;r>=n;n++)i=n===r?this:this.clone(!0),p(s[n])[t](i),o.apply(a,i.get());return this.pushStack(a)}});var ke,Ne={};function De(t,i){var n,a=p(i.createElement(t)).appendTo(i.body),o=e.getDefaultComputedStyle&&(n=e.getDefaultComputedStyle(a[0]))?n.display:p.css(a[0],"display");return a.detach(),o}function Be(e){var t=I,i=Ne[e];return i||("none"!==(i=De(e,t))&&i||((t=((ke=(ke||p("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||ke[0].contentDocument).document).write(),t.close(),i=De(e,t),ke.detach()),Ne[e]=i),i}!function(){var e;d.shrinkWrapBlocks=function(){return null!=e?e:(e=!1,(i=I.getElementsByTagName("body")[0])&&i.style?(t=I.createElement("div"),(n=I.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==R&&(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(I.createElement("div")).style.width="5px",e=3!==t.offsetWidth),i.removeChild(n),e):void 0);var t,i,n}}();var Te,Ae,Me=/^margin/,$e=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Pe=/^(top|right|bottom|left)$/;function Oe(e,t){return{get:function(){var i=e();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}e.getComputedStyle?(Te=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},Ae=function(e,t,i){var n,a,o,s,r=e.style;return s=(i=i||Te(e))?i.getPropertyValue(t)||i[t]:void 0,i&&(""!==s||p.contains(e.ownerDocument,e)||(s=p.style(e,t)),$e.test(s)&&Me.test(t)&&(n=r.width,a=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=s,s=i.width,r.width=n,r.minWidth=a,r.maxWidth=o)),void 0===s?s:s+""}):I.documentElement.currentStyle&&(Te=function(e){return e.currentStyle},Ae=function(e,t,i){var n,a,o,s,r=e.style;return null==(s=(i=i||Te(e))?i[t]:void 0)&&r&&r[t]&&(s=r[t]),$e.test(s)&&!Pe.test(t)&&(n=r.left,(o=(a=e.runtimeStyle)&&a.left)&&(a.left=e.currentStyle.left),r.left="fontSize"===t?"1em":s,s=r.pixelLeft+"px",r.left=n,o&&(a.left=o)),void 0===s?s:s+""||"auto"}),function(){var t,i,n,a,o,s,r;if((t=I.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=(n=t.getElementsByTagName("a")[0])&&n.style){function c(){var t,i,n,c;(i=I.getElementsByTagName("body")[0])&&i.style&&(t=I.createElement("div"),(n=I.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.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=o=!1,r=!0,e.getComputedStyle&&(a="1%"!==(e.getComputedStyle(t,null)||{}).top,o="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(c=t.appendChild(I.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",c.style.marginRight=c.style.width="0",t.style.width="1px",r=!parseFloat((e.getComputedStyle(c,null)||{}).marginRight),t.removeChild(c)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(c=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===c[0].offsetHeight)&&(c[0].style.display="",c[1].style.display="none",s=0===c[0].offsetHeight),i.removeChild(n))}i.cssText="float:left;opacity:.5",d.opacity="0.5"===i.opacity,d.cssFloat=!!i.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===t.style.backgroundClip,d.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,p.extend(d,{reliableHiddenOffsets:function(){return null==s&&c(),s},boxSizingReliable:function(){return null==o&&c(),o},pixelPosition:function(){return null==a&&c(),a},reliableMarginRight:function(){return null==r&&c(),r}})}}(),p.swap=function(e,t,i,n){var a,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in a=i.apply(e,n||[]),t)e.style[o]=s[o];return a};var Re=/alpha\([^)]*\)/i,Le=/opacity\s*=\s*([^)]*)/,Ee=/^(none|table(?!-c[ea]).+)/,Fe=new RegExp("^("+V+")(.*)$","i"),We=new RegExp("^([+-])=("+V+")","i"),Ue={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","O","Moz","ms"];function je(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,a=Ve.length;a--;)if((t=Ve[a]+i)in e)return t;return n}function Ye(e,t){for(var i,n,a,o=[],s=0,r=e.length;r>s;s++)(n=e[s]).style&&(o[s]=p._data(n,"olddisplay"),i=n.style.display,t?(o[s]||"none"!==i||(n.style.display=""),""===n.style.display&&Y(n)&&(o[s]=p._data(n,"olddisplay",Be(n.nodeName)))):(a=Y(n),(i&&"none"!==i||!a)&&p._data(n,"olddisplay",a?i:p.css(n,"display"))));for(s=0;r>s;s++)(n=e[s]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?o[s]||"":"none"));return e}function ze(e,t,i){var n=Fe.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function qe(e,t,i,n,a){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,s=0;4>o;o+=2)"margin"===i&&(s+=p.css(e,i+j[o],!0,a)),n?("content"===i&&(s-=p.css(e,"padding"+j[o],!0,a)),"margin"!==i&&(s-=p.css(e,"border"+j[o]+"Width",!0,a))):(s+=p.css(e,"padding"+j[o],!0,a),"padding"!==i&&(s+=p.css(e,"border"+j[o]+"Width",!0,a)));return s}function Ge(e,t,i){var n=!0,a="width"===t?e.offsetWidth:e.offsetHeight,o=Te(e),s=d.boxSizing&&"border-box"===p.css(e,"boxSizing",!1,o);if(0>=a||null==a){if((0>(a=Ae(e,t,o))||null==a)&&(a=e.style[t]),$e.test(a))return a;n=s&&(d.boxSizingReliable()||a===e.style[t]),a=parseFloat(a)||0}return a+qe(e,t,i||(s?"border":"content"),n,o)+"px"}function Je(e,t,i,n,a){return new Je.prototype.init(e,t,i,n,a)}p.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ae(e,"opacity");return""===i?"1":i}}}},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:d.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,s,r=p.camelCase(t),c=e.style;if(t=p.cssProps[r]||(p.cssProps[r]=je(c,r)),s=p.cssHooks[t]||p.cssHooks[r],void 0===i)return s&&"get"in s&&void 0!==(a=s.get(e,!1,n))?a:c[t];if("string"===(o=typeof i)&&(a=We.exec(i))&&(i=(a[1]+1)*a[2]+parseFloat(p.css(e,t)),o="number"),null!=i&&i==i&&("number"!==o||p.cssNumber[r]||(i+="px"),d.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),!s||!("set"in s)||void 0!==(i=s.set(e,i,n))))try{c[t]=i}catch(e){}}},css:function(e,t,i,n){var a,o,s,r=p.camelCase(t);return t=p.cssProps[r]||(p.cssProps[r]=je(e.style,r)),(s=p.cssHooks[t]||p.cssHooks[r])&&"get"in s&&(o=s.get(e,!0,i)),void 0===o&&(o=Ae(e,t,n)),"normal"===o&&t in He&&(o=He[t]),""===i||i?(a=parseFloat(o),!0===i||p.isNumeric(a)?a||0:o):o}}),p.each(["height","width"],function(e,t){p.cssHooks[t]={get:function(e,i,n){return i?Ee.test(p.css(e,"display"))&&0===e.offsetWidth?p.swap(e,Ue,function(){return Ge(e,t,n)}):Ge(e,t,n):void 0},set:function(e,i,n){var a=n&&Te(e);return ze(0,i,n?qe(e,t,n,d.boxSizing&&"border-box"===p.css(e,"boxSizing",!1,a),a):0)}}}),d.opacity||(p.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 i=e.style,n=e.currentStyle,a=p.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,(t>=1||""===t)&&""===p.trim(o.replace(Re,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=Re.test(o)?o.replace(Re,a):o+" "+a)}}),p.cssHooks.marginRight=Oe(d.reliableMarginRight,function(e,t){return t?p.swap(e,{display:"inline-block"},Ae,[e,"marginRight"]):void 0}),p.each({margin:"",padding:"",border:"Width"},function(e,t){p.cssHooks[e+t]={expand:function(i){for(var n=0,a={},o="string"==typeof i?i.split(" "):[i];4>n;n++)a[e+j[n]+t]=o[n]||o[n-2]||o[0];return a}},Me.test(e)||(p.cssHooks[e+t].set=ze)}),p.fn.extend({css:function(e,t){return z(this,function(e,t,i){var n,a,o={},s=0;if(p.isArray(t)){for(n=Te(e),a=t.length;a>s;s++)o[t[s]]=p.css(e,t[s],!1,n);return o}return void 0!==i?p.style(e,t,i):p.css(e,t)},e,t,arguments.length>1)},show:function(){return Ye(this,!0)},hide:function(){return Ye(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Y(this)?p(this).show():p(this).hide()})}}),p.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,i,n,a,o){this.elem=e,this.prop=i,this.easing=a||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(p.cssNumber[i]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,i=Je.propHooks[this.prop];return this.options.duration?this.pos=t=p.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=p.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){p.fx.step[e.prop]?p.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[p.cssProps[e.prop]]||p.cssHooks[e.prop])?p.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},p.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},p.fx=Je.prototype.init,p.fx.step={};var Ze,Xe,Ke=/^(?:toggle|show|hide)$/,Qe=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),et=/queueHooks$/,tt=[function(e,t,i){var n,a,o,s,r,c,l,u=this,f={},h=e.style,m=e.nodeType&&Y(e),g=p._data(e,"fxshow");for(n in i.queue||(null==(r=p._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,c=r.empty.fire,r.empty.fire=function(){r.unqueued||c()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,p.queue(e,"fx").length||r.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],l=p.css(e,"display"),"inline"===("none"===l?p._data(e,"olddisplay")||Be(e.nodeName):l)&&"none"===p.css(e,"float")&&(d.inlineBlockNeedsLayout&&"inline"!==Be(e.nodeName)?h.zoom=1:h.display="inline-block")),i.overflow&&(h.overflow="hidden",d.shrinkWrapBlocks()||u.always(function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]})),t)if(a=t[n],Ke.exec(a)){if(delete t[n],o=o||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!g||void 0===g[n])continue;m=!0}f[n]=g&&g[n]||p.style(e,n)}else l=void 0;if(p.isEmptyObject(f))"inline"===("none"===l?Be(e.nodeName):l)&&(h.display=l);else for(n in g?"hidden"in g&&(m=g.hidden):g=p._data(e,"fxshow",{}),o&&(g.hidden=!m),m?p(e).show():u.done(function(){p(e).hide()}),u.done(function(){var t;for(t in p._removeData(e,"fxshow"),f)p.style(e,t,f[t])}),f)s=ot(m?g[n]:0,n,u),n in g||(g[n]=s.start,m&&(s.end=s.start,s.start="width"===n||"height"===n?1:0))}],it={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),a=Qe.exec(t),o=a&&a[3]||(p.cssNumber[e]?"":"px"),s=(p.cssNumber[e]||"px"!==o&&+n)&&Qe.exec(p.css(i.elem,e)),r=1,c=20;if(s&&s[3]!==o){o=o||s[3],a=a||[],s=+n||1;do{s/=r=r||".5",p.style(i.elem,e,s+o)}while(r!==(r=i.cur()/n)&&1!==r&&--c)}return a&&(s=i.start=+s||+n||0,i.unit=o,i.end=a[1]?s+(a[1]+1)*a[2]:+a[2]),i}]};function nt(){return setTimeout(function(){Ze=void 0}),Ze=p.now()}function at(e,t){var i,n={height:e},a=0;for(t=t?1:0;4>a;a+=2-t)n["margin"+(i=j[a])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function ot(e,t,i){for(var n,a=(it[t]||[]).concat(it["*"]),o=0,s=a.length;s>o;o++)if(n=a[o].call(i,t,e))return n}function st(e,t,i){var n,a,o=0,s=tt.length,r=p.Deferred().always(function(){delete c.elem}),c=function(){if(a)return!1;for(var t=Ze||nt(),i=Math.max(0,l.startTime+l.duration-t),n=1-(i/l.duration||0),o=0,s=l.tweens.length;s>o;o++)l.tweens[o].run(n);return r.notifyWith(e,[l,n,i]),1>n&&s?i:(r.resolveWith(e,[l]),!1)},l=r.promise({elem:e,props:p.extend({},t),opts:p.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Ze||nt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=p.Tween(e,l.opts,t,i,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var i=0,n=t?l.tweens.length:0;if(a)return this;for(a=!0;n>i;i++)l.tweens[i].run(1);return t?r.resolveWith(e,[l,t]):r.rejectWith(e,[l,t]),this}}),d=l.props;for(function(e,t){var i,n,a,o,s;for(i in e)if(a=t[n=p.camelCase(i)],o=e[i],p.isArray(o)&&(a=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(s=p.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=a);else t[n]=a}(d,l.opts.specialEasing);s>o;o++)if(n=tt[o].call(l,e,d,l.opts))return n;return p.map(d,ot,l),p.isFunction(l.opts.start)&&l.opts.start.call(e,l),p.fx.timer(p.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}p.Animation=p.extend(st,{tweener:function(e,t){p.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,a=e.length;a>n;n++)i=e[n],it[i]=it[i]||[],it[i].unshift(t)},prefilter:function(e,t){t?tt.unshift(e):tt.push(e)}}),p.speed=function(e,t,i){var n=e&&"object"==typeof e?p.extend({},e):{complete:i||!i&&t||p.isFunction(e)&&e,duration:e,easing:i&&t||t&&!p.isFunction(t)&&t};return n.duration=p.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in p.fx.speeds?p.fx.speeds[n.duration]:p.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){p.isFunction(n.old)&&n.old.call(this),n.queue&&p.dequeue(this,n.queue)},n},p.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Y).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var a=p.isEmptyObject(e),o=p.speed(t,i,n),s=function(){var t=st(this,p.extend({},e),o);(a||p._data(this,"finish"))&&t.stop(!0)};return s.finish=s,a||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",o=p.timers,s=p._data(this);if(a)s[a]&&s[a].stop&&n(s[a]);else for(a in s)s[a]&&s[a].stop&&et.test(a)&&n(s[a]);for(a=o.length;a--;)o[a].elem!==this||null!=e&&o[a].queue!==e||(o[a].anim.stop(i),t=!1,o.splice(a,1));(t||!i)&&p.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=p._data(this),n=i[e+"queue"],a=i[e+"queueHooks"],o=p.timers,s=n?n.length:0;for(i.finish=!0,p.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;s>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),p.each(["toggle","show","hide"],function(e,t){var i=p.fn[t];p.fn[t]=function(e,n,a){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(at(t,!0),e,n,a)}}),p.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){p.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),p.timers=[],p.fx.tick=function(){var e,t=p.timers,i=0;for(Ze=p.now();i<t.length;i++)(e=t[i])()||t[i]!==e||t.splice(i--,1);t.length||p.fx.stop(),Ze=void 0},p.fx.timer=function(e){p.timers.push(e),e()?p.fx.start():p.timers.pop()},p.fx.interval=13,p.fx.start=function(){Xe||(Xe=setInterval(p.fx.tick,p.fx.interval))},p.fx.stop=function(){clearInterval(Xe),Xe=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fn.delay=function(e,t){return e=p.fx&&p.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}})},function(){var e,t,i,n,a;(t=I.createElement("div")).setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=t.getElementsByTagName("a")[0],a=(i=I.createElement("select")).appendChild(I.createElement("option")),e=t.getElementsByTagName("input")[0],n.style.cssText="top:1px",d.getSetAttribute="t"!==t.className,d.style=/top/.test(n.getAttribute("style")),d.hrefNormalized="/a"===n.getAttribute("href"),d.checkOn=!!e.value,d.optSelected=a.selected,d.enctype=!!I.createElement("form").enctype,i.disabled=!0,d.optDisabled=!a.disabled,(e=I.createElement("input")).setAttribute("value",""),d.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),d.radioValue="t"===e.value}();var rt=/\r/g;p.fn.extend({val:function(e){var t,i,n,a=this[0];return arguments.length?(n=p.isFunction(e),this.each(function(i){var a;1===this.nodeType&&(null==(a=n?e.call(this,i,p(this).val()):e)?a="":"number"==typeof a?a+="":p.isArray(a)&&(a=p.map(a,function(e){return null==e?"":e+""})),(t=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=p.valHooks[a.type]||p.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(rt,""):null==i?"":i:void 0}}),p.extend({valHooks:{option:{get:function(e){var t=p.find.attr(e,"value");return null!=t?t:p.trim(p.text(e))}},select:{get:function(e){for(var t,i,n=e.options,a=e.selectedIndex,o="select-one"===e.type||0>a,s=o?null:[],r=o?a+1:n.length,c=0>a?r:o?a:0;r>c;c++)if(!(!(i=n[c]).selected&&c!==a||(d.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&p.nodeName(i.parentNode,"optgroup"))){if(t=p(i).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var i,n,a=e.options,o=p.makeArray(t),s=a.length;s--;)if(n=a[s],p.inArray(p.valHooks.option.get(n),o)>=0)try{n.selected=i=!0}catch(e){n.scrollHeight}else n.selected=!1;return i||(e.selectedIndex=-1),a}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(e,t){return p.isArray(t)?e.checked=p.inArray(p(e).val(),t)>=0:void 0}},d.checkOn||(p.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ct,lt,dt=p.expr.attrHandle,ut=/^(?:checked|selected)$/i,pt=d.getSetAttribute,ft=d.input;p.fn.extend({attr:function(e,t){return z(this,p.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){p.removeAttr(this,e)})}}),p.extend({attr:function(e,t,i){var n,a,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===R?p.prop(e,t,i):(1===o&&p.isXMLDoc(e)||(t=t.toLowerCase(),n=p.attrHooks[t]||(p.expr.match.bool.test(t)?lt:ct)),void 0===i?n&&"get"in n&&null!==(a=n.get(e,t))?a:null==(a=p.find.attr(e,t))?void 0:a:null!==i?n&&"set"in n&&void 0!==(a=n.set(e,i,t))?a:(e.setAttribute(t,i+""),i):void p.removeAttr(e,t))},removeAttr:function(e,t){var i,n,a=0,o=t&&t.match(A);if(o&&1===e.nodeType)for(;i=o[a++];)n=p.propFix[i]||i,p.expr.match.bool.test(i)?ft&&pt||!ut.test(i)?e[n]=!1:e[p.camelCase("default-"+i)]=e[n]=!1:p.attr(e,i,""),e.removeAttribute(pt?i:n)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&p.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),lt={set:function(e,t,i){return!1===t?p.removeAttr(e,i):ft&&pt||!ut.test(i)?e.setAttribute(!pt&&p.propFix[i]||i,i):e[p.camelCase("default-"+i)]=e[i]=!0,i}},p.each(p.expr.match.bool.source.match(/\w+/g),function(e,t){var i=dt[t]||p.find.attr;dt[t]=ft&&pt||!ut.test(t)?function(e,t,n){var a,o;return n||(o=dt[t],dt[t]=a,a=null!=i(e,t,n)?t.toLowerCase():null,dt[t]=o),a}:function(e,t,i){return i?void 0:e[p.camelCase("default-"+t)]?t.toLowerCase():null}}),ft&&pt||(p.attrHooks.value={set:function(e,t,i){return p.nodeName(e,"input")?void(e.defaultValue=t):ct&&ct.set(e,t,i)}}),pt||(ct={set:function(e,t,i){var n=e.getAttributeNode(i);return n||e.setAttributeNode(n=e.ownerDocument.createAttribute(i)),n.value=t+="","value"===i||t===e.getAttribute(i)?t:void 0}},dt.id=dt.name=dt.coords=function(e,t,i){var n;return i?void 0:(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},p.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);return i&&i.specified?i.value:void 0},set:ct.set},p.attrHooks.contenteditable={set:function(e,t,i){ct.set(e,""!==t&&t,i)}},p.each(["width","height"],function(e,t){p.attrHooks[t]={set:function(e,i){return""===i?(e.setAttribute(t,"auto"),i):void 0}}})),d.style||(p.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var ht=/^(?:input|select|textarea|button|object)$/i,mt=/^(?:a|area)$/i;p.fn.extend({prop:function(e,t){return z(this,p.prop,e,t,arguments.length>1)},removeProp:function(e){return e=p.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),p.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,a,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!p.isXMLDoc(e))&&(t=p.propFix[t]||t,a=p.propHooks[t]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:e[t]=i:a&&"get"in a&&null!==(n=a.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=p.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}}}),d.hrefNormalized||p.each(["href","src"],function(e,t){p.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),d.optSelected||(p.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this}),d.enctype||(p.propFix.enctype="encoding");var gt=/[\t\r\n\f]/g;p.fn.extend({addClass:function(e){var t,i,n,a,o,s,r=0,c=this.length,l="string"==typeof e&&e;if(p.isFunction(e))return this.each(function(t){p(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(A)||[];c>r;r++)if(n=1===(i=this[r]).nodeType&&(i.className?(" "+i.className+" ").replace(gt," "):" ")){for(o=0;a=t[o++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");s=p.trim(n),i.className!==s&&(i.className=s)}return this},removeClass:function(e){var t,i,n,a,o,s,r=0,c=this.length,l=0===arguments.length||"string"==typeof e&&e;if(p.isFunction(e))return this.each(function(t){p(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(A)||[];c>r;r++)if(n=1===(i=this[r]).nodeType&&(i.className?(" "+i.className+" ").replace(gt," "):"")){for(o=0;a=t[o++];)for(;n.indexOf(" "+a+" ")>=0;)n=n.replace(" "+a+" "," ");s=e?p.trim(n):"",i.className!==s&&(i.className=s)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):this.each(p.isFunction(e)?function(i){p(this).toggleClass(e.call(this,i,this.className,t),t)}:function(){if("string"===i)for(var t,n=0,a=p(this),o=e.match(A)||[];t=o[n++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else(i===R||"boolean"===i)&&(this.className&&p._data(this,"__className__",this.className),this.className=this.className||!1===e?"":p._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(gt," ").indexOf(t)>=0)return!0;return!1}}),p.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){p.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),p.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var vt=p.now(),yt=/\?/,bt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;p.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var i,n=null,a=p.trim(t+"");return a&&!p.trim(a.replace(bt,function(e,t,a,o){return i&&t&&(n=0),0===n?e:(i=a||t,n+=!o-!a,"")}))?Function("return "+a)():p.error("Invalid JSON: "+t)},p.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?i=(new DOMParser).parseFromString(t,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(t))}catch(e){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||p.error("Invalid XML: "+t),i};var _t,Ct,wt=/#.*$/,xt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,St=/^(?:GET|HEAD)$/,kt=/^\/\//,Nt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Dt={},Bt={},Tt="*/".concat("*");try{Ct=location.href}catch(e){(Ct=I.createElement("a")).href="",Ct=Ct.href}function At(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,a=0,o=t.toLowerCase().match(A)||[];if(p.isFunction(i))for(;n=o[a++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Mt(e,t,i,n){var a={},o=e===Bt;function s(r){var c;return a[r]=!0,p.each(e[r]||[],function(e,r){var l=r(t,i,n);return"string"!=typeof l||o||a[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),s(l),!1)}),c}return s(t.dataTypes[0])||!a["*"]&&s("*")}function $t(e,t){var i,n,a=p.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&p.extend(!0,e,i),e}_t=Nt.exec(Ct.toLowerCase())||[],p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct,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:{"*":Tt,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":p.parseJSON,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,p.ajaxSettings),t):$t(p.ajaxSettings,e)},ajaxPrefilter:At(Dt),ajaxTransport:At(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,a,o,s,r,c,l,d=p.ajaxSetup({},t),u=d.context||d,f=d.context&&(u.nodeType||u.jquery)?p(u):p.event,h=p.Deferred(),m=p.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,_="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!l)for(l={};t=It.exec(o);)l[t[1].toLowerCase()]=t[2];t=l[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return b||(e=y[i]=y[i]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||_;return c&&c.abort(t),w(0,t),this}};if(h.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,d.url=((e||d.url||Ct)+"").replace(wt,"").replace(kt,_t[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=p.trim(d.dataType||"*").toLowerCase().match(A)||[""],null==d.crossDomain&&(i=Nt.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===_t[1]&&i[2]===_t[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(_t[3]||("http:"===_t[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=p.param(d.data,d.traditional)),Mt(Dt,d,t,C),2===b)return C;for(n in(r=p.event&&d.global)&&0===p.active++&&p.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!St.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(yt.test(a)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=xt.test(a)?a.replace(xt,"$1_="+vt++):a+(yt.test(a)?"&":"?")+"_="+vt++)),d.ifModified&&(p.lastModified[a]&&C.setRequestHeader("If-Modified-Since",p.lastModified[a]),p.etag[a]&&C.setRequestHeader("If-None-Match",p.etag[a])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Tt+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(n,d.headers[n]);if(d.beforeSend&&(!1===d.beforeSend.call(u,C,d)||2===b))return C.abort();for(n in _="abort",{success:1,error:1,complete:1})C[n](d[n]);if(c=Mt(Bt,d,t,C)){C.readyState=1,r&&f.trigger("ajaxSend",[C,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},d.timeout));try{b=1,c.send(v,w)}catch(e){if(!(2>b))throw e;w(-1,e)}}else w(-1,"No Transport");function w(e,t,i,n){var l,v,y,_,w,x=t;2!==b&&(b=2,s&&clearTimeout(s),c=void 0,o=n||"",C.readyState=e>0?4:0,l=e>=200&&300>e||304===e,i&&(_=function(e,t,i){for(var n,a,o,s,r=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(s in r)if(r[s]&&r[s].test(a)){c.unshift(s);break}if(c[0]in i)o=c[0];else{for(s in i){if(!c[0]||e.converters[s+" "+c[0]]){o=s;break}n||(n=s)}o=o||n}return o?(o!==c[0]&&c.unshift(o),i[o]):void 0}(d,C,i)),_=function(e,t,i,n){var a,o,s,r,c,l={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=d.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!c&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=d.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(s=l[c+" "+o]||l["* "+o]))for(a in l)if((r=a.split(" "))[1]===o&&(s=l[c+" "+r[0]]||l["* "+r[0]])){!0===s?s=l[a]:!0!==l[a]&&(o=r[0],d.unshift(r[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(d,_,C,l),l?(d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(p.lastModified[a]=w),(w=C.getResponseHeader("etag"))&&(p.etag[a]=w)),204===e||"HEAD"===d.type?x="nocontent":304===e?x="notmodified":(x=_.state,v=_.data,l=!(y=_.error))):(y=x,(e||!x)&&(x="error",0>e&&(e=0))),C.status=e,C.statusText=(t||x)+"",l?h.resolveWith(u,[v,x,C]):h.rejectWith(u,[C,x,y]),C.statusCode(g),g=void 0,r&&f.trigger(l?"ajaxSuccess":"ajaxError",[C,d,l?v:y]),m.fireWith(u,[C,x]),r&&(f.trigger("ajaxComplete",[C,d]),--p.active||p.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,i){return p.get(e,t,i,"json")},getScript:function(e,t){return p.get(e,void 0,t,"script")}}),p.each(["get","post"],function(e,t){p[t]=function(e,i,n,a){return p.isFunction(i)&&(a=a||n,n=i,i=void 0),p.ajax({url:e,type:t,dataType:a,data:i,success:n})}}),p._evalUrl=function(e){return p.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},p.fn.extend({wrapAll:function(e){if(p.isFunction(e))return this.each(function(t){p(this).wrapAll(e.call(this,t))});if(this[0]){var t=p(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(p.isFunction(e)?function(t){p(this).wrapInner(e.call(this,t))}:function(){var t=p(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=p.isFunction(e);return this.each(function(i){p(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()}}),p.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!d.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||p.css(e,"display"))},p.expr.filters.visible=function(e){return!p.expr.filters.hidden(e)};var Pt=/%20/g,Ot=/\[\]$/,Rt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ft(e,t,i,n){var a;if(p.isArray(t))p.each(t,function(t,a){i||Ot.test(e)?n(e,a):Ft(e+"["+("object"==typeof a?t:"")+"]",a,i,n)});else if(i||"object"!==p.type(t))n(e,t);else for(a in t)Ft(e+"["+a+"]",t[a],i,n)}p.param=function(e,t){var i,n=[],a=function(e,t){t=p.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=p.ajaxSettings&&p.ajaxSettings.traditional),p.isArray(e)||e.jquery&&!p.isPlainObject(e))p.each(e,function(){a(this.name,this.value)});else for(i in e)Ft(i,e[i],t,a);return n.join("&").replace(Pt,"+")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=p.prop(this,"elements");return e?p.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!p(this).is(":disabled")&&Et.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!q.test(e))}).map(function(e,t){var i=p(this).val();return null==i?null:p.isArray(i)?p.map(i,function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}}):{name:t.name,value:i.replace(Rt,"\r\n")}}).get()}}),p.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Vt()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Vt;var Wt=0,Ut={},Ht=p.ajaxSettings.xhr();function Vt(){try{return new e.XMLHttpRequest}catch(e){}}e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Ut)Ut[e](void 0,!0)}),d.cors=!!Ht&&"withCredentials"in Ht,(Ht=d.ajax=!!Ht)&&p.ajaxTransport(function(e){var t;if(!e.crossDomain||d.cors)return{send:function(i,n){var a,o=e.xhr(),s=++Wt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];for(a in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[a]&&o.setRequestHeader(a,i[a]+"");o.send(e.hasContent&&e.data||null),t=function(i,a){var r,c,l;if(t&&(a||4===o.readyState))if(delete Ut[s],t=void 0,o.onreadystatechange=p.noop,a)4!==o.readyState&&o.abort();else{l={},r=o.status,"string"==typeof o.responseText&&(l.text=o.responseText);try{c=o.statusText}catch(e){c=""}r||!e.isLocal||e.crossDomain?1223===r&&(r=204):r=l.text?200:404}l&&n(r,c,l,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Ut[s]=t:t()},abort:function(){t&&t(void 0,!0)}}}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return p.globalEval(e),e}}}),p.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),p.ajaxTransport("script",function(e){if(e.crossDomain){var t,i=I.head||p("head")[0]||I.documentElement;return{send:function(n,a){(t=I.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||a(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var jt=[],Yt=/(=)\?(?=&|$)|\?\?/;p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=jt.pop()||p.expando+"_"+vt++;return this[e]=!0,e}}),p.ajaxPrefilter("json jsonp",function(t,i,n){var a,o,s,r=!1!==t.jsonp&&(Yt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(t.data)&&"data");return r||"jsonp"===t.dataTypes[0]?(a=t.jsonpCallback=p.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Yt,"$1"+a):!1!==t.jsonp&&(t.url+=(yt.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return s||p.error(a+" was not called"),s[0]},t.dataTypes[0]="json",o=e[a],e[a]=function(){s=arguments},n.always(function(){e[a]=o,t[a]&&(t.jsonpCallback=i.jsonpCallback,jt.push(a)),s&&p.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),p.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||I;var n=_.exec(e),a=!i&&[];return n?[t.createElement(n[1])]:(n=p.buildFragment([e],t,a),a&&a.length&&p(a).remove(),p.merge([],n.childNodes))};var zt=p.fn.load;p.fn.load=function(e,t,i){if("string"!=typeof e&&zt)return zt.apply(this,arguments);var n,a,o,s=this,r=e.indexOf(" ");return r>=0&&(n=p.trim(e.slice(r,e.length)),e=e.slice(0,r)),p.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&p.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){a=arguments,s.html(n?p("<div>").append(p.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){s.each(i,a||[e.responseText,t,e])}),this},p.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){p.fn[t]=function(e){return this.on(t,e)}}),p.expr.filters.animated=function(e){return p.grep(p.timers,function(t){return e===t.elem}).length};var qt=e.document.documentElement;function Gt(e){return p.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}p.offset={setOffset:function(e,t,i){var n,a,o,s,r,c,l=p.css(e,"position"),d=p(e),u={};"static"===l&&(e.style.position="relative"),r=d.offset(),o=p.css(e,"top"),c=p.css(e,"left"),("absolute"===l||"fixed"===l)&&p.inArray("auto",[o,c])>-1?(s=(n=d.position()).top,a=n.left):(s=parseFloat(o)||0,a=parseFloat(c)||0),p.isFunction(t)&&(t=t.call(e,i,r)),null!=t.top&&(u.top=t.top-r.top+s),null!=t.left&&(u.left=t.left-r.left+a),"using"in t?t.using.call(e,u):d.css(u)}},p.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){p.offset.setOffset(this,e,t)});var t,i,n={top:0,left:0},a=this[0],o=a&&a.ownerDocument;return o?(t=o.documentElement,p.contains(t,a)?(typeof a.getBoundingClientRect!==R&&(n=a.getBoundingClientRect()),i=Gt(o),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,i={top:0,left:0},n=this[0];return"fixed"===p.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),p.nodeName(e[0],"html")||(i=e.offset()),i.top+=p.css(e[0],"borderTopWidth",!0),i.left+=p.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-p.css(n,"marginTop",!0),left:t.left-i.left-p.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||qt;e&&!p.nodeName(e,"html")&&"static"===p.css(e,"position");)e=e.offsetParent;return e||qt})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=/Y/.test(t);p.fn[e]=function(n){return z(this,function(e,n,a){var o=Gt(e);return void 0===a?o?t in o?o[t]:o.document.documentElement[n]:e[n]:void(o?o.scrollTo(i?p(o).scrollLeft():a,i?a:p(o).scrollTop()):e[n]=a)},e,n,arguments.length,null)}}),p.each(["top","left"],function(e,t){p.cssHooks[t]=Oe(d.pixelPosition,function(e,i){return i?(i=Ae(e,t),$e.test(i)?p(e).position()[t]+"px":i):void 0})}),p.each({Height:"height",Width:"width"},function(e,t){p.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){p.fn[n]=function(n,a){var o=arguments.length&&(i||"boolean"!=typeof n),s=i||(!0===n||!0===a?"margin":"border");return z(this,function(t,i,n){var a;return p.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?p.css(t,i,s):p.style(t,i,n,s)},t,o?n:void 0,o,null)}})}),p.fn.size=function(){return this.length},p.fn.andSelf=p.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return p});var Jt=e.jQuery,Zt=e.$;return p.noConflict=function(t){return e.$===p&&(e.$=Zt),t&&e.jQuery===p&&(e.jQuery=Jt),p},typeof t===R&&(e.jQuery=e.$=p),p});var _vagroNotification={};_vagroNotification={APIMethodType:{POST:"POST",PUT:"PUT",DELETE:"DELETE",GET:"GET",PATCH:"PATCH"},MobileNotType:{PendingApp:0,LowInventory:1,MobileNotifications:2,GetFreeCardReader:3,FinishApplication:4,ShowBadgeCount:5,DecreaseORIncreaseBadgeCount:6,ResetFocus:7,MobileReviewCall:8,VagaroNewsRedirect:9,CallNumber:10,ReferAFriend:11,PendingShipment:12,WaitlistBrowsAvailability:13,RemoveWaitlistRecord:14,ReloadMultipleCalendars:15,AutoLogout:16,NoAccess:17,InvoiceOverDue:18,FeatureSubscription:19,FeatureSubscriptionNavigation:20,RentPageRedirect:21,EmployeesRentPageRedirect:22,UpdateTaxID:23,SettingRentFees:24,UnSignedReport:25,OnlineAppointmentRules:26,EmployeeSetupInVagaroPayroll:27,VagaroPayroll:28,FormsManegment:89,FinishVMSApplicationFormNotification:98,VagaroCapitalNotificationRedirect:99,NotificationRedirectLink:105,ApproveDenyPaidTimeOffRequest:106,ViewDenyPaidTimeOffRequest:107,VerifyAccount:108,Schedulicity:141,DiscardedInventory:142,DiscardApproachingInventory:143,ScriptSure:144},ApplicationStatus:{Drafted:1,Submitted:2,Approved:3,Denied:4,Abandoned:5,Cancelled:6,InError:7,MissingPersonalId:8,MissingBusinessId:9,CreditCheckBlock:10,Other:99,MissingPersonalANDMissingBusinessId:12},PaidType:{Normal:0,Prepay:1,Deposit:2,PaidWithMembership:3,FirstTranPrepayClass:4,FirstTranDepositClass:5,FirstTranPaidWithMembershipClass:6},Countries:{UnitedStatesofAmerica:1,UnitedKingdom:2,Canada:3,Australia:4},UserTypeEnum:{VagaroAdmin:"6",AccountOwner:"5",ServiceProvider:"2",ShopAdmin:"4"},AppStatusEnum:{ServiceInProgress:"4",Show:"2",Accept:"1",confirm:"11",Cancel:"6",CancelClass:"21",NoShow:"15",Delete:"5",Deny:"14",DeletePersonaloff:"12",DeleteClass:"40",ReadyToStart:"30",ReadyToStartClass:"63"},AppActionEnum:{ServiceInProgress:20,Show:19,Accept:17,Confirm:1,ConfirmFromCalendar:18,Cancel:3,CancelRecurringApp:10,CancelClass:21,CancelRecurringClass:22,NoShow:15,Deny:4,DenyRecurringAPP:14,Delete:5,DeleteRecurringApp:6,DeletePersonaloff:12,DeleteClass:40,DeleteRecurringClass:41,ReadyToStart:62,ReadyToStartClass:63},NotificationCount:{count:0,pendingAppCnt:0,NotiType:{pendingApp:1},init:function(){return this.count=parseInt(localStorage.getItem("notificationCount"))||"",this.updateUI(),this},add:function(e=1){this.count+=e,this._save(),_vagroNotification.MobileCallBackPendingCount()},remove:function(e=1){this.count=Math.max(0,this.count-e),this._save(),_vagroNotification.MobileCallBackPendingCount()},clear:function(){this.count=0,this._save()},_save:function(){localStorage.setItem("notificationCount",this.count),this.updateUI()},addIndividual:function(e=1,t){t==this.NotiType.pendingApp&&(this.pendingAppCnt+=e)},removeIndividual:function(e=1){type==this.NotiType.pendingApp&&(this.pendingAppCnt=Math.max(0,this.pendingAppCnt-e))},updateUI:function(){const e=$("#lblFeatureCount");this.count>0?(e.text(this.count),$("#spanFeature").addClass("available-show").show(),setInterval(function(){$("#spanFeature").toggleClass("bellrotate").show()},6e4)):(e.text(""),$("#spanFeature").removeClass("available-show").show(),$("#spanFeature").removeClass("bellrotate").show())},GetLastSyncTime:function(){var e=new Date(_vagroNotification.LocalStorageUtil.get(_vagroNotification.storageKey.NotificationSyncTime)||new Date),t=(new Date).getTime()-e.getTime();return Math.round(t/6e4)}},LocalStorageUtil:{set(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error("Error setting localStorage",e)}},get(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return console.error("Error getting localStorage",e),null}},remove(e){try{localStorage.removeItem(e)}catch(e){console.error("Error removing localStorage item",e)}}},model:function(){const e=null!=navigator.userAgent?.toLowerCase()?navigator.userAgent.toLowerCase():"";navigator.userAgent.toLowerCase();const t=e.indexOf("com.vagaro.iospro")>-1||e.indexOf("vagaroandroidphone")>-1||e.indexOf("com.vagaro.androidpro")>-1,i=t&&(e.indexOf("vagaroandroidtablet")>-1||e.indexOf("ipad")>-1),n=t&&!i,a="undefined"!=typeof ChangeAppStatus;return{DomainURL:location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/",PanelOpened:!1,CountryId:1,BusinessId:0,UserId:0,ClickOnBell:!1,CurrencySymbol:"$",TaxInfo:"",ApiV1URL:"",Isdormant:!1,SalonDateTime:"",IsProApp:t,IsTableWebView:i,IsMobileWebView:n,RoleRights:[],UserType:"",NotificationDevice:e.indexOf("com.vagaro.androidpro")>-1?"Android":e.indexOf("com.vagaro.iospro")>-1?"iOS":"Website",IsAdmin:!1,CDNImageUrl:"",IsWebsiteReviewShow:!1,glbMobileReturnCallback:0,VagaroCapitalStatus:{NoVMS:1,VMSProcessing:2,VCOffered:3,VCApprove:4,VCFundTransferred:5,VCRenewed:6,InProgress:7,Repaid:8},CapitalOfferType:{Eligible:1,PreApproved:2},VCApplicationStatus:{Submitted:1,Approved:2,FundTransferred:3,Declined:4,Closed:5,Renewed:6},LoadCalSupportJS:!1===a&&window.location.href.toLowerCase().indexOf("/merchants/calendar")<0,LoadMomentJS:"undefined"!=typeof moment,LoadFontAwesomeJS:!1,glbdroppedFile:!1,VagaroCountryDateFormat:Object.freeze({SmallDate:1,SmallDateWithTime:2,LargeDate:3,LargeDateWithTime:4,MiniDate:5,LongMiniDate:6,ChartDate:7}),BizDetail:{},ScriptSureEmpStatusType:{NotProcessed:0,Invited:1,Active:2,Resumed:3,UnderReview:4,Deactivated:5},ScriptSureRoleType:{Customer:3,Doctor:4,MedicalAssistants:5},InviteLinkType:{Organization:1,CreatePrescriberInviteLink:11,CreateSupportingUserInviteLink:12}}}(),storageKey:{FeatureCookieName:"FeatureIds",VCCookieName:"vcnoticlose",NotiFirstOpen:"notiFirstOpen",NotificationSyncTime:"NotificationSyncTime",UnsignedFormsCount:"lblUnsignedForms"},clearLocalStorage:function(){_vagroNotification.LocalStorageUtil.remove(_vagroNotification.storageKey.FeatureCookieName),_vagroNotification.LocalStorageUtil.remove(_vagroNotification.storageKey.VCCookieName),_vagroNotification.LocalStorageUtil.remove(_vagroNotification.storageKey.NotiFirstOpen),_vagroNotification.LocalStorageUtil.remove(_vagroNotification.storageKey.NotificationSyncTime),_vagroNotification.LocalStorageUtil.remove("notificationCount")},isFirstTimeLoad:function(){return!_vagroNotification.LocalStorageUtil.get(_vagroNotification.storageKey.NotiFirstOpen)||null==_vagroNotification.LocalStorageUtil.get(_vagroNotification.storageKey.NotiFirstOpen)},isNotiificationPage:function(){var e=document.referrer;return null!=e&&null!=e||(e=""),-1==window.location.href.toLowerCase().indexOf("/shopowner/choosebusiness.aspx")&&-1==e.toLowerCase().indexOf("admin/featuredbusinessapproval.aspx")}},function(e){e.fn.loadNotifications=function(t){var i=e.extend({apiUrl:"",e_mId:"",e_uId:"",bId:"",uId:"",countryDateFormat:{},apiUrlV1:""},t),n=this;_vagroNotification.ApiURLEnum={GetNotifications:`${i.apiUrl}merchants/notification/list`,GetReviewPalatformData:`${i.apiUrl}reviewplatform/getreviewpalatformdata`,SaveWebsiteReview:`${i.apiUrl}merchants/notification/websitereview`,UpdateFeatureLinkCounter:`${i.apiUrl}merchants/notification/featurelinkcounter`,GetG2State:`${i.apiUrl}merchants/notification/g2state`,GetTrustPilotInviteLink:`${i.apiUrl}reviewplatform/gettrustpilotinvitelink`,RemoveCapitalNotification:`${i.apiUrl}merchants/zenswipe/capitalremovenotification`,UpdateSupportRecommendedStatus:`${i.apiUrl}merchants/notification/supportrecommendedstatus`,GetPendingAppointments:`${i.apiUrl}merchants/notification/pendingappointments`,GetWaitlistAppointments:`${i.apiUrl}merchants/notification/waitlistappointments`,RemoveWaitlistAppointment:`${i.apiUrl}merchants/notification/waitlistappointment`,VMSSignupProgress:`${i.apiUrl}merchant/BusinessSignup/vmssignupprogress`,UpdateFreeCardReaderNotification:`${i.apiUrl}merchants/notification/changefreecardreadernotification`,UpdateGustoNotification:`${i.apiUrl}merchants/notification/changegustonotification`,GetTimeOfRequestDetails:`${i.apiUrl}merchants/notification/timeofrequest`,TimeOffRequestApprovedOrDeny:`${i.apiUrl}merchants/notification/timeoffrequest/approveordeny`,GetPersonalOffDetail:`${i.apiUrl}merchants/notification/personaloffdetail`,DismissMerchantNotification:`${i.apiUrl}merchants/notification/dismissapplication`,ChangeApplicationStatus:`${i.apiUrl}merchants/notification/changeApplicationStatus`,GetUnassignEmpSignForms:`${i.apiUrl}merchants/notification/forms/unassignedempsignatures`,RemoveInAppNotifications:`${i.apiUrl}merchants/notification/dismissinappnotification`,ApplyForZenswipe:`${i.apiUrl}merchants/notification/applyforzenswipe`,GetInviteLinkOfePrescribe:`${i.apiUrl}eprescribe/onboardinglink`,CreatePracticeOfePrescribe:`${i.apiUrl}eprescribe/createpractice`,UnderReviewOfePrescribe:`${i.apiUrl}eprescribe/underreview`,CloseePrescribeNotification:`${i.apiUrl}eprescribe/notificationread`},_vagroNotification.NotificationTypes={VMS_NOTIFICATION:{priority:2,renderer:function(e){_vmsNotification.renderVMSNotification(e,s,r)}},BUSINESS_PROGRESS:{priority:1,renderer:function(t){var i=e("<div>",{class:"notification-busprofile-div notification-busprofile-topspace"}),n=e("<div>",{class:"notification-busprofile-container"}).appendTo(i);e('<div class="bus-des-beck clearfix" style="display: none;">\n\t\t\t    <a class="back-link-profile nt-back-control nt-hover-state" href="javascript:void(0)"></a>\n\t\t    </div>').appendTo(n),e("<div>",{class:"notification-card notification-img-cardwrapper"}).append(e("<div>",{class:"nt-img-box"}).append(e("<img>",{src:"https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/cmsimages/feedback-session.png",alt:"Feedback Session",class:"notification-img"})),e("<div>").append(e("<h3>",{class:"nt-wrapper-title",text:"Let’s Setup Your Business"}),e("<p>",{class:"nt-wrapper-text",text:"Get discovered and get more bookings by completing these best practices."}))).appendTo(n);var a=[{id:"SchedulicityBusiness",label:"Moving from Schedulicity to Vagaro",tooltip:"",show:1==t.schedulicityBiz,completed:!0},{id:"BusinessDescriptionPro",label:"Add Your Address, Phone Number & Hours",tooltip:"Business description requires a minimum of 200 characters. This will boost your SEO and drive more traffic to your page.",completed:1==t.bizDesc},{id:"FacilityInformationPro",label:"Set Up Cancellation & No-Show Policy",tooltip:"Select at least 1 business type that represents your work. This will guide targeted customers to your page.",completed:1==t.facilityInfo},{id:"BusinessPhotoPro",label:"Show Off Your Logo & Photos",tooltip:"",completed:1==t.bizPhoto},{id:"ImportClientsPro",label:"Import Clients",tooltip:"",completed:1==t.clientImport},{id:"ServiceClassMenuPro",label:"Let’s Set Up Your Service / Class Menu",tooltip:"",completed:1==t.serviClsMenu},{id:"EmployeeLicensePro",label:"Add Team Members",tooltip:"",completed:2==t.empLicense,show:t.empLicense>1},{id:"GustoIntegrationPro",label:"Configure Payroll with Gusto",tooltip:"",completed:2==t.empLicense,show:!1},{id:"CreditCardMerchantPro",label:"Get Paid & Accept Payments",tooltip:"",completed:1==t.ccMerchant,show:1==t.ccMerchant||0==t.ccMerchant},{id:"FeatureYourBusinessPro",label:"Get Booked on Social",tooltip:"",completed:1==t.socialBooking,show:1==t.socialBooking||0==t.socialBooking},{id:"BuildWebsitePro",label:"Build Website",tooltip:"",show:!1}],o=a.filter(e=>!1!==e.show),r=o.filter(e=>e.completed).length,l=Math.round(r/o.length*100),d=e(`\n                           <div class="clearfix notification-busprofile-content">\n                               <div class="notification-card notifipaddingleftprogess clearfix">\n                                   <div class="propadding-wrapper businessleftpadding notification-border clearfix" id="FreeTrialBar" style="display: none;">\n                                       <div class="propadding-wrapper" style="padding-top: 15px;">\n                                           <div class="notification-split">\n                                               <div class="notification-title paddingleft0">Free Trial</div>\n                                               <div class="notification-title" id="FreeTotalDays">7 days left</div>\n                                           </div>\n                                       </div>\n                                       <div class="noti-free-trial-status-bar">\n                                           <div class="noti-free-trial-green" id="FreeTotalPer" style="width: 20%;"></div>\n                                       </div>\n                                   </div>\n                                   <div class="clearfix businessleftpadding businessProgress" id="BusinessProgressBar">\n                                       <div class="propadding-wrapper">\n                                           <div class="notification-title paddingleft0">Your business profile is <span id="BusinessProgressPerShow">${l}</span>% complete</div>\n                                           <div class="free-trial-status-div">\n                                               <div class="noti-free-trial-status-bar more-pad">\n                                                   <div class="noti-free-trial-green" style="width: ${l}%" id="BusinessProgressPer"></div>\n                                               </div>\n                                           </div>\n                                       </div>\n                                       <div class="profile-status-parent-div">\n                                           <a class="notification-link viewprogress mobfullnotifi-link" href="javascript:void(0);" onclick="_vagroNotification.BusinessViewProgress_OnClick()">View your progress</a>\n                                       </div>\n                                   </div>\n                               </div>\n                           </div>\n                       `);s.append(d);var u=e("<div>",{class:"notification-card profile-completion-card notification-completion-card"});a.forEach(t=>{if(!1!==t.show){var i="profile-completion-div w-inline-block-text tooltipbar";["EmployeeLicensePro","CreditCardMerchantPro","FeatureYourBusinessPro"].includes(t.id)&&(i+=" skip"),t.completed&&(i+=" greencheck-active");var n=e("<a>",{id:t.id,class:i,href:"javascript:void(0)"});"FeatureYourBusinessPro"==t.id&&0==t.completed&&n.attr("value","0");var a=e("<div>",{class:"no-padding-title notification-title"}).append(e("<span>",{class:"underline-state",text:t.label}));t.tooltip&&a.append(e("<span>",{class:"bus-tooltipicon"}).append(e("<span>",{class:"bus-tooltiphover"}).append(e("<span>",{class:"tooltipcontent",text:t.tooltip})))),n.append(a),u.append(n)}}),u.appendTo(n),e("<div>",{class:"help-bottom-control"}).append(e("<a>",{id:"DailyDealAnnouncePro",class:"profile-completion-div skip w-inline-block-text greencheck-active",href:"javascript:void(0)"}).append(e("<div>").append(e("<div>",{id:"DailyDealAnnounceClick",class:"no-padding-title",text:"Need Help? Check Out Our Resources"})))).appendTo(n),s.append(i),l>=100&&e("#BusinessProgressBar").hide();s.off("click",".profile-completion-div").on("click",".profile-completion-div",function(t){const i=e(this).attr("id");c[i]&&c[i]()}),s.off("click",".bus-tooltipicon").on("click",".bus-tooltipicon",function(e){e.stopPropagation()})}},FREE_TRIAL:{priority:3,renderer:function(t){let i=t.trialDaysLeft;e("#FreeTrialBar").show(),i<=0?(e("#BusinessProgressBar").removeClass("businessProgress"),e("#FreeTrialBar").hide()):i+=1==i?" day left":" days left";e("#FreeTotalDays")[0].innerHTML=i,e("#FreeTotalPer")[0].style.width=100*t.trialDays/t.trialTotalDays+"%",0==t.trialDays&&0==t.trialTotalDays&&(e("#FreeTotalPer")[0].style.width="100%")}},WEBSITE_REVIEW:{priority:4,renderer:function(e){let t=e.cdnImagePath;const i=`\n                        <div class="vg-notification-card" id="divwebsitereview" style="z-index: 9999; position: relative;">\n                            <div class="notification-card-step1 clearfix">\n                                <div class="mobinnercarpadside" style="z-index: 9999; position: relative;">\n                                    <div class="notification-title paddingleft0">Are you enjoying Vagaro?</div>\n                                    <div class="link notification-title fr pull-right mobprohide">\n                                        <a href="javascript:void(0);" class="notification-link dismiss-text" onclick="_vagroNotification.reviewDismiss(4)" ontouchstart="_vagroNotification.reviewDismiss(4)">Dismiss</a>\n                                    </div>\n                                    <div class="yes-div-overall">\n                                        <a class="yes-div" href="javascript:void(0);" onclick="_vagroNotification.webReviewYes()" ontouchstart="_vagroNotification.webReviewYes()">\n                                            <img class="face blinkrotate" src="${t}Images/yes-face@2x.png" width="56">\n                                            <div>Yes</div>\n                                        </a>\n                                        <a class="meh-div" href="javascript:void(0);" onclick="_vagroNotification.reviewMahNo(2)" ontouchstart="_vagroNotification.reviewMahNo(2)">\n                                            <img class="face-meh" src="${t}Images/meh-face@2x.png" width="56">\n                                            <div>Meh</div>\n                                        </a>\n                                        <a class="no-div" href="javascript:void(0);" onclick="_vagroNotification.reviewMahNo(3)" ontouchstart="_vagroNotification.reviewMahNo(3)">\n                                            <img class="face-no" src="${t}Images/no-face@2x-light.png" width="56">\n                                            <div>No</div>\n                                        </a>\n                                    </div>\n                                </div>\n                                <a href="javascript:void(0);" class="notification-link mobfullnotifi-link showinmobpro" onclick="_vagroNotification.reviewDismiss(4)" >Dismiss</a>\n                            </div>\n                            <div class="notification-card-step2 divWebsitereviewsave">\n                                <div class="vg-center-text">\n                                    <div class="mobinnercarpadside">\n                                        <div class="notification-title"> That's great to hear! For a chance to win <span id="currencySymbol">${_vagroNotification.model.CurrencySymbol}${e.amount}</span>, <br class="showinmobpro" /> leave a review to help us spread the word. </div>\n                                        <a class="close-link-block noticlose-link reviewcapterra-back mobprotopclose showinmobpro" onclick="_vagroNotification.reviewBack_OnClick()" href="javascript:void(0)"></a>\n                                    </div>\n                                    <div class="btn-review-getapp clearfix">\n                                        <a href="javascript:void(0);" class="showinmobproinline-block mobprohide clsReviewSoftwareAdvice" onclick="_vagroNotification.saveWebsiteReview(0)">Review us on Software Advice</a>\n                                        <a href="javascript:void(0);" class="showinmobproinline-block clsReviewGetapp" onclick="_vagroNotification.saveWebsiteReview(1)">Review us on Getapp</a>\n                                        <a href="javascript:void(0);" class="showinmobproinline-block clsReviewCapterra" onclick="_vagroNotification.saveWebsiteReview(6)">Review us on Capterra</a>\n                                        <a href="javascript:void(0);" class="showinmobproinline-block clsReviewAppStore">Review Us on App Store</a>\n                                        <a href="javascript:void(0);" class="showinmobproinline-block clsReviewG2" onclick="_vagroNotification.saveWebsiteReview(5)">Review Us on G2</a>\n                                        <a href="javascript:void(0);" class="showinmobproinline-block clsTrustpilot" onclick="_vagroNotification.saveWebsiteReview(7)">Review Us on Trustpilot</a>\n                                        <a href="javascript:void(0);" class="showinmobproinline-block clsGoogleReview" onclick="_vagroNotification.saveWebsiteReview(8)">Review Us on Google</a>\n                                    </div>\n                                    <a href="javascript:void(0);" class="notification-link reviewcapterra-back mobprohide" onclick="_vagroNotification.reviewBack_OnClick()" title="Back">Back</a>\n                                </div>\n                            </div>\n                            <div class="notification-card-step3 divWebsitereviewsave">\n                                <div id="divSaveReview">\n                                    <div class="mobinnercarpadside mobtextcenter">\n                                        <div class="notification-title">How can we make Vagaro better for you?</div>\n                                        <a class="close-link-block noticlose-link reviewcapterra-back mobprotopclose showinmobpro" onclick="_vagroNotification.reviewBack_OnClick()" href="javascript:void(0)"></a>\n                                    </div>\n                                    <textarea id="txtWebsiteReview" rows="4" cols="50" class="notification-textarea" maxlength="1000" onkeyup="_vagroNotification.limitTextForReviewtext();" onblur="_vagroNotification.limitTextForReviewtext();" placeholder="We welcome your feedback. We are always trying to improve your experience in Vagaro"></textarea>\n                                    <div class="notificationtexttooltip mobprohide">( <span id="spanreviewtextLmtCount" clientidmode="Static" runat="server">1000</span> characters left) </div>\n                                    <a href="javascript:void(0);" id="btnSaveReview" onclick="_vagroNotification.saveWebsiteReview(2)" class="notification-link feedbacksend mobfullnotifi-link" title="Submit Feedback">Submit Feedback</a>\n                                    <a href="javascript:void(0);" class="notification-link reviewcapterra-back mobprohide" onclick="_vagroNotification.reviewBack_OnClick()" title="Back">Back</a>\n                                </div>\n                                <div id="divSaveSuccessreview"></div>\n                            </div>\n                        </div>\n                    `;s.append(i),_vagroNotification.NotificationCount.add(1)}},COMMON_NOTIFICATION:{priority:5,renderer:function(t){MobileNotifictionDiv();let n=function(t){let i=[],n={id:"",icon:"",count:0,title:"",desc:"",actionType:"",btnText:"View",btnParams:null};if(0==_vagroNotification.isNullOrUndefineOrBlank(t)){if(!_vagroNotification.isNullOrUndefineOrBlank(t.acceptedApptCnt)&&t.acceptedApptCnt>0){let e={...n};e.id="liPendingAppointment",e.icon="&#xf133;",e.count=t.acceptedApptCnt,e.title="Pending Appointments",e.desc="You have pending appointments awaiting your approval.",e.actionType="PendingAppointment",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.addIndividual(t.acceptedApptCnt,_vagroNotification.NotificationCount.NotiType.pendingApp),_vagroNotification.NotificationCount.add(t.acceptedApptCnt)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.waitlistCnt)&&t.waitlistCnt>0){let e={...n};e.id="liWaitlistAppointment",e.icon="&#xf0ca;",e.count=t.waitlistCnt,e.title="Waitlist",e.desc="You have waitlisted appointments awaiting your approval.",e.actionType="WaitlistAppointment",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(t.waitlistCnt)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.overdueInvoiceCnt)&&t.overdueInvoiceCnt>0){let e={...n};e.id="liOverdueInvoicesCount",e.icon="&#xf570;",e.count=t.overdueInvoiceCnt,e.title="Invoices Overdue",e.desc="You have invoices that are overdue. Send a reminder to your clients to get paid.",e.actionType="InvoiceOverdue",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.discardedInventoryCnt)&&t.discardedInventoryCnt>0){let e={...n};e.id="liDiscardedInventoryCount",e.icon='<svg width="28" height="23" viewBox="0 0 28 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d = "M24.125 5.5H24.875C25.5 5.5 26.0312 5.71875 26.4688 6.15625C26.9062 6.59375 27.125 7.125 27.125 7.75V20.5C27.125 21.125 26.9062 21.6562 26.4688 22.0938C26.0312 22.5312 25.5 22.75 24.875 22.75H16.625C16 22.75 15.4688 22.5312 15.0312 22.0938C14.5938 21.6562 14.375 21.125 14.375 20.5V7.75C14.375 7.125 14.5938 6.59375 15.0312 6.15625C15.4688 5.71875 16 5.5 16.625 5.5H17.375V2.5C17.375 1.875 17.5938 1.34375 18.0312 0.90625C18.4688 0.46875 19 0.25 19.625 0.25H21.875C22.5 0.25 23.0312 0.46875 23.4688 0.90625C23.9062 1.34375 24.125 1.875 24.125 2.5V5.5ZM22.625 2.5C22.625 2.29688 22.5469 2.125 22.3906 1.98438C22.25 1.82812 22.0781 1.75 21.875 1.75H19.625C19.4219 1.75 19.2422 1.82812 19.0859 1.98438C18.9453 2.125 18.875 2.29688 18.875 2.5V5.5H22.625V2.5ZM16.625 7C16.4219 7 16.2422 7.07812 16.0859 7.23438C15.9453 7.375 15.875 7.54688 15.875 7.75V20.5C15.875 20.7031 15.9453 20.8828 16.0859 21.0391C16.2422 21.1797 16.4219 21.25 16.625 21.25H24.875C25.0781 21.25 25.25 21.1797 25.3906 21.0391C25.5469 20.8828 25.625 20.7031 25.625 20.5V7.75C25.625 7.54688 25.5469 7.375 25.3906 7.23438C25.25 7.07812 25.0781 7 24.875 7H16.625ZM2.75 7L4.53125 16.7734H9.99219L11.7734 7H2.75ZM2.49219 5.5H12.0547L12.5234 2.99219L11.1172 4.30469L9.28906 2.40625L7.27344 4.28125L5.32812 2.42969L3.52344 4.30469L2.02344 2.94531L2.49219 5.5ZM3.125 17.3828L0.195312 1.23438C0.148438 1.01562 0.1875 0.8125 0.3125 0.625C0.453125 0.4375 0.632812 0.320312 0.851562 0.273438C0.976562 0.257812 1.10156 0.265625 1.22656 0.296875C1.35156 0.328125 1.46094 0.390625 1.55469 0.484375L3.45312 2.21875L5.28125 0.296875L7.27344 2.21875L9.35938 0.320312L11.1641 2.19531L12.9922 0.484375C13.1484 0.34375 13.3359 0.273438 13.5547 0.273438C13.7891 0.273438 13.9844 0.359375 14.1406 0.53125C14.2344 0.625 14.2969 0.734375 14.3281 0.859375C14.375 0.984375 14.3828 1.10938 14.3516 1.23438L11.375 17.6172V20.5C11.375 21.125 11.1562 21.6562 10.7188 22.0938C10.2812 22.5312 9.75 22.75 9.125 22.75H5.375C4.75 22.75 4.21875 22.5312 3.78125 22.0938C3.34375 21.6562 3.125 21.125 3.125 20.5V17.3828ZM9.875 20.5V18.25H4.625V20.5C4.625 20.7031 4.69531 20.8828 4.83594 21.0391C4.99219 21.1797 5.17188 21.25 5.375 21.25H9.125C9.32812 21.25 9.5 21.1797 9.64062 21.0391C9.79688 20.8828 9.875 20.7031 9.875 20.5Z" fill = "#333333" /></svg>',e.count=t.discardedInventoryCnt,e.title="Products to Discard",e.desc="You have products that need to be discarded.",e.actionType="DiscardedInventory",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1),_vagroNotification.model.IsSendCallbackPendingApp=!1}if(!_vagroNotification.isNullOrUndefineOrBlank(t.discardApproachingInventoryCnt)&&t.discardApproachingInventoryCnt>0){let e={...n};e.id="liDiscardApproachingInventoryCount",e.icon='<svg width="28" height="23" viewBox="0 0 28 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d = "M24.125 5.5H24.875C25.5 5.5 26.0312 5.71875 26.4688 6.15625C26.9062 6.59375 27.125 7.125 27.125 7.75V20.5C27.125 21.125 26.9062 21.6562 26.4688 22.0938C26.0312 22.5312 25.5 22.75 24.875 22.75H16.625C16 22.75 15.4688 22.5312 15.0312 22.0938C14.5938 21.6562 14.375 21.125 14.375 20.5V7.75C14.375 7.125 14.5938 6.59375 15.0312 6.15625C15.4688 5.71875 16 5.5 16.625 5.5H17.375V2.5C17.375 1.875 17.5938 1.34375 18.0312 0.90625C18.4688 0.46875 19 0.25 19.625 0.25H21.875C22.5 0.25 23.0312 0.46875 23.4688 0.90625C23.9062 1.34375 24.125 1.875 24.125 2.5V5.5ZM22.625 2.5C22.625 2.29688 22.5469 2.125 22.3906 1.98438C22.25 1.82812 22.0781 1.75 21.875 1.75H19.625C19.4219 1.75 19.2422 1.82812 19.0859 1.98438C18.9453 2.125 18.875 2.29688 18.875 2.5V5.5H22.625V2.5ZM16.625 7C16.4219 7 16.2422 7.07812 16.0859 7.23438C15.9453 7.375 15.875 7.54688 15.875 7.75V20.5C15.875 20.7031 15.9453 20.8828 16.0859 21.0391C16.2422 21.1797 16.4219 21.25 16.625 21.25H24.875C25.0781 21.25 25.25 21.1797 25.3906 21.0391C25.5469 20.8828 25.625 20.7031 25.625 20.5V7.75C25.625 7.54688 25.5469 7.375 25.3906 7.23438C25.25 7.07812 25.0781 7 24.875 7H16.625ZM2.75 7L4.53125 16.7734H9.99219L11.7734 7H2.75ZM2.49219 5.5H12.0547L12.5234 2.99219L11.1172 4.30469L9.28906 2.40625L7.27344 4.28125L5.32812 2.42969L3.52344 4.30469L2.02344 2.94531L2.49219 5.5ZM3.125 17.3828L0.195312 1.23438C0.148438 1.01562 0.1875 0.8125 0.3125 0.625C0.453125 0.4375 0.632812 0.320312 0.851562 0.273438C0.976562 0.257812 1.10156 0.265625 1.22656 0.296875C1.35156 0.328125 1.46094 0.390625 1.55469 0.484375L3.45312 2.21875L5.28125 0.296875L7.27344 2.21875L9.35938 0.320312L11.1641 2.19531L12.9922 0.484375C13.1484 0.34375 13.3359 0.273438 13.5547 0.273438C13.7891 0.273438 13.9844 0.359375 14.1406 0.53125C14.2344 0.625 14.2969 0.734375 14.3281 0.859375C14.375 0.984375 14.3828 1.10938 14.3516 1.23438L11.375 17.6172V20.5C11.375 21.125 11.1562 21.6562 10.7188 22.0938C10.2812 22.5312 9.75 22.75 9.125 22.75H5.375C4.75 22.75 4.21875 22.5312 3.78125 22.0938C3.34375 21.6562 3.125 21.125 3.125 20.5V17.3828ZM9.875 20.5V18.25H4.625V20.5C4.625 20.7031 4.69531 20.8828 4.83594 21.0391C4.99219 21.1797 5.17188 21.25 5.375 21.25H9.125C9.32812 21.25 9.5 21.1797 9.64062 21.0391C9.79688 20.8828 9.875 20.7031 9.875 20.5Z" fill = "#333333" /></svg>',e.count=t.discardApproachingInventoryCnt,e.title="Products Discard Date Approaching",e.desc="You have products that will be expiring based on its discard date.",e.actionType="DiscardApproachingInventory",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1),_vagroNotification.model.IsSendCallbackPendingApp=!1}if(!_vagroNotification.isNullOrUndefineOrBlank(t.missedClockOut)&&1==t.missedClockOut&&0==e("body").hasClass("pronotidevice")){let e={...n};e.id="liMissingClockOut",e.icon="&#xf017;",e.count=0,e.title="Missing Clock Outs",e.desc="It looks like someone has forgotten to clock out.",e.actionType="MissingClockOut",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.lowStockWarn)&&1==t.lowStockWarn){let e={...n};e.id="liLowQty",e.icon="&#xf49e;",e.title="Low Inventory",e.desc="You are low on inventory. You may need to restock soon.",e.actionType="LowInventory",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.paymentDueMsg)&&0==e("body").hasClass("pronotidevice")){let e={...n};e.id="liPaymentPending",e.count=0,e.title="Vagaro Payment is Due",e.desc=t.paymentDueMsg,e.actionType="PaymentPending",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.formCnt)&&t.formCnt>0){let a={...n};a.id="liFormsNotificationCount",a.icon="&#xf573;",a.count=t.formCnt,a.title="Require Employee Signature for Forms",a.desc="These forms require an employee’s signature.",a.actionType="PendingSignFormsNotification",a.btnText="View",i.push(a),_vagroNotification.NotificationCount.add(1),_vagroNotification.LocalStorageUtil.set(_vagroNotification.storageKey.UnsignedFormsCount,t.formCnt),e("#lblUnsignedForms").text(t.formCnt),e(".form-notification-number").css("display","block"),e("#lblUnsignedForms").css("display","inline-block")}else _vagroNotification.LocalStorageUtil.set(_vagroNotification.storageKey.UnsignedFormsCount,0),e("#lblUnsignedForms").html(""),e("#lblUnsignedForms").css("display","none"),e(".form-notification-number").css("display","none");if(!_vagroNotification.isNullOrUndefineOrBlank(t.empSignCnt)&&t.empSignCnt>0&&("5"==_vagroNotification.model.UserType||"6"==_vagroNotification.model.UserType)){let e={...n};e.id="liBlankFormsNotificationCount",e.icon="&#xf234;",e.count=t.empSignCnt,e.title="Assign Employee to Signature in Forms",e.desc="These forms do not have an employee assigned for employee signature.",e.actionType="BlankFormsNotification",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.requester)){let e={...n};e.id="employeerequestnotification",e.icon="&#xf872;",e.title="Add Your Information for Rent Collection",e.desc="View your employee profile to add your information for rent.",e.actionType="RentDetailsRequest",e.btnText="View",e.btnParams=t.reqViewLink,i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.rentPaymentDue)&&t.rentPaymentDue>0){let e={...n};e.id="divPaymentFailedEmployess",e.count=t.rentPaymentDue,e.actionType="RentPaymentFailedEmployess",e.btnText="View",_vagroNotification.model.UserType==_vagroNotification.UserTypeEnum.AccountOwner||_vagroNotification.model.UserType==_vagroNotification.UserTypeEnum.VagaroAdmin||_vagroNotification.getRoleRightsByPage("EmployeeRentAndFees").CanView||_vagroNotification.getRoleRightsByPage("EmployeeRentAndFees").CanModify?(e.title="Failed Renter Payments",e.desc="It looks like someone's payment for renter rent has failed.",e.icon="&#xf09d;",e.btnParams={IsShopOwnerAdmin:!0,ViewLink:""}):(e.title="Your Renter Payment Failed",e.icon="&#xf09d;",e.desc="Your payment for renter rent has failed.",e.btnParams={IsShopOwnerAdmin:!1,ViewLink:t.viewLink}),i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.failedBankCnt)&&t.failedBankCnt>0||!_vagroNotification.isNullOrUndefineOrBlank(t.invalidBankCnt)&&t.invalidBankCnt>0){let e={...n};e.id="EmployeeBankpaymentFail",e.count=t.rentPaymentDue,_vagroNotification.model.UserType==_vagroNotification.UserTypeEnum.AccountOwner||_vagroNotification.model.UserType==_vagroNotification.UserTypeEnum.VagaroAdmin?(t.failedBankCnt>0?(e.icon="&#xf19c;",e.title="Renter Required to Contact Bank for Rent Collection",e.desc="Your renter’s payment for Rent Collection was not authorized by their bank. They will need to contact their bank to allow the charge."):(e.icon="&#xf19c;",e.title="Renter required to update bank account information for Rent Collection",e.desc="Your renter's payment for Rent Collection failed due to invalid bank account information.They will need to update their bank account information in Vagaro."),e.actionType="EmployeeBankpaymentFail",e.btnText="View",e.btnParams={IsShopOwnerAdmin:!0,ViewLink:""},i.push(e),_vagroNotification.NotificationCount.add(1)):_vagroNotification.model.UserType!=_vagroNotification.UserTypeEnum.ServiceProvider&&_vagroNotification.model.UserType!=_vagroNotification.UserTypeEnum.ShopAdmin||(!_vagroNotification.isNullOrUndefineOrBlank(t.failedBankCnt)&&t.failedBankCnt>0?(e.icon="&#xf155;",e.title="Your Rent Collection Payment Failed",e.desc="Your Rent Collection payment was not authorized by the bank. Contact your bank to allow the charge."):(e.icon="&#xf155;",e.title="Your Rent Collection Payment Failed",e.desc="Your Rent Collection payment failed due to invalid bank account information. You need to update your bank account information in Vagaro."),e.actionType="EmployeeBankpaymentFail",e.btnText="View",e.btnParams={IsShopOwnerAdmin:!1,ViewLink:t.bankErrorLink},i.push(e),_vagroNotification.NotificationCount.add(1))}if(!_vagroNotification.isNullOrUndefineOrBlank(t.shipmentPendingCnt)&&t.shipmentPendingCnt>0){let e={...n};e.id="liPendingShipment",e.icon="&#xf0d1;",e.count=t.shipmentPendingCnt,e.title="Pending Shipments",e.desc="You have pending orders that need to be shipped.",e.actionType="PendingShipment",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.timeOffReqCnt)&&t.timeOffReqCnt>0){let e={...n};e.id="liTimeOffRequest",e.icon="&#xf273;",e.count=t.timeOffReqCnt,e.title="Time Off Requests",e.desc="You have time off requests from your employees awaiting your approval.",e.actionType="TimeOffRequest",e.btnText="View",i.push(e),_vagroNotification.NotificationCount.add(1)}if(!_vagroNotification.isNullOrUndefineOrBlank(t.ePrescribeDtl)){let e=JSON.parse(t.ePrescribeDtl);if(e.scriptsureOrgActive=t.scriptsureOrgActive,1==t.scriptsureOrgActive){if(e.status==_vagroNotification.model.ScriptSureEmpStatusType.Invited){if(e.role==_vagroNotification.model.ScriptSureRoleType.Doctor){let t={...n};t.id="liePrescribeInvite",t.icon="&#xf484;",t.title="Setup E-Prescribe",t.desc="You've been added to E-Prescribe. Onboard now to start managing customer prescriptions in Vagaro.",t.actionType="ePrescribeInvite",t.btnText="Get Started",t.btnParams=e,t.isMobileViewSameAsWeb=!0,i.push(t),_vagroNotification.NotificationCount.add(1)}else if(e.role==_vagroNotification.model.ScriptSureRoleType.MedicalAssistants){let t={...n};t.id="liePrescribeInvite",t.icon="&#xf484;",t.title="Approved for E-Prescribe",t.desc="You have been approved for E-Prescribe! Complete setting up your account and invite your employees to send electronic prescriptions directly to a pharmacy.  ",t.actionType="ePrescribeInvite",t.btnText="Get Started",t.btnParams=e,t.isMobileViewSameAsWeb=!0,i.push(t),_vagroNotification.NotificationCount.add(1)}}else if(e.status==_vagroNotification.model.ScriptSureEmpStatusType.Active)if(e.role==_vagroNotification.model.ScriptSureRoleType.Doctor){let t={};t=1==e.initialUser?{name:e.firstName,title:"E-Prescribe Activated",description:"You have been approved for E-Prescribe! You can now manage customer prescriptions. Next, activate E-Prescribe for additional locations or invite your employees to begin sending electronic prescriptions directly to pharmacies.",buttons:[{text:"Finish Setup",onClick:function(){d(!0)}}]}:{name:e.firstName,title:"E-Prescribe Activated",description:"You have been approved for E-Prescribe! You can now manage and send electronic prescriptions directly to pharmacies for your customers.",buttons:[{text:"Learn More",onClick:function(){d(!1)}}]},s.append(l(t)),_vagroNotification.NotificationCount.add(1)}else e.role==_vagroNotification.model.ScriptSureRoleType.MedicalAssistants&&(1==e.initialUser?obj={name:e.firstName,title:"E-Prescribe Activated",description:"You have been approved for E-Prescribe! You can now manage customer prescriptions. Next, activate E-Prescribe for additional locations or invite your employees to begin sending electronic prescriptions directly to pharmacies.",buttons:[{text:"Finish Setup",onClick:function(){d(!0)}}]}:obj={name:e.firstName,title:"E-Prescribe Activated",description:"You have been approved for E-Prescribe! You can now manage electronic prescriptions for your customers.",buttons:[{text:"Learn More",onClick:function(){d(!1)}}]},s.append(l(obj)),_vagroNotification.NotificationCount.add(1))}else if(e.status==_vagroNotification.model.ScriptSureEmpStatusType.Invited&&0==t.scriptsureOrgActive){let t={...n};t.id="liePrescribeInvite",t.icon="&#xf484;",t.title="Setup E-Prescribe",t.desc=`You've been invited to activate E-Prescribe at ${_vagroNotification.model.BizDetail.businessName} - ${_vagroNotification.model.BizDetail.city}. Start managing customer prescriptions in Vagaro by clicking Get Started.`,t.actionType="ePrescribeInvite",t.btnText="Get Started",t.btnParams=e,t.isMobileViewSameAsWeb=!0,i.push(t),_vagroNotification.NotificationCount.add(1)}}if(!_vagroNotification.isNullOrUndefineOrBlank(t.ePrescribeMsg)&&t.ePrescribeMsg>0){let e={...n};e.id="liScriptsureMsgCount",e.icon="&#xf484;",e.count=t.ePrescribeMsg,e.title="Unread E-Prescribe Messages",e.desc="You have pending messages for review.",e.actionType="ScriptsureMsgCount",e.btnText="View Messages",e.isMobileViewSameAsWeb=!0,i.push(e),_vagroNotification.NotificationCount.add(1),_vagroNotification.model.IsSendCallbackPendingApp=!1}}return i}(t);n.length>0&&n.forEach(function(t){!function(t){var n=e("<div>",{class:"notification-card-cont clearfix",id:t.id||""}),a=t.isMobileViewSameAsWeb?"notification-card notifipaddingleft clearfix":"notification-card notifipaddingleft clearfix mobprocardpadrightarrow",o=t.isMobileViewSameAsWeb?"notification-link viewprogress mobfullnotifi-link":"notification-link mobprorightarow",c=e("<div>",{class:a}),l=e("<div>",{class:t.isMobileViewSameAsWeb?"notif-image-div":"notif-image-div paddingleft0"}),d=e("<div>",{class:"liPaymentPending"==t.id?"":"notif-text-div"}).append(e("<div>",{class:"notification-title",text:t.title||""}),e("<div>",{class:t.isMobileViewSameAsWeb?"notification-text":"notification-text mobprohide",html:t.desc||""}));if(t.icon){var p=e("<div>",{class:"alert-notification-circle small"}).append(e("<div>",{class:"font-awesome-normal-pro",html:t.icon}));t.count>0&&p.append(e("<div>",{class:"alert-number-container small"}).append(e("<div>",{class:"notification-number",text:t.count}))),l.append(p)}l.append(d);var f=e("<div>",{class:"profile-status-parent-div"}).append(e("<a>",{class:o,href:"javascript:void(0)",text:t.btnText||"View",click:function(){!function(t,n){const a="function"==typeof sendMobileCallBack,o="Microsoft Internet Explorer"===navigator.appName,s=e=>{if(o){const t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click()}else{window.open(e)||bootbox.alert({title:"Alert",message:"Popup is blocked in your browser. Please enable popup first."})}};switch(t){case"InvoiceOverdue":a?sendMobileCallBack(_vagroNotification.MobileNotType.InvoiceOverDue):location.href="/merchants/settings/thingswesell/invoices/overdue";break;case"PendingShipment":a?sendMobileCallBack(_vagroNotification.MobileNotType.PendingShipment):location.href="/merchants/reports/inventory/pendingshipments?ShowAllPendingShipments=true";break;case"MissingClockOut":location.href="/merchants/reports/employees/timecard?IsShowClockOutEntryOnly=true";break;case"PaymentPending":s(`/merchants/duepayment?BusinessID=${i?.bId}`);break;case"PendingSignFormsNotification":const t=`/merchants/reports/customers/unsignedforms?spid=${_vagroNotification.model.UserId}`;a&&e("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.UnSignedReport,t,null):location.href=t;break;case"BlankFormsNotification":!function(){e("#divAssignToEmployee").remove(),$container=e("<div>",{id:"divAssignToEmployee",class:"pending-appointments-div clearfix openslide",style:"display: none;"});const t=e("<div>",{id:"divAssignToEmployeeloader",class:"section-loader"}).append(e("<div>",{class:"loader"}).html("&nbsp;"),e("<div>",{class:"loader-img"})),i=e("<div>",{id:"divAssignFormlist",class:"divPendingAppointmentlistcls soap-btm0"});$container.append(t,i),r.append($container);var n=e(".notification-div");e(".big-title-notification",n).html("Assign Employee to Form"),e("#divAssignToEmployee").show(),e(".notification-div").addClass("pendingAppOpen"),e(".notification-card-container").hide(),e("#divAssignToEmployeeloader").show(),e("#divPendingAppointment").hide(),callApi(_vagroNotification.ApiURLEnum.GetUnassignEmpSignForms,null,_vagroNotification.APIMethodType.GET,function(t){var i;200===t.status&&1e3===t.responseCode&&null!=t.data&&t.data.blankFormList.length>0?(i=t.data.blankFormList,e("#divAssignToEmployeeloader").hide(),function(t){e("#divAssignFormlist").empty(),t.forEach(function(t){var i=e("<div>",{class:"notification-card-cont clearfix"}),n=e("<div>",{class:"notification-card notifipaddingleft clearfix mobprocardpadrightarrow"}),a=e("<div>",{class:"notif-image-div-new newvagaropending"}).append(e("<div>",{class:"notification-title",text:t.title})),o=e("<a>",{class:"notification-link mobprorightarow",href:"javascript:void(0)",text:"View",click:function(){_vagroNotification.GoToPendingForm(t.formID)}});n.append(a,o),i.append(n),e("#divAssignFormlist").append(i)})}(i),e("#divAssignToEmployee").addClass("openslide").show(),e(".notification-div").addClass("HeaderRemove")):e(".notiback-link").click()},function(e){})}();break;case"RentDetailsRequest":const o=n;a&&e("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.EmployeesRentPageRedirect,o,null):location.href=o;break;case"RentPaymentFailedEmployess":if(1==n.IsShopOwnerAdmin)_vagroNotification.RentPageRedirect(0);else{const t=n.ViewLink;a&&e("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.EmployeesRentPageRedirect,t,null):location.href=t}break;case"EmployeeBankpaymentFail":if(1==n.IsShopOwnerAdmin)_vagroNotification.RentPageRedirect(1);else{const t=n.ViewLink;a&&e("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.EmployeesRentPageRedirect,t,null):location.href=t}break;case"LowInventory":a?sendMobileCallBack(_vagroNotification.MobileNotType.LowInventory):location.href="/merchants/settings/inventory?ShowLowQty=true";break;case"PendingAppointment":a?sendMobileCallBack(_vagroNotification.MobileNotType.PendingApp):callApi(_vagroNotification.ApiURLEnum.GetPendingAppointments,null,_vagroNotification.APIMethodType.GET,function(t){200===t.status&&1e3===t.responseCode&&!_vagroNotification.isNullOrUndefineOrBlank(t.data)&&t.data.length>0&&function(t){e("#divPendingAppointment").remove();const i=e("<div>",{id:"divPendingAppointment",class:"pending-appointments-div clearfix"}),n=e("<div>",{id:"divnotificationloader",class:"section-loader"}).append(e("<div>",{class:"loader"}).html("&nbsp;"),e("<div>",{class:"loader-img"})),a=e("<div>",{id:"divPendingAppointmentlist",class:"divPendingAppointmentlistcls waitlistWrapDiv"}),o=e("<div>",{class:"accept-all-button",text:"Accept All",click:function(){_vagroNotification.AcceptAllNotificaton()}});i.append(n,a,o),t.forEach(e=>{a.append(_pendingAppNotifications.create(e))}),r.append(i);var s=e(".notification-div");e(".big-title-notification",s).html("Online Appointment Requests"),e(".notification-div").addClass("pendingAppOpen"),e(".notification-card-container").hide()}(t.data)},function(e){});break;case"WaitlistAppointment":callApi(_vagroNotification.ApiURLEnum.GetWaitlistAppointments,null,_vagroNotification.APIMethodType.GET,function(t){200===t.status&&1e3===t.responseCode&&!_vagroNotification.isNullOrUndefineOrBlank(t.data)&&t.data.length>0&&function(t){e("#divWaitListPanel").remove();const i=e("<div>",{class:"wait-list-div clearfix waitlistWrapDiv",id:"divWaitListPanel",style:"display: none;"}),n=e("<div>",{class:"section-loader",id:"divWaitListLoader"}).append(e("<div>",{class:"loader"}).html("&nbsp;"),e("<div>",{class:"loader-img"})),a=e("<div>",{id:"divWaitList",class:"divPendingAppointmentlistcls divwaitlistnotification"}),o=e("<div>",{class:"bus-des-beck clearfix",style:"display: none;"}).append(e("<a>",{class:"back-link-profile",href:"javascript:void(0)",style:"display: inline;"}).append(e("<svg>",{class:"notificationback",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"}).append(e("<path>",{d:"M10.875 14.4375C10.6113 14.4375 10.377 14.3496 10.2012 14.1738L4.57617 8.54883C4.19531 8.19727 4.19531 7.58203 4.57617 7.23047L10.2012 1.60547C10.5527 1.22461 11.168 1.22461 11.5195 1.60547C11.9004 1.95703 11.9004 2.57227 11.5195 2.92383L6.56836 7.875L11.5195 12.8555C11.9004 13.207 11.9004 13.8223 11.5195 14.1738C11.3438 14.3496 11.1094 14.4375 10.875 14.4375Z",fill:"#333333"})))),s=e("<div>",{id:"avltitle",class:"n-waitlist-sub-tiltle"}).append(e("<span>",{id:"avaialblewlcnt"})),c=e("<div>",{id:"availablewaitlist",class:"waitlist-card-pro"}),l=e("<div>",{id:"waitlistblock",class:"wl-grey-divider"}),d=e("<div>",{id:"unavltitle",class:"n-waitlist-sub-tiltle"}).append(e("<span>",{id:"unavaialblewlcnt"})),u=e("<div>",{id:"unavailablewaitlist",class:"waitlist-card-pro"});a.append(o,s,c,l,d,u),i.append(n,a),r.append(i),_waitlistAppNotifications.create(t)}(t.data)},function(e){console.log(e)});break;case"TimeOffRequest":callApi(_vagroNotification.ApiURLEnum.GetTimeOfRequestDetails,null,_vagroNotification.APIMethodType.GET,function(t){200===t.status&&1e3===t.responseCode&&null!=t.data&&t.data.length>0&&function(t){e("#ptopendingrequest").remove();const i=e("<div>",{id:"ptopendingrequest",class:"ptopending-appointments-div clearfix"}),n=e("<div>",{class:"section-loader"}).append(e("<div>",{class:"loader"}).html("&nbsp;"),e("<div>",{class:"loader-img"})),a=e("<div>",{id:"dvParsonalTimeOffDetails",class:"divPendingAppointmentlistcls top0set"});var o;t.forEach(e=>{a.append(_gustoNotification.renderPersonalTimeOffNotification(e))}),i.append(n,a),r.append(i),o=e(".notification-div"),e(".big-title-notification",o).html("Pending Requests"),e("#ptopendingrequest").show(),e("#divAssignToEmployee").hide(),e(".notification-div").addClass("pendingAppOpen"),e(".notification-div").addClass("HeaderRemove"),e(".notification-card-container").hide(),e('#dvParsonalTimeOffDetails [id^="divMoreContent_"]').each(function(t,i){var n=this.id.replace("divMoreContent_","");e("#hMoreContent_"+n).height()<=28&&(e("#divMoreContent_"+n).hide(),e("#pMoreContent_"+n).attr("style","height:26px;"))})}(t.data)},function(e){});break;case"DiscardedInventory":a?sendMobileCallBack(_vagroNotification.MobileNotType.DiscardedInventory):location.href="/merchants/settings/inventory?DiscardDate=2";break;case"DiscardApproachingInventory":a?sendMobileCallBack(_vagroNotification.MobileNotType.DiscardApproachingInventory):location.href="/merchants/settings/inventory?DiscardDate=1";break;case"ePrescribeInvite":!function(t){0==t.scriptsureOrgActive&&t.status==_vagroNotification.model.ScriptSureEmpStatusType.Invited?callApi(_vagroNotification.ApiURLEnum.CreatePracticeOfePrescribe,{},_vagroNotification.APIMethodType.POST,function(t){200===t.status&&1e3===t.responseCode&&null!=t.data&&("function"==typeof sendMobileCallBack&&e("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.ScriptSure,"merchants/settings/premiumfeature/eprescribe|true"):location.href="/merchants/settings/premiumfeature/eprescribe")},function(e){}):function(t){let i={};t.role==_vagroNotification.model.ScriptSureRoleType.Doctor?i.type=_vagroNotification.model.InviteLinkType.CreatePrescriberInviteLink:t.role==_vagroNotification.model.ScriptSureRoleType.MedicalAssistants?i.type=_vagroNotification.model.InviteLinkType.CreateSupportingUserInviteLink:i.type=_vagroNotification.model.InviteLinkType.Organization;i.device="website",i.module="scriptsure";const n=document.createElement("button");n.style.display="none",document.body.appendChild(n),n.onclick=function(){let t=window.open("about:blank","ScriptSureLoginNotificationPopup","width=500,height=600,top=100,left=100,resizable=no,scrollbars=yes");callApi(_vagroNotification.ApiURLEnum.GetInviteLinkOfePrescribe,i,_vagroNotification.APIMethodType.POST,function(i){if(200===i.status&&1e3===i.responseCode&&i.data&&!_vagroNotification.isNullOrUndefineOrBlank(i.data.inviteLink)){let n=i.data.inviteLink;if("function"==typeof sendMobileCallBack&&e("body").hasClass("pronotidevice"))sendMobileCallBack(_vagroNotification.MobileNotType.ScriptSure,n+"|false");else{let i="dark"===e("html").attr("data-theme").toLowerCase()?"on":"off";n+=(n.includes("?")?"&":"?")+"darkmode="+i,t?t.location.href=n:alert("Popup blocked. Please allow popups for this site."),window.addEventListener("message",u)}}},function(e){console.error("Failed to get invite link",e)})},n.click(),document.body.removeChild(n)}(t)}(n);break;case"ScriptsureMsgCount":a?sendMobileCallBack(_vagroNotification.MobileNotType.ScriptSure,"merchants/settings/premiumfeature/eprescribe|true"):location.href="/merchants/settings/premiumfeature/eprescribe?isScriptsureMsgCount=true"}}(t.actionType,t.btnParams)}}));c.append(l,f),n.append(c),s.append(n)}(t)})}},TRANSFERREQUESTAPPROVAL_NOTIFICATION:{priority:6,renderer:function(t){const i=e("<div><div>");s.append(i),t.forEach(function(e){_importNotification.renderTransferRequestApprovalNotification(e).then(function(e){i.append(e)})}),_vagroNotification.NotificationCount.add(1)}},GUSTO_NOTIFICATION:{priority:7,renderer:function(e){_gustoNotification.renderGustoNotification(e,s)}},RECOMMENDED_FEATURE:{priority:8,renderer:function(t){t.length>0&&t.forEach(function(t){!function(t){var i,n=e("<div>",{class:"notification-card notifipaddingleft clearfix",id:"divRecommFeatureNotification_"+t.upsellId}),a=e("<div>",{class:"notif-image-div"});i=null==t.photo||""==t.photo?e("<div>",{class:"upsellnewrecom-imgbg"}).append(e("<span>",{text:_vagroNotification.FindInitials(t.recommendedBy,"FS")})):e("<div>",{class:"upsellnewrecom-imgbg avtar-img",style:"background-image: url("+t.cdnUrl+"200x0/"+t.photo+")"}).append(e("<span>"));a.append(i);var o=e("<div>",{class:"notif-text-div"}).append(e("<div>",{class:"notification-title newrecomNoti",html:"New Recommendation from <span>"+t.recommendedBy+"</span>"}),e("<div>",{class:"link notification-title fr pull-right"}),e("<div>",{class:"notification-text",text:"Here is the new feature recommendation we spoke about."}));a.append(o),n.append(a);var r=e("<a>",{id:"aNewRecommendation",class:"notification-link",href:"javascript:void(0);","data-ix":"view-pending-appointments",text:"View Recommendation",click:function(){_vagroNotification.RedirectSupportRecommFeaturePage(t.encUpsellId)}}),c=e("<a>",{id:"aDismissNewRecommendation",class:"notification-link",href:"javascript:void(0);",text:"Dismiss",click:function(){_vagroNotification.DismissRecommendedFeature(t.upsellId)}});n.append(r,c),s.append(n),_vagroNotification.NotificationCount.add(1)}(t)})}},VAGARO_NEWS:{priority:9,renderer:function(t){let i='<div id="vagaroNews">';_vagroNotification.IsDormant()&&(t=e.grep(t,function(e){return!e.feature.includes("Shopping Cart")}));t?.forEach(e=>{i+=buildVNewsHtml(e)}),i+="</div>",""!=i&&(s.append(i),_vagroNotification.NotificationCount.add(t.length))}}},_vagroNotification.model.BusinessId=i.bId,_vagroNotification.model.UserId=i.uId,_vagroNotification.model.ApiV1URL=i.apiUrlV1;const a={merchantId:i.e_mId,userId:i.e_uId};let o,s,r;if(0===n.find(".notification-div").length){const t=document.createDocumentFragment(),i=e('\n                <div class="notitop-bar clearfix notitop-headerbar">\n                    <div class="big-title-notification notitop-headerbar">Notifications</div>\n                    <a class="back-link-block notiback-link nt-hover-state" href="javascript:void(0)">\n                        <svg class="notificationback" width="16" height="16" viewBox="0 0 16 16" fill="none">\n                            <path d="M10.875 14.4375C10.6113 14.4375 10.377 14.3496 10.2012 14.1738L4.57617 8.54883C4.19531 8.19727 4.19531 7.58203 4.57617 7.23047L10.2012 1.60547C10.5527 1.22461 11.168 1.22461 11.5195 1.60547C11.9004 1.95703 11.9004 2.57227 11.5195 2.92383L6.56836 7.875L11.5195 12.8555C11.9004 13.207 11.9004 13.8223 11.5195 14.1738C11.3438 14.3496 11.1094 14.4375 10.875 14.4375Z" fill="#333333"/>\n                        </svg>\n                    </a>\n                    <a class="noticloseicon font-awesome-normal noticlose-link noticloseicon nt-hover-state" href="javascript:void(0)" onclick="closeNotification()">\n                        <svg class="notificationclose" width="10" height="11" viewBox="0 0 10 11" fill="none">\n                            <path d="M9.39453 8.48047C9.77539 8.83203 9.77539 9.44727 9.39453 9.79883C9.21875 9.97461 8.98438 10.0625 8.75 10.0625C8.48633 10.0625 8.25195 9.97461 8.07617 9.79883L5 6.72266L1.89453 9.79883C1.71875 9.97461 1.48438 10.0625 1.25 10.0625C0.986328 10.0625 0.751953 9.97461 0.576172 9.79883C0.195312 9.44727 0.195312 8.83203 0.576172 8.48047L3.65234 5.375L0.576172 2.29883C0.195312 1.94727 0.195312 1.33203 0.576172 0.980469C0.927734 0.599609 1.54297 0.599609 1.89453 0.980469L5 4.05664L8.07617 0.980469C8.42773 0.599609 9.04297 0.599609 9.39453 0.980469C9.77539 1.33203 9.77539 1.94727 9.39453 2.29883L6.31836 5.4043L9.39453 8.48047Z" fill="#333333"/>\n                        </svg>\n                    </a>\n                    <a class="back-link-profile nt-back-control nt-hover-state" style="display:none" href="javascript:void(0)" onclick="_vagroNotification.backBusinessProfile_OnClick()"></a>\n                </div>\n            '),a=e('\n                 <div id="divacceptappointmentsuccess" style="display: none">\n                <div class="accepted-div successs-check" id="acceptappointment" style="display: block;">\n                    <div class="accepted-div-inner">\n                        <img class="accepted-checkmark animated bounceIn" src="https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/accepte-checkmark.png" width="68" alt="Accept" />\n                        <img class="denied-checkmark animated bounceIn" style="display: none" src="https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/deny-appointment-light.png" width="68" alt="Deny" />\n                        <div class="accepted-notification accept-success">Accepted</div>\n                        <div class="accepted-notification uploaded-success">Uploaded</div>\n                    </div>\n                </div>\n            </div>\n            ');o=e('<div class="notification-div clearfix waitlist-wrap"><div id="divNotiLoadder" style="display: none;" class="loaderNew loaderNew-notification">\n                            <div class="loader-imgNew"></div>\n                        </div></div>'),r=e('<div class="notification-inner"></div>'),s=e('<div class="notification-card-container clearfix"></div>'),o.append(i),o.append(a),r.append(s),o.append(r),t.appendChild(o[0]),n.append(t);const c=e('<div class="modal modal-bootstrapcommon fade pto-approve-request-modal" id="ptorequestdecline"  role="dialog" data-keyboard="false" style="display:none;">\n                            <div class="modal-dialog">\n                                <div class="modal-content">\n                                    <div class="modal-header">\n                                        <button type="button" class="close" aria-hidden="true" data-dismiss="modal">&#xf00d;</button>\n                                        <h4 class="modal-title">Decline Time Off Request</h4>\n                                    </div>\n                                    <div class="modal-body">\n                                        <div>\n                                            <div class="formLabel">Reason (This will be shared with employee):</div>\n                                            <div class="NewDesignChange">\n                                                <textarea row="2" col="10" maxlength="1000" id="txtdenyReason" class="textarea-type1 apstextareaFullWidth pto-reason-textarea" placeholder="Enter reason for decline" onblur="_vagroNotification.DenyRequestValidation();"></textarea>\n                                            </div>\n                                            <div id="divDenyReasonMsg" style="display: none;" class="requiredErrorText"></div>\n                                        </div>\n                                    </div>\n                                    <div class="modal-footer">\n                                        <button type="button" class="btn btn-default btn-text" onclick="_vagroNotification.CancelApproveDenyRequest(2);">Cancel</button>\n                                        <button type="button" class="btn btn-primary btn-text" id="btnDenyPTO" onclick="_vagroNotification.ApproveDenyRequest(2)">Decline</button>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>'),l=e('<div class="modal modal-bootstrapcommon fade pto-approve-request-modal vagaro-PTOModal" id="ptorequestapprove"  role="dialog" data-backdrop="static" data-keyboard="false" style="display:none;">\n                        <div class="modal-dialog">\n                            <div class="modal-content">\n                                <div class="modal-header">\n                                    <button type="button" class="close" aria-hidden="true" data-dismiss="modal">&#xf00d;</button>\n                                    <h4 class="modal-title">Approve Time Off Request</h4>\n                                </div>\n                                <div class="modal-body">\n                                    <div class="modal-desc">Are you sure you want to accept the time off request by <label id="lblempname"></label>?</div>\n                                       <div class="timeoff-summary ptotimeoffsummary">\n                                           <div class="formLabel"><span>Time Off Summary:</span></div>\n                                           <table class="tabelGrid">\n                                               <tbody>  \n                                                   <tr>\n                                                       <td width="70%">Current Balance</td>\n                                                       <td class="text-right"><span class="Spantd" id="ntDisplayCurrentBalance">0</span></td>\n                                                       <td class="text-right"><span id="ntDisplayCurrentBalancemn">0</span></td>\n                                                   </tr>\n                                                   <tr>\n                                                       <td width="70%">Hours Requested</td>\n                                                       <td class="text-right"><span class="Spantd" id="ntDisplayRequestBalance">0</span></td>\n                                                       <td class="text-right"><span id="ntDisplayRequestBalancemn">0</span></td>\n                                                   </tr>\n                                                   <tr>\n                                                       <td width="70%">Future Approved Hours</td>\n                                                       <td class="text-right"><span class="Spantd" id="ntDisplayFutureApproveBalance">0</span></td>\n                                                       <td class="text-right"><span id="ntDisplayFutureApproveBalancemn">0</span></td>\n                                                   </tr>\n                                                   <tr class="bg-totaltr">\n                                                       <td width="70%">Total Hours Remaining</td>\n                                                       <td class="text-right"><span class="Spantd" id="ntDisplayRemainingBalance">0</span></td>\n                                                       <td class="text-right"><span id="ntDisplayRemainingBalancemn">0</span></td>\n                                                   </tr>\n                                               </tbody>\n                                           </table>\n                                       </div>\n                                </div>\n                                <div class="modal-footer">\n                                    <button type="button" class="btn btn-default btn-text" onclick="_vagroNotification.CancelApproveDenyRequest(1);">Cancel</button>\n                                    <button type="button" class="btn btn-primary btn-text" data-dismiss="modal" id="btnApprovePTO" onclick="_vagroNotification.ApproveDenyRequest(1)">Approve</button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>'),d=e('<div class="modal modal-bootstrapcommon fade pto-approve-request-modal vagaro-PTOModal" id="npPtoRunOffcyclePayroll" role="dialog" data-backdrop="static" data-keyboard="false" style="display: none;">\n                      <div class="modal-dialog">\n                          <div class="modal-content">\n                              <div class="modal-header">\n                                  <button type="button" class="close" aria-hidden="true" data-dismiss="modal">&#xf00d;</button>\n                                  <h4 class="modal-title">Run Off-Cycle Payroll</h4>\n                              </div>\n                              <div class="modal-body">\n                                  <div class="modal-desc">You have already run payroll for this pay period, therefore <label id="nplblptoempnm"></label> did not receive payment for their PTO request. To ensure your employee is paid for their approved PTO request, you will need to run an Off-Cycle Payroll.\n                                     </div>             \n                              </div>\n                              <div class="modal-footer">\n                                  <button type="button" class="btn btn-default btn-text" onclick="_vagroNotification.CancelRunOffcyclePopup();">Back</button>\n                                  <button type="button" class="btn btn-primary btn-text" data-dismiss="modal" id="npbtcalRunOffcyclePTO" onclick="_vagroNotification.RunOffcyclePayroll()">Run Off-Cycle Payroll</button>\n                              </div>\n                          </div>\n                      </div>\n                  </div>');if(n.append(c),n.append(l),n.append(d),e("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack){const t=e('<div id="dvNotificationPanelRequestTransferUserControl" style="display: none;"></div>\n                            <div id="dvNotificationPanelFreeTrialDisabledAlert" style="display: none;"></div>');n.append(t)}}else s=n.find(".notification-card-container"),s.empty();MobileNotifictionDiv=function(){if(e("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack){const t=e('<div class="notification-card-cont clearfix" id="divMobileNotification">\n                <div class="notification-card notifipaddingleft clearfix mobprocardpadrightarrow">\n                    <div class="notif-image-div paddingleft0">\n                        <div class="alert-notification-circle small">\n                            <div class="font-awesome-5pro-light">&#xf0f3;</div>\n                            <div class="alert-number-container small">\n                                <div class="notification-number">0</div>\n                            </div>\n                        </div>\n                        <div class="notif-text-div">\n                            <div class="notification-title mobilenotialign">Notifications</div>\n                        </div>\n                    </div>\n                    <div class="profile-status-parent-div">\n                        <a class="notification-link show-pending-notification mobprorightarow" onclick="sendMobileCallBack(2)" href="javascript:void(0)">View</a>\n                    </div>\n                </div>\n            </div>');s.append(t)}},callApi=function(e,t,i,n,o,s){var r=new vagaro.ajax;r.datamodel.Token=e,r.datamodel.MethodType=i,r.datamodel.data=t,r.datamodel.Headers=a,void 0!==s&&(r.datamodel.async=s),r.datamodel.callback=n,r.datamodel.Error=o,r.CallV2API()},_vagroNotification.init=function(){const e={type:0,platform:"undefined"==typeof glbPlatform?"5":glbPlatform,cookiesValues:_vagroNotification.getCookie(_vagroNotification.storageKey.FeatureCookieName)};callApi(_vagroNotification.ApiURLEnum.GetNotifications,e,_vagroNotification.APIMethodType.POST,handleNotificationSuccess,handleNotificationFail)},showHideNotification=function(){if(0==_vagroNotification.isOpenPanel()){n.find(".notification-div").addClass("notification-open");var t=e(".notification-div");e(".big-title-notification",t).html("Notifications"),e(".notification-div").removeClass("pendingAppOpen"),e(".notification-div").removeClass("waitListOpen"),_vagroNotification.LocalStorageUtil.get(_vagroNotification.storageKey.NotiFirstOpen)||_vagroNotification.LocalStorageUtil.set(_vagroNotification.storageKey.NotiFirstOpen,"true")}else closeNotification()},window.closeNotification=function(){n.find(".notification-div").removeClass("notification-open").removeClass("pendingAppOpen"),n.find(".notification-div").removeClass("notification-open").removeClass("waitListOpen"),e(".notification-card-container").fadeIn(600)},handleNotificationSuccess=function(e){200===e.status&&1e3===e.responseCode&&(_vagroNotification.LocalStorageUtil.set(_vagroNotification.storageKey.NotificationSyncTime,new Date),_vagroNotification.LoadRequiredJS(),processNotifications(e))},processNotifications=function(e){_vagroNotification.NotificationCount.clear(),s.empty();var t=e.data;if(_vagroNotification.isNullOrUndefineOrBlank(t))return;initModel(t);const i=[];Array.isArray(t?.vNews)&&t.vNews.length>0&&i.push({type:"VAGARO_NEWS",data:e.data?.vNews}),0==_vagroNotification.isNullOrUndefineOrBlank(t.bizProg)&&(i.push({type:"BUSINESS_PROGRESS",data:t.bizProg}),t.bizProg.trialDaysLeft>0&&i.push({type:"FREE_TRIAL",data:t.bizProg})),0==_vagroNotification.isNullOrUndefineOrBlank(t.recFeat)&&i.push({type:"RECOMMENDED_FEATURE",data:t.recFeat}),i.push({type:"VMS_NOTIFICATION",data:t}),i.push({type:"GUSTO_NOTIFICATION",data:t}),processPendingNotificationData(e,i),i.sort((e,t)=>_vagroNotification.NotificationTypes[e.type].priority-_vagroNotification.NotificationTypes[t.type].priority),i.forEach(e=>{(0,_vagroNotification.NotificationTypes[e.type].renderer)(e.data)}),0===i.length&&s.append('<div class="notification">🎉 No new notifications!</div>'),(_vagroNotification.isFirstTimeLoad()||1==_vagroNotification.model.ClickOnBell)&&(showHideNotification(),_vagroNotification.model.ClickOnBell=!1)},processPendingNotificationData=function(e,t){let i=e.data?.pendNotif;if((i?.siteReview||_vagroNotification.model.IsWebsiteReviewShow)&&t.push({type:"WEBSITE_REVIEW",data:{cdnImagePath:_vagroNotification.model.CDNImageUrl,amount:"50"}}),!_vagroNotification.isNullOrUndefineOrBlank(i?.bizProfileApprovals)&&i?.bizProfileApprovals.length>0){1==i.bizProfileApprovals.some(e=>{const t="5"===_vagroNotification.model.UserType,i=_vagroNotification.model.UserId==e.serviceProviderId;return 1===e.requestType&&t||1!==e.requestType&&(i&&!t||t)})&&t.push({type:"TRANSFERREQUESTAPPROVAL_NOTIFICATION",data:i?.bizProfileApprovals})}t.push({type:"COMMON_NOTIFICATION",data:i})},initModel=function(e){_vagroNotification.model.CountryId=e.countryId,_vagroNotification.model.CurrencySymbol=e.currencySymbol,_vagroNotification.model.UserType=e.userType,_vagroNotification.model.IsAdmin="6"==e.userType,_vagroNotification.model.TaxInfo=e.taxInfo,_vagroNotification.model.Isdormant=e.isdormant,_vagroNotification.model.SalonDateTime=e.salonDateTime,_vagroNotification.model.BizDetail=e.bizDetails,_vagroNotification.model.CDNImageUrl=e.cdnImageUrl,_vagroNotification.model.RoleRights=0==_vagroNotification.isNullOrUndefineOrBlank(e.roleRights)?_vagroNotification.safeJsonParse(e.roleRights):[]},handleNotificationFail=function(e){console.error("API Error:",e)},buildVNewsHtml=function(e){const t=`liFeatureDetails_${e.featureId||e.spNotificationId||0}`,i=e.bgColor?`style="color:${e.bgColor}!important;"`:"",n=!!e.photo,a=`<div class='${n?"newsftrcloseBtn upsellnoti-closebtn":"upsellnoti-whiteclosebtn"} font-awesome-normal-pro' onclick='_vagroNotification.hideFeatureFromList(${e.featureId}, "${e.spNotificationId}")'>&#xf00d;</div>`;return`\n                <div class='notification-card-cont clearfix' id='${t}' ${i}>\n                    <div class='${e.bgColor?"emergency-red":""} notification-card notifipaddingleft clearfix'>\n                        <div class='mobinnercarpadside padding-bottom12 relative-position'>\n                            ${n?`\n                                <div class='upsellnoti-img'>\n                                    <div class='upsellnoti-fetured-img' style="background-image:url('${e.photo}')!important">\n                                        <img src='https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/bignotiplaceholder.png' class='notiblockPlaceholder'>\n                                    </div>\n                                    ${a}\n                                </div>\n                            `:a}\n\n                            <div class='notification-title' ${i}>${e.feature}</div>\n                            <div class='notification-text' ${i}>${e.desc}</div>\n\n                            ${renderVNewsLink(e.tryLink,e.tryMobiLinkId,e.tryLinkLabel,e.tryMobiLinkVal,e.tryDeviceChk,2,e.featureId,e.link||e.mobiLink)}\n                            ${renderVNewsLink(e.link,e.mobiLink,e.linkLable,e.mobiLinkVal,e.deviceChk,1,e.featureId,e.tryLink||e.tryMobiLinkId)}\n                        </div>\n                    </div>\n                </div>\n            `},renderVNewsLink=function(e,t,i,n,a,o,s,r){if(!e&&!t)return"";const c=t||e;return`\n                <a class="${!r||((i?.length||0)>18||(r?.length||0)>18)?"notification-link mobfullnotifi-link":"notification-link"}" href="javascript:void(0);"\n                   onclick="_vagroNotification.updateFeatureLinkCounter('${s}', ${o});\n                            _vagroNotification.vNewsReDirection(${2===o?0:1}, '${c}', '${n||""}', '${a||""}')">\n                    ${i||""}\n                </a>\n            `},_vagroNotification.vNewsReDirection=function(e,t,i,n){if("function"==typeof sendMobileCallBack&&null!=i&&""!==i){var a={message:t,deviceCheck:n};sendMobileCallBack(_vagroNotification.MobileNotType.VagaroNewsRedirect,i,a)}else 0===e?location.href=t:window.open(t,"_blank")},_vagroNotification.updateFeatureLinkCounter=function(e,t){if(1*e>0){var i={FeatureID:e,UpdateFlag:t};callApi(_vagroNotification.ApiURLEnum.UpdateFeatureLinkCounter,i,_vagroNotification.APIMethodType.POST,function(e){},function(e){})}},_vagroNotification.hideFeatureFromList=function(t,i){null!=i&&"null"!=i&&i.trim().length>0&&callApi(_vagroNotification.ApiURLEnum.RemoveInAppNotifications+"/"+i,{},_vagroNotification.APIMethodType.PUT,function(e){200===e.status&&e.responseCode},function(e){});var n=0==t?i:t;e("#liFeatureDetails_"+n).animate({opacity:0},500,function(){e("#liFeatureDetails_"+n).slideUp()}),(0!=t||i&&i.length>0)&&_vagroNotification.setCookiesForFeaturesAfterRemove(t),"function"==typeof sendMobileCallBack&&sendMobileCallBack(_vagroNotification.MobileNotType.DecreaseORIncreaseBadgeCount,-1)},_vagroNotification.setCookiesForFeaturesAfterRemove=function(e){var t=_vagroNotification.getCookie(_vagroNotification.storageKey.FeatureCookieName);null!=t&&""!=t&&(e=e+","+t);var i=new Date;i.setTime(i.getTime()+31536e6);var n="expires="+i.toUTCString(),a=_vagroNotification.storageKey.FeatureCookieName+"="+e+"; path=/;"+n;return document.cookie=a,_vagroNotification.NotificationCount.remove(1),!1},_vagroNotification.openReview=function(){_vagroNotification.model.IsWebsiteReviewShow=!0,e("#lnkForNewFeature").click()},_vagroNotification.webReviewYes=function(){null!=_vagroNotification.model.CountryId&&2==_vagroNotification.model.CountryId&&e("#currencySymbol").text("£50"),_vagroNotification.getPlatformToBeDisplayed(),e("body").hasClass("pronotidevice")?(sendMobileCallBack(_vagroNotification.MobileNotType.MobileReviewCall),_vagroNotification.saveWebsiteReview(1)):(e(".notification-div").addClass("reviewcapterra-open"),e(".notification-div").removeClass("reviewgetapp-open"),e(".notification-card-step1").fadeOut(600))},_vagroNotification.reviewMahNo=function(t){e(".notification-div").removeClass("reviewcapterra-open"),e(".notification-div").addClass("reviewgetapp-open"),e(".notification-card-step1").fadeOut(600),e("#txtWebsiteReview").val(""),e("#txtWebsiteReview").removeClass("errorInput"),e("#btnSaveReview").data("reviewtype",t),_vagroNotification.limitTextForReviewtext()},_vagroNotification.reviewDismiss=function(t){e("#btnSaveReview").data("reviewtype",t),_vagroNotification.saveWebsiteReview(4),e("#divwebsitereview").fadeOut(200)},_vagroNotification.limitTextForReviewtext=function(){var t=e("#txtWebsiteReview"),i=t.val().length;i>1e3?t.val(t.val().substring(0,1e3)):e("#spanreviewtextLmtCount").html(1e3-i)},_vagroNotification.getPlatformToBeDisplayed=function(){let e=!1;if(void 0===localStorage.ReviewPlatformData)e=!0;else{if(JSON.parse(localStorage.ReviewPlatformData).storedDate===(new Date).toLocaleDateString())return void _vagroNotification.calculatePlatformToBeDisplayed();e=!0}e&&callApi(_vagroNotification.ApiURLEnum.GetReviewPalatformData,null,_vagroNotification.APIMethodType.GET,function(e){if(200===e.status&&1e3===e.responseCode){let t=[];switch(_vagroNotification.model.CountryId){case _vagroNotification.Countries.UnitedStatesofAmerica:t=e.data.us;break;case _vagroNotification.Countries.UnitedKingdom:t=e.data.uk;break;case _vagroNotification.Countries.Canada:t=e.data.canada;break;case _vagroNotification.Countries.Australia:t=e.data.australia;break;default:return null}obj={ReviewPlatformData:JSON.stringify(t),storedDate:(new Date).toLocaleDateString()},localStorage.ReviewPlatformData=JSON.stringify(obj),_vagroNotification.calculatePlatformToBeDisplayed()}},function(e){})},_vagroNotification.calculatePlatformToBeDisplayed=function(){let e=JSON.parse(localStorage.ReviewPlatformData),t=JSON.parse(e.ReviewPlatformData),i=0,n=null;for(var a=0;a<t.length;a++){var o=t[a],s=parseFloat(o.platformPercentage);if(s>0)i+=s,Math.random()<=s/i&&(n=o.platformName)}return _vagroNotification.getReviewButton(n),n},_vagroNotification.getReviewButton=function(t){e(".clsReviewSoftwareAdvice, .clsReviewGetapp, .clsReviewAppStore, .clsReviewG2, .clsTrustpilot, .clsReviewCapterra, .clsGoogleReview").addClass("showinmobproinline-block"),"G2"===t?e(".clsReviewG2").removeClass("showinmobproinline-block"):"Capterra"===t?e(".clsReviewCapterra").removeClass("showinmobproinline-block"):"GetApp"===t?e(".clsReviewGetapp").removeClass("showinmobproinline-block"):"SoftwareAdvice"===t?e(".clsReviewSoftwareAdvice").removeClass("showinmobproinline-block"):"Trustpilot"===t?e(".clsTrustpilot").removeClass("showinmobproinline-block"):"Google"===t&&e(".clsGoogleReview").removeClass("showinmobproinline-block")},_vagroNotification.saveWebsiteReview=function(t){if(""!=e("#txtWebsiteReview").val().trim()||2!=t){var i=0;0==t?(i=0,e("#txtWebsiteReview").val(""),window.open("https://www.softwareadvice.com/retail/vagaro-review/?step=1")):1==t?(i=1,e("#txtWebsiteReview").val(""),e("body").hasClass("pronotidevice")||window.open("https://www.getapp.com/industries-software/a/vagaro/reviews/write/")):2==t||4==t?i=e("#btnSaveReview").data("reviewtype"):5==t?(_vagroNotification.getG2State(),i=5):6==t?(window.open("http://www.capterra.com/spa-software/reviews/153752/Vagaro/Vagaro/new"),i=6):7==t?(_vagroNotification.getTrustPilot(),i=7):8==t&&(window.open("https://g.page/r/Cba2NDImUH5wEB0/review"),i=8);var n={reviewText:e("#txtWebsiteReview").val(),reviewType:i,device:"Website",businessName:e("#ctl00_lblBusiness").text()};callApi(_vagroNotification.ApiURLEnum.SaveWebsiteReview,n,_vagroNotification.APIMethodType.POST,_vagroNotification.saveReviewSuccess,function(e){}),2==t&&(e(".accepted-notification").html("Thanks for feedback"),e(".accepted-notification").removeAttr("style"),e(".denied-checkmark").hide(),e(".accepted-checkmark").show(),e("#divSaveReview").hide(),e("#divSaveSuccessreview").html(e("#divacceptappointmentsuccess").html()),e("#divSaveSuccessreview").removeAttr("style"))}else e("#txtWebsiteReview").addClass("errorInput")},_vagroNotification.savereviewSuccess=function(t){_vagroNotification.NotificationCount.remove(1),e("#divSaveSuccessreview").animate({opacity:0},2e3,function(){e("#divwebsitereview").fadeOut(200),e(".notification-inner").addClass("notification-innertop")})},_vagroNotification.reviewBack_OnClick=function(){e(".notification-div").removeClass("reviewcapterra-open"),e(".notification-div").removeClass("reviewgetapp-open"),e(".notification-div").removeClass("noreview-open"),e(".notification-card-step1").fadeIn(600)},_vagroNotification.getG2State=function(){callApi(_vagroNotification.ApiURLEnum.GetG2State,null,_vagroNotification.APIMethodType.GET,_vagroNotification.successG2State,function(e){console.log("Failed to get G2 State data")})},_vagroNotification.successG2State=function(e){if(200===e.status&&1e3===e.responseCode){var t="undefined"==typeof dataLayer||0==dataLayer.length?"":dataLayer[0].user_email,i="https://www.g2.com/partnerships/Vagaro/users/login.embed?state="+e.data+"&email="+t;window.open(i)}},_vagroNotification.getTrustPilot=function(){let t={email:"undefined"==typeof dataLayer||0==dataLayer.length?"":dataLayer[0].user_email,fullName:"undefined"==typeof dataLayer||0==dataLayer.length?"":dataLayer[0].user_name,inviteLink:""};switch(_vagroNotification.model.CountryId){case _vagroNotification.Countries.UnitedStatesofAmerica:t.locale="en-US";break;case _vagroNotification.Countries.UnitedKingdom:t.locale="en-GB";break;case _vagroNotification.Countries.Canada:t.locale="en-CA";break;case _vagroNotification.Countries.Australia:t.locale="en-AU";break;default:return null}callApi(_vagroNotification.ApiURLEnum.GetTrustPilotInviteLink,t,_vagroNotification.APIMethodType.POST,function(t){200===t.status&&1e3===t.responseCode?($url=e("<a/>"),$url.attr("href",t.data.inviteLink),$url.attr("target","_blank"),$url[0].click()):console.log("Failed to get TrustPilot Link")},function(e){console.log("Failed to get TrustPilot data")})},_vagroNotification.BusinessViewProgress_OnClick=function(){e(".back-link-profile").css("display","block"),e(".back-link-profile").fadeIn("fast"),e(".notification-busprofile-div").addClass("notification-busprofile-open"),e(".notification-div")[0].style.overflow="hidden"},_vagroNotification.backBusinessProfile_OnClick=function(){e(".back-link-profile").css("display","none"),e(".notification-busprofile-div").removeClass("notification-busprofile-open"),e(".notification-div").removeClass("waitListOpen"),e(".notification-div")[0].style.overflow="",e(".notification-card-container").show()};const c={BusinessDescriptionPro:function(){const e="/merchants/settings/business/profile?FromMenu=1&fromonbpanel=true";_vagroNotification.model.IsMobileWebView&&_vagroNotification.model.IsProApp?_vagroNotification.CallbackforIpad(101,e):_vagroNotification.model.IsMobileWebView?location.href=e:_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},FacilityInformationPro:function(){const e="/merchants/settings/business/facility?FromMenu=1&fromonbpanel=true";_vagroNotification.model.IsMobileWebView?location.href=e:_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},BusinessPhotoPro:function(){const e="/merchants/settings/lookandfeel/photogallery?FromMenu=1&fromonbpanel=true";_vagroNotification.model.IsMobileWebView?_vagroNotification.CallbackforMobile(31):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},ImportClientsPro:function(){const e="/merchants/settings/business/import?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?_vagroNotification.CallbackforMobile(2):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},ServiceClassMenuPro:function(){const e="/merchants/settings/thingswesell/service?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?_vagroNotification.CallbackforMobile(11):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},EmployeeLicensePro:function(){const e="/merchants/settings/employee/profile?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?location.href=e:_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},CreditCardMerchantPro:function(){const e="/merchants/settings/premiumfeature/creditcardprocessing?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?_vagroNotification.CallbackforMobile(17):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},FeatureYourBusinessPro:function(){const t="/merchants/settings/premiumfeature/integration?Type=GetFeatured&fromonbpanel=true&progress="+e("#FeatureYourBusinessPro").attr("value");_vagroNotification.model.IsMobileWebView?location.href=t:_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(t):location.href=t},BuildWebsitePro:function(){const e="/ShopOwner/ManageWebsite.aspx?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?_vagroNotification.CallbackforMobile(32):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},SchedulicityBusiness:function(){const e="https://info.vagaro.com/schedulicity-welcome?hidemenu=true";_vagroNotification.model.IsMobileWebView||_vagroNotification.model.IsTableWebView?sendMobileCallBack(_vagroNotification.MobileNotType.Schedulicity,e):location.href="/schwelcome"},DailyDealAnnouncePro:function(){const e="/ShopOwner/Support.aspx?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?_vagroNotification.CallbackforMobile(e,!0):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e},GustoIntegrationPro:function(){const e="/merchants/settings/gustointegration?fromonbpanel=true";_vagroNotification.model.IsMobileWebView?alert("Please go to Vagaro.com to configure payroll with Gusto."):_vagroNotification.model.IsTableWebView?_vagroNotification.CallbackforMobile(e):location.href=e}};function l(t){const{name:i="",title:n="",description:a="",buttons:o=[]}=t,s=e("<div>",{class:"notification-card-cont clearfix e-prescribe-notification-box-wrap",id:"ePrescribeNotificationCard"}),r=e("<div>",{class:"notification-card notifipaddingleft clearfix"}),c=e("<div>",{class:"upsellnoti-whiteclosebtn font-awesome-normal-pro",onclick:'_vagroNotification.CloseePrescribeNotification("ePrescribeNotificationCard")',text:""}),l=e("<div>",{class:"e-prescribe-notification-box"}).append(e("<img>",{src:"https://vagaro.azureedge.net/static/assets/e-prescribeLogo.png",alt:"",class:"panel_logoLightMode"})).append(e("<img>",{src:"https://vagaro.azureedge.net/static/assets/e-prescribeLogo-dark.png",alt:"",class:"panel_logoDarkMode"})).append(e("<h3>",{class:"notification-title"}).html(`🎉 Congratulations <span>${i}!</span>`)),d=e("<div>",{class:"notif-text-div notification-text"}).append(e("<div>",{class:"notification-title",text:n})).append(e("<div>",{class:"notification-text",text:a})),u=e("<div>",{class:"profile-status-parent-div"});return o.forEach(t=>{const i=e("<a>",{href:"javascript:void(0)",class:"notification-link viewprogress mobfullnotifi-link",text:t.text}).on("click",function(e){e.preventDefault(),"function"==typeof t.onClick&&t.onClick()});u.append(i)}),r.append(c,l,d,u),s.append(r),s}function d(t){let i="https://support.vagaro.com/hc/en-us/categories/40209046258843-E-Prescribe";if(t&&(i="/merchants/settings/premiumfeature/eprescribe?isFromEprescribeEmailSMS=2"),"function"==typeof sendMobileCallBack&&e("body").hasClass("pronotidevice"))if(t)i="merchants/settings/premiumfeature/eprescribe?isFromEprescribeEmailSMS=2|true",sendMobileCallBack(_vagroNotification.MobileNotType.ScriptSure,i);else{var n={message:i,deviceCheck:""};sendMobileCallBack(_vagroNotification.MobileNotType.VagaroNewsRedirect,901,n)}else window.open(i,"_blank")}function u(e){"ScriptSureLogin_notification_completed"===e.data.type&&callApi(_vagroNotification.ApiURLEnum.UnderReviewOfePrescribe,{},_vagroNotification.APIMethodType.PATCH,function(t){200===t.status&&1e3===t.responseCode&&null!=t.data&&(_vagroNotification.CloseePrescribeNotification("liePrescribeInvite"),window.location.href=e.data.fullOriginUrl+"?viewpopup=Activated")},function(e){})}_vagroNotification.RedirectSupportRecommFeaturePage=function(e){var t=_vagroNotification.model.DomainURL+"merchants/settings/premiumfeature/managesubscription/"+e;"function"==typeof sendMobileCallBack?(sendMobileCallBack(_vagroNotification.MobileNotType.FeatureSubscription,t),sendMobileCallBack(_vagroNotification.MobileNotType.FeatureSubscriptionNavigation,t)):location.href=t},_vagroNotification.DismissRecommendedFeature=function(t){if(_vagroNotification.model.IsAdmin)return!1;if(0==_vagroNotification.getRoleRightsByPage("FeatureSubscriptions.aspx").CanModify)return!1;var i={supportUpsellID:t,featureID:"",isActive:!1,isVagaroDriveActive:!1,statusID:0};callApi(_vagroNotification.ApiURLEnum.UpdateSupportRecommendedStatus,i,_vagroNotification.APIMethodType.POST,function(i){200===i.status&&1e3===i.responseCode&&(e("#divRecommFeatureNotification_"+t).remove(),_vagroNotification.NotificationCount.remove(1))},function(e){})},_vagroNotification.CloseePrescribeNotification=function(t){let i={device:"website",module:"scriptsure"};callApi(_vagroNotification.ApiURLEnum.CloseePrescribeNotification,i,_vagroNotification.APIMethodType.PATCH,function(i){200===i.status&&1e3===i.responseCode&&(e("#"+t).remove(),_vagroNotification.NotificationCount.remove(1))},function(e){})},_vagroNotification.GoToPendingForm=function(t){if(null!=t&&""!=t){var i="/merchants/forms/"+t+"/form?IsFormsEditMode=true";e("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack?sendMobileCallBack(_vagroNotification.MobileNotType.FormsManegment,t+"/form?IsFormsEditMode=true",null):location.href=i}},_vagroNotification.RentPageRedirect=function(t){0==t?e("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack?navigator.userAgent.match(/VagaroAndroidPhone/i)||navigator.userAgent.match(/iospro/i)&&navigator.userAgent.match(/iPhone/i)?sendMobileCallBack(_vagroNotification.MobileNotType.RentPageRedirect,"/merchants/reports/employees/employeerentfee?IsFailedPending=1",null):sendMobileCallBack(_vagroNotification.MobileNotType.EmployeesRentPageRedirect,_vagroNotification.model.DomainURL+"merchants/reports/employees/employeerentfee?IsFailedPending=1",null):location.href="/merchants/reports/employees/employeerentfee?IsFailedPending=1":e("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack?sendMobileCallBack(_vagroNotification.MobileNotType.SettingRentFees,"/merchants/settings/employee/rent",null):location.href="/merchants/settings/employee/rent"},_vagroNotification.isOpenPanel=function(){return!!n.find(".notification-div").hasClass("notification-open")},_vagroNotification.IsDormant=function(){return _vagroNotification.model.UserType!=_vagroNotification.UserTypeEnum.VagaroAdmin&&_vagroNotification.model.IsDormant},_vagroNotification.isNullOrUndefineOrBlank=function(e){return void 0===e||null==e||""==e||null==e},_vagroNotification.CallbackforMobile=function(e,t){if(null!=e&&""!=e)if(_vagroNotification.model.IsTableWebView||null!=t&&1==t){var i='{"navType": 102,"screenType": -1,"screenTitle" : "Business Progress","message": "'+_vagroNotification.model.DomainURL+e+'","messageType": -1,"action" : 0}';window.JSInterface.CallWSMethod(i)}else{i='{"navType": '+e+',"screenType": 0,"screenTitle" : "","message": "","messageType": 0,"action" : 0}';window.JSInterface.CallWSMethod(i)}},_vagroNotification.CallbackforIpad=function(e,t){var i='{"navType": '+e+',"screenType": 0,"screenTitle" : "Business Profile","message": "'+_vagroNotification.model.DomainURL+t+'","messageType": -1,"action" : 0}';window.JSInterface.CallWSMethod(i)},_vagroNotification.countryDateFormat=function(e,t,n){try{if("undefined"==e||null==e||""==e||"---"==e||"--"==e)return e;void 0!==n&&null!=n&&""!=n||(n=_vagroNotification.model.CountryId),2!=n&&(n=1);var a=i.countryDateFormat.find(function(e){return e.countryId===parseInt(n)&&e.dateFormatId===t});return null!=a&&""!=a&&a&&""!==a.dateFormat.trim()?"Invalid date"==moment(e).format(a.jsDateFormat)?e:moment(e).format(a.jsDateFormat):e.format("MMM dd, yyyy")}catch(t){console.error(t);try{return e.format("MMM dd, yyyy")}catch(t){return e}}},_vagroNotification.getCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var a=i[n];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""},_vagroNotification.FindInitials=function(e,t){var i=/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,n=["ASS","WTF","SEX","SUK","FUK","DIE","BUM","TIT","BCH","DAM","HAH","OUT"];if(null!=e&&""!=e){var a=(e=e.replace("s+","")).split(" "),o="";if(a.length>0){for(var s=0;s<a.length;s++){var r=a[s].substr(0,1);1!=i.test(r)&&r==r.toUpperCase()&&0==is_numeric(r)&&(o+=r)}o.length<=0&&(o=e.substr(0,1))}else o=a[0].substr(0,1);return o.length>=3?(o=o.substr(0,3),_vagroNotification.Arrcontains(n,o)&&(o=o.substr(0,o.length-1)),n=null,"SP"==t?o.substr(0,2).toUpperCase():o.toUpperCase()):o.toUpperCase()}return e},_vagroNotification.Arrcontains=function(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return!0;return!1},_vagroNotification.safeJsonParse=function(e,t=[]){try{const i=JSON.parse(e);return Array.isArray(i)?i:t}catch(e){return t}},_vagroNotification.getRoleRightsByPage=function(e){const t=_vagroNotification.model.RoleRights?.find(t=>t.PageName===e);return t||{CanView:!1,CanModify:!1}},_vagroNotification.decimalFormat=function(e){return parseFloat(e).toFixed(2)},_vagroNotification.formatDate=function(e,t){const i=new Date(e);if(isNaN(i))return"Invalid Date";const n=e=>e.toString().padStart(2,"0"),a={yyyy:i.getFullYear(),yy:i.getFullYear().toString().slice(-2),MMMM:["January","February","March","April","May","June","July","August","September","October","November","December"][i.getMonth()],MMM:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][i.getMonth()],MM:n(i.getMonth()+1),M:i.getMonth()+1,dd:n(i.getDate()),d:i.getDate(),HH:n(i.getHours()),H:i.getHours(),hh:n(i.getHours()%12||12),h:i.getHours()%12||12,mm:n(i.getMinutes()),m:i.getMinutes(),ss:n(i.getSeconds()),s:i.getSeconds(),tt:i.getHours()>=12?"PM":"AM",t:i.getHours()>=12?"P":"A"};return t.replace(/yyyy|yy|MMMM|MMM|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|tt|t/g,e=>a[e])},_vagroNotification.GetWindowHeight=function(){var t=parseInt(e(window).height()-170);return t>900&&(t=900),t},_vagroNotification.HideControl=function(t){e("#divDenyAppointmentPopup").hide(),e("#divDenyAppointmentPopup").html(""),1==t&&_vagroNotification.AcceptAppointmmentSuccess(2)},_vagroNotification.CallWSJSON=function(t,i,n,a){t=_vagroNotification.model.DomainURL+"WebServices/"+t,e.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:t,beforeSend:function(e){try{void 0!==keepAlive&&e.setRequestHeader("keepAlive",keepAlive),e.setRequestHeader("token1",vagaroOffLineTokens(1)),e.setRequestHeader("token2",vagaroOffLineTokens(2))}catch(e){}},data:i,dataType:"json",success:n,error:function(e,t,i){try{if(403===e.status)return alert("Your session is expired. Please reload your page."),void location.reload(!0);""!=a&&null!=a&&null!=a&&"function"==typeof a&&a(e,t,i)}catch(e){}}})},_vagroNotification.FormatPhoneByCountry=function(e,t){try{if(null!=e&&void 0!==e&&0!=e.length&&e.length>8){var i=e.replace(/\D/g,""),n={0:"(",3:") ",6:"-"};void 0!==t&&null!=t&&1*t>0&&(2==t&&10==i.length||4==t&&9==i.length)&&(i="0"+i),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<i.length;a++)e+=(n[a]||"")+i[a]}return e}catch(t){return e}},_vagroNotification.handleCalendarRefresh=function(){const e="undefined"!=typeof ChangeAppStatus&&null!==ChangeAppStatus&&ChangeAppStatus.IsNewCall(),t=window.location.href.toLowerCase().includes("/shopowner/calendar.aspx")||window.location.href.toLowerCase().includes("/merchants/calendar");e&&"undefined"!=typeof Scheduler&&null!==Scheduler&&"function"==typeof Scheduler.RefreshCalendar&&t?Scheduler.RefreshCalendar():!e&&"undefined"!=typeof RefreshCalendar&&t&&RefreshCalendar()},_vagroNotification.ShowHideDoneMessageCommon=function(t,i){void 0!==i&&""!=i||(i=4e3),e(".banner-success-master .text-block-28").html(t),e(".banner-success-master").addClass("showmsgTop"),setTimeout(function(){e(".banner-success-master").removeClass("showmsgTop")},i)},_vagroNotification.ShowHideWarningMessageCommon=function(t,i){void 0!==i&&""!=i||(i=4e3),e(".banner-warning-master .text-block-28").html(t),e(".banner-warning-master").addClass("showmsgTop"),setTimeout(function(){e(".banner-warning-master").removeClass("showmsgTop")},i)},_vagroNotification.ShowHideFailedMessageCommon=function(t,i){void 0!==i&&""!=i||(i=4e3),e(".banner-fail-master .text-block-28").html(t),e(".banner-fail-master").addClass("showmsgTop"),setTimeout(function(){e(".banner-fail-master").removeClass("showmsgTop")},i)},_vagroNotification.FailAjaxcall=function(e){"function"==typeof ShowLoadingPanel&&ShowLoadingPanel(!1),_vagroNotification.ShowHideWaitlistLoader(!1),console.log("faild to load data"),"undefined"!=typeof $icon&&$icon.data("clicked",!1)},_vagroNotification.MobileCallBackPendingCount=function(){if("function"==typeof sendMobileCallBack){var e={};e.newscount=_vagroNotification.NotificationCount.count,e.PendingAppointmentcount=_vagroNotification.NotificationCount.pendingAppCnt,e.Waitlistcount=0,e.PendingNotificationcount=0,e.PendingChargebackCount=0,e.PendingReview=0,e.glbFreereaderCount=0,e.glbVerifyAccountcount=0,e.glbCancelMerchantAccountCount=0,e.glbRecommendationCount=0,setTimeout(function(){sendMobileCallBack(_vagroNotification.MobileNotType.ShowBadgeCount,JSON.stringify(e).replace(/"/g,"'")),e.PendingAppointmentcount>0?_vagroNotification.model.glbMobileReturnCallback=1:0==e.PendingAppointmentcount&&(_vagroNotification.model.glbMobileReturnCallback=2)},700),setTimeout(function(){1==(navigator.userAgent.match(/Android/i)&&-1!=="4.1.7,4.1.6,4.1.5,4.1.8,".indexOf(_version.trim()+",")||navigator.userAgent.match(/iPhone|iPad|iPod/i)&&-1!=="3.9.4,3.9.3,3.9.2,".indexOf(_version.trim()+","))&&sendMobileCallBack(_vagroNotification.MobileNotType.AutoLogout)},2e3)}},_vagroNotification.LoadRequiredJS=function(){"function"==typeof e().modal==0&&e.getScript("/assets/js/bootstrap-modal-popup.js").then(function(){}),0==_vagroNotification.model.LoadMomentJS&&(window.location.href.includes("/merchants/settings/zoomvideo")?e.getScript("/assets/js/zoom/moment.2.29.1.min.js").then(function(){_vagroNotification.model.LoadMomentJS=!0}):e.getScript("/assets/js/moment.min.js").then(function(){_vagroNotification.model.LoadMomentJS=!0})),0==("undefined"!=typeof ChangeAppStatus)&&_vagroNotification.model.LoadCalSupportJS&&e.getScript("/assets/js/Calendar/vg-calendar-support.js").then(function(){"undefined"!=typeof isCallThisJS&&null!=isCallThisJS&&(isCallThisJS=!0,_vagroNotification.model.LoadCalSupportJS=!1)})},_vagroNotification.ShowHideLoadder=function(t){t?e("#divNotiLoadder").show():e("#divNotiLoadder").hide()},_vagroNotification.LoadNotification=function(){null===localStorage.getItem("notificationCount")||_vagroNotification.isFirstTimeLoad()||window.location.href.includes("MobileNotification.aspx")||window.location.href.includes("/merchants/calendar")&&_vagroNotification.NotificationCount.GetLastSyncTime()>120?_vagroNotification.init():_vagroNotification.NotificationCount.init()},_vagroNotification.isNotiificationPage()?_vagroNotification.LoadNotification():e("#spanFeature").hide(),e("#lnkForNewFeature").click(function(e){0==_vagroNotification.isOpenPanel()?window.location.href.includes("/merchants/calendar")||0==_vagroNotification.model.PanelOpened?(_vagroNotification.model.ClickOnBell=!0,_vagroNotification.model.PanelOpened=!0,_vagroNotification.init()):showHideNotification():closeNotification()}),e(".notiback-link").click(function(){var t=e(".notification-div");e(".big-title-notification",t).html("Notifications"),e(".notification-div").removeClass("pendingAppOpen"),e(".notification-div").removeClass("waitListOpen"),e(".notification-card-container").fadeIn(600),e(".uploaddocopen").length&&(e(".notification-div").removeClass("uploaddocopen"),e("body.pronotidevice, html.pronotideviceHtml").removeClass("height100")),e(".missinginfoopen").length&&(e(".notification-div").removeClass("missinginfoopen"),e("body.pronotidevice, html.pronotideviceHtml").removeClass("height100")),e("#divAssignToEmployee").removeClass("openslide"),e(".notification-div").removeClass("HeaderRemove")}),e(document).on("click",".back-link-profile",function(){e(".back-link-profile").css("display","none"),e(".notification-busprofile-div").removeClass("notification-busprofile-open"),e(".notification-div").removeClass("waitListOpen"),e(".notification-div")[0].style.overflow="",e(".notification-card-container").show()}),0==_vagroNotification.model.LoadFontAwesomeJS&&e.getScript("https://kit.fontawesome.com/8ff7c24b64.js").then(function(){_vagroNotification.model.LoadFontAwesomeJS=!0}),e(document).on("click","#wrapper",function(t){0==e(t.target).closest(".notification-div").length&&0==e(t.target).closest(".scheduler-progressbanner").length&&0==e(t.target).closest("#aWebsitereview").length&&0==e(t.target).closest("#spanFeature").length&&0==e(t.target).closest("#dvPendingAppointment").length&&0==e(t.target).closest(".disablenotificationhide").length&&0==e(t.target).closest(".paymentduepanel").length&&0==e(t.target).closest(".custom-notificationpopup").length&&"function"==typeof closeNotification&&closeNotification(),0==e(t.target).closest("#MyAccountmenuDiv").length&&0==e(t.target).closest(".nav-vg-myacc-n").length&&"function"==typeof closeMyprofile&&closeMyprofile(),0==e(t.target).closest(".selectbusiness.searchContainer").length&&0==e(t.target).closest("#opensearchdiv").length&&(e("#searchsalon-spas").hide().removeClass("active"),e("body > .selectbusiness.searchContainer").remove(),e("#opensearchdiv").removeClass("activeshow"))})}}(jQuery);const _pendingAppNotifications=function(){function e(e){const a=$("<div>",{class:"pending-appointmentsnoti clearfix",id:`div${e.appointmentId}`,"data-paidtype":e.paidType,"data-appointmentid":t(e)}),o=$("<div>",{class:"notification-card clearfix"}).append(function(e){const t=$("<div>",{class:"appointment-viewblk"}).append(function(e){const t=$("<div>",{class:"appointmobpropad"}).append(function(e){return[$("<div>",{class:"notification-title space-bottom-10 text-uppercase-title",text:i(e)}),$("<div>",{class:"notification-title price space-bottom-10",text:`${_vagroNotification.model.CurrencySymbol}${_vagroNotification.decimalFormat(e.price)}`})]}(e)).append(function(e){const t=1==e.eventType||7==e.eventType,i=`${e.serviceName} (${function(e){var t=new Date,i=new Date(t.getTime());e>0&&t.setMinutes(t.getMinutes()+e);var n=t-i,a=Math.floor(n/36e5),o=Math.floor(n%36e5/6e4);return a>0?o>0?a+" "+(a>1?"hrs":"hr")+" "+o+" "+(o>1?"mins":"min"):a+" "+(a>1?"hrs":"hr"):o+" "+(0===o||1===o?"min":"mins")}(e.duration)})`,a=$("<div>",{class:"notification-text"});t?(a.append(i),a.append(n(e,!0))):(a.append(`${i} `),a.append($("<i>",{class:"notify-cap-icon",html:"&#xf19d;"})),a.append(n(e,!1)));return a}(e)).append(function(e){if(!e.AddonsData||!e.AddonsData.length)return null;const t=$("<div>",{class:"notification-text"});return e.AddonsData.forEach(e=>{t.append($("<img>",{src:"https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/plus-gray-emailicon-black.png",alt:"",width:"14",style:"vertical-align:middle;"}),` ${e}<br />`)}),t}(e)).append(function(e){return $("<div>",{class:"notification-text",html:`with ${e.serviceProviderName}`})}(e)).append(function(e){return $("<div>",{class:"notification-text font-bold-text default-font-color",text:`${_vagroNotification.countryDateFormat(e.startTime,_vagroNotification.model.VagaroCountryDateFormat.SmallDate,_vagroNotification.model.CountryId)} at ${s(e.startTime)}`})}(e)).append(function(e){return $("<div>",{class:"notification-text space-top-bottom",text:`${e.noOfCancelations} Cancellations / ${e.noOfNoShows} No Shows`})}(e)).append(function(e){const t=$("<div>",{class:"cal-badge-row"});e.membershipName&&t.append(function(e){return $("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new badge-dark"}).append($("<svg>",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none"}).append($("<path>",{d:"M12.8333 1.5C13.4653 1.5 14 2.01562 14 2.625V10.875C14 11.5078 13.4653 12 12.8333 12H1.16667C0.510417 12 0 11.5078 0 10.875V2.625C0 2.01562 0.510417 1.5 1.16667 1.5H4.66667V3.75H9.33333V1.5H12.8333ZM7 5.25C6.125 5.25 5.44444 5.92969 5.44444 6.75C5.44444 7.59375 6.125 8.25 7 8.25C7.85069 8.25 8.55556 7.59375 8.55556 6.75C8.55556 5.92969 7.85069 5.25 7 5.25ZM9.26042 10.5C9.50347 10.5 9.72222 10.2656 9.625 10.0547C9.43056 9.44531 8.84722 9 8.16667 9H7.94792C7.65625 9.14062 7.34028 9.1875 7 9.1875C6.63542 9.1875 6.31944 9.14062 6.02778 9H5.83333C5.12847 9 4.54514 9.44531 4.35069 10.0547C4.25347 10.2656 4.47222 10.5 4.71528 10.5H9.26042ZM8.55556 0.75V3H5.44444V0.75C5.44444 0.351562 5.78472 0 6.22222 0H7.77778C8.19097 0 8.55556 0.351562 8.55556 0.75Z",fill:"#333333"}))).append($("<span>",{class:"vagaro-badge-package-width",text:e.membershipName}))}(e));e.noOfMembership>0&&t.append(function(e){return $("<div>",{class:"vgn-tooltip vgn-tooltip-top notification-tooltip",onmouseover:`_vagroNotification.MembershipNamesposition(${e.appointmentId})`}).append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new resIsymbol badge-dark",id:`notificationmemtooltip_${e.appointmentId}`,text:`+${e.noOfMembership}`}),$("<div>",{class:"vgn-tooltip-sms",text:e.membershipNames}))}(e));const i=$("<div>",{class:"packege-box-new"});e.packageName&&i.append(function(e){return $("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new badge-dark"}).append($("<svg>",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none"}).append($("<path>",{d:"M10.6945 3.2754L7.01144 3.74669L6.82843 3.72312C6.94281 3.51105 7.01144 3.2754 7.01144 3.0162C7.01144 2.19146 6.34802 1.5081 5.54735 1.5081C4.72381 1.5081 4.08327 2.19146 4.08327 3.0162C4.08327 3.15758 4.08327 3.25184 4.10614 3.36966L2.61918 3.18115C2.61918 3.13402 2.61918 3.08689 2.61918 3.0162C2.61918 1.36672 3.92313 0 5.54735 0C7.12582 0 8.42977 1.31959 8.45265 2.94551L9.27619 0.75405C9.48208 0.164948 10.1226 -0.141384 10.6716 0.0942563C11.2436 0.306333 11.541 0.966127 11.3122 1.53166L10.6945 3.2754ZM12.8678 7.98822V9.94403C12.8678 10.2975 12.639 10.6038 12.2959 10.6745L7.35458 11.947C7.12582 12.0177 6.87418 12.0177 6.64542 11.947L1.70413 10.6745C1.36099 10.6038 1.1551 10.2975 1.1551 9.94403V7.98822L4.06039 8.83652C4.70093 9.02504 5.38722 8.74227 5.73036 8.17673L7.01144 5.96171L8.26964 8.17673C8.61278 8.74227 9.29907 9.02504 9.93961 8.83652L12.8678 7.98822ZM1.40674 3.79381L7.01144 4.50074L12.5933 3.79381C12.7534 3.77025 12.9135 3.84094 12.9822 3.98233L13.9201 5.96171C14.126 6.38586 13.9201 6.88071 13.4626 7.02209L9.73372 8.10604C9.41345 8.20029 9.07031 8.08247 8.91017 7.77614L7.01144 4.50074L5.08983 7.77614C4.92969 8.08247 4.58655 8.20029 4.26628 8.10604L0.537439 7.02209C0.0799122 6.88071 -0.125975 6.38586 0.0799122 5.96171L1.01784 3.98233C1.08647 3.84094 1.2466 3.77025 1.40674 3.79381Z",fill:"#333333"}))).append($("<span>",{class:"vagaro-badge-package-width",text:e.packageName}))}(e));e.noOfPackage>0&&i.append(function(e){return $("<div>",{class:"vgn-tooltip vgn-tooltip-top notification-tooltip",onmouseover:`_vagroNotification.PackageNamesposition(${e.appointmentId})`}).append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new resIsymbol badge-dark",id:`notificationtooltip_${e.appointmentId}`,text:`+${e.noOfPackage}`}),$("<div>",{class:"vgn-tooltip-sms",text:e.packageNames}))}(e));return t.append(i),t}(e)).append(function(e){if(!e.comment||!e.comment.length)return null;const t=[],i=$("<span>",{class:"calWaitIcon"}).append($("<svg>",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}).append($("<path>",{d:"M4.25 3.3125C4.25 2.81445 4.66016 2.375 5.1875 2.375C5.68555 2.375 6.125 2.81445 6.125 3.3125V4.25H9.875V3.3125C9.875 2.81445 10.2852 2.375 10.8125 2.375C11.3105 2.375 11.75 2.81445 11.75 3.3125V4.25H13.1562C13.918 4.25 14.5625 4.89453 14.5625 5.65625V7.0625H1.4375V5.65625C1.4375 4.89453 2.05273 4.25 2.84375 4.25H4.25V3.3125ZM14.5625 15.9688C14.5625 16.7598 13.918 17.375 13.1562 17.375H2.84375C2.05273 17.375 1.4375 16.7598 1.4375 15.9688V8H14.5625V15.9688ZM4.95312 11.75H11.0469C11.4277 11.75 11.75 11.457 11.75 11.0469C11.75 10.666 11.4277 10.3438 11.0469 10.3438H4.95312C4.54297 10.3438 4.25 10.666 4.25 11.0469C4.25 11.457 4.54297 11.75 4.95312 11.75ZM4.95312 13.1562C4.54297 13.1562 4.25 13.4785 4.25 13.8594C4.25 14.2695 4.54297 14.5625 4.95312 14.5625H8.23438C8.61523 14.5625 8.9375 14.2695 8.9375 13.8594C8.9375 13.4785 8.61523 13.1562 8.23438 13.1562H4.95312Z",fill:"#333333"})));t.push($("<div>",{class:"notification-text topSpaceNotication has-more-element-wrap",id:`waitPenlistMore_${e.appointmentId}`}).append(i.clone()).append(`"${e.comment}"`)),t.push($("<div>",{class:"notification-text topSpaceNoticationHidden has-more-element-wrap",id:`waitPenlistHasMore_${e.appointmentId}`}).append(i.clone()).append(`"${e.comment}"`)),e.comment.length>69&&t.push($("<div>",{class:"more-div",id:`divPenMoreContent_${e.appointmentId}`,"aria-hidden":"true"}).append($("<a>",{id:`btnPenlistMore_${e.appointmentId}`,class:"more-gradient web-subheading-font-blue",href:"javascript:void(0);",text:"More",click:function(t){_vagroNotification.showMoreAppointmentRequestContent(e.appointmentId,t)}})));return t}(e));return t}(e)).append(function(e){const t=$("<div>",{class:"footer-button-wrap"});let n={};return n.AppID=e.appointmentId,n.BusinessID=e.businessId,n.ServiceID=e.serviceId,n.SPID=e.serviceProviderId,n.appDate=_vagroNotification.formatDate(e.startTime,"MMM-dd-yyyy"),n.CustomerID=e.customerId,n.CustName=i(e),n.businessPackageId=e.businessPackageId,n.AddonsIds=e.addonsIds,n.eventSessionAttendeesId=e.eventSessionAttendeesId,n.isWorkShop=e.isWorkShop,t.append($("<a>",{class:"notification-link accept-appoint",href:"javascript:void(0)",text:"Accept",click:()=>_vagroNotification.AcceptAppointment({AppointmentID:e.appointmentId,EventType:e.eventType,EventSessionAttendeesId:e.eventSessionAttendeesId,AcceptAll:0})})),t.append($("<a>",{class:"notification-link",href:"javascript:void(0)",text:"Reschedule",click:()=>{1==e.eventType||7==e.eventType?_vagroNotification.RescheduleAppointment(n):_vagroNotification.RescheduleClass(n)}})),t.append($("<a>",{class:"notification-link deny-link-danger",href:"javascript:void(0)",text:"Deny",click:()=>_vagroNotification.DenyAppointmentFromPendingApp(n)})),t}(e));return t}(e));return a.append(o),a}function t(e){return 1==e.eventType||7==e.eventType?`${e.appointmentId}_${e.eventType}`:`${e.eventSessionAttendeesId}_${e.eventType}`}function i(e){return e.firstName+" "+e.lastName}function n(e,t){if(t){if(e.paidType==_vagroNotification.PaidType.Prepay||e.paidType==_vagroNotification.PaidType.PaidWithMembership)return a();if(e.paidType==_vagroNotification.PaidType.Deposit)return o()}else{if(e.paidType==_vagroNotification.PaidType.FirstTranPrepayClass||e.paidType==_vagroNotification.PaidType.FirstTranPaidWithMembershipClass)return a();if(e.paidType==_vagroNotification.PaidType.FirstTranDepositClass)return o()}return null}function a(){return $("<div>",{class:"dlr-prey-icon prepay-paid-appt pre-pay-doller app-depo"}).append($("<i>",{class:"fa-dollar-sign font-awes-icon font-awes-text-900"}))}function o(){return $("<div>",{class:"prepay-paid-appt vagaro-deposit-bg bg-none-color",title:"Deposit"}).append($("<i>",{class:"vagaro-icons-deposit deposit-icon",html:"&#xE916;"}))}function s(e,t="hh:mm tt"){const i=new Date(e),n={hour12:t.includes("tt"),hour:"2-digit",minute:"2-digit"};return i.toLocaleTimeString("en-US",n)}function r(e){$("#divnotificationloader").show(),_AppointmentID=e.AppointmentID;let t="";const i=[],n=[];if(0==e.AcceptAll)e.EventType>1&&7!=e.EventType?(t=e.EventSessionAttendeesId+"_"+e.EventType,n.push(e.EventSessionAttendeesId)):(t=e.AppointmentID+"_"+e.EventType,i.push(e.AppointmentID));else{const e=$("#divPendingAppointmentlist");$(".pending-appointmentsnoti",e).each(function(e){const i=$(this).data("appointmentid");if(0==e){const e=i.split("_");e.length>0&&(_AppointmentID="2"==e[1]?$(this).attr("id").replace("div",""):e[0])}t+=","+i}),$("#divPendingAppointmentlist").animate({scrollTop:0},"slow")}if(1==e.EventType){const t=c({device:"Notification",appIdCSV:e.AppointmentID,eventType:e.EventType,UserId:e.UserId});t.businessId=e.BusinessId,t.isSendMailToCustomer=!0,function(e){e.action=_vagroNotification.AppActionEnum.Accept,e&&null==e.sGroup&&(e.sGroup="");const t=new vagaro.ajax;t.datamodel.Token="ChangeAppointmentStatus",t.datamodel.data=e,t.datamodel.callback=_vagroNotification.AcceptAppointmmentSuccess,t.datamodel.Error=function(e){},t.Post()}({appChangeData:t,action:_vagroNotification.AppStatusEnum.Accept})}else{const i={cAppointmentIDs:t,BusinessID:e.BusinessId};_vagroNotification.CallWSJSON("VagaroWebOffline.asmx/AcceptPendingAppointment",JSON.stringify(i),_vagroNotification.AcceptAppointmmentSuccess,_vagroNotification.FailAjaxcall)}}const c=function(e){return{iLoggedInUserID:e.UserId,device:e.device,denyComments:"",isCancelledByCustomer:!1,isSendMailToCustomer:!1,isFromMyAccount:!1,isSeries:0,recurringAppRuleId:0,selectedDate:null,isWorkShop:!1,appData:[{appointmentId:e.appIdCSV,appType:e.eventType}]}};return _vagroNotification.DenyAppointmentFromPendingApp=function(e){const t=window.location.href.includes("/merchants/calendar")?1:0;if(e.BusinessPackageID>0){const e=`The appointment has been attached with a ${BusinessPackageKeyWord}. Denying it will violate the ${BusinessPackageKeyWord}.\nAre you sure you want to continue?`;if(!confirm(e))return}const i={CustomerID:e.CustomerID,CustomerName:e.CustName,CustomerApptId:e.AppID,CustomerApptDate:e.appDate,cal:t};"2"===e.eventType||"3"===e.eventType?Object.assign(i,{IsAppointment:"0",evSssAtId:e.eventSessionAttendeesId,BusinessID:_vagroNotification.model.BusinessId,LoginUserid:_vagroNotification.model.UserId,isWorkShop:e.isWorkShop}):(i.IsAppointment="1",_vagroNotification.model.BusinessId>0&&(i.BusinessID=_vagroNotification.model.BusinessId)),_AppointmentID=e.AppID;ShowDynamicPopupForShopOwner(`/ShopOwner/DenyAppointmentsNew.aspx?${new URLSearchParams(i).toString()}`,_vagroNotification.GetWindowHeight(),990,"divDenyAppointmentPopup","",null,null,"denyAppPopupReponsive")},_vagroNotification.RescheduleAppointment=function(e){if(e.BusinessPackageID>0){const e=`The appointment has been attached with a ${BusinessPackageKeyWord}. Rescheduling it will violate the ${BusinessPackageKeyWord}.\nAre you sure you want to continue?`;if(!confirm(e))return}IsCallFromNotification=1,_AppointmentID=e.AppID,$("#divAppointmentPopup").html("");const t={BusinessID:e.BusinessID,AppointmentID:e.AppID,Mode:"MoveForward",IsReschedule:"true",ShowBook:"1",AppDate:e.appDate,StyleID:"",ServiceID:e.ServiceID,SPID:e.SPID,CustomerID:e.CustomerID,PageTital:"Re-Schedule Appointment"},i=$("#divPendingAppointmentlist").find(`#div${e.AppID}`).data("paidtype");[_vagroNotification.PaidType.Prepay,_vagroNotification.PaidType.PaidWithMembership,_vagroNotification.PaidType.Deposit].includes(i)&&(t.IsPaidAppt="true"),e.AddonsIds&&(t.AddonsIds=e.AddonsIds.toString()),e.BusinessPackageID>0&&(t.BusinessPackageID=e.BusinessPackageID),t.cal=window.location.href.includes("/merchants/calendar")?"1":"0",t.TaxData=_vagroNotification.model.TaxInfo;ShowDynamicPopupForShopOwner(`/ShopOwner/SearchAppointmentFromCalendar.aspx?${new URLSearchParams(t).toString()}`,_vagroNotification.GetWindowHeight()+50,1040,"divAppointmentPopup","Re-Schedule Appointment",null,null,"searchmoverebookpopupiPad")},_vagroNotification.RescheduleClass=function(e){$("#divAppointmentPopup").html("");const t=`Reschedule a ${"true"===e.isWorkShop?"Workshop":"Class"}`,i={BusinessID:e.BusinessID,Mode:"Reschedule",AppDate:e.appDate,AppTime:moment(e.appDate).format("HH:mm A"),StyleID:"",ServiceID:e.ServiceID,AppointmentID:e.AppID,SPID:e.SPID,CustomerID:e.CustomerID,AttendeesId:e.eventSessionAttendeesId,PageTital:t,cal:window.location.href.includes("/merchants/calendar")?"1":"0"},n=$("#divPendingAppointmentlist").find(`#div${e.AppID}`).data("paidtype");[_vagroNotification.PaidType.FirstTranPrepayClass,_vagroNotification.PaidType.FirstTranPaidWithMembershipClass,_vagroNotification.PaidType.FirstTranDepositClass].includes(n)&&(i.IsPaidAppt="true");ShowDynamicPopupForShopOwner(`/ShopOwner/SearchClassFromCalendar.aspx?${new URLSearchParams(i).toString()}`,_vagroNotification.GetWindowHeight()+50,1040,"divAppointmentPopup",t,null,null,"searchmoverebookpopupiPad")},_vagroNotification.AcceptAppointment=function(e){e.BusinessId=_vagroNotification.model.BusinessId,e.UserId=_vagroNotification.model.UserId,_pendingAppNotifications.AcceptAppointmentOrClass(e)},_vagroNotification.AcceptAllNotificaton=function(){const e=$("#divPendingAppointmentlist"),t=$(".pending-appointmentsnoti",e).length;swal({title:"",text:`Are you sure you want to accept ${t} pending appointment${t>1?"s":""}? This action cannot be undone.`,customClass:"sweet-alert-model text-left",confirmButtonColor:"#DD6B55",showCancelButton:!0,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"Accept Appointments",cancelButtonText:"Cancel",html:!0,animation:"slide-from-bottom"},function(e){e&&_vagroNotification.AcceptAppointment({AppointmentID:0,EventType:0,EventSessionAttendeesId:0,AcceptAll:1})}),setTimeout(function(){$(".gencutom-title").html("Accept All Pending Appointments")},100)},_vagroNotification.AcceptAppointmmentSuccess=function(e){switch(e){case 1:$(".accepted-notification").html("Reschedule").removeAttr("style"),$(".denied-checkmark").hide(),$(".accepted-checkmark").show();break;case 2:$(".accepted-notification").html("Denied").css("color","#eb6663"),$(".denied-checkmark").show(),$(".accepted-checkmark").hide();break;default:$(".accepted-notification").html("Accepted").removeAttr("style"),$(".denied-checkmark").hide(),$(".accepted-checkmark").show(),_vagroNotification.handleCalendarRefresh()}processAppointmentUpdate(),updatePendingAppointmentCount(e),$("#divnotificationloader").hide()},updatePendingAppointmentCount=function(e={}){const t=$("#liPendingAppointment .notification-number");let i=parseInt(t.text())||0;if(1===i)$("#liPendingAppointment").remove(),_vagroNotification.NotificationCount.remove(1),_vagroNotification.NotificationCount.removeIndividual(1);else{const n=e.appointmentStatusChange?.length||1;i-=n,i<=0?$("#liPendingAppointment").remove():(t.text(i),_vagroNotification.NotificationCount.remove(n),_vagroNotification.NotificationCount.removeIndividual(n))}},processAppointmentUpdate=function(){if("undefined"==typeof _AppointmentID||null===_AppointmentID||""===_AppointmentID.toString().trim())return;const e="#div"+_AppointmentID;$(e).children(".notification-card").html($("#divacceptappointmentsuccess").html()),$(e).animate({opacity:0},2e3,()=>{$(e).slideUp(),$(".notiback-link").click()})},{create:function(t){return e(t)},AcceptAppointmentOrClass:function(e){r(e)}}}(),_waitlistAppNotifications=function(){let e=1,t=2,i=3,n={Anytime:1,Morning:2,AfterNoon:3,Evening:4},a="Anytime",o="Morning",s="Afternoon",r="Evening";function c(t){const i=t,c=[],l=[];$.grep(i,function(t){try{if(!t.isAvailable)return void l.push(t);let i=!1;i=t.eventType!==e||function(e,t){let i=!1;const c=function(e){const t=moment(new Date(e))._d.getHours();return t<12?n.Morning:t<17?n.AfterNoon:n.Evening}(t),l=new Date(moment(new Date(t)).format("YYYY/MM/DD"));return $.grep(e.available.dates,function(t){if(i)return!1;const d=moment(new Date(t.strDate))._d;if(d<l)return;const u=d>l,p=t.interval.split(",");t.intervalsName="";const f=p.includes(n.Morning.toString()),h=p.includes(n.AfterNoon.toString()),m=p.includes(n.Evening.toString()),g=[];c===n.Morning||u?(f&&g.push(o),h&&g.push(s),m&&g.push(r)):c===n.AfterNoon?(h&&g.push(s),m&&g.push(r)):c===n.Evening&&m&&g.push(r),g.length>0&&(t.intervalsName=3===g.length?a:g.join(", ").trim(),i=!0,e.available.dates=[t])}),i}(t,_vagroNotification.model.SalonDateTime),i?c.push(t):(t.isAvailable=!1,l.push(t))}catch(e){}}),function(t,i){$("#availablewaitlist").empty(),$("#avltitle").toggle(t.length>0),t.length>0&&BindAvailableWaitlist(t);$("#unavailablewaitlist").empty(),$("#unavltitle").toggle(i.length>0),i.length>0&&function(t){if(!t||!t.length)return;const i=[];t.forEach(t=>{try{const n={EncWaitlistID:t.encWaitlistId,WaitlistID:t.waitlistID,UserID:t.userID,EventType:t.eventType,CustomerName:t.customerName,WaitlistComment:t.comment,NoShowCount:t.noShowCount,CancellationCount:t.cancellationCount,ServiceBundleID:t.serviceBundleID,BusinessPackageID:t.businessPackageID,WaitlistCustomerRights:_vagroNotification.getRoleRightsByPage("ManageCustomers.aspx").CanView,MultipleService:t.unavailable.length>1,MultipleServiceName:t.businessPackageID>0?t.serviceBundleName:"Multiple Services",MembershipName:t.membershipName,NoOfMembership:t.noOfMembership,MembershipNames:t.membershipNames,PackageName:t.packageName,NoOfPackage:t.noOfPackage,PackageNames:t.packageNames,ServiceBundleName:t.serviceBundleName,IsAvailable:t.isAvailable,TotalDuration:t.wtDuration,TotalPrice:t.totalPrice,ServiceDetails:[],isValidPhone:!1,CurrencySymbol:_vagroNotification.model.CurrencySymbol,txtButtonName:"Browse Availability"},c={CustomerID:t.userID,WaitlistID:t.waitlistID,BusinessID:t.businessID,BusinessPackageID:t.businessPackageID,appDate:"",IsAvailable:t.isAvailable,EventType:t.eventType,Detail:[],IsOutCall:t.isOutCall};n.CustomerCell="",null!=t.customerCell&&""!=t.customerCell.trim()&&"---"!=t.customerCell?(n.CustomerCell=_vagroNotification.FormatPhoneByCountry(t.customerCell,_vagroNotification.model.CountryId),n.isValidPhone=!0,n.CustomerCellNumber=t.customerCell):null!=t.dayPhone&&""!=t.dayPhone.trim()&&"---"!=t.dayPhone?null!=t.dayPhone.match(/^[0-9]+$/)?(n.CustomerCell=_vagroNotification.FormatPhoneByCountry(t.dayPhone,_vagroNotification.model.CountryId),n.isValidPhone=!0,n.CustomerCellNumber=t.dayPhone):n.CustomerCell=t.dayPhone:null!=t.nightPhone&&""!=t.nightPhone.trim()&&"---"!=t.nightPhone&&(null!=t.nightPhone.match(/^[0-9]+$/)?(n.CustomerCell=_vagroNotification.FormatPhoneByCountry(t.nightPhone,_vagroNotification.model.CountryId),n.isValidPhone=!0,n.CustomerCellNumber=t.nightPhone):n.CustomerCell=t.nightPhone);const l=[],d=[],u=t.unavailable[0]?.dateTimes||[];let p=[];t.unavailable.forEach(i=>{const f={WaitlistID:t.waitlistID,ServiceTitle:n.MultipleService?i.serviceTitle:`${i.serviceTitle} (${n.TotalDuration})`,AddonNames:i.addonNames?.split("|~|")||[],ServiceProvider:"with Any Provider",SubServiceProvider:[],subProviderCount:0,indexID:0,txtProvider:"Provider"},h=i.serviceProviders||[],m=h.map(e=>e.id);if(h.length){const e=h.length>1?`${i.serviceID}^${m.join(",")}`:`${i.serviceID}^${h[0].id}$${i.addOnIDs}`;l.push(e),d.push(i.addOnIDs),c.Detail.push({ServiceID:i.serviceID,SPID:h[0].id,SPIDs:h.length>1?m.join(","):h[0].id,ServiceAddOnIDs:i.addOnIDs,Comment:i.comment});const[t,n,...a]=h;f.ServiceProvider=1===h.length?` with ${t.name}`:"",f.subProviderCount=h.length,f.txtProvider=h.length>1?"Providers":"Provider",f.SubServiceProvider=a.map(e=>({SubProvider:e.name}))}else l.push(`${i.serviceID}^0`),c.Detail.push({ServiceID:i.serviceID,ServiceAddOnIDs:i.addOnIDs,SPID:0,Comment:i.comment});c.Comment=i.comment,n.ServiceDetails.push(f),u.length&&(t.eventType===e?c.appDate=moment(new Date(u[0].waitlistDate)).format("MMM D, YYYY"):(c.appDate=moment(new Date(u[0].waitlistDate)).format("YYYY-MM-DD HH:mm"),c.ServiceID=t.serviceID,c.appointmentIDs=t.waitlistClassDetails?.appointmentIDs),p=u.map(i=>{if(t.eventType===e){const e=i.slots.split(",").map(e=>{switch(e){case"1":return a;case"2":return o;case"3":return s;case"4":return r;default:return""}}).filter(Boolean).join(", ");return{ReqDate:`${_vagroNotification.countryDateFormat(i.waitlistDate,_vagroNotification.model.VagaroCountryDateFormat.SmallDateWithTime).split(" - ")[0]} at ${e}`}}return{ReqDate:_vagroNotification.countryDateFormat(i.waitlistDate,_vagroNotification.model.VagaroCountryDateFormat.SmallDateWithTime)}}))}),c.ServiceIDs=l.join("|"),c.AddonIDs=d.join("|");const[f,...h]=p;n.MainDate=f?.ReqDate,n.SubDates=h,n.DateCount=h.length,n.objJsonAvail=JSON.stringify(c),i.push(n)}catch(e){console.error("Error processing waitlist item:",e)}});const n=i.length;$("#unavaialblewlcnt").html(`${n} Customer${1!==n?"s":""} on Waitlist`),i.forEach(e=>{!function(e,t){if(!e||!t)return void console.error("Invalid parameters for renderUnavailableWaitlistItem");const i=$("<div>",{id:`dvWL${e.WaitlistID}`,class:"n-waitlist-card notifipaddingleft","data-servicetitle":e.ServiceDetails[0].ServiceTitle}),n=$("<div>",{class:"mobinnercarpadside padding-bottom12"});n.append($("<div>",{class:"notification-title price",text:`${e.CurrencySymbol}${_vagroNotification.decimalFormat(e.TotalPrice)}`})),n.append($("<div>",{class:"notification-title n-font-weight-500",text:e.CustomerName}));const a=$("<div>",{class:"notification-text"});e.MultipleService&&a.append($("<p>").text(`${e.MultipleServiceName} (${e.TotalDuration})`));a.append(function(e){const t=$("<div>");return(Array.isArray(e)?e:[e]).forEach(e=>{e&&(t.append($("<p>").text(e.ServiceTitle)),e.AddonNames&&e.AddonNames.length>0&&e.AddonNames.forEach(e=>{if(!e)return;const i=$("<div>").css({"margin-top":"4px","line-height":"1.4"});i.append(`\n                    <svg version="1.0" xmlns="http://www.w3.org/2000/svg" \n                         width="14px" height="14px" viewBox="0 0 48.000000 48.000000" \n                         preserveAspectRatio="xMidYMid meet" \n                         style="vertical-align:middle;margin-left:0px;">\n                        <g transform="translate(0.000000,48.000000) scale(0.100000,-0.100000)" \n                           fill="#000000" stroke="none">\n                            <path d="M145 451 c-148 -69 -182 -266 -64 -378 147 -139 389 -36 389 167 0\n                                    94 -57 179 -142 214 -50 21 -134 20 -183 -3z m183 -30 c72 -37 112 -102 112\n                                    -181 0 -113 -87 -200 -200 -200 -214 0 -277 282 -85 383 42 23 127 21 173 -2z">\n                            </path>\n                            <path d="M227 354 c-4 -4 -7 -27 -7 -50 l0 -43 -47 -3 c-35 -2 -48 -7 -48 -18\n                                    0 -11 13 -16 47 -18 l47 -3 3 -47 c2 -34 7 -47 18 -47 11 0 16 13 18 47 l3 47\n                                    47 3 c34 2 47 7 47 18 0 11 -13 16 -47 18 l-47 3 -3 46 c-3 44 -15 62 -31 47z">\n                            </path>\n                        </g>\n                    </svg>\n                    ${e}\n                    <br />\n                `),t.append(i)}),e.subProviderCount>1?t.append($("<p>").html(`<b>with ${e.subProviderCount} Service Providers</b>`)):e.ServiceProvider&&t.append($("<p>").text(e.ServiceProvider)))}),t}(e.ServiceDetails));const o=$("<span>",{class:"wldates",text:e.MainDate});e.DateCount>0&&o.append($("<span>",{class:"w-more-expand",id:`wl-more-expand${e.WaitlistID}`,text:`+${e.DateCount} more`,click:function(){return _vagroNotification.ShowMore(e.WaitlistID,e.DateCount),!1}}));if(a.append(o),n.append(a),e.DateCount>0){const t=$("<div>",{class:"notification-text",id:`w-contant-expand${e.WaitlistID}`,style:"display: none;"});t.append(function(e){if(Array.isArray(e))return e.map(e=>function(e){return`\n            <p>${e}</p>\n        `}(e.ReqDate)).join("");return""}(e.SubDates)),t.append($("<span>",{class:"w-more-expand",text:"Show Less",click:function(){return _vagroNotification.ShowMore(e.WaitlistID,e.DateCount),!1}})),n.append(t)}n.append($("<div>",{class:"notification-text topSpaceNotication top-space-normal",text:`${e.CancellationCount} Cancellations / ${e.NoShowCount} No Shows`}));const s=function(e){const t=$("<div>",{class:"cal-badge-row"});e.MembershipName&&t.append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new badge-dark"}).html(`\n            <svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">\n                <path d="M12.8333 1.5C13.4653 1.5 14 2.01562 14 2.625V10.875C14 11.5078 13.4653 12 12.8333 12H1.16667C0.510417 12 0 11.5078 0 10.875V2.625C0 2.01562 0.510417 1.5 1.16667 1.5H4.66667V3.75H9.33333V1.5H12.8333ZM7 5.25C6.125 5.25 5.44444 5.92969 5.44444 6.75C5.44444 7.59375 6.125 8.25 7 8.25C7.85069 8.25 8.55556 7.59375 8.55556 6.75C8.55556 5.92969 7.85069 5.25 7 5.25ZM9.26042 10.5C9.50347 10.5 9.72222 10.2656 9.625 10.0547C9.43056 9.44531 8.84722 9 8.16667 9H7.94792C7.65625 9.14062 7.34028 9.1875 7 9.1875C6.63542 9.1875 6.31944 9.14062 6.02778 9H5.83333C5.12847 9 4.54514 9.44531 4.35069 10.0547C4.25347 10.2656 4.47222 10.5 4.71528 10.5H9.26042ZM8.55556 0.75V3H5.44444V0.75C5.44444 0.351562 5.78472 0 6.22222 0H7.77778C8.19097 0 8.55556 0.351562 8.55556 0.75Z" fill="#333333"></path>\n            </svg>\n            <span class="vagaro-badge-package-width">${e.MembershipName}</span>\n        `));e.NoOfMembership>0&&t.append($("<div>",{class:"vgn-tooltip vgn-tooltip-top notification-tooltip",mouseover:`_vagroNotification.MembershipNamesposition(${e.WaitlistID})`}).html(`\n            <span class="vagaro-badge-icon calendar-vagaro-badge-new resIsymbol badge-dark" id="notificationmemtooltip_${e.WaitlistID}">+${e.NoOfMembership}</span>\n            <div class="vgn-tooltip-sms">${e.MembershipNames}</div>\n        `));const i=$("<div>",{class:"packege-box-new"});e.PackageName&&i.append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new badge-dark"}).html(`\n            <svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">\n                <path d="M10.6945 3.2754L7.01144 3.74669L6.82843 3.72312C6.94281 3.51105 7.01144 3.2754 7.01144 3.0162C7.01144 2.19146 6.34802 1.5081 5.54735 1.5081C4.72381 1.5081 4.08327 2.19146 4.08327 3.0162C4.08327 3.15758 4.08327 3.25184 4.10614 3.36966L2.61918 3.18115C2.61918 3.13402 2.61918 3.08689 2.61918 3.0162C2.61918 1.36672 3.92313 0 5.54735 0C7.12582 0 8.42977 1.31959 8.45265 2.94551L9.27619 0.75405C9.48208 0.164948 10.1226 -0.141384 10.6716 0.0942563C11.2436 0.306333 11.541 0.966127 11.3122 1.53166L10.6945 3.2754ZM12.8678 7.98822V9.94403C12.8678 10.2975 12.639 10.6038 12.2959 10.6745L7.35458 11.947C7.12582 12.0177 6.87418 12.0177 6.64542 11.947L1.70413 10.6745C1.36099 10.6038 1.1551 10.2975 1.1551 9.94403V7.98822L4.06039 8.83652C4.70093 9.02504 5.38722 8.74227 5.73036 8.17673L7.01144 5.96171L8.26964 8.17673C8.61278 8.74227 9.29907 9.02504 9.93961 8.83652L12.8678 7.98822ZM1.40674 3.79381L7.01144 4.50074L12.5933 3.79381C12.7534 3.77025 12.9135 3.84094 12.9822 3.98233L13.9201 5.96171C14.126 6.38586 13.9201 6.88071 13.4626 7.02209L9.73372 8.10604C9.41345 8.20029 9.07031 8.08247 8.91017 7.77614L7.01144 4.50074L5.08983 7.77614C4.92969 8.08247 4.58655 8.20029 4.26628 8.10604L0.537439 7.02209C0.0799122 6.88071 -0.125975 6.38586 0.0799122 5.96171L1.01784 3.98233C1.08647 3.84094 1.2466 3.77025 1.40674 3.79381Z" fill="#333333"></path>\n            </svg>\n            <span class="vagaro-badge-package-width">${e.PackageName}</span>\n        `));e.NoOfPackage>0&&i.append($("<div>",{class:"vgn-tooltip vgn-tooltip-top notification-tooltip",mouseover:`_vagroNotification.PackageNamesposition(${e.WaitlistID})`}).html(`\n            <span class="vagaro-badge-icon calendar-vagaro-badge-new resIsymbol badge-dark" id="notificationtooltip_${e.WaitlistID}">+${e.NoOfPackage}</span>\n            <div class="vgn-tooltip-sms">${e.PackageNames}</div>\n        `));return t.append(i),t}(e);if(n.append(s),e.WaitlistComment&&e.WaitlistComment.length>0){const t=$("<div>",{class:"notification-text topSpaceNotication has-more-element-wrap",id:`waitlistMore_${e.WaitlistID}`}).html(`\n            <span class="calWaitIcon">\n                <svg width="16" height="20" viewBox="0 0 16 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n                    <path d="M4.25 3.3125C4.25 2.81445 4.66016 2.375 5.1875 2.375C5.68555 2.375 6.125 2.81445 6.125 3.3125V4.25H9.875V3.3125C9.875 2.81445 10.2852 2.375 10.8125 2.375C11.3105 2.375 11.75 2.81445 11.75 3.3125V4.25H13.1562C13.918 4.25 14.5625 4.89453 14.5625 5.65625V7.0625H1.4375V5.65625C1.4375 4.89453 2.05273 4.25 2.84375 4.25H4.25V3.3125ZM14.5625 15.9688C14.5625 16.7598 13.918 17.375 13.1562 17.375H2.84375C2.05273 17.375 1.4375 16.7598 1.4375 15.9688V8H14.5625V15.9688ZM4.95312 11.75H11.0469C11.4277 11.75 11.75 11.457 11.75 11.0469C11.75 10.666 11.4277 10.3438 11.0469 10.3438H4.95312C4.54297 10.3438 4.25 10.666 4.25 11.0469C4.25 11.457 4.54297 11.75 4.95312 11.75ZM4.95312 13.1562C4.54297 13.1562 4.25 13.4785 4.25 13.8594C4.25 14.2695 4.54297 14.5625 4.95312 14.5625H8.23438C8.61523 14.5625 8.9375 14.2695 8.9375 13.8594C8.9375 13.4785 8.61523 13.1562 8.23438 13.1562H4.95312Z" fill="#333333"/>\n                </svg>\n            </span>\n            "${e.WaitlistComment}"\n        `);n.append(t),e.WaitlistComment.length>59&&(n.append($("<div>",{class:"notification-text topSpaceNotication topSpaceNoticationHidden has-more-element-wrap",id:`waitlistHasMore_${e.WaitlistID}`}).html(`\n                    <span class="calWaitIconcalWaitIcon">\n                        <svg width="16" height="20" viewBox="0 0 16 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n                            <path d="M4.25 3.3125C4.25 2.81445 4.66016 2.375 5.1875 2.375C5.68555 2.375 6.125 2.81445 6.125 3.3125V4.25H9.875V3.3125C9.875 2.81445 10.2852 2.375 10.8125 2.375C11.3105 2.375 11.75 2.81445 11.75 3.3125V4.25H13.1562C13.918 4.25 14.5625 4.89453 14.5625 5.65625V7.0625H1.4375V5.65625C1.4375 4.89453 2.05273 4.25 2.84375 4.25H4.25V3.3125ZM14.5625 15.9688C14.5625 16.7598 13.918 17.375 13.1562 17.375H2.84375C2.05273 17.375 1.4375 16.7598 1.4375 15.9688V8H14.5625V15.9688ZM4.95312 11.75H11.0469C11.4277 11.75 11.75 11.457 11.75 11.0469C11.75 10.666 11.4277 10.3438 11.0469 10.3438H4.95312C4.54297 10.3438 4.25 10.666 4.25 11.0469C4.25 11.457 4.54297 11.75 4.95312 11.75ZM4.95312 13.1562C4.54297 13.1562 4.25 13.4785 4.25 13.8594C4.25 14.2695 4.54297 14.5625 4.95312 14.5625H8.23438C8.61523 14.5625 8.9375 14.2695 8.9375 13.8594C8.9375 13.4785 8.61523 13.1562 8.23438 13.1562H4.95312Z" fill="#333333"/>\n                        </svg>\n                    </span>\n                    "${e.WaitlistComment}"\n                `)),n.append($("<div>",{class:"more-div",id:`divMoreContent_${e.WaitlistID}`,"aria-hidden":"true"}).append($("<a>",{id:`btnWaitlistMore_${e.WaitlistID}`,class:"more-gradient web-subheading-font-blue",href:"javascript:void(0);",text:"More",click:function(t){_vagroNotification.showMoreContentWaitList(e.WaitlistID,t)}}))))}const r=function(e){const t=$("<div>",{class:"footer-button-wrap"});e.WaitlistCustomerRights&&e.CustomerCell?(t.append($("<a>",{href:"javascript:void(0)",class:"notification-link",text:e.txtButtonName,click:function(){return _vagroNotification.BrowseAvailability(e.objJsonAvail),!1}})),e.isValidPhone?t.append($("<a>",{href:`tel:${e.CustomerCellNumber}`,class:"notification-link",text:`Call ${e.CustomerCell}`})):t.append($("<a>",{href:"javascript:void(0);",class:"notification-link",text:`Call ${e.CustomerCell}`})),t.append($("<a>",{href:"javascript:void(0);",class:"notification-link notifi-remove-link",text:"Remove",click:function(){return _vagroNotification.RemoveWaitlistAppointment(e.WaitlistID,e.EncWaitlistID),!1}}))):(t.append($("<a>",{href:"javascript:void(0)",class:"notification-link mobhalfnotifi-link",text:e.txtButtonName,click:function(){return _vagroNotification.BrowseAvailability(e.objJsonAvail),!1}})),t.append($("<a>",{href:"javascript:void(0);",class:"notification-link notifi-remove-link mobhalfnotifi-link",text:"Remove",click:function(){return _vagroNotification.RemoveWaitlistAppointment(e.WaitlistID,e.EncWaitlistID),!1}})));return t}(e);i.append(n),i.append(r),$(t).append(i)}(e,"#unavailablewaitlist")})}(i);$("#waitlistblock").toggle(t.length>0||i.length>0),0===t.length&&0===i.length&&($(".notification-card-container").fadeIn(600),$(".notification-div").removeClass("waitListOpen"))}(c,l),$("body").hasClass("pronotidevice")&&navigator.userAgent.match(/iPhone|iPad|iPod/i)&&($(".info-notifySent").on("touchstart",function(e){$(".info-notifySent .tooltiptext").removeClass("showtooltip"),$(this).find(".tooltiptext").addClass("showtooltip"),e.stopPropagation()}),$("#divWaitList").on("click",function(e){$(e.target).is(".tooltiptext")||$(".tooltiptext").removeClass("showtooltip")})),function(){if(""==$("#divWaitList").html())return;var e="5006||~||"+'{"navType": 0,"screenType": 0,"screenTitle": "Waitlist","message": "","messageType": 0}';navigator.userAgent.toLowerCase().indexOf("safari")<0&&navigator.userAgent.toLowerCase().indexOf("iphone")>-1?window.location="js-call:myObjectiveCFunction:"+e:navigator.userAgent.toLowerCase().indexOf("android")>-1&&null!=window.JSInterface&&window.JSInterface.CallWSMethod(e),$("#divwebsitereview").hide();var t=$(".notification-div");$(".big-title-notification",t).html("Waitlist"),$("#divWaitListPanel").show(),$(".notification-div").addClass("waitListOpen"),$(".notification-card-container").hide(),$(".notification-div").scrollTop(0)}()}function l(e){const t=$(document.createDocumentFragment());return Array.isArray(e)?e.forEach(e=>{t.append(d(e))}):e&&"object"==typeof e&&t.append(d(e)),t}function d(e){const t=$("<div>");return t.append($("<p>").text(e.ServiceTitle)),e.AddonNames&&e.AddonNames.length>0&&e.AddonNames.forEach(e=>{const i=$("<div>").css({"vertical-align":"middle","margin-left":"0px"}),n=$('<svg version="1.0" xmlns="http://www.w3.org/2000/svg" \n                         width = "14px" height = "14px" viewBox = "0 0 48.000000 48.000000" \n                         preserveAspectRatio = "xMidYMid meet" \n                         style = "vertical-align:middle;margin-left:0px;" >\n                    <g transform="translate(0.000000,48.000000) scale(0.100000,-0.100000)"\n                        fill="#000000" stroke="none">\n                        <path d="M145 451 c-148 -69 -182 -266 -64 -378 147 -139 389 -36 389 167 0\n                                    94 -57 179 -142 214 -50 21 -134 20 -183 -3z m183 -30 c72 -37 112 -102 112\n                                    -181 0 -113 -87 -200 -200 -200 -214 0 -277 282 -85 383 42 23 127 21 173 -2z">\n                        </path>\n                        <path d="M227 354 c-4 -4 -7 -27 -7 -50 l0 -43 -47 -3 c-35 -2 -48 -7 -48 -18\n                                    0 -11 13 -16 47 -18 l47 -3 3 -47 c2 -34 7 -47 18 -47 11 0 16 13 18 47 l3 47\n                                    47 3 c34 2 47 7 47 18 0 11 -13 16 -47 18 l-47 3 -3 46 c-3 44 -15 62 -31 47z">\n                        </path>\n                    </g>\n                    </svg >');i.append(n),i.append(document.createTextNode(` ${e}`)),i.append($("<br>")),t.append(i)}),e.subProviderCount>1?t.append($("<b>").text(`with ${e.subProviderCount} Service Providers`)).append($("<br>")):e.ServiceProvider&&t.append($("<p>").text(e.ServiceProvider)),t}return BindAvailableWaitlist=function(n){var a=[];null!=n&&n.length>0&&($.grep(n,function(n){try{var o=[],s=[];n.eventType==e?(o=n.available.dates[0].services,s.push(n.available.dates[0])):(o.push(n.available.serviceDetail),s=n.available.dates);var r={EncWaitlistID:n.encWaitlistId,WaitlistID:n.waitlistID,UserID:n.userID,EventType:n.eventType,CustomerName:n.customerName,CustomerCell:n.customerCell,NoShowCount:n.noShowCount,WaitlistComment:n.comment,CancellationCount:n.cancellationCount,ServiceBundleID:n.serviceBundleID,BusinessPackageID:n.businessPackageID,WaitlistCustomerRights:_vagroNotification.getRoleRightsByPage("ManageCustomers.aspx").CanView,isMulitple:o.length>1,MultipleService:o.length>1,MultipleServiceName:"Multiple Services",MembershipName:n.membershipName,NoOfMembership:n.noOfMembership,MembershipNames:n.membershipNames,PackageName:n.packageName,NoOfPackage:n.noOfPackage,PackageNames:n.packageNames,ServiceBundleName:n.serviceBundleName,IsAvailable:n.isAvailable,TotalDuration:n.wtDuration,TotalPrice:n.totalPrice,IsOutCall:n.isOutCall,CurrencySymbol:_vagroNotification.model.CurrencySymbol,ServiceDetails:[],isValidPhone:!1};r.BusinessPackageID>0&&(r.MultipleServiceName=n.serviceBundleName);var c={appDate:"",IsOutCall:n.isOutCall,BusinessPackageID:n.businessPackageID,BusinessID:n.businessID,CustomerID:n.userID,WaitlistID:n.waitlistID,IsAvailable:n.isAvailable,EventType:n.eventType,Detail:[],isWaitingtoreal:!0,PageTital:"Book Appointment From Waitlist",Comment:n.comment};r.ServiceTitle=o[0].serviceTitle,r.ServiceProvider=o[0].serviceProviderID>0?o[0].serviceProvider:"Any Provider",r.IsNotificationSent=n.isNotificationSent,r.AvailableDate=moment(s[0].strDate).format("MMM D, YYYY"),r.strNotificationSentDate=null!=n.notificationSentDate&&""!=n.notificationSentDate?_vagroNotification.countryDateFormat(moment(new Date(n.notificationSentDate)),_vagroNotification.model.VagaroCountryDateFormat.SmallDateWithTime):n.notificationSentDate,n.eventType==e?(r.AvailableTime=s[0].intervalsName,c.appDate=r.AvailableDate,r.AvailableDate=_vagroNotification.countryDateFormat(moment(s[0].strDate),_vagroNotification.model.VagaroCountryDateFormat.SmallDate)+" at "+r.AvailableTime):(r.AvailableDate=_vagroNotification.countryDateFormat(moment(s[0].strDate),_vagroNotification.model.VagaroCountryDateFormat.SmallDateWithTime),r.AvailableTime=moment(s[0].strDate).format("h:mm A"),c.ServiceID=n.serviceID,c.appointmentIDs=n.waitlistClassDetails.appointmentIDs,c.appDate=moment(new Date(s[0].strDate)).format("YYYY-MM-DD HH:mm")),r.CustomerCell="",null!=n.customerCell&&""!=n.customerCell.trim()&&"---"!=n.customerCell?(r.CustomerCell=_vagroNotification.FormatPhoneByCountry(n.customerCell,_vagroNotification.model.CountryId),r.isValidPhone=!0,r.CustomerCellNumber=n.customerCell):null!=n.dayPhone&&""!=n.dayPhone.trim()&&"---"!=n.dayPhone?null!=n.dayPhone.match(/^[0-9]+$/)?(r.CustomerCell=_vagroNotification.FormatPhoneByCountry(n.dayPhone,_vagroNotification.model.CountryId),r.isValidPhone=!0,r.CustomerCellNumber=n.dayPhone):r.CustomerCell=n.dayPhone:null!=n.nightPhone&&""!=n.nightPhone.trim()&&"---"!=n.nightPhone&&(null!=n.nightPhone.match(/^[0-9]+$/)?(r.CustomerCell=_vagroNotification.FormatPhoneByCountry(n.nightPhone,_vagroNotification.model.CountryId),r.isValidPhone=!0,r.CustomerCellNumber=n.nightPhone):r.CustomerCell=n.nightPhone);var l=[],d=[];r.EventType==e||r.EventType==t?$.grep(n.unavailable,function(e){var t={WaitlistID:n.waitlistID,ServiceTitle:r.MultipleService?e.serviceTitle:e.serviceTitle+" ("+r.TotalDuration+")",AddonNames:null!=e.addonNames&&""!=e.addonNames?e.addonNames.split("|~|"):[],ServiceProvider:"with Any Provider",subProviderCount:0,indexID:0},i={},a=[],o=[];if(null!=e.serviceProviders&&e.serviceProviders.length>0){if(e.serviceProviders.length>1){var s=e.serviceProviders.map(function(e){return e.id});i=e.serviceID+"^"+s.join(",");var u={ServiceID:e.serviceID,SPID:e.serviceProviders[0].id,SPIDs:s.join(",")};c.Detail.push(u)}else{i=e.serviceID+"^"+e.serviceProviders[0].id+"$"+e.addOnIDs;u={ServiceID:e.serviceID,SPID:e.serviceProviders[0].id,SPIDs:e.serviceProviders[0].id,ServiceAddOnIDs:e.addOnIDs};c.Detail.push(u)}d.push(e.addOnIDs),l.push(i),e.serviceProviders.forEach(function(e,t){t<=1?a.push(e.name):o.push({SubProvider:e.name})}),t.ServiceProvider=1==e.serviceProviders.length?" with "+a[0]:"",t.subProviderCount=e.serviceProviders.length,t.txtProvider=t.subProviderCount>1?"Providers":"Provider",t.SubServiceProvider=o}else{i=e.serviceID+"^0",l.push(i),d.push(e.addOnIDs);u={ServiceID:e.serviceID,SPID:0};c.Detail.push(u)}r.ServiceDetails.push(t)}):r.EventType==i&&s.length>1&&(r.isMulitple=!0,s.shift(1),$.grep(s,function(e){var t={ServiceTitle:"",ServiceProvider:"",AvailableDateList:moment(e.strDate).format("MMM D, YYYY"),AvailableTimeList:moment(e.strDate).format("h:mm A"),EventType:n.eventType,subProviderCount:0};r.ServiceDetails.push(t)})),r.EventType==e&&(c.ServiceIDs=l.join("|")),c.AddonIDs=d.join("|"),r.objJsonAddNow=JSON.stringify(c),r.txtButtonName="Browse Availability",a.push(r)}catch(e){}}),$("#avaialblewlcnt").html(a.length+" Ready Appointment"+(a.length>1?"s":"")),a.forEach(e=>{!function(e,t){if(!e||!t)return void console.error("Invalid parameters for renderWaitlistItem");const i=$("<div>",{id:`dvWL${e.WaitlistID}`,class:"n-waitlist-card notifipaddingleft available-btn-show","data-servicetitle":e.ServiceTitle}),n=$("<div>",{class:"mobinnercarpadside padding-bottom12"});n.append($("<div>",{class:"notification-title n-font-weight-500 space-bottom-10 text-uppercase-title",text:e.CustomerName})),n.append($("<div>",{class:"notify-label",text:"AVAILABLE"})),n.append($("<div>",{class:"notification-title price",text:`${e.CurrencySymbol}${_vagroNotification.decimalFormat(e.TotalPrice)}`})),n.append(function(e){if(!e.IsNotificationSent)return $();const t=$("<div>",{class:"infoalarm"});return t.append($("<div>",{class:"info-tooltip info-notifySent"}).append($("<em>",{class:"italic-text-8",text:""}),$("<div>",{class:"tooltiptext tooltip-top",text:"Notification Sent"}))),t.append($("<div>",{class:"infoDate",text:`Sent ${e.strNotificationSentDate}`})),t}(e)),n.append(function(e){const t=$("<div>",{class:"notification-text textPT4"});!1===e.isMulitple?(t.append(l(e.ServiceDetails)),t.append($("<span>",{class:"wldates",text:e.AvailableDate}))):t.append(function(e){const t=$(document.createDocumentFragment());3==e.EventType?(t.append(l(e.ServiceDetails)),t.append($("<span>",{class:"wldates",text:e.AvailableDate}))):(t.append($("<p>").text(`${e.MultipleServiceName} (${e.TotalDuration})`)),t.append($("<p>").text(`${e.AvailableDate} at ${e.AvailableTime}`)),t.append(l(e.ServiceDetails)));return t}(e));return t}(e)),n.append(function(e){return $("<div>",{class:"notification-text",text:`${e.CancellationCount} Cancellations / ${e.NoShowCount} No Shows`})}(e)),n.append(function(e){const t=$("<div>",{class:"cal-badge-row"});e.MembershipName&&t.append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new badge-dark"}).append($('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">\n                    <path d="M12.8333 1.5C13.4653 1.5 14 2.01562 14 2.625V10.875C14 11.5078 13.4653 12 12.8333 12H1.16667C0.510417 12 0 11.5078 0 10.875V2.625C0 2.01562 0.510417 1.5 1.16667 1.5H4.66667V3.75H9.33333V1.5H12.8333ZM7 5.25C6.125 5.25 5.44444 5.92969 5.44444 6.75C5.44444 7.59375 6.125 8.25 7 8.25C7.85069 8.25 8.55556 7.59375 8.55556 6.75C8.55556 5.92969 7.85069 5.25 7 5.25ZM9.26042 10.5C9.50347 10.5 9.72222 10.2656 9.625 10.0547C9.43056 9.44531 8.84722 9 8.16667 9H7.94792C7.65625 9.14062 7.34028 9.1875 7 9.1875C6.63542 9.1875 6.31944 9.14062 6.02778 9H5.83333C5.12847 9 4.54514 9.44531 4.35069 10.0547C4.25347 10.2656 4.47222 10.5 4.71528 10.5H9.26042ZM8.55556 0.75V3H5.44444V0.75C5.44444 0.351562 5.78472 0 6.22222 0H7.77778C8.19097 0 8.55556 0.351562 8.55556 0.75Z" fill="#333333"></path>\n                </svg>'),$("<span>",{class:"vagaro-badge-package-width",text:e.MembershipName})));if(e.NoOfMembership>0){const i=$("<div>",{class:"vgn-tooltip vgn-tooltip-top notification-tooltip",mouseover:function(){_vagroNotification.MembershipNamesposition(e.WaitlistID)}}).append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new resIsymbol badge-dark",id:`notificationmemtooltip_${e.WaitlistID}`,text:`+${e.NoOfMembership}`}),$("<div>",{class:"vgn-tooltip-sms",text:e.MembershipNames}));t.append(i)}if(e.PackageName){const i=$("<div>",{class:"packege-box-new"}).append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new badge-dark"}).append($('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">\n                        <path d="M10.6945 3.2754L7.01144 3.74669L6.82843 3.72312C6.94281 3.51105 7.01144 3.2754 7.01144 3.0162C7.01144 2.19146 6.34802 1.5081 5.54735 1.5081C4.72381 1.5081 4.08327 2.19146 4.08327 3.0162C4.08327 3.15758 4.08327 3.25184 4.10614 3.36966L2.61918 3.18115C2.61918 3.13402 2.61918 3.08689 2.61918 3.0162C2.61918 1.36672 3.92313 0 5.54735 0C7.12582 0 8.42977 1.31959 8.45265 2.94551L9.27619 0.75405C9.48208 0.164948 10.1226 -0.141384 10.6716 0.0942563C11.2436 0.306333 11.541 0.966127 11.3122 1.53166L10.6945 3.2754ZM12.8678 7.98822V9.94403C12.8678 10.2975 12.639 10.6038 12.2959 10.6745L7.35458 11.947C7.12582 12.0177 6.87418 12.0177 6.64542 11.947L1.70413 10.6745C1.36099 10.6038 1.1551 10.2975 1.1551 9.94403V7.98822L4.06039 8.83652C4.70093 9.02504 5.38722 8.74227 5.73036 8.17673L7.01144 5.96171L8.26964 8.17673C8.61278 8.74227 9.29907 9.02504 9.93961 8.83652L12.8678 7.98822ZM1.40674 3.79381L7.01144 4.50074L12.5933 3.79381C12.7534 3.77025 12.9135 3.84094 12.9822 3.98233L13.9201 5.96171C14.126 6.38586 13.9201 6.88071 13.4626 7.02209L9.73372 8.10604C9.41345 8.20029 9.07031 8.08247 8.91017 7.77614L7.01144 4.50074L5.08983 7.77614C4.92969 8.08247 4.58655 8.20029 4.26628 8.10604L0.537439 7.02209C0.0799122 6.88071 -0.125975 6.38586 0.0799122 5.96171L1.01784 3.98233C1.08647 3.84094 1.2466 3.77025 1.40674 3.79381Z" fill="#333333"></path>\n                    </svg>'),$("<span>",{class:"vagaro-badge-package-width",text:e.PackageName})));t.append(i)}if(e.NoOfPackage>0){const i=$("<div>",{class:"vgn-tooltip vgn-tooltip-top notification-tooltip",mouseover:function(){_vagroNotification.PackageNamesposition(e.WaitlistID)}}).append($("<span>",{class:"vagaro-badge-icon calendar-vagaro-badge-new resIsymbol badge-dark",id:`notificationtooltip_${e.WaitlistID}`,text:`+${e.NoOfPackage}`}),$("<div>",{class:"vgn-tooltip-sms",text:e.PackageNames}));t.append(i)}return t}(e)),n.append(function(e){if(!e.WaitlistComment||0===e.WaitlistComment.length)return $();const t=$("<div>",{class:"notification-text topSpaceNotication has-more-element-wrap",id:`waitlistMore_${e.WaitlistID}`}).append($("<span>",{class:"calWaitIcon"}).html('\n                    <svg width="16" height="20" viewBox="0 0 16 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n                        <path d="M4.25 3.3125C4.25 2.81445 4.66016 2.375 5.1875 2.375C5.68555 2.375 6.125 2.81445 6.125 3.3125V4.25H9.875V3.3125C9.875 2.81445 10.2852 2.375 10.8125 2.375C11.3105 2.375 11.75 2.81445 11.75 3.3125V4.25H13.1562C13.918 4.25 14.5625 4.89453 14.5625 5.65625V7.0625H1.4375V5.65625C1.4375 4.89453 2.05273 4.25 2.84375 4.25H4.25V3.3125ZM14.5625 15.9688C14.5625 16.7598 13.918 17.375 13.1562 17.375H2.84375C2.05273 17.375 1.4375 16.7598 1.4375 15.9688V8H14.5625V15.9688ZM4.95312 11.75H11.0469C11.4277 11.75 11.75 11.457 11.75 11.0469C11.75 10.666 11.4277 10.3438 11.0469 10.3438H4.95312C4.54297 10.3438 4.25 10.666 4.25 11.0469C4.25 11.457 4.54297 11.75 4.95312 11.75ZM4.95312 13.1562C4.54297 13.1562 4.25 13.4785 4.25 13.8594C4.25 14.2695 4.54297 14.5625 4.95312 14.5625H8.23438C8.61523 14.5625 8.9375 14.2695 8.9375 13.8594C8.9375 13.4785 8.61523 13.1562 8.23438 13.1562H4.95312Z" fill="#333333"/>\n                    </svg>\n                '),`"${e.WaitlistComment}"`);if(e.WaitlistComment.length>59){const i=$("<div>",{class:"notification-text topSpaceNotication topSpaceNoticationHidden has-more-element-wrap",id:`waitlistHasMore_${e.WaitlistID}`}).append($("<span>",{class:"calWaitIconcalWaitIcon"}).html('\n                    <svg width="16" height="20" viewBox="0 0 16 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n                        <path d="M4.25 3.3125C4.25 2.81445 4.66016 2.375 5.1875 2.375C5.68555 2.375 6.125 2.81445 6.125 3.3125V4.25H9.875V3.3125C9.875 2.81445 10.2852 2.375 10.8125 2.375C11.3105 2.375 11.75 2.81445 11.75 3.3125V4.25H13.1562C13.918 4.25 14.5625 4.89453 14.5625 5.65625V7.0625H1.4375V5.65625C1.4375 4.89453 2.05273 4.25 2.84375 4.25H4.25V3.3125ZM14.5625 15.9688C14.5625 16.7598 13.918 17.375 13.1562 17.375H2.84375C2.05273 17.375 1.4375 16.7598 1.4375 15.9688V8H14.5625V15.9688ZM4.95312 11.75H11.0469C11.4277 11.75 11.75 11.457 11.75 11.0469C11.75 10.666 11.4277 10.3438 11.0469 10.3438H4.95312C4.54297 10.3438 4.25 10.666 4.25 11.0469C4.25 11.457 4.54297 11.75 4.95312 11.75ZM4.95312 13.1562C4.54297 13.1562 4.25 13.4785 4.25 13.8594C4.25 14.2695 4.54297 14.5625 4.95312 14.5625H8.23438C8.61523 14.5625 8.9375 14.2695 8.9375 13.8594C8.9375 13.4785 8.61523 13.1562 8.23438 13.1562H4.95312Z" fill="#333333"/>\n                    </svg>\n                '),`"${e.WaitlistComment}"`),n=$("<div>",{class:"more-div",id:`divMoreContent_${e.WaitlistID}`,"aria-hidden":"true"}).append($("<a>",{id:`btnWaitlistMore_${e.WaitlistID}`,class:"more-gradient web-subheading-font-blue",href:"javascript:void(0);",text:"More",click:function(t){_vagroNotification.showMoreContentWaitList(e.WaitlistID,t)}})),a=$("<div>");return a.append(t,i,n),a}return t}(e)),n.append(function(e){const t=$("<div>",{class:"footer-button-wrap"});e.WaitlistCustomerRights&&e.CustomerCell?(t.append($("<a>",{href:"javascript:void(0)",class:"notification-link",text:"Browse Availability",click:function(){return _vagroNotification.BrowseAvailability(e.objJsonAddNow),!1}})),t.append($("<a>",{href:e.isValidPhone?`tel:${e.CustomerCellNumber}`:"javascript:void(0);",class:"notification-link",text:`Call ${e.CustomerCell}`})),t.append($("<a>",{href:"javascript:void(0);",class:"notification-link notifi-remove-link",text:"Remove",click:function(){return _vagroNotification.RemoveWaitlistAppointment(e.WaitlistID,e.EncWaitlistID),!1}}))):(t.append($("<a>",{href:"javascript:void(0)",class:"notification-link mobhalfnotifi-link",text:"Browse Availability",click:function(){return _vagroNotification.BrowseAvailability(e.objJsonAddNow),!1}})),t.append($("<a>",{href:"javascript:void(0);",class:"notification-link notifi-remove-link mobhalfnotifi-link",text:"Remove",click:function(){return _vagroNotification.RemoveWaitlistAppointment(e.WaitlistID,e.EncWaitlistID),!1}})));return t}(e)),i.append(n),$(t).append(i)}(e,"#availablewaitlist")}))},_vagroNotification.ShowMore=function(e,t){var i=$("#w-contant-expand"+e),n=$("#wl-more-expand"+e),a=i.data("IsOpen");void 0===a||0==a?(n.hide(),i.data("IsOpen",!0),i.slideDown()):(n.show(),n.text("+ "+t.toString()+" more"),i.data("IsOpen",!1),i.slideUp())},_vagroNotification.showMoreContentWaitList=function(e,t){var i=$("#btnWaitlistMore_"+e),n=$("#waitlistMore_"+e);i.hasClass("active")?(n.animate({height:"21px"},200),i.removeClass("active"),i.html("More")):(i.addClass("active"),n.animate({height:"100%"},200),i.html("Less")),t.stopPropagation(),t.preventDefault()},_vagroNotification.RemoveWaitlistAppointment=function(e,t){if($("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack){var i={alertMessage:"Are you sure you want to be removed from the waitlist? This action cannot be undone.",alertTitle:"Remove from Waitlist",confirmTitle:"Remove",cancelTitle:"Cancel"};i.waitlistID=e,sendMobileCallBack(_vagroNotification.MobileNotType.RemoveWaitlistRecord,JSON.stringify(i).replace(/\\\"/g,'"').replace(/"/g,'\\"'))}else{if("function"==typeof ShowConfirmPopup){var n={};return n.wId=t,ShowConfirmPopup("Are you sure you want to be removed from the waitlist? This action cannot be undone."," Remove","",200,500,"RemoveWaitlistData","",n),$(".spnConfirmTitle").html("Remove from Waitlist"),!1}if("undefined"!=typeof bootbox)return bootbox.confirm({title:"Remove from Waitlist",message:"Are you sure you want to be removed from the waitlist? This action cannot be undone.",buttons:{cancel:{label:"Cancel"},confirm:{label:"Remove"}},callback:function(e){RemoveWaitlistData(e,t)}}),$(".bootbox-confirm").css("z-index","9999999"),!1}},window.RemoveWaitlistData=function(e,t){if(e){var i=null;"undefined"!=typeof Params&&void 0!==Params.wId?(i={}).wId=Params.wId:void 0!==t&&((i={}).wId=t),null!=i&&(_vagroNotification.ShowHideWaitlistLoader(!0),callApi(_vagroNotification.ApiURLEnum.RemoveWaitlistAppointment+"/"+i.wId,null,_vagroNotification.APIMethodType.DELETE,function(e){200!==e.status||1e3!==e.responseCode||_vagroNotification.isNullOrUndefineOrBlank(e.data)||_vagroNotification.RemoveWaitlistAppointmentSuccess(e.data)},function(e){console.log(e)}))}},_vagroNotification.RemoveWaitlistAppointmentSuccess=function(e){if(null!=e&&e.waitlistID>0)if(updateWaitlistAppointmentCount(),processWaitlistAppointmentUpdate(e.waitlistID),$("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack){var t={successMessage:"Waitlist appointment removed successfully.",waitlistID:0};sendMobileCallBack(_vagroNotification.MobileNotType.RemoveWaitlistRecord,JSON.stringify(t).replace(/\\\"/g,'"').replace(/"/g,'\\"')),_vagroNotification.MobileCallBackPendingCount()}else _vagroNotification.ShowHideDoneMessageCommon("Waitlist appointment removed successfully.",2e3);else _vagroNotification.ShowHideFailedMessageCommon("Unable to removed waitlist. Please try again.",2e3);_vagroNotification.ShowHideWaitlistLoader(!1)},updateWaitlistAppointmentCount=function(){const e=$("#liWaitlistAppointment .notification-number");let t=parseInt(e.text())||0;if(1===t)$("#liWaitlistAppointment").remove(),_vagroNotification.NotificationCount.remove(1);else{const i=1;t-=i,t<=0?$("#liWaitlistAppointment").remove():(e.text(t),_vagroNotification.NotificationCount.remove(i))}},processWaitlistAppointmentUpdate=function(e){$(".accepted-notification").removeAttr("style"),$(".denied-checkmark").hide(),$(".accepted-checkmark").show();var t=$("#divacceptappointmentsuccess").clone();t.find(".accepted-notification.accept-success").text("Removed");var i="#dvWL"+e;$(i).html(t.html()),$(i).animate({opacity:0},1e3,function(){$(i).slideUp();const e=$("#liWaitlistAppointment .notification-number");0==(parseInt(e.text())||0)&&$(".notiback-link").click()})},_vagroNotification.BrowseAvailability=function(n){var a=JSON.parse(n);if(a.EventType==e)$("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack?(_vagroNotification.WaitlistComment="",_vagroNotification.objBrowseAvailability={},_vagroNotification.objBrowseAvailability.Date=a.appDate,_vagroNotification.objBrowseAvailability.IsOutCall=a.IsOutCall,_vagroNotification.objBrowseAvailability.ServiceBundleID=a.BusinessPackageID,_vagroNotification.objBrowseAvailability.BusinessID=a.BusinessID,_vagroNotification.objBrowseAvailability.CustomerID=a.CustomerID,_vagroNotification.objBrowseAvailability.WaitlistId=a.WaitlistID,_vagroNotification.objBrowseAvailability.IsFromAvailalbe=a.IsAvailable,_vagroNotification.objBrowseAvailability.EventType=1,_vagroNotification.objBrowseAvailability.Detail=a.Detail,_vagroNotification.objBrowseAvailability.Comment=a.Comment,sendMobileCallBack(_vagroNotification.MobileNotType.WaitlistBrowsAvailability,JSON.stringify(_vagroNotification.objBrowseAvailability).replace(/\\\"/g,'"').replace(/"/g,'\\"'))):(o=(o=(o=(o=(o=(o="CustomerID="+a.CustomerID)+"&IsOutCall="+(0!=a.IsOutCall))+"&Date="+a.appDate)+"&SP="+a.ServiceIDs)+"&BusinessID="+a.BusinessID)+"&ServiceBundle="+a.BusinessPackageID,o=(o=(o+="&isWaitingtoreal=true")+"&waitlistID="+a.WaitlistID)+"&addID="+a.AddonIDs,o+="&PageTital=Book Appointment From Waitlist",o+="&TaxData="+_vagroNotification.model.TaxInfo,$("#divBrowseAvailabilityPopup").html(""),"undefined"!=typeof CalendarContextMenu&&null!=CalendarContextMenu&&"function"==typeof CalendarContextMenu.closeAllNotification&&CalendarContextMenu.closeAllNotification(),window.location.href.includes("/merchants/calendar")?o+="&cal=1":o+="&cal=0",ShowDynamicPopupForShopOwner("/ShopOwner/SearchAppointmentFromCalendar.aspx?"+o,_vagroNotification.GetWindowHeight()+50,1040,"divBrowseAvailabilityPopup","Waitlist To Real",null,null,"searchmoverebookpopupiPad"));else if(a.EventType==t||a.EventType==i){var o;if($("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack)_vagroNotification.WaitlistComment="",_vagroNotification.objBrowseAvailability={},_vagroNotification.objBrowseAvailability.Date=a.appDate,_vagroNotification.objBrowseAvailability.BusinessID=a.BusinessID,_vagroNotification.objBrowseAvailability.CustomerID=a.CustomerID,_vagroNotification.objBrowseAvailability.WaitlistId=a.WaitlistID,_vagroNotification.objBrowseAvailability.IsFromAvailalbe=a.IsAvailable,_vagroNotification.objBrowseAvailability.EventType=a.EventType,_vagroNotification.objBrowseAvailability.Detail=a.Detail,_vagroNotification.objBrowseAvailability.Comment=a.Comment,sendMobileCallBack(_vagroNotification.MobileNotType.WaitlistBrowsAvailability,JSON.stringify(_vagroNotification.objBrowseAvailability).replace(/\\\"/g,'"').replace(/"/g,'\\"'));else o=(o=(o=(o=(o=(o="CustomerID="+a.CustomerID)+"&AppDate="+a.appDate)+"&ServiceID="+a.Detail[0].ServiceID)+"&AppointmentID="+a.appointmentIDs)+"&SPID="+a.Detail[0].SPID)+"&BusinessID="+a.BusinessID,o=(o=(o+="&Mode=WaitingToReal")+"&WaitlistID="+a.WaitlistID)+"&addID="+a.AddonIDs,o+="&PageTital=Add Attendee From Waitlist",$("#divBrowseAvailabilityPopup").html(""),"undefined"!=typeof CalendarContextMenu&&null!=CalendarContextMenu&&"function"==typeof CalendarContextMenu.closeAllNotification&&CalendarContextMenu.closeAllNotification(),window.location.href.includes("/merchants/calendar")?o+="&cal=1":o+="&cal=0",ShowDynamicPopupForShopOwner("/ShopOwner/SearchClassFromCalendar.aspx?"+o,_vagroNotification.GetWindowHeight()+50,1040,"divBrowseAvailabilityPopup","Waitlist To Real",null,null,"searchmoverebookpopupiPad")}},_vagroNotification.ShowHideWaitlistLoader=function(e){1==e?$("#divWaitListLoader").show():$("#divWaitListLoader").hide()},{create:function(e){c(e)}}}(),_importNotification=function(){var e,t=(e=null,function(){return"undefined"!=typeof _vgVagaroImport?$.Deferred().resolve(_vgVagaroImport).promise():(e||(e=$.getScript("/assets/js/VagaroImport/VagaroImport.js").then(function(){if("undefined"!=typeof _vgVagaroImport)return _vgVagaroImport.model.VagaroCoreApiUrl=_vagroNotification.model.ApiV1URL,_vgVagaroImport.model.BusinessCDNUrl=_vagroNotification.model.BizDetail.cdnUrl,_vgVagaroImport.model.BusinessImage=_vagroNotification.model.BizDetail.businessImage,_vgVagaroImport.model.BusinessCity=_vagroNotification.model.BizDetail.city,_vgVagaroImport.model.BusinessStateCode=_vagroNotification.model.BizDetail.stateCode,_vgVagaroImport.model.BusinessName=_vagroNotification.model.BizDetail.businessName,_vgVagaroImport.model.LoggedinUserID=_vagroNotification.model.UserId,_vgVagaroImport;console.log("VagaroImport.js loaded but _vgVagaroImport not defined")})),e)});return{renderTransferRequestApprovalNotification:function(e){return t().then(function(t){return function(e){const{objectId:t,requesterImage:i,photoForInitials:n,requesterCDNUrl:a,status:o,requestType:s,requestedProviderName:r,requesterProviderName:c,businessName:l,copyCustomersOfProviderName:d,serviceProviderId:u,is_service_mapping:p}=e,f=_vgVagaroImport.model.BusinessName,h={REQUESTED:_vgVagaroImport.TransferRequestStatusType.Requested,NEEDS_APPROVAL:_vgVagaroImport.TransferRequestStatusType.ApprovalFormAccountOwner,MAPPING_NEEDED:_vgVagaroImport.TransferRequestStatusType.ServiceMappingRequest,APPROVED:_vgVagaroImport.TransferRequestStatusType.Approve,COMPLETED:_vgVagaroImport.TransferRequestStatusType.Completed},m=_vgVagaroImport.BusinessPopupType,g=$("<div>",{class:"notification-card notifipaddingleft clearfix",id:t}),v=$("<div>",{class:"notif-image-div"}),y=$("<div>",{class:"alert-notification-circle small"});i?y.append($("<div>",{class:"thumbnil",style:`background-image: url('${a}200x0/${i}'); display: block`})):y.append($("<div>",{class:"noImage",style:"display: block",text:n}));o!==h.REQUESTED&&o!==h.NEEDS_APPROVAL||y.append($("<div>",{class:"alert-number-container small"}).append($("<div>",{class:"notification-number",text:"!"})));const b=$("<div>",{class:"notif-text-div"}),_=[h.REQUESTED,h.NEEDS_APPROVAL].includes(o)?s===m.MakeAnotherBusinessPopUp&&o===h.NEEDS_APPROVAL?`${r} Requested to Transfer Information`:`${c} Requested to Transfer Information`:[h.MAPPING_NEEDED,h.APPROVED].includes(o)?`${r} Approved Transfer`:o===h.COMPLETED?s===m.MakeBusinessOwnerPopUp?`${c} Completed Transfer`:`${r} Completed Transfer`:"",C=$("<div>",{class:"notification-title bigBox",text:_}),w=(()=>{switch(o){case h.REQUESTED:if([m.ImportManagementRequestPopUp,m.AddEmployeeFromManageUsers,m.AddEmployeeFromServiceMenu].includes(s))return`${c} has requested to transfer information from your business.`;if([m.MakeAnotherBusinessPopUp,m.TransferToAnotherBusiness].includes(s))return`${c} has requested transferring your information from ${l} to your account.`;break;case h.MAPPING_NEEDED:if([m.ImportManagementRequestPopUp,m.AddEmployeeFromManageUsers,m.AddEmployeeFromServiceMenu].includes(s))return`${c}'s information from ${l} is transferred to ${f}. Complete the Service Mapping to finish the transfer.`;if([m.MakeAnotherBusinessPopUp,m.TransferToAnotherBusiness].includes(s))return`${d}'s information from ${l} is transferred to ${f}. Complete the Service Mapping to finish the transfer.`;break;case h.APPROVED:if([m.ImportManagementRequestPopUp,m.AddEmployeeFromManageUsers,m.AddEmployeeFromServiceMenu].includes(s))return`${c}'s information from ${l} is transferred to ${f}.`;if([m.MakeAnotherBusinessPopUp,m.TransferToAnotherBusiness].includes(s))return`${d}'s information from ${f} is transferred to ${l}.`;break;case h.NEEDS_APPROVAL:return`${d}'s information from ${f} is transferred to their account.`;case h.COMPLETED:if([m.ImportManagementRequestPopUp,m.AddEmployeeFromManageUsers,m.AddEmployeeFromServiceMenu].includes(s))return`Your requested information transfer from ${l} has been completed.`;if([m.MakeAnotherBusinessPopUp,m.TransferToAnotherBusiness].includes(s))return`Your information from ${l} has been transferred.`}return""})(),x=$("<div>",{class:"notification-text",text:w}),I=$("<div>",{class:"notification-text mobprohide",style:"display: none;",text:t});b.append(C,x,I),v.append(y,b),g.append(v);const S=$("<div>");[h.MAPPING_NEEDED,h.APPROVED,h.COMPLETED].includes(o)?o===h.MAPPING_NEEDED&&p?S.append($("<a>",{class:"notification-link",href:"javascript:void(0)",text:"Complete Service Mapping",click:function(){_vgVagaroImport.SendServiceMappingRequest(t,s,u,o)}}),$("<a>",{class:"notification-link",href:"javascript:void(0)",text:"Dismiss",click:function(){_vgVagaroImport.UpdateTransferRequestStatusFromPanel(t,5,0,s,u,o)}})):S.append($("<a>",{class:"notification-link mobfullnotifi-link",href:"javascript:void(0)",text:"Dismiss",click:function(){_vgVagaroImport.UpdateTransferRequestStatusFromPanel(t,1,0,s,u,o)}})):S.append($("<a>",{class:"notification-link mobfullnotifi-link",href:"javascript:void(0)",text:"View",click:function(){_vgVagaroImport.BindRequestTransferPopup(t,s,u,o)}}));const k=$("<input>",{type:"hidden",id:"hdnreviewUserType",name:"hdnreviewUserType",value:`${_vagroNotification.model.UserType}`}),N=$("<input>",{type:"hidden",id:"hdnnotificationLoginuserid",name:"hdnnotificationLoginuserid",value:`${_vagroNotification.model.UserId}`});return g.append(k,N),g.append(S),g}(e)})}}}(),_vmsNotification=function(){function e(e){return $(`\n            <div class="new-float-left full-width-100 CapitalDateBox">\n                <div class="new-float-left full-width-100 CapitalDateBoxCenter">${e}</div>\n            </div>\n        `)}function t(e,t,i){if(0==$("#divmissingpersonalbusinessid").length){const e=$("<div>",{id:"divmissingpersonalbusinessid"});i.append(e)}const n=a({id:"divmissingpersonalid",cdnImagePath:t,title:"Missing Credit Card Processing Docs",text:"Verify identity by uploading one of the following: driver's license, social security card, utility bill (home or business)",uploadSectionId:"divpersonaldocs",contentSectionId:"divPersonalContent",hiddenFieldId:"hdnPersonalContent",contentSpanId:"spnPersonalContent",uploadFunction:"_vagroNotification.uploadFile('#divmissingpersonalid')",mobileUploadFunction:"OpenUploaddocscreen('#divmissingpersonalid','personal')"});$("#divmissingpersonalbusinessid").append(n.show()),_vagroNotification.bindAdvanceUpload()}function i(e,t){if(0==$("#divmissingpersonalbusinessid").length){const e=$("<div>",{id:"divmissingpersonalbusinessid"});bodyContainer.append(e)}const i=a({id:"divmissingbusinessid",cdnImagePath:t,title:"Missing Credit Card Processing Docs",text:"Verify business by uploading one of the following: Cosmetology License, Business License, Business IRS filing",uploadSectionId:"divbusinessdoc",contentSectionId:"divBusinessContent",hiddenFieldId:"hdnBusinessContent",contentSpanId:"spnBusinessContent",uploadAction:function(){return _vagroNotification.uploadFile("#divmissingbusinessid"),!1},mobileUploadFunction:"OpenUploaddocscreen('#divmissingbusinessid','business')",showBothSubmit:!1});$("#divmissingpersonalbusinessid").append(i.show()),_vagroNotification.bindAdvanceUpload()}function n(e){const t=$("<div>",{id:e.id,class:"notification-card notifipaddingleft clearfix",style:"display: none;"}),i=$("<div>",{class:"notif-image-div"}).append($("<img>",{src:`${e.cdnImagePath}Images/${e.imageSrc}`,width:e.imageWidth,alt:e.imageAlt||""}),$("<div>",{class:"notif-text-div"}).append($("<div>",{class:"notification-title",text:e.title}),$("<div>",{class:"notification-text",html:e.text})));return t.append(i),e.buttons.forEach(e=>{const i=$("<a>",{id:e.id,class:e.classes,href:"javascript:void(0);",text:e.text});i.on("click",function(t){return t.preventDefault(),t.stopPropagation(),"function"==typeof e.action&&e.action()}),t.append(i)}),t}function a(e){const t=$("<div>",{id:e.id,class:"notification-card notifipaddingleft clearfix docuploadstatus",style:"display: none;"});t.append(s()),t.append($("<div>",{class:"notif-image-div"}).append($("<img>",{src:`${e.cdnImagePath}Images/missing-docs-light@2x.png`,width:90}),$("<div>",{class:"notif-text-div"}).append($("<div>",{class:"notification-title",text:e.title}),$("<div>",{class:"notification-text",text:e.text})))),t.append(o({id:e.uploadSectionId,cdnImagePath:e.cdnImagePath})),t.append($("<div>",{id:e.contentSectionId,class:"showinmobpro mobuploadedimg"}).append($("<input>",{type:"hidden",id:e.hiddenFieldId,value:""}),$("<span>",{id:e.contentSpanId})));const i=$("<a>",{class:"notification-link mobfullnotifi-link mobprohide",style:"display: none",href:"javascript:void(0);",text:"Submit"});i.on("click",function(e){return e.preventDefault(),e.stopPropagation(),"function"==typeof button.action&&button.action()}),t.append(i);const n=$("<a>",{id:e.mobileUploadId||`anc${e.id}`,class:"notification-link mobfullnotifi-link showinmobpro",href:`javascript:${e.mobileUploadFunction}`,text:"Upload Document"});return t.append(n),!1!==e.showBothSubmit&&t.append($("<a>",{class:"notification-link mobfullnotifi-link bothMissingSubmit",id:"ancMissingBoth",style:"display: none",href:"javascript:void(0);",text:"Submit",click:function(){_vagroNotification.changeStatus("#divmissingbusinessid")}})),t}function o(e){return $("<div>",{class:"drag-drop-new",id:e.id}).append($("<img>",{class:"drag-drop-doc-new",src:`${e.cdnImagePath}Images/drag-drop-docs-light@2x.png`,width:50}),$("<div>",{class:e.textClass||"notification-text",text:"Drag and drop document here"}),$("<div>",{class:"floatnone notification-link fileuploadcont"}).append($("<div>",{class:"fileuprelative"}).append($("<input>",{type:"file",class:"filetypeinput"}),$("<div>",{class:"fileuplink"}).append($("<span>",{class:"or-reg"}).text("or")," Choose File"))))}function s(){return $("<div>",{class:"section-loader section-loaderinner"}).append($("<div>",{class:"loader"}).html("&nbsp;"),$("<div>",{class:"loader-img"}))}_vagroNotification.FinishApplication=function(e,t,i,n,a,o,s,r,c=!1){let l="";l=4==n&&a>0&&r>0?3==o||2==o&&1!=s?"/freecardreaders?credentialID="+a:"/merchants/settings/premiumfeature/creditcardprocessing":1==s?"/merchants/settings/premiumfeature/creditcardprocessing":"/merchants/settings/premiumfeature/creditcardzenswipecms?at="+(i>0?i:1)+"&sp="+t+"&bus="+e+"&isFromApply="+!0;var d=c?"FinishApplication":"Notification";try{var u={};u.BusinessId=e,u.UserId=t,u.AccountType=i,u.Step=n,u.CredentialsId=a,u.Status=o,u.VerifyAccountstatus=s,u.InventoryCount=r,u.IsFromPopup=c,u.RedirectURL=l,u.Button=d,u.CreatedBy=_vagroNotification.model.UserId,callApi(_vagroNotification.ApiURLEnum.VMSSignupProgress,u,_vagroNotification.APIMethodType.POST,function(e){},function(e){})}catch{}"Website"!=_vagroNotification.model.NotificationDevice?(l+="&isFromMobile=true",sendMobileCallBack(_vagroNotification.MobileNotType.FinishVMSApplicationFormNotification,l)):location.href=l},_vagroNotification.closeFinishNotification=function(e){$(e).closest("#divFinishApplication").hide(),_vagroNotification.NotificationCount.remove(1)},_vagroNotification.RedirectVagaroCapitalNotification=function(){if($("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack){sendMobileCallBack(_vagroNotification.MobileNotType.VagaroCapitalNotificationRedirect,_vagroNotification.model.DomainURL+"merchants/settings/premiumfeature/vagarocapital?isFromNotification=1",null)}else location.href="/merchants/settings/premiumfeature/vagarocapital?isFromNotification=1"},_vagroNotification.CloseVagaroCapitalNotification=function(){$("#divVagaroCapitalNotifications").remove(),_vagroNotification.NotificationCount.remove(1)},_vagroNotification.SetCookiesForVCAfterRemove=function(e){var t=_vagroNotification.getCookie(_vagroNotification.storageKey.VCCookieName);null!=t&&""!=t&&(e=e+","+t);var i=new Date;i.setDate(i.getDate()+30);var n="expires="+i.toUTCString(),a=_vagroNotification.storageKey.VCCookieName+"="+e+"; path=/;"+n;return document.cookie=a,_vagroNotification.CloseVagaroCapitalNotification(),!1},_vagroNotification.RemoveCapitalNotification=function(e){var t={MerchantTokenID:e};callApi(_vagroNotification.ApiURLEnum.RemoveCapitalNotification,t,_vagroNotification.APIMethodType.POST,function(e){200===e.status&&1e3===e.responseCode&&_vagroNotification.CloseVagaroCapitalNotification()},function(e){})},_vagroNotification.GetFreeCardReader=function(e,t,i){redirectLink="/merchants/settings/premiumfeature/creditcardzenswipecms?at=1&sp="+e+"&bus="+t+"&isFromApply=true&credentialID="+i+"&isFromFreeReader=1",$("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.GetFreeCardReader,redirectLink+"&isFromMobile=true"):location.href=redirectLink},_vagroNotification.cardReaderDismiss=function(e,t,i){var n={UserId:e,BusinessId:t,CredentailId:i};callApi(_vagroNotification.ApiURLEnum.UpdateFreeCardReaderNotification,n,_vagroNotification.APIMethodType.POST,_vagroNotification.updatecardReaderDismissSuccess,function(e){})},_vagroNotification.updatecardReaderDismissSuccess=function(e){200===e.status&&1e3===e.responseCode&&($("#divgetfreecardreader").fadeOut(400),$(".notification-card-container").addClass("notification-innertop"),$("body").hasClass("pronotidevice")&&"function"==typeof sendMobileCallBack&&sendMobileCallBack(_vagroNotification.MobileNotType.DecreaseORIncreaseBadgeCount,-1),_vagroNotification.NotificationCount.remove(1))},_vagroNotification.RedirecttoChargeback=function(e){_vagroNotification.model.IsMobileWebView||_vagroNotification.model.IsTableWebView?setTimeout(function(){sendMobileCallBack(_vagroNotification.MobileNotType.ViewResponceNotification,_vagroNotification.model.DomainURL+e,null)},250):location.href="/"+e},_vagroNotification.uploadFileMobile=function(e,t,i){$("#divBusinessContent").removeClass("mobfilenames");var n=new FormData;"missingpersonalandbusiness"==e?(parent=$(".uploaddocformob").data("parent"),e=".uploaddocformob"):"other"==e&&(parent=$(".missinginfoformob").data("parent"),e=".missinginfoformob");var a="";if(!t){if(0==_vagroNotification.model.glbdroppedFile&&0==$(e).find("input[type='file']").get(0).files.length)return $(e+" .error").text("Please select file."),0;if(0==_vagroNotification.model.glbdroppedFile&&null==$(e).find("input[type='file']").get(0).files[0].name.match(/(gif|png|jpg|jpeg|pdf|GIF|PNG|JPG|JPEG|PDF)$/i))return $(e+" .error").text("Please select valid file."),0;try{var o=$(e).find("input[type='file']").get(0).files[0],s=10485760;if(o.size>s){var r=parseFloat(10.24).toFixed(0);return $(e+" .error").text("File size limit exceeds "+r+" MB."),0}}catch(e){valid=!0}_vagroNotification.model.glbdroppedFile?n.append("file",_vagroNotification.model.glbdroppedFile[0]):n.append("file",$(e).find("input[type='file']").get(0).files[0]),regex=new RegExp("[^.]+$"),a=n.get("file").name.match(regex)[0]}$(e).find(".section-loader").show();var c=$("div.notification-card").data("ApplicationID"),l=parent,d="";if("#divmissingbusinessid"==l?d="BL":"#divmissingpersonalid"==l?d="DL":"#divother"==l&&(d="CK"),t||"heic"!=a.toLowerCase())t&&(n=new FormData).append("file",i),_vagroNotification.upload("/AjaxFileHandler.ashx?type=zenswipe&ImageType="+d+"&AppID="+c,n,function(e){_vagroNotification.uploadFileSuccess(e,parent)},function(e){_vagroNotification.uploadFileFailure(e,parent)});else{var u=n.get("file").name.toLowerCase().replace(/\.heic/,".jpeg");isWebBrowserSupportHEIC()?getJPEGFileFromHEICWeb(n.get("file"),u,function(t){_vagroNotification.uploadFileMobile(e,!0,t)}):HEICReadFile(n.get("file"),function(t){var i=[];i.push({imageName:u,base64:t.target.result});var n={fromPage:"zenswipe",uploadfrom:e,images:i},a={navType:0,screenType:0,screenTitle:"",message:"",messageType:0,action:"104|~|"+JSON.stringify(n)},o="5008||~||"+JSON.stringify(a);HEICtoJPGPostMessage(o)})}},window.OpenUploaddocscreen=function(e,t){$(".uploaddocformob").find(".section-loader").hide(),$("#uploadBtn").val(""),$("#uploadFile").val(""),$(".notification-div").addClass("uploaddocopen"),$("body.pronotidevice, html.pronotideviceHtml").addClass("height100"),"personal"==t?$("div.uploaddocformob").find("span.uploaddocs").text("Driver's License, Social Security Card or Utility Bill (home or business)"):"business"==t?$("div.uploaddocformob").find("span.uploaddocs").text("Business License, Cosmetology License or Sales Tax Permit"):$("div.uploaddocformob").find("span.uploaddocs").text(""),$("div.uploaddocformob").data("parent",e),$(".big-title-notification",".notification-div").html("Missing Credit Card Processing Docs")},window.getFileData=function(e){if(e.files.length>0){var t=!0,i=e.files[0];if(null==i.name.match(/(gif|png|jpg|jpeg|pdf|GIF|PNG|JPG|JPEG|PDF)$/i))return $(".uploaddocformob .error").text("Please select valid file."),t=!1,0;try{if(t){var n=10485760;if(i.size>n){var a=parseFloat(10.24).toFixed(0);return $(".uploaddocformob .error").text("File size limit exceeds "+a+" MB."),t=!1,0}}}catch(e){t=!0}t&&($(".uploaddocformob .error").text(""),$("#uploadFile").val(e.files[0].name),$("#uploadFileOther").val(e.files[0].name))}else $("#uploadFile").val(""),$("#uploadFileOther").val(""),$(".uploaddocformob .error").text("Please select file.")},window.OpenMissingInfoTextwrite=function(e){$(".notification-div").addClass("missinginfoopen"),$("body.pronotidevice, html.pronotideviceHtml").addClass("height100"),$("div.missinginfoformob").data("parent",e),$(".big-title-notification",".notification-div").html("Missing Credit Card Processing Info")},_vagroNotification.changeStatusMobile=function(e){var t=$(".missinginfoformob").find("textarea").val(),i=$("#hdnOtherContent").val();if(""!=t.trim()){$(".missinginfoformob").find(".section-loader").show();var n=$(e).data();c({ApplicationID:n.ApplicationID,Status:_vagroNotification.ApplicationStatus.Submitted,CurrentStatus:n.CurrentStatus,Content:t,Reason:"",Content2:i},function(t){$(".notification-div").removeClass("missinginfoopen"),$("body.pronotidevice, html.pronotideviceHtml").removeClass("height100");var i=$(e).height(),n=$("#divacceptappointmentsuccess").clone();n.find(".accepted-notification.accept-success").text("Updated"),$(e).html(n.html()).height(i),_vagroNotification.NotificationCount.remove(1),$(e).animate({opacity:0},2e3,function(){$(e).slideUp()})},function(e){})}else $(".missinginfoformob").find("textarea").addClass("errorInput")},_vagroNotification.DismissApplication=function(e){callApi(_vagroNotification.ApiURLEnum.DismissMerchantNotification+`/${e}`,{},_vagroNotification.APIMethodType.POST,function(e){200!==e.status||1e3!==e.responseCode||_vagroNotification.isNullOrUndefineOrBlank(e.data)||_vagroNotification.CancelApplicationSuccess(e.data)},_vagroNotification.FailAjaxcall)};var r=!0;function c(e,t,i){callApi(_vagroNotification.ApiURLEnum.ChangeApplicationStatus,e,_vagroNotification.APIMethodType.POST,t,i)}_vagroNotification.FinishMerchantApplication=function(e,t,i,n){if(r){r=!1;var a={UserId:e,BusinessId:t,accountType:1*i,sessionId:"",applicationId:n};callApi(_vagroNotification.ApiURLEnum.ApplyForZenswipe,a,_vagroNotification.APIMethodType.POST,function(e){200!==e.status||1e3!==e.responseCode||_vagroNotification.isNullOrUndefineOrBlank(e.data)||function(e){if(r=!0,null!=e&&""!=e){if(null!=e[4])swal({title:e[4],text:"",timer:popupTime,type:"error"});else if("5"==e[3]||"16"==e[3])if($("body").hasClass("pronotidevice"))sendMobileCallBack(_vagroNotification.MobileNotType.FinishApplication,e[1]);else{var t=!1;null!=e[1]&&null!=e[1]&&""!=e[1]&&e[1].toLowerCase().indexOf("docusign.net/signing/startinsession")>-1&&(t=!0);var i=1==t?"Sign":"Complete",n=(null!=window.screenLeft?window.screenLeft:screen.left,null!=window.screenTop?window.screenTop:screen.top,screen.width?screen.width:window.innerWidth?window.innerWidth:document.documentElement.clientWidth),a=screen.height?screen.height:window.innerHeight?window.innerHeight:document.documentElement.clientHeight,o=n>1050?1050:n-10,s=a-400,c=(n-o)/2,l=(a-s)/2,d=window.open(e[1],"Vagaro Merchant Services","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no,width="+o+", height="+s+", top="+l+", left="+c);if(!d||d.closed||void 0===d.closed){var u="To complete your application, you will be directed to a secure and PCI compliant page.<br />Please click the button below to complete your application.";if(t&&(u="You application is not signed yet. To complete your application please click the button below to sign your application.","17"==e[3]&&(u="Your application is under review for approval")),"function"==typeof ShowConfirmPopup){var p={};return p.TranfirstURL=e[1],$(".cnfCancelbtn").css("display","none"),"17"==e[3]&&t&&$(".cnfOkbtn").css("display","none"),ShowConfirmPopup(u,i+" Application","",200,500,"ConfirmFinishApplication","",p),$(".spnConfirmTitle").html("Information"),!1}"function"==typeof ShowPopupAlert?("17"==e[3]&&t?$("#ctl00_VagaroContentPlaceHolder_ucAlertPopup_btnOK").replaceWith("<a id='aTranfirstURL' href='"+e[1]+"' target='_blank' style='display: none; text-decoration: none;' onclick='HidePopupAlert();' class='button-type-flat'>Sign Application</a>"):$("#ctl00_VagaroContentPlaceHolder_ucAlertPopup_btnOK").replaceWith("<a id='aTranfirstURL' href='"+e[1]+"' target='_blank' style='display: block; text-decoration: none;' onclick='HidePopupAlert();' class='button-type-flat'>Complete Application</a>"),ShowPopupAlert(u)):bootbox.alert({title:"Information",message:u,buttons:{ok:{label:i+" Application"}},callback:function(t){window.open(e[1],"_blank")}})}}}else swal({title:errorMsg,text:"",timer:popupTime,type:"error"})}(e.data)},function(e){})}},_vagroNotification.CancelApplication=function(e){1==confirm("Are you sure you want to cancel this application?")&&c({ApplicationID:e,Status:6,CurrentStatus:0,Content:"",Reason:"",Content2:""},_vagroNotification.CancelApplicationSuccess,_vagroNotification.FailAjaxcall)},_vagroNotification.CancelApplicationSuccess=function(e){if(e>0)$("#divcancelmerchantaccount").fadeOut(400),$("#divcreditcheckblock").fadeOut(400),$("#divdenied").fadeOut(400),_vagroNotification.NotificationCount.remove(1);else{if("function"==typeof ShowConfirmPopup)return $(".cnfCancelbtn").css("display","none"),ShowConfirmPopup("Something went wrong.","Ok","",200,500,"",""),$(".spnConfirmTitle").html("Alert"),!1;"function"==typeof ShowPopupAlert?ShowPopupAlert("Something went wrong."):bootbox.alert({title:"Alert",message:"Something went wrong."})}},_vagroNotification.CallNumber=function(e){"function"==typeof sendMobileCallBack&&null!=e&&""!=e?sendMobileCallBack(_vagroNotification.MobileNotType.CallNumber,e,null):location.href="tel:8006549256"},_vagroNotification.isAdvancedUpload=function(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window},_vagroNotification.bindAdvanceUpload=function(){if(_vagroNotification.isAdvancedUpload()){var e=$("div.notification-card-container div.drag-drop-new");e.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("dragover dragenter",function(){"divmissingpersonalid"==$(this).parent().attr("id")?$(this).parent().find("#divpersonaldocs").addClass("drag-drop-active"):"divmissingbusinessid"==$(this).parent().attr("id")?$(this).parent().find("#divbusinessdoc").addClass("drag-drop-active"):e.addClass("drag-drop-active")}).on("dragleave dragend drop",function(){"divmissingpersonalid"==$(this).parent().attr("id")?$(this).parent().find("#divpersonaldocs").removeClass("drag-drop-active"):"divmissingbusinessid"==$(this).parent().attr("id")?$(this).parent().find("#divbusinessdoc").removeClass("drag-drop-active"):e.removeClass("drag-drop-active")}).on("drop",function(t){_vagroNotification.model.glbdroppedFile=t.originalEvent.dataTransfer.files;var i=!0,n=_vagroNotification.model.glbdroppedFile[0];$(this).find(".fileuplink").text(_vagroNotification.model.glbdroppedFile[0].name),null==_vagroNotification.model.glbdroppedFile[0].name.match(/(gif|png|jpg|jpeg|pdf|GIF|PNG|JPG|JPEG|PDF)$/i)&&($(this).closest(".drag-drop-new").addClass("drag-drop-error").removeClass("drag-drop-active"),i=!1);try{if(i){var a=10485760;if(n.size>a){var o=parseFloat(10.24).toFixed(0);$(this).find(".fileuplink").text("File size limit exceeds "+o+" MB."),$(this).closest(".drag-drop-new").addClass("drag-drop-error").removeClass("drag-drop-active"),i=!1}}}catch(t){i=!0}i&&("divmissingpersonalid"==$(this).parent().attr("id")?$(this).parent().find("#divpersonaldocs").addClass("drag-drop-active").removeClass("drag-drop-error"):"divmissingbusinessid"==$(this).parent().attr("id")?$(this).parent().find("#divbusinessdoc").addClass("drag-drop-active").removeClass("drag-drop-error"):e.addClass("drag-drop-active").removeClass("drag-drop-error"),_vagroNotification.uploadFile("#"+$(this).parent(".notification-card:visible").attr("id"),!1))}),e.each(function(t,i){$(this).find("input[type='file']").on("change",function(t){_vagroNotification.model.glbdroppedFile=!1,$(this).parent().find(".fileuplink").text(t.target.files[0].name);var i=!0,n=t.target.files[0];null==t.target.files[0].name.match(/(gif|png|jpg|jpeg|pdf|GIF|PNG|JPG|JPEG|PDF)$/i)&&($(this).closest(".drag-drop-new").addClass("drag-drop-error").removeClass("drag-drop-active"),i=!1);try{if(i){var a=10485760;if(n.size>a){var o=parseFloat(10.24).toFixed(0);$(this).parent().find(".fileuplink").text("File size limit exceeds "+o+" MB."),$(this).closest(".drag-drop-new").addClass("drag-drop-error").removeClass("drag-drop-active"),i=!1}}}catch(t){i=!0}i&&("divmissingpersonalid"==$(this).closest(".docuploadstatus").attr("id")?$(this).closest(".docuploadstatus").find("#divpersonaldocs").addClass("drag-drop-active").removeClass("drag-drop-error"):"divmissingbusinessid"==$(this).closest(".docuploadstatus").attr("id")?$(this).closest(".docuploadstatus").find("#divbusinessdoc").addClass("drag-drop-active").removeClass("drag-drop-error"):e.addClass("drag-drop-active").removeClass("drag-drop-error"),"divmissingpersonalid"==$(this).closest(".docuploadstatus").attr("id")?_vagroNotification.uploadFile("#divmissingpersonalid",!1):"divmissingbusinessid"==$(this).closest(".docuploadstatus").attr("id")?_vagroNotification.uploadFile("#divmissingbusinessid",!1):_vagroNotification.uploadFile("#"+e.parent(".notification-card:visible").attr("id"),!1))})})}},_vagroNotification.uploadFile=function(e,t,i){var n=new FormData,a="";if(!t){if($(e).find(".drag-drop-new").hasClass("drag-drop-error"))return 0;if(0==_vagroNotification.model.glbdroppedFile&&0==$(e).find("input[type='file']").get(0).files.length)return $(e).find(".drag-drop-new").addClass("drag-drop-error"),0;_vagroNotification.model.glbdroppedFile?n.append("file",_vagroNotification.model.glbdroppedFile[0]):n.append("file",$(e).find("input[type='file']").get(0).files[0]),regex=new RegExp("[^.]+$"),a=n.get("file").name.match(regex)[0]}$(e).find(".section-loader").show();var o=$("div.notification-card").data("ApplicationID"),s="";if("#divmissingbusinessid"==e?s="BL":"#divmissingpersonalid"==e?s="DL":"#divother"==e&&(s="CK"),t||"heic"!=a.toLowerCase())t&&(n=new FormData).append("file",i),_vagroNotification.upload("/AjaxFileHandler.ashx?type=zenswipe&ImageType="+s+"&AppID="+o,n,function(t){_vagroNotification.uploadFileSuccess(t,e)},function(t){_vagroNotification.uploadFileFailure(t,e)});else{var r=n.get("file").name.toLowerCase().replace(/\.heic/,".jpeg");getJPEGFileFromHEICWeb(n.get("file"),r,function(t){_vagroNotification.uploadFile(e,!0,t)})}},_vagroNotification.upload=function(e,t,i,n){e=_vagroNotification.model.DomainURL+e,$.ajax({type:"POST",contentType:!1,processData:!1,dataType:"json",url:e,data:t,complete:i,error:n})},_vagroNotification.uploadFileSuccess=function(e,t){var i=JSON.parse(e.responseText).name,n=i.split("|")[0],a=i.split("|")[1];if("2"!=n){if("0"==n){var o=$(t).data(),s=o.CurrentStatus;if(s==_vagroNotification.ApplicationStatus.Other)return $("#spnOtherContent").text(a),$("#hdnOtherContent").val(a),$("#divOtherContent").addClass("mobfilenames"),$(t).find(".section-loader").hide(),void $(".missinginfoformob").find(".section-loader").hide();if(s==_vagroNotification.ApplicationStatus.MissingPersonalANDMissingBusinessId)return $(".notification-div").removeClass("uploaddocopen"),$("body.pronotidevice, html.pronotideviceHtml").removeClass("height100"),void("#divmissingpersonalid"==t?($("#spnPersonalContent").text(a),$("#hdnPersonalContent").val(a),$("#divPersonalContent").addClass("mobfilenames"),$("#ancmissingpersonalid").removeClass("errorclass"),$(t).find(".section-loader").hide(),1==$("body").hasClass("pronotidevice")&&$("html, body").stop().animate({scrollTop:$("#divmissingpersonalid").offset().top},300)):"#divmissingbusinessid"==t&&($("#spnBusinessContent").text(a),$("#hdnBusinessContent").val(a),$("#divBusinessContent").addClass("mobfilenames"),$(t).find(".section-loader").hide(),$("#ancmissingbusinessid").removeClass("errorclass"),1==$("body").hasClass("pronotidevice")&&$("html, body").stop().animate({scrollTop:$("#divmissingbusinessid").offset().top},300)));c({ApplicationID:o.ApplicationID,Status:_vagroNotification.ApplicationStatus.Submitted,CurrentStatus:o.CurrentStatus,Content:a,Reason:"",Content2:""},function(e){$(".notification-div").removeClass("uploaddocopen"),$("body.pronotidevice, html.pronotideviceHtml").removeClass("height100");var i=$(t).height();$(t).html($("#divacceptappointmentsuccess").html()).height(i),_vagroNotification.NotificationCount.remove(1),$(t).animate({opacity:0},2e3,function(){$(t).slideUp()})},function(e){_vagroNotification.uploadFileFailure(e,t)})}else _vagroNotification.uploadFileFailure(e,t,a);_vagroNotification.model.glbdroppedFile=!1}else a&&(alert(a),window.location.reload())},_vagroNotification.uploadFileFailure=function(e,t,i){$(t).find(".drag-drop-active").addClass("drag-drop-error"),void 0!==i&&""!=i.trim()&&i.trim().indexOf("limit exceeds")>-1?($(t).find(".fileuplink").text(i),$(".uploaddocformob").find("span.error").text(i)):($(t).find(".fileuplink").text("Unable to upload file. Please try again."),$(".uploaddocformob").find("span.error").text("Unable to upload file. Please try again.")),$(t).find(".section-loader").hide(),$(".uploaddocformob").find(".section-loader").hide(),$("#divBusinessContent").removeClass("mobfilenames")},_vagroNotification.changeStatus=function(e){var t,i,n="",a=$(e).data(),o=a.CurrentStatus;if(o==_vagroNotification.ApplicationStatus.Other){if(n=$("#divother").find(".notification-text").text(),""==(t=$(e).find("textarea").val()).trim())return void $(e).find("textarea").addClass("errorInput");i=$("#hdnOtherContent").val(),$(e).find(".section-loader").show()}else if(o==_vagroNotification.ApplicationStatus.MissingPersonalANDMissingBusinessId){var s=0;if(""==$("#hdnBusinessContent").val()?(s=0,$("#divbusinessdoc").addClass("drag-drop-error").removeClass("drag-drop-active"),$("#ancmissingbusinessid").addClass("errorclass")):(s=1,t=$("#hdnBusinessContent").val()),""==$("#hdnPersonalContent").val()?(s=0,$("#divpersonaldocs").addClass("drag-drop-error").removeClass("drag-drop-active"),$("#ancmissingpersonalid").addClass("errorclass")):i=$("#hdnPersonalContent").val(),0==s)return;$(".both-loader").show()}c({ApplicationID:a.ApplicationID,Status:_vagroNotification.ApplicationStatus.Submitted,CurrentStatus:o,Content:t,Reason:n,Content2:i},function(t){var i=$(e).height(),n=$("#divacceptappointmentsuccess").clone();n.find(".accepted-notification.accept-success").text("Updated"),_vagroNotification.NotificationCount.remove(1),o==_vagroNotification.ApplicationStatus.MissingPersonalANDMissingBusinessId?($(".both-loader").hide(),$("#divmissingpersonalid").html(n.html()).height(i),$("#divmissingbusinessid").html(n.html()).height(i),$("#divmissingpersonalid").animate({opacity:0},2e3,function(){$("#divmissingpersonalid").slideUp()}),$("#divmissingbusinessid").animate({opacity:0},2e3,function(){$("#divmissingbusinessid").slideUp()})):($(e).html(n.html()).height(i),$(e).animate({opacity:0},2e3,function(){$(e).slideUp()}))},function(e){console.error(e)})},_vagroNotification.VerifyAccount=function(e){var t="/ShopOwner/MerchantAccounts.aspx?merchantid="+e;$("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.VerifyAccount,t+"&isFromMobile=true"):location.href=t},_vagroNotification.UpdateTaxID=function(e){var t="/ShopOwner/MerchantAccounts.aspx?merchantid="+e;$("body").hasClass("pronotidevice")?sendMobileCallBack(_vagroNotification.MobileNotType.UpdateTaxID,t+"&isFromMobile=true"):location.href=t};var l,d=(l=null,function(){var e;return l||(l=Promise.all([$.getScript("/assets/js/UserControl/instantpayout.js"),(e="/assets/css/InstantPayout-PlugIn.css",new Promise(function(t,i){if(document.querySelector('link[href="'+e+'"]'))t();else{var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.onload=t,n.onerror=i,document.head.appendChild(n)}}))])),l});return _vagroNotification.showInstantPayoutPopup=function(e){if(navigator.userAgent.indexOf("com.vagaro.iospro")>-1||navigator.userAgent.indexOf("com.vagaro.androidpro")>-1){message='{"message": "'+e.merchantTokenID+'","messageType": 0,"screenTitle": "","screenType": 0,"navType": 52,"action": "" }';var t=e.callback+"||~||"+message;_vagroNotification.DeviceCallBackFun(t)}},_vagroNotification.setInstantPayoutHeights=function(e){if(navigator.userAgent.indexOf("com.vagaro.iospro")>-1||navigator.userAgent.indexOf("com.vagaro.androidpro")>-1){var t='{"message": "","messageType": 0,"screenTitle": "","screenType": 0,"navType": 0,"action": "151|~|'+e.height+'" }',i=e.callback+"||~||"+t;_vagroNotification.DeviceCallBackFun(i)}},_vagroNotification.DeviceCallBackFun=function(e){navigator.userAgent.toLowerCase().indexOf("safari")<0&&(navigator.userAgent.toLowerCase().indexOf("iphone")>-1||navigator.userAgent.toLowerCase().indexOf("ipad")>-1)?window.location="js-call:myObjectiveCFunction:"+e:navigator.userAgent.toLowerCase().indexOf("android")>-1&&null!=window.JSInterface&&window.JSInterface.CallWSMethod(e)},{renderVMSNotification:function(a,r,c){0==_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif)&&(_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif.finishApp)||(!function(e,t){const i=_vagroNotification.model.CountryId>1,n=i?"https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/contactlesscardreader.png":"https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/freecardreader.png",a=i?"Finish Your Credit Card Processing Application to Take Payments & Get Your Free Contactless Credit Card Reader":"Finish Your Credit Card Processing Application to Take Payments and Get Your Free Reader",o=$("<div>",{id:"divFinishApplication",class:"notification-card-cont signupflownotification clearfix"}),s=$("<div>",{class:"notification-card-inner notification-card notifipaddingleft"}),r=$("<div>",{class:"default-scrollbar"}),c=$("<span>",{class:"notification-signup-img"}).append($("<img>",{id:"imgFinishApplication",src:n,class:"img-responsive"}),$("<div>",{class:"card-header"}).append($("<div>",{class:"upsellnoti-whiteclosebtn font-awesome-normal-pro",html:"&#xf00d;",click:function(){_vagroNotification.closeFinishNotification(this)}}))),l=$("<div>",{class:"new-float-left full-width-100 m-t-8 web-display-small",id:"divFinishApplicationTitle",text:a}),d=$("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",text:"You're almost there! Just answer a few more questions and submit your application to process payments and get paid!"}),u=$("<div>",{class:"new-float-left full-width-100 m-t-12"}),p=$("<div>",{class:"new-float-left full-width-100 new-d-flex notification-modal-link"}),f=$("<button>",{type:"button",id:"btnFinishApplicaion",class:"ghost-button",text:"Finish Application",click:function(){return _vagroNotification.FinishApplication(e.businessId,e.userId,e.accountType,e.step,e.credentialsId,e.status,e.verifyAccountstatus,e.inventoriesCount),!1}});p.append(f),u.append(p),r.append(c,l,d,u),s.append(r),o.append(s),t.append(o)}(a.pendNotif.finishApp,r),_vagroNotification.NotificationCount.add(1)),1!=a.pendNotif.hasFreeReader||_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif.freeReaderNotif)||1!=_vagroNotification.model.CountryId&&(!function(e,t){const i=1==_vagroNotification.model.CountryId;let n=_vagroNotification.model.CDNImageUrl||"";n&&!n.endsWith("/")&&(n+="/");const a=i?n+"Images/emv-reader-notification-light.png":n+"Images/emvReader1.png",o=i?"You have a free reader waiting for you. Choose it now for your mobile device or computer.":"You have a free reader waiting for you. Choose it now for your mobile device.",s=$("<div>",{class:"notification-card notifipaddingleft clearfix",id:"divgetfreecardreader"}),r=$("<div>",{class:"notif-image-div"}).append($("<img>",{src:a,width:"91"}),$("<div>",{class:"notif-text-div"}).append($("<div>",{class:"notification-title",text:"Get a free card reader"}),$("<div>",{class:"link notification-title fr pull-right"}),$("<div>",{class:"notification-text",text:o}))),c=$("<a>",{id:"aGetCardReader",class:"notification-link",href:"javascript:void(0);",text:"Select Card Reader",click:function(){return _vagroNotification.GetFreeCardReader(e.uid,e.bid,e.credID),!1}}),l=$("<a>",{id:"aDismissFreeReader",class:"notification-link",href:"javascript:void(0);",text:"Dismiss",click:function(){return _vagroNotification.cardReaderDismiss(e.euid,e.ebid,e.eCredID),!1},on:{touchstart:function(){return _vagroNotification.cardReaderDismiss(e.euid,e.ebid,e.eCredID),!1}}});s.append(r,c,l),t.append(s)}(a.pendNotif.freeReaderNotif,r),_vagroNotification.NotificationCount.add(1)),!_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif.chargebacks)&&a.pendNotif.chargebacks.length>0&&(!function(e,t){const i=$("<div>",{id:"divChargebackNotification"});e.forEach(function(e){i.append(function(e){let t=_vagroNotification.model.CDNImageUrl||"";t&&!t.endsWith("/")&&(t+="/");e.count=e.merchantTknID+"_"+e.txnNumStr;const i=$("<div>",{class:"notification-card-cont clearfix",id:e.count}),n=$("<div>",{class:"notification-card notifipaddingleft clearfix"}),a=$("<div>",{class:"notif-image-div newvagaropending imgtag"}),o=$("<div>",{class:"alert-notification-circle small border-none"}).append($("<img>",{class:"accepted-checkmark animated bounceIn",src:t+"Images/chargebackBlack2.svg",width:"25",alt:"Chargeback"})),s=$("<div>",{class:"notif-text-div"});s.append($("<div>",{class:"notification-title",css:{display:"inline-block"},text:`Chargeback: ${e.custName} - $${e.cbAmount.toFixed(2)}`})),s.append($("<div>",{class:"notification-text mobprohide",id:`divchargebackMessage_${e.count}`,html:`Customer ${e.custName} has issued a chargeback on transaction #${e.txnNumStr} processed ${e.cbDateStr} for $${e.cbAmount.toFixed(2)}.`})),e.daysLeft>0&&s.append($("<div>",{class:"notification-days",id:`ChargebackTotalDays_${e.count}`,text:`${e.daysLeft} Days Remaining to Dispute`}));a.append(o,s);const r=$("<a>",{class:"notification-link mobprorightarow",href:"#",text:"View and Respond",click:function(t){t.preventDefault(),_vagroNotification.RedirecttoChargeback(`ShopOwner/MerchantAccounts.aspx?merchanttokenid=${e.merchantTknID}&transactionno=${e.txnNo}`)}});return n.append(a,r),i.append(n),i}(e))}),t.append(i)}(a.pendNotif.chargebacks,r),_vagroNotification.NotificationCount.add(1)),_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif.merchantAcctNotif)||(!function(e,a,r){let c=_vagroNotification.model.CDNImageUrl||"";const l={BusinessID:e.bid,ApplicationID:e.appID,CredentialsId:e.credID,Status:e.status,UserID:e.uid,Type:e.type,IsFreeCardReader:e.isFCR,PaymentGatewayType:e.pgType,Reason:e.reason,IsPaymentReceived:e.isPayRecv,CountryId:e.countryId,euid:e.euid,ebid:e.ebid},d={BusinessID:l.BusinessID,ApplicationID:l.ApplicationID,CredentialsId:l.CredentialsId,CurrentStatus:l.Status},u=$("<div>",{id:"divMerchantContainer",class:"notification-card-container clearfix"});a.append(u),function(e){const t=$('<div class="ccnotiwrap uploaddocformob clearfix">\n                <div class= "section-loader" >\n                    <div class="loader">&nbsp;</div>\n                    <div class="loader-img"></div>\n                </div >\n                <div class="ccnotiwrap-scroll bottom80">\n                    <div class="ccnoti-description">To speed up the approval process and avoid being called By our underwriter to get more information about you, please upload one of the following documents: <span class="uploaddocs">Business License, Cosmetology License or Sales Tax Permit</span> if they are available. If you are on a phone or tablet you can take a photo from your phone and then do the upload.</div>\n                    <div class="inputlabel">Document</div>\n                    <div class="fileuploadcontpro">\n                        <input id="uploadFile" placeholder="Choose File" class="fileinputcustom">\n                            <div class="fileUploadnew">\n                                <div class="btn-primary upload-btn-visible">\n                                    <span>Choose File</span>\n                                    <input id="uploadBtn" name="file" class="upload filevalid" type="file" onchange="getFileData(this)">\n                                        <span class="error"></span>\n                                </div>\n                            </div>\n                            <div class="uploadfiletype">\n                                ex: please select file format\n                                <br>\n                                    *.gif, *.png, *.jpg, *.jpeg, *.pdf<br>\n                                        Maximum Allowed size : 10 MB\n                                    </div>\n                            </div>\n                    </div>\n                    <div class="bottombtnrow"><a href="javascript:_vagroNotification.uploadFileMobile(\'missingpersonalandbusiness\');" class="btn-cardreader" title="Upload">Upload</a> </div>\n                </div>');e.append(t)}(r),function(e){const t=$(' <div class="ccnotiwrap padding0 overfloauto missinginfoformob">\n               <div class="section-loader">\n                 <div class="loader">&nbsp;</div>\n                 <div class="loader-img"></div>\n               </div>\n               <div class="ccnotiwrap-scroll bottom80">\n                 <div class="contentbgwhite contentdivother">\n                   <div class="cctextarea">\n                     <textarea class="ccnoti-textarea txtareadesc" maxlength="1000" placeholder="You are missing required info. Please submit your missing info."></textarea>\n                   </div>\n                 </div>\n                 <div class="inputlabel">Document</div>\n                 <div class="fileuploadcontpro margin-bottom20">\n                   <input id="uploadFileOther" placeholder="Choose File" class="fileinputcustom">\n                   <div class="fileUploadnew">\n                     <div class="btn-primary upload-btn-visible">\n                       <span>Choose File</span>\n                       <input id="uploadBtnOther" name="file" class="upload filevalid" type="file" onchange="getFileData(this)">\n                       <span class="error"></span>\n                     </div>\n                   </div>\n                   <div class="uploadfiletype"> ex: please select file format <br> *.gif, *.png, *.jpg, *.jpeg, *.pdf <br> Maximum Allowed size : 10 MB </div>\n                 </div>\n                 <a href="javascript:_vagroNotification.uploadFileMobile(\'other\');" class="btn-cardreader" title="Upload">Upload</a>\n               </div>\n               <div class="bottombtnrow">\n                 <a href="javascript:_vagroNotification.changeStatusMobile(\'#divother\');" class="btn-cardreader" title="Send">Send</a>\n               </div>\n             </div>');e.append(t)}(r);const p={[_vagroNotification.ApplicationStatus.Abandoned]:()=>function(e,t,i){const a=n({id:"divcancelmerchantaccount",cdnImagePath:t,imageSrc:"Incomplete-light@2x.png",imageWidth:90,title:"Incomplete Credit Card Processing App",text:"It looks like you didn't complete all the fields in your application. Resume application to accept credit cards.",buttons:[{id:"aCMFinishAccount",text:"Finish Application",classes:"notification-link",action:function(){return _vagroNotification.FinishMerchantApplication(e.euid,e.ebid,"1",e.ApplicationID),!1}},{id:"aCMCancelAccount",text:"Cancel Application",classes:"notification-link",action:function(){return _vagroNotification.CancelApplication(e.ApplicationID),!1}}]});i.append(a.show()),_vagroNotification.bindAdvanceUpload()}(l,c,u),[_vagroNotification.ApplicationStatus.MissingPersonalId]:()=>t(l,c,u),[_vagroNotification.ApplicationStatus.MissingBusinessId]:()=>i(l,c),[_vagroNotification.ApplicationStatus.Other]:()=>function(e,t,i){const n=$("<div>",{id:"divother",class:"notification-card notifipaddingleft clearfix"});n.append(s()),n.append($("<div>",{class:"notif-image-div"}).append($("<img>",{src:`${t}Images/missing-docs-light@2x.png`,width:90}),$("<div>",{class:"notif-text-div"}).append($("<div>",{class:"notification-title",text:"Missing Credit Card Processing Info"}),$("<div>",{class:"notification-text",html:e.Reason||"You are missing required info. Complete the missing information to finish your application."})))),n.append($("<div>",{class:"missinginfoinputdiv clearfix"}).append($("<div>",{class:"notification-title",text:"Complete missing info"}),$("<textarea>",{class:"notification-textarea margintop0 innertextarea txtareadesc",maxlength:1e3,placeholder:"Your response..."}),$("<div>",{class:"vg-form-done-new"}).text("Thank you! Your submission has been received!"),$("<div>",{class:"vg-form-fail-new"}).text("Oops! Something went wrong while submitting the form"))),n.append(o({id:"divbusinessdocOther",cdnImagePath:t,textClass:"notification-text-other"})),n.append($("<div>",{id:"divOtherContent",style:"display: none;"}).append($("<input>",{type:"hidden",id:"hdnOtherContent",value:""}),$("<span>",{id:"spnOtherContent"}))),n.append($("<a>",{class:"notification-link mobfullnotifi-link mobprohide",href:"javascript:void(0);",text:"Submit",click:function(){_vagroNotification.changeStatus("#divother")}}),$("<a>",{class:"notification-link mobfullnotifi-link showinmobpro",href:"javascript:OpenMissingInfoTextwrite('#divother');",text:"Submit"})),i.append(n.show()),_vagroNotification.bindAdvanceUpload()}(l,c,u),[_vagroNotification.ApplicationStatus.Denied]:()=>function(e,t,i){const a=n({id:"divdenied",cdnImagePath:t,imageSrc:"denied-application-light@2x.png",imageWidth:90,imageAlt:"Denied Application",title:"Credit Card Processing Account Denied",text:`Unfortunately, your account was denied due to "<span>${e.Reason}</span>"`,buttons:[{id:"aDeniedApplication",text:"Dismiss",classes:"notification-link mobfullnotifi-link",action:function(){return _vagroNotification.DismissApplication(e.ApplicationID),!1}}]});i.append(a.show())}(l,c,u),[_vagroNotification.ApplicationStatus.CreditCheckBlock]:()=>function(e,t,i){const a=n({id:"divcreditcheckblock",cdnImagePath:t,imageSrc:"call-vagaro-light@2x.png",imageWidth:90,title:"Contact us to finish application",text:`Apparently you have a security freeze on your credit report. Please call the credit team to release the hold. Reference your merchant ID: <span>${e.Reason}</span>`,buttons:[{id:"aCallNumber",text:"Call (800) 654-9256",classes:"notification-link",action:function(){return _vagroNotification.CallNumber("8006549256"),!1}},{id:"aCreditCheckBlock",text:"Dismiss",classes:"notification-link",action:function(){return _vagroNotification.DismissApplication(e.ApplicationID),!1}}]});i.append(a.show())}(l,c,u),[_vagroNotification.ApplicationStatus.MissingPersonalANDMissingBusinessId]:()=>function(e,n,a){const o=$("<div>",{id:"divmissingpersonalbusinessid"});a.append(o),t(e,n),i(e,n),$("#divmissingbusinessid").addClass("missingbothid").append($("<a>",{id:"ancMissingBoth",class:"notification-link mobfullnotifi-link bothMissingSubmit",href:"javascript:void(0);",text:"Submit",click:function(){_vagroNotification.changeStatus("#divmissingbusinessid")}}).show()),_vagroNotification.bindAdvanceUpload()}(l,c,u)},f=p[l.Status];f&&(f(),$(".notification-card").data(d))}(a.pendNotif.merchantAcctNotif,r,c),_vagroNotification.NotificationCount.add(1)),!_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif.verifyAcctData)&&a.pendNotif.verifyAcctData.length>0&&(!function(e,t){const i=$("<div>",{id:"divverifyaccount",class:"notification-account"});e.forEach(function(e){i.append(function(e){var t,i,n=$("<div>").addClass("notify-block"),a=$("<div>").addClass("notify-inner-block");n.append(a),t=4==e.editType?$("<div>").addClass("notify-title notify-alert-title").text("More Info Needed to Continue Accepting Payments"):$("<div>").addClass("notify-title").text("Verify Your Account");switch(a.append(t),e.editType){case 2:i=$("<div>").addClass("notify-content").text("Legal Name does not match with IRS records.");break;case 3:i=$("<div>").addClass("notify-content").text("Please update your bank account, funds on hold.");break;case 4:i=$("<div>").addClass("notify-content").text('Per a new government mandate, additional information is required to continue accepting credit card payments. Click "Update Information" to update your information by March 10th.');break;default:i=$("<div>").addClass("notify-content").html('A failed Deposit occurs when a deposit fails to transfer into your or an employee\'s bank account and can happen for various reason, <br />including: <ul><li style="list-style:disc outside none; display:list-item;margin-left:28px;">Incorrect banking information.</li><li style="list-style:disc outside none; display:list-item; margin-left:28px;">A mismatch between the legal business name and bank account name.</li><li style="list-style:disc outside none; display:list-item; margin-left:28px;">The bank account being closed or frozen.</li></ul>Go to Merchant Account page to resolve this issue.')}a.append(i);var o=$("<div>").addClass("notify-botton");n.append(o);var s=4==e.editType?"Update Information":"Verify Account",r=$("<a>").attr("id","averifyaccount"+e.merchantId).addClass("notification-link mobfullnotifi-link").attr("href","javascript:void(0);").text(s);return r.on("click",function(){_vagroNotification.VerifyAccount(e.merchantId)}),o.append(r),n}(e))}),t.append(i)}(a.pendNotif.verifyAcctData,r),_vagroNotification.NotificationCount.add(a.pendNotif.verifyAcctData.length)),!_vagroNotification.isNullOrUndefineOrBlank(a.pendNotif.updateTaxData)&&a.pendNotif.updateTaxData.length>0&&(!function(e,t){const i=$("<div>",{id:"divTaxID"});e.forEach(function(e){i.append(function(e){const t=$("<div>",{class:"notify-block"}),i=$("<div>",{class:"notify-inner-block"});i.append($("<div>",{class:"notify-title",text:"Resolve an Issue with your Merchant Application"}));let n="";switch(e.taxidNotificationType){case 1:n="Your name/number must match what is on your Social Security card.";break;case 2:n="Employer Identification Number (EIN) and business name must match IRS record.";break;default:n="Your name/number must match what is on your Social Security card and Employer Identification Number (EIN) and business name must match IRS record."}i.append($("<div>",{class:"notify-content",text:n}));const a=$("<div>",{class:"notify-botton"}).append($("<a>",{id:`aupdateTaxID${e.merchantId}`,class:"notification-link mobfullnotifi-link",href:"javascript:void(0);",text:"Update Application",click:function(){_vagroNotification.UpdateTaxID(e.merchantId)}}));return t.append(i,a),t}(e))}),t.append(i)}(a.pendNotif.updateTaxData,r),_vagroNotification.NotificationCount.add(a.pendNotif.updateTaxData.length))),0==_vagroNotification.isNullOrUndefineOrBlank(a.bizProg)&&(null!=a.bizProg.insMerchantInfoList&&a.bizProg.insMerchantInfoList.length>0&&function(e,t){const i=$("<div>",{id:"dvInstanPayoutCardNotification"});t.append(i),d().then(function(){const t=e.map(e=>({MerchantTokenId:e.merchantTokenID,NickName:e.nickName}));RequestInstantData={},RequestInstantData={MerchantTokenIDs:t,PlatformType:"2",PageViewType:"1",ReportType:"8",Location:"3",UserId:_vagroNotification.model.UserId,BusinessId:_vagroNotification.model.BusinessId},InsPayoutPlugin=$("#dvInstanPayoutCardNotification").InstantPayoutPlugin({RequestInstantData:RequestInstantData}),InsPayoutPlugin.Init()})}(a.bizProg.insMerchantInfoList,r),function(t,i){var n=t.capitalAmt;if(_vagroNotification.isNullOrUndefineOrBlank(t)||0==t.isAllowCapital||0==_vagroNotification.getRoleRightsByPage("Credit Card Processing").CanView||_vagroNotification.model.UserType==_vagroNotification.UserTypeEnum.ShopAdmin||t.vcAppStatus==_vagroNotification.model.VagaroCapitalStatus.InProgress||t.vcAppStatus==_vagroNotification.model.VagaroCapitalStatus.Repaid)return;var a={CapitalAmount:_vagroNotification.isNullOrUndefineOrBlank(n)?parseFloat(3e5).toLocaleString("en-US"):parseFloat(n).toLocaleString("en-US"),CurrencySymbol:_vagroNotification.model.CurrencySymbol,EmojiCode:"2"==_vagroNotification.model.CountryId?"&#128183;":"&#128176;",UserName:_vagroNotification.isNullOrUndefineOrBlank(t.username)?"":t.username.charAt(0).toUpperCase()+t.username.slice(1),BankName:_vagroNotification.isNullOrUndefineOrBlank(t.bankName)?"--":t.bankName,BankNumber:_vagroNotification.isNullOrUndefineOrBlank(t.bankNo)?"--":t.bankNo,merchanttokenid:_vagroNotification.isNullOrUndefineOrBlank(t.merchantToken)?"--":t.merchantToken,OfferType:_vagroNotification.isNullOrUndefineOrBlank(t.offerType)?_vagroNotification.model.CapitalOfferType.Eligible:t.offerType};if(0==t.ccMerchant||_vagroNotification.isNullOrUndefineOrBlank(t.ccMerchant)||_vagroNotification.isNullOrUndefineOrBlank(t.vmsCreatedOn))return void(a.status=_vagroNotification.model.VagaroCapitalStatus.NoVMS);if(a.DaysLeft=_vagroNotification.isNullOrUndefineOrBlank(t.daysLeft)?0:parseInt(t.daysLeft),a.DaysLeft>0)a.status=_vagroNotification.model.VagaroCapitalStatus.VMSProcessing,a.CapitalDate=t.capitalDate;else{if(a.DaysLeft<0&&_vagroNotification.isNullOrUndefineOrBlank(t.offerAmt))return;switch(t.vcAppStatus){case _vagroNotification.model.VCApplicationStatus.Submitted:case _vagroNotification.model.VCApplicationStatus.Declined:case _vagroNotification.model.VCApplicationStatus.Closed:return void _vagroNotification.CloseVagaroCapitalNotification();case _vagroNotification.model.VCApplicationStatus.Approved:a.status=_vagroNotification.model.VagaroCapitalStatus.VCApprove;break;case _vagroNotification.model.VCApplicationStatus.FundTransferred:a.status=_vagroNotification.model.VagaroCapitalStatus.VCFundTransferred;break;case _vagroNotification.model.VCApplicationStatus.Renewed:a.status=_vagroNotification.model.VagaroCapitalStatus.VCRenewed;break;default:a.status=_vagroNotification.model.VagaroCapitalStatus.VCOffered}a.CapitalAmount=_vagroNotification.isNullOrUndefineOrBlank(t.offerAmt)?0:parseFloat(t.offerAmt).toLocaleString("en-US")}a.status!==_vagroNotification.model.VagaroCapitalStatus.VCFundTransferred||!_vagroNotification.isNullOrUndefineOrBlank(t.canRenew)&&!1!==t.canRenew?t.vcAppStatus===_vagroNotification.model.VCApplicationStatus.Renewed&&(a.CapitalAmount=""):a.CapitalAmount=_vagroNotification.isNullOrUndefineOrBlank(t.acceptedAmt)?a.CapitalAmount:parseFloat(t.acceptedAmt).toLocaleString("en-US");var o=_vagroNotification.getCookie(_vagroNotification.storageKey.VCCookieName);if(!_vagroNotification.isNullOrUndefineOrBlank(o)&&o.includes(a.status))return;((a.status===_vagroNotification.model.VagaroCapitalStatus.VCApprove||a.status===_vagroNotification.model.VagaroCapitalStatus.VCFundTransferred&&_vagroNotification.isNullOrUndefineOrBlank(t.dismissedOn)||a.status===_vagroNotification.model.VagaroCapitalStatus.VCOffered)&&!_vagroNotification.isNullOrUndefineOrBlank(a.CapitalAmount)&&parseInt(a.CapitalAmount.replace(/,/g,""))>0||[_vagroNotification.model.VagaroCapitalStatus.VCRenewed,_vagroNotification.model.VagaroCapitalStatus.VMSProcessing,_vagroNotification.model.VagaroCapitalStatus.NoVMS].includes(a.status))&&function(t,i){const{status:n,UserName:a,CapitalAmount:o,CapitalDate:s,OfferType:r}=t,c=_vagroNotification.model.VagaroCapitalStatus,l=$('<div class="notification-card notifipaddingleftprogess vagarocapitalnotification clearfix" id="divVagaroCapitalNotifications"></div>'),d=$('<div class="notification-card-cont signupflownotification clearfix" id="vagarocapitalnotification"></div>'),u=$('<div class="notification-card-inner notification-card notifipaddingleft"><div class="default-scrollbar"></div></div>'),p=$('<div class="notification-signup-img vc-notification-height newCapitalNotification"></div>'),f=u.find(".default-scrollbar"),h=$('<div class="new-float-left full-width-100 noticationtxtdetails"></div>'),m=$('<div class="new-float-left full-width-100 noticationInnerCenter"></div>');switch(m.append(function(){const e="$"===_vagroNotification.model.CurrencySymbol?"us-region":"uk-region",t="$"===_vagroNotification.model.CurrencySymbol?"https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/dollarcurrencysymbol.svg":"https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/poundcurrencysymbol.svg";return $(`\n            <div class="new-float-left full-width-100 CapitalDollarLogo ${e}">\n                <img class="width48" src="${t}" alt="" title="" />\n            </div>\n        `)}()),n){case c.NoVMS:m.append(`<div class="new-float-left full-width-100 CapitalNotitxt capitaltextbig">${a}, Your Business Could be Eligible for another Cash Advance</div>`);break;case c.VMSProcessing:const t=_vagroNotification.countryDateFormat(s,_vagroNotification.model.VagaroCountryDateFormat.SmallDate,_vagroNotification.model.CountryId);m.append(`<div class="new-float-left full-width-100 CapitalNotitxt">${a}, you could be eligible<br />for business capital on</div>`),m.append(e(t));break;case c.VCApprove:m.append(`<div class="new-float-left full-width-100 CapitalNotitxt">${a},<br />You are approved for</div>`),m.append(e(`${_vagroNotification.model.CurrencySymbol}${o}`));break;case c.VCFundTransferred:m.append(`<div class="new-float-left full-width-100 CapitalNotitxt">Congrats ${a}!<br />Your Funds are in Your Bank Account</div>`),m.append(e(`${_vagroNotification.model.CurrencySymbol}${o}`));break;case c.VCRenewed:m.append(`<div class="new-float-left full-width-100 CapitalNotitxt"><span class="capitaltextbig">${a}, You could be eligible for another cash advance</span></div>`);break;case c.VCOffered:r===_vagroNotification.model.CapitalOfferType.PreApproved?m.append(`<div class="new-float-left full-width-100 CapitalNotitxt">Congrats ${a}!<br />You're pre-approved for up to</div>`):m.append(`<div class="new-float-left full-width-100 CapitalNotitxt">${a}, You could be<br /> eligible for up to</div>`),m.append(e(`${_vagroNotification.model.CurrencySymbol}${o}`))}m.append($('\n            <div class="new-float-left full-width-100 CapitalLogoNotification">\n                <img class="width100" src="https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/Images/vCapitalIcon.svg" alt="" title="" />\n            </div>\n        ')),h.append(m),p.append(h);const g=$('<div class="card-header"></div>').append(function(e){const t=e.status,i=$('<div class="upsellnoti-whiteclosebtn"></div>').on("click",()=>{t===_vagroNotification.model.VagaroCapitalStatus.VCFundTransferred?_vagroNotification.RemoveCapitalNotification(e.merchanttokenid):_vagroNotification.SetCookiesForVCAfterRemove(t)});return i.append('\n            <svg width="16" height="16" viewBox="0 0 16 16" fill="none">\n                <circle cx="8" cy="8" r="6" fill="#333333" />\n                <path d="M0 8C0 3.59375 3.5625 0 8 0C12.4062 0 16 3.59375 16 8C16 12.4375 12.4062 16 8 16C3.5625 16 0 12.4375 0 8ZM5.46875 6.53125L6.9375 8L5.46875 9.46875C5.15625 9.78125 5.15625 10.25 5.46875 10.5312C5.75 10.8438 6.21875 10.8438 6.5 10.5312L7.96875 9.0625L9.46875 10.5312C9.75 10.8438 10.2188 10.8438 10.5 10.5312C10.8125 10.25 10.8125 9.78125 10.5 9.46875L9.03125 8L10.5 6.53125C10.8125 6.25 10.8125 5.78125 10.5 5.46875C10.2188 5.1875 9.75 5.1875 9.46875 5.46875L7.96875 6.96875L6.5 5.46875C6.21875 5.1875 5.75 5.1875 5.46875 5.46875C5.15625 5.78125 5.15625 6.25 5.46875 6.53125Z" fill="#F7F1EB" />\n            </svg>\n        '),i}(t));p.append(g),f.append(p),function(e,t){const i=_vagroNotification.model.VagaroCapitalStatus,n=_vagroNotification.model.CapitalOfferType,a=e.status;a===i.VCApprove?t.append($("<div>",{class:"new-float-left full-width-100 m-t-16 web-subheading-font2",html:"&#9989;Vagaro Capital Funding Approved&#9989;"}),$("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",html:`Congratulations ${e.UserName}! You have been approved for funding with Vagaro Capital. ${_vagroNotification.model.CurrencySymbol}${e.CapitalAmount} will be transferred into your bank account in 2 business days.`})):a===i.VCFundTransferred?t.append($("<div>",{class:"new-float-left full-width-100 m-t-16 web-subheading-font2",html:"Vagaro Capital Funds Transferred&#127881;"}),$("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",html:`Congratulations ${e.UserName}! Your funds of ${_vagroNotification.model.CurrencySymbol}${e.CapitalAmount} have been transferred into your bank account ${e.BankName} **** ${e.BankNumber} and are ready for you to utilize for your business.`})):a===i.VCRenewed?t.append($("<div>",{class:"new-float-left full-width-100 m-t-16 web-subheading-font2",html:`${e.EmojiCode}Renew Your Funding${e.EmojiCode}`}),$("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",text:"You are now eligible for to apply for additional funding with Vagaro Capital. Apply today and get your funding within 2 business days."})):a===i.VMSProcessing?t.append($("<div>",{class:"new-float-left full-width-100 m-t-16 web-subheading-font2",html:`${e.EmojiCode}Keep Growing Your Funding Amount${e.EmojiCode}`}),$("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",text:"Pro Tip: The more credit card payments you process, the bigger your funding amount will be."})):a===i.VCOffered?(t.append($("<div>",{class:"new-float-left full-width-100 m-t-16 web-subheading-font2",html:`${e.EmojiCode}Apply For Funding With Vagaro Capital${e.EmojiCode}`})),e.OfferType===n.PreApproved?t.append($("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",html:`You are now pre-approved for a cash advance of up to ${_vagroNotification.model.CurrencySymbol}${e.CapitalAmount} with Vagaro Capital. Apply today and get your funding within 2 business days.`})):t.append($("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",html:`You are now eligible for a cash advance of up to ${_vagroNotification.model.CurrencySymbol}${e.CapitalAmount} with Vagaro Capital. Apply today and get your funding within 2 business days.`}))):t.append($("<div>",{class:"new-float-left full-width-100 m-t-16 web-subheading-font2",html:`${e.EmojiCode}Apply For Funding With Vagaro Capital${e.EmojiCode}`}),$("<div>",{class:"new-float-left full-width-100 m-t-4 web-body-font-secondary",html:`Your business could be eligible for a cash advance of up to ${_vagroNotification.model.CurrencySymbol}${e.CapitalAmount} with Vagaro Capital. Apply today and get your funding within 2 business days.`}));a!==i.VCApprove&&a!==i.VCFundTransferred&&t.append($("<div>",{class:"new-float-left full-width-100 m-t-12 learnmoretxt"}).append($("<div>",{class:"new-float-left full-width-100 new-d-flex notification-modal-link"}).append($("<button>",{type:"button",class:"ghost-button"}).append($("<a>",{href:"javascript:void(0);",onclick:"_vagroNotification.RedirectVagaroCapitalNotification()",text:"Learn More"})))))}(t,f),d.append(u),l.append(d),i.append(l),_vagroNotification.NotificationCount.add(1)}(a,i)}(a.bizProg,r))}}}(),_gustoNotification=function(){function e(e,t){const i=$("<div>",{class:"notification-card notifipaddingleft clearfix mobprocardpadrightarrow",id:e.id}),n=$("<div>",{class:"notif-image-div paddingleft0 pos-relative"});n.append($("<div>",{class:"alert-notification-circle small"}).append($("<div>",{class:"font-awesome-normal-pro",html:"&#xf0d6;"})));const a=$("<div>",{class:"notif-text-div"});"Verify Bank Account"!==e.title&&a.append($("<div>",{class:"upsellnoti-whiteclosebtn font-awesome-normal-pro",html:"&#xf00d;",click:()=>_vagroNotification.GustoNotificationOperation(e.id,"",1)})),a.append($("<div>",{class:"notification-title space-bottom-10",text:e.title}),$("<div>",{class:"notification-text mobprohide",text:e.message})),n.append(a);var o=null!=e&&"payroll.processing_failed"==e.eventType?"ReSubmit":"View";const s=$("<div>",{class:"profile-status-parent-div"}).append($("<input>",{type:"hidden",id:"Hidden1"}),$("<a>",{class:"notification-link mobprorightarow",href:"javascript:void(0)",text:o,click:()=>_vagroNotification.GustoNotificationOperation(e.id,e.redirectionUrl,2)}));return i.append(n,s),t.append(i),t}function t(e,t){callApi(_vagroNotification.ApiURLEnum.UpdateGustoNotification,e,_vagroNotification.APIMethodType.POST,t,function(e){})}function i(t){if(200===t.status&&1e3===t.responseCode)if(null!=t.data&&t.data.length>0){const i=$("#dvGustoWebhookNotificationDetails");i.html(""),t.data.forEach(function(t){e(t,i)}),_vagroNotification.NotificationCount.remove(1)}else $("#dvGustoWebhookNotificationDetails").remove(),_vagroNotification.NotificationCount.remove(1)}function n(e){"function"==typeof sendMobileCallBack?sendMobileCallBack(_vagroNotification.MobileNotType.VagaroPayroll,e):location.href=e}function a(e,t){var i=null!=navigator.userAgent.toLowerCase()?navigator.userAgent.toLowerCase():"",n=$("#btnMoreContent_"+e),a=$("#pMoreContent_"+e),o=$("#hMoreContent_"+e).height()+20,s=$("#hMoreContent_"+e+" span").html();(i.indexOf("com.vagaro.androidpro")>-1||i.indexOf("com.vagaro.iospro")>-1||s.length>400)&&(o+=20),n.hasClass("active")?(a.animate({height:"23px"},200),n.removeClass("active"),n.html("More")):(a.animate({height:o+"px"},200),n.addClass("active"),n.html("Less")),t.stopPropagation(),t.preventDefault()}function o(e,t){let i=t.ptOid,n=decodeURIComponent(encodeURIComponent(t.employeeName)),a=t.strFromDate,o=t.ptoEmployeeId,s=t.isModifiy,r=t.ruleID>0?t.ruleID:t.appointmentID,c=t.ruleID,l=t.paidTimeOffPolicyId,d=t.timeOffRequestId;if(1==e){if("false"==s)return void _vagroNotification.ShowHideWarningMessageCommon("Sorry, You don't have permission to modify this.",4e3);if($("#ptorequestapprove").data("ptoid",i),_vagroNotification.model.IsMobileWebView||_vagroNotification.model.IsTableWebView)SendMobileCallBackOfPTO(1,t);else if(0==parseInt(l))$("#ptorequestapprove").modal("show"),$(".ptotimeoffsummary").css("display","none"),$("#lblempname").text(n),setTimeout(function(){$(".modal:visible").each(function(e,t){centerModal(t)})},150);else{$("#lblempname").text(n);let e=null!=d&&null!=d&&""!=d?d:0,t={AppointmentId:null==r||null==r||""==r||"0"==r?e:r,RuleID:c,SelectedDate:moment(new Date(a)).format("YYYY-MM-DD"),IsReccuring:1*c>0,IsPTO:(null==r||null==r||""==r||"0"==r)&&parseInt(e)>0};callApi(_vagroNotification.ApiURLEnum.GetPersonalOffDetail,t,_vagroNotification.APIMethodType.POST,function(e){200===e.status&&1e3===e.responseCode&&null!=e.data&&function(e){if($("#ptorequestapprove").data("encSPId",e.encServiceProviderId),$("#ptorequestapprove").data("isPayrollPaid",e.isPayrollPaid),_vagroNotification.CancelApproveDenyRequest(2),$("#ptorequestapprove").modal("show"),$(".ptotimeoffsummary").css("display","block"),void 0!==e.ptoRequestID&&null!=e.ptoRequestID&&e.ptoRequestID>0){var t=60*e.actualPTOBalance;$("#ntDisplayCurrentBalance").text(Math.floor(t/60)+" hrs "),$("#ntDisplayCurrentBalancemn").text(Math.round(t%60)+" min");var i=60*e.futureApproveHours;$("#ntDisplayFutureApproveBalance").text(Math.floor(i/60)+" hrs "),$("#ntDisplayFutureApproveBalancemn").text(Math.round(i%60)+" min");var n=Math.floor(e.totalRequestedMin/60),a=Math.round(e.totalRequestedMin%60);$("#ntDisplayRequestBalance").text(n+" hrs "),$("#ntDisplayRequestBalancemn").text(a+" min");var o=e.totalRequestedMin/60,s=60*(e.actualPTOBalance-o-e.futureApproveHours);$("#ntDisplayRemainingBalance").text(Math.floor(s/60)+" hrs "),$("#ntDisplayRemainingBalancemn").text(Math.round(s%60)+" min")}$(".modal-backdrop").removeClass("in"),setTimeout(function(){$(".modal:visible").each(function(e,t){centerModal(t)})},150)}(e.data)},function(e){})}}else if(2==e){if("false"==s)return void _vagroNotification.ShowHideWarningMessageCommon("Sorry, You don't have permission to modify this.",4e3);$("#ptorequestdecline").data("ptoid",i),_vagroNotification.model.IsMobileWebView||_vagroNotification.model.IsTableWebView?SendMobileCallBackOfPTO(2,t):(_vagroNotification.CancelApproveDenyRequest(1),$("#txtdenyReason").val("").focus().removeClass("errorInput"),$("#divDenyReasonMsg").text("").hide(),$("#ptorequestdecline").modal("show"),$(".modal-backdrop").removeClass("in"),setTimeout(function(){$(".modal:visible").each(function(e,t){centerModal(t)})},150))}else 3==e&&(_vagroNotification.model.IsMobileWebView||_vagroNotification.model.IsTableWebView?SendMobileCallBackOfPTO(3,t):(_vagroNotification.CancelApproveDenyRequest(1),_vagroNotification.CancelApproveDenyRequest(2),location.href="/ShopOwner/Calendar.aspx?dt="+a+"&sp="+o+"&aptId=ParentAppId_"+r))}function s(e){return Array.isArray(e)?e.map(s):null!==e&&"object"==typeof e?Object.entries(e).reduce((e,[t,i])=>{var n;return e[(n=t).charAt(0).toUpperCase()+n.slice(1)]=s(i),e},{}):e}function r(e){$container=$("<div>",{id:e.id,class:"notification-card-cont clearfix required-employee",style:"display: none;"});const i=$("<div>",{class:"notification-card notifipaddingleft clearfix mobprocardpadrightarrow"}),n=$("<div>",{class:"notif-image-div paddingleft0"}).append($("<div>",{class:"alert-notification-circle small"}).append($("<div>",{class:"font-awesome-normal-pro"}).html("&#xf0d6;")),$("<div>",{class:"notif-text-div"}).append($("<div>",{class:"notification-title",text:e.title}),$("<div>",{class:"notification-text"+(e.mobileHideDescription?" mobprohide":""),text:e.description}))),a=$("<div>",{class:"profile-status-parent-div"}),o=$("<a>",{id:"alink_"+e.type,class:"notification-link mobprorightarow",href:"#",text:e.actionText}).data("action-data",e.actionData||{});return o.on("click",function(e){e.preventDefault();!function(e){if(2===e.type){t({GustoWebHookID:"",type:e.type},function(){!function(e){if(1==e)"function"==typeof sendMobileCallBack?sendMobileCallBack(_vagroNotification.MobileNotType.EmployeeSetupInVagaroPayroll,"/merchants/reports/employees/payrollconfiguration",null):location.href="/merchants/reports/employees/payrollconfiguration";else if(2==e){const e=_vagroNotification.model.DomainURL+"merchants/reports/employees/payrollconfiguration";"function"==typeof sendMobileCallBack?sendMobileCallBack(_vagroNotification.MobileNotType.EmployeeSetupInVagaroPayroll,e,null):location.href="/merchants/reports/employees/payrollconfiguration"}}(e.type)})}else e.viewLink&&("function"==typeof sendMobileCallBack?sendMobileCallBack(_vagroNotification.MobileNotType.EmployeeSetupInVagaroPayroll,e.viewLink,null):location.href=e.viewLink)}($(this).data("action-data"))}),a.append(o),i.append(n,a),$container.append(i),$container}return _vagroNotification.GustoNotificationOperation=function(e,a,o){_vagroNotification.model.IsAdmin?2==o&&n(a):1==o?t({GustoWebHookID:e,type:parseInt(1)},i):2==o&&n(a)},SendMobileCallBackOfPTO=function(e,t){if(3==e){if(null!=t){var i={eventAction:1,Customerid:0};i.strAppServiceProviderId=t.ptoEmployeeId.toString(),i.strAppServiceProviderName=t.employeeName;var n=new Date(t.fromDate);n.setMinutes(n.getMinutes()+(new Date).getTimezoneOffset()),i.strAppDate=n.newformat("MM/dd/yyyy"),i.strAppTime=n.getHours().zp(2)+":"+n.getMinutes().zp(2),i.businessIds=_vagroNotification.model.BusinessId,sendMobileCallBack(_vagroNotification.MobileNotType.ViewDenyPaidTimeOffRequest,JSON.stringify(i).replace(/\\\"/g,'"').replace(/"/g,'\\"'))}}else{t.Reason="",t.IsApprove=e;var a=s(t);sendMobileCallBack(_vagroNotification.MobileNotType.ApproveDenyPaidTimeOffRequest,JSON.stringify(a).replace(/\\\"/g,'"').replace(/"/g,'\\"'))}},_vagroNotification.CancelApproveDenyRequest=function(e){1==e?$("#ptorequestapprove").modal("hide"):2==e&&$("#ptorequestdecline").modal("hide")},_vagroNotification.DenyRequestValidation=function(){null!=$("#txtdenyReason").val()&&""!=$("#txtdenyReason").val().trim()&&($("#txtdenyReason").removeClass("errorInput"),$("#divDenyReasonMsg").text("").hide())},_vagroNotification.ApproveDenyRequest=function(e){if($("#divDenyReasonMsg").text("").hide(),$("#txtdenyReason").removeClass("errorInput"),e>0){if(2==e&&_vagroNotification.isNullOrUndefineOrBlank($("#txtdenyReason").val().trim()))return $("#txtdenyReason").addClass("errorInput"),void $("#divDenyReasonMsg").text("required").show();if($("#txtdenyReason").val().trim().length>1e3)return $("#divDenyReasonMsg").text("Maximum 1000 characters allowed for decline").show(),void $("#txtdenyReason").addClass("errorInput");$("#ptopendingrequest").find(".section-loader").show(),2==e&&$("#ptorequestdecline").modal("hide");let n=1==e?$("#ptorequestapprove").data("ptoid"):$("#ptorequestdecline").data("ptoid");var t=JSON.parse($("#divPTO_"+n).attr("data-AppointmentDetails"));if(void 0!==t&&""!=t&&null!=t){var i={};i.EmployeeId=t.ptoEmployeeId,i.pTOId=t.ptOid,i.ApprovedHours=t.requestedHours,i.Reason=$("#txtdenyReason").val(),i.StartDate=new Date(parseInt(t.fromDate.substr(6))),i.EndDate=new Date(parseInt(t.toDate.substr(6))),i.Action=e,i.StartTime=t.startTime,i.EndTime=t.endTime,i.Conflicts=t.conflicts,callApi(_vagroNotification.ApiURLEnum.TimeOffRequestApprovedOrDeny,i,_vagroNotification.APIMethodType.POST,function(e){200===e.status&&1e3===e.responseCode&&null!=e.data&&function(e){if($("#ptopendingrequest").find(".section-loader").hide(),null!=e){if(function(){const e=$("#liTimeOffRequest .notification-number");let t=parseInt(e.text())||0;if(1===t)$("#liTimeOffRequest").remove(),_vagroNotification.NotificationCount.remove(1);else{t-=1,t<=0?$("#liTimeOffRequest").remove():e.text(t)}}(),1==e.action){_vagroNotification.ShowHideDoneMessageCommon("You have approved "+$("#lblempname").text()+" time off request.",2e3);let e=$("#ptorequestapprove").data("isPayrollPaid");if(_vagroNotification.isNullOrUndefineOrBlank(e)&&("true"==e||1==e)){let e=$("#ptorequestapprove").data("ptoid"),t=$("#divPTO_"+e).attr("data-AppointmentDetails");$("#npPtoRunOffcyclePayroll").attr("data-AppointmentDetails",t),$("#npPtoRunOffcyclePayroll").modal("show"),$("#nplblptoempnm").text($("#lblempname").text()),setTimeout(function(){$(".modal:visible").each(function(e,t){centerModal(t)})},150)}}else _vagroNotification.ShowHideDoneMessageCommon("You have declined "+$("#lblempname").text()+" time off request.",2e3);t=e.ptoId,$("#divPTO_"+t).animate({opacity:0},1e3,function(){$("#divPTO_"+t).slideUp(),$("#divPTO_"+t).remove();const e=$("#liTimeOffRequest .notification-number");0==(parseInt(e.text())||0)&&$(".notiback-link").click()}),_vagroNotification.handleCalendarRefresh()}else _vagroNotification.ShowHideFailedMessageCommon("Something went wrong please try again",2e3);var t}(e.data)},function(e){})}}},_vagroNotification.CancelRunOffcyclePopup=function(){$("#npPtoRunOffcyclePayroll").modal("hide")},_vagroNotification.RunOffcyclePayroll=function(){var e=$("#ptorequestapprove").data("encSPId");if("0"!=e){let t=JSON.parse($("#npPtoRunOffcyclePayroll").attr("data-AppointmentDetails")),i=null!=t&&null!=t.strFromDate&&null!=t.strFromDate?moment(t.strFromDate).format("YYYY-MM-DDTHH:mm:ss"):"",n=null!=t&&null!=t.strToDate&&null!=t.strToDate?moment(t.strToDate).format("YYYY-MM-DDTHH:mm:ss"):"";window.top.location.href=`/merchants/reports/employees/payroll?offcyclepayrollid=${e}&ptostartdate=${i}&ptoenddate=${n}`,$("#npPtoRunOffcyclePayroll").modal("hide")}},{renderGustoNotification:function(t,i){0==_vagroNotification.isNullOrUndefineOrBlank(t.pendNotif)&&(!_vagroNotification.isNullOrUndefineOrBlank(t.pendNotif?.gustoPendingNotifs)&&t.pendNotif.gustoPendingNotifs.length>0&&function(t,i){const n=$("<div>",{class:"notification-card-cont clearfix required-employee",id:"dvGustoWebhookNotificationDetails"});t.forEach(function(t){e(t,n)}),i.append(n),_vagroNotification.NotificationCount.add(t.length)}(t.pendNotif.gustoPendingNotifs,i),_vagroNotification.isNullOrUndefineOrBlank(t.pendNotif)||function(e,t){const i={VAGARO_SETUP:"vagaro_setup",EMPLOYEE_SIGN:"employee_sign",ADD_PAYSTUBS:"add_paystubs"};let n=0;_vagroNotification.isNullOrUndefineOrBlank(e.empInviteLink)||(n++,t.append(r({type:i.VAGARO_SETUP,id:"divVagaroPayrollSetup",title:"Setup Payroll",description:"Let's get you paid! Complete a few simple steps and get your first paycheck.",actionText:"Get Started",actionData:{type:null,viewLink:e.empInviteLink}}).show()));_vagroNotification.isNullOrUndefineOrBlank(e.empSignLink)||(n++,t.append(r({type:i.EMPLOYEE_SIGN,id:"divEmployeeSignPendding",title:"Sign You Forms",description:"Let's get you paid! Complete a few simple steps and get your first paycheck.",actionText:"Get Started",actionData:{type:null,viewLink:e.empSignLink},mobileHideDescription:!0}).show()));e.addPaystubs&&(n++,t.append(r({type:i.ADD_PAYSTUBS,id:"divAddemployeePaystubs",title:"Add Employee Paystubs",description:"To run payroll for your business, you need to provide previous paystub details for your current and dismissed employees.",actionText:"Get Started",actionData:{type:2}}).show()));_vagroNotification.NotificationCount.add(n)}(t.pendNotif,i))},renderPersonalTimeOffNotification:function(e){if(!e||!e.ptOid)return console.error("Invalid PTO data: Missing required fields"),$("<div>");const t=$("<div>",{class:"notification-card clearfix",id:"divPTO_"+e.ptOid,"data-AppointmentDetails":JSON.stringify(e)}),i=$("<div>",{class:"appointment-viewblk"}),n=$("<div>",{class:"appointmobpropad"});n.append($("<div>",{class:"p-left0 notification-title marginbtm16",text:e.employeeName||"Employee"}));const s=$("<div>",{class:"pto-notification-text",text:_vagroNotification.countryDateFormat(e.strFromDate,_vagroNotification.model.VagaroCountryDateFormat.SmallDate,_vagroNotification.model.CountryId)});if(e.isRecurring&&e.strFromDate!==e.strToDate&&s.append(" - "+_vagroNotification.countryDateFormat(e.strToDate,_vagroNotification.model.VagaroCountryDateFormat.SmallDate,_vagroNotification.model.CountryId)),n.append(s),n.append($("<div>",{class:"pto-notification-text",text:`${e.startTime} - ${e.endTime} (${e.requestedHours} hrs)`})),e.conflicts>0&&n.append($("<div>",{class:"pto-notification-conflict-text marginbtm16",text:`${e.conflicts} Conflicts`})),e.comment){const t='<svg width="16" height="20" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n                <path d="M3.25 1.8125C3.25 1.31445 3.66016 0.875 4.1875 0.875C4.68555 0.875 5.125 1.31445 5.125 1.8125V2.75H8.875V1.8125C8.875 1.31445 9.28516 0.875 9.8125 0.875C10.3105 0.875 10.75 1.31445 10.75 1.8125V2.75H12.1562C12.918 2.75 13.5625 3.39453 13.5625 4.15625V5.5625H0.4375V4.15625C0.4375 3.39453 1.05273 2.75 1.84375 2.75H3.25V1.8125ZM13.5625 14.4688C13.5625 15.2598 12.918 15.875 12.1562 15.875H1.84375C1.05273 15.875 0.4375 15.2598 0.4375 14.4688V6.5H13.5625V14.4688ZM3.95312 10.25H10.0469C10.4277 10.25 10.75 9.95703 10.75 9.54688C10.75 9.16602 10.4277 8.84375 10.0469 8.84375H3.95312C3.54297 8.84375 3.25 9.16602 3.25 9.54688C3.25 9.95703 3.54297 10.25 3.95312 10.25ZM3.95312 11.6562C3.54297 11.6562 3.25 11.9785 3.25 12.3594C3.25 12.7695 3.54297 13.0625 3.95312 13.0625H7.23438C7.61523 13.0625 7.9375 12.7695 7.9375 12.3594C7.9375 11.9785 7.61523 11.6562 7.23438 11.6562H3.95312Z" fill="#333333"></path>\n                </svg>',i=$("<div>",{id:`pMoreContent_${e.ptOid}`,class:"pto-notification-count-text pto-more-text"}).append($(t),$("<span>").text(e.comment)),o=$("<div>",{id:`hMoreContent_${e.ptOid}`,class:"pto-notification-count-text",style:"display:none;"}).append($(t),$("<span>").text(e.comment)),s=$("<div>",{id:`divMoreContent_${e.ptOid}`,class:"more-div"}).append($("<a>",{id:`btnMoreContent_${e.ptOid}`,class:"mobprorightarow more-gradient",href:"javascript:void(0)",text:"More",click:function(t){a(e.ptOid,t)},on:{touchstart:function(t){a(e.ptOid,t)}}}));n.append(i,o,s)}var r,c,l,d;e.paidTimeOffPolicyId>0&&n.append($("<div>",{class:"pto-notification-count-text",text:`Current Balance: ${e.currentBalance} hrs`})),n.append($("<div>",{class:"pto-notification-count-text",text:"Request: "+(r=e.requestedHours,c=60*r,l=Math.floor(c/60),d=Math.round(c%60),l+" hrs "+d+" min")})),e.paidTimeOffPolicyId>0&&n.append($("<div>",{class:"pto-notification-count-text",text:`Remaining Balance: ${e.remainingBalance} hrs`}));const u=$("<div>",{class:"footer-button-wrap"});return e.AptId=e.ruleID>0?e.ruleID:e.appointmentID,u.append($("<a>",{class:"b-bottom notification-link",href:"javascript:void(0)",text:"View",click:function(){o(3,e)}})),u.append($("<a>",{class:"b-bottom notification-link",href:"javascript:void(0)",text:"Accept",click:function(){o(1,e)}})),u.append($("<a>",{class:"b-bottom notification-link accept-appoint",href:"javascript:void(0)",text:"Decline",click:function(){o(2,e)}})),i.append(n),t.append(i,u),t}}}();var ajaxQueue=$({}),currentRequest=null;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 i=String.fromCharCode(t),n=/\d/;return window.event?event.returnValue=n.test(i):n.test(i)}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(),i=$(".replaced").width()/$(".replaced").height(),n=e,a=Math.round(n/i);if(a<t){a=t,n=Math.round(a*i);var o=Math.round((n-e)/2);$(".replaced").css("left","-"+o+"px")}$(".replaced").width(n),$(".replaced").height(a)}function onOnlineiFrameLoad(){loader(!1)}vagaro={},function(e){vagaro.ajax=function(){this.datamodel={},this.datamodel.MethodType="",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.datamodel.Headers={},this.Post=function(){if(void 0===keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),i=this.datamodel.url,n=this.datamodel.data,a=this.datamodel.callback,o=this.datamodel.Token,s=this.datamodel.Error,r=this.datamodel.async,c=this.datamodel.ErrorMessage,l=this.datamodel.GroupToken,d=this.datamodel.Proxy,u=this.datamodel.RouteParameter={},p=this.datamodel.QueryStringParameter={},f=this.datamodel.merchantId="",h=this.datamodel.userId="";setTimeout(function(){t[0].datamodel.url=i,t[0].datamodel.data=n,t[0].datamodel.callback=a,t[0].datamodel.Token=o,t[0].datamodel.Error=s,t[0].datamodel.async=r,t[0].datamodel.ErrorMessage=c,t[0].datamodel.GroupToken=l,t[0].datamodel.Proxy=d,t[0].datamodel.RouteParameter=u,t[0].datamodel.QueryStringParameter=p,t[0].datamodel.merchantId=f,t[0].datamodel.userId=h,t[0].Post()},500)}else{var m=this.datamodel,g={};1==m.Proxy?(g.Data=""+JSON.stringify(m.data),g.Token=m.Token,g.IsPublic=m.IsPublic,g.RouteParameter=m.RouteParameter,g.QueryStringParameter=m.QueryStringParameter):1==m.IsNewVagaroAPI?g=m.data:(g.Data=""+JSON.stringify(m.data),g.Token=m.Token);var v=this.datamodel.GroupToken;e.ajax({url:1==m.Proxy?this.seturl(2):this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",xhr:function(){return 1==m.IsNewVagaroAPI&&null!=window.childWindow&&m.Token.indexOf("http")>-1&&m.Token.indexOf("api")>-1?new window.childWindow.XMLHttpRequest:new window.XMLHttpRequest},beforeSend:function(t){try{"function"==typeof EncH&&0==m.IsNewVagaroAPI&&t.setRequestHeader("H",EncH())}catch(e){}if(0==m.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(void 0!==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!==v&&null!=v&&""!=v?t.setRequestHeader("grouptoken",v):"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==m.IsNewVagaroAPI&&m.Token.indexOf("http")>-1&&m.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!==m.merchantId&&null!=m.merchantId&&""!=m.merchantId&&t.setRequestHeader("merchantId",m.merchantId),void 0!==m.userId&&null!=m.userId&&""!=m.userId&&t.setRequestHeader("userId",m.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:m.async,data:JSON.stringify(g),dataType:"json"}).done(function(e){if(1==m.IsNewVagaroAPI)(t=void 0!==e&&null!=e&&void 0!==e.CustomCode&&null!=e.CustomCode&&(m.Token.indexOf("http")>-1&&m.Token.indexOf("api")>-1||m.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!"}):m.callback(e);else if(1==m.Proxy){var t;(t=void 0!==e&&null!=e&&void 0!==e.responseCode&&null!=e.responseCode&&(m.Token.indexOf("http")>-1&&m.Token.indexOf("api")>-1||m.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!"}):m.callback(e)}else m.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,m.Token),void ShowLoader(!1);if(void 0===e||null==e||0!=e.status||"undefined"==typeof vgAppicationType||1!=vgAppicationType){if(""!=m.ErrorMessage){var t="";try{t=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase().match(/com.vagaro.iospro/i),ShowLoader(!1)}catch(e){}!t&&"websiteapi/homepage/getupcomingappintmentdata"!=m.Token&&"websiteapi/homepage/getallpetdetails"!=m.Token&&"websiteapi/homepage/getupcominglivestreamclasses"!=m.Token&&m.Token.toLowerCase().indexOf("addloginamplitude")<0&&vagaro.alert({message:m.ErrorMessage+m.Token,title:"Oops!"})}void 0!==m.Error&&m.Error(e)}})}},this.PostQue=function(){if(void 0===keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),i=this.datamodel.url,n=this.datamodel.data,a=this.datamodel.callback,o=this.datamodel.Token,s=this.datamodel.Error,r=this.datamodel.async,c=this.datamodel.ErrorMessage;setTimeout(function(){t[0].datamodel.url=i,t[0].datamodel.data=n,t[0].datamodel.callback=a,t[0].datamodel.Token=o,t[0].datamodel.Error=s,t[0].datamodel.async=r,t[0].datamodel.ErrorMessage=c,t[0].PostQue()},500)}else{var l=this.datamodel,d={};1==l.IsNewVagaroAPI?d=l.data:(d.Data=""+JSON.stringify(l.data),d.Token=l.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==l.IsNewVagaroAPI&&(t.setRequestHeader("K",getek()),t.setRequestHeader("I",getei()),t.setRequestHeader("Val",EncIV())),void 0!==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(d),dataType:"json",success:function(e){1==l.IsNewVagaroAPI?l.callback(e):l.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,l.Token),void ShowLoader(!1);if("abort"!=e.statusText){if(""!=l.ErrorMessage){try{ShowLoader(!1)}catch(e){}l.Token.toLowerCase().indexOf("addloginamplitude")<0&&vagaro.alert({message:l.ErrorMessage+l.Token,title:"Oops!"})}void 0!==l.Error&&l.Error(e)}}})}},this.que=function(t){var i=t.complete;ajaxQueue.clearQueue(),currentRequest&&currentRequest.abort(),ajaxQueue.queue(function(n){t.complete=function(){i&&i.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.CallV2API=function(){var t=this.datamodel;e.ajax({url:this.seturl(3),type:t.MethodType,contentType:"application/json; charset=utf-8",beforeSend:function(e){try{void 0!==t.Headers&&null!=t.Headers&&""!=t.Headers.merchantId&&e.setRequestHeader("merchantId",t.Headers.merchantId),void 0!==t.Headers&&null!=t.Headers&&""!=t.Headers.userId&&e.setRequestHeader("userId",t.Headers.userId);var i=_vggactkn();void 0!==t.Headers&&""!=i&&e.setRequestHeader("s_utkn",i)}catch(e){}},async:t.async,data:JSON.stringify(t.data),dataType:"json"}).done(function(e){var i=void 0!==e&&null!=e&&void 0!==e.CustomCode&&null!=e.CustomCode&&(t.Token.indexOf("http")>-1&&t.Token.indexOf("api")>-1||t.Token.indexOf("myaccount")>-1);i&&1032==e.CustomCode?window.location.href="/ScheduleMaintenance.aspx":i&&1036==e.CustomCode?window.location.reload():i&&1034==e.CustomCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.Message):vagaro.alert({message:e.Message,title:"Invalid!"}):t.callback(e)}).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,t.Token),void ShowLoader(!1);if(void 0===e||null==e||0!=e.status||"undefined"==typeof vgAppicationType||1!=vgAppicationType){if(""!=t.ErrorMessage){var i="";try{i=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase().match(/com.vagaro.iospro/i),ShowLoader(!1)}catch(e){}!i&&"websiteapi/homepage/getupcomingappintmentdata"!=t.Token&&"websiteapi/homepage/getallpetdetails"!=t.Token&&"websiteapi/homepage/getupcominglivestreamclasses"!=t.Token&&t.Token.toLowerCase().indexOf("addloginamplitude")<0&&vagaro.alert({message:t.ErrorMessage+t.Token,title:"Oops!"})}void 0!==t.Error&&t.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 i="";"undefined"!=typeof regionId&&""!=regionId&&(i=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+i+this.datamodel.Token):t=t+i+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}else if(2==e){i="";"undefined"!=typeof regionId&&""!=regionId&&(i=regionId+"/"),t=t+i+"api/proxy"}else t=3==e?this.datamodel.Token:t+i+"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,i,n,a,o,s,r){var c=new vagaro.ajax;c.datamodel.Token=e,c.datamodel.data=t,c.datamodel.callback=i,c.datamodel.Error=n,void 0!==o&&1==o&&(c.datamodel.IsNewVagaroAPI=o),void 0!==r&&1==r&&(c.datamodel.ErrorMessage=""),a?c.PostQue():c.Post()},vagaro.ajaxCallV2=function(e,t,i,n,a,o,s,r,c,l){var d=new vagaro.ajax;d.datamodel.Token=e,d.datamodel.data=t,d.datamodel.callback=a,d.datamodel.Error=o,d.datamodel.Proxy=!0,d.datamodel.IsPublic=!1,void 0!==l&&(d.datamodel.IsPublic=l),void 0!==i&&null!=i&&(d.datamodel.RouteParameter=i),void 0!==n&&null!=n&&(d.datamodel.QueryStringParameter=n),void 0!==r&&1==r&&(d.datamodel.ErrorMessage=""),void 0!==c&&void 0!==c.MerchantId&&null!==c.MerchantId&&""!==c.MerchantId&&(d.datamodel.merchantId=c.MerchantId),void 0!==c&&void 0!==c.UserId&&null!==c.UserId&&""!==c.UserId&&(d.datamodel.userId=c.UserId),s?d.PostQue():d.Post()},vagaro.VagaroCoreApiResponseCode={Success:1e3,Error:1001,UnderMaintanance:1032,QuotaExceeded:1038},vagaro.VagaroCoreApiStatusCode={OK:200,Created:201,BadRequest:400},_vggactkn=function(){try{for(var e="s_utkn=",t=document.cookie.split(";"),i=0;i<t.length;i++){for(var n=t[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(e))return n.substring(7,n.length)}return""}catch(e){return""}}}(jQuery),function(e){e.fn.applyupdown=function(t,i){t?(this.parent().find(".arrow-up-down").find(".uparrow").bind(i,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var i=e(this).parent().siblings("input:text"),n=0;null!=i.attr("max")&&(n=i.attr("max"));var a=parseFloat(i.val());(0==n||a<n)&&i.val(a+1).change()}}),this.parent().find(".arrow-up-down").find(".downarrow").bind(i,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var i=e(this).parent().siblings("input:text");null!=i.attr("min")&&(max=i.attr("min"));var n=parseFloat(i.val());(0==max||n>max)&&i.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 i=e(this).parent().siblings(".upDownArow").find("input:text"),n=0;null!=i.attr("max")&&(n=i.attr("max"));var a=parseFloat(i.val());(0==n||a<n)&&i.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 i=e(this).parent().siblings(".upDownArow").find("input:text");null!=i.attr("min")&&(max=i.attr("min"));var n=parseFloat(i.val());(0==max||n>max)&&i.val(n-1).change()}})),this.bind("keyup",function(t){var i=0,n=0,a=e(this);if(38==t.keyCode){null!=a.attr("max")&&(i=a.attr("max"));var o=parseFloat(a.val());(0==i||o<i)&&a.val(o+1).change()}else if(40==t.keyCode){null!=a.attr("min")&&(i=a.attr("min"));o=parseFloat(a.val());(0==i||o>i)&&a.val(o-1).change()}else{null!=a.attr("max")&&(i=parseFloat(a.attr("max"))),null!=a.attr("min")&&(n=parseFloat(a.attr("min")));o=parseFloat(a.val());0!=i&&o>i?a.val(i).change():0!=n&&o<n&&a.val(n).change()}});var n=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return this.bind(n,function(t){var i=0,a=e(this),o=e(this).attr("disabled");if(void 0===o||!1===o){if("mousewheel"==n){if(t.originalEvent.wheelDelta/120>0){null!=a.attr("max")&&(i=a.attr("max"));var s=parseFloat(a.val());(0==i||s<i)&&a.val(s+1).change()}else if(t.originalEvent.wheelDelta/120<0){null!=a.attr("min")&&(i=a.attr("min"));s=parseFloat(a.val());(0==i||s>i)&&a.val(s-1).change()}}else if(t.originalEvent.detail>0){null!=a.attr("max")&&(i=a.attr("max"));s=parseFloat(a.val());(0==i||s<i)&&a.val(s+1).change()}else if(t.originalEvent.detail<0){null!=a.attr("min")&&(i=a.attr("min"));s=parseFloat(a.val());(0==i||s>i)&&a.val(s-1).change()}t.preventDefault(),t.stopPropagation()}}),this}}(jQuery),Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);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 i=e;return null!=i&&null!=i&&""!=i?"4"==t?9==i.length?0+e:10==i.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,i){var n=t.getHTMLElement(e);$(n).addClass(i)},t.removeCssClassToRow=function(e,i){var n=t.getHTMLElement(e);$(n).removeClass(i)},t.getDataKeyValue=function(e,i){return t.getDataItem(e).getDataKeyValue(i)},t.getDataKeyValueFromRow=function(e,t){return e.getDataKeyValue(t)},t.getMasterTableView=function(){return t.getGrid().get_masterTableView()},t.dataBind=function(e){var i=t.getMasterTableView();i.set_dataSource(e),i.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,i){return t.getMasterTableView().getCellByColumnUniqueName(e,i)},t.getCell=function(e,i){var n=t.getMasterTableView(),a=n.get_dataItems()[e];return n.getCellByColumnUniqueName(a,i)},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,i){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOver)&&t.gridEvents.onRowMouseOver(e,i)},t.onRowMouseOut=function(e,i){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOut)&&t.gridEvents.onRowMouseOut(e,i)},t.onRowDropped=function(e,i){vagaro.commonUtils.isFunction(t.gridEvents.onRowDropped)&&t.gridEvents.onRowDropped(e,i)},t.onRowClick=function(e,i){vagaro.commonUtils.isFunction(t.gridEvents.onRowClick)&&t.gridEvents.onRowClick(e,i)},t.onGridCreated=function(e,i){vagaro.commonUtils.isFunction(t.gridEvents.onGridCreated)&&t.gridEvents.onGridCreated(e,i)},t.getAllBoundKeyValues=function(){return t.getGrid()._clientKeyValues},t.updateKeyValue=function(e,i,n){var a=t.getAllBoundKeyValues();vagaro.commonUtils.isNullOrUndefined(a)||0==a.length||(a[e][i]=n)},t.showHideItem=function(e,i){var n=t.getMasterTableView();i?n.showItem(e):n.hideItem(e)},t.showHideItems=function(e,i){if(!vagaro.commonUtils.isNullOrUndefined(e)&&0!=e.length)for(var n=t.getMasterTableView(),a=0;a<e.length;a++){var o=e[a];i?n.showItem(o):n.hideItem(o)}},t},RadListBoxWrapper=function(e,t){var i=this;return i.clientId=e,i.onSelectedIndexChanged=function(e,i){vagaro.commonUtils.isFunction(t)&&t(e,i)},i.getRadListBox=function(){return $find(i.clientId)},i.getItems=function(){return i.getRadListBox().get_items()},i.getItemAt=function(e){return i.getRadListBox().getItem(e)},i.getItemsCount=function(){return i.getItems().get_count()},i.addItem=function(e,t,n){var a=new Telerik.Web.UI.RadListBoxItem;a.set_text(e),a.set_value(t),void 0!==n&&null!=n&&$.each(n,function(e,t){i.setItemAttribute(a,e,t)}),i.getItems().add(a)},i.getItemAttributes=function(e){return e.get_attributes()},i.getItemAttributeValue=function(e,t){return i.getItemAttributes(e).getAttribute(t)},i.findItemByAttribute=function(e,t){i.getRadListBox().findItemByAttribute(e,t)},i.setItemAttribute=function(e,t,n){i.getItemAttributes(e).setAttribute(t,n)},i.getSelectedItem=function(){return i.getRadListBox().get_selectedItem()},i.deleteItem=function(e){i.getRadListBox().deleteItem(e)},i.disableItem=function(e){e.disable()},i.enableItem=function(e){e.enable()},i.getItemIndex=function(e){return e.get_index()},i.reorderItem=function(e,t){i.getRadListBox().reorderItem(selectedItem,t-1)},i.clearSelection=function(){i.getRadListBox().clearSelection()},i.clearList=function(){i.getItems().clear()},trackChanges=function(){i.getRadListBox().trackChanges()},commitChanges=function(){i.getRadListBox().commitChanges()},i},function(e){_CustomTooltip={Msg:{FlagshipDisabledMsg:"Cannot edit fields synced from a flagship location."}},e(document).on("mouseenter",".custom-tooltip",function(t){var i=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:i,at:"center top",my:"center bottom",collision:"flipfit"}),e(".custom-tooltip-left").next(".v-tooltip-content").find(".tooltip-arrow").position({of:i,at:"center top",my:"center bottom",collision:"flipfit"})}),e(document).on("mouseleave",".custom-tooltip",function(t){e(".v-tooltip-content").remove()})}(jQuery),function(e){var t,i=e.fn.domManip,n="_tmplitem",a=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,o={},s={},r={key:0,data:{}},c=0,l=0,d=[];function u(t,i,n,a){var r={data:a||0===a||!1===a?a:i?i.data:{},_wrap:i?i._wrap:null,tmpl:null,parent:i||null,nodes:[],calls:y,nest:b,wrap:_,html:C,update:w};return t&&e.extend(r,t,{nodes:[],parent:i}),n&&(r.tmpl=n,r._ctnt=r._ctnt||r.tmpl(e,r),r.key=++c,(d.length?s:o)[c]=r),r}function p(t,i,a){var o,s=a?e.map(a,function(e){return"string"==typeof e?t.key?e.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+n+'="'+t.key+'" $2'):e:p(e,t,e._ctnt)}):t;return i?s:((s=s.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,i,n,a){v(o=e(n).get()),i&&(o=f(i).concat(o)),a&&(o=o.concat(f(a)))}),o||f(s))}function f(t){var i=document.createElement("div");return i.innerHTML=t,e.makeArray(i.childNodes)}function h(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,i,n,a,o,s,r){var c,l,d,u=e.tmpl.tag[n];if(!u)throw"Unknown template tag: "+n;return c=u._default||[],s&&!/\w$/.test(o)&&(o+=s,s=""),o?(o=g(o),r=r?","+g(r)+")":s?")":"",l=s?o.indexOf(".")>-1?o+g(s):"("+o+").call($item"+r:o,d=s?l:"(typeof("+o+")==='function'?("+o+").call($item):("+o+"))"):d=l=c.$1||"null",a=g(a),"');"+u[i?"close":"open"].split("$notnull_1").join(o?"typeof("+o+")!=='undefined' && ("+o+")!=null":"true").split("$1a").join(d).split("$1").join(l).split("$2").join(a||c.$2||"")+"__.push('"})+"');}return __;")}function m(t,i){t._wrap=p(t,!0,e.isArray(i)?i:[a.test(i)?i:e(i).html()]).join("")}function g(e){return e?e.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function v(t){var i,a,r,d,p,f="_"+l,h={};for(r=0,d=t.length;r<d;r++)if(1===(i=t[r]).nodeType){for(p=(a=i.getElementsByTagName("*")).length-1;p>=0;p--)m(a[p]);m(i)}function m(t){var i,a,r,d,p=t;if(d=t.getAttribute(n)){for(;p.parentNode&&1===(p=p.parentNode).nodeType&&!(i=p.getAttribute(n)););i!==d&&(p=p.parentNode?11===p.nodeType?0:p.getAttribute(n)||0:0,(r=o[d])||((r=u(r=s[d],o[p]||s[p])).key=++c,o[c]=r),l&&m(d)),t.removeAttribute(n)}else l&&(r=e.data(t,"tmplItem"))&&(m(r.key),o[r.key]=r,p=(p=e.data(t.parentNode,"tmplItem"))?p.key:0);if(r){for(a=r;a&&a.key!=p;)a.nodes.push(t),a=a.parent;delete r._ctnt,delete r._wrap,e.data(t,"tmplItem",r)}function m(e){r=h[e+=f]=h[e]||u(r,o[r.parent.key+f]||r.parent)}}}function y(e,t,i,n){if(!e)return d.pop();d.push({_:e,tmpl:t,item:this,data:i,options:n})}function b(t,i,n){return e.tmpl(e.template(t),i,n,this)}function _(t,i){var n=t.options||{};return n.wrapped=i,e.tmpl(e.template(t.tmpl),t.data,n,t.item)}function C(t,i){var n=this._wrap;return e.map(e(e.isArray(n)?n.join(""):n).filter(t||"*"),function(e){return i?e.innerText||e.textContent:e.outerHTML||function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e)})}function w(){var t=this.nodes;e.tmpl(null,null,null,this).insertBefore(t[0]),e(t).hide(),e(t).remove()}e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(i,n){e.fn[i]=function(a){var s,r,c,d,u=[],p=e(a),f=1===this.length&&this[0].parentNode;if(t=o||{},f&&11===f.nodeType&&1===f.childNodes.length&&1===p.length)p[n](this[0]),u=this;else{for(r=0,c=p.length;r<c;r++)l=r,s=(r>0?this.clone(!0):this).get(),e(p[r])[n](s),u=u.concat(s);l=0,u=this.pushStack(u,i,p.selector)}return d=t,t=null,e.tmpl.complete(d),u}}),e.fn.extend({tmpl:function(t,i,n){return e.tmpl(this[0],t,i,n)},tmplItem:function(){return e.tmplItem(this[0])},template:function(t){return e.template(t,this[0])},domManip:function(n,a,s){if(n[0]&&e.isArray(n[0])){for(var r,c=e.makeArray(arguments),d=n[0],u=d.length,p=0;p<u&&!(r=e.data(d[p++],"tmplItem")););r&&l&&(c[2]=function(t){e.tmpl.afterManip(this,t,s)}),i.apply(this,c)}else i.apply(this,arguments);return l=0,!t&&e.tmpl.complete(o),this}}),e.extend({tmpl:function(t,i,n,a){var c,l=!a;if(l)a=r,t=e.template[t]||e.template(null,t),s={};else if(!t)return t=a.tmpl,o[a.key]=a,a.nodes=[],a.wrapped&&m(a,a.wrapped),e(p(a,null,a.tmpl(e,a)));return t?("function"==typeof i&&(i=i.call(a||{})),n&&n.wrapped&&m(n,n.wrapped),c=e.isArray(i)?e.map(i,function(e){return e?u(n,a,t,e):null}):[u(n,a,t,i)],l?e(p(a,null,c)):c):[]},tmplItem:function(t){var i;for(t instanceof e&&(t=t[0]);t&&1===t.nodeType&&!(i=e.data(t,"tmplItem"))&&(t=t.parentNode););return i||r},template:function(t,i){return i?("string"==typeof i?i=h(i):i instanceof e&&(i=i[0]||{}),i.nodeType&&(i=e.data(i,"tmpl")||e.data(i,"tmpl",h(i.innerHTML))),"string"==typeof t?e.template[t]=i:i):t?"string"!=typeof t?e.template(null,t):e.template[t]||e.template(null,a.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(){o={}},afterManip:function(t,i,n){var a=11===i.nodeType?e.makeArray(i.childNodes):1===i.nodeType?[i]:[];n.call(t,i),v(a),l++}})}(jQuery);var VagaroCountryDateFormat=Object.freeze({SmallDate:1,SmallDateWithTime:2,LargeDate:3,LargeDateWithTime:4,MiniDate:5,LongMiniDate:6,ChartDate:7});function countryDateFormat(e,t,i){try{if("undefined"==e||null==e||""==e||"---"==e||"--"==e)return e;void 0!==i&&null!=i&&""!=i||(i=GetBusinessCountry()),2!=i&&(i=1);var n=_countryDateFormat.find(function(e){return e.countryId===parseInt(i)&&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(i){return i.countryId==t&&i.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}var serviceDateFormat_year="MMM DD YYYY hh:mm A";function getCurrentLocationDate(){var e=iPadAndroid||isWindowsPhone?15:5,t=new Date;if("undefined"!=typeof utcOffset){var i=new Date;(t=new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds())).setSeconds(t.getSeconds()+utcOffset)}var n=moment(t).format("nn"),a=parseInt(parseInt(n)%e);return a>0&&(n=n-a+e,t.setMinutes(n)),t}function applydatepicker(e){var t=e.divid,n=e.textid,a=e.dateTimeFormat,o=e.callBackOnHide;void 0!==o&&""!=o||(o=null);var s=e.BeforecallBackOnOpenForMobile;void 0!==s&&""!=s||(s=null);var r=e.AftercallBackOnOpenForMobile;void 0!==r&&""!=r||(r=null);var c=e.callBackOnChange;void 0!==c&&""!=c||(c=null);var l=e.onGenerate;void 0!==l&&""!=l||(l=null);var d=e.preset;void 0!==d&&null!=d&&""!=d||(d="datetime");var u=e.arrValidDates;void 0===u&&(u=null);var p=e.defaultDateTime,f=e.pickTime;void 0===f&&(f=!1);var h=e.formatTime;void 0===h&&(h=null);var m=e.contentWindow;void 0===m&&(m=null);var g=e.parentID;void 0===g&&(g="body");var v=e.scrollMonth;void 0===v&&(v=!0);var y=e.isMobileFriendly;void 0===y&&(y="undefined"!=typeof _vgClassSessionSelection&&void 0!==_vgClassSessionSelection.VisibleControlLength&&_vgClassSessionSelection.VisibleControlLength("#mobile-check")>0&&(0==$("body").hasClass("Embedded_Widget")||1==$("body").hasClass("Embedded_Widget")&&void 0!==e.isApplyInWidget&&null!=e.isApplyInWidget&&1==e.isApplyInWidget)),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(y=!1);var b=e.disabledWeekDays;void 0===b&&(b=null);var _=e.disabledTimePicker;void 0===_&&(_=null);var C=e.disabledMobileTimePicker;void 0===C&&(C=null);var w=e.MinDate;void 0===w&&(w=null);var x=e.MaxDate;void 0===x&&(x=null);var I=e.unavailableShowDate;void 0===I&&(I=!1);var S=e.inline;if(void 0===S&&(S=!1),(iPadAndroid||isWindowsPhone)&&y&&null!=typeof e.flagVgMultiMonthDatePicker&&e.flagVgMultiMonthDatePicker){$(n).data("dtmindate","");var k={};if(void 0!==e.numberOfMonths&&e.numberOfMonths>0&&(k.numberOfMonths=e.numberOfMonths),void 0!==e.ignoreValidation&&null!=e.ignoreValidation&&(k.ignoreValidation=e.ignoreValidation),null!=u&&u.length>0&&(k.arrValidDates=u,""!=u[0]&&(w=new Date(moment(u[0])._d),x=new Date(moment(u[u.length-1])._d),$(n).data("dtmindate",u[0]))),null!=w&&(k.minDate=new Date(w)),null!=x&&(k.maxDate=new Date(x)),void 0!==a&&null!=a&&(k.dateFormat=a),null!=b&&(k.disabledWeekDays=b),null!=_&&(k.disabledTimePicker=_),void 0!==p&&""!=p)O>(P=new Date(p))?(p=O,P=O):O=P,k.selectedDate=p;return null!=c&&(k.ondatechange=c),null!=o&&(k.onclose=o),k.openBeforeCallBack=s,k.openAfterCallBack=r,void $(n).vgMultiMonthDatePicker(k)}var N=t+"input";if((iPadAndroid||isWindowsPhone)&&1==y)if(0==$(t).find(N).length){$(t).append("<input id="+N.replace(/[#.]/g,"")+' type="text" style="display:none" />');var D="android-ics light",B="bottom",T="y";if(D="ios",B="bottom",T="y",isWindowsPhone&&(D="wp light",B="modal",T="MD ddyy"),null!=u)u.length>0&&""!=u[0]?(F=O=new Date(moment(u[0])._d),R=new Date(moment(u[u.length-1])._d),$(n).data("dtmindate",u[0])):(u=null,F=O=new Date,R=O,$(n).data("dtmindate",""));else if(null==u){O="undefined"==typeof getLocationDate?"undefined"==typeof getLocationDatepickupinstrore?getCurrentLocationDate():"undefined"!=typeof pageval&&"undefined"!=typeof getLocationDatepickupinstrore&&"onlineshopppingcart"==pageval?getLocationDatepickupinstrore():getCurrentLocationDate():getLocationDate();var A=moment(O).format("nn");(E=parseInt(parseInt(A)%15))>0&&(A=A-E+15,O.setMinutes(A)),F=O,(R=new Date(O)).setMonth(R.getMonth()+6)}"date"==d&&1==I&&$("body").addClass("iosdateonly");var M={preset:d,minDate:null!=w?w:F,maxDate:null!=x?x:R,stepMinute:15,dateFormat:"M dd yy",timeWheels:"hhii A",separator:" ",dateOrder:T,mergeDate:!isWindowsPhone,mergeTime:!isWindowsPhone,validDates:u,unavailableShowDate:I,onCancel:function(){$(N).val("Anytime"),$(n).data("date","Anytime"),$(n).val("Anytime"),void 0!==o&&null!=o&&o(t,n),$(N).mobiscroll("hide")},onSelect:function(e){$(N).val(moment(e).format(serviceDateFormat_year)),$(n).data("date",e),$(n).val(moment(e).format(a)),void 0!==o&&null!=o&&o(t,n),void 0!==c&&null!=c&&c(new Date(moment(e)))}};if(null!=b&&(M.disabledWeekDays=b),null!=C&&(M.disabledMobileTimePicker=C),void 0!==p&&""!=p)O>(P=new Date(p))?(p=O,P=O):O=P;$(n).data("date",moment(O).format(serviceDateFormat_year)),$(n).data("preset",d),$(N).val(moment(O).format(serviceDateFormat_year)).scroller("destroy").scroller($.extend(M,{theme:D,mode:"scroller",display:B})),$(n).val(moment(O).format(a)),$(n).bind("click touchend",function(e,t){$(N).mobiscroll("show")})}else{var P;if(void 0!==p&&""!=p)O>(P=new Date(p))?(p=O,P=O):O=P;$(n).data("date",moment(O).format(serviceDateFormat_year)),$(N).val(moment(O).format(serviceDateFormat_year)),$(n).val(moment(O).format(a))}else{if(void 0===$(n).data("xdsoft_datetimepicker")||null==$(n).data("xdsoft_datetimepicker")){var O,R;$.datetimepicker.setDateFormatter({parseDate:function(e,t){var i=moment(e,t);return!!i.isValid()&&i.toDate()},formatDate:function(e,t){return moment(e).format(t)}});var L={minDate:new Date,maxDate:new Date,defaultDate:new Date,format:a,timepickerScrollbar:f,timepicker:f,validateOnBlur:!1,id:$(n).attr("id")+"_picker",closeOnTimeSelect:!1,todayButton:!1,showOkCloseButtons:1==f,yearStart:(new Date).getFullYear(),yearEnd:(new Date).getFullYear()+5,scrollMonth:v,inline:S};if(null!=e.yearStart&&(L.yearStart=e.yearStart),null!=e.yearEnd&&(L.yearEnd=e.yearEnd),null!=m&&(L.contentWindow=m),L.parentID=g,null!=b&&(L.disabledWeekDays=b),null!=_&&(L.disabledTimePicker=_),null!=h&&(L.formatTime=h,L.step=30),null!=u)u.length>0&&""!=u[0]?(O=new Date(moment(u[0])._d),R=new Date(moment(u[u.length-1])._d),L.defaultDate=new Date(O),L.minDate=new Date(O),L.maxDate=new Date(R),L.allowDates=u,$(n).data("dtmindate",u[0]),L.yearEnd=new Date(moment(u[u.length-1])).getFullYear()):(O=new Date,L.allowDates=u,$(n).data("dtmindate",""));else{O="undefined"==typeof getLocationDate?"undefined"==typeof getLocationDatepickupinstrore?getCurrentLocationDate():"undefined"!=typeof pageval&&"undefined"!=typeof getLocationDatepickupinstrore&&"onlineshopppingcart"==pageval?getLocationDatepickupinstrore():getCurrentLocationDate():getLocationDate();var E;A=moment(O).format("nn");(E=parseInt(parseInt(A)%5))>0&&(A=A-E+5,O.setMinutes(A)),(R=new Date(O)).setMonth(R.getMonth()+6),L.defaultDate=new Date(O),L.minDate=new Date(O),L.maxDate=R,1==f&&(L.minDateTime=new Date(O))}void 0!==c&&null!=c&&(L.onSelectDate=function(e){c(new Date(e))}),void 0!==l&&null!=l&&(L.monthChangeSpinner=!1,L.onGenerate=function(e){l(new Date(e))}),void 0!==o&&null!=o&&(L.onClose=function(e){o(t,n)}),null!=w&&(L.minDate=w,1==f&&(L.minDateTime=w)),null!=x&&(L.maxDate=x),$(n).datetimepicker(L)}if((void 0===p||null==p)&&0==f&&null!=u&&u.length>0&&""!=u[0]){var F,W=new Date(getdatepickervalue(n));if(W<=(F=new Date(moment(u[0])._d)))p=new Date(F);else if(-1===u.indexOf(W.format("MMM DD,YYYY")))for(i=0;i<u.length;i++){var U=new Date(moment(u[i])._d),H=!1;U>W&&(p=U,H=!0),H||(p=new Date(moment(u[0])._d))}}void 0!==p&&""!=p&&("undefined"!=typeof Search&&Search.IsFromSearchrPage()&&null!=u&&u.length>0&&p.format()==new Date(moment(u[u.length-1])._d).format()?setdatepickervalue(e,new Date(moment($("#ucAppointments_hdnDate").val()).format())):setdatepickervalue(e,new Date(moment(p).format())))}}function getdatepickervalue(e,t,i,n,a){if(void 0!==t&&null!=t||(t="undefined"!=typeof _vgClassSessionSelection&&void 0!==_vgClassSessionSelection.VisibleControlLength&&_vgClassSessionSelection.VisibleControlLength("#mobile-check")>0&&(0==$("body").hasClass("Embedded_Widget")||1==$("body").hasClass("Embedded_Widget")&&void 0!==n&&null!=n&&1==n)),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(t=!1),(iPadAndroid||isWindowsPhone)&&t&&void 0!==i&&i){if(void 0!==$(e).data("vgselectedvalue")){var o=$(e).data("vgselectedvalue").split("-");return new Date(o[0],o[1]-1,o[2])}if(void 0!==$(e).data("xdsoft_datetimepicker"))return new Date(moment($(e).data("xdsoft_datetimepicker").getValue()))}if((iPadAndroid||isWindowsPhone)&&1==t){if(void 0!==$(e).data("preset")&&"datetime"==$(e).data("preset").toLowerCase())return new Date($(e).data("date"));var s=new Date($(e).data("date"));return new Date(s.getFullYear(),s.getMonth(),s.getDate())}if(void 0!==$(e).data("xdsoft_datetimepicker")&&1==$(e).data("xdsoft_datetimepicker").data("options").timepicker)return new Date(moment($(e).data("xdsoft_datetimepicker").getValue()));if(""==$(e).val()||"Never"==$(e).val())return"";if(void 0!==a&&null!=a&&""!=a&&1==a){s=new Date(moment($(e).val()).format());return new Date(s.getFullYear(),s.getMonth(),s.getDate())}if(void 0!==$(e).data("xdsoft_datetimepicker")){s=new Date(moment($(e).data("xdsoft_datetimepicker").getValue()).format());return new Date(s.getFullYear(),s.getMonth(),s.getDate())}return null}function setdatepickervalue(e,t){var i=e.isMobileFriendly;void 0===i&&(i="undefined"!=typeof _vgClassSessionSelection&&void 0!==_vgClassSessionSelection.VisibleControlLength&&_vgClassSessionSelection.VisibleControlLength("#mobile-check")>0&&(0==$("body").hasClass("Embedded_Widget")||1==$("body").hasClass("Embedded_Widget")&&void 0!==e.isApplyInWidget&&null!=e.isApplyInWidget&&1==e.isApplyInWidget)),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(i=!1);var n=e.divid,a=e.textid,o=e.dateTimeFormat;(iPadAndroid||isWindowsPhone)&&i&&void 0!==e.flagVgMultiMonthDatePicker&&e.flagVgMultiMonthDatePicker?"undefined"!=typeof _shopdetail&&_shopdetail.IsClassSelected()||"undefined"!=typeof _invoice?$(a).vgMultiMonthDatePicker({value:t,dateFormat:o,ignoreValidation:!0}):($(a).vgMultiMonthDatePicker({value:t,dateFormat:o}),""!=t&&"Never"!=t||$(a).val(t),""!=t&&"Send Now"!=t||$(a).val(t)):(iPadAndroid||isWindowsPhone)&&1==i?($(n).find(n+"input").val(moment(t).format(serviceDateFormat_year)),$(a).val(moment(t).format(o)),$(a).data("date",moment(t).format(serviceDateFormat_year))):(a=$(a),$(a).datetimepicker({value:t}),""!=t&&"Never"!=t||$(a).val(t),""!=t&&"Send Now"!=t||$(a).val(t))}function destroydatepicker(e){var t=e.divid,i=e.textid,n=e.isMobileFriendly;if(void 0===n&&(n="undefined"!=typeof _vgClassSessionSelection&&void 0!==_vgClassSessionSelection.VisibleControlLength&&_vgClassSessionSelection.VisibleControlLength("#mobile-check")>0&&(0==$("body").hasClass("Embedded_Widget")||1==$("body").hasClass("Embedded_Widget")&&void 0!==e.isApplyInWidget&&null!=e.isApplyInWidget&&1==e.isApplyInWidget)),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(n=!1),n&&void 0!==e.flagVgMultiMonthDatePicker&&e.flagVgMultiMonthDatePicker)$(i).vgMultiMonthDatePicker("destroy");else if((iPadAndroid||isWindowsPhone)&&1==n){var a=t+"input";$(t).find(a).length>0&&($(a).scroller("destroy"),$(i).unbind("click touchend"),$(a).remove())}else void 0!==$(i).data("xdsoft_datetimepicker")&&null!=$(i).data("xdsoft_datetimepicker")&&$(i).datetimepicker("destroy");applydatepicker(e)}function enabledisabledatepicker(e,t){var i=t.divid,n=t.textid,a=t.isMobileFriendly;if(void 0===a&&(a=!0),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(a=!1),a&&void 0!==t.flagVgMultiMonthDatePicker&&t.flagVgMultiMonthDatePicker)return $(n).vgMultiMonthDatePicker("hide"),void $(n).prop("disabled",!e);if(e)if((iPadAndroid||isWindowsPhone)&&1==a){var o=i+"input";$(n).unbind("click touchend"),$(n).bind("click touchend",function(e,t){$(o).mobiscroll("show")})}else $(n).prop("disabled",!1);else(iPadAndroid||isWindowsPhone)&&1==a?$(n).unbind("click touchend"):$(n).prop("disabled",!0)}function getMinDateValue(e){var t=$(e.textid).data("dtmindate");return void 0!==t&&""!=t?new Date(moment(t)._d):new Date(moment($(e.textid).data("xdsoft_datetimepicker").getValue()))}function HideShowdatepicker(e,t){var i=t.divid,n=t.textid,a=t.isMobileFriendly;void 0===a&&(a="undefined"!=typeof _vgClassSessionSelection&&void 0!==_vgClassSessionSelection.VisibleControlLength&&_vgClassSessionSelection.VisibleControlLength("#mobile-check")>0&&(0==$("body").hasClass("Embedded_Widget")||1==$("body").hasClass("Embedded_Widget")&&void 0!==t.isApplyInWidget&&null!=t.isApplyInWidget&&1==t.isApplyInWidget)),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(a=!1),a&&void 0!==t.flagVgMultiMonthDatePicker&&t.flagVgMultiMonthDatePicker?$(n).vgMultiMonthDatePicker(e?"show":"hide"):1==e?(iPadAndroid||isWindowsPhone)&&1==a?$(i+"input").mobiscroll("show"):$(n).datetimepicker("show"):(iPadAndroid||isWindowsPhone)&&1==a?$(i+"input").mobiscroll("hide"):$(n).datetimepicker("hide")}function setMinMaxTimeValue(e){var t=e.isMobileFriendly;void 0===t&&(t="undefined"!=typeof _vgClassSessionSelection&&void 0!==_vgClassSessionSelection.VisibleControlLength&&_vgClassSessionSelection.VisibleControlLength("#mobile-check")>0&&(0==$("body").hasClass("Embedded_Widget")||1==$("body").hasClass("Embedded_Widget")&&void 0!==e.isApplyInWidget&&null!=e.isApplyInWidget&&1==e.isApplyInWidget)),"undefined"!=typeof isWidget&&"true"==isWidget.toLowerCase()&&$("body").hasClass("Popup_Widget")&&(t=!1);e.divid;var i=e.textid;e.dateTimeFormat;(iPadAndroid||isWindowsPhone)&&1==t||(i=$(i),$(i).data("xdsoft_datetimepicker").setOptions({disabledTimePicker:e.disabledTimePicker}))}var isWidPopup=0,VagaroStaticURL="https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/",cdnImagePath;function GetPopupCode(e,t,i,n,a){var o="#F37528",s="<div align='left' class='title' style='color:"+o+";border-bottom:1px solid #000;'><span> "+a+"</span></div>",r='HideDynamicPopup("'+n+'");';return"Sign Up"==a&&(o="#000"),"Change Service"!=a&&"Confirm Delete"!=a&&"Print Daily Plan"!=a&&"Print Daily Plan"!=a&&"Calendar Setting"!=a&&"Rebook Service"!=a||(o=""),"Customer History"==a&&(s="",r='HideDynamicPopupandSaveNote("'+n+'");'),"Resource Management"==a&&(r="HideDynamicPopupResourceFrame();"),"<div id='frame_apgProgress_"+n+"' style='display:;'><div class='loader'>&nbsp;</div><div class='loader-img'><img id='frame_imgLoading' src='"+VagaroStaticURL+"Images/loadersmall.gif' style='border-width:0px;width:80px;height:20px;' /></div></div><div style='position: relative; ' id='divinnertop_up'><div id='modalpopupNewAppointment_backgroundElement' style='position: fixed; left: 0px; top: 0px; z-index: -1; 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 class='pop-top-mNew'>"+s+"<div style='width: auto; height: auto; margin: 0 -7px;'>\x3c!-- Content --\x3e<iframe name='frame1'  frameborder='0' border='0' src='"+i+"' style='width: "+t+"px; height: "+e+"px;' id='iFrame_"+n+"' onload='javascript:document.getElementById(\"frame_apgProgress_"+n+"\").style.display=\"none\";'></iframe></div><div class='pop-top-mInner'><img alt='Close' onclick='"+r+"' style='cursor: pointer;' src='"+VagaroStaticURL+"Images/btn-close-title1.gif' height='18' width='18'></div></div>"}function ShowDynamicPopup(e,t,i,n,a){var o,s,r,c,l=document.getElementById(n);if(s=(o=getTopLeftPosition(t,i).split("|"))[0],r=o[1],o[2],l.style.left=r-20+"px",(c=document.documentElement.scrollTop!=document.body.scrollTop?document.documentElement.scrollTop+document.body.scrollTop:document.body.scrollTop)>0&&(s=parseInt(s)+c),2==isWidPopup&&(s=100),s-=20,l.style.top=s+"px",trimAll(l.innerHTML).length<6){var d;d=GetPopupCode(t,i,e,n,a),l.innerHTML=d,l.style.position="absolute",l.width="auto",l.height="auto",l.style.zIndex=1000001}l.style.display="",Call_ClearControls(n)}function trimAll(e){return e.replace(/^\s+|\s+$/g,"")}function Call_ClearControls(e){try{var t="iFrame_"+e,i=document.getElementById(t);i.contentWindow?i.contentWindow.ClearControls():i.contentDocument&&i.contentDocument.ClearControls()}catch(e){}}function HideDynamicPopup(e){try{document.getElementById(e).style.display="none"}catch(e){}}function HideCCIFrame(e){document.getElementById(e).style.display="none",$("#iFrame_"+e).attr("src",""),$("#"+e).html("")}function HideDynamicPopupandSaveNote(e,t){var i=document.getElementById("iFrame_"+e),n=i.contentWindow,a=!1;"undefined"!=typeof ChangeAppStatus&&"function"==typeof ChangeAppStatus.IsNewCall&&1==ChangeAppStatus.IsNewCall()&&(a=!0);var o=!1;if("undefined"!=typeof _vgCal&&(o=a&&"undefined"!=typeof ManageClasses&&void 0!==ManageClasses.model.IsPopupOpen?ManageClasses.model.IsPopupOpen:_vgCal.SPopup.model.IsPopupOpen),null!=n.oldAppComment){i.contentDocument?i.contentDocument:i.contentWindow.document;var s=n.txtAppNotes.val();if(n.oldAppComment!=s){var r=!1;if(null!=n.hist_isRecApp&&(r=n.hist_isRecApp),_vgCal.Common.model.IsNewAPI?ChangeAppStatus.ShowLoadingPanel(!0):ShowLoadingPanal(!0),notcommetfromnotepop=s,void 0===t||"History"==t){var c="";"undefined"!=typeof ReactBId&&null!=ReactBId&&""!=ReactBId&&(c=ReactBId);var l={},d={BusinessID:0,CustomerID:0,strGeneral:"",strAlergy:"",strFormula:"",CreateBy:0,sComment:s,AppID:Rec_EditedAppID,RecRuleID:Rec_RuleID,isRecApp:r,isWaitingAppointment:n.hist_isWaitingApp,encBusinessId:c};l.obCustomerNotes=d,CallWSJSON("VagaroWebOffline.asmx/SaveCustomerNotes",JSON.stringify(l),NewApp_CallSuccess_SaveCustomerNotes_hist,CallFailed_Note)}}else{document.getElementById(e).style.display="none",n.txtAppNotes.val(""),null!=n.oldAppComment&&(n.oldAppComment=""),n._refreshCal&&(n._refreshCal=!1,!0===a&&"undefined"!=typeof Scheduler&&"function"==typeof Scheduler.RefreshCalendar?Scheduler.RefreshCalendar():"undefined"!=typeof RefreshCalendar&&RefreshCalendar())}}else{document.getElementById(e).style.display="none",n._refreshCal&&(n._refreshCal=!1,!0===a&&"undefined"!=typeof Scheduler&&"function"==typeof Scheduler.RefreshCalendar?Scheduler.RefreshCalendar():"undefined"!=typeof RefreshCalendar&&RefreshCalendar())}if(o&&"DivZoomIntegrationPopUp"!=e)!0===a&&"undefined"!=typeof ManageClasses&&"function"==typeof ManageClasses.RetrieveAttendeeData?ManageClasses.RetrieveAttendeeData():_vgCal.SPopup.RetrieveAttendeeData();else if("DivZoomIntegrationPopUp"!=e&&"undefined"!=$("[Id$=ddCustomer]")&&"undefined"!=typeof glbCustomerID&&null!=glbCustomerID&&null!=glbCustomerID){var u={};u.CustomerID=glbCustomerID,u.BusinessID=BusinessID,u.eventType="1","undefined"!=typeof _vgCal&&void 0!==_vgCal.Common&&1==_vgCal.Common.model.BusinessCountryId?IsRequireDepositSetting=!0:IsRequireDepositSetting,u.IsRequireDepositSetting=IsRequireDepositSetting,"undefined"!=typeof _vgCal&&void 0!==_vgCal.Common&&_vgCal.Common.hdnAppointmentId>0?u.AppID=_vgCal.Common.hdnAppointmentId:u.AppID=1,(l={}).objcustomerdetails=u,null!=typeof t&&"History"!=t||CallWSJSON("VagaroWebOffline.asmx/GetCustomerDetailForCalendarDisplayNew",JSON.stringify(l),CallSuccess_SelectCustomer,CallFailedJSON)}}function HideDynamicPopupandSaveNoteSearch(e){window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1&&(document.getElementById(e).style.display="none")}function CallFailed_Note(){alert("Appointment comment not saved.Please refresh the page and try again"),document.getElementById("DivCustomerHistoryPopUp").style.display="none",oldAppComment_note.txtAppNotes.val(""),null!=oldAppComment_note.oldAppComment&&(oldAppComment_note.oldAppComment=""),ShowLoadingPanal(!1)}function NewApp_CallSuccess_SaveCustomerNotes_hist(e){null!=txtComment&&(txtComment.value=notcommetfromnotepop),void 0!==_vgCal.SPopup&&_vgCal.SPopup.UpdateCommentsValue(notcommetfromnotepop);var t="DivCustomerHistoryPopUp";document.getElementById(t).style.display="none",_vgCal.Common.model.IsNewAPI?ChangeAppStatus.ShowLoadingPanel(!1):ShowLoadingPanal(!1);var i=document.getElementById("iFrame_"+t).contentWindow;i.txtAppNotes.val(""),null!=i.oldAppComment&&(i.oldAppComment=""),i._refreshCal=!1,"undefined"!=typeof ChangeAppStatus&&1==ChangeAppStatus.IsNewCall()?Scheduler.RefreshScheduler():RefreshCalendar()}function getViewPortHeightWidth(){var e,t;return 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),t+"|"+e}function getTopLeftPosition(e,t){var i,n,a;return(a=((n=(i=getViewPortHeightWidth().split("|"))[0])-e)/2)<0&&(a=1),a+"|"+(i[1]-t)/2+"|"+n}function ShowDynamicPopupForShopOwner(e,t,i,n,a,o,s,r,c){var l;(e.indexOf("/ShopOwner/PrintDailyPlanPopup.aspx")>-1||e.indexOf("/DynamicPopupPages/Videos.aspx")>-1||e.indexOf("/ShopOwner/VagaroDrivePopup.aspx")>-1||e.indexOf("/merchants/settings/premiumfeature/vagaropaylater")>-1)&&(window.location.href.indexOf("/merchants/calendar")>-1||window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1||window.location.href.toLocaleLowerCase().indexOf("searchclassfromcalendar.aspx")>-1)&&window.location.href.indexOf("/merchants/settings/lookandfeel/calendarconfiguration")<0&&(e.indexOf("?")>-1?e+="&cal=1":e+="?cal=1");var d=document.getElementById(n);if((l=getTopLeftPosition(t,i).split("|"))[0],l[1],l[2],e.toLowerCase().indexOf("/shopowner/zoomintegrationpopup.aspx")>-1&&(d.innerHTML="",window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1&&void 0!==window.parent&&null!=window.parent&&window.parent.location.href.toLocaleLowerCase().indexOf("shopowner/checkout.aspx")>-1&&(e.indexOf("?")>-1?e+="&isCheckout=1":e+="?isCheckout=1")),trimAll(d.innerHTML).length<6){var u=GetPopupCodeForShopOwner(t,i,e,n,a,r,s);if(d.innerHTML=u,d.width="auto",d.height="auto",d.style.zIndex=1000001,null!=o&&null!=o){var p="iFrame_"+n;(f=document.getElementById(p)).contentWindow?f.contentWindow.onload=function(){document.getElementById("frame_apgProgress_"+n).style.display="none",(0,f.contentWindow[o])(s,c)}:f.contentDocument&&(f.contentDocument.onload=function(){document.getElementById("frame_apgProgress_"+n).style.display="none",(0,f.contentDocument[o])(s,c)})}}else if(null!=o&&null!=o){var f;p="iFrame_"+n;if((f=document.getElementById(p)).contentWindow)(0,f.contentWindow[o])(s,c);else if(f.contentDocument){(0,f.contentDocument[o])(s,c)}}void 0!==e&&""!=e&&void 0!==$("#chatFrame")&&$("#chatFrame").length>0&&e.indexOf("/ShopOwner/PrintDailyPlanPopup.aspx")>-1&&"block"==$("#chatFrame").css("display")&&!$("#chatFrame").hasClass("ifream-smallscreen")&&!$("#chatFrame").hasClass("ifream-minimize")&&$("#chatFrame").css("display","none"),SetTopLeft(d),void 0!==d&&"divMergeCustomer"!=d.id&&(d.style.display="flex"),Call_ClearControls(n)}function GetPopupCodeForShopOwner(e,t,i,n,a,o,s){var r="no",c="hidden";if("DivCustomerHistoryPopUp"==n)r="yes",c="auto";var l="";null!=s&&"AddEditCustomer"!=a&&-1!=s.toLowerCase().indexOf("businesscreated.aspx")&&(l="allowfullscreen");var d="";return null!=o&&(d="class="+o),"<div id='frame_apgProgress_"+n+"' style='display:;'><div class='loader'>&nbsp;</div><div class='loader-img'><img id='frame_imgLoading' src='"+VagaroStaticURL+"Images/loadersmall.gif' style='border-width:0px;width:80px;height:20px;' /></div></div><div style='position: relative; ' id='divinnertop_up'><div id='modalpopupNewAppointment_backgroundElement' style='position: fixed; left: 0px; top: 0px; z-index: -1; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white;  font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div class='Modalhistoryfullwidth'  style='width: auto; height: auto; border-radius:4px;  overflow:hidden;'>\x3c!-- Content --\x3e<iframe "+d+"   "+l+"  name='frame1' frameborder='0' scrolling="+r+" border='0' src='"+i+"' style='overflow:"+c+";width: "+t+"px; height: "+e+"px;' id='iFrame_"+n+"' onload='javascript:document.getElementById(\"frame_apgProgress_"+n+'").style.display="none";\'></iframe></div>'}function SetTopLeft(e){$(e).css("position","absolute");$(document).scrollTop();$(e).css("top",Math.max(0,($(window).height()-$(e).outerHeight())/2+$(window).scrollTop())+"px"),$(e).css("left",Math.max(0,($(window).width()-$(e).outerWidth())/2+$(window).scrollLeft())+"px")}function loadbusinessusercontrol(){if(""==$("#ucdivBusinessselecteion").html()||null==$("#ucdivBusinessselecteion").html()){$("#ucdivBusinessselecteion").html("");var e={UserControlPath:"~/ShopOwner/UserControls/ucBusinessList.ascx"};"True"==$("#ucdivBusinessselecteion").data("loadjs")?e.PageNamePath="~/calendar.aspx":e.PageNamePath="~/transactionReport.aspx",e.isRemoveFormTag=!0,AddUserControlAsync("CalendarWebService.asmx/LoadUserControl",JSON.stringify(e),$("#ucdivBusinessselecteion")),setTimeout(function(){LoadBusinessList()},500)}else LoadBusinessList()}"complete"===document.readyState&&$(window).resize(function(){SetTopLeft("#DivCustomerHistoryPopUp")});var deleteConfirm="Are you sure you want to delete?",archieveConfirm="Are you sure you want to archieve?",keepAlive=void 0,SelectedSender=[],userType={vagaroAdmin:"6"},commonPermissionDenied="/Users/PermissionDenied.aspx",DB_NAME="CustomerDB",STORE_NAME="CustomersList",SupportUpSellFeature={CalendarCharges:"0",CreditCardProcessing:"1",QuickBook:"2",Xero:"3",CheckinApp:"4",BrandedApp:"5",EmailMarketing:"6",TextMarketing:"7",Forms:"8",CustomWebsite:"9",ShoppingCart:"10",FeatureBusiness:"11",VagaroDrive:"12",Gusto:"13",LiveStream:"14",VagaroPayLater:"15",DataLake:"16",MySite:"17",VagaroPayroll:"18",APIsandWebhooks:"20"};function openIndexedDB(){return new Promise((e,t)=>{const i=indexedDB.open(DB_NAME,1);i.onupgradeneeded=function(e){const t=e.target.result;t.objectStoreNames.contains(STORE_NAME)||t.createObjectStore(STORE_NAME,{keyPath:"ID"})},i.onsuccess=t=>e(t.target.result),i.onerror=e=>t(e.target.error)})}async function saveCustomersToIndexedDB(e){const t=await openIndexedDB(),i=t.transaction(STORE_NAME,"readwrite"),n=i.objectStore(STORE_NAME);for(const t of e)n.put(t);await i.complete,t.close()}async function getCustomersFromIndexedDB(){const e=await openIndexedDB(),t=e.transaction(STORE_NAME,"readonly").objectStore(STORE_NAME),i=await new Promise((e,i)=>{const n=t.getAll();n.onsuccess=()=>e(n.result),n.onerror=()=>i(n.error)});return e.close(),i}function setCusList(e){try{saveCustomersToIndexedDB(e)}catch(e){console.warn("storing in IndexedDB failed",e)}}async function getCusList(){try{return await getCustomersFromIndexedDB()}catch(e){console.warn("Error accessing IndexedDB:",e)}}function Check_IsSuperAdmin(){try{return 6==$("#hiddenLoginUser_Type").val()||6==$("#hdnsessUserType").val()}catch{return!1}}function IsIndexDBEnable(){return"undefined"!=typeof IsEnableCustomerFromIndexDb&&null!=IsEnableCustomerFromIndexDb&&1==IsEnableCustomerFromIndexDb}function deleteIndexedDB(){var e=indexedDB.deleteDatabase(DB_NAME);e.onsuccess=function(){console.log("Deleted database successfully")},e.onerror=function(){console.log("Couldn't delete database")},e.onblocked=function(){console.log("Couldn't delete database due to the operation being blocked")}}function clearIndexedDBCustomers(){const e=indexedDB.open(DB_NAME);e.onsuccess=function(e){const t=e.target.result.transaction(STORE_NAME,"readwrite").objectStore(STORE_NAME).clear();t.onsuccess=()=>{console.log("Old customer data cleared from IndexedDB.")},t.onerror=e=>{console.warn("Failed to clear IndexedDB data:",e)}},e.onerror=function(e){console.warn("Failed to open IndexedDB:",e.target.error)}}async function IsFromIndexedDB(){return new Promise(e=>{const t=indexedDB.open("CustomerDB");t.onsuccess=t=>{const i=t.target.result;if(!i.objectStoreNames.contains("CustomersList"))return i.close(),void e(!1);const n=i.transaction("CustomersList","readonly").objectStore("CustomersList").count();n.onsuccess=()=>{i.close(),e(n.result>0)},n.onerror=()=>{i.close(),e(!1)}},t.onerror=()=>{e(!1)}})}async function IsFromIndexDb(){return await IsFromIndexedDB()}async function AddNewCustomerInIndexDB(e){if(e&&e.CustomerID)try{const t=await getCusList()||[],i={ID:e.CustomerID.toString(),FN:e.FullName,D:e.glbDayPhone,C:e.glbCell,N:e.glbNightPhone,E:e.glbEmail},n=t.filter(t=>t.ID!==e.CustomerID.toString());n.push(i),await saveCustomersToIndexedDB(n),"Checkout"===glbParentPage&&setCheckoutCustomerLocalStorageData(),"CustomerModule"===glbParentPage&&setCustomerModuleCustomerLocalStorageData()}catch(e){console.warn("Error storing customer to IndexedDB:",e)}}async function RemoveCustomerFromIndexDB(e){if(!e||"0"===e)return;const t=indexedDB.open("CustomerDB",1);t.onsuccess=function(t){const i=t.target.result.transaction("CustomersList","readwrite").objectStore("CustomersList").delete(e.toString());i.onsuccess=function(){console.log(`Customer with ID ${e} has been deleted from IndexedDB.`),"function"==typeof setCustomerModuleCustomerLocalStorageData&&setCustomerModuleCustomerLocalStorageData()},i.onerror=function(e){console.error("Error deleting customer:",e.target.error)}},t.onerror=function(e){console.error("Error opening IndexedDB:",e.target.error)}}function selectString(e){return"Please select "+e+"."}function requiredString(e){return"Please enter value of "+e+"."}function cbo_OnClientLoad(e){e.get_inputDomElement().readOnly="readonly"}function RedirectPage(e){location.href=e}function IgnoreScriptTag(e,t){""==t&&(t="<>"),document.all?k=e.keyCode:k=e.which;for(var i=0;i<t.length;i++)if(t.charCodeAt(i)==k)return e.returnValue=null,!1}function IgnoreCharacters(e,t){""==t&&(t='&#%*:"\\|/.<>?'),document.all?k=e.keyCode:k=e.which;for(var i=0;i<t.length;i++)if(t.charCodeAt(i)==k)return e.returnValue=null,!1}function IgnoreCharactersWithDot(e,t){""==t&&(t='&#%*:"\\|/<>?'),document.all?k=e.keyCode:k=e.which;for(var i=0;i<t.length;i++)if(t.charCodeAt(i)==k)return e.returnValue=null,!1}function IgnoreCharactersWithSingleQuote(e,t){""==t&&(t="&#%*:\"\\|/.<>?'"),document.all?k=e.keyCode:k=e.which;for(var i=0;i<t.length;i++)if(t.charCodeAt(i)==k)return e.returnValue=null,!1}var dFeatures="dialogHeight: 200px; dialogWidth: 400px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;",modalWin="null",returnValue="",pHeight,pWidth;function xShowModalDialog(e,t,i){if(null==e||""==e)return alert("Invalid URL input."),!1;if(null!=t&&""!=t||(t=""),null!=i&&""!=i||(i=dFeatures),-1!=window.navigator.appVersion.indexOf("MSIE"))return returnValue=window.showModalDialog(e,t,i),!1;for(x in i=i.replace(/ /gi,""),aFeatures=i.split(";"),sWinFeat="directories=0,menubar=0,titlebar=0,toolbar=0,",aFeatures)switch(aTmp=aFeatures[x].split(":"),sKey=aTmp[0].toLowerCase(),sVal=aTmp[1],sKey){case"dialogheight":sWinFeat+="height="+sVal+",",pHeight=sVal.replace("px","");break;case"dialogwidth":sWinFeat+="width="+sVal+",",pWidth=sVal.replace("px","");break;case"dialogtop":sWinFeat+="screenY="+sVal+",";break;case"dialogleft":sWinFeat+="screenX="+sVal+",";break;case"resizable":sWinFeat+="resizable="+sVal+",";break;case"status":sWinFeat+="status="+sVal+",";break;case"center":"yes"==sVal.toLowerCase()&&(sWinFeat+="screenY="+(screen.availHeight-pHeight)/2+",",sWinFeat+="screenX="+(screen.availWidth-pWidth)/2+",")}modalWin=window.open(String(e),"",sWinFeat),null!=t&&""!=t&&(modalWin.dialogArguments=t)}function CheckAlpha(e){var t;return(t=document.all?e.keyCode:e.which)>64&&t<91||t>96&&t<123||8==t||0==t}function CheckAlphaWithSpace(e){var t;return(t=document.all?e.keyCode:e.which)>64&&t<91||t>96&&t<123||8==t||0==t||32==t}function CheckNumeric(e,t){var i;i=document.all?e.keyCode:e.which;var n=e.srcElement.value;if(n.indexOf(".")>-1){if(46==i)return!1;if(n.substring(n.indexOf("."),n.length).length>t)return!1}return i>=48&&i<=57||46==i||8==i||0==i}function CheckCompany(e){var t;return(t=document.all?e.keyCode:e.which)>64&&t<91||t>96&&t<123||8==t||0==t||38==t||39==t||45==t||46==t||32==t}function CheckContactNo(e){var t;return(t=document.all?e.keyCode:e.which)>=48&&t<=57||8==t||0==t}function RemoveErrorMsg(){document.getElementById("divError").innerHTML=""}function openwindow(e){window.open(e,"","","")}var ratingDescSearch=new Array("Poor","Fair","Average","Good","Excellent"),ratingDescNormal=new Array("Excellent","Good","Average","Fair","Poor"),ratingDesc,shopdetailkeyword;function SetRatingControlBehavior(e,t,n){if(ratingDesc=ratingDescSearch,null!=document.getElementById(e))for(document.getElementById(e).onmouseout=new Function("FixClearValue("+n+");"),KeepValue[n]="",i=0;i<5;i++){var a=document.getElementById(e+"_Star_"+(i+1).toString());a.title="",a.onmouseover=new Function("ShowRatingDesc('"+ratingDesc[i]+"',-1,"+n+");"),a.onclick=new Function("ShowRatingDesc('"+ratingDesc[i]+"',1,"+n+");")}}function ShowRatingDesc(e,t,i){document.getElementById("spn"+i).innerHTML=e,null!=t&&1==t&&(KeepValue[i]=e)}function SetRatingControlBehaviorToSetVal(e,t,n){for(ratingDesc=ratingDescSearch,document.getElementById(e).onmouseout=new Function("FixClearValue("+n+");"),KeepValue[n]="",i=0;i<5;i++){var a=document.getElementById(e+"_Star_"+(i+1).toString());a.title="",a.onmouseover=new Function("ShowRatingDesc('"+ratingDesc[i]+"',-1,"+n+");"),a.onclick=new Function("ShowRatingDesc('"+ratingDesc[i]+"',1,"+n+");")}}function ShowRatingDescToSetVal(e,t,i){ratingDesc=ratingDescSearch,document.getElementById("spn"+i).innerHTML=ratingDescSearch[t],KeepValue[i]=ratingDescSearch[t]}function FixClearValueToSetVal(e,t){document.getElementById("spn"+e).innerHTML=ratingDescSearch[t]}function FixClearValue(e){document.getElementById("spn"+e).innerHTML=KeepValue[e]}function trim(e){var t=/^(\s*)$/;return t.test(e)&&0==(e=e.replace(t,"")).length||(t=/^(\s*)([\W\w]*)(\b\s*$)/).test(e)&&(e=e.replace(t,"$2")),e}function rTrim(e){var t=/^([\w\W]*)(\b\s*)$/;return t.test(e)&&(e=e.replace(t,"$1")),e}function lTrim(e){var t=/^(\s*)(\b[\w\W]*)$/;return t.test(e)&&(e=e.replace(t,"$2")),e}function readCookie(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var a=i[n];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null}function SetFocusOnError(){setTimeout("scroll(0, 0)",50)}function PrintPage(e,t){var i="/Users/PrintGrid.aspx?PageType="+e;null!=t&&"1"==t&&(i+="&isexport=1"),window.open(i,"","left=0,top=0,width=750,height=650,toolbar=0,scrollbars=0,status=0,resizable=0")}function echeck(e){if(""==trim(e))return!1;var t=!0;return/^[A-Za-z0-9_\+-]+(\.[A-Za-z0-9_\+-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.([A-Za-z]{2,10})$/.test(e)||(t=!1),t}function CallFailed(e){alert(e.get_message())}function Encrypt(e){for(output=new String,Temp=new Array,Temp2=new Array,TextSize=e.length,i=0;i<TextSize;i++)rnd=Math.round(122*Math.random())+68,Temp[i]=e.charCodeAt(i)+rnd,Temp2[i]=rnd;for(i=0;i<TextSize;i++)output+=String.fromCharCode(Temp[i],Temp2[i]);return output}function unEncrypt(e){for(output=new String,Temp=new Array,Temp2=new Array,TextSize=e.length,i=0;i<TextSize;i++)Temp[i]=e.charCodeAt(i),Temp2[i]=e.charCodeAt(i+1);for(i=0;i<TextSize;i+=2)output+=String.fromCharCode(Temp[i]-Temp2[i]);return output}function HtmlDecode(s){var out="";if(null!=s){for(var l=s.length,i=0;i<l;i++){var ch=s.charAt(i);if("&"==ch){var semicolonIndex=s.indexOf(";",i+1);if(semicolonIndex>0){var entity=s.substring(i+1,semicolonIndex);if(entity.length>1&&"#"==entity.charAt(0))ch="x"==entity.charAt(1)||"X"==entity.charAt(1)?String.fromCharCode(eval("0"+entity.substring(1))):String.fromCharCode(eval(entity.substring(1)));else switch(entity){case"quot":ch=String.fromCharCode(34);break;case"amp":ch=String.fromCharCode(38);break;case"lt":ch=String.fromCharCode(60);break;case"gt":ch=String.fromCharCode(62);break;case"nbsp":ch=String.fromCharCode(160);break;case"iexcl":ch=String.fromCharCode(161);break;case"cent":ch=String.fromCharCode(162);break;case"pound":ch=String.fromCharCode(163);break;case"curren":ch=String.fromCharCode(164);break;case"yen":ch=String.fromCharCode(165);break;case"brvbar":ch=String.fromCharCode(166);break;case"sect":ch=String.fromCharCode(167);break;case"uml":ch=String.fromCharCode(168);break;case"copy":ch=String.fromCharCode(169);break;case"ordf":ch=String.fromCharCode(170);break;case"laquo":ch=String.fromCharCode(171);break;case"not":ch=String.fromCharCode(172);break;case"shy":ch=String.fromCharCode(173);break;case"reg":ch=String.fromCharCode(174);break;case"macr":ch=String.fromCharCode(175);break;case"deg":ch=String.fromCharCode(176);break;case"plusmn":ch=String.fromCharCode(177);break;case"sup2":ch=String.fromCharCode(178);break;case"sup3":ch=String.fromCharCode(179);break;case"acute":ch=String.fromCharCode(180);break;case"micro":ch=String.fromCharCode(181);break;case"para":ch=String.fromCharCode(182);break;case"middot":ch=String.fromCharCode(183);break;case"cedil":ch=String.fromCharCode(184);break;case"sup1":ch=String.fromCharCode(185);break;case"ordm":ch=String.fromCharCode(186);break;case"raquo":ch=String.fromCharCode(187);break;case"frac14":ch=String.fromCharCode(188);break;case"frac12":ch=String.fromCharCode(189);break;case"frac34":ch=String.fromCharCode(190);break;case"iquest":ch=String.fromCharCode(191);break;case"Agrave":ch=String.fromCharCode(192);break;case"Aacute":ch=String.fromCharCode(193);break;case"Acirc":ch=String.fromCharCode(194);break;case"Atilde":ch=String.fromCharCode(195);break;case"Auml":ch=String.fromCharCode(196);break;case"Aring":ch=String.fromCharCode(197);break;case"AElig":ch=String.fromCharCode(198);break;case"Ccedil":ch=String.fromCharCode(199);break;case"Egrave":ch=String.fromCharCode(200);break;case"Eacute":ch=String.fromCharCode(201);break;case"Ecirc":ch=String.fromCharCode(202);break;case"Euml":ch=String.fromCharCode(203);break;case"Igrave":ch=String.fromCharCode(204);break;case"Iacute":ch=String.fromCharCode(205);break;case"Icirc":ch=String.fromCharCode(206);break;case"Iuml":ch=String.fromCharCode(207);break;case"ETH":ch=String.fromCharCode(208);break;case"Ntilde":ch=String.fromCharCode(209);break;case"Ograve":ch=String.fromCharCode(210);break;case"Oacute":ch=String.fromCharCode(211);break;case"Ocirc":ch=String.fromCharCode(212);break;case"Otilde":ch=String.fromCharCode(213);break;case"Ouml":ch=String.fromCharCode(214);break;case"times":ch=String.fromCharCode(215);break;case"Oslash":ch=String.fromCharCode(216);break;case"Ugrave":ch=String.fromCharCode(217);break;case"Uacute":ch=String.fromCharCode(218);break;case"Ucirc":ch=String.fromCharCode(219);break;case"Uuml":ch=String.fromCharCode(220);break;case"Yacute":ch=String.fromCharCode(221);break;case"THORN":ch=String.fromCharCode(222);break;case"szlig":ch=String.fromCharCode(223);break;case"agrave":ch=String.fromCharCode(224);break;case"aacute":ch=String.fromCharCode(225);break;case"acirc":ch=String.fromCharCode(226);break;case"atilde":ch=String.fromCharCode(227);break;case"auml":ch=String.fromCharCode(228);break;case"aring":ch=String.fromCharCode(229);break;case"aelig":ch=String.fromCharCode(230);break;case"ccedil":ch=String.fromCharCode(231);break;case"egrave":ch=String.fromCharCode(232);break;case"eacute":ch=String.fromCharCode(233);break;case"ecirc":ch=String.fromCharCode(234);break;case"euml":ch=String.fromCharCode(235);break;case"igrave":ch=String.fromCharCode(236);break;case"iacute":ch=String.fromCharCode(237);break;case"icirc":ch=String.fromCharCode(238);break;case"iuml":ch=String.fromCharCode(239);break;case"eth":ch=String.fromCharCode(240);break;case"ntilde":ch=String.fromCharCode(241);break;case"ograve":ch=String.fromCharCode(242);break;case"oacute":ch=String.fromCharCode(243);break;case"ocirc":ch=String.fromCharCode(244);break;case"otilde":ch=String.fromCharCode(245);break;case"ouml":ch=String.fromCharCode(246);break;case"divide":ch=String.fromCharCode(247);break;case"oslash":ch=String.fromCharCode(248);break;case"ugrave":ch=String.fromCharCode(249);break;case"uacute":ch=String.fromCharCode(250);break;case"ucirc":ch=String.fromCharCode(251);break;case"uuml":ch=String.fromCharCode(252);break;case"yacute":ch=String.fromCharCode(253);break;case"thorn":ch=String.fromCharCode(254);break;case"yuml":ch=String.fromCharCode(255);break;case"OElig":ch=String.fromCharCode(338);break;case"oelig":ch=String.fromCharCode(339);break;case"Scaron":ch=String.fromCharCode(352);break;case"scaron":ch=String.fromCharCode(353);break;case"Yuml":ch=String.fromCharCode(376);break;case"fnof":ch=String.fromCharCode(402);break;case"circ":ch=String.fromCharCode(710);break;case"tilde":ch=String.fromCharCode(732);break;case"Alpha":ch=String.fromCharCode(913);break;case"Beta":ch=String.fromCharCode(914);break;case"Gamma":ch=String.fromCharCode(915);break;case"Delta":ch=String.fromCharCode(916);break;case"Epsilon":ch=String.fromCharCode(917);break;case"Zeta":ch=String.fromCharCode(918);break;case"Eta":ch=String.fromCharCode(919);break;case"Theta":ch=String.fromCharCode(920);break;case"Iota":ch=String.fromCharCode(921);break;case"Kappa":ch=String.fromCharCode(922);break;case"Lambda":ch=String.fromCharCode(923);break;case"Mu":ch=String.fromCharCode(924);break;case"Nu":ch=String.fromCharCode(925);break;case"Xi":ch=String.fromCharCode(926);break;case"Omicron":ch=String.fromCharCode(927);break;case"Pi":ch=String.fromCharCode(928);break;case" Rho ":ch=String.fromCharCode(929);break;case"Sigma":ch=String.fromCharCode(931);break;case"Tau":ch=String.fromCharCode(932);break;case"Upsilon":ch=String.fromCharCode(933);break;case"Phi":ch=String.fromCharCode(934);break;case"Chi":ch=String.fromCharCode(935);break;case"Psi":ch=String.fromCharCode(936);break;case"Omega":ch=String.fromCharCode(937);break;case"alpha":ch=String.fromCharCode(945);break;case"beta":ch=String.fromCharCode(946);break;case"gamma":ch=String.fromCharCode(947);break;case"delta":ch=String.fromCharCode(948);break;case"epsilon":ch=String.fromCharCode(949);break;case"zeta":ch=String.fromCharCode(950);break;case"eta":ch=String.fromCharCode(951);break;case"theta":ch=String.fromCharCode(952);break;case"iota":ch=String.fromCharCode(953);break;case"kappa":ch=String.fromCharCode(954);break;case"lambda":ch=String.fromCharCode(955);break;case"mu":ch=String.fromCharCode(956);break;case"nu":ch=String.fromCharCode(957);break;case"xi":ch=String.fromCharCode(958);break;case"omicron":ch=String.fromCharCode(959);break;case"pi":ch=String.fromCharCode(960);break;case"rho":ch=String.fromCharCode(961);break;case"sigmaf":ch=String.fromCharCode(962);break;case"sigma":ch=String.fromCharCode(963);break;case"tau":ch=String.fromCharCode(964);break;case"upsilon":ch=String.fromCharCode(965);break;case"phi":ch=String.fromCharCode(966);break;case"chi":ch=String.fromCharCode(967);break;case"psi":ch=String.fromCharCode(968);break;case"omega":ch=String.fromCharCode(969);break;case"thetasym":ch=String.fromCharCode(977);break;case"upsih":ch=String.fromCharCode(978);break;case"piv":ch=String.fromCharCode(982);break;case"ensp":ch=String.fromCharCode(8194);break;case"emsp":ch=String.fromCharCode(8195);break;case"thinsp":ch=String.fromCharCode(8201);break;case"zwnj":ch=String.fromCharCode(8204);break;case"zwj":ch=String.fromCharCode(8205);break;case"lrm":ch=String.fromCharCode(8206);break;case"rlm":ch=String.fromCharCode(8207);break;case"ndash":ch=String.fromCharCode(8211);break;case"mdash":ch=String.fromCharCode(8212);break;case"lsquo":ch=String.fromCharCode(8216);break;case"rsquo":ch=String.fromCharCode(8217);break;case"sbquo":ch=String.fromCharCode(8218);break;case"ldquo":ch=String.fromCharCode(8220);break;case"rdquo":ch=String.fromCharCode(8221);break;case"bdquo":ch=String.fromCharCode(8222);break;case"dagger":ch=String.fromCharCode(8224);break;case"Dagger":ch=String.fromCharCode(8225);break;case"bull":ch=String.fromCharCode(8226);break;case"hellip":ch=String.fromCharCode(8230);break;case"permil":ch=String.fromCharCode(8240);break;case"prime":ch=String.fromCharCode(8242);break;case"Prime":ch=String.fromCharCode(8243);break;case"lsaquo":ch=String.fromCharCode(8249);break;case"rsaquo":ch=String.fromCharCode(8250);break;case"oline":ch=String.fromCharCode(8254);break;case"frasl":ch=String.fromCharCode(8260);break;case"euro":ch=String.fromCharCode(8364);break;case"image":ch=String.fromCharCode(8465);break;case"weierp":ch=String.fromCharCode(8472);break;case"real":ch=String.fromCharCode(8476);break;case"trade":ch=String.fromCharCode(8482);break;case"alefsym":ch=String.fromCharCode(8501);break;case"larr":ch=String.fromCharCode(8592);break;case"uarr":ch=String.fromCharCode(8593);break;case"rarr":ch=String.fromCharCode(8594);break;case"darr":ch=String.fromCharCode(8595);break;case"harr":ch=String.fromCharCode(8596);break;case"crarr":ch=String.fromCharCode(8629);break;case"lArr":ch=String.fromCharCode(8656);break;case"uArr":ch=String.fromCharCode(8657);break;case"rArr":ch=String.fromCharCode(8658);break;case"dArr":ch=String.fromCharCode(8659);break;case"hArr":ch=String.fromCharCode(8660);break;case"forall":ch=String.fromCharCode(8704);break;case"part":ch=String.fromCharCode(8706);break;case"exist":ch=String.fromCharCode(8707);break;case"empty":ch=String.fromCharCode(8709);break;case"nabla":ch=String.fromCharCode(8711);break;case"isin":ch=String.fromCharCode(8712);break;case"notin":ch=String.fromCharCode(8713);break;case"ni":ch=String.fromCharCode(8715);break;case"prod":ch=String.fromCharCode(8719);break;case"sum":ch=String.fromCharCode(8721);break;case"minus":ch=String.fromCharCode(8722);break;case"lowast":ch=String.fromCharCode(8727);break;case"radic":ch=String.fromCharCode(8730);break;case"prop":ch=String.fromCharCode(8733);break;case"infin":ch=String.fromCharCode(8734);break;case"ang":ch=String.fromCharCode(8736);break;case"and":ch=String.fromCharCode(8743);break;case"or":ch=String.fromCharCode(8744);break;case"cap":ch=String.fromCharCode(8745);break;case"cup":ch=String.fromCharCode(8746);break;case"int":ch=String.fromCharCode(8747);break;case"there4":ch=String.fromCharCode(8756);break;case"sim":ch=String.fromCharCode(8764);break;case"cong":ch=String.fromCharCode(8773);break;case"asymp":ch=String.fromCharCode(8776);break;case"ne":ch=String.fromCharCode(8800);break;case"equiv":ch=String.fromCharCode(8801);break;case"le":ch=String.fromCharCode(8804);break;case"ge":ch=String.fromCharCode(8805);break;case"sub":ch=String.fromCharCode(8834);break;case"sup":ch=String.fromCharCode(8835);break;case"nsub":ch=String.fromCharCode(8836);break;case"sube":ch=String.fromCharCode(8838);break;case"supe":ch=String.fromCharCode(8839);break;case"oplus":ch=String.fromCharCode(8853);break;case"otimes":ch=String.fromCharCode(8855);break;case"perp":ch=String.fromCharCode(8869);break;case"sdot":ch=String.fromCharCode(8901);break;case"lceil":ch=String.fromCharCode(8968);break;case"rceil":ch=String.fromCharCode(8969);break;case"lfloor":ch=String.fromCharCode(8970);break;case"rfloor":ch=String.fromCharCode(8971);break;case"lang":ch=String.fromCharCode(9001);break;case"rang":ch=String.fromCharCode(9002);break;case"loz":ch=String.fromCharCode(9674);break;case"spades":ch=String.fromCharCode(9824);break;case"clubs":ch=String.fromCharCode(9827);break;case"hearts":ch=String.fromCharCode(9829);break;case"diams":ch=String.fromCharCode(9830);break;default:ch=""}i=semicolonIndex}}out+=ch}return out}}function addOption(e,t,i,n,a){var o=document.createElement("OPTION");o.text=t,o.value=i,e.options.add(o),n&&(o.selected=!0),void 0!==a&&1==a&&(e.options[e.length-1].disabled=!0)}function ShowMyVagaroPage(e,t,i){shopdetailkeyword=t,Vagaro.MySampleService.ShowVagaroPage(e,i,CallSuccess_ShowMyVagaroPage,CallFailed)}function CallSuccess_ShowMyVagaroPage(e){if("Microsoft Internet Explorer"==navigator.appName){var t=document.createElement("a");t.href=location.protocol+"//"+location.host+shopdetailkeyword,t.target="_blank",document.body.appendChild(t),t.click()}else{null==window.open(location.protocol+"//"+location.host+shopdetailkeyword)&&alert("popup is blocked in your browser please enable popup first.")}}function IsNullOrEmpty(e){return null==e||(0==trim(e.toString()).length||"null"==trim(e.toString()))}function selectTextboxContent(e){navigator.userAgent.match(/iPad/i)&&null!==navigator.userAgent.match(/iPad/i)?setTimeout(function(){e.setSelectionRange(0,parseInt(e.value.length+1))},10):setTimeout(function(){e.select()},10)}function changeCSS(e,t,i,n){var a,o=!1;e.rules?a="rules":e.cssRules&&(a="cssRules");for(var s=0;s<e[a].length;s++)if(e[a][s].selectorText==t&&e[a][s].style[i]){e[a][s].style[i]=n,o=!0;break}o||(e.insertRule?e.insertRule(t+" { "+i+": "+n+"; }",e[a].length):e.addRule&&e.addRule(t,i+": "+n+";"))}function getQuerystring(e,t){alert(window.location.href),null==t&&(t=""),e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.href);return null==i?t:i[1]}function getViewPortHeightWidth(){var e,t;return 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),t+"|"+e}function trimPassword(e){return e.replace(/^\s+|\s+$/g,"")}function SetRatingStar(e){null==cdnImagePath&&(cdnImagePath="");var t="";return t+="<span class='rating-span'>",t+="<img src='"+cdnImagePath+"/Images/star-ratting"+(e.split(":")[0]>=1?"":"-off")+".png' alt='' id='Overall1' style='float: left;' />",t+="<img src='"+cdnImagePath+"/Images/star-ratting"+(e.split(":")[0]>=2?"":"-off")+".png' alt='' id='Overall2' style='float: left;' />",t+="<img src='"+cdnImagePath+"/Images/star-ratting"+(e.split(":")[0]>=3?"":"-off")+".png' alt='' id='Overall3' style='float: left;' />",t+="<img src='"+cdnImagePath+"/Images/star-ratting"+(e.split(":")[0]>=4?"":"-off")+".png' alt='' id='Overall4' style='float: left;' />",t+="<img src='"+cdnImagePath+"/Images/star-ratting"+(e.split(":")[0]>=5?"":"-off")+".png' alt='' id='Overall5' style='float: left;' />",t+="</span>"}function GetFixLengthString(e,t){return e.length>t?e.substring(0,t-1)+"..":e}function setText(e,t){void 0!==e.textContent?e.textContent=t:void 0!==e.innerText&&(e.innerText=t)}function getTimezoneName(){return tmSummer=new Date(Date.UTC(2005,6,30,0,0,0,0)),so=-1*tmSummer.getTimezoneOffset(),tmWinter=new Date(Date.UTC(2005,12,30,0,0,0,0)),wo=-1*tmWinter.getTimezoneOffset(),gblso=so,gblwo=wo,-660==so&&-660==wo?"Pacific/Midway":-600==so&&-600==wo?"Pacific/Tahiti":-570==so&&-570==wo?"Pacific/Marquesas":-540==so&&-600==wo?"America/Adak":-540==so&&-540==wo?"Pacific/Gambier":-480==so&&-540==wo?"US/Alaska":-480==so&&-480==wo?"Pacific/Pitcairn":-420==so&&-480==wo?"US/Pacific":-420==so&&-420==wo?"US/Arizona":-360==so&&-420==wo?"US/Mountain":-360==so&&-360==wo?"America/Guatemala":-360==so&&-300==wo?"Pacific/Easter":-300==so&&-360==wo?"US/Central":-300==so&&-300==wo?"America/Bogota":-240==so&&-300==wo?"US/Eastern":-240==so&&-240==wo?"America/Caracas":-240==so&&-180==wo?"America/Santiago":-180==so&&-240==wo?"Canada/Atlantic":-180==so&&-180==wo?"America/Montevideo":-180==so&&-120==wo?"America/Sao_Paulo":-150==so&&-210==wo?"America/St_Johns":-120==so&&-180==wo?"America/Godthab":-120==so&&-120==wo?"America/Noronha":-60==so&&-60==wo?"Atlantic/Cape_Verde":0==so&&-60==wo?"Atlantic/Azores":0==so&&0==wo?"Africa/Casablanca":60==so&&0==wo?"Europe/London":60==so&&60==wo?"Africa/Algiers":60==so&&120==wo?"Africa/Windhoek":120==so&&60==wo?"Europe/Amsterdam":120==so&&120==wo?"Africa/Harare":180==so&&120==wo?"Europe/Athens":180==so&&180==wo?"Africa/Nairobi":240==so&&180==wo?"Europe/Moscow":240==so&&240==wo?"Asia/Dubai":270==so&&210==wo?"Asia/Tehran":270==so&&270==wo?"Asia/Kabul":300==so&&240==wo?"Asia/Baku":300==so&&300==wo?"Asia/Karachi":330==so&&330==wo?"Asia/Calcutta":345==so&&345==wo?"Asia/Katmandu":360==so&&300==wo?"Asia/Yekaterinburg":360==so&&360==wo?"Asia/Colombo":390==so&&390==wo?"Asia/Rangoon":420==so&&360==wo?"Asia/Almaty":420==so&&420==wo?"Asia/Bangkok":480==so&&420==wo?"Asia/Krasnoyarsk":480==so&&480==wo?"Australia/Perth":540==so&&480==wo?"Asia/Irkutsk":540==so&&540==wo?"Asia/Tokyo":570==so&&570==wo?"Australia/Darwin":570==so&&630==wo?"Australia/Adelaide":600==so&&540==wo?"Asia/Yakutsk":600==so&&600==wo?"Australia/Brisbane":600==so&&660==wo?"Australia/Sydney":630==so&&660==wo?"Australia/Lord_Howe":660==so&&600==wo?"Asia/Vladivostok":660==so&&660==wo?"Pacific/Guadalcanal":690==so&&690==wo?"Pacific/Norfolk":720==so&&660==wo?"Asia/Magadan":720==so&&720==wo?"Pacific/Fiji":720==so&&780==wo?"Pacific/Auckland":765==so&&825==wo?"Pacific/Chatham":780==so&&780==wo?"Pacific/Enderbury":840==so&&840==wo?"Pacific/Kiritimati":"US/Pacific"}function setCookie(e,t,i){var n=new Date;n.setDate(n.getDate()+i);var a=escape(t)+(null==i?"":"; expires="+n.toUTCString())+"; path=/;";document.cookie=e+"="+a}function getCookie(e){var t,i,n,a=document.cookie.split(";");for(t=0;t<a.length;t++)if(i=a[t].substr(0,a[t].indexOf("=")),n=a[t].substr(a[t].indexOf("=")+1),(i=i.replace(/^\s+|\s+$/g,""))==e)return unescape(n)}function LoadFacebook(e,t){}function PrepareReviewStars(e){var t=document.createElement("a");return t.setAttribute("style","text-decoration:none"),t.setAttribute("title",e.toString()),t.setAttribute("href","#"),e>=1&&e<2?(t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>'):e>=2&&e<3?(t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>'):e>=3&&e<4?(t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>'):e>=4&&e<5?(t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>'):e>=5?(t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar filledRatingStar" >&nbsp;</span>'):(t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>',t.innerHTML+='<span style="float:left;" class="ratingStar emptyRatingStar">&nbsp;</span>'),t.innerHTML+="</a>",t.innerHTML}function GetValueFromRank(e){var t="";switch(e=parseFloat(e)){case 1:t="Poor";break;case 2:t="Fair";break;case 3:t="Average";break;case 4:t="Good";break;case 5:t="Excellent"}return t}function GetRoundValueFromRank(e){var t="";switch(e=Math.round(e)){case 1:t="Poor";break;case 2:t="Fair";break;case 3:t="Average";break;case 4:t="Good";break;case 5:t="Excellent"}return t}function ScrollToTop(){$("html, body").animate({scrollTop:0},"slow")}function ScrollToTopMenu(){$("html, body").animate({scrollTop:156},"slow")}function ScrollToTopShopDetail(){$("html, body").animate({scrollTop:$("#aTopShopDetail").offset().top},"slow")}function ScrollToTopPublicAcc(){$("html, body").animate({scrollTop:$("#aTopPublic").offset().top},"slow")}function CheckSplashScreen(e,t){Vagaro.MySampleService.CheckToShowSplashScreen(e,t,CallSuccessCheckSplashShow,CheckSplashShow_CallFailed)}function CheckSplashShow_CallFailed(e){}function CallSuccessCheckSplashShow(e){"true"==e.toString()&&(location.href="MobileSplash.aspx")}function RegisterLazyLoad(){$("img.lazy").lazyload({event:"sporty"})}function SetLazyTime(){setTimeout(function(){$("img.lazy").trigger("sporty")},2e3)}function ShowLoader(e){1==e?($("#apgLoading").show(),"undefined"!=typeof vgAppicationType&&1==vgAppicationType&&CallbackforMobileApp(0,0,"","",0,14)):$("#apgLoading").hide()}KeepValue=new Array;var _0x76b1=["undefined","length","#IsWaitforKeepALive","val","toLowerCase","true","protocol","//","hostname","port",":","/","WebServices/","POST","application/json; charset=utf-8","{","}","K","setRequestHeader","I","Val","keepAlive","#hdnToken1","token1","#hdnToken2","token2","grouptoken","json","ajax"];function CallWebServicehed(e,t,i,n){if(typeof keepAlive==_0x76b1[0]&&$(_0x76b1[2])[_0x76b1[1]]>0&&typeof $(_0x76b1[2])[_0x76b1[3]]()!=_0x76b1[0]&&$(_0x76b1[2])[_0x76b1[3]]()[_0x76b1[4]]()===_0x76b1[5])setTimeout(function(){CallWebServicehed(e,t,i,n)},500);else{var a=location[_0x76b1[6]]+_0x76b1[7]+location[_0x76b1[8]]+(location[_0x76b1[9]]&&_0x76b1[10]+location[_0x76b1[9]])+_0x76b1[11];e=a+_0x76b1[12]+e,$[_0x76b1[28]]({type:_0x76b1[13],contentType:_0x76b1[14],url:e,data:_0x76b1[15]+t+_0x76b1[16],beforeSend:function(e){e[_0x76b1[18]](_0x76b1[17],getek()),e[_0x76b1[18]](_0x76b1[19],getei()),e[_0x76b1[18]](_0x76b1[20],EncIV()),typeof keepAlive!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[21],keepAlive),1==$(_0x76b1[22])[_0x76b1[1]]&&typeof $(_0x76b1[22])[_0x76b1[3]]()!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[23],$(_0x76b1[22])[_0x76b1[3]]()),1==$(_0x76b1[24])[_0x76b1[1]]&&typeof $(_0x76b1[24])[_0x76b1[3]]()!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[25],$(_0x76b1[24])[_0x76b1[3]]()),typeof groupID!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[26],groupID)},dataType:_0x76b1[27],success:i,error:n})}}function CallWS(e,t,i,n){CallWSJSON(e,t="{"+t+"}",i,n)}function CallWSJSON(e,t,i,n){if(void 0===keepAlive&&$("#IsWaitforKeepALive").length>0&&void 0!==$("#IsWaitforKeepALive").val()&&"true"===$("#IsWaitforKeepALive").val().toLowerCase())setTimeout(function(){CallWSJSON(e,t,i,n)},500);else{var a=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";e=a+"WebServices/"+e,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",xhr:function(){return null!=window.childWindow?new window.childWindow.XMLHttpRequest:new window.XMLHttpRequest},beforeSend:function(e){if(void 0!==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()),"undefined"!=typeof groupID&&e.setRequestHeader("grouptoken",groupID),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&e.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&&e.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}},url:e,data:t,dataType:"json",success:i,error:function(e,t,i){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,i)}catch(e){}}})}}function AsyncCallWS(e,t,i,n){AsyncCallWSJSON(e,t="{"+t+"}",i,n)}function AsyncCallWSJSON(e,t,i,n){e=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/"+"WebServices/"+e,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",beforeSend:function(e){void 0!==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()),"undefined"!=typeof groupID&&e.setRequestHeader("grouptoken",groupID)},url:e,async:!1,data:t,dataType:"json",success:i,error:function(e,t,i){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,i)}catch(e){}}})}function AddUserControlAsync(e,t,i,n){e=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/"+"WebServices/"+e,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:e,async:!1,data:t,dataType:"json",success:function(e){i.append(e.d),"function"==typeof n&&n()},error:function(e){alert("error occured.")}})}function AddUserControl(e,t,i){e=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/"+"WebServices/"+e,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:e,data:t,dataType:"json",success:function(e){i.append(e.d),"#divucNotification"==i.selector&&void 0!==_vagroNotification&&_vagroNotification.LoadNews(0)},error:function(e){}})}function RedirectToShopListReview(e,t){data2="1"==t?"&mode=O":"",CallWS("MySampleService.asmx/SetShopDetailSession",'"sValue" : "'+("tab=7"+("1"==t?"&mode=O":""))+data2+'"',RedirectPage(e),RedirectPage(e))}function ClearValidationControls(){$(".inputbox-type1").removeClass("errorInput"),$(".requiredErrorText").hide(),$(".errorInput").hide()}function CallParentFunction(e,t,i){return ShowDynamicPopup(t,442,766,e,i),!1}function HidePrivacyPolicy(e){HideDynamicPopup(3==e?"divUserAgreement":11==e?"divCustomerAgreement":"divPrivacyPolicy")}function RegisterMenuScroll(){$(function(){var e=$(".inBanner").offset().top,t=function(){$(window).scrollTop()>e?($(".inBanner").css({position:"fixed",top:"34px","z-index":999}),$("#navigation").css({position:"fixed",top:0,"z-index":999})):($(".inBanner").css({position:"relative",top:0}),$("#navigation").css({position:"relative"}))};t(),$(window).scroll(function(){t()})})}function LoadAddToThisSmartLayer(){$.getScript("//s7.addthis.com/js/300/addthis_widget.js#pubid=fredhelou",function(e,t,i){"success"==t&&200==i.status&&addthis.layers({theme:"transparent",share:{position:"left",numPreferredServices:5},follow:{services:[{service:"facebook",id:"vagaro"},{service:"twitter",id:"vagaro"},{service:"pinterest",id:"VagaroPins"}]}})})}function remainingTextCounter(e,t,i,n){if(t=document.getElementById(t),(e="object"==typeof e||"function"==typeof e?e:document.getElementById(e)).value.length>n)return e.value=e.value.substring(0,n),t[i]=0,!1;t[i]=n-e.value.length}function convertJSONDateToDate(e){if(null==e||null==e)return e;var t=/-?\d+/.exec(e);return new Date(parseInt(t[0]))}var cache_ulCustomerList=null,cache_divCustomers=null,cache_txtSearchCustomer=null,cache_divCustomersData=null,cache_pgNoMatchDiv=null,cache_pgDiv=null,cache_divtxtCustomers=null,cache_ctrlendIndex=null,cache_ctrltotalCout=null,cache_isFromiPadAndroid=null,cache_isLoadCustFromDB=null,cache_syncDuration=null,cache_liSelectedClassName=null,cache_HasCustomerRight=null,cache_BusinessId=null,cache_SelectctedItem=null,cache_custlist="cusList",cache_cusSynInfo="cusSynInfo",cache_pageIndex=0,cache_pageSize=10,cache_noOfRecords=0,cache_glbData=[],cache_MS_PER_MINUTE=6e4,cache_isDBCallOnly=!1,cache_lastSearchText="",cache_isFirstTime=!1,cache_isSyncStarted=!1,cache_liSelected,cache_glbisScrollTop=!1,cache_OldSelectctedUserId=0,cache_IsValidControls=!1,IsFirsttime=!0,cache_PageType={newappointmentbook:1,addeditcustomer:2,searchnewappointment:3,mergefromcustomer:4,mergetocustomer:5,customermanagement:6,giftcertificatesender:7,giftcertificateeceipient:8,promotions:9,searchfriendfamilycustomer:10,vagarodrivedashboard:11,vagarodrivefilters:12,searchnewclass:13},glbPageName="";function InitializecomponentWrapper(e,t){var i={};1==cache_PageType[e]?(i.ulCustomerList="ulCustomers",i.divCustomers="divCustomers",i.txtSearchCustomer="txtSearchCustomer",i.divCustomersData="divCustomersData",i.pgNoMatchDiv="pgNoMatchDiv",i.pgDiv="pgDiv",i.totalCout="totalCout",i.endIndex="endIndex",i.divtxtCustomers="divtxtCustomers"):2==cache_PageType[e]?(i.ulCustomerList="ulCustomersAddEdit",i.divCustomers="divCustomersAddEdit",i.txtSearchCustomer="txtCustomerSearchAddEdit",i.divCustomersData="divCustomersDataAddEdit",i.pgNoMatchDiv="pgNoMatchDivAddEdit",i.pgDiv="pgDivAddEdit",i.totalCout="totalCoutAddEdit",i.endIndex="endIndexAddEdit",i.divtxtCustomers="divtxtCustomersAddEdit"):3==cache_PageType[e]?(i.ulCustomerList="ulCustomersAppointment",i.divCustomers="divCustomersAppointment",i.txtSearchCustomer="txtCustomerSearchAppointment",i.divCustomersData="divCustomersDataAppointment",i.pgNoMatchDiv="pgNoMatchDivAppointment",i.pgDiv="pgDivAppointment",i.totalCout="totalCoutAppointment",i.endIndex="endIndexAppointment",i.divtxtCustomers="divtxtCustomersAppointment"):4==cache_PageType[e]?(i.ulCustomerList="ulCustomersFrom",i.divCustomers="divCustomersFrom",i.txtSearchCustomer="txtCustomerSearchFrom",i.divCustomersData="divCustomersDataFrom",i.pgNoMatchDiv="pgNoMatchDivFrom",i.pgDiv="pgDivFrom",i.totalCout="totalCoutFrom",i.endIndex="endIndexFrom",i.divtxtCustomers="divtxtCustomersFrom"):5==cache_PageType[e]?(i.ulCustomerList="ulCustomers_To",i.divCustomers="divCustomers_To",i.txtSearchCustomer="txtCustomerSearch_To",i.divCustomersData="divCustomersData_To",i.pgNoMatchDiv="pgNoMatchDiv_To",i.pgDiv="pgDiv_To",i.totalCout="totalCout_To",i.endIndex="endIndex_To",i.divtxtCustomers="divtxtCustomers_To"):6==cache_PageType[e]?(i.ulCustomerList="ulCustomers",i.divCustomers="divCustomers",i.txtSearchCustomer="txtCustomerSearch",i.divCustomersData="divCustomersData",i.pgNoMatchDiv="pgNoMatchDiv",i.pgDiv="pgDiv",i.totalCout="totalCout",i.endIndex="endIndex",i.divtxtCustomers="divtxtCustomers"):7==cache_PageType[e]?(i.ulCustomerList="ulCustomersGift",i.divCustomers="divCustomersGift",i.txtSearchCustomer="txtCustomerSearchGift",i.divCustomersData="divCustomersDataGift",i.pgNoMatchDiv="pgNoMatchDivGift",i.pgDiv="pgDivGift",i.totalCout="totalCoutGift",i.endIndex="endIndexGift",i.divtxtCustomers="divtxtCustomersGift"):8==cache_PageType[e]?(i.ulCustomerList="ulCustomersReceipient",i.divCustomers="divCustomersReceipient",i.txtSearchCustomer="txtCustomerSearchReceipient",i.divCustomersData="divCustomersDataReceipient",i.pgNoMatchDiv="pgNoMatchDivReceipient",i.pgDiv="pgDivReceipient",i.totalCout="totalCoutReceipient",i.endIndex="endIndexReceipient",i.divtxtCustomers="divtxtCustomersReceipient"):9==cache_PageType[e]?(i.ulCustomerList="ulCustomersSeeWho",i.divCustomers="divCustomersSeeWho",i.txtSearchCustomer="txtSearchCustomer",i.divCustomersData="divSearchCustomer",i.pgNoMatchDiv="pgNoMatchDivSeeWho",i.pgDiv="pgDivSeeWho",i.totalCout="totalCoutSeeWho",i.endIndex="endIndexSeeWho",i.divtxtCustomers="divtxtCustomersSeeWho"):10==cache_PageType[e]?(i.ulCustomerList="ulCustomersFriends",i.divCustomers="divCustomersFriends",i.txtSearchCustomer="txtCustomerSearchFriend",i.divCustomersData="divCustomersDataFriends",i.pgNoMatchDiv="pgNoMatchDivFriends",i.pgDiv="pgDivFriends",i.totalCout="totalCoutFriends",i.endIndex="endIndexFriends",i.divtxtCustomers="divtxtCustomersFriends"):11==cache_PageType[e]?(i.ulCustomerList="ulCustomersDashboard",i.divCustomers="divCustomersDashboard",i.txtSearchCustomer="txtCustomerSearchDashboard",i.divCustomersData="divCustomersDataDashboard",i.pgNoMatchDiv="pgNoMatchDivDashboard",i.pgDiv="pgDivDashboard",i.totalCout="totalCoutDashboard",i.endIndex="endIndexDashboard",i.divtxtCustomers="divtxtCustomersDashboard"):12==cache_PageType[e]?(i.ulCustomerList="ulCustomersFilters",i.divCustomers="divCustomersFilters",i.txtSearchCustomer="txtCustomerSearchFilters",i.divCustomersData="divCustomersDataFilters",i.pgNoMatchDiv="pgNoMatchDivFilters",i.pgDiv="pgDivFilters",i.totalCout="totalCoutFilters",i.endIndex="endIndexFilters",i.divtxtCustomers="divtxtCustomersFilters"):13==cache_PageType[e]&&(i.ulCustomerList="ulCustomersAppointment",i.divCustomers="divCustomersAppointment",i.txtSearchCustomer="txtCustomerSearchClass",i.divCustomersData="divCustomersDataAppointment",i.pgNoMatchDiv="pgNoMatchDivAppointment",i.pgDiv="pgDivAppointment",i.totalCout="totalCoutAppointment",i.endIndex="endIndexAppointment",i.divtxtCustomers="divtxtCustomersAppointment"),null!=t&&Object.getOwnPropertyNames(t).length>0?(i.isFromiPadAndroid=t.isFromiPadAndroid,i.isLoadCustFromDB=t.isLoadCustFromDB,i.syncDuration=t.syncDuration,i.liSelectedClassName=t.liSelectedClassName,i.HasCustomerRight=t.HasCustomerRight,i.BusinessId=t.BusinessId):(i.isFromiPadAndroid=cache_isFromiPadAndroid,i.isLoadCustFromDB=cache_isLoadCustFromDB,i.syncDuration=cache_syncDuration,i.liSelectedClassName=cache_liSelectedClassName,i.HasCustomerRight=cache_HasCustomerRight,i.BusinessId=cache_BusinessId),glbPageName!=cache_PageType[e]&&(glbPageName=cache_PageType[e],Initializecomponent(i))}function Initializecomponent(e){cache_ulCustomerList=GetClientID(e.ulCustomerList),cache_divCustomers=GetClientID(e.divCustomers),cache_txtSearchCustomer=GetClientID(e.txtSearchCustomer),cache_divCustomersData=GetClientID(e.divCustomersData),cache_pgNoMatchDiv=GetClientID(e.pgNoMatchDiv),cache_pgDiv=GetClientID(e.pgDiv),cache_divtxtCustomers=GetClientID(e.divtxtCustomerscache_pgDiv),cache_ctrlendIndex=GetClientID(e.endIndex),cache_ctrltotalCout=GetClientID(e.totalCout),cache_isFromiPadAndroid=e.isFromiPadAndroid,cache_isLoadCustFromDB=e.isLoadCustFromDB,cache_syncDuration=e.syncDuration,cache_liSelectedClassName=e.liSelectedClassName,cache_HasCustomerRight=e.HasCustomerRight,cache_BusinessId=e.BusinessId,Load_CachingCustomer(),cache_IsValidControls=IsValidControls(e),$(document).mousedown(function(e){if(1==cache_IsValidControls){var t=cache_divCustomersData;t.is(e.target)||0!==t.has(e.target).length||cache_divCustomers.is(e.target)||0!==cache_divCustomers.has(e.target).length||cache_pgDiv.is(e.target)||0!==cache_pgDiv.has(e.target).length||cache_pgNoMatchDiv.is(e.target)||0!==cache_pgNoMatchDiv.has(e.target).length||cache_divtxtCustomers.is(e.target)||0!==cache_divtxtCustomers.has(e.target).length||cache_divCustomers.is(":visible")&&cache_divCustomers.slideUp(250,function(){cache_PageType.customermanagement==glbPageName?(slideToggleofCustomerDetails(!0),cache_liSelected=null,cache_txtSearchCustomer.blur()):(cache_ulCustomerList.unbind("scroll"),cache_liSelected=null)})}}),$(document).mouseover(function(e){if(1==cache_IsValidControls){var t=cache_ulCustomerList,i=cache_ulCustomerList.find("> li");(!t.is(e.target)&&0!==t.has(e.target).length||!cache_divCustomers.is(e.target)&&0!==cache_divCustomers.has(e.target).length)&&void 0!==i&&(i.removeClass(cache_liSelectedClassName),cache_txtSearchCustomer.focus(),IsFirsttime=!0)}}),cache_PageType.customermanagement==glbPageName||cache_txtSearchCustomer.on("keydown paste",function(e){txtSearchCustomer_Keyup(e)})}function Load_CachingCustomer(){var e=!1;if("object"==typeof localStorage)try{localStorage.setItem("localStorage",1),localStorage.removeItem("localStorage"),(91811==cache_BusinessId||125932==cache_BusinessId||121134==cache_BusinessId||96730==cache_BusinessId||30029==cache_BusinessId||137101==cache_BusinessId||179646==cache_BusinessId||250188==cache_BusinessId||251078==cache_BusinessId||255379==cache_BusinessId||255380==cache_BusinessId||255669==cache_BusinessId||255671==cache_BusinessId||255672==cache_BusinessId||255673==cache_BusinessId||255674==cache_BusinessId||255675==cache_BusinessId||255676==cache_BusinessId||255677==cache_BusinessId||255678==cache_BusinessId||255679==cache_BusinessId||255680==cache_BusinessId||292219==cache_BusinessId||289809==cache_BusinessId||290847==cache_BusinessId||291730==cache_BusinessId||292217==cache_BusinessId||292218==cache_BusinessId||292220==cache_BusinessId||317839==cache_BusinessId||317837==cache_BusinessId||317841==cache_BusinessId||317842==cache_BusinessId||317177==cache_BusinessId||333428==cache_BusinessId||333425==cache_BusinessId||333429==cache_BusinessId||333426==cache_BusinessId||333430==cache_BusinessId||333432==cache_BusinessId||333435==cache_BusinessId||333433==cache_BusinessId||333436==cache_BusinessId||333434==cache_BusinessId||333437==cache_BusinessId||333441==cache_BusinessId||333438==cache_BusinessId||333442==cache_BusinessId||333444==cache_BusinessId||333449==cache_BusinessId||333447==cache_BusinessId||333450==cache_BusinessId||333452==cache_BusinessId||333451==cache_BusinessId||333454==cache_BusinessId||333456==cache_BusinessId||333455==cache_BusinessId||333457==cache_BusinessId||333461==cache_BusinessId||333458==cache_BusinessId||333462==cache_BusinessId||333459==cache_BusinessId||333463==cache_BusinessId||333465==cache_BusinessId||333469==cache_BusinessId||333466==cache_BusinessId||333470==cache_BusinessId||333468==cache_BusinessId||333472==cache_BusinessId||333473==cache_BusinessId||333477==cache_BusinessId||333474==cache_BusinessId||333478==cache_BusinessId||333476==cache_BusinessId||333479==cache_BusinessId||333482==cache_BusinessId||333480==cache_BusinessId||333483==cache_BusinessId||333485==cache_BusinessId||333489==cache_BusinessId||333486==cache_BusinessId||333499==cache_BusinessId||333487==cache_BusinessId||333500==cache_BusinessId||333488==cache_BusinessId||333506==cache_BusinessId||333494==cache_BusinessId||333509==cache_BusinessId||333503==cache_BusinessId||333515==cache_BusinessId||333505==cache_BusinessId||333517==cache_BusinessId||333510==cache_BusinessId||333526==cache_BusinessId||333511==cache_BusinessId||333531==cache_BusinessId||333497==cache_BusinessId||333532==cache_BusinessId||333519==cache_BusinessId||333540==cache_BusinessId||333522==cache_BusinessId||333541==cache_BusinessId||333528==cache_BusinessId||333523==cache_BusinessId||333535==cache_BusinessId||333548==cache_BusinessId||333536==cache_BusinessId||333551==cache_BusinessId||333537==cache_BusinessId||333557==cache_BusinessId||333538==cache_BusinessId||333567==cache_BusinessId||333545==cache_BusinessId||333559==cache_BusinessId||333547==cache_BusinessId||333565==cache_BusinessId||333552==cache_BusinessId||333576==cache_BusinessId||333554==cache_BusinessId||333584==cache_BusinessId||333561==cache_BusinessId||333600==cache_BusinessId||333563==cache_BusinessId||333601==cache_BusinessId||333569==cache_BusinessId||333606==cache_BusinessId||333571==cache_BusinessId||333593==cache_BusinessId||333572==cache_BusinessId||333610==cache_BusinessId||333579==cache_BusinessId||333616==cache_BusinessId||333588==cache_BusinessId||333617==cache_BusinessId||333595==cache_BusinessId||333623==cache_BusinessId||333596==cache_BusinessId||333597==cache_BusinessId||333604==cache_BusinessId||333612==cache_BusinessId||333614==cache_BusinessId||333620==cache_BusinessId||333622==cache_BusinessId||333424==cache_BusinessId||333513==cache_BusinessId||333633==cache_BusinessId||333634==cache_BusinessId||333631==cache_BusinessId||333632==cache_BusinessId||333628==cache_BusinessId||333630==cache_BusinessId||333423==cache_BusinessId||333629==cache_BusinessId||333624==cache_BusinessId||333625==cache_BusinessId||333626==cache_BusinessId||333627==cache_BusinessId||333618==cache_BusinessId||333621==cache_BusinessId||333619==cache_BusinessId||333421==cache_BusinessId||333615==cache_BusinessId||333613==cache_BusinessId||333609==cache_BusinessId||333611==cache_BusinessId||333607==cache_BusinessId||333603==cache_BusinessId||333608==cache_BusinessId||333605==cache_BusinessId||333602==cache_BusinessId||333591==cache_BusinessId||333594==cache_BusinessId||333592==cache_BusinessId||333598==cache_BusinessId||333599==cache_BusinessId||333587==cache_BusinessId||333590==cache_BusinessId||333589==cache_BusinessId||333420==cache_BusinessId||333585==cache_BusinessId||333586==cache_BusinessId||333582==cache_BusinessId||333583==cache_BusinessId||333580==cache_BusinessId||333568==cache_BusinessId||333577==cache_BusinessId||333573==cache_BusinessId||333570==cache_BusinessId||333575==cache_BusinessId||333562==cache_BusinessId||333566==cache_BusinessId||333555==cache_BusinessId||333558==cache_BusinessId||333560==cache_BusinessId||333550==cache_BusinessId||333553==cache_BusinessId||333549==cache_BusinessId||333546==cache_BusinessId||333524==cache_BusinessId||333427==cache_BusinessId||333525==cache_BusinessId||333453==cache_BusinessId||333542==cache_BusinessId||333539==cache_BusinessId||333543==cache_BusinessId||333529==cache_BusinessId||333533==cache_BusinessId||333530==cache_BusinessId||333534==cache_BusinessId||333520==cache_BusinessId||333501==cache_BusinessId||333521==cache_BusinessId||333518==cache_BusinessId||333502==cache_BusinessId||333516==cache_BusinessId||333512==cache_BusinessId||333514==cache_BusinessId||333496==cache_BusinessId||333507==cache_BusinessId||333508==cache_BusinessId||333491==cache_BusinessId||333419==cache_BusinessId||333418==cache_BusinessId||333415==cache_BusinessId||333414==cache_BusinessId||333413==cache_BusinessId||333407==cache_BusinessId||333410==cache_BusinessId||333411==cache_BusinessId||333406==cache_BusinessId||333405==cache_BusinessId||333404==cache_BusinessId||333403==cache_BusinessId||333416==cache_BusinessId||333401==cache_BusinessId||333399==cache_BusinessId||333394==cache_BusinessId||333396==cache_BusinessId||333412==cache_BusinessId||333391==cache_BusinessId||333390==cache_BusinessId||333386==cache_BusinessId||333382==cache_BusinessId||333400==cache_BusinessId||333378==cache_BusinessId||333392==cache_BusinessId||333374==cache_BusinessId||333388==cache_BusinessId||333372==cache_BusinessId||333370==cache_BusinessId||333385==cache_BusinessId||333384==cache_BusinessId||333381==cache_BusinessId||333355==cache_BusinessId||333357==cache_BusinessId||333358==cache_BusinessId||333380==cache_BusinessId||333350==cache_BusinessId||333348==cache_BusinessId||333379==cache_BusinessId||333347==cache_BusinessId||333344==cache_BusinessId||333339==cache_BusinessId||333377==cache_BusinessId||333376==cache_BusinessId||333337==cache_BusinessId||333375==cache_BusinessId||333341==cache_BusinessId||333373==cache_BusinessId||333371==cache_BusinessId||333369==cache_BusinessId||333367==cache_BusinessId||333368==cache_BusinessId||333365==cache_BusinessId||333366==cache_BusinessId||333364==cache_BusinessId||333361==cache_BusinessId||333362==cache_BusinessId||333363==cache_BusinessId||333359==cache_BusinessId||333360==cache_BusinessId||333356==cache_BusinessId||333354==cache_BusinessId||333351==cache_BusinessId||333352==cache_BusinessId||333349==cache_BusinessId||333353==cache_BusinessId||333346==cache_BusinessId||333345==cache_BusinessId||333343==cache_BusinessId||333342==cache_BusinessId||333338==cache_BusinessId||333340==cache_BusinessId||333336==cache_BusinessId||333335==cache_BusinessId||333334==cache_BusinessId||333333==cache_BusinessId||333329==cache_BusinessId||333331==cache_BusinessId||333328==cache_BusinessId||333330==cache_BusinessId||333327==cache_BusinessId||333325==cache_BusinessId||333326==cache_BusinessId||333324==cache_BusinessId||328177==cache_BusinessId||328176==cache_BusinessId||328175==cache_BusinessId||328173==cache_BusinessId||328172==cache_BusinessId||328171==cache_BusinessId||328170==cache_BusinessId||328169==cache_BusinessId||328168==cache_BusinessId||328167==cache_BusinessId||328166==cache_BusinessId||328165==cache_BusinessId||328164==cache_BusinessId||328163==cache_BusinessId||328162==cache_BusinessId||328160==cache_BusinessId||328159==cache_BusinessId||328158==cache_BusinessId||324569==cache_BusinessId||324565==cache_BusinessId||324566==cache_BusinessId||324564==cache_BusinessId||324567==cache_BusinessId||324562==cache_BusinessId||324563==cache_BusinessId||324561==cache_BusinessId||324559==cache_BusinessId||324560==cache_BusinessId||324558==cache_BusinessId||324556==cache_BusinessId||324557==cache_BusinessId||324555==cache_BusinessId||324554==cache_BusinessId||324550==cache_BusinessId||324552==cache_BusinessId||324551==cache_BusinessId||324553==cache_BusinessId||324549==cache_BusinessId||324548==cache_BusinessId||324546==cache_BusinessId||324547==cache_BusinessId||324545==cache_BusinessId||324544==cache_BusinessId||324543==cache_BusinessId||324540==cache_BusinessId||324541==cache_BusinessId||324539==cache_BusinessId||324538==cache_BusinessId||324536==cache_BusinessId||324537==cache_BusinessId||324535==cache_BusinessId||324534==cache_BusinessId||321060==cache_BusinessId||324533==cache_BusinessId||321059==cache_BusinessId||321058==cache_BusinessId||321057==cache_BusinessId||321056==cache_BusinessId||321055==cache_BusinessId||321054==cache_BusinessId||321053==cache_BusinessId||321052==cache_BusinessId||321049==cache_BusinessId||321048==cache_BusinessId||321047==cache_BusinessId||321046==cache_BusinessId||321044==cache_BusinessId||321045==cache_BusinessId||321041==cache_BusinessId||321042==cache_BusinessId||321040==cache_BusinessId||321039==cache_BusinessId||321037==cache_BusinessId||321038==cache_BusinessId||314509==cache_BusinessId||314496==cache_BusinessId||314510==cache_BusinessId||314497==cache_BusinessId||314500==cache_BusinessId||314498==cache_BusinessId||314501==cache_BusinessId||314499==cache_BusinessId||314503==cache_BusinessId||314504==cache_BusinessId||314508==cache_BusinessId||314505==cache_BusinessId||321034==cache_BusinessId||314506==cache_BusinessId||321035==cache_BusinessId||314507==cache_BusinessId||321036==cache_BusinessId||315601==cache_BusinessId||315602==cache_BusinessId||314495==cache_BusinessId||314494==cache_BusinessId||314491==cache_BusinessId||314493==cache_BusinessId||314487==cache_BusinessId||314488==cache_BusinessId||314489==cache_BusinessId||314490==cache_BusinessId||314483==cache_BusinessId||314486==cache_BusinessId||314481==cache_BusinessId||314482==cache_BusinessId||314475==cache_BusinessId||314479==cache_BusinessId||314476==cache_BusinessId||314480==cache_BusinessId||314477==cache_BusinessId||314478==cache_BusinessId||314474==cache_BusinessId||314473==cache_BusinessId||314472==cache_BusinessId||287892==cache_BusinessId||287893==cache_BusinessId||285325==cache_BusinessId||287894==cache_BusinessId||287895==cache_BusinessId||287897==cache_BusinessId||287890==cache_BusinessId||287896==cache_BusinessId||287891==cache_BusinessId||287898==cache_BusinessId||314471==cache_BusinessId||314470==cache_BusinessId||314468==cache_BusinessId||314469==cache_BusinessId||314466==cache_BusinessId||314467==cache_BusinessId||318174==cache_BusinessId||318170==cache_BusinessId||318171==cache_BusinessId||318175==cache_BusinessId||318172==cache_BusinessId||318173==cache_BusinessId||318176==cache_BusinessId||322838==cache_BusinessId||279510==cache_BusinessId||318332==cache_BusinessId||318320==cache_BusinessId||323581==cache_BusinessId||318313==cache_BusinessId||318318==cache_BusinessId||323414==cache_BusinessId||318317==cache_BusinessId||323709==cache_BusinessId||325373==cache_BusinessId||330056==cache_BusinessId||323467==cache_BusinessId||318345==cache_BusinessId||323644==cache_BusinessId||323383==cache_BusinessId||323728==cache_BusinessId||327399==cache_BusinessId||323719==cache_BusinessId||323686==cache_BusinessId||318324==cache_BusinessId||323729==cache_BusinessId||323373==cache_BusinessId||323512==cache_BusinessId||323402==cache_BusinessId||326443==cache_BusinessId||323465==cache_BusinessId||323694==cache_BusinessId||323659==cache_BusinessId||323689==cache_BusinessId||323635==cache_BusinessId||323446==cache_BusinessId||323579==cache_BusinessId||325374==cache_BusinessId||318340==cache_BusinessId||329375==cache_BusinessId||323632==cache_BusinessId||318336==cache_BusinessId||318321==cache_BusinessId||323366==cache_BusinessId||323633==cache_BusinessId||323497==cache_BusinessId||323428==cache_BusinessId||323572==cache_BusinessId||323700==cache_BusinessId||323652==cache_BusinessId||323493==cache_BusinessId||323557==cache_BusinessId||326441==cache_BusinessId||323377==cache_BusinessId||332072==cache_BusinessId||318344==cache_BusinessId||323480==cache_BusinessId||330512==cache_BusinessId||323396==cache_BusinessId||323442==cache_BusinessId||323468==cache_BusinessId||323392==cache_BusinessId||323375==cache_BusinessId||318334==cache_BusinessId||328012==cache_BusinessId||323754==cache_BusinessId||323451==cache_BusinessId||323697==cache_BusinessId||325375==cache_BusinessId||323461==cache_BusinessId||323416==cache_BusinessId||323650==cache_BusinessId||323679==cache_BusinessId||323358==cache_BusinessId||323653==cache_BusinessId||323604==cache_BusinessId||318314==cache_BusinessId||318329==cache_BusinessId||323357==cache_BusinessId||323571==cache_BusinessId||318323==cache_BusinessId||323436==cache_BusinessId||323411==cache_BusinessId||323542==cache_BusinessId||323483==cache_BusinessId||323546==cache_BusinessId||323718==cache_BusinessId||323408==cache_BusinessId||318328==cache_BusinessId||323355==cache_BusinessId||326394==cache_BusinessId||318325==cache_BusinessId||323463==cache_BusinessId||323500==cache_BusinessId||323688==cache_BusinessId||323638==cache_BusinessId||323711==cache_BusinessId||323665==cache_BusinessId||323608==cache_BusinessId||323410==cache_BusinessId||323631==cache_BusinessId||323477==cache_BusinessId||321030==cache_BusinessId||323418==cache_BusinessId||323705==cache_BusinessId||323629==cache_BusinessId||323619==cache_BusinessId||326402==cache_BusinessId||323508==cache_BusinessId||318335==cache_BusinessId||323380==cache_BusinessId||323441==cache_BusinessId||323590==cache_BusinessId||323475==cache_BusinessId||318308==cache_BusinessId||326413==cache_BusinessId||323684==cache_BusinessId||318309==cache_BusinessId||318311==cache_BusinessId||329374==cache_BusinessId||323623==cache_BusinessId||318337==cache_BusinessId||323515==cache_BusinessId||323726==cache_BusinessId||323563==cache_BusinessId||323488==cache_BusinessId||323567==cache_BusinessId||323640==cache_BusinessId||318312==cache_BusinessId||323376==cache_BusinessId||326419==cache_BusinessId||323536==cache_BusinessId||323645==cache_BusinessId||323384==cache_BusinessId||318339==cache_BusinessId||318341==cache_BusinessId||323401==cache_BusinessId||326388==cache_BusinessId||318322==cache_BusinessId||323568==cache_BusinessId||323654==cache_BusinessId||323385==cache_BusinessId||323739==cache_BusinessId||318338==cache_BusinessId||323744==cache_BusinessId||323535==cache_BusinessId||299803==cache_BusinessId||323522==cache_BusinessId||318315==cache_BusinessId||318306==cache_BusinessId||323624==cache_BusinessId||323524==cache_BusinessId||326403==cache_BusinessId||323599==cache_BusinessId||323519==cache_BusinessId||323637==cache_BusinessId||323661==cache_BusinessId||323732==cache_BusinessId||323636==cache_BusinessId||323616==cache_BusinessId||323478==cache_BusinessId||323455==cache_BusinessId||323390==cache_BusinessId||319204==cache_BusinessId||318307==cache_BusinessId||323749==cache_BusinessId||323755==cache_BusinessId||323538==cache_BusinessId||329377==cache_BusinessId||318326==cache_BusinessId||323447==cache_BusinessId||323591==cache_BusinessId||323742==cache_BusinessId||323420==cache_BusinessId||323667==cache_BusinessId||318316==cache_BusinessId||326401==cache_BusinessId||326408==cache_BusinessId||323419==cache_BusinessId||318342==cache_BusinessId||323525==cache_BusinessId||323526==cache_BusinessId||323510==cache_BusinessId||323618==cache_BusinessId||327667==cache_BusinessId||323707==cache_BusinessId||323444==cache_BusinessId||323713==cache_BusinessId||323460==cache_BusinessId||323548==cache_BusinessId||323476==cache_BusinessId||323431==cache_BusinessId||323501==cache_BusinessId||323600==cache_BusinessId||323706==cache_BusinessId||326412==cache_BusinessId||323417==cache_BusinessId||323714==cache_BusinessId||323394==cache_BusinessId||321029==cache_BusinessId||318327==cache_BusinessId||323539==cache_BusinessId||323562==cache_BusinessId||323423==cache_BusinessId||323530==cache_BusinessId||323656==cache_BusinessId||323680==cache_BusinessId||318331==cache_BusinessId||326390==cache_BusinessId||326404==cache_BusinessId||323737==cache_BusinessId||327400==cache_BusinessId||332211==cache_BusinessId||323611==cache_BusinessId||321028==cache_BusinessId||318310==cache_BusinessId||323404==cache_BusinessId||323427==cache_BusinessId||323704==cache_BusinessId||323438==cache_BusinessId||323681==cache_BusinessId||323746==cache_BusinessId||323583==cache_BusinessId||323549==cache_BusinessId||323368==cache_BusinessId||323520==cache_BusinessId||326426==cache_BusinessId||326438==cache_BusinessId||318304==cache_BusinessId||323555==cache_BusinessId||323552==cache_BusinessId||326393==cache_BusinessId||323521==cache_BusinessId||323511==cache_BusinessId||323641==cache_BusinessId||326428==cache_BusinessId||323678==cache_BusinessId||323473==cache_BusinessId||323677==cache_BusinessId||323574==cache_BusinessId||318330==cache_BusinessId||323547==cache_BusinessId||323509==cache_BusinessId||323639==cache_BusinessId||318343==cache_BusinessId||323405==cache_BusinessId||323499==cache_BusinessId||323753==cache_BusinessId||323362==cache_BusinessId||323750==cache_BusinessId||323495==cache_BusinessId||323391==cache_BusinessId||323457==cache_BusinessId||325821==cache_BusinessId||323685==cache_BusinessId||323649==cache_BusinessId||323556==cache_BusinessId||323412==cache_BusinessId||323628==cache_BusinessId||323504==cache_BusinessId||329376==cache_BusinessId||323664==cache_BusinessId||323620==cache_BusinessId||323372==cache_BusinessId||327397==cache_BusinessId||323506==cache_BusinessId||323399==cache_BusinessId||326431==cache_BusinessId||319205==cache_BusinessId||323491==cache_BusinessId||323666==cache_BusinessId||323434==cache_BusinessId||331806==cache_BusinessId||332074==cache_BusinessId||323643==cache_BusinessId||323413==cache_BusinessId||323683==cache_BusinessId||329373==cache_BusinessId||326386==cache_BusinessId||326437==cache_BusinessId||326392==cache_BusinessId||326421==cache_BusinessId||326409==cache_BusinessId||326422==cache_BusinessId||326410==cache_BusinessId||326439==cache_BusinessId||326411==cache_BusinessId||326440==cache_BusinessId||326416==cache_BusinessId||326407==cache_BusinessId||326417==cache_BusinessId||326389==cache_BusinessId||326427==cache_BusinessId||326414==cache_BusinessId||326424==cache_BusinessId||326405==cache_BusinessId||326425==cache_BusinessId||326395==cache_BusinessId||326435==cache_BusinessId||326396==cache_BusinessId||326436==cache_BusinessId||326397==cache_BusinessId||326398==cache_BusinessId||323613==cache_BusinessId||323710==cache_BusinessId||323605==cache_BusinessId||323585==cache_BusinessId||323422==cache_BusinessId||323550==cache_BusinessId||323503==cache_BusinessId||326406==cache_BusinessId||326433==cache_BusinessId||326415==cache_BusinessId||326434==cache_BusinessId||326420==cache_BusinessId||326399==cache_BusinessId||326423==cache_BusinessId||326400==cache_BusinessId||326430==cache_BusinessId||326391==cache_BusinessId||326432==cache_BusinessId||318319==cache_BusinessId||323671==cache_BusinessId||325376==cache_BusinessId||321032==cache_BusinessId||323651==cache_BusinessId||332073==cache_BusinessId||330511==cache_BusinessId||323675==cache_BusinessId||323578==cache_BusinessId||323646==cache_BusinessId||323594==cache_BusinessId||323374==cache_BusinessId||323498==cache_BusinessId||323576==cache_BusinessId||323356==cache_BusinessId||323660==cache_BusinessId||323454==cache_BusinessId||323462==cache_BusinessId||323514==cache_BusinessId||323721==cache_BusinessId||323387==cache_BusinessId||323658==cache_BusinessId||323505==cache_BusinessId||323687==cache_BusinessId||323622==cache_BusinessId||323487==cache_BusinessId||323703==cache_BusinessId||323481==cache_BusinessId||323621==cache_BusinessId||323712==cache_BusinessId||323655==cache_BusinessId||323603==cache_BusinessId||323370==cache_BusinessId||323453==cache_BusinessId||323470==cache_BusinessId||323369==cache_BusinessId||323586==cache_BusinessId||323725==cache_BusinessId||323440==cache_BusinessId||323459==cache_BusinessId||323507==cache_BusinessId||323450==cache_BusinessId||323723==cache_BusinessId||323516==cache_BusinessId||323720==cache_BusinessId||323361==cache_BusinessId||323360==cache_BusinessId||323695==cache_BusinessId||323471==cache_BusinessId||323435==cache_BusinessId||323722==cache_BusinessId||323532==cache_BusinessId||323379==cache_BusinessId||327398==cache_BusinessId||323692==cache_BusinessId||323577==cache_BusinessId||323670==cache_BusinessId||323492==cache_BusinessId||323397==cache_BusinessId||323449==cache_BusinessId||323736==cache_BusinessId||323382==cache_BusinessId||323415==cache_BusinessId||323426==cache_BusinessId||323587==cache_BusinessId||323541==cache_BusinessId||323527==cache_BusinessId||323634==cache_BusinessId||323698==cache_BusinessId||323443==cache_BusinessId||323626==cache_BusinessId||323452==cache_BusinessId||323486==cache_BusinessId||323730==cache_BusinessId||323642==cache_BusinessId||323598==cache_BusinessId||323565==cache_BusinessId||323566==cache_BusinessId||323540==cache_BusinessId||323593==cache_BusinessId||323606==cache_BusinessId||323533==cache_BusinessId||323614==cache_BusinessId||323752==cache_BusinessId||323724==cache_BusinessId||323693==cache_BusinessId||323690==cache_BusinessId||323386==cache_BusinessId||323715==cache_BusinessId||317175==cache_BusinessId||323365==cache_BusinessId||323359==cache_BusinessId||323371==cache_BusinessId||323400==cache_BusinessId||323363==cache_BusinessId||323409==cache_BusinessId||323364==cache_BusinessId||323484==cache_BusinessId||323381==cache_BusinessId||323485==cache_BusinessId||323472==cache_BusinessId||323458==cache_BusinessId||323489==cache_BusinessId||323469==cache_BusinessId||323490==cache_BusinessId||323717==cache_BusinessId||323437==cache_BusinessId||323702==cache_BusinessId||317254==cache_BusinessId||323676==cache_BusinessId||323696==cache_BusinessId||323668==cache_BusinessId||323657==cache_BusinessId||323669==cache_BusinessId||323672==cache_BusinessId||323751==cache_BusinessId||323733==cache_BusinessId||323745==cache_BusinessId||323738==cache_BusinessId||323734==cache_BusinessId||323747==cache_BusinessId||323534==cache_BusinessId||323748==cache_BusinessId||323517==cache_BusinessId||323741==cache_BusinessId||323518==cache_BusinessId||323589==cache_BusinessId||323561==cache_BusinessId||323597==cache_BusinessId||323569==cache_BusinessId||323582==cache_BusinessId||323544==cache_BusinessId||323580==cache_BusinessId||323558==cache_BusinessId||323554==cache_BusinessId||323559==cache_BusinessId||323537==cache_BusinessId||323602==cache_BusinessId||323531==cache_BusinessId||323595==cache_BusinessId||323523==cache_BusinessId||323584==cache_BusinessId||323513==cache_BusinessId||323592==cache_BusinessId||323617==cache_BusinessId||323740==cache_BusinessId||323570==cache_BusinessId||323731==cache_BusinessId||323735==cache_BusinessId||323663==cache_BusinessId||324127==cache_BusinessId||323464==cache_BusinessId||323433==cache_BusinessId||323466==cache_BusinessId||323648==cache_BusinessId||323456==cache_BusinessId||323424==cache_BusinessId||323407==cache_BusinessId||323743==cache_BusinessId||323691==cache_BusinessId||323560==cache_BusinessId||323573==cache_BusinessId||323551==cache_BusinessId||323647==cache_BusinessId||323528==cache_BusinessId||323630==cache_BusinessId||323543==cache_BusinessId||323615==cache_BusinessId||323545==cache_BusinessId||323588==cache_BusinessId||323553==cache_BusinessId||323607==cache_BusinessId||323575==cache_BusinessId||323612==cache_BusinessId||323627==cache_BusinessId||323564==cache_BusinessId||323625==cache_BusinessId||323529==cache_BusinessId||323601==cache_BusinessId||323699==cache_BusinessId||323609==cache_BusinessId||323716==cache_BusinessId||323610==cache_BusinessId||323662==cache_BusinessId||323727==cache_BusinessId||323674==cache_BusinessId||323708==cache_BusinessId||323421==cache_BusinessId||323425==cache_BusinessId||323403==cache_BusinessId||323393==cache_BusinessId||323406==cache_BusinessId||323494==cache_BusinessId||323395==cache_BusinessId||323474==cache_BusinessId||323388==cache_BusinessId||323378==cache_BusinessId||323448==cache_BusinessId||323445==cache_BusinessId||323439==cache_BusinessId||323429==cache_BusinessId||323430==cache_BusinessId||323432==cache_BusinessId||323479==cache_BusinessId||323502==cache_BusinessId||323398==cache_BusinessId||334616==cache_BusinessId||336368==cache_BusinessId||15942==cache_BusinessId||263952==cache_BusinessId||340772==cache_BusinessId||299645==cache_BusinessId||340766==cache_BusinessId||340770==cache_BusinessId||340771==cache_BusinessId||340772==cache_BusinessId||340773==cache_BusinessId||340774==cache_BusinessId||340775==cache_BusinessId||340776==cache_BusinessId||350249==cache_BusinessId||228596==cache_BusinessId||160785==cache_BusinessId||18671==cache_BusinessId||50216==cache_BusinessId||155462==cache_BusinessId||260669==cache_BusinessId||246727==cache_BusinessId||294697==cache_BusinessId||182244==cache_BusinessId||338088==cache_BusinessId||340877==cache_BusinessId||351323==cache_BusinessId||246147==cache_BusinessId||342964==cache_BusinessId||306553==cache_BusinessId||324912==cache_BusinessId||325129==cache_BusinessId||325130==cache_BusinessId||325132==cache_BusinessId||98559==cache_BusinessId||117972==cache_BusinessId||329954==cache_BusinessId||104737==cache_BusinessId||257687==cache_BusinessId||45720==cache_BusinessId||133609==cache_BusinessId||Check_IsSuperAdmin())&&(cache_isDBCallOnly=!0,console.log("Account is loading very slowly :called"),e=!0)}catch(t){cache_isDBCallOnly=!0,e=!0}const t=localStorage.getItem(cache_custlist),i=getCookie("lsFetchedFromLS");if(lastSyncBusID()!=parseFloat(cache_BusinessId))InvalidateLocalStorage();else if(IsIndexDBEnable())if("object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0&&"true"!==i&&!Check_IsSuperAdmin()){deleteIndexedDB();const e=JSON.parse(t);setCusList(e),setCookie("lsFetchedFromLS",!0),cache_glbData=e}else getCusList().then(function(e){cache_glbData=e});else cache_glbData="object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[];e?(cache_pageIndex=0,cache_pageSize=10,cache_isDBCallOnly=!0,cache_isFirstTime=!0):0==cache_isFirstTime&&"object"==typeof localStorage&&null==LastSyncDate()&&0==MaxQuataReached()?(cache_pageIndex=0,cache_pageSize=10,cache_isDBCallOnly=!0,setTimeout(function(){0!=isIEBrowser()&&cache_isFromiPadAndroid||GetFirstTimeAllCustomers()},1e3)):(cache_isDBCallOnly=!(!isIEBrowser()&&!cache_isFromiPadAndroid)||cache_isLoadCustFromDB,cache_isFirstTime=!0)}async function txtSearchCustomer_focus(e){try{if(IsFirsttime=!0,1==cache_IsValidControls){if(0==cache_divCustomers.is(":visible")){cache_ulCustomerList.scrollTop(0),cache_pageIndex=0,cache_pageSize=10;try{cache_ulCustomerList.html("<li>Loading..</li>"),cache_divCustomers.slideDown(250,function(){cache_PageType.customermanagement==glbPageName?(cache_ulCustomerList.unbind("scroll"),setTimeout(function(){cache_ulCustomerList.bind("scroll",onCustomerListScroll)},150)):cache_ulCustomerList.bind("scroll",onCustomerListScroll)}),cache_glbData=IsIndexDBEnable()?await getCusList():"object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[]}catch(e){}LoadMoreCustomers(),(IsFromIndexDb()&&0==MaxQuataReached()&&lastSyncBusID()==parseFloat(cache_BusinessId)&&NeedToSync()&&!cache_isSyncStarted||IsFromLocalStorage()&&NeedToSync()&&!cache_isSyncStarted)&&(cache_isSyncStarted=!0,setTimeout(function(){GetCustomersForSync()},1e3))}cache_PageType.customermanagement==glbPageName&&null!=cache_liSelected&&void 0!==cache_ulCustomerList.find("> li")&&(cache_liSelected=cache_ulCustomerList.find(" li:nth-child("+(cache_pageIndex-1)*cache_pageSize/2+")").addClass(cache_liSelectedClassName))}}catch(e){console.log(e)}}function txtSearchCustomer_Keyup(e){if(1==cache_IsValidControls){var t=cache_txtSearchCustomer.val();try{if(keyCode=e.which||e.keyCode,!StringisNullOrUndefineOrBlank(typeof keyCode)&&13==keyCode)return 0==cache_ulCustomerList.find(" > li."+cache_liSelectedClassName).length&&null==cache_ulCustomerList.find(" > li."+cache_liSelectedClassName).data("custid")?(cache_PageType.customermanagement==glbPageName&&cache_txtSearchCustomer.blur(),cache_PageType.giftcertificatesender!=glbPageName&&cache_PageType.giftcertificateeceipient!=glbPageName||CloseCachingCustomerDropdown(),void e.preventDefault()):(SelectCustomerOnEnter(),void e.preventDefault());if((StringisNullOrUndefineOrBlank(t)||8==e.keyCode)&&(cache_OldSelectctedUserId=0),!StringisNullOrUndefineOrBlank(typeof keyCode)&&(9==keyCode||33==keyCode||34==keyCode||45==keyCode||8==keyCode&&""==t.trim()&&cache_lastSearchText==t))return void e.preventDefault();if(!StringisNullOrUndefineOrBlank(typeof keyCode)&&(38==keyCode||40==keyCode)){var i=cache_ulCustomerList.find("> li");if(void 0!==$("#liNoCust")&&""!=$("#liNoCust").text())return void e.preventDefault();if(void 0!==i&&i.removeClass(cache_liSelectedClassName),StringisNullOrUndefineOrBlank(typeof keyCode)||40!=keyCode){if(!StringisNullOrUndefineOrBlank(typeof keyCode)&&38==keyCode){if(null==cache_liSelected||0==cache_liSelected.index())return cache_liSelected=null,void e.preventDefault();cache_liSelected?(cache_liSelected.removeClass(cache_liSelectedClassName),next=cache_liSelected.prev(),next.length>0?(cache_liSelected=next.addClass(cache_liSelectedClassName),selected=next.text()):(cache_liSelected=i.last().addClass(cache_liSelectedClassName),selected=i.last().text())):(cache_liSelected=i.last().addClass(cache_liSelectedClassName),selected=i.last().text()),0==cache_liSelected.index()?cache_ulCustomerList.scrollTop(0):cache_ulCustomerList.scrollTop(cache_ulCustomerList.scrollTop()-cache_ulCustomerList.find(" li:nth-child("+(cache_liSelected.index()+1)+")").outerHeight())}}else{IsFirsttime&&(IsFirsttime=!1,cache_liSelected=null,cache_ulCustomerList.scrollTop(0)),cache_liSelected?(cache_liSelected.removeClass(cache_liSelectedClassName),next=cache_liSelected.next(),next.length>0?(cache_liSelected=next.addClass(cache_liSelectedClassName),selected=next.text()):null!=selected&&cache_ulCustomerList.find(" li:nth-child("+cache_ctrlendIndex[0].innerHTML+")").eq(0).text()==selected?(cache_liSelected=cache_ulCustomerList.find(" li:nth-child("+cache_ctrlendIndex[0].innerHTML+")").addClass("drpselected"),selected=cache_ulCustomerList.find(" li:nth-child("+cache_ctrlendIndex[0].innerHTML+")").eq(0).text()):(cache_liSelected=i.eq(0).addClass(cache_liSelectedClassName),selected=i.eq(0).text())):(cache_liSelected=i.eq(0).addClass(cache_liSelectedClassName),selected=i.eq(0).text());var n=cache_pageIndex*cache_pageSize;selected==cache_ulCustomerList.find(" li:nth-child("+n+")").data("fullname")&&(LoadMoreCustomers(),cache_liSelected=cache_ulCustomerList.find(" li:nth-child("+n+")").addClass(cache_liSelectedClassName),selected=cache_ulCustomerList.find(" li:nth-child("+n+")").eq(0).text()),cache_ulCustomerList.scrollTop(cache_ulCustomerList.scrollTop()+cache_ulCustomerList.find(" li:nth-child("+cache_liSelected.index()+")").outerHeight())}return void e.preventDefault()}}catch(e){console.log(e)}cache_lastSearchText=t,cache_pageIndex=0,cache_pageSize=10,cache_ulCustomerList.html("<li>Loading..</li>"),LoadMoreCustomers()}}function txtSearchCustomer_Keydown(e){try{if(1==cache_IsValidControls&&0==cache_isDBCallOnly&&(keyCode=e.which||e.keyCode,!StringisNullOrUndefineOrBlank(typeof keyCode)&&9==keyCode))return void e.preventDefault()}catch(e){}}function onCustomerListScroll(){1==cache_IsValidControls&&cache_ulCustomerList.scrollTop()+cache_ulCustomerList.innerHeight()>=cache_ulCustomerList[0].scrollHeight-50&&LoadMoreCustomers()}function SyncAgain(){try{if(void 0!==localStorage[cache_cusSynInfo]){var e=JSON.parse(localStorage[cache_cusSynInfo]),t=e.lstDt;if(null!=t){t=new Date(t);var i=new Date(t-(cache_syncDuration+1)*cache_MS_PER_MINUTE);e.lstDt=i,localStorage[cache_cusSynInfo]=JSON.stringify(e)}}}catch(e){}}function GetCustomers(){if((0!=IsFromIndexDb()||0!=MaxQuataReached()||lastSyncBusID()!=parseFloat(cache_BusinessId))&&0!=IsFromLocalStorage()||!(cache_noOfRecords>cache_pageSize&&cache_noOfRecords<=cache_pageIndex*cache_pageSize+1||cache_noOfRecords>0&&cache_pageIndex*cache_pageSize+1>cache_noOfRecords)){var e,t=null==LastSyncDate()&&0==MaxQuataReached()||0==MaxQuataReached(),i=null;if(t)IsIndexDBEnable()?getCusList().then(function(t){e=t}):e="object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[],null!=e&&e.length>0&&(i=LastSyncDate());var n=IsControlUnderfined(cache_BusinessId)?0:cache_BusinessId,a=GetCachingCustomerRight(),o=0==MaxQuataReached()?"":cache_txtSearchCustomer.val(),s=0==MaxQuataReached()?1:cache_pageIndex+1,r=0==MaxQuataReached()?1e6:cache_pageSize,c=i,l=t,d=new vagaro.ajax;d.datamodel.Token="GetAllCustomers",d.datamodel.callback=GetCustomers_Success,d.datamodel.data=[n,o,a,s,r,c,l,""],d.datamodel.Error=GetCustomers_Fail,d.PostQue()}}async function GetCustomers_Success(e){if(null!=e){var t=e.objUsersList;"object"==typeof localStorage&&0==MaxQuataReached()&&(null==LastSyncDate()&&InvalidateLocalStorage(),t=await StoreLocalStorage(e.objUsersList,e.lastCalledTime,e.deletedIDs),e.TotalCount=null!=t?t.length:0,IsIndexDBEnable()?getCusList().then(function(e){cache_glbData=e}):cache_glbData="object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[]);try{t=t.sort(Sortingalphabetical)}catch(e){}SearchCustomer(t,e.TotalCount),"9"==glbPageName&&_shopOwner.CallSeeWhoSearchList()}}function GetCustomers_Fail(){cache_isSyncStarted=!1}async function GetCustomersForSync(){var e,t=null==LastSyncDate()&&0==MaxQuataReached()||0==MaxQuataReached(),i=null;t&&(null!=(e=IsIndexDBEnable()?await getCusList():"object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[])&&e.length>0&&(i=LastSyncDate()));var n=IsControlUnderfined(cache_BusinessId)?0:cache_BusinessId,a=GetCachingCustomerRight(),o=i,s=t,r=new vagaro.ajax;r.datamodel.Token="GetAllCustomers",r.datamodel.callback=GetCustomersForSync_Success,r.datamodel.data=[n,"",a,1,10,o,s,""],r.datamodel.Error=GetCustomers_Fail,r.PostQue()}async function GetCustomersForSync_Success(e){if(null!=e){e.objUsersList;"object"==typeof localStorage&&0==MaxQuataReached()&&(null==LastSyncDate()&&InvalidateLocalStorage(),await StoreLocalStorage(e.objUsersList,e.lastCalledTime,e.deletedIDs),cache_glbData=IsIndexDBEnable()?await getCusList():"object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[],"9"==glbPageName&&_shopOwner.CallSeeWhoSearchList())}cache_isSyncStarted=!1}function InvalidateLocalStorage(){"object"==typeof localStorage&&(IsIndexDBEnable()?clearIndexedDBCustomers():localStorage.removeItem(cache_custlist),localStorage.removeItem(cache_cusSynInfo))}async function StoreLocalStorage(e,t,i){if(null==t){var n=new Date($.now());t=n.getDate()+"/"+(n.getMonth()+1)+"/"+n.getFullYear()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()}var a=e,o={};o.busID=parseFloat(cache_BusinessId),o.lstDt=new Date,o.maxDt=new Date,o.synDt=t;try{if(o.IsMaxQuataReached=!1,localStorage.removeItem(cache_cusSynInfo),localStorage[cache_cusSynInfo]=JSON.stringify(o),null==LastSyncDate())null!=e?IsIndexDBEnable()?setCusList(e):localStorage[cache_custlist]=JSON.stringify(e):IsIndexDBEnable()?setCusList([]):localStorage[cache_custlist]=[];else{var s=[];if(IsIndexDBEnable()?s=await getCusList():void 0!==localStorage[cache_custlist]&&(s=JSON.parse(localStorage[cache_custlist])),null!=i&&""!=i&&i.length>0&&null!=s&&s.length>0){i=","+i+",";var r=$.grep(s,function(e){return i.indexOf(","+e.ID+",")<=-1});s=r}if(null!=s&&s.length>0&&null!=e&&e.length>0){var c=",";$.each(e,function(e,t){s.map(function(e){return e.ID}).indexOf(t.ID)>-1&&(c=c+t.ID+",")});r=$.grep(s,function(e){return c.indexOf(","+e.ID+",")<=-1});a=null!=(s=r)&&s.length>0?s.concat(e):e}else null!=e&&e.length>0?a=e:null!=s&&s.length>0&&(a=s);IsIndexDBEnable()?clearIndexedDBCustomers():localStorage.removeItem(cache_custlist),null!=a?IsIndexDBEnable()?setCusList(a):localStorage[cache_custlist]=JSON.stringify(a):IsIndexDBEnable()?setCusList([]):localStorage[cache_custlist]=[]}cache_isDBCallOnly=!(!isIEBrowser()&&!cache_isFromiPadAndroid)||cache_isLoadCustFromDB}catch(e){cache_isDBCallOnly=!0,InvalidateLocalStorage(),o.IsMaxQuataReached=!0,localStorage[cache_cusSynInfo]=JSON.stringify(o)}return a}function Sortingalphabetical(e,t){try{var i=e.FN.toLowerCase(),n=t.FN.toLowerCase();return i<n?-1:i>n?1:0}catch(e){return 0}}function LastSyncDate(){var e=null;if("object"==typeof localStorage&&void 0!==localStorage[cache_cusSynInfo]){var t=JSON.parse(localStorage[cache_cusSynInfo]);null!=t&&void 0!==t.synDt&&null!=t.synDt&&(e=t.synDt)}return e}function MaxQuataReached(){var e=!1;if(cache_isDBCallOnly)e=cache_isDBCallOnly;else if("object"==typeof localStorage&&void 0!==localStorage[cache_cusSynInfo]){var t=JSON.parse(localStorage[cache_cusSynInfo]),i=new Date,n=new Date(t.maxDt);e=i.setHours(0,0,0,0)==n.setHours(0,0,0,0)?t.IsMaxQuataReached:e}return e}function lastSyncBusID(){var e=0;"object"==typeof localStorage&&void 0!==localStorage[cache_cusSynInfo]&&(e=JSON.parse(localStorage[cache_cusSynInfo]).busID);return 0==e?parseFloat(cache_BusinessId):e}function IsFromLocalStorage(){return"object"==typeof localStorage&&null!=localStorage[cache_custlist]&&0==MaxQuataReached()&&lastSyncBusID()==parseFloat(cache_BusinessId)}function SearchCustomer(e,t){if(1==cache_IsValidControls)if(null!=e&&e.length>0){var i=e,n=1,a="9"==glbPageName?e.length:cache_pageSize,o=cache_txtSearchCustomer.val();o.length>0&&(o=o.replace(/^0+/,"").replace(/\(/g,"").replace(/\)/g,"").replace(/-/g,"").trim());var s=GetCachingCustomerRight();if(cache_noOfRecords=e.length,0==cache_pageIndex&&parseInt(i.length)>parseInt(cache_pageSize)&&"9"!=glbPageName&&(i=i.slice(0,10)),IsFromIndexDb()&&0==MaxQuataReached()&&lastSyncBusID()==parseFloat(cache_BusinessId)||IsFromLocalStorage()?(i=$.grep(e,function(e){return""==o||CustomerSmartSearch(o.toLowerCase(),e.FN.trim().toLowerCase())||s&&!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(e.E)&&e.E.replace(/ /g,"").replace(/\(/g,"").replace(/\)/g,"").replace(/-/g,"").indexOf(o.replace(/ /g,""))>-1||s&&!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(e.C)&&e.C.replace(/ /g,"").replace(/\(/g,"").replace(/\)/g,"").replace(/-/g,"").indexOf(o.replace(/ /g,""))>-1||s&&!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(e.D)&&e.D.replace(/ /g,"").replace(/\(/g,"").replace(/\)/g,"").replace(/-/g,"").indexOf(o.replace(/ /g,""))>-1||s&&!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(e.N)&&e.N.replace(/ /g,"").replace(/\(/g,"").replace(/\)/g,"").replace(/-/g,"").indexOf(o.replace(/ /g,""))>-1}),cache_noOfRecords=i.length,n=cache_pageIndex*cache_pageSize+1,a="9"==glbPageName?a:(cache_pageIndex+1)*cache_pageSize):(cache_noOfRecords=t,n=1,a=i.length),cache_noOfRecords>cache_pageSize&&cache_noOfRecords<cache_pageIndex*cache_pageSize+1||cache_noOfRecords>0&&cache_pageIndex*cache_pageSize+1>cache_noOfRecords)return;a>cache_noOfRecords&&(a=cache_noOfRecords);for(var r=[],c="",l=n;l<=a;l++){var d={};d=i[l-1],c="",appendEmail="",s?(c=StringisNullOrUndefineOrBlank(d.C)?StringisNullOrUndefineOrBlank(d.D)?StringisNullOrUndefineOrBlank(d.N)?"":d.N:d.D:d.C,appendEmail=StringisNullOrUndefineOrBlank(d.E)?"":d.E,!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(d.C)&&d.C.indexOf(o)>-1?c=d.C:!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(d.D)&&d.D.indexOf(o)>-1?c=d.D:!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(d.N)&&d.N.indexOf(o)>-1&&(c=d.N),!StringisNullOrUndefineOrBlank(o)&&!StringisNullOrUndefineOrBlank(d.E)&&d.E.indexOf(o)>-1&&(appendEmail=d.E)):(d.C="",d.D="",d.N="",d.E="");var u="undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId?glbBusinessCountryId:"undefined"!=typeof businessCountryID&&null!=businessCountryID?businessCountryID:1;d.DName=d.FN+(StringisNullOrUndefineOrBlank(c)?"":" - "+FormatPhoneByCountry(c,u))+(StringisNullOrUndefineOrBlank(appendEmail)?"":" - "+appendEmail),r.push(d)}if(cache_pageIndex+=1,r.length>0){if(1==cache_pageIndex&&(cache_ulCustomerList.scrollTop(0),cache_ulCustomerList.html("")),$("#tmplCustomer").tmpl(r).appendTo(cache_ulCustomerList),IsFromIndexDb()&&0==MaxQuataReached()&&lastSyncBusID()==parseFloat(cache_BusinessId)||IsFromLocalStorage()?cache_ctrlendIndex.html(a):cache_ctrlendIndex.html(cache_pageSize*cache_pageIndex>cache_noOfRecords?cache_noOfRecords:cache_pageSize*cache_pageIndex),cache_ctrltotalCout.html(cache_noOfRecords),cache_pgDiv.show(),cache_pgNoMatchDiv.hide(),1!=cache_pageIndex&&StringisNullOrUndefineOrBlank(cache_ulCustomerList.find(" li."+cache_liSelectedClassName).data("fullname"))&&!StringisNullOrUndefineOrBlank(cache_glbisScrollTop)&&cache_glbisScrollTop){var p=(cache_pageIndex-1)*cache_pageSize/2;cache_ulCustomerList.scrollTop(0),cache_ulCustomerList.scrollTop(cache_ulCustomerList.find(" li:nth-child("+p+")").position().top),cache_glbisScrollTop=!1}if(cache_PageType.searchfriendfamilycustomer==glbPageName){var f=document.getElementById("hdnUserID").value;cache_ulCustomerList.find("[data-custid='"+f+"']").attr("onclick",null),cache_ulCustomerList.find("[data-custid='"+f+"']").attr("disabled","disabled"),cache_ulCustomerList.find("[data-custid='"+f+"']").attr("style","cursor:no-drop")}}else CustomersNoRecordFound()}else CustomersNoRecordFound()}function CustomersNoRecordFound(){if(1==cache_IsValidControls){var e=$("#txtCustomerSearchAddEdit").val(),t={},i=[];t.C="",t.D="",t.N="",t.FN=e,t.DName=e,i.push(t),void 0===e&&StringisNullOrUndefineOrBlank(e)?cache_ulCustomerList.html("<li id='liNoCust'>No Matches Found</li>"):(cache_ulCustomerList.html(""),$("#tmplCustomer").tmpl(i).appendTo(cache_ulCustomerList)),cache_pgDiv.hide(),cache_pgNoMatchDiv.show()}}var DelayMethodCall=function(){var e=0;return function(t,i){clearTimeout(e),e=setTimeout(t,i)}}();function LoadMoreCustomers(e){void 0!==e&&(cache_glbisScrollTop=e);var t=MaxQuataReached()?50:0;DelayMethodCall(function(){if(IsFromIndexDb()&&0==MaxQuataReached()&&lastSyncBusID()==parseFloat(cache_BusinessId)||IsFromLocalStorage())if(void 0!==cache_glbData&&null!=cache_glbData&&cache_glbData.length>0){try{cache_glbData=cache_glbData.sort(Sortingalphabetical)}catch(e){}SearchCustomer(cache_glbData),"9"==glbPageName&&_shopOwner.CallSeeWhoSearchList()}else GetCustomers();else GetCustomers()},t)}function selectedCustomer(e){if(1==cache_IsValidControls){if(!StringisNullOrUndefineOrBlank(e)){var t=$(e);SelectedSender=t;var i="undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId?glbBusinessCountryId:"undefined"!=typeof businessCountryID&&null!=businessCountryID?businessCountryID:1;if(cache_PageType.customermanagement==glbPageName){var n="";cache_HasCustomerRight&&(StringisNullOrUndefineOrBlank(t.data("cell").toString())?StringisNullOrUndefineOrBlank(t.data("day").toString())?StringisNullOrUndefineOrBlank(t.data("night").toString())||(n=FormatPhoneByCountry(t.data("night").toString(),i)):n=FormatPhoneByCountry(t.data("day").toString(),i):n=FormatPhoneByCountry(t.data("cell").toString(),i)),cache_SelectctedItem=StringisNullOrUndefineOrBlank(n)?t.data("fullname"):t.data("fullname").substr(0,t.data("fullname").indexOf("-")).replace(/\s+$/g,"")+" - "+n,$("#spnCustomerDetailsFNP").html(cache_SelectctedItem)}cache_lastSearchText=t.data("fullname"),cache_txtSearchCustomer.val(t.data("fullname")),cache_divCustomers.slideUp(250,function(){cache_ulCustomerList.unbind("scroll")}),glbPageName!=cache_PageType.addeditcustomer?(cache_OldSelectctedUserId=t.data("custid"),glbPageName==cache_PageType.searchnewclass?_vgClassSessionSelection.SelectCustomerClass(e):"undefined"!=typeof Search&&null!=Search&&Search.IsFromSearchrPage()?0==$("#ucNewAppAjax_pnlNewAppointmentPopup:visible").length?CachingSelectedCustomer(e):CachingSelectedCustomerBooking(e):window.location.href.includes("/merchants/calendar")?(CachingSelectedCustomerBooking(e),1==glbPageName&&$("#divSearchCustomer").show()):CachingSelectedCustomer(e)):(cache_OldSelectctedUserId=t.data("custid"),CachingSelectedCustomerAddEdit(e))}cache_PageType.customermanagement==glbPageName&&cache_divCustomers.slideUp(250,function(){slideToggleofCustomerDetails(!0)})}}function NeedToSync(){var e=!0;if(void 0!==localStorage[cache_cusSynInfo]){var t=JSON.parse(localStorage[cache_cusSynInfo]);if(t.IsMaxQuataReached)e=!0;else{var i=new Date(t.lstDt),n=new Date;n<i&&n.setDate(n.getDate()+1);var a=n-i;e=Math.floor(a/1e3/60)>cache_syncDuration}}else e=!0;return e}function isIEBrowser(){var e=!1;return navigator.userAgent.match(/Trident.*rv\:11\./)&&(e=!0),e}function GetFirstTimeAllCustomers(){if(0==cache_isLoadCustFromDB){var e=IsControlUnderfined(cache_BusinessId)?0:cache_BusinessId,t=GetCachingCustomerRight(),i=new vagaro.ajax;i.datamodel.Token="GetAllCustomers",i.datamodel.callback=GetFirstTimeAllCustomers_Success,i.datamodel.data=[e,"",t,1,1e6,null,!0,""],i.datamodel.Error=GetFirstTimeAllCustomers_Fail,i.Post()}}async function GetFirstTimeAllCustomers_Success(e){null!=e&&(cache_isFirstTime=!0,"object"==typeof localStorage&&InvalidateLocalStorage(),await StoreLocalStorage(e.objUsersList,e.lastCalledTime,e.deletedIDs),IsIndexDBEnable()?getCusList().then(function(e){cache_glbData=e}):cache_glbData="object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[],"9"==glbPageName&&_shopOwner.CallSeeWhoSearchList())}function GetFirstTimeAllCustomers_Fail(){}function SelectCustomerOnEnter(){1==cache_IsValidControls&&(cache_ulCustomerList.find(" > li."+cache_liSelectedClassName).length>0&&null!=cache_ulCustomerList.find(" > li."+cache_liSelectedClassName).data("custid")&&selectedCustomer(cache_ulCustomerList.find(" > li."+cache_liSelectedClassName)),cache_txtSearchCustomer.blur())}function GetClientID(e){return $("[id$="+e+"]")}function IsValidControls(e){try{return!IsControlUnderfined(cache_divCustomers)&&(!IsControlUnderfined(cache_ulCustomerList)&&(!IsControlUnderfined(e.cache_divCustomersData)&&(!IsControlUnderfined(e.ulCustomerList)&&(!IsControlUnderfined(e.cache_txtSearchCustomer)&&(!IsControlUnderfined(e.cache_ctrltotalCout)&&(!IsControlUnderfined(e.cache_ctrlendIndex)&&(!IsControlUnderfined(e.cache_liSelectedClassName)&&(!IsControlUnderfined(e.cache_pgNoMatchDiv)&&(!IsControlUnderfined(e.cache_pgDiv)&&(!IsControlUnderfined(e.cache_isFromiPadAndroid)&&(!IsControlUnderfined(e.cache_isLoadCustFromDB)&&(!IsControlUnderfined(e.cache_syncDuration)&&!IsControlUnderfined(e.cache_divtxtCustomers)))))))))))))}catch(e){return console.log("Error from IsValidControls function:> "+e),!1}}function StringisNullOrUndefineOrBlank(e){return void 0===e||null==e||""==e||null==e}function IsControlUnderfined(e){return void 0!==e&&(void 0===e||null==e||""==e||null==e)}function CloseCachingCustomerDropdown(){cache_divCustomers.is(":visible")&&cache_divCustomers.slideUp(250,function(){cache_ulCustomerList.unbind("scroll"),cache_liSelected=null,cache_txtSearchCustomer.blur()})}function setCustomerModuleCustomerLocalStorageData(){try{IsIndexDBEnable()?getCusList().then(function(e){cache_glbData=e}):cache_glbData="object"==typeof localStorage&&void 0!==localStorage[cache_custlist]&&localStorage[cache_custlist].length>0?JSON.parse(localStorage[cache_custlist]||[]):[]}catch(e){}}function SetErrorDisplayMessage(e,t,i){"undefined"!=typeof ChangeAppStatus&&1==ChangeAppStatus.IsNewCall()?"1"==e?ShowHideDoneMessageCommon(t):"0"==e?ShowHideFailedMessageCommon(t):"2"==e&&ShowHideWarningMessageCommon(t):"1"==e?ShowHideDoneMessage(t,i):"0"==e?ShowHideFailedMessage(t):"2"==e&&ShowHideWarningMessage(t)}function iOSversion(){if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}}function ShowHideDoneMessage(e,t){$(".banner-success .text-block-28").html(e);var i,n=Webflow.require("ix"),a=$(".banner-success"),o=setDisplayMessageTime(e);void 0!==t&&null!=t&&""!=t&&GetOrUpdateBusinessLastModifiedDetails(t,!1),"undefined"!=typeof ver&&ver[0]<=8?(i={type:"click",preserve3d:!0,stepsA:[{display:"-webkit-flex",transition:"transform 200ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:o},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]},n.run(i,a)):(i={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 200ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:o},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]},n.run(i,a))}function ShowHideFailedMessage(e){$(".banner-fail .text-block-28").html(e);var t=Webflow.require("ix"),i=$(".banner-fail"),n=setDisplayMessageTime(e);if("undefined"!=typeof ver)if(ver[0]<=9){var a={type:"click",preserve3d:!0,stepsA:[{display:"-webkit-flex",transition:"transform 200ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(a,i)}else{a={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 200ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(a,i)}else{a={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 200ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(a,i)}}function ShowHideWarningMessage(e){$(".banner-warning .text-block-28").html(e);var t=Webflow.require("ix"),i=$(".banner-warning"),n=setDisplayMessageTime(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,i)}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,i)}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,i)}}function ShowHideWarningMessageForPopup(e){$(".banner-warning-popup .text-block-28").html(e);var t=Webflow.require("ix"),i=$(".banner-warning-popup");if("undefined"!=typeof ver)if(ver[0]<=9){var n={type:"click",preserve3d:!0,stepsA:[{display:"-webkit-flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:"3s"},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(n,i)}else{n={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:"3s"},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(n,i)}else{n={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:"3s"},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(n,i)}}function setDisplayMessageTime(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}function setkeepAlive(){!function(e){var t=0;try{window.location.href.includes("/merchants/calendar")&&(t=1)}catch(e){console.log(e)}var i=document.createElement("iframe");i.style.display="none",i.onload=function(){i.parentNode.removeChild(i)};try{i.src=e+"/keepalive.aspx?cal="+t+"&id="+(Math.random()+1).toString(36).substring(2)}catch(n){i.src=e+"/keepalive.aspx?cal="+t+"&id=w5a2g"}document.body.appendChild(i)}(location.protocol+"//"+location.hostname+(location.port?":"+location.port:""))}function GetOrUpdateBusinessLastModifiedDetails(e,t,i,n){void 0===i&&(i=null),IsNullOrEmpty(n)&&(n=null);var a=new vagaro.ajax;a.datamodel.Token="BusinessLastModifiedDetails",a.datamodel.callback=GetBusinessLastModified_Success,a.datamodel.data=[e,t,i,null,n],a.Post()}function GetBusinessLastModified_Success(e){var t="";null!=e&&(t=null==e.LastName?"Last Modified: "+e.FirstName:null==e.FirstName?"Last Modified: "+e.LastName:"Last Modified: "+e.FirstName+" "+e.LastName,t+=" - "+e.FormatedModifiedDate,"65"==e.PageID?(document.getElementById("ifmEmployeePayroll").contentWindow.document.getElementById("dvLastModified65").innerHTML=t,document.getElementById("ifmEmployeePayroll").contentWindow.document.getElementById("dvLastModified65").style.display="block"):($("#dvLastModified"+e.PageID).html(t),$("#dvLastModified"+e.PageID).show()),"41"==e.PageID&&$("#dvLastModifiedfooterVagaroDrive").html(t))}function GetOrUpdateLastModifiedDetails(e,t,i){void 0===t&&(t=null),void 0===e&&(e=null);var n=new vagaro.ajax;n.datamodel.Token="GetLastDate",n.datamodel.callback=GetOrUpdateLastModifiedDetails_Success,n.datamodel.data=[e,t,i],n.Post()}function GetOrUpdateLastModifiedDetails_Success(e){if(null==e||null==e.modified_by_name||null==e.ModifiedDate&&IsNullOrEmpty(e.ModifiedDate))$("#dvLastModified"+e.module_id).css("display","none");else{for(var t=e.modified_by_name.split(" "),i=0;i<t.length;i++)t[i]=t[i].charAt(0).toUpperCase()+t[i].slice(1);var n=t.join(" ");192==e.module_id?(document.getElementById("ifmEmployeePayroll").contentWindow.document.getElementById("dvLastModified192").innerHTML="Last Modified: "+n+" - "+e.ModifiedDate,document.getElementById("ifmEmployeePayroll").contentWindow.document.getElementById("dvLastModified192").style.display="block"):($("#dvLastModified"+e.module_id).html("Last Modified: "+n+" - "+e.ModifiedDate),$("#dvLastModified"+e.module_id).css("display","block"))}}function GetbusinessNames(){if("0"==$("#hdnOneTimeCallbusiList").val()){var e=new vagaro.ajax;e.datamodel.Token="GetBusinessListForCustomerMgmt",e.datamodel.callback=successGetBusinessListForCustomerMgmt,e.datamodel.data=[],e.datamodel.Error=callGetBusinessListForCustomerMgmtFailed,e.Post()}}function successGetBusinessListForCustomerMgmt(e){if(null!=e&&e.length>0){var t=$("#listBusiness");if("0"==$("#hdnOneTimeCallbusiList").val()&&t.data("businessdata",JSON.stringify(e)),"undefined"!=typeof _vagaroDriveDashboardPage){let n=t.data("businessdata")?JSON.parse(t.data("businessdata")):null;var i=[];if(null!=n){let a=null;a=""!=$("#hdnAllBusinessSharingConfig").val()?JSON.parse($("#hdnAllBusinessSharingConfig").val()):$("#hdnAllBusinessSharingConfig").val(),$.grep(a,function(e,t){$.grep(n,function(t,n){!0!==e.HasSharedVagaroDrive||e.BusinessID!==t.id&&-1!=t.id||-1!==$.inArray(t,i)||i.push(t)}),_vgVagaroDrive.model.BusinessID==e.BusinessID&&!0===e.HasSharedVagaroDrive&&(_vgVagaroDrive.model.IsLoggedInBusinessHasVagaroDriveShared=!0)}),e=i,t.data("businessids",JSON.stringify(i)),i.length>2&&1==_vgVagaroDrive.model.IsLoggedInBusinessHasVagaroDriveShared?$("#divBusCombo").css("display",""):$("#divBusCombo").css("display","none")}}$("#hdnOneTimeCallbusiList").val("1"),setAddressControlCust(e),t.select2("val",e)}}function LoadBusinessForMultilocation(e){var t=$("#ListBusinessForMultilocation");t.empty(),$("#ListBusinessForMultilocation").select2({placeholder:"All businesses",closeOnSelect:!0}),$.each(e,function(){t.append($("<option></option>").val(this.id).html(this.text))})}function setAddressControlCust(e){var t=$("#listBusiness"),i=t.select2({searchInputPlaceholder:"All businesses",combobox:!0,dropdownCssClass:"Select2-normaldropdown",selectOnClick:!0,multiple:!1,closeOnSelect:!0,allowClear:!0,isInitSelection:!1,formContainer:"#page-wrapper",data:function(){return null!=e&&$.each(e,function(){JSON.parse(this.IsMultilocationGroup)&&(this.disabled=!0)}),{results:e}},formatNoMatches:function(){return $(this).find("#select2-drop").css("display","block"),"No matches found"},formatSearching:function(){return $(this).find("#select2-drop").css("display","block"),"Searching…"},formatInputTooShort:function(e,t){return $(this).find("#select2-drop").css("display","none"),""},initSelection:function(e,t){},formatResult:function(e){$(this).find("#select2-drop").css("display","block");return e.IsMultilocationGroup?"<div data-id="+e.id+' class="multilocation-group-item">'+e.text+"</div>":"<div data-id="+e.id+' class="'+(e.MultiLocationGroupID>0?"multilocation-business-item":"")+'">'+e.text+"</div>"},matcher:function(e,t,i){for(var n=/\s\s+/g,a=/[^0-9a-zA-Z\" \"]+/gi,o=e.replace(n," "),s=(o=o.toLowerCase().replace(a,"")).split(" "),r="",c=s.length,l=0,d=0;d<=s.length-1;d++){var u=t.replace(n," ");if(((u=u.toLowerCase().replace(a,"")).match("^"+s[d])||-1!=u.indexOf(" "+s[d]))&&((""==r||s[d].indexOf(r)<0)&&(l+=1),r=" "+u,l>=c))break}return l>=c&&(i.isShow=!0,!0)}});i.on("select2-loaded",function(e){$(this).find(".select2-result-unselectable").addClass("select2-result-selectable").removeClass("select2-result-unselectable")}),i.on("select2-blur",function(e){e.preventDefault()}),i.on("select2-focus",function(e){$(this).find(".select2-input").select(),$("body").addClass("business-control-open")}),i.on("selected",function(e){$(e.currentTarget).select2("val",e.choice.id)}),i.on("select2-opening",function(e){t.select2("data",{id:"",text:""})}),i.on("select2-open",function(e){var i={},n=GetChoiceForSeleect2Cust(t);void 0!==n.id&&t.select2("data",{id:n.id,text:n.text}),(void 0===i.selectAllText||i.selectAllText)&&setTimeout(function(){$(e.target).parent("div").find(".select2-input").get(0).setSelectionRange(0,9999)},100),(void 0===i.selectAllText||i.selectAllText)&&setTimeout(function(){$(e.target).parent("div").find(".select2-input").get(0).setSelectionRange(0,9999)},100),$("body").addClass("business-control-open")}),i.on("select2-close",function(e){$("body").removeClass("business-control-open")})}function callGetBusinessListForCustomerMgmtFailed(e){ShowLoadingPanel(!1);try{var t=JSON.parse(e.responseText);alertMessage("2",t.Message)}catch(e){alertMessage("0","Failed to load group of business")}}function CustomerSmartSearch(e,t){for(var i=/\s\s+/g,n=/[^0-9a-zA-Z\" \"]+/gi,a=e.replace(i," "),o=(a=a.toLowerCase().replace(n,"")).split(" "),s="",r=o.length,c=0,l=0;l<=o.length-1;l++){var d=t.replace(i," ");if(((d=d.toLowerCase().replace(n,"")).match("^"+o[l])||-1!=d.indexOf(" "+o[l]))&&((""==s||o[l].indexOf(s)<0)&&(c+=1),s=" "+d,c>=r))break}return c>=r}function FindInitialsCharacters(e,t){var i=/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,n=["ASS","WTF","SEX","SUK","FUK","DIE","BUM","TIT","BCH","DAM","HAH","OUT"];if(null!=e&&""!=e){var a=(e=e.replace("s+","")).split(" "),o="";if(a.length>0){for(var s=0;s<a.length;s++){var r=a[s].substr(0,1);1!=i.test(r)&&r==r.toUpperCase()&&0==is_numeric(r)&&(o+=r)}o.length<=0&&(o=e.substr(0,1))}else o=a[0].substr(0,1);return o.length>=3?(Check_Arrcontains(n,o=o.substr(0,3))&&(o=o.substr(0,o.length-1)),n=null,"SP"==t?o.substr(0,2).toUpperCase():o.toUpperCase()):o.toUpperCase()}return e}function Check_Arrcontains(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return!0;return!1}function CheckAndRemoveHTMLTagInString(e){return e.match(/(<([^>]+)>)/gi)&&(e=e.replace(/(<([^>]+)>)/gi,"")),e}function CheckAndRemoveHTMLTagAndJSInString(e){var t=/javascript:alert\(\d+\);/gi;return e.match(/(<([^>]+)>)/gi)&&(e=e.replace(/(<([^>]+)>)/gi,"")),e.match(t)&&(e=e.replace(t,"")),t=/javascript:alert\(\d+\)\//gi,e.match(t)&&(e=e.replace(t,"")),e}function RedirectToFeatureSubscriptionPage(e,t){var i=localStorage.SupportUpsell;if(void 0!==i&&null!=i&&""!=i){var n="",a="",o="";try{n=JSON.parse(i),a=n.SupportUpsellID,o=n.ActiveRecommendFeature}catch(e){}if(void 0!==a&&null!=a&&""!=a){var s={};s.supportUpsellID=a,s.featureID=e,s.isActive=1==t,s.isVagaroDriveActive=!1,s.statusID=0,ShowLoadingPanelForUpdateRecommStatus(!0);var r=n.RecommendFeature;return CallWSJSON("VagaroWebOffline.asmx/UpdateSupportRecommendedStatus",JSON.stringify(s),function(){ShowLoadingPanelForUpdateRecommStatus(!1),1==t&&(saveLogInMongo(e,89),AddLogInAmplitudeUpsell(e,89)),void 0!==r&&null!=r||(r="");var i=n.SupportUpsellTextMarketingPlan;void 0!==i&&null!=i||(i=""),e!=SupportUpSellFeature.Forms&&e!=SupportUpSellFeature.CheckinApp&&e!=SupportUpSellFeature.FeatureBusiness&&RedirectRecommFeaturePage(r,a,i,e,o)},callFailed_UpdateSupportRecommendedStatus),IsSupportNextstep(r,e)}}}function callSuccess_UpdateSupportRecommendedStatus(e){e.d;ShowLoadingPanelForUpdateRecommStatus(!1)}function ShowLoadingPanelForUpdateRecommStatus(e){1==e?($("#apgLoading").show(),$("#apgProgress").show(),$("#divQuickBookLoader").show(),$("#divXeroLoader").show()):($("#apgLoading").hide(),$("#apgProgress").hide(),$("#divQuickBookLoader").hide(),$("#divXeroLoader").hide())}function callFailed_UpdateSupportRecommendedStatus(e){ShowLoadingPanelForUpdateRecommStatus(!1)}function RedirectRecommFeaturePage(e,t,i,n,a,o){var s=0;if(void 0!==e&&null!=e&&""!=e){var r=e.split(",");if(0!=r.length)if(0==n)s=r[0];else{var c=r.indexOf(n);c<r.length-1&&(s=r[c+1])}var l={};l.SupportUpsellID=t,l.RecommendFeature=e,l.ActiveRecommendFeature=a,""!=i&&(l.SupportUpsellTextMarketingPlan=i),void 0!==o&&null!=o&&(l.ActiveSMSForMessenger=o),localStorage.SupportUpsell=JSON.stringify(l)}else localStorage.removeItem("SupportUpsell");var d=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/",u=GetPageFromFeatureID(s);if(""==u)return!1;d+=u;var p=navigator.userAgent.match(/VagaroAndroidPhone/i)||navigator.userAgent.match(/iospro/i)&&navigator.userAgent.match(/iPhone/i);if(s==SupportUpSellFeature.CustomWebsite&&p||s==SupportUpSellFeature.MySite&&p)s==SupportUpSellFeature.MySite?location.href="/ShopOwner/WebsiteBuilderProAppModal.aspx":CallBackCustomWebsiteDevice(41,t+"|~|"+d);else if(s==SupportUpSellFeature.QuickBook&&p)swal({title:"",text:"Quickbook/Xero can be enabled/disabled from web site only.",animation:"slide-from-bottom",customClass:"sweet-alert-model nextbtn-alert-btn"},function(n){n&&(swal.close(),RedirectRecommFeaturePage(e,t,i,s,a))});else{if(s!=SupportUpSellFeature.Xero||!p)return s==SupportUpSellFeature.MySite&&($("#chkRecommFeature_17").prop("checked")?RedirectToFeatureSubscriptionPage(SupportUpSellFeature.MySite,"1"):RedirectToFeatureSubscriptionPage(SupportUpSellFeature.MySite,"0")),location.href=d,!0;isQuickBookExistsInFlow(e)?RedirectRecommFeaturePage(e,t,i,s,a):swal({title:"",text:"Quickbook/Xero can be enabled/disabled from web site only.",animation:"slide-from-bottom",customClass:"sweet-alert-model nextbtn-alert-btn"},function(n){n&&(swal.close(),RedirectRecommFeaturePage(e,t,i,s,a))})}}function isQuickBookExistsInFlow(e){var t=!1;if(void 0!==e&&null!=e&&""!=e){var i=e.split(",");if(0!=i.length)$.grep(i,function(e){return e==SupportUpSellFeature.QuickBook}).length>0&&(t=!0)}return t}function GetPageFromFeatureID(e){var t="";switch(e){case SupportUpSellFeature.CreditCardProcessing:t+="merchants/settings/premiumfeature/creditcardprocessing?IsFromFeature=true";break;case SupportUpSellFeature.QuickBook:t+="merchants/settings/premiumfeature/integration/quickbook";break;case SupportUpSellFeature.Xero:t+="/merchants/settings/premiumfeature/integration/xero";break;case SupportUpSellFeature.CheckinApp:t+="/merchants/settings/premiumfeature/checkinapp";break;case SupportUpSellFeature.BrandedApp:t+="merchants/settings/premiumfeature/brandedapp";break;case SupportUpSellFeature.EmailMarketing:t+="/merchants/settings/premiumfeature/emailmarketingplans";break;case SupportUpSellFeature.TextMarketing:t+="merchants/settings/premiumfeature/textmarketingplans";break;case SupportUpSellFeature.Forms:t+="/merchants/settings/premiumfeature/form";break;case SupportUpSellFeature.CustomWebsite:t+="ShopOwner/ManageWebsite.aspx";break;case SupportUpSellFeature.ShoppingCart:t+="merchants/settings/thingswesell/shoppingcart";break;case SupportUpSellFeature.FeatureBusiness:t+="merchants/settings/book/notification?Type=GetFeatured";break;case SupportUpSellFeature.VagaroDrive:t+="merchants/settings/premiumfeature/drive";break;case SupportUpSellFeature.Gusto:t+="merchants/settings/premiumfeature/managesubscription";break;case SupportUpSellFeature.LiveStream:t+="/merchants/settings/premiumfeature/livestream";break;case SupportUpSellFeature.VagaroPayLater:t+="/merchants/settings/premiumfeature/vagaropaylater";break;case SupportUpSellFeature.DataLake:t+="/merchants/settings/premiumfeature/integration/datalake";break;case SupportUpSellFeature.APIsandWebhooks:t+="setting/developers/apisandwebhooks";break;case SupportUpSellFeature.VagaroPayroll:t+="setting/add-ons/vagaropayroll";break;case SupportUpSellFeature.MySite:t+="ShopOwner/ManageWebsite.aspx";break;default:t=""}return t}function ShowNextButtonForSupportUpSellForNextStep(e){var t=localStorage.SupportUpsell;if($(".clsSupportUpsellNext").hide(),RemoveClassInFeaturePage(e),void 0!==t&&null!=t&&""!=t){var i="",n="";try{var a=JSON.parse(t);i=a.SupportUpsellID,n=a.RecommendFeature}catch(e){}if(void 0!==i&&null!=i&&""!=i&&void 0!==n&&null!=n&&""!=n){var o=n.split(",");if(0!=o.length){var s=o.indexOf(e);-1!=s&&s<o.length-1&&($(".clsSupportUpsellNext").show(),AddClassInFeaturePage(e))}}}}function RemoveClassInFeaturePage(e){switch(e){case SupportUpSellFeature.CheckinApp:$(".checkinapp-settingwrap").removeClass("upsellcheckinapp");break;case SupportUpSellFeature.BrandedApp:$(".BrandedAppsetting").removeClass("upsellbrandedapp");break;case SupportUpSellFeature.TextMarketing:$(".settingMainWarp").removeClass("upsellformsettingsbg");break;case SupportUpSellFeature.Forms:$(".formsettingWrap").removeClass("upsellformsettingsbg");break;case SupportUpSellFeature.ShoppingCart:$(".newsettingmainwrap").addClass("upsellonlineshoing");break;case SupportUpSellFeature.FeatureBusiness:$(".newsettingmainwrap").removeClass("upsellgetfeature")}}function AddClassInFeaturePage(e){switch(e){case SupportUpSellFeature.CheckinApp:$(".checkinapp-settingwrap").addClass("upsellcheckinapp");break;case SupportUpSellFeature.BrandedApp:$(".BrandedAppsetting").addClass("upsellbrandedapp");break;case SupportUpSellFeature.TextMarketing:$(".settingMainWarp").addClass("upsellformsettingsbg");break;case SupportUpSellFeature.Forms:$(".formsettingWrap").addClass("upsellformsettingsbg");break;case SupportUpSellFeature.ShoppingCart:$(".newsettingmainwrap").addClass("upsellonlineshoing");break;case SupportUpSellFeature.FeatureBusiness:$(".newsettingmainwrap").addClass("upsellgetfeature")}}function RedirectToNextSupportFeature(e){var t=localStorage.SupportUpsell;if(void 0!==t&&null!=t&&""!=t){var i="",n="",a="",o="";try{var s=JSON.parse(t);i=s.SupportUpsellID,n=s.RecommendFeature,o=s.ActiveRecommendFeature,void 0!==(a=s.SupportUpsellTextMarketingPlan)&&null!=a||(a="")}catch(e){}void 0!==i&&null!=i&&""!=i&&void 0!==n&&null!=n&&""!=n&&RedirectRecommFeaturePage(n,i,a,e,o)}}function IsSupportNextstep(e,t){var i=0,n=!1;if(void 0!==e&&null!=e&&""!=e){var a=e.split(",");if(0!=a.length)if(0==t)i=a[0];else{var o=a.indexOf(t);o<a.length-1&&(i=a[o+1])}""!=GetPageFromFeatureID(i)&&(n=!0)}return n}function CallBackCustomWebsiteDevice(e,t){null!=e&&null!=t&&DeviceCallBackFun('5006||~||{"navType": '+e+',"screenType": 0,"screenTitle" : "","message": "'+t+'","messageType": 0,"action" : 0}')}function ClearFeatureSubscriptionLocalStorage(){localStorage.removeItem("SupportUpsell")}function IsAutoClickAsFeatureRecommenation(e,t){var i=!1,n=localStorage.SupportUpsell;if(void 0!==n&&null!=n&&""!=n){var a="",o="";try{var s=JSON.parse(n);a=s.SupportUpsellID,o=s.ActiveRecommendFeature}catch(e){}if(void 0!==a&&null!=a&&""!=a)if(void 0!==o&&null!=o&&""!=o)if(0!=o.length){var r=o.indexOf(e);(-1!=r&&1==t||-1==r&&0==t)&&(i=!0)}else 0==t&&(i=!0);else 0==t&&(i=!0)}return i}function DisplayPriceWithTax(e,t,i){try{if(""==t||null==t||null==t)return parseFloat(e.replace(",","")).toFixed(2);var n=_LoadTaxInfo.GetSelectedTaxValues(t).reduce(function(e,t){return e+t},0),a=0;a=parseFloat(ConvertTodecimalMorePrecious(n/100*parseFloat(e.replace(",","")),!0,4))+parseFloat(e.replace(",",""));try{if(void 0!==i&&null!=i&&""!=i&&"240419".split(",").includes(i.toString())){if(a.toString().indexOf(".")>0&&a.toString().substring(a.toString().indexOf(".")+3,a.toString().indexOf(".")+4)<=5){var o=a.toString().substring(a.toString().indexOf(".")+1,a.toString().indexOf(".")+3);return"99"==o?parseFloat(a.toString().substring(0,a.toString().indexOf(".")+3))+.01:"01"==o?parseFloat(a.toString().substring(0,a.toString().indexOf(".")+3))-.01:a.toString().substring(0,a.toString().indexOf(".")+3)}var s=parseFloat(a).toFixed(2);return"01"==s.toString().substring(s.toString().indexOf(".")+1,s.toString().indexOf(".")+3)?parseFloat(s.toString().substring(0,s.toString().indexOf(".")+3))-.01:parseFloat(a).toFixed(2)}}catch(e){return parseFloat(a).toFixed(2)}return parseFloat(a).toFixed(2)}catch(t){return parseFloat(e).toFixed(2)}}function DisplayPriceWithoutTax(e,t){try{if(void 0===t||""==t||null==t||null==t)return parseFloat(StringisNullOrUndefineOrBlank(e)?0:e.replace(",","")).toFixed(2);var i,n=_LoadTaxInfo.GetSelectedTaxValues(t).reduce(function(e,t){return e+t},0);return i=parseFloat(ConvertTodecimalMorePrecious(StringisNullOrUndefineOrBlank(e)?0:parseFloat(e.replace(",",""))/(1+n/100),!0,4)),parseFloat(i).toFixed(2)}catch(t){return parseFloat(e).toFixed(2)}}FormatPhone=function(e){var t=e.replace(/\D/g,""),i={0:"(",3:") ",6:"-"};e="";for(var n=0;n<t.length;n++)e+=(i[n]||"")+t[n];return e},ver=iOSversion(),GetChoiceForSeleect2Cust=function(e){try{return JSON.parse(e.data("choice"))}catch(e){return{}}},FormatPhoneByCountry=function(e,t,i,n=""){try{if(null!=e&&void 0!==e&&0!=e.length&&e.length>8){var a=e.replace(/\D/g,""),o={0:"(",3:") ",6:"-"};void 0!==t&&null!=t&&1*t>0&&(2==t&&10==a.length?void 0!==n&&null!=n&&""!=n&&"353"==n||(a="0"+a):(4==t&&9==a.length||2==t&&9==a.length)&&(a="0"+a)),void 0!==t&&null!=t&&1*t>0&&(2==t?o=void 0===n||null==n||""==n||"353"!=n?{3:" ",7:" "}:{0:"(",2:") ",7:" "}:3==t?o={3:"-",6:"-"}:4==t&&(o={0:"(",2:") ",6:" "})),e="";for(var s=0;s<a.length;s++)e+=(o[s]||"")+a[s];null!=i&&""!=i&&null!=i&&"withoutspace"==i&&(e=e.replace(/([()-\s])+/g,""))}return e}catch(t){return e}},ClientValidateCsvInjection=function(e,arguments){if(""!=arguments.Value){const e=CheckCsvInjectionWords(arguments.Value);arguments.IsValid=!e}else arguments.IsValid=!0},RestrictCharacter=function(e){$(e).val($(e).val().replace(/^=+/g,"")),$(e).val($(e).val().replace(/^@+/g,"")),$(e).val($(e).val().replace(/^-+/g,"")),$(e).val($(e).val().replace(/^\++/g,""))},CheckCsvInjectionWords=function(e){return["+","-","=","@"].some(t=>e.startsWith(t))},PreventCSVInjection=function(e){if(null!=e&&null!=typeof e&&0==IsNullOrEmpty(e.val())){return CheckCsvInjectionWords(e.val())}return!0},PreventScriptInjection=function(e){var t=e.clipboardData.getData("Text");if(1==/<(.|\n)*?>/g.test(t))return!1},ConvertTodecimalMorePrecious=function(e,t,i){return isNaN(parseFloat(e))&&(e=0),t?Number(Math.round(e+"e"+i)+"e-"+i).toFixed(i):parseFloat(Number(Math.round(e+"e"+i)+"e-"+i).toFixed(i))},setDarkModePreference=function(e,t){$("#hdnDarkModePreference").val(t);var i="",n=window.location.host.split(".");document.cookie="ThemePreferance=0;domain="+window.location.hostname.replace("www.",".")+"; path=/;Expires=Thu, 01 Jan 1970 00:00:01 GMT;",i=n.length>=2?"."+n[n.length-2]+"."+n[n.length-1]:window.location.hostname.replace("www.","."),document.cookie="ThemePreferance="+t+";domain="+i+"; path=/";var a=$("#divDiscountMainAddEditWarp").val();void 0!==a&&null!=a||(1==t?$("html").attr("data-theme","dark"):0==t?$("html").attr("data-theme","light"):$("html").attr("data-theme",""),void 0!==vui.frame&&null!=vui.frame&&vui.frame.zenswipe.setDarkModePreference(t))},setThemePreferenceFromCookies=function(){var e=getCookie("ThemePreferance");1==e?$("html").attr("data-theme","dark"):2==e?$("html").attr("data-theme",""):$("html").attr("data-theme","light")},FormatDateTime=function(e){try{return null!=e&&null!=e&&""!=e&&("undefined"!=typeof BusinessCountryID&&null!=BusinessCountryID&&"2"==BusinessCountryID||"undefined"!=typeof _businessCountryId&&null!=_businessCountryId&&"2"==_businessCountryId||"undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId&&"2"==glbBusinessCountryId)?"Invalid date"==moment(e).format("D MMM, YYYY h:mm A")?e:moment(e).format("D MMM, YYYY h:mm A"):"Invalid date"==moment(e).format("MMM D, YYYY h:mm A")?e:moment(e).format("MMM D, YYYY h:mm A")}catch(t){return e}},FormatDate=function(e){return null!=e&&null!=e&&"---"!=e&&("undefined"!=typeof BusinessCountryID&&null!=BusinessCountryID&&"2"==BusinessCountryID||"undefined"!=typeof _businessCountryId&&null!=_businessCountryId&&"2"==_businessCountryId||"undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId&&"2"==glbBusinessCountryId)?"Invalid date"==moment(e).format("D MMM, YYYY")?e:moment(e).format("D MMM, YYYY"):"Invalid date"==moment(e).format("MMM D, YYYY")?e:moment(e).format("MMM D, YYYY")};var VagaroDateFormat=Object.freeze({DateFormat_Month_Time_Format:"MMM D, YYYY h:mm A",DateFormat_Month_Time_Format_UK:"D MMM, YYYY h:mm A",DateFormat_VagaroPro:"MMM D, YYYY",DateFormat_VagaroPro_UK:"D MMM, YYYY",DateFormat_Refund_Date_Time:"MMM-DD-YYYY h:mm A",DateFormat_Refund_Date_Time_UK:"DD-MMM-YYYY h:mm A",DateFormat_DailyDealDiscount:"M/D/YY",DateFormat_DailyDealDiscount_UK:"D/M/YY"});function GetBusinessCountryID(){return"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:1}function fnRemoveHTMLTag(e){var t=$(e).val().trim();$(e).val(CheckAndRemoveHTMLTagInString(t))}function SearchGridCommonControl(e,t,i,n,a,o){var s=$(e).val().trim();if(s.length>=1){$(o).css("display","block");var r=/\s\s+/g,c='^[a-zA-Z0-9!@#$&()\\-`.+,/"]*$',l=s.replace(r," "),d=(l=(l=l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).toLowerCase().replace(c,"")).split(" "),u=d.length,p=!1;$(t).find(i).each(function(){var e=0;$(this).find(n).each(function(){for(var t=$(this).text().trim(),i=0,n=0;n<d.length;n++){var a=t.replace(r," ").toLowerCase().replace(c,"");(a.match(d[n])||-1!==a.indexOf(" "+d[n]))&&i++}i>=u?($(this).show(),e++,p=!0):$(this).hide()}),0===e?$(this).hide():$(this).show()}),p?$(a).css("display","none"):$(a).css("display","block")}else $(o).css("display","none"),$(t).find(n).each(function(){$(this).show()}),$(t).find(i).each(function(){$(this).show()}),$(a).css("display","none");$(t).trigger("resize")}function DisplaySalesPageIframe(e){return $("#hiddenLoginUser_Type").val()==userType.vagaroAdmin||"undefined"==typeof hdnIsdormant||null==hdnIsdormant||"True"!=hdnIsdormant.value||(window.location.href=commonPermissionDenied,!1)}function disableSubmenuHover(e){if($("#hiddenLoginUser_Type").val()!=userType.vagaroAdmin&&"undefined"!=typeof hdnIsdormant&&null!=hdnIsdormant&&"True"==hdnIsdormant.value){let t=e.target.closest("li"),i=t.querySelector("a").getAttribute("value");if(t){let e=t.querySelector("ul");"Help"!=i&&e&&e.querySelectorAll("li").forEach(e=>{e.style.display="none"})}}}function showDormantUpgradeModal(){if($("#hiddenLoginUser_Type").val()!=userType.vagaroAdmin){var e=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),t=e.match(/iphone/i)||e.match(/itouch/i)||e.match(/android/i)||!1,i=e.match(/vagaroandroidtablet/i)||e.match(/ipad/i);if("undefined"!=typeof hdnIsdormant&&null!=hdnIsdormant&&"True"==hdnIsdormant.value)return t&&!i?(CallBackToMobileDormantUpgradePopup(),!0):($("#dormantUpgradeModal").modal("show"),!0)}return!1}function CallBackToMobileDormantUpgradePopup(){var e='5006||~||{"navType": 0,"screenType": 0,"screenTitle" : "","message": "","messageType": 0,"action" : "142|~|"}';navigator.userAgent.toLowerCase().indexOf("iphone")>-1?window.location="js-call:myObjectiveCFunction:"+e:navigator.userAgent.toLowerCase().indexOf("android")>-1&&null!=window.JSInterface&&window.JSInterface.CallWSMethod(e)}
/*!
 * Webflow: Front-end site library
 * @license MIT
 * Inline scripts may access the api using an async handler:
 *   var Webflow = Webflow || [];
 *   Webflow.push(readyFunction);
 */if(changeDateFormat=function(e,t,i){try{if(void 0!==i&&null!=i||(i=1),"2"!=i)return moment(e).format(t);switch(t){case VagaroDateFormat.DateFormat_Month_Time_Format:return moment(e).format(VagaroDateFormat.DateFormat_Month_Time_Format_UK);case VagaroDateFormat.DateFormat_VagaroPro:return moment(e).format(VagaroDateFormat.DateFormat_VagaroPro_UK);case VagaroDateFormat.DateFormat_Refund_Date_Time:return moment(e).format(VagaroDateFormat.DateFormat_Refund_Date_Time_UK);case VagaroDateFormat.DateFormat_DailyDealDiscount:return moment(e).format(VagaroDateFormat.DateFormat_DailyDealDiscount_UK);default:return e}}catch(i){return moment(e).format(t)}},datetimepicker=function(){var e="MMM D, YYYY - h:mm A";return"undefined"!=typeof _businessCountryId&&null!=_businessCountryId&&"2"==_businessCountryId&&(e="D MMM, YYYY - h:mm A"),e},datepicker=function(){var e="MMM D, YYYY";return"undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId&&"2"==glbBusinessCountryId&&(e="D MMM, YYYY "),"undefined"!=typeof _businessCountryId&&null!=_businessCountryId&&"2"==_businessCountryId&&(e="D MMM, YYYY "),"undefined"!=typeof BusinessCountryID&&null!=BusinessCountryID&&"2"==BusinessCountryID&&(e="D MMM, YYYY "),e},settingmodulehistoryPicker=function(){var e="MMM-DD-YYYY";return"undefined"!=typeof glbBusinessCountryId&&null!=glbBusinessCountryId&&"2"==glbBusinessCountryId&&(e="DD-MMM-YYYY "),"undefined"!=typeof _businessCountryId&&null!=_businessCountryId&&"2"==_businessCountryId&&(e="DD-MMM-YYYY "),"undefined"!=typeof BusinessCountryID&&null!=BusinessCountryID&&"2"==BusinessCountryID&&(e="DD-MMM-YYYY "),e},function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}i.m=e,i.c=t,i.p="/",i(0)}([function(e,t,i){i(5),i(6),i(7),i(8),i(9),i(10),i(11),i(12),i(1),i(13),i(14),i(15),i(16),i(17),i(18),i(19),e.exports=i(20)},function(e,t,i){(function(t){"use strict";var n={},a={},o=[],s=window.Webflow||[],r=window.jQuery,c=r(window),l=r(document),d=r.isFunction,u=n._=i(21),p=i(3)&&r.tram,f=!1,h=!1,m=window.Modernizr;function g(e){n.env()&&(d(e.design)&&c.on("__wf_design",e.design),d(e.preview)&&c.on("__wf_preview",e.preview)),d(e.destroy)&&c.on("__wf_destroy",e.destroy),e.ready&&d(e.ready)&&function(e){if(f)return void e.ready();if(u.contains(o,e.ready))return;o.push(e.ready)}(e)}function v(e){d(e.design)&&c.off("__wf_design",e.design),d(e.preview)&&c.off("__wf_preview",e.preview),d(e.destroy)&&c.off("__wf_destroy",e.destroy),e.ready&&d(e.ready)&&function(e){o=u.filter(o,function(t){return t!==e.ready})}(e)}p.config.hideBackface=!1,p.config.keepInherited=!0,n.define=function(e,t,i){a[e]&&v(a[e]);var n=a[e]=t(r,u,i)||{};return g(n),n},n.require=function(e){return a[e]},n.push=function(e){f?d(e)&&e():s.push(e)},n.env=function(e){var i=window.__wf_design,n=void 0!==i;return e?"design"===e?n&&i:"preview"===e?n&&!i:"slug"===e?n&&window.__wf_slug:"editor"===e?window.WebflowEditor:"test"===e?"test"===t.env.NODE_ENV||window.__wf_test:"frame"===e?window!==window.top:void 0:n};var y,b=navigator.userAgent.toLowerCase(),_=navigator.appVersion.toLowerCase(),C=n.env.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,w=n.env.chrome=/chrome/.test(b)&&/Google/.test(navigator.vendor)&&parseInt(_.match(/chrome\/(\d+)\./)[1],10),x=n.env.ios=m&&m.ios;n.env.safari=/safari/.test(b)&&!w&&!x,C&&l.on("touchstart mousedown",function(e){y=e.target}),n.validClick=C?function(e){return e===y||r.contains(e,y)}:function(){return!0};var I,S="resize.webflow orientationchange.webflow load.webflow",k="scroll.webflow "+S;function N(e,t){var i=[],n={};return n.up=u.throttle(function(e){u.each(i,function(t){t(e)})}),e&&t&&e.on(t,n.up),n.on=function(e){"function"==typeof e&&(u.contains(i,e)||i.push(e))},n.off=function(e){i=arguments.length?u.filter(i,function(t){return t!==e}):[]},n}if(n.resize=N(c,S),n.scroll=N(c,k),n.redraw=N(),n.location=function(e){window.location=e},n.app=n.env()?{}:null,n.app){var D=new Event("__wf_redraw");n.app.redrawElement=function(e,t){t.dispatchEvent(D)},n.location=function(e){window.dispatchEvent(new CustomEvent("__wf_location",{detail:e}))}}function B(e){d(e)&&e()}function T(){I&&(I.reject(),c.off("load",I.resolve)),I=new r.Deferred,c.on("load",I.resolve)}n.ready=function(){f=!0,h?(h=!1,u.each(a,g)):u.each(o,B),u.each(s,B),n.resize.up()},n.load=function(e){I.then(e)},n.destroy=function(e){e=e||{},h=!0,c.triggerHandler("__wf_destroy"),null!=e.domready&&(f=e.domready),u.each(a,v),n.resize.off(),n.scroll.off(),n.redraw.off(),o=[],s=[],"pending"===I.state()&&T()},r(n.ready),T(),e.exports=window.Webflow=n}).call(t,i(4))},function(e,t){"use strict";var i=window.jQuery,n={},a=[],o=".w-ix",s={reset:function(e,t){t.__wf_intro=null},intro:function(e,t){t.__wf_intro||(t.__wf_intro=!0,i(t).triggerHandler(n.types.INTRO))},outro:function(e,t){t.__wf_intro&&(t.__wf_intro=null,i(t).triggerHandler(n.types.OUTRO))}};n.triggers={},n.types={INTRO:"w-ix-intro"+o,OUTRO:"w-ix-outro"+o},n.init=function(){for(var e=a.length,t=0;t<e;t++){var o=a[t];o[0](0,o[1])}a=[],i.extend(n.triggers,s)},n.async=function(){for(var e in s){var t=s[e];s.hasOwnProperty(e)&&(n.triggers[e]=function(e,i){a.push([t,i])})}},n.async(),e.exports=n},function(e,t){
/*!
	 * tram.js v0.8.1-global
	 * Cross-browser CSS3 transitions in JavaScript
	 * https://github.com/bkwld/tram
	 * MIT License
	 */
window.tram=function(e){function t(e,t){return(new P.Bare).init(e,t)}function i(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function n(e){var t=parseInt(e.slice(1),16);return[t>>16&255,t>>8&255,255&t]}function a(e,t,i){return"#"+(1<<24|e<<16|t<<8|i).toString(16).slice(1)}function o(){}function s(e,t,i){if(void 0!==t&&(i=t),void 0===e)return i;var n=i;return G.test(e)||!J.test(e)?n=parseInt(e,10):J.test(e)&&(n=1e3*parseFloat(e)),0>n&&(n=0),n==n?n:i}var r=function(e,t){function i(e){return"object"==typeof e}function n(e){return"function"==typeof e}function a(){}return function o(s,r){function c(){var e=new l;return n(e.init)&&e.init.apply(e,arguments),e}function l(){}undefined===r&&(r=s,s=Object),c.Bare=l;var d,u=a[e]=s[e],p=l[e]=c[e]=new a;return p.constructor=c,c.mixin=function(t){return l[e]=c[e]=o(c,t)[e],c},c.open=function(e){if(d={},n(e)?d=e.call(c,p,u,c,s):i(e)&&(d=e),i(d))for(var a in d)t.call(d,a)&&(p[a]=d[a]);return n(p.init)||(p.init=s),c},c.open(r)}}("prototype",{}.hasOwnProperty),c={ease:["ease",function(e,t,i,n){var a=(e/=n)*e,o=a*e;return t+i*(-2.75*o*a+11*a*a+-15.5*o+8*a+.25*e)}],"ease-in":["ease-in",function(e,t,i,n){var a=(e/=n)*e,o=a*e;return t+i*(-1*o*a+3*a*a+-3*o+2*a)}],"ease-out":["ease-out",function(e,t,i,n){var a=(e/=n)*e,o=a*e;return t+i*(.3*o*a+-1.6*a*a+2.2*o+-1.8*a+1.9*e)}],"ease-in-out":["ease-in-out",function(e,t,i,n){var a=(e/=n)*e,o=a*e;return t+i*(2*o*a+-5*a*a+2*o+2*a)}],linear:["linear",function(e,t,i,n){return i*e/n+t}],"ease-in-quad":["cubic-bezier(0.550, 0.085, 0.680, 0.530)",function(e,t,i,n){return i*(e/=n)*e+t}],"ease-out-quad":["cubic-bezier(0.250, 0.460, 0.450, 0.940)",function(e,t,i,n){return-i*(e/=n)*(e-2)+t}],"ease-in-out-quad":["cubic-bezier(0.455, 0.030, 0.515, 0.955)",function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t}],"ease-in-cubic":["cubic-bezier(0.550, 0.055, 0.675, 0.190)",function(e,t,i,n){return i*(e/=n)*e*e+t}],"ease-out-cubic":["cubic-bezier(0.215, 0.610, 0.355, 1)",function(e,t,i,n){return i*((e=e/n-1)*e*e+1)+t}],"ease-in-out-cubic":["cubic-bezier(0.645, 0.045, 0.355, 1)",function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}],"ease-in-quart":["cubic-bezier(0.895, 0.030, 0.685, 0.220)",function(e,t,i,n){return i*(e/=n)*e*e*e+t}],"ease-out-quart":["cubic-bezier(0.165, 0.840, 0.440, 1)",function(e,t,i,n){return-i*((e=e/n-1)*e*e*e-1)+t}],"ease-in-out-quart":["cubic-bezier(0.770, 0, 0.175, 1)",function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}],"ease-in-quint":["cubic-bezier(0.755, 0.050, 0.855, 0.060)",function(e,t,i,n){return i*(e/=n)*e*e*e*e+t}],"ease-out-quint":["cubic-bezier(0.230, 1, 0.320, 1)",function(e,t,i,n){return i*((e=e/n-1)*e*e*e*e+1)+t}],"ease-in-out-quint":["cubic-bezier(0.860, 0, 0.070, 1)",function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t}],"ease-in-sine":["cubic-bezier(0.470, 0, 0.745, 0.715)",function(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t}],"ease-out-sine":["cubic-bezier(0.390, 0.575, 0.565, 1)",function(e,t,i,n){return i*Math.sin(e/n*(Math.PI/2))+t}],"ease-in-out-sine":["cubic-bezier(0.445, 0.050, 0.550, 0.950)",function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t}],"ease-in-expo":["cubic-bezier(0.950, 0.050, 0.795, 0.035)",function(e,t,i,n){return 0===e?t:i*Math.pow(2,10*(e/n-1))+t}],"ease-out-expo":["cubic-bezier(0.190, 1, 0.220, 1)",function(e,t,i,n){return e===n?t+i:i*(1-Math.pow(2,-10*e/n))+t}],"ease-in-out-expo":["cubic-bezier(1, 0, 0, 1)",function(e,t,i,n){return 0===e?t:e===n?t+i:(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t}],"ease-in-circ":["cubic-bezier(0.600, 0.040, 0.980, 0.335)",function(e,t,i,n){return-i*(Math.sqrt(1-(e/=n)*e)-1)+t}],"ease-out-circ":["cubic-bezier(0.075, 0.820, 0.165, 1)",function(e,t,i,n){return i*Math.sqrt(1-(e=e/n-1)*e)+t}],"ease-in-out-circ":["cubic-bezier(0.785, 0.135, 0.150, 0.860)",function(e,t,i,n){return(e/=n/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t}],"ease-in-back":["cubic-bezier(0.600, -0.280, 0.735, 0.045)",function(e,t,i,n,a){return void 0===a&&(a=1.70158),i*(e/=n)*e*((a+1)*e-a)+t}],"ease-out-back":["cubic-bezier(0.175, 0.885, 0.320, 1.275)",function(e,t,i,n,a){return void 0===a&&(a=1.70158),i*((e=e/n-1)*e*((a+1)*e+a)+1)+t}],"ease-in-out-back":["cubic-bezier(0.680, -0.550, 0.265, 1.550)",function(e,t,i,n,a){return void 0===a&&(a=1.70158),(e/=n/2)<1?i/2*e*e*((1+(a*=1.525))*e-a)+t:i/2*((e-=2)*e*((1+(a*=1.525))*e+a)+2)+t}]},l={"ease-in-back":"cubic-bezier(0.600, 0, 0.735, 0.045)","ease-out-back":"cubic-bezier(0.175, 0.885, 0.320, 1)","ease-in-out-back":"cubic-bezier(0.680, 0, 0.265, 1)"},d=document,u=window,p="bkwld-tram",f=/[\-\.0-9]/g,h=/[A-Z]/,m="number",g=/^(rgb|#)/,v=/(em|cm|mm|in|pt|pc|px)$/,y=/(em|cm|mm|in|pt|pc|px|%)$/,b=/(deg|rad|turn)$/,_="unitless",C=/(all|none) 0s ease 0s/,w=/^(width|height)$/,x=" ",I=d.createElement("a"),S=["Webkit","Moz","O","ms"],k=["-webkit-","-moz-","-o-","-ms-"],N=function(e){if(e in I.style)return{dom:e,css:e};var t,i,n="",a=e.split("-");for(t=0;t<a.length;t++)n+=a[t].charAt(0).toUpperCase()+a[t].slice(1);for(t=0;t<S.length;t++)if((i=S[t]+n)in I.style)return{dom:i,css:k[t]+e}},D=t.support={bind:Function.prototype.bind,transform:N("transform"),transition:N("transition"),backface:N("backface-visibility"),timing:N("transition-timing-function")};if(D.transition){var B=D.timing.dom;if(I.style[B]=c["ease-in-back"][0],!I.style[B])for(var T in l)c[T][0]=l[T]}var A=t.frame=function(){var e=u.requestAnimationFrame||u.webkitRequestAnimationFrame||u.mozRequestAnimationFrame||u.oRequestAnimationFrame||u.msRequestAnimationFrame;return e&&D.bind?e.bind(u):function(e){u.setTimeout(e,16)}}(),M=t.now=function(){var e=u.performance,t=e&&(e.now||e.webkitNow||e.msNow||e.mozNow);return t&&D.bind?t.bind(e):Date.now||function(){return+new Date}}(),$=r(function(t){function n(e,t){var i=function(e){for(var t=-1,i=e?e.length:0,n=[];++t<i;){var a=e[t];a&&n.push(a)}return n}((""+e).split(x)),n=i[0];t=t||{};var a=z[n];if(!a)return Z("Unsupported property: "+n);if(!t.weak||!this.props[n]){var o=a[0],s=this.props[n];return s||(s=this.props[n]=new o.Bare),s.init(this.$el,i,a,t),s}}function a(e,t,i){if(e){var a=typeof e;if(t||(this.timer&&this.timer.destroy(),this.queue=[],this.active=!1),"number"==a&&t)return this.timer=new W({duration:e,context:this,complete:o}),void(this.active=!0);if("string"==a&&t){switch(e){case"hide":c.call(this);break;case"stop":r.call(this);break;case"redraw":l.call(this);break;default:n.call(this,e,i&&i[1])}return o.call(this)}if("function"==a)return void e.call(this,this);if("object"==a){var p=0;u.call(this,e,function(e,t){e.span>p&&(p=e.span),e.stop(),e.animate(t)},function(e){"wait"in e&&(p=s(e.wait,0))}),d.call(this),p>0&&(this.timer=new W({duration:p,context:this}),this.active=!0,t&&(this.timer.complete=o));var f=this,h=!1,m={};A(function(){u.call(f,e,function(e){e.active&&(h=!0,m[e.name]=e.nextStyle)}),h&&f.$el.css(m)})}}}function o(){if(this.timer&&this.timer.destroy(),this.active=!1,this.queue.length){var e=this.queue.shift();a.call(this,e.options,!0,e.args)}}function r(e){var t;this.timer&&this.timer.destroy(),this.queue=[],this.active=!1,"string"==typeof e?(t={})[e]=1:t="object"==typeof e&&null!=e?e:this.props,u.call(this,t,f),d.call(this)}function c(){r.call(this),this.el.style.display="none"}function l(){this.el.offsetHeight}function d(){var e,t,i=[];for(e in this.upstream&&i.push(this.upstream),this.props)(t=this.props[e]).active&&i.push(t.string);i=i.join(","),this.style!==i&&(this.style=i,this.el.style[D.transition.dom]=i)}function u(e,t,a){var o,s,r,c,l=t!==f,d={};for(o in e)r=e[o],o in q?(d.transform||(d.transform={}),d.transform[o]=r):(h.test(o)&&(o=i(o)),o in z?d[o]=r:(c||(c={}),c[o]=r));for(o in d){if(r=d[o],!(s=this.props[o])){if(!l)continue;s=n.call(this,o)}t.call(this,s,r)}a&&c&&a.call(this,c)}function f(e){e.stop()}function m(e,t){e.set(t)}function g(e){this.$el.css(e)}function v(e,i){t[e]=function(){return this.children?y.call(this,i,arguments):(this.el&&i.apply(this,arguments),this)}}function y(e,t){var i,n=this.children.length;for(i=0;n>i;i++)e.apply(this.children[i],t);return this}t.init=function(t){if(this.$el=e(t),this.el=this.$el[0],this.props={},this.queue=[],this.style="",this.active=!1,H.keepInherited&&!H.fallback){var i=j(this.el,"transition");i&&!C.test(i)&&(this.upstream=i)}D.backface&&H.hideBackface&&V(this.el,D.backface.css,"hidden")},v("add",n),v("start",a),v("wait",function(e){e=s(e,0),this.active?this.queue.push({options:e}):(this.timer=new W({duration:e,context:this,complete:o}),this.active=!0)}),v("then",function(e){return this.active?(this.queue.push({options:e,args:arguments}),void(this.timer.complete=o)):Z("No active transition timer. Use start() or wait() before then().")}),v("next",o),v("stop",r),v("set",function(e){r.call(this,e),u.call(this,e,m,g)}),v("show",function(e){"string"!=typeof e&&(e="block"),this.el.style.display=e}),v("hide",c),v("redraw",l),v("destroy",function(){r.call(this),e.removeData(this.el,p),this.$el=this.el=null})}),P=r($,function(t){function i(t,i){var n=e.data(t,p)||e.data(t,p,new $.Bare);return n.el||n.init(t),i?n.start(i):n}t.init=function(t,n){var a=e(t);if(!a.length)return this;if(1===a.length)return i(a[0],n);var o=[];return a.each(function(e,t){o.push(i(t,n))}),this.children=o,this}}),O=r(function(e){function t(){var e=this.get();this.update("auto");var t=this.get();return this.update(e),t}function i(e){var t=/rgba?\((\d+),\s*(\d+),\s*(\d+)/.exec(e);return(t?a(t[1],t[2],t[3]):e).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}var n=500,o="ease",r=0;e.init=function(e,t,i,a){this.$el=e,this.el=e[0];var l=t[0];i[2]&&(l=i[2]),Y[l]&&(l=Y[l]),this.name=l,this.type=i[1],this.duration=s(t[1],this.duration,n),this.ease=function(e,t,i){return void 0!==t&&(i=t),e in c?e:i}(t[2],this.ease,o),this.delay=s(t[3],this.delay,r),this.span=this.duration+this.delay,this.active=!1,this.nextStyle=null,this.auto=w.test(this.name),this.unit=a.unit||this.unit||H.defaultUnit,this.angle=a.angle||this.angle||H.defaultAngle,H.fallback||a.fallback?this.animate=this.fallback:(this.animate=this.transition,this.string=this.name+x+this.duration+"ms"+("ease"!=this.ease?x+c[this.ease][0]:"")+(this.delay?x+this.delay+"ms":""))},e.set=function(e){e=this.convert(e,this.type),this.update(e),this.redraw()},e.transition=function(e){this.active=!0,e=this.convert(e,this.type),this.auto&&("auto"==this.el.style[this.name]&&(this.update(this.get()),this.redraw()),"auto"==e&&(e=t.call(this))),this.nextStyle=e},e.fallback=function(e){var i=this.el.style[this.name]||this.convert(this.get(),this.type);e=this.convert(e,this.type),this.auto&&("auto"==i&&(i=this.convert(this.get(),this.type)),"auto"==e&&(e=t.call(this))),this.tween=new F({from:i,to:e,duration:this.duration,delay:this.delay,ease:this.ease,update:this.update,context:this})},e.get=function(){return j(this.el,this.name)},e.update=function(e){V(this.el,this.name,e)},e.stop=function(){(this.active||this.nextStyle)&&(this.active=!1,this.nextStyle=null,V(this.el,this.name,this.get()));var e=this.tween;e&&e.context&&e.destroy()},e.convert=function(e,t){if("auto"==e&&this.auto)return e;var n,a="number"==typeof e,o="string"==typeof e;switch(t){case m:if(a)return e;if(o&&""===e.replace(f,""))return+e;n="number(unitless)";break;case g:if(o){if(""===e&&this.original)return this.original;if(t.test(e))return"#"==e.charAt(0)&&7==e.length?e:i(e)}n="hex or rgb string";break;case v:if(a)return e+this.unit;if(o&&t.test(e))return e;n="number(px) or string(unit)";break;case y:if(a)return e+this.unit;if(o&&t.test(e))return e;n="number(px) or string(unit or %)";break;case b:if(a)return e+this.angle;if(o&&t.test(e))return e;n="number(deg) or string(angle)";break;case _:if(a)return e;if(o&&y.test(e))return e;n="number(unitless) or string(unit or %)"}return function(e,t){Z("Type warning: Expected: ["+e+"] Got: ["+typeof t+"] "+t)}(n,e),e},e.redraw=function(){this.el.offsetHeight}}),R=r(O,function(e,t){e.init=function(){t.init.apply(this,arguments),this.original||(this.original=this.convert(this.get(),g))}}),L=r(O,function(e,t){e.init=function(){t.init.apply(this,arguments),this.animate=this.fallback},e.get=function(){return this.$el[this.name]()},e.update=function(e){this.$el[this.name](e)}}),E=r(O,function(e,t){function i(e,t){var i,n,a,o,s;for(i in e)a=(o=q[i])[0],n=o[1]||i,s=this.convert(e[i],a),t.call(this,n,s,a)}e.init=function(){t.init.apply(this,arguments),this.current||(this.current={},q.perspective&&H.perspective&&(this.current.perspective=H.perspective,V(this.el,this.name,this.style(this.current)),this.redraw()))},e.set=function(e){i.call(this,e,function(e,t){this.current[e]=t}),V(this.el,this.name,this.style(this.current)),this.redraw()},e.transition=function(e){var t=this.values(e);this.tween=new U({current:this.current,values:t,duration:this.duration,delay:this.delay,ease:this.ease});var i,n={};for(i in this.current)n[i]=i in t?t[i]:this.current[i];this.active=!0,this.nextStyle=this.style(n)},e.fallback=function(e){var t=this.values(e);this.tween=new U({current:this.current,values:t,duration:this.duration,delay:this.delay,ease:this.ease,update:this.update,context:this})},e.update=function(){V(this.el,this.name,this.style(this.current))},e.style=function(e){var t,i="";for(t in e)i+=t+"("+e[t]+") ";return i},e.values=function(e){var t,n={};return i.call(this,e,function(e,i,a){n[e]=i,void 0===this.current[e]&&(t=0,~e.indexOf("scale")&&(t=1),this.current[e]=this.convert(t,a))}),n}}),F=r(function(t){function i(){var e,t,n,a=r.length;if(a)for(A(i),t=M(),e=a;e--;)(n=r[e])&&n.render(t)}var s={ease:c.ease[1],from:0,to:1};t.init=function(e){this.duration=e.duration||0,this.delay=e.delay||0;var t=e.ease||s.ease;c[t]&&(t=c[t][1]),"function"!=typeof t&&(t=s.ease),this.ease=t,this.update=e.update||o,this.complete=e.complete||o,this.context=e.context||this,this.name=e.name;var i=e.from,n=e.to;void 0===i&&(i=s.from),void 0===n&&(n=s.to),this.unit=e.unit||"","number"==typeof i&&"number"==typeof n?(this.begin=i,this.change=n-i):this.format(n,i),this.value=this.begin+this.unit,this.start=M(),!1!==e.autoplay&&this.play()},t.play=function(){this.active||(this.start||(this.start=M()),this.active=!0,function(e){1===r.push(e)&&A(i)}(this))},t.stop=function(){this.active&&(this.active=!1,function(t){var i,n=e.inArray(t,r);n>=0&&(i=r.slice(n+1),r.length=n,i.length&&(r=r.concat(i)))}(this))},t.render=function(e){var t,i=e-this.start;if(this.delay){if(i<=this.delay)return;i-=this.delay}if(i<this.duration){var n=this.ease(i,0,1,this.duration);return t=this.startRGB?function(e,t,i){return a(e[0]+i*(t[0]-e[0]),e[1]+i*(t[1]-e[1]),e[2]+i*(t[2]-e[2]))}(this.startRGB,this.endRGB,n):function(e){return Math.round(e*l)/l}(this.begin+n*this.change),this.value=t+this.unit,void this.update.call(this.context,this.value)}t=this.endHex||this.begin+this.change,this.value=t+this.unit,this.update.call(this.context,this.value),this.complete.call(this.context),this.destroy()},t.format=function(e,t){if(t+="","#"==(e+="").charAt(0))return this.startRGB=n(t),this.endRGB=n(e),this.endHex=e,this.begin=0,void(this.change=1);if(!this.unit){var i=t.replace(f,"");i!==e.replace(f,"")&&function(e,t,i){Z("Units do not match ["+e+"]: "+t+", "+i)}("tween",t,e),this.unit=i}t=parseFloat(t),e=parseFloat(e),this.begin=this.value=t,this.change=e-t},t.destroy=function(){this.stop(),this.context=null,this.ease=this.update=this.complete=o};var r=[],l=1e3}),W=r(F,function(e){e.init=function(e){this.duration=e.duration||0,this.complete=e.complete||o,this.context=e.context,this.play()},e.render=function(e){e-this.start<this.duration||(this.complete.call(this.context),this.destroy())}}),U=r(F,function(e,t){e.init=function(e){var t,i;for(t in this.context=e.context,this.update=e.update,this.tweens=[],this.current=e.current,e.values)i=e.values[t],this.current[t]!==i&&this.tweens.push(new F({name:t,from:this.current[t],to:i,duration:e.duration,delay:e.delay,ease:e.ease,autoplay:!1}));this.play()},e.render=function(e){var t,i,n=!1;for(t=this.tweens.length;t--;)(i=this.tweens[t]).context&&(i.render(e),this.current[i.name]=i.value,n=!0);return n?void(this.update&&this.update.call(this.context)):this.destroy()},e.destroy=function(){if(t.destroy.call(this),this.tweens){var e;for(e=this.tweens.length;e--;)this.tweens[e].destroy();this.tweens=null,this.current=null}}}),H=t.config={defaultUnit:"px",defaultAngle:"deg",keepInherited:!1,hideBackface:!1,perspective:"",fallback:!D.transition,agentTests:[]};t.fallback=function(e){if(!D.transition)return H.fallback=!0;H.agentTests.push("("+e+")");var t=new RegExp(H.agentTests.join("|"),"i");H.fallback=t.test(navigator.userAgent)},t.fallback("6.0.[2-5] Safari"),t.tween=function(e){return new F(e)},t.delay=function(e,t,i){return new W({complete:t,duration:e,context:i})},e.fn.tram=function(e){return t.call(null,this,e)};var V=e.style,j=e.css,Y={transform:D.transform&&D.transform.css},z={color:[R,g],background:[R,g,"background-color"],"outline-color":[R,g],"border-color":[R,g],"border-top-color":[R,g],"border-right-color":[R,g],"border-bottom-color":[R,g],"border-left-color":[R,g],"border-width":[O,v],"border-top-width":[O,v],"border-right-width":[O,v],"border-bottom-width":[O,v],"border-left-width":[O,v],"border-spacing":[O,v],"letter-spacing":[O,v],margin:[O,v],"margin-top":[O,v],"margin-right":[O,v],"margin-bottom":[O,v],"margin-left":[O,v],padding:[O,v],"padding-top":[O,v],"padding-right":[O,v],"padding-bottom":[O,v],"padding-left":[O,v],"outline-width":[O,v],opacity:[O,m],top:[O,y],right:[O,y],bottom:[O,y],left:[O,y],"font-size":[O,y],"text-indent":[O,y],"word-spacing":[O,y],width:[O,y],"min-width":[O,y],"max-width":[O,y],height:[O,y],"min-height":[O,y],"max-height":[O,y],"line-height":[O,_],"scroll-top":[L,m,"scrollTop"],"scroll-left":[L,m,"scrollLeft"]},q={};D.transform&&(z.transform=[E],q={x:[y,"translateX"],y:[y,"translateY"],rotate:[b],rotateX:[b],rotateY:[b],scale:[m],scaleX:[m],scaleY:[m],skew:[b],skewX:[b],skewY:[b]}),D.transform&&D.backface&&(q.z=[y,"translateZ"],q.rotateZ=[b],q.scaleZ=[m],q.perspective=[v]);var G=/ms/,J=/s|\./,Z=function(){var e="warn",t=window.console;return t&&t[e]?function(i){t[e](i)}:o}();return e.tram=t}(window.jQuery)},function(e,t){var i,n,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function r(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c,l=[],d=!1,u=-1;function p(){d&&c&&(d=!1,c.length?l=c.concat(l):u=-1,l.length&&f())}function f(){if(!d){var e=r(p);d=!0;for(var t=l.length;t;){for(c=l,l=[];++u<t;)c&&c[u].run();u=-1,t=l.length}c=null,d=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];l.push(new h(e,t)),1!==l.length||d||r(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,i){"use strict";var n=i(1);n.define("backgroundVideo",e.exports=function(e,t){e(document);return{ready:function(){var t=e(document).find(".w-background-video");0!==t.length&&t.each(function(t,i){e(i).prepend(function(t){var i=e(t).data();if(!i.videoUrls)return e("<video />");if(n.isMobile())return e("<video />").css("background-image","url("+i.posterUrl+")");var a=i.videoUrls.split(",").map(function(t){return e("<source />").attr({src:t,"data-wf-ignore":""})}),o=e("<video />").attr({autoplay:i.autoplay,loop:i.loop}).css("background-image","url("+i.posterUrl+")");return o.append(a),o}(i))})}}})},function(e,t,i){"use strict";var n=i(1);n.define("brand",e.exports=function(e,t){var i={},a=e("html"),o=e("body"),s=window.location;n.env();return i.ready=function(){var t=a.attr("data-wf-status"),i=a.attr("data-wf-domain")||"";if(/\.webflow\.io$/i.test(i)&&s.hostname!==i&&(t=!0),t){var n=e("<div></div>"),r=e("<a></a>");r.attr("href","http://webflow.com?utm_campaign=brandjs"),n.css({position:"fixed",bottom:0,right:0,zIndex:2147483647,borderTopLeftRadius:"5px",backgroundColor:"#2b3239",padding:"8px 12px 5px 15px",fontFamily:"Arial",fontSize:"10px",textTransform:"uppercase",opacity:"0",transition:"opacity 0.50s ease-in-out"}),r.css({color:"#AAADB0",textDecoration:"none"});var c=e("<img>");if(c.attr("src","https://daks2k3a4ib2z.cloudfront.net/54153e6a3d25f2755b1f14ed/5445a4b1944ecdaa4df86d3e_subdomain-brand.svg"),c.css({opacity:.9,width:"57px",verticalAlign:"middle",paddingLeft:"4px",paddingBottom:"3px"}),n.text("Built with"),n.append(c),r.append(n),o.append(r),/PhantomJS/.test(window.navigator.userAgent))return;n.css({opacity:"1.0"})}},i})},function(e,t,i){"use strict";var n=i(1),a=i(2);n.define("dropdown",e.exports=function(e,t){var i,o,s={},r=e(document),c=n.env(),l=n.env.touch,d=".w-dropdown",u="w--open",p="w-close"+d,f=a.triggers;function h(i,n){var a=e(n),s=e.data(n,d);s||(s=e.data(n,d,{open:!1,el:a,config:{}})),s.list=a.children(".w-dropdown-list"),s.toggle=a.children(".w-dropdown-toggle"),s.links=s.list.children(".w-dropdown-link"),s.outside=function(i){i.outside&&r.off("tap"+d,i.outside);return t.debounce(function(t){if(i.open){var n=e(t.target);n.closest(".w-dropdown-toggle").length||i.el.is(n.closest(d))||y(i)}})}(s),s.complete=function(e){return function(){e.list.removeClass(u),e.toggle.removeClass(u)}}(s),s.leave=function(e){return function(){e.hovering=!1,y(e)}}(s),a.off(d),s.toggle.off(d),m(s),s.nav&&s.nav.off(d),s.nav=a.closest(".w-nav"),s.nav.on(p,g(s)),o?a.on("setting"+d,g(s)):(s.toggle.on("tap"+d,function(e){return t.debounce(function(){e.open?y(e):v(e)})}(s)),s.config.hover&&s.toggle.on("mouseenter"+d,function(e){return function(){e.hovering=!0,v(e)}}(s)),a.on(p,g(s)),c&&y(s))}function m(e){e.config={hover:Boolean(e.el.attr("data-hover"))&&!l,delay:Number(e.el.attr("data-delay"))||0}}function g(e){return function(t,i){return i=i||{},"w-close"===t.type?y(e):"setting"===t.type?(m(e),!0===i.open&&v(e),void(!1===i.open&&y(e,!0))):void 0}}function v(t){t.open||(!function(t){var n=t.el[0];i.each(function(t,i){var a=e(i);a.is(n)||a.has(n).length||a.triggerHandler(p)})}(t),t.open=!0,t.list.addClass(u),t.toggle.addClass(u),f.intro(0,t.el[0]),n.redraw.up(),o||r.on("tap"+d,t.outside),t.hovering&&t.el.on("mouseleave"+d,t.leave),window.clearTimeout(t.delayId))}function y(e,t){if(e.open&&(!e.config.hover||!e.hovering)){e.open=!1;var i=e.config;if(f.outro(0,e.el[0]),r.off("tap"+d,e.outside),e.el.off("mouseleave"+d,e.leave),window.clearTimeout(e.delayId),!i.delay||t)return e.complete();e.delayId=window.setTimeout(e.complete,i.delay)}}return s.ready=s.design=s.preview=function(){o=c&&n.env("design"),(i=r.find(d)).each(h)},s})},function(e,t,i){"use strict";var n=i(1);n.define("edit",e.exports=function(e,t,i){if(i=i||{},(n.env("test")||n.env("frame"))&&!i.fixture)return{exit:1};var a,o=e(window),s=e(document.documentElement),r=document.location,c="hashchange",l=i.load||function(){a=!0,window.WebflowEditor=!0,o.off(c,u),e.ajax({url:h("https://editor-api.webflow.com/api/editor/view"),data:{siteId:s.attr("data-wf-site")},xhrFields:{withCredentials:!0},dataType:"json",crossDomain:!0,success:p})},d=!1;try{d=localStorage&&localStorage.getItem&&localStorage.getItem("WebflowEditor")}catch(e){}function u(){a||/\?edit/.test(r.hash)&&l()}function p(t){var i;t?function(t,i){e.ajax({type:"GET",url:t,dataType:"script",cache:!0}).then(i,f)}((i=t.scriptPath,i.indexOf("//")>=0?i:h("https://editor-api.webflow.com"+i)),function(){window.WebflowEditor(t)}):console.error("Could not load editor data")}function f(e,t,i){throw console.error("Could not load editor script: "+t),i}function h(e){return e.replace(/([^:])\/\//g,"$1/")}return d?l():r.search?(/[?&](edit)(?:[=&?]|$)/.test(r.search)||/\?edit$/.test(r.href))&&l():o.on(c,u).triggerHandler(c),{}})},function(e,t){Webflow.isMobile=function(){var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))}},function(e,t,i){var n=i(1);n.define("forms",e.exports=function(e,t){var a={};i(22);var o,s,r,c=e(document),l=window.location,d=window.XDomainRequest&&!window.atob,u=".w-form",p=/e(\-)?mail/i,f=/^\S+@\S+$/,h=window.alert,m=/list-manage[1-9]?.com/i,g=t.debounce(function(){h("Oops! This page has improperly configured forms. Please contact your website administrator to fix this issue.")},100);function v(){s=e("html").attr("data-wf-site"),(o=e(u+" form")).length&&o.each(y)}function y(t,i){var n=e(i),a=e.data(i,u);a||(a=e.data(i,u,{form:n})),b(a);var o=n.closest("div.w-form");a.done=o.find("> .w-form-done"),a.fail=o.find("> .w-form-fail");var r=a.action=n.attr("action");a.handler=null,a.redirect=n.attr("data-redirect"),m.test(r)?a.handler=x:r||(s?a.handler=w:g())}function b(e){var t=e.btn=e.form.find(':input[type="submit"]');e.wait=e.btn.attr("data-wait")||null,e.success=!1,t.prop("disabled",!1),e.label&&t.val(e.label)}function _(e){var t=e.btn,i=e.wait;t.prop("disabled",!0),i&&(e.label=t.val(),t.val(i))}function C(t,i){var n=null;return i=i||{},t.find(':input:not([type="submit"])').each(function(a,o){var s=e(o),r=s.attr("type"),c=s.attr("data-name")||s.attr("name")||"Field "+(a+1),l=s.val();if("checkbox"===r&&(l=s.is(":checked")),"radio"===r){if(null===i[c]||"string"==typeof i[c])return;l=t.find('input[name="'+s.attr("name")+'"]:checked').val()||null}"string"==typeof l&&(l=e.trim(l)),i[c]=l,n=n||function(e,t,i,n){var a=null;"password"===t?a="Passwords cannot be submitted.":e.attr("required")&&(n?(p.test(i)||p.test(e.attr("type")))&&(f.test(n)||(a="Please enter a valid email address for: "+i)):a="Please fill out the required field: "+i);return a}(s,r,c,l)}),n}function w(t){b(t);var i=t.form,a={name:i.attr("data-name")||i.attr("name")||"Untitled Form",source:l.href,test:n.env(),fields:{},dolphin:/pass[\s-_]?(word|code)|secret|login|credentials/i.test(i.html())};S(t);var o=C(i,a.fields);if(o)return h(o);if(_(t),s){var r="https://webflow.com/api/v1/form/"+s;d&&r.indexOf("https://webflow.com")>=0&&(r=r.replace("https://webflow.com","http://formdata.webflow.com")),e.ajax({url:r,type:"POST",data:a,dataType:"json",crossDomain:!0}).done(function(){t.success=!0,I(t)}).fail(function(e,i,n){I(t)})}else I(t)}function x(i){b(i);var n=i.form,a={};if(!/^https/.test(l.href)||/^https/.test(i.action)){S(i);var o,s=C(n,a);if(s)return h(s);_(i),t.each(a,function(e,t){p.test(t)&&(a.EMAIL=e),/^((full[ _-]?)?name)$/i.test(t)&&(o=e),/^(first[ _-]?name)$/i.test(t)&&(a.FNAME=e),/^(last[ _-]?name)$/i.test(t)&&(a.LNAME=e)}),o&&!a.FNAME&&(o=o.split(" "),a.FNAME=o[0],a.LNAME=a.LNAME||o[1]);var r=i.action.replace("/post?","/post-json?")+"&c=?",c=r.indexOf("u=")+2;c=r.substring(c,r.indexOf("&",c));var d=r.indexOf("id=")+3;d=r.substring(d,r.indexOf("&",d)),a["b_"+c+"_"+d]="",e.ajax({url:r,data:a,dataType:"jsonp"}).done(function(e){i.success="success"===e.result||/already/.test(e.msg),i.success||console.info("MailChimp error: "+e.msg),I(i)}).fail(function(e,t,n){I(i)})}else n.attr("method","post")}function I(e){var t=e.form,i=(t.closest("div.w-form"),e.redirect),a=e.success;a&&i?n.location(i):(e.done.toggle(a),e.fail.toggle(!a),t.toggle(!a),b(e))}function S(e){e.evt&&e.evt.preventDefault(),e.evt=null}return a.ready=function(){v(),r||(r=!0,c.on("submit",u+" form",function(t){var i=e.data(this,u);i.handler&&(i.evt=t,i.handler(i))}))},a.preview=a.design=function(){v()},a})},function(e,t,i){"use strict";var n=i(1);n.define("gplus",e.exports=function(e,t){var i,a=e(document),o={};return o.ready=function(){n.env()||i||a.find(".w-widget-gplus").length&&(i=!0,e.getScript("https://apis.google.com/js/plusone.js"))},o})},function(e,t,i){"use strict";var n=i(1),a=i(2);n.define("ix",e.exports=function(e,t){var i,o,s={},r=e(window),c=".w-ix",l=e.tram,d=n.env,u=d(),p=d.chrome&&d.chrome<35,f="none 0s ease 0s",h=e(),m={},g=[],v=[],y=[],b=1,_={tabs:".w-tab-link, .w-tab-pane",dropdown:".w-dropdown",slider:".w-slide",navbar:".w-nav"};function C(e){e&&(m={},t.each(e,function(e){m[e.slug]=e.value}),w())}function w(){var t=e("[data-ix]");t.length&&(t.each(S),t.each(x),g.length&&(n.scroll.on(k),setTimeout(k,1)),v.length&&n.load(N),y.length&&setTimeout(D,b),a.init(),n.redraw.up())}function x(i,o){var r=e(o),l=r.attr("data-ix"),d=m[l];if(d){var p=d.triggers;p&&(s.style(r,d.style),t.each(p,function(e){var t={},i=e.type,o=e.stepsB&&e.stepsB.length;function s(){B(e,r,{group:"A"})}function l(){B(e,r,{group:"B"})}if("load"!==i){if("click"===i)return r.on("click"+c,function(i){n.validClick(i.currentTarget)&&("#"===r.attr("href")&&i.preventDefault(),B(e,r,{group:t.clicked?"B":"A"}),o&&(t.clicked=!t.clicked))}),void(h=h.add(r));if("hover"===i)return r.on("mouseenter"+c,s),r.on("mouseleave"+c,l),void(h=h.add(r));if("scroll"!==i){var d=_[i];if(d){var p=r.closest(d);return p.on(a.types.INTRO,s).on(a.types.OUTRO,l),void(h=h.add(p))}}else g.push({el:r,trigger:e,state:{active:!1},offsetTop:I(e.offsetTop),offsetBot:I(e.offsetBot)})}else e.preload&&!u?v.push(s):y.push(s)}))}}function I(e){if(!e)return 0;e=String(e);var t=parseInt(e,10);return t!=t?0:(e.indexOf("%")>0&&(t/=100)>=1&&(t=.999),t)}function S(t,i){e(i).off(c)}function k(){for(var e=r.scrollTop(),t=r.height(),i=g.length,n=0;n<i;n++){var a=g[n],o=a.el,s=a.trigger,c=s.stepsB&&s.stepsB.length,l=a.state,d=o.offset().top,u=o.outerHeight(),p=a.offsetTop,f=a.offsetBot;p<1&&p>0&&(p*=t),f<1&&f>0&&(f*=t);var h=d+u-p>=e&&d+f<=e+t;h!==l.active&&((!1!==h||c)&&(l.active=h,B(s,o,{group:h?"A":"B"})))}}function N(){for(var e=v.length,t=0;t<e;t++)v[t]()}function D(){for(var e=y.length,t=0;t<e;t++)y[t]()}function B(t,n,a,o){var s=(a=a||{}).done;if(!i||a.force){var r=a.group||"A",c=t["loop"+r],d=t["steps"+r];if(d&&d.length){if(d.length<2&&(c=!1),!o){var f=t.selector;f&&(n=t.descend?n.find(f):t.siblings?n.siblings(f):e(f),u&&n.attr("data-ix-affect",1)),p&&n.addClass("w-ix-emptyfix"),t.preserve3d&&n.css("transform-style","preserve-3d")}for(var h=l(n),m={},g=0;g<d.length;g++)T(h,d[g],m);m.start?h.then(v):v()}}function v(){if(c)return B(t,n,a,!0);"auto"===m.width&&h.set({width:"auto"}),"auto"===m.height&&h.set({height:"auto"}),s&&s()}}function T(e,t,i){var a="add",o="start";i.start&&(a=o="then");var s=t.transition;if(s){s=s.split(",");for(var r=0;r<s.length;r++){var c=s[r];e[a](c)}}var l=A(t)||{};if(null!=l.width&&(i.width=l.width),null!=l.height&&(i.height=l.height),null==s){i.start?e.then(function(){var t=this.queue;this.set(l),l.display&&(e.redraw(),n.redraw.up()),this.queue=t,this.next()}):(e.set(l),l.display&&(e.redraw(),n.redraw.up()));var d=l.wait;null!=d&&(e.wait(d),i.start=!0)}else{if(l.display){var u=l.display;delete l.display,i.start?e.then(function(){var e=this.queue;this.set({display:u}).redraw(),n.redraw.up(),this.queue=e,this.next()}):(e.set({display:u}).redraw(),n.redraw.up())}e[o](l),i.start=!0}}function A(e){var t={},i=!1;for(var n in e)"transition"!==n&&(t[n]=e[n],i=!0);return i?t:null}return s.init=function(e){setTimeout(function(){C(e)},1)},s.preview=function(){i=!1,b=100,setTimeout(function(){C(window.__wf_ix)},1)},s.design=function(){i=!0,s.destroy()},s.destroy=function(){o=!0,h.each(S),n.scroll.off(k),a.async(),g=[],v=[],y=[]},s.ready=function(){m&&o&&(o=!1,w())},s.run=B,s.style=u?function(e,t){var i=l(e);e.css("transition","");var n=e.css("transition");n===f&&(n=i.upstream=null);i.upstream=f,i.set(A(t)),i.upstream=n}:function(e,t){l(e).set(A(t))},s})},function(e,t,i){"use strict";var n=i(1);function a(e,t,i){var n,a,o,s=i.tram,r=Array.isArray,c=/(^|\s+)/g,l=[];function d(e,t){return l=r(e)?e:[e],a||d.build(),l.length>1&&(a.items=a.empty,l.forEach(function(e){var t=D("thumbnail"),i=D("item").append(t);a.items=a.items.add(i),C(e.thumbnailUrl||e.url,function(e){e.prop("width")>e.prop("height")?S(e,"wide"):S(e,"tall"),t.append(S(e,"thumbnail-image"))})}),a.strip.empty().append(a.items),S(a.content,"group")),s(k(a.lightbox,"hide").focus()).add("opacity .3s").start({opacity:1}),S(a.html,"noscroll"),d.show(t||0)}function u(e){return function(t){this===t.target&&(t.stopPropagation(),t.preventDefault(),e())}}d.build=function(){return d.destroy(),(a={html:i(t.documentElement),empty:i()}).arrowLeft=D("control left inactive"),a.arrowRight=D("control right inactive"),a.close=D("control close"),a.spinner=D("spinner"),a.strip=D("strip"),o=new w(a.spinner,x("hide")),a.content=D("content").append(a.spinner,a.arrowLeft,a.arrowRight,a.close),a.container=D("container").append(a.content,a.strip),a.lightbox=D("backdrop hide").append(a.container),a.strip.on("tap",I("item"),m),a.content.on("swipe",g).on("tap",I("left"),p).on("tap",I("right"),f).on("tap",I("close"),h).on("tap",I("image, caption"),f),a.container.on("tap",I("view, strip"),h).on("dragstart",I("img"),y),a.lightbox.on("keydown",b).on("focusin",v),i("body").append(a.lightbox.prop("tabIndex",0)),d},d.destroy=function(){a&&(k(a.html,"noscroll"),a.lightbox.remove(),a=void 0)},d.show=function(e){if(e!==n){var t=l[e];if(!t)return d.hide();var r,c,u=n;return n=e,o.show(),C(t.html&&(r=t.width,c=t.height,"data:image/svg+xml;charset=utf-8,"+encodeURI('<svg xmlns="http://www.w3.org/2000/svg" width="'+r+'" height="'+c+'"/>'))||t.url,function(r){if(e===n){var c,d,p=D("figure","figure").append(S(r,"image")),f=D("frame").append(p),h=D("view").append(f);t.html&&((d=(c=i(t.html)).is("iframe"))&&c.on("load",m),p.append(S(c,"embed"))),t.caption&&p.append(D("caption","figcaption").text(t.caption)),a.spinner.before(h),d||m()}function m(){var t;(o.hide(),e===n)?(N(a.arrowLeft,"inactive",e<=0),N(a.arrowRight,"inactive",e>=l.length-1),a.view?(s(a.view).add("opacity .3s").start({opacity:0}).then((t=a.view,function(){t.remove()})),s(h).add("opacity .3s").add("transform .3s").set({x:e>u?"80px":"-80px"}).start({opacity:1,x:0})):h.css("opacity",1),a.view=h,a.items&&S(k(a.items,"active").eq(e),"active")):h.remove()}}),d}},d.hide=function(){return s(a.lightbox).add("opacity .3s").start({opacity:0}).then(_),d},d.prev=function(){n>0&&d.show(n-1)},d.next=function(){n<l.length-1&&d.show(n+1)};var p=u(d.prev),f=u(d.next),h=u(d.hide),m=function(e){var t=i(this).index();e.preventDefault(),d.show(t)},g=function(e,t){e.preventDefault(),"left"===t.direction?d.next():"right"===t.direction&&d.prev()},v=function(){this.focus()};function y(e){e.preventDefault()}function b(e){var t=e.keyCode;27===t?d.hide():37===t?d.prev():39===t&&d.next()}function _(){a&&(k(a.html,"noscroll"),S(a.lightbox,"hide"),a.strip.empty(),a.view&&a.view.remove(),k(a.content,"group"),S(a.arrowLeft,"inactive"),S(a.arrowRight,"inactive"),n=a.view=void 0)}function C(e,t){var i=D("img","img");return i.one("load",function(){t(i)}),i.attr("src",e),i}function w(e,t,i){this.$element=e,this.className=t,this.delay=i||200,this.hide()}function x(e,t){return e.replace(c,(t?" .":" ")+"w-lightbox-")}function I(e){return x(e,!0)}function S(e,t){return e.addClass(x(t))}function k(e,t){return e.removeClass(x(t))}function N(e,t,i){return e.toggleClass(x(t),i)}function D(e,n){return S(i(t.createElement(n||"div")),e)}return w.prototype.show=function(){var e=this;e.timeoutId||(e.timeoutId=setTimeout(function(){e.$element.removeClass(e.className),delete e.timeoutId},e.delay))},w.prototype.hide=function(){var e=this;if(e.timeoutId)return clearTimeout(e.timeoutId),void delete e.timeoutId;e.$element.addClass(e.className)},function(){var i=e.navigator.userAgent,n=i.match(/(iPhone|iPad|iPod);[^OS]*OS (\d)/);if(i.indexOf("Android ")>-1&&-1===i.indexOf("Chrome")||n&&!(n[2]>7)){var a=t.createElement("style");t.head.appendChild(a),e.addEventListener("orientationchange",o,!0),o()}function o(){var t=e.innerHeight,i=e.innerWidth,n=".w-lightbox-content, .w-lightbox-view, .w-lightbox-view:before {height:"+t+"px}.w-lightbox-view {width:"+i+"px}.w-lightbox-group, .w-lightbox-group .w-lightbox-view, .w-lightbox-group .w-lightbox-view:before {height:"+.86*t+"px}.w-lightbox-image {max-width:"+i+"px;max-height:"+t+"px}.w-lightbox-group .w-lightbox-image {max-height:"+.86*t+"px}.w-lightbox-strip {padding: 0 "+.01*t+"px}.w-lightbox-item {width:"+.1*t+"px;padding:"+.02*t+"px "+.01*t+"px}.w-lightbox-thumbnail {height:"+.1*t+"px}@media (min-width: 768px) {.w-lightbox-content, .w-lightbox-view, .w-lightbox-view:before {height:"+.96*t+"px}.w-lightbox-content {margin-top:"+.02*t+"px}.w-lightbox-group, .w-lightbox-group .w-lightbox-view, .w-lightbox-group .w-lightbox-view:before {height:"+.84*t+"px}.w-lightbox-image {max-width:"+.96*i+"px;max-height:"+.96*t+"px}.w-lightbox-group .w-lightbox-image {max-width:"+.823*i+"px;max-height:"+.84*t+"px}}";a.textContent=n}}(),d}n.define("lightbox",e.exports=function(e,t){var i,o,s={},r=a(window,document,e),c=e(document),l=n.env(),d=".w-lightbox";function u(e){var t,i,n=e.el.children(".w-json").html();if(n){try{n=JSON.parse(n)}catch(e){console.error("Malformed lightbox JSON configuration.",e)}!function(e){e.images&&(e.images.forEach(function(e){e.type="image"}),e.items=e.images);e.embed&&(e.embed.type="video",e.items=[e.embed]);e.groupId&&(e.group=e.groupId)}(n),(t=n.group)?((i=o[t])||(i=o[t]=[]),e.items=i,n.items.length&&(e.index=i.length,i.push.apply(i,n.items))):e.items=n.items}else e.items=[]}return s.ready=s.design=s.preview=function(){i=l&&n.env("design"),e(document.body),r.destroy(),o={},c.find(d).webflowLightBox()},jQuery.fn.extend({webflowLightBox:function(){e.each(this,function(t,n){var a=e.data(n,d);a||(a=e.data(n,d,{el:e(n),mode:"images",images:[],embed:""})),a.el.off(d),u(a),i?a.el.on("setting"+d,u.bind(null,a)):a.el.on("tap"+d,function(e){return function(){e.items.length&&r(e.items,e.index||0)}}(a)).on("click"+d,function(e){e.preventDefault()})})}}),s})},function(e,t,i){"use strict";var n=i(1);n.define("links",e.exports=function(e,t){var i,a,o,s={},r=e(window),c=n.env(),l=window.location,d=document.createElement("a"),u="w--current",p=/^#[a-zA-Z][\w:.-]*$/,f=/index\.(html|php)$/,h=/\/$/;function m(t){var n=i&&t.getAttribute("href-disabled")||t.getAttribute("href");if(d.href=n,!(n.indexOf(":")>=0)){var s=e(t);if(0===n.indexOf("#")&&p.test(n)){var r=e(n);r.length&&a.push({link:s,sec:r,active:!1})}else if("#"!==n){var c=d.href===l.href||n===o||f.test(n)&&h.test(o);v(s,u,c)}}}function g(){var e=r.scrollTop(),n=r.height();t.each(a,function(t){var a=t.link,o=t.sec,s=o.offset().top,r=o.outerHeight(),c=.5*n,l=o.is(":visible")&&s+r-c>=e&&s+c<=e+n;t.active!==l&&(t.active=l,v(a,u,l),i&&(a[0].__wf_current=l))})}function v(e,t,i){var n=e.hasClass(t);i&&n||(i||n)&&(i?e.addClass(t):e.removeClass(t))}return s.ready=s.design=s.preview=function(){i=c&&n.env("design"),o=n.env("slug")||l.pathname||"",n.scroll.off(g),a=[];for(var e=document.links,t=0;t<e.length;++t)m(e[t]);a.length&&(n.scroll.on(g),g())},s})},function(e,t,i){"use strict";var n=i(1);n.define("maps",e.exports=function(e,t){var i,a={},o=e(document),s=null,r=".w-widget-map";function c(){i.length&&n.app&&i.each(n.app.redrawElement)}function l(){i.each(d)}function d(e,t){var i=p(t);s.maps.event.trigger(i.map,"resize"),i.setMapPosition()}a.ready=function(){},a.preview=function(){i=o.find(r),n.resize.off(c),i.length&&(n.resize.on(c),c())},a.design=function(e){i=o.find(r),n.resize.off(c),i.length&&t.defer(c)},a.destroy=function(){n.resize.off(l),n.redraw.off(l)};var u="w-widget-map";function p(t,i){var a=e.data(t,u);if(a)return a;var o=e(t);a=e.data(t,u,{latLng:"51.511214,-0.119824",tooltip:"",style:"roadmap",zoom:12,marker:new s.maps.Marker({draggable:!1}),infowindow:new s.maps.InfoWindow({disableAutoPan:!0})});var r=i.widgetLatlng||a.latLng;a.latLng=r;var c=r.split(","),l=new s.maps.LatLng(c[0],c[1]);a.latLngObj=l;var d=!n.env.touch||!i.disableTouch;a.map=new s.maps.Map(t,{center:a.latLngObj,zoom:a.zoom,maxZoom:18,mapTypeControl:!1,panControl:!1,streetViewControl:!1,scrollwheel:!i.disableScroll,draggable:d,zoomControl:!0,zoomControlOptions:{style:s.maps.ZoomControlStyle.SMALL},mapTypeId:a.style}),a.marker.setMap(a.map),a.setMapPosition=function(){a.map.setCenter(a.latLngObj);var e=0,t=0,i=o.css(["paddingTop","paddingRight","paddingBottom","paddingLeft"]);e-=parseInt(i.paddingLeft,10),e+=parseInt(i.paddingRight,10),t-=parseInt(i.paddingTop,10),t+=parseInt(i.paddingBottom,10),(e||t)&&a.map.panBy(e,t),o.css("position","")},s.maps.event.addListener(a.map,"tilesloaded",function(){s.maps.event.clearListeners(a.map,"tilesloaded"),a.setMapPosition()}),a.setMapPosition(),a.marker.setPosition(a.latLngObj),a.infowindow.setPosition(a.latLngObj);var p=i.widgetTooltip;p&&(a.tooltip=p,a.infowindow.setContent(p),a.infowindowOpen||(a.infowindow.open(a.map,a.marker),a.infowindowOpen=!0));var f=i.widgetStyle;f&&a.map.setMapTypeId(f);var h=i.widgetZoom;return null!=h&&(a.zoom=h,a.map.setZoom(+h)),s.maps.event.addListener(a.marker,"click",function(){window.open("https://maps.google.com/?z="+a.zoom+"&daddr="+a.latLng)}),a}return a})},function(e,t,i){"use strict";var n=i(1),a=i(2);n.define("navbar",e.exports=function(e,t){var i,o,s,r={},c=e.tram,l=e(window),d=e(document),u=n.env(),p='<div class="w-nav-overlay" data-wf-ignore />',f=".w-nav",h="w--open",m="w--nav-menu-open",g="w--nav-link-open",v=a.triggers,y=e();function b(){n.resize.off(_)}function _(){o.each(k)}function C(i,a){var o=e(a),r=e.data(a,f);r||(r=e.data(a,f,{open:!1,el:o,config:{}})),r.menu=o.find(".w-nav-menu"),r.links=r.menu.find(".w-nav-link"),r.dropdowns=r.menu.find(".w-dropdown"),r.button=o.find(".w-nav-button"),r.container=o.find(".w-container"),r.outside=function(i){i.outside&&d.off("tap"+f,i.outside);return t.debounce(function(t){if(i.open){var n=e(t.target).closest(".w-nav-menu");i.menu.is(n)||T(i)}})}(r),r.el.off(f),r.button.off(f),r.menu.off(f),I(r),s?(x(r),r.el.on("setting"+f,function(e){return function(i,n){n=n||{};var a=l.width();I(e),!0===n.open&&D(e,!0),!1===n.open&&T(e,!0),e.open&&t.defer(function(){a!==l.width()&&S(e)})}}(r))):(!function(t){if(t.overlay)return;t.overlay=e(p).appendTo(t.el),t.parent=t.menu.parent(),T(t,!0)}(r),r.button.on("tap"+f,function(e){return t.debounce(function(){e.open?T(e):D(e)})}(r)),r.menu.on("click"+f,"a",function(t){return function(i){var a=e(this).attr("href");n.validClick(i.currentTarget)?a&&0===a.indexOf("#")&&t.open&&T(t):i.preventDefault()}}(r))),k(i,a)}function w(t,i){var n=e.data(i,f);n&&(x(n),e.removeData(i,f))}function x(e){e.overlay&&(T(e,!0),e.overlay.remove(),e.overlay=null)}function I(e){var i={},n=e.config||{},a=i.animation=e.el.attr("data-animation")||"default";i.animOver=/^over/.test(a),i.animDirect=/left$/.test(a)?-1:1,n.animation!==a&&e.open&&t.defer(S,e),i.easing=e.el.attr("data-easing")||"ease",i.easing2=e.el.attr("data-easing2")||"ease";var o=e.el.attr("data-duration");i.duration=null!=o?Number(o):400,i.docHeight=e.el.attr("data-doc-height"),e.config=i}function S(e){e.open&&(T(e,!0),D(e,!0))}function k(t,i){var n=e.data(i,f),a=n.collapsed="none"!==n.button.css("display");if(!n.open||a||s||T(n,!0),n.container.length){var o=function(t){var i=t.container.css(N);"none"===i&&(i="");return function(t,n){(n=e(n)).css(N,""),"none"===n.css(N)&&n.css(N,i)}}(n);n.links.each(o),n.dropdowns.each(o)}n.open&&B(n)}r.ready=r.design=r.preview=function(){if(s=u&&n.env("design"),i=e(document.body),!(o=d.find(f)).length)return;o.each(C),b(),n.resize.on(_)},r.destroy=function(){y=e(),b(),o&&o.length&&o.each(w)};var N="max-width";function D(e,t){if(!e.open){e.open=!0,e.menu.addClass(m),e.links.addClass(g),e.button.addClass(h);var i=e.config;"none"!==i.animation&&c.support.transform||(t=!0);var a=B(e),o=e.menu.outerHeight(!0),r=e.menu.outerWidth(!0),l=e.el.height(),u=e.el[0];if(k(0,u),v.intro(0,u),n.redraw.up(),s||d.on("tap"+f,e.outside),!t){var p="transform "+i.duration+"ms "+i.easing;if(e.overlay&&(y=e.menu.prev(),e.overlay.show().append(e.menu)),i.animOver)return c(e.menu).add(p).set({x:i.animDirect*r,height:a}).start({x:0}),void(e.overlay&&e.overlay.width(r));var b=l+o;c(e.menu).add(p).set({y:-b}).start({y:0})}}}function B(e){var t=e.config,n=t.docHeight?d.height():i.height();return t.animOver?e.menu.height(n):"fixed"!==e.el.css("position")&&(n-=e.el.height()),e.overlay&&e.overlay.height(n),n}function T(e,t){if(e.open){e.open=!1,e.button.removeClass(h);var i=e.config;if(("none"===i.animation||!c.support.transform||i.duration<=0)&&(t=!0),v.outro(0,e.el[0]),d.off("tap"+f,e.outside),t)return c(e.menu).stop(),void l();var n="transform "+i.duration+"ms "+i.easing2,a=e.menu.outerHeight(!0),o=e.menu.outerWidth(!0),s=e.el.height();if(i.animOver)c(e.menu).add(n).start({x:o*i.animDirect}).then(l);else{var r=s+a;c(e.menu).add(n).start({y:-r}).then(l)}}function l(){e.menu.height(""),c(e.menu).set({x:0,y:0}),e.menu.removeClass(m),e.links.removeClass(g),e.overlay&&e.overlay.children().length&&(y.length?e.menu.insertAfter(y):e.menu.prependTo(e.parent),e.overlay.attr("style","").hide()),e.el.triggerHandler("w-close")}}return r})},function(e,t,i){"use strict";var n=i(1);n.define("scroll",e.exports=function(e,t){var i=e(document),a=window,o=a.location,s=function(){try{return!!a.frameElement}catch(e){return!0}}()?null:a.history,r=/^[a-zA-Z0-9][\w:.-]*$/;function c(t,i){if(r.test(t)){var c=e("#"+t);if(c.length){if(i&&(i.preventDefault(),i.stopPropagation()),o.hash!==t&&s&&s.pushState&&(!n.env.chrome||"file:"!==o.protocol))(s.state&&s.state.hash)!==t&&s.pushState({hash:t},"","#"+t);var l=n.env("editor")?".w-editor-body":"body",d=e("header, "+l+" > .header, "+l+" > .w-nav:not([data-no-scroll])"),u="fixed"===d.css("position")?d.outerHeight():0;a.setTimeout(function(){!function(t,i){var n=e(a).scrollTop(),o=t.offset().top-i;if("mid"===t.data("scroll")){var s=e(a).height()-i,r=t.outerHeight();r<s&&(o-=Math.round((s-r)/2))}var c=1;e("body").add(t).each(function(t){var i=parseFloat(e(this).attr("data-scroll-time"),10);!isNaN(i)&&(0===i||i>0)&&(c=i)}),Date.now||(Date.now=function(){return(new Date).getTime()});var l=Date.now(),d=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||function(e){a.setTimeout(e,15)},u=(472.143*Math.log(Math.abs(n-o)+125)-2e3)*c,p=function(){var e=Date.now()-l;a.scroll(0,function(e,t,i,n){if(i>n)return t;return e+(t-e)*(a=i/n,a<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a}(n,o,e,u)),e<=u&&d(p)};p()}(c,u)},i?0:300)}}}return{ready:function(){o.hash&&c(o.hash.substring(1));var t=o.href.split("#")[0];i.on("click","a",function(i){if(!(n.env("design")||window.$.mobile&&e(i.currentTarget).hasClass("ui-link")))if("#"!==this.getAttribute("href")){var a=this.href.split("#"),o=a[0]===t?a[1]:null;o&&c(o,i)}else i.preventDefault()})}}})},function(e,t,i){"use strict";var n=i(1),a=i(2);n.define("slider",e.exports=function(e,t){var i,o,s,r,c={},l=e.tram,d=e(document),u=n.env(),p=".w-slider",f='<div class="w-slider-dot" data-wf-ignore />',h=a.triggers;function m(){(i=d.find(p)).length&&(i.filter(":visible").each(y),r=null,s||(g(),n.resize.on(v),n.redraw.on(c.redraw)))}function g(){n.resize.off(v),n.redraw.off(c.redraw)}function v(){i.filter(":visible").each(k)}function y(t,i){var n=e(i),a=e.data(i,p);if(a||(a=e.data(i,p,{index:0,depth:1,el:n,config:{}})),a.mask=n.children(".w-slider-mask"),a.left=n.children(".w-slider-arrow-left"),a.right=n.children(".w-slider-arrow-right"),a.nav=n.children(".w-slider-nav"),a.slides=a.mask.children(".w-slide"),a.slides.each(h.reset),r&&(a.maskWidth=0),!l.support.transform)return a.left.hide(),a.right.hide(),a.nav.hide(),void(s=!0);a.el.off(p),a.left.off(p),a.right.off(p),a.nav.off(p),b(a),o?(a.el.on("setting"+p,I(a)),x(a),a.hasTimer=!1):(a.el.on("swipe"+p,I(a)),a.left.on("tap"+p,_(a)),a.right.on("tap"+p,C(a)),a.config.autoplay&&!a.hasTimer&&(a.hasTimer=!0,a.timerCount=1,w(a))),a.nav.on("tap"+p,"> div",I(a)),u||a.mask.contents().filter(function(){return 3===this.nodeType}).remove(),k(t,i)}function b(e){var t={crossOver:0};t.animation=e.el.attr("data-animation")||"slide","outin"===t.animation&&(t.animation="cross",t.crossOver=.5),t.easing=e.el.attr("data-easing")||"ease";var i=e.el.attr("data-duration");if(t.duration=null!=i?+i:500,+e.el.attr("data-infinite")&&(t.infinite=!0),+e.el.attr("data-disable-swipe")&&(t.disableSwipe=!0),+e.el.attr("data-hide-arrows")?t.hideArrows=!0:e.config.hideArrows&&(e.left.show(),e.right.show()),+e.el.attr("data-autoplay")){t.autoplay=!0,t.delay=+e.el.attr("data-delay")||2e3,t.timerMax=+e.el.attr("data-autoplay-limit");var n="mousedown"+p+" touchstart"+p;o||e.el.off(n).one(n,function(){x(e)})}var a=e.right.width();t.edge=a?a+40:100,e.config=t}function _(e){return function(t){S(e,{index:e.index-1,vector:-1})}}function C(e){return function(t){S(e,{index:e.index+1,vector:1})}}function w(e){x(e);var t=e.config,i=t.timerMax;i&&e.timerCount++>i||(e.timerId=window.setTimeout(function(){null==e.timerId||o||(C(e)(),w(e))},t.delay))}function x(e){window.clearTimeout(e.timerId),e.timerId=null}function I(i){return function(a,s){s=s||{};var r=i.config;if(o&&"setting"===a.type){if("prev"===s.select)return _(i)();if("next"===s.select)return C(i)();if(b(i),N(i),null==s.select)return;!function(i,n){var a=null;n===i.slides.length&&(m(),N(i)),t.each(i.anchors,function(t,i){e(t.els).each(function(t,o){e(o).index()===n&&(a=i)})}),null!=a&&S(i,{index:a,immediate:!0})}(i,s.select)}else{if("swipe"===a.type){if(r.disableSwipe)return;if(n.env("editor"))return;return"left"===s.direction?C(i)():"right"===s.direction?_(i)():void 0}i.nav.has(a.target).length&&S(i,{index:e(a.target).index()})}}}function S(t,i){i=i||{};var n=t.config,a=t.anchors;t.previous=t.index;var s=i.index,c={};s<0?(s=a.length-1,n.infinite&&(c.x=-t.endX,c.from=0,c.to=a[0].width)):s>=a.length&&(s=0,n.infinite&&(c.x=a[a.length-1].width,c.from=-a[a.length-1].x,c.to=c.from-c.x)),t.index=s;var d=t.nav.children().eq(t.index).addClass("w-active");t.nav.children().not(d).removeClass("w-active"),n.hideArrows&&(t.index===a.length-1?t.right.hide():t.right.show(),0===t.index?t.left.hide():t.left.show());var u=t.offsetX||0,p=t.offsetX=-a[t.index].x,f={x:p,opacity:1,visibility:""},m=e(a[t.index].els),g=e(a[t.previous]&&a[t.previous].els),v=t.slides.not(m),y=n.animation,b=n.easing,_=Math.round(n.duration),C=i.vector||(t.index>t.previous?1:-1),w="opacity "+_+"ms "+b,x="transform "+_+"ms "+b;if(o||(m.each(h.intro),v.each(h.outro)),i.immediate&&!r)return l(m).set(f),void k();if(t.index!==t.previous){if("cross"===y){var I=Math.round(_-_*n.crossOver),S=Math.round(_-I);return w="opacity "+I+"ms "+b,l(g).set({visibility:""}).add(w).start({opacity:0}),void l(m).set({visibility:"",x:p,opacity:0,zIndex:t.depth++}).add(w).wait(S).then({opacity:1}).then(k)}if("fade"===y)return l(g).set({visibility:""}).stop(),void l(m).set({visibility:"",x:p,opacity:0,zIndex:t.depth++}).add(w).start({opacity:1}).then(k);if("over"===y)return f={x:t.endX},l(g).set({visibility:""}).stop(),void l(m).set({visibility:"",zIndex:t.depth++,x:p+a[t.index].width*C}).add(x).start({x:p}).then(k);n.infinite&&c.x?(l(t.slides.not(g)).set({visibility:"",x:c.x}).add(x).start({x:p}),l(g).set({visibility:"",x:c.from}).add(x).start({x:c.to}),t.shifted=g):(n.infinite&&t.shifted&&(l(t.shifted).set({visibility:"",x:u}),t.shifted=null),l(t.slides).set({visibility:""}).add(x).start({x:p}))}function k(){m=e(a[t.index].els),v=t.slides.not(m),"slide"!==y&&(f.visibility="hidden"),l(v).set(f)}}function k(t,i){var n=e.data(i,p);if(function(e){var t=e.mask.width();if(e.maskWidth!==t)return e.maskWidth=t,!0;return!1}(n))return N(n);o&&function(t){var i=0;if(t.slides.each(function(t,n){i+=e(n).outerWidth(!0)}),t.slidesWidth!==i)return t.slidesWidth=i,!0;return!1}(n)&&N(n)}function N(t){var i=1,n=0,a=0,s=0,r=t.maskWidth,c=r-t.config.edge;c<0&&(c=0),t.anchors=[{els:[],x:0,width:0}],t.slides.each(function(o,l){a-n>c&&(i++,n+=r,t.anchors[i-1]={els:[],x:a,width:0}),s=e(l).outerWidth(!0),a+=s,t.anchors[i-1].width+=s,t.anchors[i-1].els.push(l)}),t.endX=a,o&&(t.pages=null),t.nav.length&&t.pages!==i&&(t.pages=i,function(t){var i,n=[],a=t.el.attr("data-nav-spacing");a&&(a=parseFloat(a)+"px");for(var o=0;o<t.pages;o++)i=e(f),t.nav.hasClass("w-num")&&i.text(o+1),null!=a&&i.css({"margin-left":a,"margin-right":a}),n.push(i);t.nav.empty().append(n)}(t));var l=t.index;l>=i&&(l=i-1),S(t,{immediate:!0,index:l})}return c.ready=function(){m()},c.design=function(){o=!0,m()},c.preview=function(){o=!1,m()},c.redraw=function(){r=!0,m()},c.destroy=g,c})},function(e,t,i){"use strict";var n=i(1),a=i(2);n.define("tabs",e.exports=function(e,t){var i,o,s,r={},c=e.tram,l=(e(window),e(document)),d=n.env,u=d.safari,p=d(),f="data-w-tab",h=".w-tabs",m="w--current",g="w--tab-active",v=a.triggers;function y(){o=p&&n.env("design"),(i=l.find(h)).length&&(i.each(C),n.env("preview")&&i.each(_),s=null,b(),n.redraw.on(r.redraw))}function b(){n.redraw.off(r.redraw)}function _(t,i){e(i);var n=e.data(i,h);n&&(n.links&&n.links.each(v.reset),n.panes&&n.panes.each(v.reset))}function C(t,i){var n=e(i),a=e.data(i,h);if(a||(a=e.data(i,h,{el:n,config:{}})),a.current=null,a.menu=n.children(".w-tab-menu"),a.links=a.menu.children(".w-tab-link"),a.content=n.children(".w-tab-content"),a.panes=a.content.children(".w-tab-pane"),a.el.off(h),a.links.off(h),function(e){var t={};e.config;t.easing=e.el.attr("data-easing")||"ease";var i=+e.el.attr("data-duration-in");i=t.intro=i==i?i:0;var n=+e.el.attr("data-duration-out");n=t.outro=n==n?n:0,t.immediate=!i&&!n,e.config=t}(a),!o){a.links.on("click"+h,function(e){return function(t){var i=t.currentTarget.getAttribute(f);i&&w(e,{tab:i})}}(a));var s=a.links.filter("."+m).attr(f);s&&w(a,{tab:s,immediate:!0})}}function w(t,i){i=i||{};var a=t.config,o=a.easing,r=i.tab;if(r!==t.current){t.current=r,t.links.each(function(t,i){var n=e(i);i.getAttribute(f)===r?n.addClass(m).each(v.intro):n.hasClass(m)&&n.removeClass(m).each(v.outro)});var l=[],d=[];t.panes.each(function(t,i){var n=e(i);i.getAttribute(f)===r?l.push(i):n.hasClass(g)&&d.push(i)});var p=e(l),h=e(d);if(i.immediate||a.immediate)return p.addClass(g).each(v.intro),h.removeClass(g),void(s||n.redraw.up());h.length&&a.outro?(h.each(v.outro),c(h).add("opacity "+a.outro+"ms "+o,{fallback:u}).start({opacity:0}).then(y)):y()}function y(){if(h.removeClass(g).css({opacity:"",transition:"",transform:"",width:"",height:""}),p.addClass(g).each(v.intro),n.redraw.up(),!a.intro)return c(p).set({opacity:1});c(p).set({opacity:0}).redraw().add("opacity "+a.intro+"ms "+o,{fallback:u}).start({opacity:1})}}return r.ready=r.design=r.preview=y,r.redraw=function(){s=!0,y()},r.destroy=function(){(i=l.find(h)).length&&(i.each(_),b())},r})},function(e,t,i){"use strict";i(1).define("touch",e.exports=function(e,t){var i={},n=!document.addEventListener,a=window.getSelection;function o(e){var t,i,n,o=!1,r=!1,c=!1,l=Math.min(Math.round(.04*window.innerWidth),40);function d(e){var a=e.touches;a&&a.length>1||(o=!0,r=!1,a?(c=!0,t=a[0].clientX,i=a[0].clientY):(t=e.clientX,i=e.clientY),n=t)}function u(e){if(o){if(c&&"mousemove"===e.type)return e.preventDefault(),void e.stopPropagation();var d=e.touches,u=d?d[0].clientX:e.clientX,p=d?d[0].clientY:e.clientY,h=u-n;n=u,Math.abs(h)>l&&a&&a()+""==""&&(s("swipe",e,{direction:h>0?"right":"left"}),f()),(Math.abs(u-t)>10||Math.abs(p-i)>10)&&(r=!0)}}function p(e){if(o){if(o=!1,c&&"mouseup"===e.type)return e.preventDefault(),e.stopPropagation(),void(c=!1);r||s("tap",e)}}function f(e){o=!1}e.addEventListener("touchstart",d,!1),e.addEventListener("touchmove",u,!1),e.addEventListener("touchend",p,!1),e.addEventListener("touchcancel",f,!1),e.addEventListener("mousedown",d,!1),e.addEventListener("mousemove",u,!1),e.addEventListener("mouseup",p,!1),e.addEventListener("mouseout",f,!1),this.destroy=function(){e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",u,!1),e.removeEventListener("touchend",p,!1),e.removeEventListener("touchcancel",f,!1),e.removeEventListener("mousedown",d,!1),e.removeEventListener("mousemove",u,!1),e.removeEventListener("mouseup",p,!1),e.removeEventListener("mouseout",f,!1),e=null}}function s(t,i,n){var a=e.Event(t,{originalEvent:i});e(i.target).trigger(a,n)}return n&&(e.event.special.tap={bindType:"click",delegateType:"click"}),i.init=function(t){return n?null:(t="string"==typeof t?e(t).get(0):t)?new o(t):null},i.instance=i.init(document),i})},function(e,t,i){"use strict";var n=window.$,a=i(3)&&n.tram;
/*!
	 * Webflow._ (aka) Underscore.js 1.6.0 (custom build)
	 * _.each
	 * _.map
	 * _.find
	 * _.filter
	 * _.any
	 * _.contains
	 * _.delay
	 * _.defer
	 * _.throttle (webflow)
	 * _.debounce
	 * _.keys
	 * _.has
	 * _.now
	 *
	 * http://underscorejs.org
	 * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
	 * Underscore may be freely distributed under the MIT license.
	 * @license MIT
	 */
e.exports=function(){var e={VERSION:"1.6.0-Webflow"},t={},i=Array.prototype,n=Object.prototype,o=Function.prototype,s=(i.push,i.slice),r=(i.concat,n.toString,n.hasOwnProperty),c=i.forEach,l=i.map,d=(i.reduce,i.reduceRight,i.filter),u=(i.every,i.some),p=i.indexOf,f=(i.lastIndexOf,Array.isArray,Object.keys),h=(o.bind,e.each=e.forEach=function(i,n,a){if(null==i)return i;if(c&&i.forEach===c)i.forEach(n,a);else if(i.length===+i.length){for(var o=0,s=i.length;o<s;o++)if(n.call(a,i[o],o,i)===t)return}else{var r=e.keys(i);for(o=0,s=r.length;o<s;o++)if(n.call(a,i[r[o]],r[o],i)===t)return}return i});e.map=e.collect=function(e,t,i){var n=[];return null==e?n:l&&e.map===l?e.map(t,i):(h(e,function(e,a,o){n.push(t.call(i,e,a,o))}),n)},e.find=e.detect=function(e,t,i){var n;return m(e,function(e,a,o){if(t.call(i,e,a,o))return n=e,!0}),n},e.filter=e.select=function(e,t,i){var n=[];return null==e?n:d&&e.filter===d?e.filter(t,i):(h(e,function(e,a,o){t.call(i,e,a,o)&&n.push(e)}),n)};var m=e.some=e.any=function(i,n,a){n||(n=e.identity);var o=!1;return null==i?o:u&&i.some===u?i.some(n,a):(h(i,function(e,i,s){if(o||(o=n.call(a,e,i,s)))return t}),!!o)};e.contains=e.include=function(e,t){return null!=e&&(p&&e.indexOf===p?-1!=e.indexOf(t):m(e,function(e){return e===t}))},e.delay=function(e,t){var i=s.call(arguments,2);return setTimeout(function(){return e.apply(null,i)},t)},e.defer=function(t){return e.delay.apply(e,[t,1].concat(s.call(arguments,1)))},e.throttle=function(e){var t,i,n;return function(){t||(t=!0,i=arguments,n=this,a.frame(function(){t=!1,e.apply(n,i)}))}},e.debounce=function(t,i,n){var a,o,s,r,c,l=function(){var d=e.now()-r;d<i?a=setTimeout(l,i-d):(a=null,n||(c=t.apply(s,o),s=o=null))};return function(){s=this,o=arguments,r=e.now();var d=n&&!a;return a||(a=setTimeout(l,i)),d&&(c=t.apply(s,o),s=o=null),c}},e.defaults=function(t){if(!e.isObject(t))return t;for(var i=1,n=arguments.length;i<n;i++){var a=arguments[i];for(var o in a)void 0===t[o]&&(t[o]=a[o])}return t},e.keys=function(t){if(!e.isObject(t))return[];if(f)return f(t);var i=[];for(var n in t)e.has(t,n)&&i.push(n);return i},e.has=function(e,t){return r.call(e,t)},e.isObject=function(e){return e===Object(e)},e.now=Date.now||function(){return(new Date).getTime()},e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,v={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},y=/\\|'|\r|\n|\u2028|\u2029/g,b=function(e){return"\\"+v[e]};return e.template=function(t,i,n){!i&&n&&(i=n),i=e.defaults({},i,e.templateSettings);var a=RegExp([(i.escape||g).source,(i.interpolate||g).source,(i.evaluate||g).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(a,function(e,i,n,a,r){return s+=t.slice(o,r).replace(y,b),o=r+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(s+="';\n"+a+"\n__p+='"),e}),s+="';\n",i.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var r=new Function(i.variable||"obj","_",s)}catch(e){throw e.source=s,e}var c=function(t){return r.call(this,t,e)},l=i.variable||"obj";return c.source="function("+l+"){\n"+s+"}",c},e}()},function(e,t){
/*!
	 * jQuery-ajaxTransport-XDomainRequest - v1.0.3
	 * 2014-12-16 WEBFLOW - Removed UMD wrapper
	 * https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest
	 * Copyright (c) 2014 Jason Moon (@JSONMOON)
	 * @license MIT (/blob/master/LICENSE.txt)
	 */
e.exports=function(e){if(!e.support.cors&&e.ajaxTransport&&window.XDomainRequest){var t=/^https?:\/\//i,i=/^get|post$/i,n=new RegExp("^"+location.protocol,"i");e.ajaxTransport("* text html xml json",function(a,o,s){if(a.crossDomain&&a.async&&i.test(a.type)&&t.test(a.url)&&n.test(a.url)){var r=null;return{send:function(t,i){var n="",s=(o.dataType||"").toLowerCase();r=new XDomainRequest,/^\d+$/.test(o.timeout)&&(r.timeout=o.timeout),r.ontimeout=function(){i(500,"timeout")},r.onload=function(){var t="Content-Length: "+r.responseText.length+"\r\nContent-Type: "+r.contentType,n={code:200,message:"success"},a={text:r.responseText};try{if("html"===s||/text\/html/i.test(r.contentType))a.html=r.responseText;else if("json"===s||"text"!==s&&/\/json/i.test(r.contentType))try{a.json=e.parseJSON(r.responseText)}catch(e){n.code=500,n.message="parseerror"}else if("xml"===s||"text"!==s&&/\/xml/i.test(r.contentType)){var o=new ActiveXObject("Microsoft.XMLDOM");o.async=!1;try{o.loadXML(r.responseText)}catch(e){o=void 0}if(!o||!o.documentElement||o.getElementsByTagName("parsererror").length)throw n.code=500,n.message="parseerror","Invalid XML: "+r.responseText;a.xml=o}}catch(e){throw e}finally{i(n.code,n.message,a,t)}},r.onprogress=function(){},r.onerror=function(){i(500,"error",{text:r.responseText})},o.data&&(n="string"===e.type(o.data)?o.data:e.param(o.data)),r.open(a.type,a.url),r.send(n)},abort:function(){r&&r.abort()}}}})}}(window.jQuery)}]),Webflow.require("ix").init([{slug:"notification-panel-slide-enterexit",name:"Notification Panel Slide Enter/Exit",value:{style:{},triggers:[{type:"click",selector:".notification-div",stepsA:[{transition:"transform 500ms ease 0ms",x:"0px",y:"0px",z:"0px"}],stepsB:[{transition:"transform 500ms ease 0ms",x:"475px",y:"0px",z:"0px"}]}]}},{slug:"notification-panel-close-x",name:"Notification Panel Close (X)",value:{style:{},triggers:[{type:"click",selector:".notification-div",stepsA:[{transition:"transform 500ms ease 0ms",x:"475px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"view-pending-appointments",name:"View Pending Appointments",value:{style:{},triggers:[{type:"click",selector:".pending-appointments-div",stepsA:[{display:"block",wait:500,transition:"transform 500ms ease 0ms",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"pending-appointments-remove",name:"Pending Appointments Remove",value:{style:{},triggers:[{type:"click",selector:".pending-appointments-div",stepsA:[{display:"none",wait:500,transition:"transform 500ms ease 0ms",x:"475px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"accept-appointment",name:"Accept Appointment",value:{style:{},triggers:[{type:"click",selector:".accept-div",stepsA:[{display:"block",opacity:1,transition:"opacity 500ms ease 0ms"},{wait:500},{display:"block",opacity:0,transition:"opacity 500ms ease 0ms"}],stepsB:[]}]}},{slug:"progress-hover",name:"Progress Hover",value:{style:{},triggers:[{type:"hover",selector:".completion-hover-div",stepsA:[{display:"none"},{display:"block",opacity:1,transition:"opacity 500ms ease 0ms"}],stepsB:[{display:"block",opacity:0,transition:"opacity 500ms ease 0ms"},{display:"none"}]}]}},{slug:"hover-editdelete",name:"Hover Edit/Delete",value:{style:{},triggers:[{type:"hover",selector:".hover-editdelete",descend:!0,stepsA:[{display:"inline-block",opacity:0},{display:"inline-block",opacity:1,transition:"opacity 250ms ease 0ms"}],stepsB:[{display:"inline-block",opacity:0,transition:"opacity 250ms ease 0ms"},{display:"none"}]}]}},{slug:"delete-hover-employee-profile",name:"Delete Hover Employee Profile",value:{style:{},triggers:[{type:"hover",selector:".delete-link-block",descend:!0,stepsA:[{display:"flex"}],stepsB:[{display:"none"}]}]}},{slug:"reassign-hover-employee-profile",name:"Reassign Hover Employee Profile",value:{style:{},triggers:[{type:"hover",selector:".reassign-link-block",descend:!0,stepsA:[{display:"flex"}],stepsB:[{display:"none"}]}]}},{slug:"hover-show-appt-status-color",name:"Hover Show Appt. Status Color",value:{style:{},triggers:[{type:"hover",selector:".appointment-colors-div",stepsA:[{display:"block",opacity:0,transition:"opacity 500ms ease 0ms"},{display:"block",opacity:1,transition:"opacity 500ms ease 0ms"}],stepsB:[{display:"block",opacity:0,transition:"opacity 500ms ease 0ms"},{display:"none"}]}]}},{slug:"small-calendar-appear-on-click",name:"Small Calendar Appear on Click",value:{style:{},triggers:[{type:"click",selector:".calendar-div-popup",stepsA:[{display:"block",opacity:0},{display:"block",opacity:1,transition:"opacity 500ms ease 0ms"}],stepsB:[{display:"block",opacity:0,transition:"opacity 500ms ease 0ms"},{display:"none",opacity:0,transition:"opacity 500ms ease 0ms"}]}]}},{slug:"deny-appointment",name:"Deny Appointment",value:{style:{},triggers:[{type:"click",selector:".deny-div",stepsA:[{display:"block",opacity:1,transition:"opacity 500ms ease 0ms"},{wait:500},{display:"block",opacity:0,transition:"opacity 500ms ease 0ms"}],stepsB:[]}]}},{slug:"accept-animation",name:"Accept Animation",value:{style:{},triggers:[{type:"click",selector:".accepted-checkmark",stepsA:[{transition:"transform 300ms ease 0ms",scaleX:1.26,scaleY:1.26,scaleZ:1},{transition:"transform 200ms ease 0ms",scaleX:.9,scaleY:.9,scaleZ:1},{transition:"transform 100ms ease-in 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]}]}},{slug:"accept-animation-alt-1",name:"Accept Animation Alt 1",value:{style:{},triggers:[{type:"click",selector:".check-mark",stepsA:[{transition:"transform 300ms ease 0ms",scaleX:1.26,scaleY:1.26,scaleZ:1},{transition:"transform 200ms ease 0ms",scaleX:.9,scaleY:.9,scaleZ:1},{transition:"transform 100ms ease-in 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]}]}},{slug:"deny-animation",name:"Deny Animation",value:{style:{},triggers:[{type:"click",selector:".red-circle",descend:!0,stepsA:[{transition:"transform 300ms ease 0ms",scaleX:1.26,scaleY:1.26,scaleZ:1},{transition:"transform 200ms ease 0ms",scaleX:.9,scaleY:.9,scaleZ:1},{transition:"transform 100ms ease-in 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]}]}},{slug:"deny-animation-2",name:"Deny Animation 2",value:{style:{},triggers:[{type:"click",selector:".x-mark",descend:!0,stepsA:[{transition:"transform 300ms ease 0ms",scaleX:1.26,scaleY:1.26,scaleZ:1},{transition:"transform 200ms ease 0ms",scaleX:.9,scaleY:.9,scaleZ:1},{transition:"transform 100ms ease-in 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]}]}},{slug:"dot-1-go",name:"Dot 1 Go",value:{style:{},triggers:[{type:"load",loopA:!0,stepsA:[{transition:"transform 250ms ease 0ms",x:"0px",y:"-5px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"5px",z:"0px"}],stepsB:[]}]}},{slug:"dot-2-go",name:"Dot 2 Go",value:{style:{},triggers:[{type:"load",loopA:!0,stepsA:[{transition:"transform 250ms ease 0ms",x:"0px",y:"5px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"-5px",z:"0px"}],stepsB:[]}]}},{slug:"dot-1-grow",name:"Dot 1 Grow",value:{style:{},triggers:[{type:"load",stepsA:[{wait:250},{transition:"transform 250ms ease 0ms",scaleX:1.5,scaleY:1.5,scaleZ:1},{transition:"transform 250ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1},{wait:250}],stepsB:[]}]}},{slug:"dot-2-grow",name:"Dot 2 Grow",value:{style:{},triggers:[{type:"load",stepsA:[{wait:500},{transition:"transform 250ms ease 0ms",scaleX:1.5,scaleY:1.5,scaleZ:1},{transition:"transform 250ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1},{wait:500}],stepsB:[]}]}},{slug:"dot-3-grow",name:"Dot 3 Grow",value:{style:{},triggers:[{type:"load",stepsA:[{wait:750},{transition:"transform 250ms ease 0ms",scaleX:1.5,scaleY:1.5,scaleZ:1},{transition:"transform 250ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1},{wait:750}],stepsB:[]}]}},{slug:"dot-1-circle",name:"Dot 1 Circle",value:{style:{},triggers:[{type:"load",loopA:!0,stepsA:[{transition:"transform 1000ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"-360deg"},{transition:"transform 1000ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"360deg"}],stepsB:[]}]}},{slug:"face-bounce",name:"Face Bounce",value:{style:{},triggers:[{type:"hover",selector:".face",loopA:!0,stepsA:[{transition:"transform 250ms ease 0ms",x:"0px",y:"-6px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"0px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"-6px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"0px",z:"0px"},{transition:"transform 500ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"-10deg"},{transition:"transform 250ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"10deg"},{transition:"transform 250ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg"},{wait:2e3}],stepsB:[]}]}},{slug:"new-interaction",name:"New Interaction",value:{style:{},triggers:[{type:"load",selector:".face",loopA:!0,stepsA:[{transition:"transform 250ms ease 0ms",x:"0px",y:"-8px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"0px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"-4px",z:"0px"},{transition:"transform 250ms ease 0ms",x:"0px",y:"0px",z:"0px"},{transition:"transform 250ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"15deg"},{transition:"transform 250ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"-15deg"},{transition:"transform 250ms ease 0ms",rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg"},{wait:2e3}],stepsB:[]}]}},{slug:"profile-status-div-slide",name:"Profile Status Div Slide",value:{style:{},triggers:[{type:"click",selector:".profile-status-div",stepsA:[{transition:"transform 500ms ease 0ms",x:"-475px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"progress-div-slide-back",name:"Progress Div Slide Back",value:{style:{},triggers:[{type:"click",selector:".profile-status-div",stepsA:[{transition:"transform 500ms ease 0ms",x:"475px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"not-now-dissappear",name:"Not Now Dissappear",value:{style:{},triggers:[{type:"click",selector:".profile-comp-div-dissapear",stepsA:[{opacity:0,transition:"opacity 500ms ease 0ms"},{display:"none"}],stepsB:[]}]}},{slug:"hover-grow",name:"Hover Grow",value:{style:{},triggers:[{type:"hover",selector:".phone-image",stepsA:[{transition:"transform 500ms ease 0ms",scaleX:1.1,scaleY:1.1,scaleZ:1}],stepsB:[{transition:"transform 500ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1}]}]}},{slug:"hover-grow-2",name:"Hover Grow 2",value:{style:{},triggers:[{type:"hover",selector:".computer-image",stepsA:[{transition:"transform 500ms ease 0ms",scaleX:1.1,scaleY:1.1,scaleZ:1}],stepsB:[{transition:"transform 500ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1}]}]}},{slug:"you-got-this",name:"You Got This!",value:{style:{},triggers:[{type:"click",selector:".encouragement",preserve3d:!0,stepsA:[{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",scaleX:1.2,scaleY:1.2,scaleZ:1},{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",scaleX:1.2,scaleY:1.2,scaleZ:1},{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1}]}]}},{slug:"show-access-level-below",name:"Show Access Level Below",value:{style:{},triggers:[{type:"click",selector:".access-level-appear",stepsA:[{display:"block",opacity:0},{opacity:1,transition:"opacity 500ms ease 0ms"}],stepsB:[]}]}},{slug:"business-address-div-show",name:"Business Address Div Show",value:{style:{},triggers:[{type:"click",selector:".business-address-div",stepsA:[{display:"inline-block"}],stepsB:[{display:"none"}]}]}},{slug:"address-div-show",name:"Address Div Show",value:{style:{},triggers:[{type:"click",selector:".address-div",stepsA:[{display:"block"}],stepsB:[{display:"none"}]}]}},{slug:"click-to-continue",name:"Click to continue",value:{style:{},triggers:[{type:"click",selector:".save-changes-btn",stepsA:[{opacity:1,transition:"opacity 500ms ease 0ms"}],stepsB:[{opacity:.5,transition:"opacity 500ms ease 0ms"}]}]}},{slug:"check-mark",name:"Check Mark",value:{style:{},triggers:[{type:"click",selector:".inner-check",descend:!0,stepsA:[{display:"flex"}],stepsB:[{display:"none"}]}]}},{slug:"check-load",name:"Check Load",value:{style:{},triggers:[{type:"load",preload:!0,stepsA:[{wait:3200},{opacity:1,transition:"opacity 100ms linear 0ms"},{transition:"transform 400ms ease 0ms",scaleX:1.3,scaleY:1.3,scaleZ:1},{transition:"transform 300ms linear 0ms",scaleX:.9,scaleY:.9,scaleZ:1},{transition:"transform 300ms linear 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]}]}},{slug:"appear-load-1",name:"Appear Load 1",value:{style:{opacity:0,x:"100px",y:"0px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:1e3},{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"appear-load-2",name:"Appear Load 2",value:{style:{opacity:0,x:"-100px",y:"0px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:1300},{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"appear-load-3",name:"Appear Load 3",value:{style:{opacity:0,x:"100px",y:"0px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:1600},{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"appear-sign-up",name:"Appear Sign Up",value:{style:{opacity:0},triggers:[{type:"load",stepsA:[{wait:3e3},{opacity:1,transition:"opacity 100ms linear 0ms"}],stepsB:[]}]}},{slug:"activating-dissappear",name:"Activating Dissappear",value:{style:{},triggers:[{type:"load",stepsA:[{wait:3e3},{display:"none",opacity:0,transition:"opacity 350ms ease 0ms"}],stepsB:[]}]}},{slug:"load-grow",name:"Load Grow",value:{style:{},triggers:[{type:"load",loopA:!0,stepsA:[{wait:1e3},{transition:"transform 500ms ease 0ms",scaleX:1.08,scaleY:1.08,scaleZ:1},{transition:"transform 500ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1},{wait:5e3}],stepsB:[]}]}},{slug:"load-grow-you-got",name:"Load Grow",value:{style:{opacity:0},triggers:[{type:"load",preload:!0,stepsA:[{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",scaleX:1.2,scaleY:1.2,scaleZ:1},{opacity:1,transition:"transform 500ms ease 0ms, opacity 500ms ease 0ms",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]}]}},{slug:"switch",name:"Switch",value:{style:{},triggers:[{type:"click",stepsA:[{opacity:0,transition:"opacity 500ms ease 0ms"}],stepsB:[{opacity:1,transition:"opacity 500ms ease 0ms"}]}]}},{slug:"getstartedclick",name:"GetStartedClick",value:{style:{},triggers:[{type:"click",selector:".get-text",descend:!0,stepsA:[{display:"none"}],stepsB:[]},{type:"click",selector:".loading-icon",descend:!0,loopA:!0,preserve3d:!0,stepsA:[{display:"block",transition:"transform 700ms linear 0",rotateX:"0deg",rotateY:"0deg",rotateZ:"360deg"},{rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg"}],stepsB:[]},{type:"click",stepsA:[{wait:"3s"},{display:"none",opacity:0,transition:"opacity 200 ease 0"}],stepsB:[]},{type:"click",selector:".deactivate-button",siblings:!0,stepsA:[{wait:"4s"},{display:"inline-block"}],stepsB:[]},{type:"click",selector:".online-store-body",stepsA:[{wait:"3s"},{opacity:0,transition:"opacity 300ms ease 0"},{display:"none"}],stepsB:[]},{type:"click",selector:".div-block-43",stepsA:[{wait:"4s"},{display:"block",opacity:0},{display:"block",opacity:1,transition:"opacity 300ms ease 0"}],stepsB:[]},{type:"click",selector:".banner-online-store",preserve3d:!0,stepsA:[{wait:"5s"},{display:"flex",transition:"transform 200ms ease 0",x:"0px",y:"40px",z:"0px"},{wait:"2s"},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]}]}},{slug:"height-add-tax",name:"Height Add Tax",value:{style:{},triggers:[{type:"click",selector:".add-sales-tax-box",stepsA:[{height:"auto",transition:"height 200 ease 0"}],stepsB:[]}]}},{slug:"new-interaction-3",name:"New Interaction 3",value:{style:{opacity:.5,x:"100px",y:"200px",z:"0px",rotateX:"0deg",rotateY:"0deg",rotateZ:"-25deg"},triggers:[{type:"load",stepsA:[{opacity:1,transition:"transform 600ms ease 0, opacity 600ms ease 0",x:"0px",y:"0px",z:"0px",rotateX:"0deg",rotateY:"0deg",rotateZ:"-27deg"}],stepsB:[]}]}},{slug:"new-interaction-34",name:"New Interaction 34",value:{style:{opacity:.5,x:"0px",y:"0px",z:"0px",rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg"},triggers:[{type:"load",stepsA:[{opacity:1,transition:"transform 600ms ease 0, opacity 600ms ease 0",x:"0px",y:"0px",z:"0px",rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg"}],stepsB:[]}]}},{slug:"continuously-rotate",name:"Continuously Rotate",value:{style:{},triggers:[{type:"load",loopA:!0,stepsA:[{transition:"transform 700ms linear 0",rotateX:"0deg",rotateY:"0deg",rotateZ:"360deg"},{rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg"}],stepsB:[]}]}},{slug:"chip-bounce",name:"Chip Bounce",value:{style:{scaleX:.01,scaleY:.01,scaleZ:1},triggers:[{type:"load",stepsA:[{transition:"transform 200ms ease-out 0",display:"flex",scaleX:1,scaleY:1,scaleZ:1},{transition:"transform 200ms ease 0",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]},{type:"load",loopA:!0,stepsA:[{transition:"transform 500ms ease-in-out 0",x:"0px",y:"-7px",z:"0px"},{transition:"transform 500ms ease-in-out 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"hover-show-chip",name:"Hover Show Chip",value:{style:{},triggers:[{type:"hover",selector:".payroll-tool-top",siblings:!0,preserve3d:!0,stepsA:[{display:"flex",transition:"transform 200 ease-in-out 0",x:"0px",y:"-4px",z:"0px"},{transition:"transform 200 ease 0",x:"0px",y:"0px",z:"0px"}],stepsB:[{display:"none"}]}]}},{slug:"chip-bounce",name:"Chip Bounce",value:{style:{scaleX:.01,scaleY:.01,scaleZ:1},triggers:[{type:"load",stepsA:[{transition:"transform 200ms ease-out 0",display:"flex",scaleX:1,scaleY:1,scaleZ:1},{transition:"transform 200ms ease 0",scaleX:1,scaleY:1,scaleZ:1}],stepsB:[]},{type:"load",loopA:!0,stepsA:[{transition:"transform 500ms ease-in-out 0",x:"0px",y:"-7px",z:"0px"},{transition:"transform 500ms ease-in-out 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"change-address-div-ani",name:"Change Address Div",value:{style:{},triggers:[{type:"click",selector:".change-address-div-ani",stepsA:[{display:"block"}],stepsB:[]},{type:"click",selector:".current-contact-ani",stepsA:[{display:"none"}],stepsB:[]}]}},{slug:"hero-image-load",name:"Hero Image Load",value:{style:{opacity:0,x:"150px",y:"0px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:"200ms"},{opacity:1,transition:"transform 800ms ease 0, opacity 800ms ease 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"hero-image-load1",name:"Hero Image Load",value:{style:{opacity:0,x:"0px",y:"150px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:"200ms"},{opacity:1,transition:"transform 800ms ease 0, opacity 800ms ease 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"title-load",name:"Title Load",value:{style:{opacity:0,x:"0px",y:"50px",z:"0px"},triggers:[{type:"load",stepsA:[{opacity:1,transition:"transform 800ms ease 0, opacity 800ms ease 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"subtitle-load",name:"SubTitle Load",value:{style:{opacity:0,x:"0px",y:"50px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:"300ms"},{opacity:1,transition:"transform 800ms ease 0, opacity 800ms ease 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"mobile-trial-hide-show",name:"Mobile Trial Hide Show",value:{style:{},triggers:[{type:"scroll",selector:".mobile-start-trial",preserve3d:!0,stepsA:[{transition:"transform 300ms ease 0",x:"0px",y:"-70px",z:"0px"},{display:"none"}],stepsB:[{display:"flex"},{transition:"transform 300ms ease 0",x:"0px",y:"0px",z:"0px"}]}]}},{slug:"btn-load",name:"BTN Load",value:{style:{opacity:0,x:"0px",y:"50px",z:"0px"},triggers:[{type:"load",stepsA:[{wait:"600ms"},{opacity:1,transition:"transform 800ms ease 0, opacity 800ms ease 0",x:"0px",y:"0px",z:"0px"}],stepsB:[]}]}},{slug:"back-to-current-content-ani",name:"Back to Current Content",value:{style:{},triggers:[{type:"click",selector:".change-address-div-ani",stepsA:[{display:"none"}],stepsB:[]},{type:"click",selector:".current-contact-ani",stepsA:[{display:"flex"}],stepsB:[]}]}},{slug:"bottom-animation",name:"bottom-animation",value:{style:{},triggers:[{type:"load",stepsA:[{transition:"transform 1000ms ease 0, opacity 500ms ease 0",x:"0px",y:"0px",z:"0px",opacity:"1"}]}]}}]),function(e,t,i,n){var a={verticalScrolling:!0,horizontalScrolling:!1,verticalScrollerSide:"right",showOnHover:!1,scrollIncrement:20,minScrollbarLength:40,pollChanges:!0,drawCorner:!0,drawScrollButtons:!1,clickTrackToScroll:!0,easingDuration:500,propagateWheelEvent:!0,verticalTrackClass:"vertical-track",horizontalTrackClass:"horizontal-track",horizontalHandleClass:"horizontal-handle",verticalHandleClass:"vertical-handle",scrollUpButtonClass:"scroll-up-btn",scrollDownButtonClass:"scroll-down-btn",scrollLeftButtonClass:"scroll-left-btn",scrollRightButtonClass:"scroll-right-btn",cornerClass:"scrollbar-corner",zIndex:1,addPaddingToPane:!0,horizontalHandleHTML:'<div class="left"></div><div class="right"></div>',verticalHandleHTML:'<div class="top"></div><div class="bottom"></div>'},o=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},s=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,17)},r=function(t,i){var n=e(t).css(i),a=/^-?\d+/.exec(n);return a?+a[0]:0},c=function(e){var t,i,n={width:"5px",height:"1px",overflow:"hidden",padding:"8px 0",visibility:"hidden",whiteSpace:"pre-line",font:"10px/1 serif"},a=document.createElement(e),o=document.createTextNode("a\na");for(i in n)a.style[i]=n[i];return a.appendChild(o),document.body.appendChild(a),t=a.scrollHeight<28,document.body.removeChild(a),t},l=.5*Math.PI,d=10*Math.log(2),u=function(e,t,i){var n=l/t,a=e*n;return Math.round(a*Math.cos(n*i))},p=function(e,t,i){return Math.round(e*d*Math.pow(2,-10*i/t+1)/t)},f=function(e,t,i,n){return 2*i/Math.PI*Math.asin((n-e)/t)},h=function(t){var i=e(this).data("enscroll"),n=this,a=i.settings,o=function(){var t=e(this).data("enscroll"),i=t.settings;t&&i.showOnHover&&(i.verticalScrolling&&e(t.verticalTrackWrapper).is(":visible")&&e(t.verticalTrackWrapper).stop().fadeTo(275,0),i.horizontalScrolling&&e(t.horizontalTrackWrapper).is(":visible")&&e(t.horizontalTrackWrapper).stop().fadeTo(275,0),t._fadeTimer=null)};i&&a.showOnHover&&(i._fadeTimer?clearTimeout(i._fadeTimer):(a.verticalScrolling&&e(i.verticalTrackWrapper).is(":visible")&&e(i.verticalTrackWrapper).stop().fadeTo(275,1),a.horizontalScrolling&&e(i.horizontalTrackWrapper).is(":visible")&&e(i.horizontalTrackWrapper).stop().fadeTo(275,1)),!1!==t&&(i._fadeTimer=setTimeout(function(){o.call(n)},1750)))},m=function(t,i){var n=e(t),a=n.data("enscroll"),o=n.scrollTop();a&&a.settings.verticalScrolling&&(n.scrollTop(o+i),a.settings.showOnHover&&h.call(t))},g=function(t,i){var n=e(t),a=n.data("enscroll"),o=n.scrollLeft();a&&a.settings.horizontalScrolling&&(n.scrollLeft(o+i),a.settings.showOnHover&&h.call(t))},v=function(t){if(1===t.which){var n,a,o,r,c,l,d,u,p,f=t.data.pane,m=e(f),g=m.data("enscroll"),v=!0,y=function(){v&&(o!==r&&(g._scrollingY||(g._scrollingY=!0,g._startY=m.scrollTop(),s(function(){b(m)})),a.style.top=o+"px",g._endY=o*p/u,r=o),s(y),g.settings.showOnHover&&h.call(f))},_=function(){return v=!1,i.body.style.cursor=d,this.style.cursor="",n.removeClass("dragging"),e(i.body).off("mousemove.enscroll.vertical").off("mouseup.enscroll.vertical"),e(i).off("mouseout.enscroll.vertical"),m.on("scroll.enscroll.pane",function(e){x.call(this,e)}),!1};return n=e(g.verticalTrackWrapper).find(".enscroll-track"),a=n.children().first()[0],o=parseInt(a.style.top,10),p=f.scrollHeight-(g._scrollHeightNoPadding?e(f).height():e(f).innerHeight()),c=t.clientY-e(a).offset().top,u=n.height()-e(a).outerHeight(),l=n.offset().top,m.off("scroll.enscroll.pane"),e(i.body).on({"mousemove.enscroll.vertical":function(e){return v&&(o=e.clientY-l-c,o=Math.min(0>o?0:o,u)),!1},"mouseup.enscroll.vertical":function(e){_.call(a,e)}}),e(i).on("mouseout.enscroll.vertical",function(e){e.target.nodeName&&"HTML"===e.target.nodeName.toUpperCase()&&_.call(a,e)}),n.hasClass("dragging")||(n.addClass("dragging"),d=e(i.body).css("cursor"),this.style.cursor=i.body.style.cursor="ns-resize"),s(y),!1}},y=function(t){if(1===t.which){var n,a,o,r,c,l,d,u,p,f=t.data.pane,m=e(f),g=e(f).data("enscroll"),v=!0,y=function(){v&&(o!==r&&(g._scrollingX||(g._scrollingX=!0,g._startX=m.scrollLeft(),s(function(){b(m)})),a.style.left=o+"px",g._endX=o*c/p,r=o),s(y),g.settings.showOnHover&&h.call(f))},_=function(){return v=!1,n.removeClass("dragging"),i.body.style.cursor=u,this.style.cursor="",n.removeClass("dragging"),e(i.body).off("mousemove.enscroll.horizontal").off("mouseup.enscroll.horizontal"),e(i).off("mouseout.enscroll.horizontal"),m.on("scroll.enscroll.pane",function(e){x.call(this,e)}),!1};return n=e(g.horizontalTrackWrapper).find(".enscroll-track"),a=n.children().first()[0],o=parseInt(a.style.left,10),c=f.scrollWidth-e(f).innerWidth(),l=t.clientX-e(a).offset().left,p=n.width()-e(a).outerWidth(),d=n.offset().left,m.off("scroll.enscroll.pane"),e(i.body).on({"mousemove.enscroll.horizontal":function(e){return v&&(o=e.clientX-d-l,o=Math.min(0>o?0:o,p)),!1},"mouseup.enscroll.horizontal":function(e){_.call(a,e)}}),e(i).on("mouseout.enscroll.horizontal",function(e){e.target.nodeName&&"HTML"===e.target.nodeName.toUpperCase()&&_.call(a,e)}),n.hasClass("dragging")||(n.addClass("dragging"),u=e("body").css("cursor"),this.style.cursor=i.body.style.cursor="ew-resize"),s(y),!1}},b=function(e){var t,i,n,a=e.data("enscroll"),o=a._duration;!0===a._scrollingX&&(0===(t=a._endX-a._startX)?a._scrollingX=!1:(i=e.scrollLeft(),n=f(a._startX,t,o,i),t>0?i>=a._endX||i<a._startX?a._scrollingX=!1:(g(e,Math.max(1,u(t,o,n))),s(function(){b(e)})):i<=a._endX||i>a._startX?a._scrollingX=!1:(g(e,Math.min(-1,u(t,o,n))),s(function(){b(e)})))),!0===a._scrollingY&&(0===(t=a._endY-a._startY)?a._scrollingY=!1:(i=e.scrollTop(),n=f(a._startY,t,o,i),t>0?i>=a._endY||i<a._startY?a._scrollingY=!1:(m(e,Math.max(1,u(t,o,n))),s(function(){b(e)})):i<=a._endY||i>a._startY?a._scrollingY=!1:(m(e,Math.min(-1,u(t,o,n))),s(function(){b(e)}))))},_=function(e,t){var i=e.data("enscroll"),n=e.scrollLeft(),a=e[0].scrollWidth-e.innerWidth();return!(!i.settings.horizontalScrolling||i._scrollingY)&&(i._scrollingX||(i._scrollingX=!0,i._startX=n,i._endX=i._startX,s(function(){b(e)})),i._endX=t>0?Math.min(n+t,a):Math.max(0,n+t),0>t&&n>0||t>0&&a>n)},C=function(e,t){var i=e.data("enscroll"),n=e.scrollTop(),a=e[0].scrollHeight-(i._scrollHeightNoPadding?e.height():e.innerHeight());return!(!i.settings.verticalScrolling||i._scrollingX)&&(i._scrollingY||(i._scrollingY=!0,i._startY=n,i._endY=i._startY,s(function(){b(e)})),i._endY=t>0?Math.min(n+t,a):Math.max(0,n+t),0>t&&n>0||t>0&&a>n)},w=function(t){var i=e(this),n=i.data("enscroll"),a=n.settings.scrollIncrement,s="deltaX"in t?-t.deltaX:"wheelDeltaX"in t?t.wheelDeltaX:0,r="deltaY"in t?-t.deltaY:"wheelDeltaY"in t?t.wheelDeltaY:"wheelDelta"in t?t.wheelDelta:0;Math.abs(s)>Math.abs(r)?(_(i,(s>0?-a:a)<<2)||!n.settings.propagateWheelEvent)&&o(t):(C(i,(r>0?-a:a)<<2)||!n.settings.propagateWheelEvent)&&o(t)},x=function(){var t,i,n,a=e(this),o=a.data("enscroll");o&&(o.settings.verticalScrolling&&(t=(i=e(o.verticalTrackWrapper).find(".enscroll-track")[0]).firstChild,n=a.scrollTop()/(this.scrollHeight-(o._scrollHeightNoPadding?a.height():a.innerHeight())),n=isNaN(n)?0:n,t.style.top=n*(e(i).height()-e(t).outerHeight())+"px"),o.settings.horizontalScrolling&&(t=(i=e(o.horizontalTrackWrapper).find(".enscroll-track")[0]).firstChild,n=a.scrollLeft()/(this.scrollWidth-a.innerWidth()),n=isNaN(n)?0:n,t.style.left=n*(e(i).width()-e(t).innerWidth())+"px"))},I=function(t){var i,n=e(this),a=n.data("enscroll");if(!/(input)|(select)|(textarea)/i.test(this.nodeName)&&t.target===this&&a){switch(i=a.settings.scrollIncrement,t.keyCode){case 32:case 34:return C(n,n.height()),!1;case 33:return C(n,-n.height()),!1;case 35:return C(n,this.scrollHeight),!1;case 36:return C(n,-this.scrollHeight),!1;case 37:return _(n,-i),!1;case 38:return C(n,-i),!1;case 39:return _(n,i),!1;case 40:return C(n,i),!1}return!0}},S=function(){var t=this,n=e(t).data("enscroll").settings,a=!0,o=0,r=0,c=e(t).offset().top,l=c+e(t).outerHeight(),d=e(t).offset().left,u=d+e(t).outerWidth(),p=function(){n.horizontalScrolling&&o&&g(t,parseInt(o/4,10)),n.verticalScrolling&&r&&m(t,parseInt(r/4,10)),a&&s(p)};s(p),e(i).on({"mousemove.enscroll.pane":function(e){var t=e.pageX,i=e.pageY;o=d>t?t-d:t>u?t-u:0,r=c>i?i-c:i>l?i-l:0},"mouseup.enscroll.pane":function(){a=!1,e(i).off("mousemove.enscroll.pane").off("mouseup.enscroll.pane")}})},k=function(e){var t,i,n,a,r,c,l,d=this,u=function(e){t=e.touches[0].clientX,i=e.touches[0].clientY,n||(n=i===r&&t===a?undefined:Math.abs(r-i)>Math.abs(a-t)?"y":"x"),o(e)},f=function(){c&&("y"===n?(m(d,r-i),l=r-i,r=i):"x"===n&&(g(d,a-t),l=a-t,a=t),s(f))},h=function(){var e=0,t=Math.abs(1.5*l);this.removeEventListener("touchmove",u,!1),this.removeEventListener("touchend",h,!1),c=!1,s(function i(){var a;e===t||c||(a=p(l,t,e),isNaN(a)||0===a||(e+=1,"y"===n?m(d,a):g(d,a),s(i)))})};1===e.touches.length&&(a=e.touches[0].clientX,r=e.touches[0].clientY,c=!0,this.addEventListener("touchmove",u,!1),this.addEventListener("touchend",h,!1),s(f))},N={reposition:function(){return this.each(function(){var t,i,n,a=e(this),o=a.data("enscroll"),s=function(e,t,i){e.style.left=t+"px",e.style.top=i+"px"};o&&(n=a.position(),t=o.corner,o.settings.verticalScrolling&&s(i=o.verticalTrackWrapper,"right"===o.settings.verticalScrollerSide?n.left+a.outerWidth()-e(i).width()-r(this,"border-right-width"):n.left+r(this,"border-left-width"),n.top+r(this,"border-top-width")),o.settings.horizontalScrolling&&s(i=o.horizontalTrackWrapper,n.left+r(this,"border-left-width"),n.top+a.outerHeight()-e(i).height()-r(this,"border-bottom-width")),t&&s(t,n.left+a.outerWidth()-e(t).outerWidth()-r(this,"border-right-width"),n.top+a.outerHeight()-e(t).outerHeight()-r(this,"border-bottom-width")))})},resize:function(){return this.each(function(){var t,i,n,a,o,s,r,c,l,d,u,p,f,h,m,g,v=e(this),y=v.data("enscroll");return!y||(t=y.settings,void(v.is(":visible")?(t.verticalScrolling&&(a=y.verticalTrackWrapper,i=v.innerHeight(),o=i/this.scrollHeight,s=e(a).find(".enscroll-track")[0],l=e(a).find("."+t.scrollUpButtonClass),d=e(a).find("."+t.scrollDownButtonClass),c=t.horizontalScrolling?i-e(y.horizontalTrackWrapper).find(".enscroll-track").outerHeight():i,c-=e(s).outerHeight()-e(s).height()+l.outerHeight()+d.outerHeight(),f=s.firstChild,m=Math.max(o*c,t.minScrollbarLength),m-=e(f).outerHeight()-e(f).height(),a.style.display="none",s.style.height=c+"px",f.style.height=m+"px",1>o&&(o=v.scrollTop()/(this.scrollHeight-v.height()),f.style.top=o*(c-m)+"px",a.style.display="block")),t.horizontalScrolling&&(a=y.horizontalTrackWrapper,n=v.innerWidth(),o=n/this.scrollWidth,s=e(a).find(".enscroll-track")[0],u=e(a).find("."+t.scrollLeftButtonClass),p=e(a).find("."+t.scrollRightButtonClass),r=t.verticalScrolling?n-e(y.verticalTrackWrapper).find(".enscroll-track").outerWidth():n,r-=e(s).outerWidth()-e(s).width()+u.outerWidth()+p.outerWidth(),f=s.firstChild,h=Math.max(o*r,t.minScrollbarLength),h-=e(f).outerWidth()-e(f).width(),a.style.display="none",s.style.width=r+"px",f.style.width=h+"px",1>o&&(o=v.scrollLeft()/(this.scrollWidth-v.width()),f.style.left=o*(r-h)+"px",a.style.display="block"),y._prybar&&(g=y._prybar,this.removeChild(g),t.verticalScrolling&&(g.style.width=this.scrollWidth+e(y.verticalTrackWrapper).find(".enscroll-track").outerWidth()+"px",this.appendChild(g)))),y.corner&&(y.corner.style.display=y.verticalTrackWrapper&&y.horizontalTrackWrapper&&e(y.verticalTrackWrapper).is(":visible")&&e(y.horizontalTrackWrapper).is(":visible")?"":"none")):(t.verticalScrolling&&(y.verticalTrackWrapper.style.display="none"),t.horizontalScrolling&&(y.horizontalTrackWrapper.style.display="none"),y.corner&&(y.corner.style.display="none"))))})},startPolling:function(){return this.each(function(){var t,i=e(this).data("enscroll"),n=this,a=e(n),o=-1,s=-1,r=-1,c=-1,l=function(){if(i.settings.pollChanges){var e=n.scrollWidth,d=n.scrollHeight,u=a.width(),p=a.height(),f=a.offset();(i.settings.verticalScrolling&&(p!==s||d!==c)||i.settings.horizontalScrolling&&(u!==o||e!==r))&&(r=e,c=d,N.resize.call(a)),(t.left!==f.left||t.top!==f.top||u!==o||p!==s)&&(t=f,o=u,s=p,N.reposition.call(a)),setTimeout(l,350)}};i&&(i.settings.pollChanges=!0,c=n.scrollHeight,r=n.scrollWidth,t=a.offset(),l())})},stopPolling:function(){return this.each(function(){var t=e(this).data("enscroll");t&&(t.settings.pollChanges=!1)})},destroy:function(){return this.each(function(){var i,n,a=e(this),o=a.data("enscroll");o&&(N.stopPolling.call(a),n=o._mouseScrollHandler,o.settings.verticalScrolling&&(i=o.verticalTrackWrapper,e(i).remove(),i=null),o.settings.horizontalScrolling&&(i=o.horizontalTrackWrapper,e(i).remove(),i=null),o._fadeTimer&&clearTimeout(o._fadeTimer),o.corner&&e(o.corner).remove(),o._prybar&&o._prybar.parentNode&&o._prybar.parentNode===this&&e(o._prybar).remove(),this.setAttribute("style",o._style||""),o._hadTabIndex||a.removeAttr("tabindex"),a.off("scroll.enscroll.pane").off("keydown.enscroll.pane").off("mouseenter.enscroll.pane").off("mousedown.enscroll.pane").data("enscroll",null),this.removeEventListener?(this.removeEventListener("wheel",n,!1),this.removeEventListener("mousewheel",n,!1),this.removeEventListener("touchstart",k,!1)):this.detachEvent&&this.detachEvent("onmousewheel",n),e(t).off("resize.enscroll.window"))})}};e.fn.enscroll=function(n){var o;return N[n]?N[n].call(this):(o=e.extend({},a,n),this.each(function(){if(o.verticalScrolling||o.horizontalScrolling){var n,a,s,l,d,u,p,f,b,D,B,T,A,M,$,P,O,R=e(this),L=this,E=R.attr("style"),F=!0,W={position:"absolute","z-index":o.zIndex,margin:0,padding:0},U=function(e){w.call(L,e)},H=function(t,i){"string"==typeof i?e(t).html(i):t.appendChild(i)};if(o.verticalScrolling){a=i.createElement("div"),l=i.createElement("div"),u=i.createElement("a"),e(l).css("position","relative").addClass("enscroll-track").addClass(o.verticalTrackClass).appendTo(a),o.drawScrollButtons&&(p=i.createElement("a"),f=i.createElement("a"),e(p).css({display:"block","text-decoration":"none"}).attr("href","").html("&nbsp;").addClass(o.scrollUpButtonClass).on("click",function(){return m(L,-o.scrollIncrement),!1}).insertBefore(l),e(f).css({display:"block","text-decoration":"none"}).attr("href","").html("&nbsp;").on("click",function(){return m(L,o.scrollIncrement),!1}).addClass(o.scrollDownButtonClass).appendTo(a)),o.clickTrackToScroll&&e(l).on("click",function(t){t.target===this&&C(R,t.pageY>e(u).offset().top?R.height():-R.height())}),e(u).css({position:"absolute","z-index":1}).attr("href","").addClass(o.verticalHandleClass).mousedown({pane:this},v).click(function(){return!1}).appendTo(l),H(u,o.verticalHandleHTML),e(a).css(W).insertAfter(this),o.showOnHover&&e(a).css("opacity",0).on("mouseover.enscroll.vertical",function(){h.call(L,!1)}).on("mouseout.enscroll.vertical",function(){h.call(L)}),T=e(l).outerWidth(),o.addPaddingToPane&&(O="right"===o.verticalScrollerSide?{"padding-right":r(this,"padding-right")+T+"px"}:{"padding-left":r(this,"padding-left")+T+"px"},R.css(e.extend({width:R.width()-T+"px"},O)));try{0!==($=parseInt(R.css("outline-width"),10))&&!isNaN($)||"none"!==R.css("outline-style")||R.css("outline","none")}catch(e){R.css("outline","none")}}o.horizontalScrolling&&(n=i.createElement("div"),s=i.createElement("div"),d=i.createElement("a"),e(s).css({position:"relative","z-index":1}).addClass("enscroll-track").addClass(o.horizontalTrackClass).appendTo(n),o.drawScrollButtons&&(b=i.createElement("a"),D=i.createElement("a"),e(b).css("display","block").attr("href","").on("click",function(){return g(L,-o.scrollIncrement),!1}).addClass(o.scrollLeftButtonClass).insertBefore(s),e(D).css("display","block").attr("href","").on("click",function(){return g(L,o.scrollIncrement),!1}).addClass(o.scrollRightButtonClass).appendTo(n)),o.clickTrackToScroll&&e(s).on("click",function(t){t.target===this&&_(R,t.pageX>e(d).offset().left?R.width():-R.width())}),e(d).css({position:"absolute","z-index":1}).attr("href","").addClass(o.horizontalHandleClass).click(function(){return!1}).mousedown({pane:this},y).appendTo(s),H(d,o.horizontalHandleHTML),e(n).css(W).insertAfter(this),o.showOnHover&&e(n).css("opacity",0).on("mouseover.enscroll.horizontal",function(){h.call(L,!1)}).on("mouseout.enscroll.horizontal",function(){h.call(L)}),B=e(s).outerHeight(),o.addPaddingToPane&&R.css({height:R.height()-B+"px","padding-bottom":parseInt(R.css("padding-bottom"),10)+B+"px"}),o.verticalScrolling&&(P=document.createElement("div"),e(P).css({width:"1px",height:"1px",visibility:"hidden",padding:0,margin:"-1px"}).appendTo(this))),o.verticalScrolling&&o.horizontalScrolling&&o.drawCorner&&(A=i.createElement("div"),e(A).addClass(o.cornerClass).css(W).insertAfter(this)),R.attr("tabindex")||(R.attr("tabindex",0),F=!1);try{(!(M=R.css("outline"))||M.length<1)&&R.css("outline","none")}catch(e){R.css("outline","none")}R.on({"scroll.enscroll.pane":function(e){x.call(this,e)},"keydown.enscroll.pane":I,"mousedown.enscroll.pane":S}).css("overflow","hidden").data("enscroll",{settings:o,horizontalTrackWrapper:n,verticalTrackWrapper:a,corner:A,_prybar:P,_mouseScrollHandler:U,_hadTabIndex:F,_style:E,_scrollingX:!1,_scrollingY:!1,_startX:0,_startY:0,_endX:0,_endY:0,_duration:parseInt(o.easingDuration/16.66666,10),_scrollHeightNoPadding:c(this.nodeName)}),e(t).on("resize.enscroll.window",function(){N.reposition.call(R)}),o.showOnHover&&R.on("mouseenter.enscroll.pane",function(){h.call(this)}),this.addEventListener?("onwheel"in this||"WheelEvent"in t&&navigator.userAgent.toLowerCase().indexOf("msie")>=0?this.addEventListener("wheel",U,!1):"onmousewheel"in this&&this.addEventListener("mousewheel",U,!1),this.addEventListener("touchstart",k,!1)):this.attachEvent&&this.attachEvent("onmousewheel",U),o.pollChanges&&N.startPolling.call(R),N.resize.call(R),N.reposition.call(R)}}))}}(jQuery,window,document),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 i(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 o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(a(e,t))return;return 1}function s(e){return void 0===e}function r(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){for(var i=[],n=e.length,a=0;a<n;++a)i.push(t(e[a],a));return i}function d(e,t){for(var i in t)a(t,i)&&(e[i]=t[i]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,i,n){return kt(e,t,i,n,!0).utc()}function p(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 f(e){if(null==e._isValid){var t=p(e),i=m.call(t.parsedDateParts,function(e){return null!=e});i=!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&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function h(e){var t=u(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}var m=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},g=t.momentProperties=[],v=!1;function y(e,t){var i,n,a,o=g.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(a=t[n=g[i]])||(e[n]=a);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function _(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,i){var n=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var o,s,r=[],c=arguments.length,l=0;l<c;l++){if(o="","object"==typeof arguments[l]){for(s in o+="\n["+l+"] ",arguments[0])a(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[l];r.push(o)}C(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}var x={};function I(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),x[e]||(C(i),x[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var i,o=d({},e);for(i in t)a(t,i)&&(n(e[i])&&n(t[i])?(o[i]={},d(o[i],e[i]),d(o[i],t[i])):null!=t[i]?o[i]=t[i]:delete o[i]);for(i in e)a(e,i)&&!a(t,i)&&n(e[i])&&(o[i]=d({},o[i]));return o}function N(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var D=Object.keys||function(e){var t,i=[];for(t in e)a(e,t)&&i.push(t);return i};function B(e,t,i){var n=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var T=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},$={};function P(e,t,i,n){var a="string"==typeof n?function(){return this[n]()}:n;e&&($[e]=a),t&&($[t[0]]=function(){return B(a.apply(this,arguments),t[1],t[2])}),i&&($[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function O(e,t){return e.isValid()?(t=R(t,e.localeData()),M[t]=M[t]||function(e){for(var t,i=e.match(T),n=0,a=i.length;n<a;n++)$[i[n]]?i[n]=$[i[n]]:i[n]=(t=i[n]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var n="",o=0;o<a;o++)n+=S(i[o])?i[o].call(t,e):i[o];return n}}(t),M[t](e)):e.localeData().invalidDate()}function R(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;0<=i&&A.test(e);)e=e.replace(A,n),A.lastIndex=0,--i;return e}var L={};function E(e,t){var i=e.toLowerCase();L[i]=L[i+"s"]=L[t]=e}function F(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function W(e){var t,i,n={};for(i in e)a(e,i)&&(t=F(i))&&(n[t]=e[i]);return n}var U={};function H(e,t){U[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=0;return 0!=(e=+e)&&isFinite(e)?j(e):t}function z(e,i){return function(n){return null!=n?(G(this,e,n),t.updateOffset(this,i),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(i=Y(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),De(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var J=/\d/,Z=/\d\d/,X=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,ae=/\d{1,4}/,oe=/[+-]?\d{1,6}/,se=/\d+/,re=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[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,i){he[e]=S(t)?t:function(e,n){return e&&i?i:t}}function pe(e,t){return a(he,e)?he[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,a){return t||i||n||a})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={},me={};function ge(e,t){var i,n,a=t;for("string"==typeof e&&(e=[e]),r(t)&&(a=function(e,i){i[t]=Y(e)}),n=e.length,i=0;i<n;i++)me[e[i]]=a}function ve(e,t){ge(e,function(e,i,n,a){n._w=n._w||{},t(e,n._w,n,a)})}var ye,be=0,_e=1,Ce=2,we=3,xe=4,Ie=5,Se=6,ke=7,Ne=8;function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%(i=12)+i)%i;return e+=(t-i)/12,1==i?V(e)?29:28:31-i%7%2}ye=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),E("month","M"),H("month",8),ue("M",ee),ue("MM",ee,Z),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[_e]=Y(e)-1}),ge(["MMM","MMMM"],function(e,t,i,n){null!=(n=i._locale.monthsParse(e,n,i._strict))?t[_e]=n:p(i).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Te="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me=de,$e=de;function Pe(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=Y(t);else if(!r(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),De(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Oe(e){return null!=e?(Pe(this,e),t.updateOffset(this,!0),this):q(this,"Month")}function Re(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],a=[],o=0;o<12;o++)t=u([2e3,o]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),a.push(this.months(t,"")),a.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),a.sort(e),o=0;o<12;o++)i[o]=fe(i[o]),n[o]=fe(n[o]);for(o=0;o<24;o++)a[o]=fe(a[o]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Le(e){return V(e)?366:365}P("Y",0,0,function(){var e=this.year();return e<=9999?B(e,4):"+"+e}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),E("year","y"),H("year",1),ue("Y",re),ue("YY",ee,Z),ue("YYYY",ae,K),ue("YYYYY",oe,Q),ue("YYYYYY",oe,Q),ge(["YYYYY","YYYYYY"],be),ge("YYYY",function(e,i){i[be]=2===e.length?t.parseTwoDigitYear(e):Y(e)}),ge("YY",function(e,i){i[be]=t.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[be]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return Y(e)+(68<Y(e)?1900:2e3)};var Ee=z("FullYear",!0);function Fe(e,t,i,n,a,o,s){var r;return e<100&&0<=e?(r=new Date(e+400,t,i,n,a,o,s),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,t,i,n,a,o,s),r}function We(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,i){return(i=7+t-i)-(7+We(e,0,i).getUTCDay()-t)%7-1}function He(e,t,i,n,a){var o;i=(t=1+7*(t-1)+(7+i-n)%7+Ue(e,n,a))<=0?Le(o=e-1)+t:t>Le(e)?(o=e+1,t-Le(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ve(e,t,i){var n,a,o=Ue(e.year(),t,i);return(o=Math.floor((e.dayOfYear()-o-1)/7)+1)<1?n=o+je(a=e.year()-1,t,i):o>je(e.year(),t,i)?(n=o-je(e.year(),t,i),a=e.year()+1):(a=e.year(),n=o),{week:n,year:a}}function je(e,t,i){var n=Ue(e,t,i);t=Ue(e+1,t,i);return(Le(e)-n+t)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),H("week",5),H("isoWeek",5),ue("w",ee),ue("ww",ee,Z),ue("W",ee),ue("WW",ee,Z),ve(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=Y(e)}),P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),H("day",11),H("weekday",11),H("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)}),ve(["dd","ddd","dddd"],function(e,t,i,n){null!=(n=i._locale.weekdaysParse(e,n,i._strict))?t.d=n:p(i).invalidWeekday=e}),ve(["d","e","E"],function(e,t,i,n){t[n]=Y(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=de,Ze=de,Xe=de;function Ke(){function e(e,t){return t.length-e.length}for(var t,i,n,a=[],o=[],s=[],r=[],c=0;c<7;c++)n=u([2e3,1]).day(c),t=fe(this.weekdaysMin(n,"")),i=fe(this.weekdaysShort(n,"")),n=fe(this.weekdays(n,"")),a.push(t),o.push(i),s.push(n),r.push(t),r.push(i),r.push(n);a.sort(e),o.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,Qe),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+Qe.apply(this)+B(this.minutes(),2)}),P("hmmss",0,0,function(){return""+Qe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),et("a",!0),et("A",!1),E("hour","h"),H("hour",13),ue("a",tt),ue("A",tt),ue("H",ee),ue("h",ee),ue("k",ee),ue("HH",ee,Z),ue("hh",ee,Z),ue("kk",ee,Z),ue("hmm",te),ue("hmmss",ie),ue("Hmm",te),ue("Hmmss",ie),ge(["H","HH"],we),ge(["k","kk"],function(e,t,i){e=Y(e),t[we]=24===e?0:e}),ge(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),ge(["h","hh"],function(e,t,i){t[we]=Y(e),p(i).bigHour=!0}),ge("hmm",function(e,t,i){var n=e.length-2;t[we]=Y(e.substr(0,n)),t[xe]=Y(e.substr(n)),p(i).bigHour=!0}),ge("hmmss",function(e,t,i){var n=e.length-4,a=e.length-2;t[we]=Y(e.substr(0,n)),t[xe]=Y(e.substr(n,2)),t[Ie]=Y(e.substr(a)),p(i).bigHour=!0}),ge("Hmm",function(e,t,i){var n=e.length-2;t[we]=Y(e.substr(0,n)),t[xe]=Y(e.substr(n))}),ge("Hmmss",function(e,t,i){var n=e.length-4,a=e.length-2;t[we]=Y(e.substr(0,n)),t[xe]=Y(e.substr(n,2)),t[Ie]=Y(e.substr(a))}),de=z("Hours",!0);var it,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:Be,monthsShort:Te,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:Ge,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},at={},ot={};function st(e){return e&&e.toLowerCase().replace("_","-")}function rt(e){var t;if(void 0===at[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=it._abbr,require("./locale/"+e),ct(t)}catch(t){at[e]=null}return at[e]}function ct(e,t){return e&&((t=s(t)?dt(e):lt(e,t))?it=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function lt(e,t){if(null===t)return delete at[e],null;var i,n=nt;if(t.abbr=e,null!=at[e])I("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==(i=rt(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;n=i._config}return at[e]=new N(k(n,t)),ot[e]&&ot[e].forEach(function(e){lt(e.name,e.config)}),ct(e),at[e]}function dt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return it;if(!i(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,i,n,a,o=0;o<e.length;){for(t=(a=st(e[o]).split("-")).length,i=(i=st(e[o+1]))?i.split("-"):null;0<t;){if(n=rt(a.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(a,i)>=t-1)break;t--}o++}return it}(e)}function ut(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[_e]<0||11<t[_e]?_e:t[Ce]<1||t[Ce]>De(t[be],t[_e])?Ce:t[we]<0||24<t[we]||24===t[we]&&(0!==t[xe]||0!==t[Ie]||0!==t[Se])?we:t[xe]<0||59<t[xe]?xe:t[Ie]<0||59<t[Ie]?Ie:t[Se]<0||999<t[Se]?Se:-1,p(e)._overflowDayOfYear&&(t<be||Ce<t)&&(t=Ce),p(e)._overflowWeeks&&-1===t&&(t=ke),p(e)._overflowWeekday&&-1===t&&(t=Ne),p(e).overflow=t),e}var 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)?)?$/,ft=/^\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)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["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]],gt=[["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/]],vt=/^\/?Date\((-?\d+)/i,yt=/^(?:(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}))$/,bt={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,i,n,a,o,s,r=e._i,c=pt.exec(r)||ft.exec(r),l=(r=mt.length,gt.length);if(c){for(p(e).iso=!0,t=0,i=r;t<i;t++)if(mt[t][1].exec(c[1])){a=mt[t][0],n=!1!==mt[t][2];break}if(null==a)e._isValid=!1;else{if(c[3]){for(t=0,i=l;t<i;t++)if(gt[t][1].exec(c[3])){o=(c[2]||" ")+gt[t][0];break}if(null==o)return void(e._isValid=!1)}if(n||null==o){if(c[4]){if(!ht.exec(c[4]))return void(e._isValid=!1);s="Z"}e._f=a+(o||"")+(s||""),It(e)}else e._isValid=!1}}else e._isValid=!1}function Ct(e){var t,i,n,a,o=yt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=function(e,t,i,n,a,o){return e=[function(e){return(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e}(e),Te.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(a,10)],o&&e.push(parseInt(o,10)),e}(o[4],o[3],o[2],o[5],o[6],o[7]),n=t,a=e,(i=o[1])&&qe.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(p(a).weekdayMismatch=!0,a._isValid=!1):(e._a=t,e._tzm=(i=o[8],n=o[9],a=o[10],i?bt[i]:n?0:((i=parseInt(a,10))-(n=i%100))/100*60+n),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function wt(e,t,i){return null!=e?e:null!=t?t:i}function xt(e){var i,n,a,o,s,r,c,l,d,u,f,h=[];if(!e._d){for(a=e,o=new Date(t.now()),n=a._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],e._w&&null==e._a[Ce]&&null==e._a[_e]&&(null!=(o=(a=e)._w).GG||null!=o.W||null!=o.E?(l=1,d=4,s=wt(o.GG,a._a[be],Ve(Nt(),1,4).year),r=wt(o.W,1),((c=wt(o.E,1))<1||7<c)&&(u=!0)):(l=a._locale._week.dow,d=a._locale._week.doy,f=Ve(Nt(),l,d),s=wt(o.gg,a._a[be],f.year),r=wt(o.w,f.week),null!=o.d?((c=o.d)<0||6<c)&&(u=!0):null!=o.e?(c=o.e+l,(o.e<0||6<o.e)&&(u=!0)):c=l),r<1||r>je(s,l,d)?p(a)._overflowWeeks=!0:null!=u?p(a)._overflowWeekday=!0:(f=He(s,r,c,l,d),a._a[be]=f.year,a._dayOfYear=f.dayOfYear)),null!=e._dayOfYear&&(o=wt(e._a[be],n[be]),(e._dayOfYear>Le(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),u=We(o,0,e._dayOfYear),e._a[_e]=u.getUTCMonth(),e._a[Ce]=u.getUTCDate()),i=0;i<3&&null==e._a[i];++i)e._a[i]=h[i]=n[i];for(;i<7;i++)e._a[i]=h[i]=null==e._a[i]?2===i?1:0:e._a[i];24===e._a[we]&&0===e._a[xe]&&0===e._a[Ie]&&0===e._a[Se]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?We:Fe).apply(null,h),s=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!==s&&(p(e).weekdayMismatch=!0)}}function It(e){if(e._f===t.ISO_8601)_t(e);else if(e._f===t.RFC_2822)Ct(e);else{e._a=[],p(e).empty=!0;for(var i,n,o,s,r,c=""+e._i,l=c.length,d=0,u=R(e._f,e._locale).match(T)||[],f=u.length,h=0;h<f;h++)n=u[h],(i=(c.match(pe(n,e))||[])[0])&&(0<(o=c.substr(0,c.indexOf(i))).length&&p(e).unusedInput.push(o),c=c.slice(c.indexOf(i)+i.length),d+=i.length),$[n]?(i?p(e).empty=!1:p(e).unusedTokens.push(n),o=n,r=e,null!=(s=i)&&a(me,o)&&me[o](s,r._a,r,o)):e._strict&&!i&&p(e).unusedTokens.push(n);p(e).charsLeftOver=l-d,0<c.length&&p(e).unusedInput.push(c),e._a[we]<=12&&!0===p(e).bigHour&&0<e._a[we]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[we]=function(e,t,i){return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?((e=e.isPM(i))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[we],e._meridiem),null!==(l=p(e).era)&&(e._a[be]=e._locale.erasConvertYear(l,e._a[be])),xt(e),ut(e)}}function St(e){var a,o,u,m=e._i,g=e._f;return e._locale=e._locale||dt(e._l),null===m||void 0===g&&""===m?h({nullInput:!0}):("string"==typeof m&&(e._i=m=e._locale.preparse(m)),_(m)?new b(ut(m)):(c(m)?e._d=m:i(g)?function(e){var t,i,n,a,o,s,r=!1,c=e._f.length;if(0===c)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<c;a++)o=0,s=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],It(t),f(t)&&(s=!0),o=(o+=p(t).charsLeftOver)+10*p(t).unusedTokens.length,p(t).score=o,r?o<n&&(n=o,i=t):(null==n||o<n||s)&&(n=o,i=t,s&&(r=!0));d(e,i||t)}(e):g?It(e):s(g=(m=e)._i)?m._d=new Date(t.now()):c(g)?m._d=new Date(g.valueOf()):"string"==typeof g?(o=m,null!==(a=vt.exec(o._i))?o._d=new Date(+a[1]):(_t(o),!1===o._isValid&&(delete o._isValid,Ct(o),!1===o._isValid&&(delete o._isValid,o._strict?o._isValid=!1:t.createFromInputFallback(o))))):i(g)?(m._a=l(g.slice(0),function(e){return parseInt(e,10)}),xt(m)):n(g)?(a=m)._d||(u=void 0===(o=W(a._i)).day?o.date:o.day,a._a=l([o.year,o.month,u,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),xt(a)):r(g)?m._d=new Date(g):t.createFromInputFallback(m),f(e)||(e._d=null),e))}function kt(e,t,a,s,r){var c={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==a&&!1!==a||(s=a,a=void 0),(n(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=r,c._l=a,c._i=e,c._f=t,c._strict=s,(r=new b(ut(St(r=c))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Nt(e,t,i,n){return kt(e,t,i,n,!1)}function Dt(e,t){var n,a;if(!(t=1===t.length&&i(t[0])?t[0]:t).length)return Nt();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=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),ie=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:h()});var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Tt(e){var t=(e=W(e)).year||0,i=e.quarter||0,n=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,r=e.hour||0,c=e.minute||0,l=e.second||0,d=e.millisecond||0;this._isValid=function(e){var t,i,n=!1,o=Bt.length;for(t in e)if(a(e,t)&&(-1===ye.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<o;++i)if(e[Bt[i]]){if(n)return!1;parseFloat(e[Bt[i]])!==Y(e[Bt[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*l+6e4*c+1e3*r*60*60,this._days=+s+7*o,this._months=+n+3*i+12*t,this._data={},this._locale=dt(),this._bubble()}function At(e){return e instanceof Tt}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function $t(e,t){P(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+B(~~(e/60),2)+t+B(~~e%60,2)})}$t("Z",":"),$t("ZZ",""),ue("Z",le),ue("ZZ",le),ge(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Ot(le,e)});var Pt=/([\+\-]|\d\d)/gi;function Ot(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Pt)||["-",0,0])[1]+Y(e[2]))?0:"+"===e[0]?t:-t}function Rt(e,i){var n;return i._isUTC?(i=i.clone(),n=(_(e)||c(e)?e:Nt(e)).valueOf()-i.valueOf(),i._d.setTime(i._d.valueOf()+n),t.updateOffset(i,!1),i):Nt(e).local()}function Lt(e){return-Math.round(e._d.getTimezoneOffset())}function Et(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?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 i,n=e,o=null;return At(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:r(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=Ft.exec(e))?(i="-"===o[1]?-1:1,n={y:0,d:Y(o[Ce])*i,h:Y(o[we])*i,m:Y(o[xe])*i,s:Y(o[Ie])*i,ms:Y(Mt(1e3*o[Se]))*i}):(o=Wt.exec(e))?(i="-"===o[1]?-1:1,n={y:Ht(o[2],i),M:Ht(o[3],i),w:Ht(o[4],i),d:Ht(o[5],i),h:Ht(o[6],i),m:Ht(o[7],i),s:Ht(o[8],i)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=function(e,t){var i;return e.isValid()&&t.isValid()?(t=Rt(t,e),e.isBefore(t)?i=Vt(e,t):((i=Vt(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(Nt(n.from),Nt(n.to)),(n={}).ms=t.milliseconds,n.M=t.months),o=new Tt(n),At(e)&&a(e,"_locale")&&(o._locale=e._locale),At(e)&&a(e,"_isValid")&&(o._isValid=e._isValid),o}function Ht(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Vt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function jt(e,t){return function(i,n){var a;return null===n||isNaN(+n)||(I(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=i,i=n,n=a),Yt(this,Ut(i,n),e),this}}function Yt(e,i,n,a){var o=i._milliseconds,s=Mt(i._days);i=Mt(i._months);e.isValid()&&(a=null==a||a,i&&Pe(e,q(e,"Month")+i*n),s&&G(e,"Date",q(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),a&&t.updateOffset(e,s||i))}function zt(e){return"string"==typeof e||e instanceof String}function qt(e,t){if(e.date()<t.date())return-qt(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return-(i+(t=t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function Gt(e){return void 0===e?this._locale._abbr:(null!=(e=dt(e))&&(this._locale=e),this)}function Jt(){return this._locale}Ut.fn=Tt.prototype,Ut.invalid=function(){return Ut(NaN)},Be=jt(1,"add"),ze=jt(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ge=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 Zt=126227808e5;function Xt(e,t){return(e%t+t)%t}function Kt(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-Zt:new Date(e,t,i).valueOf()}function Qt(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-Zt:Date.UTC(e,t,i)}function ei(e,t){return t.erasAbbrRegex(e)}function ti(){for(var e=[],t=[],i=[],n=[],a=this.eras(),o=0,s=a.length;o<s;++o)t.push(fe(a[o].name)),e.push(fe(a[o].abbr)),i.push(fe(a[o].narrow)),n.push(fe(a[o].name)),n.push(fe(a[o].abbr)),n.push(fe(a[o].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("^("+i.join("|")+")","i")}function ii(e,t){P(0,[e,e.length],0,t)}function ni(e,t,i,n,a){var o;return null==e?Ve(this,n,a).year:(o=je(e,n,a),function(e,t,i,n,a){return t=We((e=He(e,t,i,n,a)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=o<t?o:t,i,n,a))}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),ue("N",ei),ue("NN",ei),ue("NNN",ei),ue("NNNN",function(e,t){return t.erasNameRegex(e)}),ue("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){(n=i._locale.erasParse(e,n,i._strict))?p(i).era=n:p(i).invalidEra=e}),ue("y",se),ue("yy",se),ue("yyy",se),ue("yyyy",se),ue("yo",function(e,t){return t._eraYearOrdinalRegex||se}),ge(["y","yy","yyy","yyyy"],be),ge(["yo"],function(e,t,i,n){var a;i._locale._eraYearOrdinalRegex&&(a=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[be]=i._locale.eraYearOrdinalParse(e,a):t[be]=parseInt(e,10)}),P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ii("gggg","weekYear"),ii("ggggg","weekYear"),ii("GGGG","isoWeekYear"),ii("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),ue("G",re),ue("g",re),ue("GG",ee,Z),ue("gg",ee,Z),ue("GGGG",ae,K),ue("gggg",ae,K),ue("GGGGG",oe,Q),ue("ggggg",oe,Q),ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=Y(e)}),ve(["gg","GG"],function(e,i,n,a){i[a]=t.parseTwoDigitYear(e)}),P("Q",0,"Qo","quarter"),E("quarter","Q"),H("quarter",7),ue("Q",J),ge("Q",function(e,t){t[_e]=3*(Y(e)-1)}),P("D",["DD",2],"Do","date"),E("date","D"),H("date",9),ue("D",ee),ue("DD",ee,Z),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],Ce),ge("Do",function(e,t){t[Ce]=Y(e.match(ee)[0])}),ae=z("Date",!0),P("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),H("dayOfYear",4),ue("DDD",ne),ue("DDDD",X),ge(["DDD","DDDD"],function(e,t,i){i._dayOfYear=Y(e)}),P("m",["mm",2],0,"minute"),E("minute","m"),H("minute",14),ue("m",ee),ue("mm",ee,Z),ge(["m","mm"],xe);var ai;K=z("Minutes",!1),P("s",["ss",2],0,"second"),E("second","s"),H("second",15),ue("s",ee),ue("ss",ee,Z),ge(["s","ss"],Ie),oe=z("Seconds",!1);for(P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,function(){return 10*this.millisecond()}),P(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),P(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),P(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),P(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),P(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),H("millisecond",16),ue("S",ne,J),ue("SS",ne,Z),ue("SSS",ne,X),ai="SSSS";ai.length<=9;ai+="S")ue(ai,se);function oi(e,t){t[Se]=Y(1e3*("0."+e))}for(ai="S";ai.length<=9;ai+="S")ge(ai,oi);function si(e){return e}function ri(e,t,i,n){var a=dt();n=u().set(n,t);return a[i](n,e)}function ci(e,t,i){if(r(e)&&(t=e,e=void 0),e=e||"",null!=t)return ri(e,t,i,"month");for(var n=[],a=0;a<12;a++)n[a]=ri(e,a,i,"month");return n}function li(e,t,i,n){"boolean"==typeof e?r(t)&&(i=t,t=void 0):(t=e,e=!1,r(i=t)&&(i=t,t=void 0)),t=t||"";var a,o=dt(),s=e?o._week.dow:0,c=[];if(null!=i)return ri(t,(i+s)%7,n,"day");for(a=0;a<7;a++)c[a]=ri(t,(a+s)%7,n,"day");return c}Q=z("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName"),(J=b.prototype).add=Be,J.calendar=function(e,s){1===arguments.length&&(arguments[0]?function(e){return _(e)||c(e)||zt(e)||r(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!r(t)&&zt(e)}).length),t&&n}(e)||function(e){var t,i=n(e)&&!o(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=r.length;for(t=0;t<c;t+=1)s=s||a(e,r[t]);return i&&s}(e)||null==e}(arguments[0])?(e=arguments[0],s=void 0):function(e){for(var t=n(e)&&!o(e),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<s.length;r+=1)i=i||a(e,s[r]);return t&&i}(arguments[0])&&(s=arguments[0],e=void 0):s=e=void 0);var l=Rt(e=e||Nt(),this).startOf("day");l=t.calendarFormat(this,l)||"sameElse",s=s&&(S(s[l])?s[l].call(this,e):s[l]);return this.format(s||this.localeData().calendar(l,this,Nt(e)))},J.clone=function(){return new b(this)},J.diff=function(e,t,i){var n,a,o;if(!this.isValid())return NaN;if(!(n=Rt(e,this)).isValid())return NaN;switch(a=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=qt(this,n)/12;break;case"month":o=qt(this,n);break;case"quarter":o=qt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-a)/864e5;break;case"week":o=(this-n-a)/6048e5;break;default:o=this-n}return i?o:j(o)},J.endOf=function(e){var i,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Qt:Kt,e){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=36e5-Xt(i+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":i=this._d.valueOf(),i+=6e4-Xt(i,6e4)-1;break;case"second":i=this._d.valueOf(),i+=1e3-Xt(i,1e3)-1}return this._d.setTime(i),t.updateOffset(this,!0),this},J.format=function(e){return e=O(this,e=e||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat)),this.localeData().postformat(e)},J.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Nt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},J.fromNow=function(e){return this.from(Nt(),e)},J.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Nt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},J.toNow=function(e){return this.to(Nt(),e)},J.get=function(e){return S(this[e=F(e)])?this[e]():this},J.invalidAt=function(){return p(this).overflow},J.isAfter=function(e,t){return e=_(e)?e:Nt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},J.isBefore=function(e,t){return e=_(e)?e:Nt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},J.isBetween=function(e,t,i,n){return e=_(e)?e:Nt(e),t=_(t)?t:Nt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},J.isSame=function(e,t){e=_(e)?e:Nt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},J.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},J.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},J.isValid=function(){return f(this)},J.lang=Ge,J.locale=Gt,J.localeData=Jt,J.max=ie,J.min=te,J.parsingFlags=function(){return d({},p(this))},J.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)a(e,t)&&i.push({unit:t,priority:U[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=W(e)),n=i.length,o=0;o<n;o++)this[i[o].unit](e[i[o].unit]);else if(S(this[e=F(e)]))return this[e](t);return this},J.startOf=function(e){var i,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Qt:Kt,e){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Xt(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf(),i-=Xt(i,6e4);break;case"second":i=this._d.valueOf(),i-=Xt(i,1e3)}return this._d.setTime(i),t.updateOffset(this,!0),this},J.subtract=ze,J.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},J.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()}},J.toDate=function(){return new Date(this.valueOf())},J.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?O(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",O(t,"Z")):O(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},J.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",i="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(J[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},J.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},J.eraName=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},J.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},J.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},J.eraYear=function(){for(var e,i,n=this.localeData().eras(),a=0,o=n.length;a<o;++a)if(e=n[a].since<=n[a].until?1:-1,i=this.clone().startOf("day").valueOf(),n[a].since<=i&&i<=n[a].until||n[a].until<=i&&i<=n[a].since)return(this.year()-t(n[a].since).year())*e+n[a].offset;return this.year()},J.year=Ee,J.isLeapYear=function(){return V(this.year())},J.weekYear=function(e){return ni.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},J.isoWeekYear=function(e){return ni.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},J.quarter=J.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},J.month=Oe,J.daysInMonth=function(){return De(this.year(),this.month())},J.week=J.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},J.isoWeek=J.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},J.weeksInYear=function(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)},J.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},J.isoWeeksInYear=function(){return je(this.year(),1,4)},J.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},J.date=ae,J.day=J.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},J.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")},J.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN;var t,i},J.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")},J.hour=J.hours=de,J.minute=J.minutes=K,J.second=J.seconds=oe,J.millisecond=J.milliseconds=Q,J.utcOffset=function(e,i,n){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?o:Lt(this);if("string"==typeof e){if(null===(e=Ot(le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&i&&(a=Lt(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!i||this._changeInProgress?Yt(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},J.utc=function(e){return this.utcOffset(0,e)},J.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this},J.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ot(ce,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},J.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},J.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},J.isLocal=function(){return!!this.isValid()&&!this._isUTC},J.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},J.isUtc=Et,J.isUTC=Et,J.zoneAbbr=function(){return this._isUTC?"UTC":""},J.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},J.dates=w("dates accessor is deprecated. Use date instead.",ae),J.months=w("months accessor is deprecated. Use month instead",Oe),J.years=w("years accessor is deprecated. Use year instead",Ee),J.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()}),J.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=St(t))._a?(e=(t._isUTC?u:Nt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t){for(var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,o=0;o<i;o++)Y(e[o])!==Y(t[o])&&a++;return a+n}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),(Z=N.prototype).calendar=function(e,t,i){return S(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},Z.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(T).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Z.invalidDate=function(){return this._invalidDate},Z.ordinal=function(e){return this._ordinal.replace("%d",e)},Z.preparse=si,Z.postformat=si,Z.relativeTime=function(e,t,i,n){var a=this._relativeTime[i];return S(a)?a(e,t,i,n):a.replace(/%d/i,e)},Z.pastFuture=function(e,t){return S(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},Z.set=function(e){var t,i;for(i in e)a(e,i)&&(S(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Z.eras=function(e,i){for(var n,a=this._eras||dt("en")._eras,o=0,s=a.length;o<s;++o){if("string"==typeof a[o].since)n=t(a[o].since).startOf("day"),a[o].since=n.valueOf();switch(typeof a[o].until){case"undefined":a[o].until=1/0;break;case"string":n=t(a[o].until).startOf("day").valueOf(),a[o].until=n.valueOf()}}return a},Z.erasParse=function(e,t,i){var n,a,o,s,r,c=this.eras();for(e=e.toUpperCase(),n=0,a=c.length;n<a;++n)if(o=c[n].name.toUpperCase(),s=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return c[n];break;case"NNNN":if(o===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if(0<=[o,s,r].indexOf(e))return c[n]},Z.erasConvertYear=function(e,i){var n=e.since<=e.until?1:-1;return void 0===i?t(e.since).year():t(e.since).year()+(i-e.offset)*n},Z.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||ti.call(this),e?this._erasAbbrRegex:this._erasRegex},Z.erasNameRegex=function(e){return a(this,"_erasNameRegex")||ti.call(this),e?this._erasNameRegex:this._erasRegex},Z.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||ti.call(this),e?this._erasNarrowRegex:this._erasRegex},Z.months=function(e,t){return e?(i(this._months)?this._months:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"])[e.month()]:i(this._months)?this._months:this._months.standalone},Z.monthsShort=function(e,t){return e?(i(this._monthsShort)?this._monthsShort:this._monthsShort[Ae.test(t)?"format":"standalone"])[e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Z.monthsParse=function(e,t,i){var n,a;if(this._monthsParseExact)return function(e,t,i){var n,a,o;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,e))?a:null:-1!==(a=ye.call(this._longMonthsParse,e))?a:null:"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,e))||-1!==(a=ye.call(this._longMonthsParse,e))?a:null:-1!==(a=ye.call(this._longMonthsParse,e))||-1!==(a=ye.call(this._shortMonthsParse,e))?a:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},Z.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Z.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Me),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Z.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},Z.firstDayOfYear=function(){return this._week.doy},Z.firstDayOfWeek=function(){return this._week.dow},Z.weekdays=function(e,t){return t=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ye(t,this._week.dow):e?t[e.day()]:t},Z.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Z.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Z.weekdaysParse=function(e,t,i){var n,a;if(this._weekdaysParseExact)return function(e,t,i){var n,a,o;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,e))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,e))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,e))?a:null:"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,e))||-1!==(a=ye.call(this._shortWeekdaysParse,e))||-1!==(a=ye.call(this._minWeekdaysParse,e))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,e))||-1!==(a=ye.call(this._weekdaysParse,e))||-1!==(a=ye.call(this._minWeekdaysParse,e))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,e))||-1!==(a=ye.call(this._weekdaysParse,e))||-1!==(a=ye.call(this._shortWeekdaysParse,e))?a:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=u([2e3,1]).day(n),i&&!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")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},Z.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Z.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Z.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Z.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Z.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ct("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===Y(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.",ct),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",dt);var di=Math.abs;function ui(e,t,i,n){return t=Ut(t,i),e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function pi(e){return e<0?Math.floor(e):Math.ceil(e)}function fi(e){return 4800*e/146097}function hi(e){return 146097*e/4800}function mi(e){return function(){return this.as(e)}}function gi(e){return function(){return this.isValid()?this._data[e]:NaN}}ne=mi("ms"),X=mi("s"),Be=mi("m"),ie=mi("h"),te=mi("d"),ze=mi("w"),de=mi("M"),K=mi("Q"),oe=mi("y");Q=gi("milliseconds"),ae=gi("seconds"),Ee=gi("minutes"),Z=gi("hours");var vi=gi("days"),yi=gi("months"),bi=gi("years"),_i=Math.round,Ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var wi=Math.abs;function xi(e){return(0<e)-(e<0)||+e}function Ii(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,a,o,s,r=wi(this._milliseconds)/1e3,c=wi(this._days),l=wi(this._months),d=this.asSeconds();return d?(e=j(r/60),t=j(e/60),r%=60,e%=60,i=j(l/12),l%=12,n=r?r.toFixed(3).replace(/\.?0+$/,""):"",a=xi(this._months)!==xi(d)?"-":"",o=xi(this._days)!==xi(d)?"-":"",s=xi(this._milliseconds)!==xi(d)?"-":"",(d<0?"-":"")+"P"+(i?a+i+"Y":"")+(l?a+l+"M":"")+(c?o+c+"D":"")+(t||e||r?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(r?s+n+"S":"")):"P0D"}var Si=Tt.prototype;return Si.isValid=function(){return this._isValid},Si.abs=function(){var e=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),e.milliseconds=di(e.milliseconds),e.seconds=di(e.seconds),e.minutes=di(e.minutes),e.hours=di(e.hours),e.months=di(e.months),e.years=di(e.years),this},Si.add=function(e,t){return ui(this,e,t,1)},Si.subtract=function(e,t){return ui(this,e,t,-1)},Si.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+fi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(hi(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)}},Si.asMilliseconds=ne,Si.asSeconds=X,Si.asMinutes=Be,Si.asHours=ie,Si.asDays=te,Si.asWeeks=ze,Si.asMonths=de,Si.asQuarters=K,Si.asYears=oe,Si.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12):NaN},Si._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*pi(hi(i)+t),i=t=0),n.milliseconds=e%1e3,e=j(e/1e3),n.seconds=e%60,e=j(e/60),n.minutes=e%60,e=j(e/60),n.hours=e%24,t+=j(e/24),i+=e=j(fi(t)),t-=pi(hi(e)),e=j(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},Si.clone=function(){return Ut(this)},Si.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Si.milliseconds=Q,Si.seconds=ae,Si.minutes=Ee,Si.hours=Z,Si.days=vi,Si.weeks=function(){return j(this.days()/7)},Si.months=yi,Si.years=bi,Si.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=Ci;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(n=Object.assign({},Ci,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),t=function(e,t,i,n){var a=Ut(e).abs(),o=_i(a.as("s")),s=_i(a.as("m")),r=_i(a.as("h")),c=_i(a.as("d")),l=_i(a.as("M")),d=_i(a.as("w"));return a=_i(a.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||s<=1&&["m"]||s<i.m&&["mm",s]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c],(o=(o=null!=i.w?o||d<=1&&["w"]||d<i.w&&["ww",d]:o)||l<=1&&["M"]||l<i.M&&["MM",l]||a<=1&&["y"]||["yy",a])[2]=t,o[3]=0<+e,o[4]=n,function(e,t,i,n,a){return a.relativeTime(t||1,!!i,e,n)}.apply(null,o)}(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)},Si.toISOString=Ii,Si.toString=Ii,Si.toJSON=Ii,Si.locale=Gt,Si.localeData=Jt,Si.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ii),Si.lang=Ge,P("X",0,0,"unix"),P("x",0,0,"valueOf"),ue("x",re),ue("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,i){i._d=new Date(Y(e))}),t.version="2.29.4",e=Nt,t.fn=J,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 Nt(1e3*e)},t.months=function(e,t){return ci(e,t,"months")},t.isDate=c,t.locale=ct,t.invalid=h,t.duration=Ut,t.isMoment=_,t.weekdays=function(e,t,i){return li(e,t,i,"weekdays")},t.parseZone=function(){return Nt.apply(null,arguments).parseZone()},t.localeData=dt,t.isDuration=At,t.monthsShort=function(e,t){return ci(e,t,"monthsShort")},t.weekdaysMin=function(e,t,i){return li(e,t,i,"weekdaysMin")},t.defineLocale=lt,t.updateLocale=function(e,t){var i,n;return null!=t?(n=nt,null!=at[e]&&null!=at[e].parentLocale?at[e].set(k(at[e]._config,t)):(t=k(n=null!=(i=rt(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new N(t)).parentLocale=at[e],at[e]=n),ct(e)):null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===ct()&&ct(e)):null!=at[e]&&delete at[e]),at[e]},t.locales=function(){return D(at)},t.weekdaysShort=function(e,t,i){return li(e,t,i,"weekdaysShort")},t.normalizeUnits=F,t.relativeTimeRounding=function(e){return void 0===e?_i:"function"==typeof e&&(_i=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==Ci[e]&&(void 0===t?Ci[e]:(Ci[e]=t,"s"===e&&(Ci.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=J,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){"use strict";var t=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function i(i,n){return this.each(function(){var a=e(this),o=a.data("bs.modal"),s=e.extend({},t.DEFAULTS,a.data(),"object"==typeof i&&i);o||a.data("bs.modal",o=new t(this,s)),"string"==typeof i?o[i](n):s.show&&o.show(n)})}t.VERSION="3.3.6",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(i){var n=this,a=e.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(a),this.isShown||a.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var a=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),a&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:i});a?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(t.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},t.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.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))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var n=this,a=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&a;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+a).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;o?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):s()}else i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.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=i,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),a=n.attr("href"),o=e(n.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(a)&&a},o.data(),n.data());n.is("a")&&t.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),i.call(o,s,this)})}(jQuery),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.bootbox=t(e.jQuery)}(this,function e(t,i){var n={dialog:"<div class='bootbox modal vagaro-modal'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body web-body-font'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&#xf00d;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},a={locale:"en",backdrop:!0,animate:!0,className:null,closeButton:!0,show:!0,container:"body"},o={};function s(e){var t=f[a.locale];return t?t[e]:f.en[e]}function r(e,i,n){e.stopPropagation(),e.preventDefault(),t.isFunction(n)&&!1===n(e)||i.modal("hide")}function c(e,i){var n=0;t.each(e,function(e,t){i(e,t,n++)})}function l(e,i,n){return t.extend(!0,{},e,function(e,t){var i=e.length,n={};if(i<1||i>2)throw new Error("Invalid argument length");return 2===i||"string"==typeof e[0]?(n[t[0]]=e[0],n[t[1]]=e[1]):n=e[0],n}(i,n))}function d(e,t,i,n){return p(l({className:"bootbox-"+e,buttons:u.apply(null,t)},n,i),t)}function u(){for(var e={},t=0,i=arguments.length;t<i;t++){var n=arguments[t],a=n.toLowerCase(),o=n.toUpperCase();e[a]={label:s(o)}}return e}function p(e,t){var n={};return c(t,function(e,t){n[t]=!0}),c(e.buttons,function(e){if(n[e]===i)throw new Error("button key "+e+" is not allowed (options are "+t.join("\n")+")")}),e}o.alert=function(){var e;if(arguments[1]="Alert",(e=d("alert",["ok"],["message","title","callback"],arguments)).callback&&!t.isFunction(e.callback))throw new Error("alert requires callback property to be a function when provided");return e.buttons.ok.callback=e.onEscape=function(){return!t.isFunction(e.callback)||e.callback()},o.dialog(e)},o.alertsmall=function(){var e;if(arguments[1]="Alert",(e=d("alert",["ok"],["message","title","callback"],arguments)).callback&&!t.isFunction(e.callback))throw new Error("alert requires callback property to be a function when provided");return e.buttons.ok.callback=e.onEscape=function(){return!t.isFunction(e.callback)||e.callback()},e.size="small",o.dialog(e)},o.confirm=function(){var e;if((e=d("confirm",["cancel","confirm"],["message","callback"],arguments)).buttons.cancel.callback=e.onEscape=function(){return e.callback(!1)},e.buttons.confirm.callback=function(){return e.callback(!0)},!t.isFunction(e.callback))throw new Error("confirm requires a callback");return o.dialog(e)},o.prompt=function(){var e,a,s,r,d,f,h;if(r=t(n.form),a={className:"bootbox-prompt",buttons:u("cancel","confirm"),value:"",inputType:"text"},f=(e=p(l(a,arguments,["title","callback"]),["cancel","confirm"])).show===i||e.show,e.message=r,e.buttons.cancel.callback=e.onEscape=function(){return e.callback(null)},e.buttons.confirm.callback=function(){var i;switch(e.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":i=d.val();break;case"checkbox":var n=d.find("input:checked");i=[],c(n,function(e,n){i.push(t(n).val())})}return e.callback(i)},e.show=!1,!e.title)throw new Error("prompt requires a title");if(!t.isFunction(e.callback))throw new Error("prompt requires a callback");if(!n.inputs[e.inputType])throw new Error("invalid prompt type");switch(d=t(n.inputs[e.inputType]),e.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":d.val(e.value);break;case"select":var m={};if(!(h=e.inputOptions||[]).length)throw new Error("prompt with select requires options");c(h,function(e,n){var a=d;if(n.value===i||n.text===i)throw new Error("given options in wrong format");n.group&&(m[n.group]||(m[n.group]=t("<optgroup/>").attr("label",n.group)),a=m[n.group]),a.append("<option value='"+n.value+"'>"+n.text+"</option>")}),c(m,function(e,t){d.append(t)}),d.val(e.value);break;case"checkbox":var g=t.isArray(e.value)?e.value:[e.value];if(!(h=e.inputOptions||[]).length)throw new Error("prompt with checkbox requires options");if(!h[0].value||!h[0].text)throw new Error("given options in wrong format");d=t("<div/>"),c(h,function(i,a){var o=t(n.inputs[e.inputType]);o.find("input").attr("value",a.value),o.find("label").append(a.text),c(g,function(e,t){t===a.value&&o.find("input").prop("checked",!0)}),d.append(o)})}return e.placeholder&&d.attr("placeholder",e.placeholder),e.pattern&&d.attr("pattern",e.pattern),r.append(d),r.on("submit",function(e){e.preventDefault(),e.stopPropagation(),s.find(".btn-primary").click()}),(s=o.dialog(e)).off("shown.bs.modal"),s.on("shown.bs.modal",function(){d.focus()}),!0===f&&s.modal("show"),s},o.dialog=function(e){e=function(e){var i,n;if("object"!=typeof e)throw new Error("Please supply an object of options");if(!e.message)throw new Error("Please specify a message");return(e=t.extend({},a,e)).buttons||(e.buttons={}),e.backdrop=!!e.backdrop&&"static",i=e.buttons,n=function(e){var t,i=0;for(t in e)i++;return i}(i),c(i,function(e,a,o){if(t.isFunction(a)&&(a=i[e]={callback:a}),"object"!==t.type(a))throw new Error("button with key "+e+" must be an object");a.label||(a.label=e),a.className||(a.className=n<=2&&o===n-1?"btn-primary new-vgcustm-wb green-primary-button":"btn-default secondary-button")}),e}(e);var i=t(n.dialog),o=i.find(".modal-dialog"),s=i.find(".modal-body"),l=e.buttons,d="",u={onEscape:e.onEscape};if(c(l,function(e,t){if("a"==t.type)"Heart"==e?(t.className=t.className+" round-heart-icon",d+="<a id='ancHeart'  href=\"javascript:void();\" data-bb-handler='"+e+"' class='"+t.className+"' title = '"+e+"'></a>"):d+='<a href="javascript:void();" data-bb-handler=\''+e+"' class='"+t.className+"' title = '"+e+"'></a>";else if("span"==t.type){var i=t.className.split("|");d+="  <span id='spnHeartValue' style='float: left; margin-top: 5px;' class='heartArr[0]'>"+i[1]+"</span>"}else"Cancel"==t.label?d+="<button data-bb-handler='"+e+"' type='button' class='btn "+t.className+" secondary-button'>"+t.label+"</button>":d+="<button data-bb-handler='"+e+"' type='button' class='btn "+t.className+"'>"+t.label+"</button>";u[e]=t.callback}),s.find(".bootbox-body").html(e.message),!0===e.animate&&i.addClass("fade"),e.className&&i.addClass(e.className),"large"===e.size&&o.addClass("modal-lg"),"small"===e.size&&o.addClass("modal-sm"),e.title&&s.before(n.header),e.closeButton){var p=t(n.closeButton);e.title?i.find(".modal-header").prepend(p):p.css("margin-top","-10px").prependTo(s)}e.title&&i.find(".modal-title").html(e.title),d.length&&(s.after(n.footer),i.find(".modal-footer").html(d)),i.on("hidden.bs.modal",function(e){e.target===this&&i.remove()}),i.on("show.bs.modal",function(){"undefined"!=typeof setPopupPosi&&"undefined"!=typeof getQueryStringData&&"Builder"==getQueryStringData("Type")&&(t(this).addClass("wbbootbox"),setPopupPosi(this))}),i.on("shown.bs.modal",function(){i.find(".btn-primary:first").focus();var e=Math.min(t(window).height(),screen.availHeight);if("undefined"==typeof $Interframe){i.find(".modal-dialog").css("margin-top");var n=(e-i.find(".modal-dialog").height())/2;i.find(".modal-dialog").animate({"margin-top":n},50)}}),i.on("escape.close.bb",function(e){u.onEscape&&r(e,i,u.onEscape)}),i.on("touchstart click",".modal-footer button",function(e){var n=t(this).data("bb-handler");r(e,i,u[n])}),i.on("touchstart click",".modal-footer a",function(e){var n=t(this).data("bb-handler");r(e,i,u[n])}),i.on("touchstart click",".bootbox-close-button",function(e){r(e,i,u.onEscape)}),i.on("keyup",function(e){27===e.which&&i.trigger("escape.close.bb")}),t(e.container).append(i),i.modal({backdrop:e.backdrop,keyboard:!1,show:!1}),e.show&&i.modal("show");var f=Math.min(t(window).height(),screen.availHeight);return"undefined"==typeof $Interframe&&i.find(".modal-dialog").css("margin-top",(f-i.find(".modal-dialog").height())/2-200),i},o.setDefaults=function(){var e={};2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],t.extend(a,e)},o.hideAll=function(){return t(".bootbox").modal("hide"),o};var f={br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return o.init=function(i){return e(i||t)},o}),function(e,t,i){"use strict";!function e(t,i,n){function a(s,r){if(!i[s]){if(!t[s]){var c="function"==typeof require&&require;if(!r&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[s]={exports:{}};t[s][0].call(d.exports,function(e){var i=t[s][1][e];return a(i||e)},d,d.exports,e,t,i,n)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(n,a,o){var s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0});var r,c,l,d,u=n("./modules/handle-dom"),p=n("./modules/utils"),f=n("./modules/handle-swal-dom"),h=n("./modules/handle-click"),m=s(n("./modules/handle-key")),g=s(n("./modules/default-params")),v=s(n("./modules/set-params"));o.default=l=d=function(){function n(e){var t=a;return t[e]===i?g.default[e]:t[e]}var a=arguments[0];if(u.addClass(t.body,"stop-scrolling"),f.resetInput(),a===i)return p.logStr("SweetAlert expects at least 1 attribute!"),!1;var o=p.extend({},g.default);switch(typeof a){case"string":o.title=a,o.text=arguments[1]||"",o.type=arguments[2]||"";break;case"object":if(a.title===i)return p.logStr('Missing "title" argument!'),!1;for(var s in o.title=a.title,g.default)o[s]=n(s);o.confirmButtonText=o.showCancelButton?"Confirm":g.default.confirmButtonText,o.confirmButtonText=n("confirmButtonText"),o.doneFunction=arguments[1]||null;break;default:return p.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof a),!1}"undefined"!=typeof SweetAlertBeforeOpenCallback&&SweetAlertBeforeOpenCallback(arguments,f.getModal()),v.default(o),f.fixVerticalPosition(),f.openModal(arguments[1]),"undefined"!=typeof SweetAlertOpenCallback&&SweetAlertOpenCallback(arguments,f.getModal());for(var l=f.getModal(),y=l.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],_=function(e){return h.handleButton(e,o,l)},C=0;C<y.length;C++)for(var w=0;w<b.length;w++){var x=b[w];y[C][x]=_}f.getOverlay().onclick=_,r=e.onkeydown;e.onkeydown=function(e){return m.default(e,o,l)},e.onfocus=function(){setTimeout(function(){c!==i&&(c.focus(),c=i)},0)},d.enableButtons()},l.setDefaults=d.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");p.extend(g.default,e)},l.close=d.close=function(){$(".gencutom-title").html("Alert");var n=f.getModal();"undefined"!=typeof SweetAlertCloseCallback&&setTimeout(function(){SweetAlertCloseCallback(e.previousActiveElement,n)},1),u.fadeOut(f.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 o=n.querySelector(".sa-icon.sa-error");u.removeClass(o,"animateErrorIcon"),u.removeClass(o.querySelector(".sa-x-mark"),"animateXMark");var s=n.querySelector(".sa-icon.sa-warning");return u.removeClass(s,"pulseWarning"),u.removeClass(s.querySelector(".sa-body"),"pulseWarningIns"),u.removeClass(s.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=r,e.previousActiveElement&&e.previousActiveElement.focus(),c=i,clearTimeout(n.timeout),!0},l.showInputError=d.showInputError=function(e){var t=f.getModal(),i=t.querySelector(".sa-input-error");u.addClass(i,"show");var n=t.querySelector(".sa-error-container");u.addClass(n,"show"),n.querySelector("p").innerHTML=e,setTimeout(function(){l.enableButtons()},1),t.querySelector("input").focus()},l.resetInputError=d.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=f.getModal(),i=t.querySelector(".sa-input-error");u.removeClass(i,"show");var n=t.querySelector(".sa-error-container");u.removeClass(n,"show")},l.disableButtons=d.disableButtons=function(){var e=f.getModal(),t=e.querySelector("button.confirm"),i=e.querySelector("button.cancel");t.disabled=!0,i.disabled=!0},l.enableButtons=d.enableButtons=function(){var e=f.getModal(),t=e.querySelector("button.confirm"),i=e.querySelector("button.cancel");t.disabled=!1,i.disabled=!1},void 0!==e?e.sweetAlert=e.swal=l:p.logStr("SweetAlert is a frontend module!"),a.exports=o.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,i){Object.defineProperty(i,"__esModule",{value:!0});i.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=i.default},{}],3:[function(t,i,n){Object.defineProperty(n,"__esModule",{value:!0});var a=t("./utils"),o=(t("./handle-swal-dom"),t("./handle-dom")),s=function(e,t){var i=!0;o.hasClass(e,"show-input")&&((i=e.querySelector("input").value)||(i="")),t.doneFunction(i),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},r=function(e,t){var i=String(t.doneFunction).replace(/\s/g,"");"function("===i.substring(0,9)&&")"!==i.substring(9,10)&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};n.default={handleButton:function(t,i,n){function c(e){h&&i.confirmButtonColor&&(f.style.backgroundColor=e)}var l,d,u,p=t||e.event,f=p.target||p.srcElement,h=-1!==f.className.indexOf("confirm"),m=-1!==f.className.indexOf("sweet-overlay"),g=o.hasClass(n,"visible"),v=i.doneFunction&&"true"===n.getAttribute("data-has-done-function");switch(h&&i.confirmButtonColor&&(l=i.confirmButtonColor,d=a.colorLuminance(l,-.04),u=a.colorLuminance(l,-.14)),p.type){case"mouseover":case"mouseup":c(d);break;case"mouseout":c(l);break;case"mousedown":c(u);break;case"focus":var y=n.querySelector("button.confirm"),b=n.querySelector("button.cancel");h?b.style.boxShadow="none":y.style.boxShadow="none";break;case"click":var _=n===f,C=o.isDescendant(n,f);if(!_&&!C&&g&&!i.allowOutsideClick)break;h&&v&&g?s(n,i):v&&g||m?r(n,i):o.isDescendant(n,f)&&"BUTTON"===f.tagName&&sweetAlert.close()}},handleConfirm:s,handleCancel:r},i.exports=n.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(i,n,a){Object.defineProperty(a,"__esModule",{value:!0});var o=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},s=function(e){e.style.opacity="",e.style.display="block"},r=function(e){e.style.opacity="",e.style.display="none"};a.hasClass=o,a.addClass=function(e,t){o(e,t)||(e.className+=" "+t)},a.removeClass=function(e,t){var i=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(o(e,t)){for(;i.indexOf(" "+t+" ")>=0;)i=i.replace(" "+t+" "," ");e.className=i.replace(/^\s+|\s+$/g,"")}},a.escapeHtml=function(e){var i=t.createElement("div");return i.appendChild(t.createTextNode(e)),i.innerHTML},a._show=s,a.show=function(e){if(e&&!e.length)return s(e);for(var t=0;t<e.length;++t)s(e[t])},a._hide=r,a.hide=function(e){if(e&&!e.length)return r(e);for(var t=0;t<e.length;++t)r(e[t])},a.isDescendant=function(e,t){for(var i=t.parentNode;null!==i;){if(i===e)return!0;i=i.parentNode}return!1},a.getTopMargin=function(e){e.style.left="-9999px",e.style.display="block";var t,i=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=i/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((i+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((i+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 i=+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-i)/100,i=+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 i=+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-i)/100,i=+new Date,+e.style.opacity>0?setTimeout(n,t):e.style.display="none"});n()},a.fireClick=function(i){if("function"==typeof MouseEvent){var n=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});i.dispatchEvent(n)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a)}else t.createEventObject?i.fireEvent("onclick"):"function"==typeof i.onclick&&i.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 o=t("./handle-dom"),s=t("./handle-swal-dom");a.default=function(t,n,a){var r=t||e.event,c=r.keyCode||r.which,l=a.querySelector("button.confirm"),d=a.querySelector("button.cancel"),u=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(c)){for(var p=r.target||r.srcElement,f=-1,h=0;h<u.length;h++)if(p===u[h]){f=h;break}9===c?(p=-1===f?l:f===u.length-1?u[0]:u[f+1],o.stopEventPropagation(r),p.focus(),n.confirmButtonColor&&s.setFocusStyle(p,n.confirmButtonColor)):13===c?("INPUT"===p.tagName&&(p=l,l.focus()),p=-1===f?l:i):27===c&&!0===n.allowEscapeKey?(p=d,o.fireClick(p,r)):p=i}},n.exports=a.default},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(i,n,a){var o=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var s=i("./utils"),r=i("./handle-dom"),c=o(i("./default-params")),l=o(i("./injected-html")),d=function(){var e=t.createElement("div");for(e.innerHTML=l.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||(d(),e=u()),e}),p=function(){var e=u();return e?e.querySelector("input"):void 0},f=function(){return t.querySelector(".sweet-overlay")},h=function(e){if(e&&13===e.keyCode)return!1;var t=u(),i=t.querySelector(".sa-input-error");r.removeClass(i,"show");var n=t.querySelector(".sa-error-container");r.removeClass(n,"show")};a.sweetAlertInitialize=d,a.getModal=u,a.getOverlay=f,a.getInput=p,a.setFocusStyle=function(e,t){var i=s.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+i+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},a.openModal=function(i){var n=u();r.fadeIn(f(),10),r.show(n),r.addClass(n,"showSweetAlert"),r.removeClass(n,"hideSweetAlert"),e.previousActiveElement=t.activeElement,n.querySelector("button.confirm").focus(),setTimeout(function(){r.addClass(n,"visible"),"undefined"!=typeof WebsiteBuilderType&&"Builder"==WebsiteBuilderType&&r.addClass(n,"wbshowSweetAlert")},500);var a=n.getAttribute("data-timer");if("null"!==a&&""!==a){var o=i;n.timeout=setTimeout(function(){(o?"true"===n.getAttribute("data-has-done-function"):null)?o(null):sweetAlert.close()},a)}},a.resetInput=function(){var e=u(),t=p();r.removeClass(e,"show-input"),t.value=c.default.inputValue,t.setAttribute("type",c.default.inputType),t.setAttribute("placeholder",c.default.inputPlaceholder),h()},a.resetInputError=h,a.fixVerticalPosition=function(){u().style.marginTop=r.getTopMargin(u())}},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});i.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=i.default},{}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var a=e("./utils"),o=e("./handle-swal-dom"),s=e("./handle-dom"),r=["error","warning","info","success","input","prompt"];n.default=function(e){var t=o.getModal(),n=t.querySelector("h2"),c=t.querySelector("p"),l=t.querySelector("button.cancel"),d=t.querySelector("button.confirm");if(n.innerHTML=e.html?e.title:s.escapeHtml(e.title).split("\n").join("<br>"),c.innerHTML=e.html?e.text:s.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&s.show(c),e.customClass)s.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var u=t.getAttribute("data-custom-class");s.removeClass(t,u),t.setAttribute("data-custom-class","")}if(s.hide(t.querySelectorAll(".sa-icon")),e.type&&!a.isIE8()){var p=function(){for(var n=!1,a=0;a<r.length;a++)if(e.type===r[a]){n=!0;break}if(!n)return logStr("Unknown alert type: "+e.type),{v:!1};var c=i;-1!==["success","error","warning","info"].indexOf(e.type)&&(c=t.querySelector(".sa-icon.sa-"+e.type),s.show(c));var l=o.getInput();switch(e.type){case"success":s.addClass(c,"animate"),s.addClass(c.querySelector(".sa-tip"),"animateSuccessTip"),s.addClass(c.querySelector(".sa-long"),"animateSuccessLong");break;case"error":s.addClass(c,"animateErrorIcon"),s.addClass(c.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":s.addClass(c,"pulseWarning"),s.addClass(c.querySelector(".sa-body"),"pulseWarningIns"),s.addClass(c.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":l.setAttribute("type",e.inputType),l.value=e.inputValue,l.setAttribute("placeholder",e.inputPlaceholder),s.addClass(t,"show-input"),setTimeout(function(){l.focus(),l.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof p)return p.v}if(e.imageUrl){var f=t.querySelector(".sa-icon.sa-custom");f.style.backgroundImage="url("+e.imageUrl+")",s.show(f);var h=80,m=80;if(e.imageSize){var g=e.imageSize.toString().split("x"),v=g[0],y=g[1];v&&y?(h=v,m=y):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}f.setAttribute("style",f.getAttribute("style")+"width:"+h+"px; height:"+m+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?l.style.display="inline-block":s.hide(l),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?d.style.display="inline-block":s.hide(d),e.cancelButtonText&&(l.innerHTML=s.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(d.innerHTML=s.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(d.style.backgroundColor=e.confirmButtonColor,d.style.borderLeftColor=e.confirmLoadingButtonColor,d.style.borderRightColor=e.confirmLoadingButtonColor,o.setFocusStyle(d,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var b=!!e.doneFunction;t.setAttribute("data-has-done-function",b),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,i,n){Object.defineProperty(n,"__esModule",{value:!0});n.extend=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);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 i,n,a="#";for(n=0;3>n;n++)i=parseInt(e.substr(2*n,2),16),a+=("00"+(i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16))).substr(i.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")})}),$("#hdnGetEk").length>0){var _0x95cd=["lib","Base","prototype","mixIn","init","hasOwnProperty","apply","$super","extend","toString","WordArray","words","sigBytes","length","stringify","clamp","push","ceil","call","clone","slice","random","enc","Hex","","join","substr","Latin1","fromCharCode","charCodeAt","Utf8","Malformed UTF-8 data","parse","BufferedBlockAlgorithm","_data","_nDataBytes","string","concat","blockSize","_minBufferSize","max","min","splice","Hasher","cfg","reset","finalize","HMAC","algo","Base64","_map","charAt","indexOf","create","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","sin","abs","MD5","_hash","floor","HmacMD5","EvpKDF","hasher","keySize","iterations","update","compute","Cipher","_xformMode","_key","encrypt","decrypt","StreamCipher","mode","_iv","_prevBlock","BlockCipherMode","Encryptor","Decryptor","_cipher","encryptBlock","decryptBlock","CBC","Pkcs7","pad","BlockCipher","iv","_ENC_XFORM_MODE","createEncryptor","createDecryptor","_mode","processBlock","padding","unpad","CipherParams","formatter","OpenSSL","format","ciphertext","salt","SerializableCipher","kdf","PasswordBasedCipher","ivSize","execute","key","AES","_nRounds","_keySchedule","_invKeySchedule"],CryptoJS=CryptoJS||function(e,t){var i={},n=i[_0x95cd[0]]={},a=function(){},o=n[_0x95cd[1]]={extend:function(e){a[_0x95cd[2]]=this;var t=new a;return e&&t[_0x95cd[3]](e),t[_0x95cd[5]](_0x95cd[4])||(t[_0x95cd[4]]=function(){t[_0x95cd[7]][_0x95cd[4]][_0x95cd[6]](this,arguments)}),t[_0x95cd[4]][_0x95cd[2]]=t,t[_0x95cd[7]]=this,t},create:function(){var e=this[_0x95cd[8]]();return e[_0x95cd[4]][_0x95cd[6]](e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e[_0x95cd[5]](t)&&(this[t]=e[t]);e[_0x95cd[5]](_0x95cd[9])&&(this[_0x95cd[9]]=e[_0x95cd[9]])},clone:function(){return this[_0x95cd[4]][_0x95cd[2]][_0x95cd[8]](this)}},s=n[_0x95cd[10]]=o[_0x95cd[8]]({init:function(e,t){e=this[_0x95cd[11]]=e||[],this[_0x95cd[12]]=null!=t?t:4*e[_0x95cd[13]]},toString:function(e){return(e||c)[_0x95cd[14]](this)},concat:function(e){var t=this[_0x95cd[11]],i=e[_0x95cd[11]],n=this[_0x95cd[12]];if(e=e[_0x95cd[12]],this[_0x95cd[15]](),n%4)for(var a=0;a<e;a++)t[n+a>>>2]|=(i[a>>>2]>>>24-a%4*8&255)<<24-(n+a)%4*8;else if(65535<i[_0x95cd[13]])for(a=0;a<e;a+=4)t[n+a>>>2]=i[a>>>2];else t[_0x95cd[16]][_0x95cd[6]](t,i);return this[_0x95cd[12]]+=e,this},clamp:function(){var t=this[_0x95cd[11]],i=this[_0x95cd[12]];t[i>>>2]&=4294967295<<32-i%4*8,t[_0x95cd[13]]=e[_0x95cd[17]](i/4)},clone:function(){var e=o[_0x95cd[19]][_0x95cd[18]](this);return e[_0x95cd[11]]=this[_0x95cd[11]][_0x95cd[20]](0),e},random:function(t){for(var i=[],n=0;n<t;n+=4)i[_0x95cd[16]](4294967296*e[_0x95cd[21]]()|0);return new s[_0x95cd[4]](i,t)}}),r=i[_0x95cd[22]]={},c=r[_0x95cd[23]]={stringify:function(e){var t=e[_0x95cd[11]];e=e[_0x95cd[12]];for(var i=[],n=0;n<e;n++){var a=t[n>>>2]>>>24-n%4*8&255;i[_0x95cd[16]]((a>>>4).toString(16)),i[_0x95cd[16]]((15&a).toString(16))}return i[_0x95cd[25]](_0x95cd[24])},parse:function(e){for(var t=e[_0x95cd[13]],i=[],n=0;n<t;n+=2)i[n>>>3]|=parseInt(e[_0x95cd[26]](n,2),16)<<24-n%8*4;return new s[_0x95cd[4]](i,t/2)}},l=r[_0x95cd[27]]={stringify:function(e){var t=e[_0x95cd[11]];e=e[_0x95cd[12]];for(var i=[],n=0;n<e;n++)i[_0x95cd[16]](String[_0x95cd[28]](t[n>>>2]>>>24-n%4*8&255));return i[_0x95cd[25]](_0x95cd[24])},parse:function(e){for(var t=e[_0x95cd[13]],i=[],n=0;n<t;n++)i[n>>>2]|=(255&e[_0x95cd[29]](n))<<24-n%4*8;return new s[_0x95cd[4]](i,t)}},d=r[_0x95cd[30]]={stringify:function(e){try{return decodeURIComponent(escape(l[_0x95cd[14]](e)))}catch(e){throw Error(_0x95cd[31])}},parse:function(e){return l[_0x95cd[32]](unescape(encodeURIComponent(e)))}},u=n[_0x95cd[33]]=o[_0x95cd[8]]({reset:function(){this[_0x95cd[34]]=new s[_0x95cd[4]],this[_0x95cd[35]]=0},_append:function(e){_0x95cd[36]==typeof e&&(e=d[_0x95cd[32]](e)),this[_0x95cd[34]][_0x95cd[37]](e),this[_0x95cd[35]]+=e[_0x95cd[12]]},_process:function(t){var i=this[_0x95cd[34]],n=i[_0x95cd[11]],a=i[_0x95cd[12]],o=this[_0x95cd[38]],r=a/(4*o);if(t=(r=t?e[_0x95cd[17]](r):e[_0x95cd[40]]((0|r)-this[_0x95cd[39]],0))*o,a=e[_0x95cd[41]](4*t,a),t){for(var c=0;c<t;c+=o)this._doProcessBlock(n,c);c=n[_0x95cd[42]](0,t),i[_0x95cd[12]]-=a}return new s[_0x95cd[4]](c,a)},clone:function(){var e=o[_0x95cd[19]][_0x95cd[18]](this);return e[_0x95cd[34]]=this[_0x95cd[34]][_0x95cd[19]](),e},_minBufferSize:0});n[_0x95cd[43]]=u[_0x95cd[8]]({cfg:o[_0x95cd[8]](),init:function(e){this[_0x95cd[44]]=this[_0x95cd[44]][_0x95cd[8]](e),this[_0x95cd[45]]()},reset:function(){u[_0x95cd[45]][_0x95cd[18]](this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e[_0x95cd[4]](i)[_0x95cd[46]](t)}},_createHmacHelper:function(e){return function(t,i){return new p[_0x95cd[47]][_0x95cd[4]](e,i)[_0x95cd[46]](t)}}});var p=i[_0x95cd[48]]={};return i}(Math);!function(){var e=CryptoJS,t=e[_0x95cd[0]][_0x95cd[10]];e[_0x95cd[22]][_0x95cd[49]]={stringify:function(e){var t=e[_0x95cd[11]],i=e[_0x95cd[12]],n=this[_0x95cd[50]];e[_0x95cd[15]](),e=[];for(var a=0;a<i;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;4>s&&a+.75*s<i;s++)e[_0x95cd[16]](n[_0x95cd[51]](o>>>6*(3-s)&63));if(t=n[_0x95cd[51]](64))for(;e[_0x95cd[13]]%4;)e[_0x95cd[16]](t);return e[_0x95cd[25]](_0x95cd[24])},parse:function(e){var i=e[_0x95cd[13]],n=this[_0x95cd[50]];(a=n[_0x95cd[51]](64))&&(-1!=(a=e[_0x95cd[52]](a))&&(i=a));for(var a=[],o=0,s=0;s<i;s++)if(s%4){var r=n[_0x95cd[52]](e[_0x95cd[51]](s-1))<<s%4*2,c=n[_0x95cd[52]](e[_0x95cd[51]](s))>>>6-s%4*2;a[o>>>2]|=(r|c)<<24-o%4*8,o++}return t[_0x95cd[53]](a,o)},_map:_0x95cd[54]}}(),function(e){function t(e,t,i,n,a,o,s){return((e=e+(t&i|~t&n)+a+s)<<o|e>>>32-o)+t}function i(e,t,i,n,a,o,s){return((e=e+(t&n|i&~n)+a+s)<<o|e>>>32-o)+t}function n(e,t,i,n,a,o,s){return((e=e+(t^i^n)+a+s)<<o|e>>>32-o)+t}function a(e,t,i,n,a,o,s){return((e=e+(i^(t|~n))+a+s)<<o|e>>>32-o)+t}for(var o=CryptoJS,s=(c=o[_0x95cd[0]])[_0x95cd[10]],r=c[_0x95cd[43]],c=o[_0x95cd[48]],l=[],d=0;64>d;d++)l[d]=4294967296*e[_0x95cd[56]](e[_0x95cd[55]](d+1))|0;c=c[_0x95cd[57]]=r[_0x95cd[8]]({_doReset:function(){this[_0x95cd[58]]=new s[_0x95cd[4]]([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var s=0;16>s;s++){var r=e[c=o+s];e[c]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}s=this[_0x95cd[58]][_0x95cd[11]];var c=e[o+0],d=(r=e[o+1],e[o+2]),u=e[o+3],p=e[o+4],f=e[o+5],h=e[o+6],m=e[o+7],g=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],_=e[o+12],C=e[o+13],w=e[o+14],x=e[o+15],I=t(I=s[0],N=s[1],k=s[2],S=s[3],c,7,l[0]),S=t(S,I,N,k,r,12,l[1]),k=t(k,S,I,N,d,17,l[2]),N=t(N,k,S,I,u,22,l[3]);I=t(I,N,k,S,p,7,l[4]),S=t(S,I,N,k,f,12,l[5]),k=t(k,S,I,N,h,17,l[6]),N=t(N,k,S,I,m,22,l[7]),I=t(I,N,k,S,g,7,l[8]),S=t(S,I,N,k,v,12,l[9]),k=t(k,S,I,N,y,17,l[10]),N=t(N,k,S,I,b,22,l[11]),I=t(I,N,k,S,_,7,l[12]),S=t(S,I,N,k,C,12,l[13]),k=t(k,S,I,N,w,17,l[14]),I=i(I,N=t(N,k,S,I,x,22,l[15]),k,S,r,5,l[16]),S=i(S,I,N,k,h,9,l[17]),k=i(k,S,I,N,b,14,l[18]),N=i(N,k,S,I,c,20,l[19]),I=i(I,N,k,S,f,5,l[20]),S=i(S,I,N,k,y,9,l[21]),k=i(k,S,I,N,x,14,l[22]),N=i(N,k,S,I,p,20,l[23]),I=i(I,N,k,S,v,5,l[24]),S=i(S,I,N,k,w,9,l[25]),k=i(k,S,I,N,u,14,l[26]),N=i(N,k,S,I,g,20,l[27]),I=i(I,N,k,S,C,5,l[28]),S=i(S,I,N,k,d,9,l[29]),k=i(k,S,I,N,m,14,l[30]),I=n(I,N=i(N,k,S,I,_,20,l[31]),k,S,f,4,l[32]),S=n(S,I,N,k,g,11,l[33]),k=n(k,S,I,N,b,16,l[34]),N=n(N,k,S,I,w,23,l[35]),I=n(I,N,k,S,r,4,l[36]),S=n(S,I,N,k,p,11,l[37]),k=n(k,S,I,N,m,16,l[38]),N=n(N,k,S,I,y,23,l[39]),I=n(I,N,k,S,C,4,l[40]),S=n(S,I,N,k,c,11,l[41]),k=n(k,S,I,N,u,16,l[42]),N=n(N,k,S,I,h,23,l[43]),I=n(I,N,k,S,v,4,l[44]),S=n(S,I,N,k,_,11,l[45]),k=n(k,S,I,N,x,16,l[46]),I=a(I,N=n(N,k,S,I,d,23,l[47]),k,S,c,6,l[48]),S=a(S,I,N,k,m,10,l[49]),k=a(k,S,I,N,w,15,l[50]),N=a(N,k,S,I,f,21,l[51]),I=a(I,N,k,S,_,6,l[52]),S=a(S,I,N,k,u,10,l[53]),k=a(k,S,I,N,y,15,l[54]),N=a(N,k,S,I,r,21,l[55]),I=a(I,N,k,S,g,6,l[56]),S=a(S,I,N,k,x,10,l[57]),k=a(k,S,I,N,h,15,l[58]),N=a(N,k,S,I,C,21,l[59]),I=a(I,N,k,S,p,6,l[60]),S=a(S,I,N,k,b,10,l[61]),k=a(k,S,I,N,d,15,l[62]),N=a(N,k,S,I,v,21,l[63]);s[0]=s[0]+I|0,s[1]=s[1]+N|0,s[2]=s[2]+k|0,s[3]=s[3]+S|0},_doFinalize:function(){var t=this[_0x95cd[34]],i=t[_0x95cd[11]],n=8*this[_0x95cd[35]],a=8*t[_0x95cd[12]];i[a>>>5]|=128<<24-a%32;var o=e[_0x95cd[59]](n/4294967296);for(i[15+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t[_0x95cd[12]]=4*(i[_0x95cd[13]]+1),this._process(),i=(t=this[_0x95cd[58]])[_0x95cd[11]],n=0;4>n;n++)a=i[n],i[n]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);return t},clone:function(){var e=r[_0x95cd[19]][_0x95cd[18]](this);return e[_0x95cd[58]]=this[_0x95cd[58]][_0x95cd[19]](),e}}),o[_0x95cd[57]]=r._createHelper(c),o[_0x95cd[60]]=r._createHmacHelper(c)}(Math),function(){var e,t=CryptoJS,i=(e=t[_0x95cd[0]])[_0x95cd[1]],n=e[_0x95cd[10]],a=(e=t[_0x95cd[48]])[_0x95cd[61]]=i[_0x95cd[8]]({cfg:i[_0x95cd[8]]({keySize:4,hasher:e[_0x95cd[57]],iterations:1}),init:function(e){this[_0x95cd[44]]=this[_0x95cd[44]][_0x95cd[8]](e)},compute:function(e,t){for(var i=(r=this[_0x95cd[44]])[_0x95cd[62]][_0x95cd[53]](),a=n[_0x95cd[53]](),o=a[_0x95cd[11]],s=r[_0x95cd[63]],r=r[_0x95cd[64]];o[_0x95cd[13]]<s;){c&&i[_0x95cd[65]](c);var c=i[_0x95cd[65]](e)[_0x95cd[46]](t);i[_0x95cd[45]]();for(var l=1;l<r;l++)c=i[_0x95cd[46]](c),i[_0x95cd[45]]();a[_0x95cd[37]](c)}return a[_0x95cd[12]]=4*s,a}});t[_0x95cd[61]]=function(e,t,i){return a[_0x95cd[53]](i)[_0x95cd[66]](e,t)}}(),CryptoJS[_0x95cd[0]][_0x95cd[67]]||function(e){var t=(f=CryptoJS)[_0x95cd[0]],i=t[_0x95cd[1]],n=t[_0x95cd[10]],a=t[_0x95cd[33]],o=f[_0x95cd[22]][_0x95cd[49]],s=f[_0x95cd[48]][_0x95cd[61]],r=t[_0x95cd[67]]=a[_0x95cd[8]]({cfg:i[_0x95cd[8]](),createEncryptor:function(e,t){return this[_0x95cd[53]](this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this[_0x95cd[53]](this._DEC_XFORM_MODE,e,t)},init:function(e,t,i){this[_0x95cd[44]]=this[_0x95cd[44]][_0x95cd[8]](i),this[_0x95cd[68]]=e,this[_0x95cd[69]]=t,this[_0x95cd[45]]()},reset:function(){a[_0x95cd[45]][_0x95cd[18]](this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,i,n){return(_0x95cd[36]==typeof i?h:p)[_0x95cd[70]](e,t,i,n)},decrypt:function(t,i,n){return(_0x95cd[36]==typeof i?h:p)[_0x95cd[71]](e,t,i,n)}}}});t[_0x95cd[72]]=r[_0x95cd[8]]({_doFinalize:function(){return this._process(!0)},blockSize:1});var c=f[_0x95cd[73]]={},l=function(e,t,i){var n=this[_0x95cd[74]];n?this[_0x95cd[74]]=undefined:n=this[_0x95cd[75]];for(var a=0;a<i;a++)e[t+a]^=n[a]},d=(t[_0x95cd[76]]=i[_0x95cd[8]]({createEncryptor:function(e,t){return this[_0x95cd[77]][_0x95cd[53]](e,t)},createDecryptor:function(e,t){return this[_0x95cd[78]][_0x95cd[53]](e,t)},init:function(e,t){this[_0x95cd[79]]=e,this[_0x95cd[74]]=t}}))[_0x95cd[8]]();d[_0x95cd[77]]=d[_0x95cd[8]]({processBlock:function(e,t){var i=this[_0x95cd[79]],n=i[_0x95cd[38]];l[_0x95cd[18]](this,e,t,n),i[_0x95cd[80]](e,t),this[_0x95cd[75]]=e[_0x95cd[20]](t,t+n)}}),d[_0x95cd[78]]=d[_0x95cd[8]]({processBlock:function(e,t){var i=this[_0x95cd[79]],n=i[_0x95cd[38]],a=e[_0x95cd[20]](t,t+n);i[_0x95cd[81]](e,t),l[_0x95cd[18]](this,e,t,n),this[_0x95cd[75]]=a}}),c=c[_0x95cd[82]]=d,d=(f[_0x95cd[84]]={})[_0x95cd[83]]={pad:function(e,t){for(var i,a=(i=(i=4*t)-e[_0x95cd[12]]%i)<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o[_0x95cd[16]](a);i=n[_0x95cd[53]](o,i),e[_0x95cd[37]](i)},unpad:function(e){e[_0x95cd[12]]-=255&e[_0x95cd[11]][e[_0x95cd[12]]-1>>>2]}},t[_0x95cd[85]]=r[_0x95cd[8]]({cfg:r[_0x95cd[44]][_0x95cd[8]]({mode:c,padding:d}),reset:function(){r[_0x95cd[45]][_0x95cd[18]](this);var e=(t=this[_0x95cd[44]])[_0x95cd[86]],t=t[_0x95cd[73]];if(this[_0x95cd[68]]==this[_0x95cd[87]])var i=t[_0x95cd[88]];else i=t[_0x95cd[89]],this[_0x95cd[39]]=1;this[_0x95cd[90]]=i[_0x95cd[18]](t,this,e&&e[_0x95cd[11]])},_doProcessBlock:function(e,t){this[_0x95cd[90]][_0x95cd[91]](e,t)},_doFinalize:function(){var e=this[_0x95cd[44]][_0x95cd[92]];if(this[_0x95cd[68]]==this[_0x95cd[87]]){e[_0x95cd[84]](this._data,this[_0x95cd[38]]);var t=this._process(!0)}else t=this._process(!0),e[_0x95cd[93]](t);return t},blockSize:4});var u=t[_0x95cd[94]]=i[_0x95cd[8]]({init:function(e){this[_0x95cd[3]](e)},toString:function(e){return(e||this[_0x95cd[95]])[_0x95cd[14]](this)}}),p=(c=(f[_0x95cd[97]]={})[_0x95cd[96]]={stringify:function(e){var t=e[_0x95cd[98]];return((e=e[_0x95cd[99]])?n[_0x95cd[53]]([1398893684,1701076831])[_0x95cd[37]](e)[_0x95cd[37]](t):t).toString(o)},parse:function(e){var t=(e=o[_0x95cd[32]](e))[_0x95cd[11]];if(1398893684==t[0]&&1701076831==t[1]){var i=n[_0x95cd[53]](t[_0x95cd[20]](2,4));t[_0x95cd[42]](0,4),e[_0x95cd[12]]-=16}return u[_0x95cd[53]]({ciphertext:e,salt:i})}},t[_0x95cd[100]]=i[_0x95cd[8]]({cfg:i[_0x95cd[8]]({format:c}),encrypt:function(e,t,i,n){n=this[_0x95cd[44]][_0x95cd[8]](n);var a=e[_0x95cd[88]](i,n);return t=a[_0x95cd[46]](t),a=a[_0x95cd[44]],u[_0x95cd[53]]({ciphertext:t,key:i,iv:a[_0x95cd[86]],algorithm:e,mode:a[_0x95cd[73]],padding:a[_0x95cd[92]],blockSize:e[_0x95cd[38]],formatter:n[_0x95cd[97]]})},decrypt:function(e,t,i,n){return n=this[_0x95cd[44]][_0x95cd[8]](n),t=this._parse(t,n[_0x95cd[97]]),e[_0x95cd[89]](i,n)[_0x95cd[46]](t[_0x95cd[98]])},_parse:function(e,t){return _0x95cd[36]==typeof e?t[_0x95cd[32]](e,this):e}})),f=(f[_0x95cd[101]]={})[_0x95cd[96]]={execute:function(e,t,i,a){return a||(a=n[_0x95cd[21]](8)),e=s[_0x95cd[53]]({keySize:t+i})[_0x95cd[66]](e,a),i=n[_0x95cd[53]](e[_0x95cd[11]][_0x95cd[20]](t),4*i),e[_0x95cd[12]]=4*t,u[_0x95cd[53]]({key:e,iv:i,salt:a})}},h=t[_0x95cd[102]]=p[_0x95cd[8]]({cfg:p[_0x95cd[44]][_0x95cd[8]]({kdf:f}),encrypt:function(e,t,i,n){return i=(n=this[_0x95cd[44]][_0x95cd[8]](n))[_0x95cd[101]][_0x95cd[104]](i,e[_0x95cd[63]],e[_0x95cd[103]]),n[_0x95cd[86]]=i[_0x95cd[86]],(e=p[_0x95cd[70]][_0x95cd[18]](this,e,t,i[_0x95cd[105]],n))[_0x95cd[3]](i),e},decrypt:function(e,t,i,n){return n=this[_0x95cd[44]][_0x95cd[8]](n),t=this._parse(t,n[_0x95cd[97]]),i=n[_0x95cd[101]][_0x95cd[104]](i,e[_0x95cd[63]],e[_0x95cd[103]],t[_0x95cd[99]]),n[_0x95cd[86]]=i[_0x95cd[86]],p[_0x95cd[71]][_0x95cd[18]](this,e,t,i[_0x95cd[105]],n)}})}(),function(){for(var e=CryptoJS,t=e[_0x95cd[0]][_0x95cd[85]],i=e[_0x95cd[48]],n=[],a=[],o=[],s=[],r=[],c=[],l=[],d=[],u=[],p=[],f=[],h=0;256>h;h++)f[h]=128>h?h<<1:h<<1^283;var m=0,g=0;for(h=0;256>h;h++){var v=(v=g^g<<1^g<<2^g<<3^g<<4)>>>8^255&v^99;n[m]=v,a[v]=m;var y=f[m],b=f[y],_=f[b],C=257*f[v]^16843008*v;o[m]=C<<24|C>>>8,s[m]=C<<16|C>>>16,r[m]=C<<8|C>>>24,c[m]=C,C=16843009*_^65537*b^257*y^16843008*m,l[v]=C<<24|C>>>8,d[v]=C<<16|C>>>16,u[v]=C<<8|C>>>24,p[v]=C,m?(m=y^f[f[f[_^y]]],g^=f[f[g]]):m=g=1}var w=[0,1,2,4,8,16,32,64,128,27,54];i=i[_0x95cd[106]]=t[_0x95cd[8]]({_doReset:function(){for(var e=(i=this[_0x95cd[69]])[_0x95cd[11]],t=i[_0x95cd[12]]/4,i=4*((this[_0x95cd[107]]=t+6)+1),a=this[_0x95cd[108]]=[],o=0;o<i;o++)if(o<t)a[o]=e[o];else{var s=a[o-1];o%t?6<t&&4==o%t&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=w[o/t|0]<<24),a[o]=a[o-t]^s}for(e=this[_0x95cd[109]]=[],t=0;t<i;t++)o=i-t,s=t%4?a[o]:a[o-4],e[t]=4>t||4>=o?s:l[n[s>>>24]]^d[n[s>>>16&255]]^u[n[s>>>8&255]]^p[n[255&s]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,r,c,n)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,l,d,u,p,a),i=e[t+1],e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,n,a,o,s,r){for(var c=this[_0x95cd[107]],l=e[t]^i[0],d=e[t+1]^i[1],u=e[t+2]^i[2],p=e[t+3]^i[3],f=4,h=1;h<c;h++){var m=n[l>>>24]^a[d>>>16&255]^o[u>>>8&255]^s[255&p]^i[f++],g=n[d>>>24]^a[u>>>16&255]^o[p>>>8&255]^s[255&l]^i[f++],v=n[u>>>24]^a[p>>>16&255]^o[l>>>8&255]^s[255&d]^i[f++];p=n[p>>>24]^a[l>>>16&255]^o[d>>>8&255]^s[255&u]^i[f++],l=m,d=g,u=v}m=(r[l>>>24]<<24|r[d>>>16&255]<<16|r[u>>>8&255]<<8|r[255&p])^i[f++],g=(r[d>>>24]<<24|r[u>>>16&255]<<16|r[p>>>8&255]<<8|r[255&l])^i[f++],v=(r[u>>>24]<<24|r[p>>>16&255]<<16|r[l>>>8&255]<<8|r[255&d])^i[f++],p=(r[p>>>24]<<24|r[l>>>16&255]<<16|r[d>>>8&255]<<8|r[255&u])^i[f++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=p},keySize:8});e[_0x95cd[106]]=t._createHelper(i)}();var _0x2342=["value","parse","Base64","enc","encrypt","AES"];getek=function(){return $("#hdnGetEk").val()},getei=function(){return $("#hdnGetEi").val()},EncP=function(e){e[_0x2342[0]]=EncPV(e[_0x2342[0]])},EncPV=function(e){return fnEnc(e,getek(),getei())},EncIV=function(){return EncPV(getei())},fnEnc=function(e,t,i){var n=CryptoJS[_0x2342[3]][_0x2342[2]][_0x2342[1]](t),a=CryptoJS[_0x2342[3]][_0x2342[2]][_0x2342[1]](i);return CryptoJS[_0x2342[5]][_0x2342[4]](e,n,{iv:a}).toString()};var _0x9926=["hostname","location","host"];function geteh(){return window[_0x9926[1]][_0x9926[0]]||window[_0x9926[1]][_0x9926[2]]}function EncH(){return EncPV(geteh())}var _0xe95c=["partner","data","#divnotificationdata","encrypt","AES"];function encrypt(e){var t=$(_0xe95c[2])[_0xe95c[1]](_0xe95c[0]);return(e=CryptoJS[_0xe95c[4]][_0xe95c[3]](e.toString(),t)).toString()}var _0xf450=["undefined","length","#hdnToken4","val","_vdpb_id","setRequestHeader","#hdnToken3","_vdpu_id","bi","ui","|","_vdpt","setMilliseconds","MM/DD/YYYY hh:mm:ss A","format"];function getheader(e){var t=0,i=0;typeof SecuBusinessID!=_0xf450[0]?t=SecuBusinessID:typeof BusinessID!=_0xf450[0]?t=BusinessID:typeof PublicBusinessID!=_0xf450[0]?t=PublicBusinessID:typeof businessID!=_0xf450[0]&&(t=businessID),typeof SecuUserID!=_0xf450[0]?i=SecuUserID:typeof UserID!=_0xf450[0]&&(i=UserID),1==$(_0xf450[2])[_0xf450[1]]&&typeof $(_0xf450[2])[_0xf450[3]]()!=_0xf450[0]&&e[_0xf450[5]](_0xf450[4],$(_0xf450[2])[_0xf450[3]]()),1==$(_0xf450[6])[_0xf450[1]]&&typeof $(_0xf450[6])[_0xf450[3]]()!=_0xf450[0]&&e[_0xf450[5]](_0xf450[7],$(_0xf450[6])[_0xf450[3]]()),e[_0xf450[5]](_0xf450[8],t),e[_0xf450[5]](_0xf450[9],i);var n=GetUTCTime();token=i+_0xf450[10]+n+_0xf450[10]+t,e[_0xf450[5]](_0xf450[11],encrypt(token))}function GetUTCTime(){if(typeof glbBrowserTime!=_0xf450[0]&&null!=glbBrowserTime&&typeof glbBusinessTime!=_0xf450[0]&&null!=glbBusinessTime){var e=new Date-glbBrowserTime,t=new Date(glbBusinessTime);return t[_0xf450[12]](e),moment(t)[_0xf450[14]](_0xf450[13])}return moment(new Date)[_0xf450[14]](_0xf450[13])}var _0x5a35=["upartner","data","#divnotificationdata","encrypt","AES"];function uencrypt(e){var t=$(_0x5a35[2])[_0x5a35[1]](_0x5a35[0]);return(e=CryptoJS[_0x5a35[4]][_0x5a35[3]](e.toString(),t)).toString()}var _0xebf1=["bpartner","data","#divnotificationdata","encrypt","AES"];function bencrypt(e){var t=$(_0xebf1[2])[_0xebf1[1]](_0xebf1[0]);return(e=CryptoJS[_0xebf1[4]][_0xebf1[3]](e.toString(),t)).toString()}}var _0x76b1=["undefined","length","#IsWaitforKeepALive","val","toLowerCase","true","protocol","//","hostname","port",":","/","WebServices/","POST","application/json; charset=utf-8","{","}","K","setRequestHeader","I","Val","keepAlive","#hdnToken1","token1","#hdnToken2","token2","grouptoken","json","ajax"];function CallWebServicehed(e,t,i,n){if(typeof keepAlive==_0x76b1[0]&&$(_0x76b1[2])[_0x76b1[1]]>0&&typeof $(_0x76b1[2])[_0x76b1[3]]()!=_0x76b1[0]&&$(_0x76b1[2])[_0x76b1[3]]()[_0x76b1[4]]()===_0x76b1[5])setTimeout(function(){CallWebServicehed(e,t,i,n)},500);else{var a=location[_0x76b1[6]]+_0x76b1[7]+location[_0x76b1[8]]+(location[_0x76b1[9]]&&_0x76b1[10]+location[_0x76b1[9]])+_0x76b1[11];e=a+_0x76b1[12]+e,$[_0x76b1[28]]({type:_0x76b1[13],contentType:_0x76b1[14],url:e,data:_0x76b1[15]+t+_0x76b1[16],beforeSend:function(e){e[_0x76b1[18]](_0x76b1[17],getek()),e[_0x76b1[18]](_0x76b1[19],getei()),e[_0x76b1[18]](_0x76b1[20],EncIV()),typeof keepAlive!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[21],keepAlive),1==$(_0x76b1[22])[_0x76b1[1]]&&typeof $(_0x76b1[22])[_0x76b1[3]]()!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[23],$(_0x76b1[22])[_0x76b1[3]]()),1==$(_0x76b1[24])[_0x76b1[1]]&&typeof $(_0x76b1[24])[_0x76b1[3]]()!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[25],$(_0x76b1[24])[_0x76b1[3]]()),typeof groupID!=_0x76b1[0]&&e[_0x76b1[18]](_0x76b1[26],groupID)},dataType:_0x76b1[27],success:i,error:n})}}var userAgent=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),iOS=/iPad|iPhone|iPod|iTouch/.test(navigator.userAgent)&&!window.MSStream;
/*!
 * Bootstrap v3.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */
if(function(e,t){currentscrollpager=null;var i=function(e,i,n){this.$elem=t(e),this.options=n,this.isInitalize=0,this.componentnode=i};i.scrollPaginators={},i.frozen=!1,i.defaults=(i.prototype={defaults:{Token:null,Data:{},LocalData:{},templateName:null,beforeLoad:null,afterLoad:null,onRowLoad:null,heightOffset:10,pageIndex:1,PageSize:12,totalPages:1,NoDataFoundDiv:null,Loader:null,checkTab:!1,IsAjaxQue:!1,pageName:"",lazyLoadClass:"",htmltemplatename:"",isInProgress:"enable"},init:function(){if(this.config=t.extend({},this.defaults,this.options),this.config.pageIndex=1,this.isInitalize=0,this.options.Data.currentPageIndex=this.config.pageIndex,this.options.Data.pageIndex=this.config.pageIndex,this.options.Data.PageSize=this.config.PageSize,this.config.EnablePagescroll){var e=this;this.config.ScrollTarget.bind("scroll",function(){0==e.config.isScrollInProgress&&(e.config.isScrollInProgress=!0,e.targetScroll())})}return this},initelem:function(e){this.$elem=t(e),this.init()},isServerResponse:function(e){return null!=e.options.initialpageData&&e.config.pageIndex==e.options.initialpageData.PageIndex&&e.options.initialpageData.tabName==e.options.pageName},scrollpaging:function(){this.isInitalize=0,this.scroll()},scroll:function(){return 0==this.isInitalize&&(this.config=t.extend({},this.defaults,this.options),this.config.pageIndex=1,0==this.isServerResponse(this)&&this.$elem.html(""),this.$elem.attr("scrollPagination","enabled"),this.config.isInProgress="enabled",this.isInitalize=1),null!=this.config.NoDataFoundDiv&&this.config.NoDataFoundDiv.hide(),0==i.frozen&&this.loadContent(),this},loadContent:function(){if(this.$elem=t("#"+this.$elem.attr("id")),null==this.options.initialpageData||"Inventory"!=this.options.initialpageData.Response||"disabled"!=this.config.isInProgress){if(this.config.isInProgress="disabled",this.config.pageIndex>this.config.totalPages&&this.config.pageIndex>1)return this.config.isScrollInProgress=!1,this.config.isInProgress="enabled",void t(this.config.Loader).hide();if(null!=this.config.beforeLoad&&this.config.beforeLoad(),this.$elem.children().attr("rel","loaded"),t(this.config.Loader).show(),this.options.Data.currentPageIndex=this.config.pageIndex,this.options.Data.pageIndex=this.config.pageIndex,this.options.Data.PageSize=this.config.PageSize,this.isServerResponse(this))this.CallbackResponse(null);else{if(null!=this.options.initialpageData)switch(this.options.initialpageData.Response){case"Reviews":var e=_siteBuilderDetail.ComponentResponse.lstReview;if(null!=e.Response&&null!=e.PageIndex&&this.config.pageIndex<=e.PageIndex)return e.Response.length>(this.config.pageIndex-1)*this.config.PageSize&&this.config.pageIndex>2&&(e.Response.length=(this.config.pageIndex-1)*this.config.PageSize),this.ResponseProcess(e.Response,!0),!1;break;case"Inventory":var i=_siteBuilderDetail.ComponentResponse.lstProduct;if(null!=i.resProdCaches&&null!=_siteBuilderDetail.ComponentResponse.lstProduct.resProdCaches.Inventorys&&null!=i.pageIdxProduct&&this.config.pageIndex<=i.pageIdxProduct)return this.ResponseProcess(i.resProdCaches,!0),!1}var n=new vagaro.ajax;n.datamodel.Token=this.config.Token,n.datamodel.data=this.config.Data,n.datamodel.callback=this.CallbackResponse.bind(this),n.datamodel.Error=this.ErrorResponse.bind(this),n.datamodel.IsNewVagaroAPI=!0,0==this.options.async&&(n.datamodel.async=!1),this.options.IsAjaxQue?n.PostQue():n.Post()}}else this.config.isScrollInProgress=!1},CallbackResponse:function(e){t("#"+this.config.templateName).html();var i=this;if(this.config.isScrollInProgress=!1,null!=this.config.NoDataFoundDiv&&(this.config.NoDataFoundDiv.hide(),null!=this.config.removeElement&&this.config.removeElement.show()),null==e||1===i.config.pageIndex&&0==e.length){if(null!=this.options.initialpageData&&null!=e&&"Reviews"===this.options.initialpageData.Response)_siteBuilderDetail.ComponentResponse.lstReview.Response=e,_siteBuilderDetail.ComponentResponse.lstReview.PageIndex=i.config.pageIndex,e={BusinessDetail:_siteBuilderDetail.ComponentResponse.lstBusinessDetail,Reviews:e,CommonApiConfigKeys:_siteBuilderDetail.ComponentResponse.lstCommonConfigKey};if((null!=this.config.NoDataFoundDiv&&0==this.isServerResponse(this)||1==this.isServerResponse(this)&&0==this.options.initialpageData.totalPages)&&this.config.NoDataFoundDiv.show(),t(this.config.Loader).hide(),(null!=this.config.onRowLoad&&0==this.isServerResponse(this)||1==this.isServerResponse(this)&&null!=this.options.initialpageData.onRowLoad&&null!=this.options.initialpageData.onRowLoad)&&(null!=this.config.htmltemplatename&&""!=this.config.htmltemplatename?t(this.componentnode).html(t("#"+this.config.htmltemplatename).html()):t(this.componentnode).html(t("#"+this.config.templateName).tmpl(e)),this.config.onRowLoad(this,e)),(null!=this.config.afterLoad&&0==this.isServerResponse(this)||1==this.isServerResponse(this)&&null!=this.options.initialpageData.afterLoad&&null!=this.options.initialpageData.afterLoad)&&this.config.afterLoad(e),0==this.isServerResponse(this)||1==this.isServerResponse(this)&&0==this.options.initialpageData.totalPages)return void(this.options.initialpageData=null)}else null!=e?this.ResponseProcess(e):1===i.config.pageIndex&&0==this.isServerResponse(this)&&this.$elem.html("");this.config.checkTab&&!i.$elem.closest("div.tab-pane").hasClass("active")?i.CheckTab(e):this.ResponseProcess(e)},setWallandSlick:function(e,i){if(1===e.config.pageIndex&&(e.config.Wall=new freewall(t(e.options.initialpageData.Id)),e.config.Wall.reset({selector:".gallery-solo-image",cellW:e.config.WallWidth,cellH:"auto",gutterX:5,gutterY:15,animate:!1,onResize:function(){e.config.Wall.refresh()}})),1===e.config.pageIndex&&setTimeout(function(){e.config.Wall.fitWidth()},50),e.config.pageIndex>1){var n=i.find(".walllazy");(n=t(n)).length>0&&t("<img />").bind("load",function(){var t=n.attr("data-original");n.is("img")?(n.attr("src",t),n.removeAttr("height")):n.css("background-image","url('"+t+"')"),setTimeout(function(){e.config.Wall.appendBlock(i)},100),n.fadeIn}).bind("error",function(){n.fadeIn,setTimeout(function(){e.config.Wall.appendBlock(i)},100)}).attr("src",n.attr("data-original"))}else{var a=!1;t(e.options.initialpageData.Id).find(".walllazy").each(function(){var i=t(this);t("<img />").bind("load",function(){var t=i.attr("data-original");i.is("img")?i.attr("src",t):i.css("background-image","url('"+t+"')"),i.fadeIn,0==a&&(a=!0,setTimeout(function(){e.config.Wall.refresh()},1e3))}).bind("error",function(){i.fadeIn,0==a&&(a=!0,setTimeout(function(){e.config.Wall.fitWidth()},2e3))}).attr("src",i.attr("data-original"))})}},ResponseProcess:function(e,i){var n=this,a=e,o="",s=0;if(null!=n.options.initialpageData&&null!=a)switch(n.options.initialpageData.Response){case"Reviews":if(null!=a&&a.length>0){s=(o=a)[0].TotalPage;var r=_siteBuilderDetail.ComponentResponse.lstReview;void 0===i?(r.Response=this.config.pageIndex>1?r.Response.concat(a):a,r.PageIndex=this.config.pageIndex,r.totalPages=Math.ceil(s/n.config.PageSize+parseInt(s%(n.config.PageSize>0?1:0)))):(this.config.pageIndex=r.PageIndex,this.config.totalPages=r.totalPages,this.options.Data.currentPageIndex=this.config.pageIndex,this.options.Data.pageIndex=this.config.pageIndex)}a={BusinessDetail:_siteBuilderDetail.ComponentResponse.lstBusinessDetail,Reviews:void 0===i?a:_siteBuilderDetail.ComponentResponse.lstReview.Response,CommonApiConfigKeys:_siteBuilderDetail.ComponentResponse.lstCommonConfigKey};break;case"Inventory":if(null!=a.Inventorys&&a.Inventorys.length>0){o=a.Inventorys,s=a.count;var c=_siteBuilderDetail.ComponentResponse.lstProduct;void 0===i?(null!=c.resProdCaches&&null!=c.resProdCaches.Inventorys?c.resProdCaches.Inventorys=c.resProdCaches.Inventorys.concat(a.Inventorys):4==this.config.Data.infoRequested?c.resProdCaches.Inventorys=a.Inventorys:c.resProdCaches=a,c.pageIdxProduct=this.config.pageIndex):(this.config.pageIndex=c.pageIdxProduct,this.options.Data.currentPageIndex=this.config.pageIndex,this.options.Data.pageIndex=this.config.pageIndex)}break;case"Styles":null!=a&&a.length>0&&(o=a,s=a[0].TotalPage)}if(null!=n.options.initialpageData&&null!=this.config&&this.config.pageIndex>1)t.each(o,function(e){var i=t(n.options.initialpageData.TemplateId).tmpl(o[e]);t(n.options.initialpageData.Id).append(i),null!=n.config.WallWidth&&n.setWallandSlick(n,i)});else{null!=n.options.initialpageData&&null!=n.options.initialpageData&&(n.config.totalPages=Math.ceil(s/n.config.PageSize+parseInt(s%(n.config.PageSize>0?1:0)))),Array.isArray(a)?resobject=a:resobject="string"==typeof a?JSON.parse(a):a;var l=this.componentnode;null!=this.config.htmltemplatename&&""!=this.config.htmltemplatename?t(l).html(t("#"+this.config.htmltemplatename).html()):t(l).html(t("#"+this.config.templateName).tmpl(resobject))}null!=this.config.onRowLoad&&this.config.onRowLoad(this,a),null!=n.config.WallWidth&&this.config.pageIndex<=1&&this.setWallandSlick(n,null),this.config.pageIndex++,this.config.isInProgress="enabled",this.config.totalPages=n.config.totalPages,t(this.config.Loader).hide()},ErrorResponse:function(e){this.config.isInProgress="enabled",t(this.config.Loader).hide()},CheckTab:function(e){var t=this;setTimeout(function(){t.$elem.closest("div.tab-pane").hasClass("active")?t.ResponseProcess(e):t.CheckTab(e)},50)},enableScroll:function(){this.config.EnablePagescroll?(t(".scrollme").removeClass("scrollme"),t("#"+this.config.templateName).addClass("scrollme"),currentscrollpager=this,this.config.isScrollInProgress=!1):(t(".scrollme").removeClass("scrollme"),currentscrollpager=this)},targetScroll:function(){if(this.config.EnablePagescroll&&t("#"+this.config.templateName).hasClass("scrollme")){if(1==this.config.pageIndex)return void(this.config.isScrollInProgress=!1);var e=0,i=0;if(t(this.config.ScrollTarget).is("div"))t("#footerdiv:visible").length>0&&t(this.config.ScrollTarget).find("#footerdiv").length>0&&(i=t("#footerdiv").height()),e=this.config.ScrollTarget[0].scrollHeight-100;else{i=0;if(t("#footerdiv:visible").length>0&&(i=t("#footerdiv").height()),t(this.config.ScrollTarget).is("body")){var n=this.config.ScrollTarget[0].scrollHeight;t("#page-wrapper").length>0&&(n=t("#page-wrapper")[0].scrollHeight)}else n=this.config.ScrollTarget[0].document.body.scrollHeight;e=n-(i+150)}var a=this.config.ScrollTarget.scrollTop()+this.config.ScrollTarget.innerHeight()>=e;t(this.config.ScrollTarget).is("body")&&t("#page-wrapper").length>0&&(a=-1*t("#page-wrapper").position().top+this.config.ScrollTarget.innerHeight()>=e),a?this.scroll():this.config.isScrollInProgress=!1}else this.config.isScrollInProgress=!1}}).defaults,t.fn.PaginationBuilder=function(e){return this.each(function(){new i(this,e).scroll()})},e.PaginationBuilder=i}(window,jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var i=!1,n=this;return e(this).one("bsTransitionEnd",function(){i=!0}),setTimeout(function(){i||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 i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',i=function(i){e(i).on("click",t,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(t){var n=e(this),a=n.attr("data-target");a||(a=(a=n.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,"")),a="#"===a?[]:a;var o=e(document).find(a);function s(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(i.TRANSITION_DURATION):s())};var n=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var n=e(this),a=n.data("bs.alert");a||n.data("bs.alert",a=new i(this)),"string"==typeof t&&a[t].call(n)})},e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=n,this},e(document).on("click.bs.alert.data-api",t,i.prototype.close)}(jQuery),function(e){"use strict";var t=function(i,n){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,n),this.isLoading=!1};function i(i){return this.each(function(){var n=e(this),a=n.data("bs.button"),o="object"==typeof i&&i;a||n.data("bs.button",a=new t(this,o)),"toggle"==i?a.toggle():i&&a.setState(i)})}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var i="disabled",n=this.$element,a=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[a]()),setTimeout(e.proxy(function(){n[a](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=i,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var n=e(t.target).closest(".btn");i.call(n,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";var t=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function i(i){return this.each(function(){var n=e(this),a=n.data("bs.carousel"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof i&&i),s="string"==typeof i?i:o.slide;a||n.data("bs.carousel",a=new t(this,o)),"number"==typeof i?a.to(i):s?a[s]():o.interval&&a.pause().cycle()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var n=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},t.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(i<e?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(i,n){var a=this.$element.find(".item.active"),o=n||this.getItemForDirection(i,a),s=this.interval,r="next"==i?"left":"right",c=this;if(o.hasClass("active"))return this.sliding=!1;var l=o[0],d=e.Event("slide.bs.carousel",{relatedTarget:l,direction:r});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(o)]);u&&u.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:l,direction:r});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(i),"object"==typeof o&&o.length&&o[0].offsetWidth,a.addClass(r),o.addClass(r),a.one("bsTransitionEnd",function(){o.removeClass([i,r].join(" ")).addClass("active"),a.removeClass(["active",r].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger(p)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(a.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=i,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var a=function(t){var n=e(this),a=n.attr("href");a&&(a=a.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||a,s=e(document).find(o);if(s.hasClass("carousel")){var r=e.extend({},s.data(),n.data()),c=n.attr("data-slide-to");c&&(r.interval=!1),i.call(s,r),c&&s.data("bs.carousel").to(c),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",a).on("click.bs.carousel.data-api","[data-slide-to]",a),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);i.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(i,n){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(t){var i,n=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(n)}function n(i){return this.each(function(){var n=e(this),a=n.data("bs.collapse"),o=e.extend({},t.DEFAULTS,n.data(),"object"==typeof i&&i);!a&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),a||n.data("bs.collapse",a=new t(this,o)),"string"==typeof i&&a[i]()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,a=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(a&&a.length&&(i=a.data("bs.collapse"))&&i.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){a&&a.length&&(n.call(a,"hide"),i||a.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return r.call(this);var c=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][c])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=e.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var a=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return a.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,n){var a=e(n);this.addAriaAndCollapsedClass(i(a),a)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var a=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=a,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var a=e(this);a.attr("data-target")||t.preventDefault();var o=i(a),s=o.data("bs.collapse")?"toggle":a.data();n.call(o,s)})}(jQuery),function(e){"use strict";var t='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};function n(t){var i=t.attr("data-target");i||(i=(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==i?e(document).find(i):null;return n&&n.length?n:t.parent()}function a(i){i&&3===i.which||(e(".dropdown-backdrop").remove(),e(t).each(function(){var t=e(this),a=n(t),o={relatedTarget:this};a.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(a[0],i.target)||(a.trigger(i=e.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),a.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(t){var i=e(this);if(!i.is(".disabled, :disabled")){var o=n(i),s=o.hasClass("open");if(a(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a);var r={relatedTarget:this};if(o.trigger(t=e.Event("show.bs.dropdown",r)),t.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",r))}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var a=e(this);if(i.preventDefault(),i.stopPropagation(),!a.is(".disabled, :disabled")){var o=n(a),s=o.hasClass("open");if(!s&&27!=i.which||s&&27==i.which)return 27==i.which&&o.find(t).trigger("focus"),a.trigger("click");var r=o.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var c=r.index(i.target);38==i.which&&0<c&&c--,40==i.which&&c<r.length-1&&c++,~c||(c=0),r.eq(c).trigger("focus")}}}};var o=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),a=n.data("bs.dropdown");a||n.data("bs.dropdown",a=new i(this)),"string"==typeof t&&a[t].call(n)})},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",t,i.prototype.toggle).on("keydown.bs.dropdown.data-api",t,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(e){"use strict";var t=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function i(i,n){return this.each(function(){var a=e(this),o=a.data("bs.modal"),s=e.extend({},t.DEFAULTS,a.data(),"object"==typeof i&&i);o||a.data("bs.modal",o=new t(this,s)),"string"==typeof i?o[i](n):s.show&&o.show(n)})}t.VERSION="3.4.1",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(i){var n=this,a=e.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(a),this.isShown||a.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var a=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),a&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:i});a?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(t.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},t.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var n=this,a=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&a;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+a).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;o?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):s()}else i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+i),e(this.fixedContent).each(function(t,n){var a=n.style.paddingRight,o=e(n).css("padding-right");e(n).data("padding-right",a).css("padding-right",parseFloat(o)+i+"px")}))},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each(function(t,i){var n=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=n||""})},t.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=i,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),a=n.attr("href"),o=n.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,""),s=e(document).find(o),r=s.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(a)&&a},s.data(),n.data());n.is("a")&&t.preventDefault(),s.one("show.bs.modal",function(e){e.isDefaultPrevented()||s.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),i.call(s,r,this)})}(jQuery),function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,a=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(t,o){var s=t.nodeName.toLowerCase();if(-1!==e.inArray(s,o))return-1===e.inArray(s,i)||Boolean(t.nodeValue.match(n)||t.nodeValue.match(a));for(var r=e(o).filter(function(e,t){return t instanceof RegExp}),c=0,l=r.length;c<l;c++)if(s.match(r[c]))return!0;return!1}function s(t,i,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var a=document.implementation.createHTMLDocument("sanitization");a.body.innerHTML=t;for(var s=e.map(i,function(e,t){return t}),r=e(a.body).find("*"),c=0,l=r.length;c<l;c++){var d=r[c],u=d.nodeName.toLowerCase();if(-1!==e.inArray(u,s))for(var p=e.map(d.attributes,function(e){return e}),f=[].concat(i["*"]||[],i[u]||[]),h=0,m=p.length;h<m;h++)o(p[h],f)||d.removeAttribute(p[h].nodeName);else d.parentNode.removeChild(d)}return a.body.innerHTML}var r=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},r.prototype.init=function(t,i,n){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var a=this.options.trigger.split(" "),o=a.length;o--;){var s=a[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var r="hover"==s?"mouseenter":"focusin",c="hover"==s?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(c+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.getOptions=function(i){var n=this.$element.data();for(var a in n)n.hasOwnProperty(a)&&-1!==e.inArray(a,t)&&delete n[a];return(i=e.extend({},this.getDefaults(),n,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=s(i.template,i.whiteList,i.sanitizeFn)),i},r.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,function(e,n){i[e]!=n&&(t[e]=n)}),t},r.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},r.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},r.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},r.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var n=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(s);l&&(s=s.replace(c,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(e(document).find(this.options.container)):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),u=a[0].offsetWidth,p=a[0].offsetHeight;if(l){var f=s,h=this.getPosition(this.$viewport);s="bottom"==s&&d.bottom+p>h.bottom?"top":"top"==s&&d.top-p<h.top?"bottom":"right"==s&&d.right+u>h.width?"left":"left"==s&&d.left-u<h.left?"right":s,a.removeClass(f).addClass(s)}var m=this.getCalculatedOffset(s,d,u,p);this.applyPlacement(m,s);var g=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};e.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",g).emulateTransitionEnd(r.TRANSITION_DURATION):g()}},r.prototype.applyPlacement=function(t,i){var n=this.tip(),a=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),r=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(r)&&(r=0),t.top+=s,t.left+=r,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var c=n[0].offsetWidth,l=n[0].offsetHeight;"top"==i&&l!=o&&(t.top=t.top+o-l);var d=this.getViewportAdjustedDelta(i,t,c,l);d.left?t.left+=d.left:t.top+=d.top;var u=/top|bottom/.test(i),p=u?2*d.left-a+c:2*d.top-o+l,f=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(p,n[0][f],u)},r.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=s(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},r.prototype.hide=function(t){var i=this,n=e(this.$tip),a=e.Event("hide.bs."+this.type);function o(){"in"!=i.hoverState&&n.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}if(this.$element.trigger(a),!a.isDefaultPrevented())return n.removeClass("in"),e.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),this.hoverState=null,this},r.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},r.prototype.hasContent=function(){return this.getTitle()},r.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],n="BODY"==i.tagName,a=i.getBoundingClientRect();null==a.width&&(a=e.extend({},a,{width:a.right-a.left,height:a.bottom-a.top}));var o=window.SVGElement&&i instanceof window.SVGElement,s=n?{top:0,left:0}:o?null:t.offset(),r={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},c=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},a,r,c,s)},r.prototype.getCalculatedOffset=function(e,t,i,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-i}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},r.prototype.getViewportAdjustedDelta=function(e,t,i,n){var a={top:0,left:0};if(!this.$viewport)return a;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var r=t.top-o-s.scroll,c=t.top+o-s.scroll+n;r<s.top?a.top=s.top-r:c>s.top+s.height&&(a.top=s.top+s.height-c)}else{var l=t.left-o,d=t.left+o+i;l<s.left?a.left=s.left-l:d>s.right&&(a.left=s.left+s.width-d)}return a},r.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},r.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},r.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.toggleEnabled=function(){this.enabled=!this.enabled},r.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},r.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},r.prototype.sanitizeHtml=function(e){return s(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=function(t){return this.each(function(){var i=e(this),n=i.data("bs.tooltip"),a="object"==typeof t&&t;!n&&/destroy|hide/.test(t)||(n||i.data("bs.tooltip",n=new r(this,a)),"string"==typeof t&&n[t]())})},e.fn.tooltip.Constructor=r,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t).prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();if(this.options.html){var n=typeof i;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===n&&(i=this.sanitizeHtml(i))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===n?"html":"append"](i)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(i);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=function(i){return this.each(function(){var n=e(this),a=n.data("bs.popover"),o="object"==typeof i&&i;!a&&/destroy|hide/.test(i)||(a||n.data("bs.popover",a=new t(this,o)),"string"==typeof i&&a[i]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),function(e){"use strict";function t(i,n){this.$body=e(document.body),this.$scrollElement=e(i).is(document.body)?e(window):e(i),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=e(this),a=n.data("bs.scrollspy"),o="object"==typeof i&&i;a||n.data("bs.scrollspy",a=new t(this,o)),"string"==typeof i&&a[i]()})}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),a=t.data("target")||t.attr("href"),o=/^#./.test(a)&&e(a);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,a]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),a=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=t)return s!=(e=o[o.length-1])&&this.activate(e);if(s&&t<a[0])return this.activeTarget=null,this.clear();for(e=a.length;e--;)s!=o[e]&&t>=a[e]&&(void 0===a[e+1]||t<a[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=i,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);i.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(t){this.element=e(t)};function i(i){return this.each(function(){var n=e(this),a=n.data("bs.tab");a||n.data("bs.tab",a=new t(this)),"string"==typeof i&&a[i]()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var a=i.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:a[0]});if(a.trigger(o),t.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var r=e(document).find(n);this.activate(t.closest("li"),i),this.activate(r,r.parent(),function(){a.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:a[0]})})}}},t.prototype.activate=function(i,n,a){var o=n.find("> .active"),s=a&&e.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function r(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),a&&a()}o.length&&s?o.one("bsTransitionEnd",r).emulateTransitionEnd(t.TRANSITION_DURATION):r(),o.removeClass("in")};var n=e.fn.tab;e.fn.tab=i,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var a=function(t){t.preventDefault(),i.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',a).on("click.bs.tab.data-api",'[data-toggle="pill"]',a)}(jQuery),function(e){"use strict";var t=function(i,n){this.options=e.extend({},t.DEFAULTS,n);var a=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=a.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(i){return this.each(function(){var n=e(this),a=n.data("bs.affix"),o="object"==typeof i&&i;a||n.data("bs.affix",a=new t(this,o)),"string"==typeof i&&a[i]()})}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,i,n){var a=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=i&&"top"==this.affixed)return a<i&&"top";if("bottom"==this.affixed)return null!=i?!(a+this.unpin<=o.top)&&"bottom":!(a+s<=e-n)&&"bottom";var r=null==this.affixed,c=r?a:o.top;return null!=i&&a<=i?"top":null!=n&&e-n<=c+(r?s:t)&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),n=this.options.offset,a=n.top,o=n.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=a=n),"function"==typeof a&&(a=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var r=this.getState(s,i,a,o);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var c="affix"+(r?"-"+r:""),l=e.Event(c+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(c).trigger(c.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:s-i-o})}};var n=e.fn.affix;e.fn.affix=i,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),i.call(t,n)})})}(jQuery);