!function(m,C){function c(e,t,n){if(n===C&&1===e.nodeType){var r="data-"+t.replace(se,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ae.test(n)?ye.parseJSON(n):n)}catch(e){}ye.data(e,t,n)}else n=C}return n}function u(e){var t;for(t in e)if(("data"!==t||!ye.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function s(){return!1}function n(){return!0}function i(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function t(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function r(e,n,r){if(n=n||0,ye.isFunction(n))return ye.grep(e,function(e,t){return!!n.call(e,t,e)===r});if(n.nodeType)return ye.grep(e,function(e,t){return e===n===r});if("string"==typeof n){var t=ye.grep(e,function(e){return 1===e.nodeType});if(Ae.test(n))return ye.filter(n,t,!r);n=ye.filter(n,t)}return ye.grep(e,function(e,t){return 0<=ye.inArray(e,n)===r})}function y(e){var t=Fe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function l(e,t){if(1===t.nodeType&&ye.hasData(e)){var n,r,i,o=ye._data(e),a=ye._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r").appendTo(F.body),n=t.css("display");return t.remove(),"none"!==n&&""!==n||(Qe=F.body.appendChild(Qe||ye.extend(F.createElement("iframe"),{frameBorder:0,width:0,height:0})),Ke&&Qe.createElement||((Ke=(Qe.contentWindow||Qe.contentDocument).document).write(""),Ke.close()),t=Ke.body.appendChild(Ke.createElement(e)),n=Ge(t,"display"),F.body.removeChild(Qe)),st[e]=n}function g(n,e,r,i){var t;if(ye.isArray(e))ye.each(e,function(e,t){r||ht.test(n)?i(n,t):g(n+"["+("object"==typeof t?e:"")+"]",t,r,i)});else if(r||"object"!==ye.type(e))i(n,e);else for(t in e)g(n+"["+t+"]",e[t],r,i)}function w(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r,i=e.toLowerCase().split(U),o=0,a=i.length;if(ye.isFunction(t))for(;o)[^>]*$|#([\w\-]*)$)/,J=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,G=/^[\],:{}\s]*$/,Q=/(?:^|:|,)(?:\s*\[)+/g,K=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,Z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ee=/^-ms-/,te=/-([\da-z])/gi,ne=function(e,t){return(t+"").toUpperCase()},re=function(){F.addEventListener?(F.removeEventListener("DOMContentLoaded",re,!1),ye.ready()):"complete"===F.readyState&&(F.detachEvent("onreadystatechange",re),ye.ready())},ie={};ye.fn=ye.prototype={constructor:ye,init:function(e,t,n){var r,i,o;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"!=typeof e)return ye.isFunction(e)?n.ready(e):(e.selector!==C&&(this.selector=e.selector,this.context=e.context),ye.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:V.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1])return o=(t=t instanceof ye?t[0]:t)&&t.nodeType?t.ownerDocument||t:F,e=ye.parseHTML(r[1],o,!0),J.test(r[1])&&ye.isPlainObject(t)&&this.attr.call(e,t,!0),ye.merge(this,e);if((i=F.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return n.find(e);this.length=1,this[0]=i}return this.context=F,this.selector=e,this},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return W.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=ye.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return ye.each(this,e,t)},ready:function(e){return ye.ready.promise().done(e),this},eq:function(e){return-1===(e=+e)?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(W.apply(this,arguments),"slice",W.call(arguments).join(","))},map:function(n){return this.pushStack(ye.map(this,function(e,t){return n.call(e,t,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},ye.fn.init.prototype=ye.fn,ye.extend=ye.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},s=2),"object"!=typeof a&&!ye.isFunction(a)&&(a={}),l===s&&(a=this,--s);s
a",e=f.getElementsByTagName("*"),t=f.getElementsByTagName("a")[0],!e||!t||!e.length)return{};r=(n=F.createElement("select")).appendChild(F.createElement("option")),i=f.getElementsByTagName("input")[0],t.style.cssText="top:1px;float:left;opacity:.5",a={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.5/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:"on"===i.value,optSelected:r.selected,getSetAttribute:"t"!==f.className,enctype:!!F.createElement("form").enctype,html5Clone:"<:nav>"!==F.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===F.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},i.checked=!0,a.noCloneChecked=i.cloneNode(!0).checked,n.disabled=!0,a.optDisabled=!r.disabled;try{delete f.test}catch(e){a.deleteExpando=!1}if(!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",c=function(){a.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick"),f.detachEvent("onclick",c)),(i=F.createElement("input")).value="t",i.setAttribute("type","radio"),a.radioValue="t"===i.value,i.setAttribute("checked","checked"),i.setAttribute("name","t"),f.appendChild(i),(o=F.createDocumentFragment()).appendChild(f.lastChild),a.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,a.appendChecked=i.checked,o.removeChild(i),o.appendChild(f),f.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})(u=(s="on"+l)in f)||(f.setAttribute(s,"return;"),u="function"==typeof f[s]),a[l+"Bubbles"]=u;return ye(function(){var e,t,n,r,i="padding:0;margin:0;border:0;display:block;overflow:hidden;",o=F.getElementsByTagName("body")[0];o&&((e=F.createElement("div")).style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",o.insertBefore(e,o.firstChild),t=F.createElement("div"),e.appendChild(t),t.innerHTML="
t
",(n=t.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",a.reliableHiddenOffsets=u&&0===n[0].offsetHeight,t.innerHTML="",t.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",a.boxSizing=4===t.offsetWidth,a.doesNotIncludeMarginInBodyOffset=1!==o.offsetTop,m.getComputedStyle&&(a.pixelPosition="1%"!==(m.getComputedStyle(t,null)||{}).top,a.boxSizingReliable="4px"===(m.getComputedStyle(t,null)||{width:"4px"}).width,(r=F.createElement("div")).style.cssText=t.style.cssText=i,r.style.marginRight=r.style.width="0",t.style.width="1px",t.appendChild(r),a.reliableMarginRight=!parseFloat((m.getComputedStyle(r,null)||{}).marginRight)),void 0!==t.style.zoom&&(t.innerHTML="",t.style.cssText=i+"width:1px;padding:1px;display:inline;zoom:1",a.inlineBlockNeedsLayout=3===t.offsetWidth,t.style.display="block",t.style.overflow="visible",t.innerHTML="
",t.firstChild.style.width="5px",a.shrinkWrapBlocks=3!==t.offsetWidth,e.style.zoom=1),o.removeChild(e),e=t=n=r=null)}),o.removeChild(f),e=t=n=r=i=o=f=null,a}();var ae=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,se=/([A-Z])/g;ye.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(ye.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?ye.cache[e[ye.expando]]:e[ye.expando])&&!u(e)},data:function(e,t,n,r){if(ye.acceptData(e)){var i,o,a=ye.expando,s="string"==typeof t,l=e.nodeType,u=l?ye.cache:e,c=l?e[a]:e[a]&&a;if(c&&u[c]&&(r||u[c].data)||!s||n!==C)return c||(l?e[a]=c=ye.deletedIds.pop()||ye.guid++:c=a),u[c]||(u[c]={},l||(u[c].toJSON=ye.noop)),"object"!=typeof t&&"function"!=typeof t||(r?u[c]=ye.extend(u[c],t):u[c].data=ye.extend(u[c].data,t)),i=u[c],r||(i.data||(i.data={}),i=i.data),n!==C&&(i[ye.camelCase(t)]=n),s?null==(o=i[t])&&(o=i[ye.camelCase(t)]):o=i,o}},removeData:function(e,t,n){if(ye.acceptData(e)){var r,i,o,a=e.nodeType,s=a?ye.cache:e,l=a?e[ye.expando]:ye.expando;if(s[l]){if(t&&(r=n?s[l]:s[l].data)){ye.isArray(t)||(t=t in r?[t]:(t=ye.camelCase(t))in r?[t]:t.split(" "));for(i=0,o=t.length;if&&g.push({elem:this,matches:c.slice(f)}),t=0;tC.cacheLength&&delete n[r.shift()],n[e+" "]=t},n)},U=X(),Y=X(),V=X(),J="[\\x20\\t\\r\\n\\f]",G="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",Q=G.replace("w","w#"),K="\\["+J+"*("+G+")"+J+"*(?:([*^$|!~]?=)"+J+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+Q+")|)|)"+J+"*\\]",Z=":("+G+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+K+")|[^:]|\\\\.)*|.*))\\)|)",ee=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+J+"*((?:-\\d)?\\d*)"+J+"*\\)|)(?=[^-]|$)",te=new RegExp("^"+J+"+|((?:^|[^\\\\])(?:\\\\.)*)"+J+"+$","g"),ne=new RegExp("^"+J+"*,"+J+"*"),re=new RegExp("^"+J+"*([\\x20\\t\\r\\n\\f>+~])"+J+"*"),ie=new RegExp(Z),oe=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,ae=/[\x20\t\r\n\f]*[+~]/,se=/h\d/i,le=/input|select|textarea|button/i,ue=/\\(?!\\)/g,ce={ID:new RegExp("^#("+G+")"),CLASS:new RegExp("^\\.("+G+")"),NAME:new RegExp("^\\[name=['\"]?("+G+")['\"]?\\]"),TAG:new RegExp("^("+G.replace("w","w*")+")"),ATTR:new RegExp("^"+K),PSEUDO:new RegExp("^"+Z),POS:new RegExp(ee,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+J+"*(even|odd|(([+-]|)(\\d*)n|)"+J+"*(?:([+-]|)"+J+"*(\\d+)|))"+J+"*\\)|)","i"),needsContext:new RegExp("^"+J+"*[>+~]|"+ee,"i")},fe=function(e){var t=_.createElement("div");try{return e(t)}catch(e){return!1}finally{t=null}},pe=fe(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),de=fe(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==F&&"#"===e.firstChild.getAttribute("href")}),he=fe(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),ge=fe(function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),me=fe(function(e){e.id=M+0,e.innerHTML="
",q.insertBefore(e,q.firstChild);var t=_.getElementsByName&&_.getElementsByName(M).length===2+_.getElementsByName(M+0).length;return a=!_.getElementById(M),q.removeChild(e),t});try{$.call(q.childNodes,0)[0].nodeType}catch(e){$=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ue,""),e[3]=(e[4]||e[5]||"").replace(ue,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||w.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&w.error(e[0]),e},PSEUDO:function(e){var t,n;return ce.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(t=e[4])&&(ie.test(t)&&(n=f(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t),e.slice(0,3))}},filter:{ID:a?function(t){return t=t.replace(ue,""),function(e){return e.getAttribute("id")===t}}:function(n){return n=n.replace(ue,""),function(e){var t=typeof e.getAttributeNode!==F&&e.getAttributeNode("id");return t&&t.value===n}},TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(ue,"").toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(e){var t=U[M][e+" "];return t||(t=new RegExp("(^|"+J+")"+e+"("+J+"|$)"))&&U(e,function(e){return t.test(e.className||typeof e.getAttribute!==F&&e.getAttribute("class")||"")})},ATTR:function(r,i,o){return function(e,t){var n=w.attr(e,r);return null==n?"!="===i:!i||(n+="","="===i?n===o:"!="===i?n!==o:"^="===i?o&&0===n.indexOf(o):"*="===i?o&&-1",e.querySelectorAll("[selected]").length||D.push("\\["+J+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||D.push(":checked")}),fe(function(e){e.innerHTML="

",e.querySelectorAll("[test^='']").length&&D.push("[*^$]="+J+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||D.push(":enabled",":disabled")}),D=new RegExp(D.join("|")),u=function(e,t,n,r,i){if(!r&&!i&&!D.test(e)){var o,a,s=!0,l=M,u=t,c=9===t.nodeType&&e;if(1===t.nodeType&&"object"!==t.nodeName.toLowerCase()){for(o=f(e),(s=t.getAttribute("id"))?l=s.replace(A,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",a=o.length;a--;)o[a]=l+o[a].join("");u=ae.test(e)&&t.parentNode||t,c=o.join(",")}if(c)try{return R.apply(n,$.call(u.querySelectorAll(c),0)),n}catch(e){}finally{s||t.removeAttribute("id")}}return S(e,t,n,r,i)},H&&(fe(function(e){E=H.call(e,"div");try{H.call(e,"[test!='']:sizzle"),L.push("!=",Z)}catch(e){}}),L=new RegExp(L.join("|")),w.matchesSelector=function(e,t){if(t=t.replace(j,"='$1']"),!g(e)&&!L.test(t)&&!D.test(t))try{var n=H.call(e,t);if(n||E||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0]*)\/>/gi,qe=/<([\w:]+)/,Be=/]","i"),Ie=/^(?:checkbox|radio)$/,ze=/checked\s*(?:[^=]|=\s*.checked.)/i,Xe=/\/(java|ecma)script/i,Ue=/^\s*\s*$/g,Ye={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ve=y(F),Je=Ve.appendChild(F.createElement("div"));Ye.optgroup=Ye.option,Ye.tbody=Ye.tfoot=Ye.colgroup=Ye.caption=Ye.thead,Ye.th=Ye.td,ye.support.htmlSerialize||(Ye._default=[1,"X
","
"]),ye.fn.extend({text:function(e){return ye.access(this,function(e){return e===C?ye.text(this):this.empty().append((this[0]&&this[0].ownerDocument||F).createTextNode(e))},null,e,arguments.length)},wrapAll:function(t){if(ye.isFunction(t))return this.each(function(e){ye(this).wrapAll(t.call(this,e))});if(this[0]){var e=ye(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return ye.isFunction(n)?this.each(function(e){ye(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ye(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=ye.isFunction(t);return this.each(function(e){ye(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){ye.nodeName(this,"body")||ye(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!i(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=ye.clean(arguments);return this.pushStack(ye.merge(e,this),"before",this.selector)}},after:function(){if(!i(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=ye.clean(arguments);return this.pushStack(ye.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)e&&!ye.filter(e,[n]).length||(!t&&1===n.nodeType&&(ye.cleanData(n.getElementsByTagName("*")),ye.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&ye.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ye.clone(this,e,t)})},html:function(e){return ye.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===C)return 1===t.nodeType?t.innerHTML.replace(Me,""):C;if("string"==typeof e&&!Pe.test(e)&&(ye.support.htmlSerialize||!$e.test(e))&&(ye.support.leadingWhitespace||!Oe.test(e))&&!Ye[(qe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(_e,"<$1>");try{for(;n")?a=e.cloneNode(!0):(Je.innerHTML=e.outerHTML,Je.removeChild(a=Je.firstChild)),!(ye.support.noCloneEvent&&ye.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ye.isXMLDoc(e)))for(f(e,a),r=p(e),i=p(a),o=0;r[o];++o)i[o]&&f(r[o],i[o]);if(t&&(l(e,a),n))for(r=p(e),i=p(a),o=0;r[o];++o)l(r[o],i[o]);return r=i=null,a},clean:function(e,t,n,r){var i,o,a,s,l,u,c,f,p,d,h,g=t===F&&Ve,m=[];for(t&&void 0!==t.createDocumentFragment||(t=F),i=0;null!=(a=e[i]);i++)if("number"==typeof a&&(a+=""),a){if("string"==typeof a)if(We.test(a)){for(g=g||y(t),c=t.createElement("div"),g.appendChild(c),a=a.replace(_e,"<$1>"),s=(qe.exec(a)||["",""])[1].toLowerCase(),u=(l=Ye[s]||Ye._default)[0],c.innerHTML=l[1]+a+l[2];u--;)c=c.lastChild;if(!ye.support.tbody)for(f=Be.test(a),o=(p="table"!==s||f?""!==l[1]||f?[]:c.childNodes:c.firstChild&&c.firstChild.childNodes).length-1;0<=o;--o)ye.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o]);!ye.support.leadingWhitespace&&Oe.test(a)&&c.insertBefore(t.createTextNode(Oe.exec(a)[0]),c.firstChild),a=c.childNodes,c.parentNode.removeChild(c)}else a=t.createTextNode(a);a.nodeType?m.push(a):ye.merge(m,a)}if(c&&(a=c=g=null),!ye.support.appendChecked)for(i=0;null!=(a=m[i]);i++)ye.nodeName(a,"input")?v(a):void 0!==a.getElementsByTagName&&ye.grep(a.getElementsByTagName("input"),v);if(n)for(d=function(e){if(!e.type||Xe.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)},i=0;null!=(a=m[i]);i++)ye.nodeName(a,"script")&&d(a)||(n.appendChild(a),void 0!==a.getElementsByTagName&&(h=ye.grep(ye.merge([],a.getElementsByTagName("script")),d),m.splice.apply(m,[i+1,0].concat(h)),i+=h.length));return m},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ye.expando,l=ye.cache,u=ye.support.deleteExpando,c=ye.event.special;null!=(i=e[a]);a++)if((t||ye.acceptData(i))&&(n=(r=i[s])&&l[r])){if(n.events)for(o in n.events)c[o]?ye.event.remove(i,o):ye.removeEvent(i,o,n.handle);l[r]&&(delete l[r],u?delete i[s]:i.removeAttribute?i.removeAttribute(s):i[s]=null,ye.deletedIds.push(r))}}}),ye.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},He={},(Le=ye.uaMatch(O.userAgent)).browser&&(He[Le.browser]=!0,He.version=Le.version),He.chrome?He.webkit=!0:He.webkit&&(He.safari=!0),ye.browser=He,ye.sub=function(){function n(e,t){return new n.fn.init(e,t)}ye.extend(!0,n,this),n.superclass=this,((n.fn=n.prototype=this()).constructor=n).sub=this.sub,n.fn.init=function(e,t){return t&&t instanceof ye&&!(t instanceof n)&&(t=n(t)),ye.fn.init.call(this,e,t,r)},n.fn.init.prototype=n.fn;var r=n(F);return n};var Ge,Qe,Ke,Ze=/alpha\([^)]*\)/i,et=/opacity=([^)]*)/,tt=/^(top|right|bottom|left)$/,nt=/^(none|table(?!-c[ea]).+)/,rt=/^margin/,it=new RegExp("^("+z+")(.*)$","i"),ot=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),at=new RegExp("^([-+])=("+z+")","i"),st={BODY:"block"},lt={position:"absolute",visibility:"hidden",display:"block"},ut={letterSpacing:0,fontWeight:400},ct=["Top","Right","Bottom","Left"],ft=["Webkit","O","Moz","ms"],pt=ye.fn.toggle;ye.fn.extend({css:function(e,t){return ye.access(this,function(e,t,n){return n!==C?ye.style(e,t,n):ye.css(e,t)},e,t,1)<[^<]*)*<\/script>/gi,Et=/([?&])_=[^&]*/,St=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,At=ye.fn.load,jt={},Dt={},Lt=["*/"]+["*"];try{bt=M.href}catch(e){(bt=F.createElement("a")).href="",bt=bt.href}vt=St.exec(bt.toLowerCase())||[],ye.fn.load=function(e,t,n){if("string"!=typeof e&&At)return At.apply(this,arguments);if(!this.length)return this;var r,i,o,a=this,s=e.indexOf(" ");return 0<=s&&(r=e.slice(s,e.length),e=e.slice(0,s)),ye.isFunction(t)?(n=t,t=C):t&&"object"==typeof t&&(i="POST"),ye.ajax({url:e,type:i,dataType:"html",data:t,complete:function(e,t){n&&a.each(n,o||[e.responseText,t,e])}}).done(function(e){o=arguments,a.html(r?ye("
").append(e.replace(kt,"")).find(r):e)}),this},ye.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){ye.fn[t]=function(e){return this.on(t,e)}}),ye.each(["get","post"],function(e,i){ye[i]=function(e,t,n,r){return ye.isFunction(t)&&(r=r||n,n=t,t=C),ye.ajax({type:i,url:e,data:t,success:n,dataType:r})}}),ye.extend({getScript:function(e,t){return ye.get(e,C,t,"script")},getJSON:function(e,t,n){return ye.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?T(e,ye.ajaxSettings):(t=e,e=ye.ajaxSettings),T(e,t),e},ajaxSettings:{url:bt,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(vt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Lt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":m.String,"text html":!0,"text json":ye.parseJSON,"text xml":ye.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:w(jt),ajaxTransport:w(Dt),ajax:function(e,t){function n(e,t,n,r){var i,o,a,s,l,u=t;2!==w&&(w=2,d&&clearTimeout(d),p=C,f=r||"",T.readyState=0\s|>\s)(.+?)(?:\n|$)/gm,markdown_heading:/(?:^|\n)(\#{1,6}) (.*?\S *)(?:\n|$)/gm,markdown_line:/(^|[\n])(\*{3,}|\-{3,})(?=$|[\n])(.*)/g,markdown_codeblock:/(^|\s)`{3}((?:(?:.*?$)\n)?(?:[\s\S]*?))`{3}(?=$|\s)/g,markdown_code:/(^|\s)\`(.*?\S *)?\`(?=$|\s)/g,markdown_bold:/(^|\s|[{\[])\*{1,2}(.*?\S *)?\*{1,2}(?=$|\s|[\.,\?:;\-}\]](?:$|\s))/g,markdown_italic:/(^|\s|[{\[])\_(.*?\S *)?\_(?=$|\s|[\.,\?:;\-}\]](?:$|\s))/g,markdown_underline:/(^|\s|[{\[])\_{2}(.*?\S *)?\_{2}(?=$|\s|[\.,\?:;\-}\]](?:$|\s))/g,markdown_strike:/(^|\s|[{\[])\~(.*?\S *)?\~(?=$|\s|[\.,\?:;\-}\]](?:$|\s))/g,markdown_bullet:/(^\s|\n|^)(\*) (.*?\S *)*(?:(?:.*?$)\n)?((\s)*(\*)(.*?\S *)*(?:(?:.*?$)\n)?)*/gm,markdown_numlist:/(^\s|\n|^)(\d)+(\.) (.*?\S *)*(?:(?:.*?$)\n)?((\s)*(\d)+(\.)(.*?\S *)*(?:(?:.*?$)\n)?)*/gm,markdown_nextline:/(.*)(\n)(.*)/gm,markdown_image:/!\[(.*)\]\(((https?:\/\/(?:www\.)?|www\.)[a-zA-Z0-9][^@]*?)\s("|")(.*)("|")\)/gi,markdown_video:/\[!\[(.*)\]\(((https?:\/\/(?:www\.)?|www\.)[a-zA-Z0-9][^@]*?)\)]\(((https?:\/\/(?:www\.)?|www\.)[a-zA-Z0-9][^@]*?)\)/gi},apply:function(e,n){return"string"!=typeof e?e:(e=e.replace(/
/g,"\n").trim(),e=this.applyRecursive(e,n),e=this.applyOnce(e),e=this.applyNextLine(e),e=this.decodeChars(e))},applyOnce:function(e){return e=(e=(e=(e=(e=e.replace(this.regexes.markdown_link,this.getLinkHTML)).replace(this.regexes.markdown_quote,this.getQuoteHTML)).replace(this.regexes.markdown_heading,this.getHeadingHTML)).replace(this.regexes.markdown_codeblock,this.getCodeblockHTML)).replace(this.regexes.markdown_code,this.getCodeHTML)},applyRecursive:function(e,n){return e=(e=(e=(e=(e=(e=(e=e.replace(this.regexes.markdown_bold,this.getBoldHTML)).replace(this.regexes.markdown_italic,this.getItalicHTML)).replace(this.regexes.markdown_strike,this.getStrikeHTML)).replace(this.regexes.markdown_underline,this.getUnderLineHTML)).replace(this.regexes.markdown_line,this.getLineHTML)).replace(this.regexes.markdown_bullet,this.getBulletHTML)).replace(this.regexes.markdown_numlist,this.getNumlistHTML),n||(e=(e=e.replace(this.regexes.markdown_image,this.getImageHTML)).replace(this.regexes.markdown_video,this.getVideoHTML)),e},applyNextLine:function(e){return e.replace(this.regexes.markdown_nextline,this.getNextLineHTML)},getNextLineHTML:function(e,n,t,r){return n+"
"+r},getLinkHTML:function(e,n,t,r,i){return n+' '+Markdown.encodeChars(t)+" "},getQuoteHTML:function(e,n){return 0===(n=$.trim(n)).length?e:Markdown.setPrefixAndSuffix(e,'
'+Markdown.applyRecursive(n)+"
")},getHeadingHTML:function(e,n,t){var r=n.length;return Markdown.setPrefixAndSuffix(e," '+Markdown.encodeChars(t)+" ")},getLineHTML:function(e,n,t,r){return n+'

'+Markdown.applyRecursive($.trim(r))},getCodeblockHTML:function(e,n,t){return 0===$.trim(t).length?e:n+'
 '+Markdown.applyRecursive(t)+"
"},getUnderLineHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"_"===t[0]||"_"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+' '+Markdown.applyRecursive(t)+" "},getCodeHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"`"===t[0]||"`"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+' “'+Markdown.encodeChars(t)+"” "},getBoldHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"*"===t[0]||"*"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+' '+Markdown.applyRecursive(t)+" "},getItalicHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"_"===t[0]||"_"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+' '+Markdown.applyRecursive(t)+" "},getStrikeHTML:function(e,n,t){return!t||!t.match(/[^_*`~]/)||"~"===t[0]||"~"===t[t.length-1]||" "===t[0]&&" "===t[t.length-1]?e:n+' '+Markdown.applyRecursive(t)+" "},getBulletHTML:function(e){if(0==e.replace(/\s/g,"").replace(/\*/g,"").length)return e;for(var n=e.split("\n"),t="",r=0;r ')+" "}return Markdown.setPrefixAndSuffix(e,'
    '+t+"
")},getNumlistHTML:function(e){if(!isNaN(e))return e;for(var n=e.split("\n"),t="",r=0;r ')+" "}return Markdown.setPrefixAndSuffix(e,'
    '+t+"
")},getImageHTML:function(e,n,t,r,i,a){var s="";try{s=_SCHEMA+"://"+_EMBEDSERVERURL}catch(e){s=_SCHEMA+"://"+_SERVERURL}return s+="/linkredirect.sas?link="+encodeURIComponent(t),Markdown.setPrefixAndSuffix(e,' '+n+' ')},getVideoHTML:function(e,n,t,r,i,a){var s="";try{s=_SCHEMA+"://"+_EMBEDSERVERURL}catch(e){s=_SCHEMA+"://"+_SERVERURL}return s+="/linkredirect.sas?link="+encodeURIComponent(t),Markdown.setPrefixAndSuffix(e,' '+n+' ')},encodeChars:function(e){return e.replace(/\*/g,"*").replace(/\_/g,"_").replace(/\~/g,"~")},decodeChars:function(e){return e.replace(/*/g,"*").replace(/_/g,"_").replace(/~/g,"~")},setPrefixAndSuffix:function(e,n){var t=suffix="";return"\n"!=e[0]&&" "!=e[0]||(t=e[0]),"\n"!=e[e.length-1]&&" "!=e[e.length-1]||(suffix=e[e.length-1]),t+n+suffix}};var Browser=function(){};Browser.getInfo=function(){try{lsnocachefix("json")}catch(e){}try{({cookie:navigator.cookieEnabled,java:navigator.javaEnabled()})}catch(e){}return{cookie:navigator.cookieEnabled,java:navigator.javaEnabled(),color:window.screen.colorDepth,screen:window.screen.availWidth+" * "+window.screen.availHeight,title:Browser.getPageTitle(),currentpage:Browser.getCurrentPage(),referrer:Browser.getReferrer(),browser:$.browser.name,browserversion:$.browser.version,os:$.os.name,jsversion:jsversion,flashversion:Browser.getFlashVersion(),localtime:Browser.getLocalTime(),lang_embed:_LANG,ccode:_CCODE}},Browser.getFlashVersion=function(){try{try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{e.AllowScriptAccess="always"}catch(e){return"6.0.0"}}catch(e){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/,"").replace(/\D+/g,".").match(/^,?(.+),?$/)[1]}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/,"").replace(/\D+/g,".").match(/^,?(.+),?$/)[1]}catch(e){}}return"0.0.0"},Browser.getLocalTime=function(){try{return(new Date).toTimeString().split(" ").slice(1).join(" ")}catch(e){}return""},Browser.setReferer=function(e){"null"!=e&&(Browser.referer=e)},Browser.setCurrentPage=function(e){Browser.currentpage=e||""},Browser.getCurrentPage=function(){return Browser.currentpage?Browser.currentpage:""},Browser.getReferrer=function(){try{return Base64.atob(opener.Button.sitereferrer)}catch(e){if("null"!=Browser.referer)return Base64.atob(Browser.referer)}return""},Browser.setPageTitle=function(e){null==e&&""==e||(Browser.pagetitle=e)},Browser.getPageTitle=function(){try{return opener.Button.pagetitle}catch(e){if(null!=Browser.pagetitle)return Browser.pagetitle}return""};function LSDebugger(){}LSDebugger.init=function(){this.infoarray=[],this.debuglimit=100,this.logarr=[]},LSDebugger.getCurrentTime=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+":"+e.getMilliseconds()},LSDebugger.pushDebugInfo=function(e){e&&(this.infoarray.length>=this.debuglimit&&this.infoarray.splice(0,1),this.infoarray.push({time:LSDebugger.getCurrentTime(),info:e}))},LSDebugger.clearDebugInfo=function(){this.infoarray=[]},LSDebugger.postDebugInfo=function(e,r,t,o){if(e){try{var n=parseInt(CurrentUser.getWMSID().split("_")[1]);if(r&&-1===$.inArray(n,r))return;if(t&&t⇅ ⇆ '+LSResource.getRealValue("common.tonavigate")+''+LSResource.getRealValue("common.toselect")+""+LSResource.getRealValue("common.close")+" [Esc]
":"",n=" sel";for(var t in m){var r=m[t],o=LSResource.getRealValue("smiley."+r);l+='
'+o+"
",n=""}return a+l+""};return{init:function(){for(var e in i="",l)e=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),""!=i?i+="|"+e:i=e},replace:function(e){try{var s=new RegExp("([ >\n]|^)("+i+")(?=[ <\n]|$)","g");e=e.replace(s,function(e,s,i){return s+''})}catch(e){}return e},handleInSertSmiley:function(e,s){var i=$(s),l=i.parent().find("#smilelist");return 0==l.find(".siqsmile_li").length||(!(e=e||l.find(".smileli.sel").attr("smilename"))||(CommonUtil.handleAddDynamicKey(TRIGGER_SMILEY_KEY,i,e),l.html("").stop().hide(),!1))},checkAndTriggerSmiley:function(e,s){var i,l,a=/^(37|38|39|40)$/.test(s),n=e.target,t=$(n).val().substring(0,n.selectionStart),r=t.lastIndexOf(" "+TRIGGER_SMILEY_KEY)+1,o=$(n).parent().find("#smilelist"),m=t.indexOf(TRIGGER_SMILEY_KEY),d=o.find(".smile_sublist");if(0',document.body.appendChild(r)}},getPlayer:function(){if(EmbedSound.IS_FLASH_EXIST)return window.document.player?window.document.player:-1!=navigator.appName.indexOf("Microsoft Internet")?document.getElementById("player"):document.embeds&&document.embeds.player?document.embeds.player:void 0},play:function(e,a){var t=this;if(t.isPlayerEnable()&&!$EmbedManger.isSoundOff()){var n=_MEDIASERVERURL+"/sound/"+t.tunes[e];if(t.IS_HTML5_AUDIO)try{void 0===t.cache[n]?(t._SOUND_PLAYER=new Audio(n+"."+t.extn),t._SOUND_PLAYER.addEventListener("loadeddata",function(){4==t._SOUND_PLAYER.readyState&&(t.cache[n]=t._SOUND_PLAYER)})):(t._SOUND_PLAYER=t.cache[n],t._SOUND_PLAYER.currentTime=0),a?(t._SOUND_PLAYER.loop=!0,t._SOUND_PLAYER.play(),clearTimeout(t.cleartimer),t.cleartimer=setTimeout(function(){t.stop()},1e3*a)):(t._SOUND_PLAYER.loop=!1,t._SOUND_PLAYER.play())}catch(e){}else try{var l=t.getPlayer();n=n+".mp3";l.SetVariable("_root.loops",t.loop),l.TCallLabel("_root.$listener","setloops"),l.SetVariable("_root.$listener.fpath",n),l.TCallLabel("_root.$listener","playfile")}catch(e){}}},isPlaying:function(e){try{var a=this;if(void 0===a._SOUND_PLAYER)return!1;if(!a.isPlayerEnable()||$EmbedManger.isSoundOff())return!1;var t=a._SOUND_PLAYER.src;return a.tunes[e]===t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."))}catch(e){}return!1},stop:function(){var e=this;if(e.IS_HTML5_AUDIO)try{e._SOUND_PLAYER.pause(),e._SOUND_PLAYER={}}catch(e){}else try{if(!e.IS_FLASH_EXIST)return;e.getPlayer().TCallLabel("_root.$listener","stopSound")}catch(e){}},isPlayerEnable:function(){return this.IS_FLASH_EXIST||this.IS_HTML5_AUDIO}},EmbedSound.init();var _WMSDOWN=!1,isntwrkreconnect=!1;function WmsliteImpl(){}WmsliteImpl.serverdown=function(){if(-1!=$EmbedManger.getChatID()){_WMSDOWN=!0;var e=document.getElementById("nwcheckimg");e&&e.parentElement.removeChild(e),(e=document.createElement("img")).style.display="none",e.id="nwcheckimg",document.body.appendChild(e),e.addEventListener?(e.addEventListener("load",function(){$EmbedManger.UI.displayInfo(WmsliteImpl.getValueByType("onload"),2)}),e.addEventListener("error",function(){$EmbedManger.UI.displayInfo(WmsliteImpl.getValueByType("onerror"),2)})):(e.attachEvent("onload",function(){$EmbedManger.UI.displayInfo(LSResource.getRealValue("wms.connectionlost.error"),2)}),e.attachEvent("onerror",function(){$EmbedManger.UI.displayInfo(LSResource.getRealValue("visitorchat.reconnection.msg"),2)})),e.src="https://img.zohostatic.in/salesiq/Feb_15_2020_https/images/spacer.gif?nocache="+(new Date).getTime()}},WmsliteImpl.serverup=function(e){var n={mtype:0};n.msg=e;var t=!(!_JOINED||_WMSDOWN);_JOINED=!1,_WMSDOWN&&(isntwrkreconnect=!0,$EmbedManger.UI.displayInfo(LSResource.getRealValue("visitorchat.connectivity.success"),1),setTimeout(function(){$EmbedManger.UI.hideInfo()},5e3)),_WMSDOWN=!1,LSMessanger.push(n,isntwrkreconnect,t),isntwrkreconnect=!1},WmsliteImpl.handleLogout=function(e){},WmsliteImpl.handleMessage=function(e,n){var t={};t.mtype=e,t.msg=n,LSMessanger.push(t)},WmsliteImpl.handleAccountDisabled=function(e){},WmsliteImpl.handleServiceMessage=function(e){},WmsliteImpl.getValueByType=function(e){var n="";return avimpl.active?n=LSResource.getRealValue("av.info.connectiondisconnected"):"onload"==e?n=LSResource.getRealValue("wms.connectionlost.error"):"onerror"==e&&(n=LSResource.getRealValue("visitorchat.reconnection.msg")),n};$(document).ready(function(){var e={};if(parent.$ZSIQWidget?e=parent.$ZSIQWidget.getEmbedObject():opener&&opener.$ZSIQWidget&&(e=opener.$ZSIQWidget.getEmbedObject(),window.onbeforeunload=$UI.showCloseAlert),e.einfo.embedstatus){LSMessanger.setSubDomain(e.lssubdomain),LSMessanger.init(),$Support.type=e.params.type,document.title=e.pinfo.companyname+" - "+LSResource.getRealValue("common.livechat"),_EMBEDNAME=e.embedname,_SCREENNAME=e.screenname,_LANG=e.lang,_CCODE=e.ccode,_SCHEMA=e.schema,_EMBEDSERVERURL=e.embedserverurl,INIT=!1,_TZCOFFSET=-1*(new Date).getTimezoneOffset(),_TZOFFSET=e.tzoffset?parseInt(e.tzoffset):null,_TZOFFSET=null==_TZOFFSET?_TZCOFFSET:_TZOFFSET,_TOOLTIP=e.tooltip,_TZSOFFSET=parseInt(e.tzsoffset),_TZPOFFSET=parseInt(e.tzpoffset),CLIENTVERSION=e.servername,_SERVERNAME=e.clientversion,uapache=e.uapache,ucomp=e.ucomp,_VIDEOVERSION=e.videoversion,_MEDIASERVERURL=uapache?e.mediaserverurl:_SCHEMA+"://"+_EMBEDSERVERURL,_SUPPORTURL=e.supporturl,_WMSJSSTATICDOMAIN=e.wmsjsstaticdomain,_SIQHELPLINK=e.siqhelplink,_ZCAMPAIGNENABLED=e.campaignenabled,_ANNONREGTIMEOUT=e.annonregistertimeout,_PRDNAME=e.productname,_PRDURL=e.producturl,_FREELOGOLINK=e.freelogolink,_GT_ATTRIBUTIONLINK=e.gtattributionlink,_STUN_TURN_URLS=e.stun_turnurls,_CFPARAMNAME=e.cfparamname,_CFCNAME=e.cfcname,jsversion=null,ucomp||(LSResource.MessageObject=e.jsresource);for(var t=1;t<=8;t++){var n=document.createElement("script");n.setAttribute("language","JavaScript1."+t),n.text="jsversion = 1."+t+";";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r)}$Support.init(e)}});!function(a){var e=function(t,e){this.$elem=a(t),this.dropobj=e,this.options=e.options};e.prototype={init:function(){this.setHeader(),this.setDropList(),this.bindEventHandlers(),this.$elem.addClass("sqico-drpdwn")},setHeader:function(){var t=this.dropobj;this.$elem.attr("dockeydown","dropdown").html(''+t.defaultval+"")},setDropList:function(){for(var t='
    ',e=this.options,i=e.length,n=this.dropobj.purpose,s=0;s'+l+p+"":""}this.$elem.append(t+"
"),this.sortList()},sortList:function(){var t=this.dropobj.purpose;if(!("department"!==t||"department"==t&&$Support.getApiDepartment().length)){var e=this.$elem.find("ul"),i=e.find("li");i.sort(function(t,e){return parseInt(a(t).find("span").attr("status"))>parseInt(a(e).find("span").attr("status"))?1:-1}),e.empty().html(i)}},getDeptStatusHTML:function(t){var e=""+t.STATUS=="true"?$Support.DEPT_ONLINESTATUES:$Support.DEPT_OFFLINESTATUES,i="1"===(e=""+t.ENGAGED=="true"?$Support.DEPT_ENGAGESTATUES:e)?"department.status_"+e:"common.offline";return''+LSResource.getRealValue(i)+""},getDeptName:function(t){for(var e=this.options,i=e.length,n=0;no+$Support.contentdiv.scrollTop())return t.addClass("btmalign"),i.css({top:"auto",bottom:o-n,"z-index":"111113"}),void i.find("li").removeClass("atsel");t.removeClass("btmalign"),i.css({bottom:"auto",top:n+s})},hideDropDown:function(){var t=this.$elem;t.find("ul").slideUp(function(){t.removeClass("zindrp")}).find("li.atsel").removeClass("atsel")}},a.fn.dropdown=function(t){return this.each(function(){new e(this,t).init()})}}(jQuery);function getSource(e){return ie?window.event.srcElement:e.target}function getEventSourceId(e){return null!=(e=null==e?window.event:e).srcElement?e.srcElement.id:e.target.id}function isUndefined(e){return void 0===e}function getObjectSize(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&t++;return t}function lsnocachefix(e,t){if("json"!=e)return e?"&nocache="+(new Date).getTime():"&"+_CFPARAMNAME+"="+getLDCSRFToken()+"&nocache="+(new Date).getTime();var n={};return n.nocache=(new Date).getTime(),!0!==t&&null!=t||(n[_CFPARAMNAME]=getLDCSRFToken()),n}function zeroUpFront(e){return 100<=e&&(e%=100),e<10&&(e="0"+(e=""+e)),e}function shrinkImage(e,t,n,r){var o={WIDTH:t,HEIGHT:e},i=[r/t,n/e];return 1<(i=Math.min(i[0],i[1]))?o:o={WIDTH:t*i,HEIGHT:e*i}}function getEncodedText(e){try{e&&(e=(e=e.replace(/'|'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(///g,"/")).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"))}catch(e){}return e}function getDecodedText(e){try{e=e.replace(/'|'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(///g,"/")}catch(e){}return e}function getMemSize(e){return 1048576"),r=n.html(e).text();return n.remove(),r}function getEscapedText(e){return isEncoded(e)?e:$("
").text(e).html()}function isEncoded(e){try{if(!/<|>/.test(e))return!0}catch(e){}return!1}function isPostMessageSupported(){try{return!!window.postMessage}catch(e){}return!1}util={optimizeFontForMozilla:function(e){var t=">16,o>>8&255,255&o));switch(n){case 1:o=Base64.getB64(t,r)<<18|Base64.getB64(t,r+1)<<12|Base64.getB64(t,r+2)<<6,a.push(String.fromCharCode(o>>16,o>>8&255));break;case 2:o=Base64.getB64(t,r)<<18|Base64.getB64(t,r+1)<<12,a.push(String.fromCharCode(o>>16))}return a.join("")}}},CommonUtil={TZOFFSET:-1*(new Date).getTimezoneOffset(),toJSON:function(e){return Object.toJSON?Object.toJSON(e):JSON.stringify(e)},parseToJSON:function(t){try{if("object"==typeof t)return t;t=JSON.parse(t)}catch(e){t=$.parseJSON(t)}return t},getCaptcha:function(e){return null!=e?"":null},isAllowPasteImage:function(){return this.isAllowFileSharing()&&/chrome/.test(navigator.userAgent.toLowerCase())},isAllowFileSharing:function(){return JSON.parse($Support.EmbedObj.eprops.icfile)&&Licence.verify("filesharing")},isAllowAssist:function(){return JSON.parse($Support.EmbedObj.eprops.isscreenshare)&&CommonUtil.isIntegratedPortal(LDINTEG_ZASSIST)&&Licence.verify("assistallowed")},isAudioCallAllowed:function(){return!$Support.isBotChat&&CommonUtil.isAudiocallEnabledFromPortal()&&JSON.parse($Support.EmbedObj.eprops.isaudiocall)&&!CommonUtil.isGroupChat()&&Licence.verify("audiocall")&&CommonUtil.isSecuredSchema()&&avaction.isBrowserSupported(navigator.userAgent,!0)},isScreenSharingAllowed:function(){return CommonUtil.isScreenshareEnabledFromPortal()&&JSON.parse($Support.EmbedObj.eprops.issiqscreenshare)&&Licence.verify("issiqscreenshare")&&this.isAudioCallAllowed()},handleImgLoad:function(e,t,n){e=$(e),CommonUtil.setShrinkImageCSS(e,t,n),e.animate({opacity:1},150)},setShrinkImageCSS:function(e,t,n){var r=(e=$(e))[0],o=e.parent(),i=t||o.height(),a=n||o.width(),c=shrinkImage(r.naturalHeight,r.naturalWidth,i,a);e.css({height:c.HEIGHT,width:c.WIDTH})},wordCapitalize:function(e){return e.toLowerCase().replace(/\b\w/g,function(e){return e.toUpperCase()})},escapeSpecialNotation:function(e){if(""==e||null==e)return e;if(-1!==(e=""+e).indexOf("$")){index=-1,count=0;for(var t=e.split(""),n=0;n<=t.length;n++)if("$"===t[n])count++,index=parseInt(n);else if(1n.containerbottom&&(r+=n.elementbottom-n.containerbottom,t.scrollTop(r))},getParentChildOffset:function(e,t){var n={};return n.containertop=t.offset().top,n.containerbottom=n.containertop+t[0].clientHeight,n.elementtop=e.offset().top,n.elementbottom=n.elementtop+e.outerHeight(),n},preventDefaultAndPropagation:function(e){e.preventDefault(),e.stopPropagation()},handleFileUpload:function(t){var n=t.callbacks;$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",function(e){n.progress&&n.progress(e,t.msgid)},!1),e},url:$Support.getAjaxURL("upload",".ls"),type:"POST",data:t.formdata,contentType:!1,dataType:t.type,processData:!1,success:function(e){n.success&&n.success(e)},complete:function(e){n.complete&&n.complete(e)}})},isIntegratedPortal:function(e){var t=$Support.EmbedObj.integid;if("null"==t||""==t)return!1;t=JSON.parse(t);var n=[LDINTEG_SDPONDEMAND,LDINTEG_ZOHOSUPPORT,LDINTEG_ZCREATOR];e&&(n=[e]);for(var r=0;r=t?e+"
":e},addIfExists:function(e,t,n){if(n)return e[t]=n},isBot:function(e){if(e&&-1!=e)try{var t=e.split("_")[2];return/^b/.test(t)}catch(e){return!1}},getBotImageURL:function(){var e=$Support.getParent().$ZSIQChat.getWidgetData(),t=e.embedobj;return(e.commondata.isdev?t.schema+"://"+t.embedserverurl:"")+"https://img.zohostatic.in/salesiq/Feb_15_2020_https/images/botagent.svg"},isSecuredSchema:function(){return-1").replace(/</g,"<").replace(/&/g,"&")},getScreenName:function(){return _SCREENNAME},isGroupChat:function(){var e=0;Object.keys(SUPPORT_REPS);for(var t in SUPPORT_REPS){if(1/gi,"")).replace(/<\/p>/gi,"")).replace(/")).replace(/^\s*$/gi,"")}catch(e){}return e},format:function(e){try{e=(e=(e=" "+e).replace(/((?:href|src)=["']?)?((https?:\/\/(?:www\.)?|www\.)[a-z0-9][^ \n\r]*?)(?="|'|<|[\s"'<]|$)/gi,function(e,t,a,r){_SCHEMA,_EMBEDSERVERURL;return t?e:'"+a+""})).replace(/(=('|'|"|'|")*)?([a-z0-9]([a-z0-9_\-+\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,22}(\.[a-z]{2}){0,2}))/gi,function(e,t,a,r){return t?e:''+r+""})}catch(e){}return e},getDisplayContent:function(e){return e=Smiley.replace(e),e=Message.trim(e)},isLocalUser:function(e){return e==myMsgObj.sender},isHeader:function(e,t){return t&&t!=Message.presender},isSameBrowser:function(e){return!e||e==LSMessanger.getSid()},updateLastMessagePostTime:function(){Message.lastMessagePostTime=(new Date).getTime()},getLastMessagePostTime:function(){return Message.lastMessagePostTime||0},send:function(e,t,a){var r=(new Date).getTime();Message.updateLastMessagePostTime(),this.displaySendMessage(e,t,a,r),LSMessanger.sendMessage(e,t,a,r)},displaySendMessage:function(e,t,a,r){t=t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),myMsgObj.chid=e,myMsgObj.msg=t,myMsgObj.scroll=!0,myMsgObj.uniqueid=r,null!=a&&""!=a&&(myMsgObj.msg=""+t+""),Message.formatAndDisplay(myMsgObj)},formatAndDisplay:function(e){try{var t=e.msg,a=t,r=e.sender,n=e.mod,i=e.istranslated,s="";if(null==e.scroll||e.scroll,t=Message.getDisplayContent(t),s=null!=n&&"att"==n?(t=Message.constructAttUrl(e),"chatwindow.sharing_a_file_with_you"):(e.msg=t,"cannedarticle"===e.mode&&(a=$FAQ.getHeaderMessage(e.msg)),t=Message.getMessageBlock(e),"common.says.msg"),$("#conversationoption").remove(),$("#skipquestion").remove(),ZSIQTranscript.updateTranscript({html:t,msgid:e.msgid,sender:e.sender}),$Support.clearEndTimer(),e.dname&&!Message.isLocalUser(r)){var o=LSResource.getRealValue(s,getUnescapedText(e.dname)+","+a);Message.handleBlinkTitle(o)}Message.presender=r;var l=$Support.contentdiv.find("#consentbannerdiv");Message.isLocalUser(r)||e.convvisitorid&&("null"==r||$Support.Util.isAnnonUser(r))||i||0==l.length||$Support.hidetranslatebanner()}catch(e){}},updateMessageTime:function(e){try{var t=e.sender+"_"+e.msgid,a=($Support.chatdiv||$("#msgdiv")).find('div[msgid="'+t+'"]');if(0==a.length)return;var r=a.prev().attr("msgtime");if(r){var n=e.lmsgtime;if(r!=n&&3e3"+LSResource.getRealValue("av.info.callagain")+"","call_end"===e.operation){if(null!=a.duration&&""!=a.duration&&("audio"==a.type?o=LSResource.getRealValue("av.info.success"," "+a.duration)+callagain_txt:"screen_share"==a.type&&(o=LSResource.getRealValue("screenshare.info.success"," "+a.duration)),!t)){var l={attenderemail:$Support.EmbedObj.attenderemail,duration:a.duration};$Support.Util.handleCallbacks("call.completed",l)}CallImpl.updateUI(AV_RATING)}return"call_miss"===e.operation&&(o=LSResource.getRealValue("av.info.agent.missed")+callagain_txt,n&&(o=LSResource.getRealValue("av.info.visitor.missed",r)+callagain_txt)),"call_cancel"===e.operation&&(o=LSResource.getRealValue("av.info.visitor.cancelled",r)+callagain_txt,n&&(o=LSResource.getRealValue("av.info.agent.cancelled")+callagain_txt)),"call_reject"===e.operation&&("audio"==a.type?(o=LSResource.getRealValue("av.info.visitor.declined",r)+callagain_txt,n&&(o=LSResource.getRealValue("av.info.agent.declined")+callagain_txt)):"screen_share"==a.type&&(o=LSResource.getRealValue("screenshare.info.visitor.declined",r),n&&(o=LSResource.getRealValue("screenshare.info.agent.declined")))),"call_busy"===e.operation&&(o=LSResource.getRealValue("av.info.visitor.declined",r)+callagain_txt,t||avimpl.handleUserBusy()),!t&&"call_busy"!==e.operation&&("call_miss"!==e.operation||!n)&&e.operation,"

"+o+"

"},getMessageBlock:function(e,t){var a="";try{a=e.msg,sender=e.sender;var r=MyDate.getHoursandMin((new Date).getTime(),!0,"bclient");if("CT_INF_MSG"==sender)a='
'+a+"
";else{var n=!1,i=getEscapedText(e.dname);Message.presender&&Message.presender===sender&&(n=!0);var s,o={sender:sender,dname:i,msg:a,time:r,previoussender:n,uniqueid:e.uniqueid,msgid:e.msgid,meta:$Widget.getMetaCardData()};"cannedarticle"===e.mode?(o.msg=a=ZSIQTranscript.getCustomArticleCard(e.msg),o.iscannedarticle=!0,o.cardheader=$FAQ.getHeaderMessage(e.msg),$Support.handleNewMessageInConversation(o)):"botrating"===e.mode&&(o.botrating=!0,o.ratinghtml=e.ratinghtml),e.bot_image&&(o.bot_image=e.bot_image),-1===$Support.EmbedObj.chatID&&(s=e.chid),$Support.updateChatCache(o,void 0,s);var l=$.extend({},o);a=ZSIQTranscript.getTranscript(l,t)}}catch(e){}return a},displayInfo:function(e,t){Message.display($UI.getInfoMsgHTML(e,t),!0)},getInfoHTML:function(e,t,a){var r=function(e,t){return t=t||"",LSResource.getRealValue(e,t)},n="",i=e.mode,s=$Support.EmbedObj;n={ACCEPT_TRANSFER:r("transcript.info.chattransfer",p=e&&e.opruser?e.opruser.dname:""),ACCEPT_FORWARD:r("transcript.info.acceptforward",p),FORWARD_SUPPORT:r("transcript.info.forwardsupport",p),JOIN_SUPPORT:r("transcript.info.joinsupport",p)}[i];if(-1<["ACCEPT_TRANSFER","ACCEPT_FORWARD","JOIN_SUPPORT"].indexOf(i)&&e){$BotImpl.enableComposer(),$UI.populateUserAction();var o=e.opruser;o.attendername=o.dname,$Support.isBotChat&&!a&&$Support.handleBotTransferAccept(),t||(s.attenderimagefkey=o.image_fkey,s.setAttender(o.lsuid),s.attenderaboutme=o.aboutme,$Support.isConversationUIFocussed()||$UI.setInnerHeader(o),s.attendername=getUnescapedText(o.dname),$Support.handleChatTransferInConversationListView()),$Support.removeChatCookie(),$Support.setCookie(),$Support.Util.toggleAudioCallIcon(!0);for(var l=document.querySelectorAll("#audio_callagain"),c=0;c"+r("chatwindow.meeting.share.now")+"")):n="request"==u?r("chatwindow.meeting.request",p)+(myMsgObj.sender?" "+r("chatwindow.meeting.share.now")+"":""):r("chatwindow.share.screen",p)+(myMsgObj.sender?" "+r("chatwindow.meeting.joinnow")+"":"")}}else if("MEDIA"===i)n=Message.getAVMessageBlock(e,a);else if("CHATMONITOR_JOIN"==i){$Support.Util.toggleAudioCallIcon();for(l=document.querySelectorAll("#audio_callagain"),c=0;c").html(e).contents();if(l&&0 .ziq_msg").last();if(!s||t)return void Message.scroll(i,g);Message.animate(g)}},animate:function(e,t,a){if(e){var r=t?{right:"auro",left:"-20px",opacity:"0"}:{right:"0",left:"0",opacity:"1"};e.animate(r,300,function(){a&&a(e)})}},isTypingShown:function(){return 0<$("#siq_bottype").length},isFirstMessageForTyping:function(){return $("#siq_bottype").parent().attr("frstmsg")},scroll:function(e,t){e&&$(e).animate({scrollTop:e.scrollHeight-e.offsetHeight},250,function(){Message.animate(t)})},handleBlinkTitle:function(e){$EmbedManger.isComposerFocused()||parent==self&&$EmbedManger.iswindowfocused()||Message.blinkTitle(e)},blinkTitle:function(e){var t=$Support;t.isblinking||(t.documenttitle=document.title,t.isblinking=!0),Message.startBlinking(e),$Support.getParent().$ZSIQUtil.blinkTitle(e)},startBlinking:function(e){if(!e)return!1;clearTimeout($Support.blinktimer);var t,a="";$Support.blinktimer=setInterval(function(){t="title"==t?(a=e,"chmsg"):(a=$Support.documenttitle,"title"),document.title=a},500)},stopBlinking:function(){$Support.getParent().$ZSIQUtil.stopBlinking(),$Support.isblinking&&(clearTimeout($Support.blinktimer),$Support.isblinking=!1,document.title=$Support.documenttitle)},checkCardMask:function(e){for(var t=e.split("").map(Number),a=0,r=t.length,n=r%2,i=0;i"+t.innerHTML}catch(e){}}function printtime(){print(new Date)}function LSgetPrd(){return LSMessanger.getPrd()}function LSgetAuthType(){return 0}function LSgetUserName(){return LSMessanger.getUserName()}function LSgetNickName(){return LSMessanger.getNickName()}function LSgetUserId(){return LSMessanger.getUserId()}function LSgetSid(){return LSMessanger.getSid()}var lpt,pmonInterval=15e3;function LSplive(){lpt=new Date}function LSMessanger(){}LSMessanger.init=function(){this.rchid=-1},LSMessanger.setRCHID=function(e){LSMessanger.rchid=e},LSMessanger.getRCHID=function(){return LSMessanger.rchid},LSMessanger.deleteSid=function(){delete LSMessanger.sid},LSMessanger.register=function(e,t){try{setTimeout(function(){LSDebugger.postDebugInfo("Visitor Side before registor : "+t,null,"",!0)},1)}catch(e){}if(e){if(!t)return!1;this.prd=e,this.uname=t,LSMessanger.init(),WmsLite.setNoDomainChange(),WmsLite.setAuthType(0),WmsLite.setJSStaticDomain(_WMSJSSTATICDOMAIN),WmsLite.forceDomainChange();var s=_SCHEMA+"://"+_EMBEDSERVERURL;WmsLite.allowCrossOrigin(s),WmsLite.setWmsContext("salesiq"),WmsLite.setConfig(79),WmsLite.registerAnnon(e,this.uname,this.nname)}else $EmbedManger.UI.showProcess(LSResource.getRealValue("common.serverconnectingerror")+" "+LSResource.getRealValue("common.reload")+"")},LSMessanger.getUserName=function(){return this.uname},LSMessanger.getNickName=function(){return this.nname},LSMessanger.setNickName=function(e){this.nname=e},LSMessanger.getUserId=function(){return this.uid},LSMessanger.getPrd=function(){return this.prd},LSMessanger.getSid=function(){return this.sid},LSMessanger.disable=function(){WmsLite.disablewms=!0},LSMessanger.isdisablewms=function(){return WmsLite.disablewms},LSMessanger.push=function(e,t,s){try{var n=parseInt(e.mtype);0]*?>/gi,"").replace(/<\/span>/gi,"").replace(/
/gi,"\r\n");var f={visitid:a.getVisitID(),message:c,attendername:u.attendername,attenderemail:u.attenderemail};a.handleCallbacks("visitor.chatmessage",f),Self.status.clear(),($Support.isFloat()&&$Support.getTabOwner()==LSMessanger.getSid()&&parent.$ZSIQWidgetUI.getWidgetState()==parent.$ZSIQWidgetUI.F_BUTTON||$Support.isConversationUIFocussed()||$Support.isFAQUIFocussed())&&$Support.incrementUnreadCount()}Message.updateMessageTime(m),$Support.handleOnGoingchatActionsInConversation("newmsg",m)}else if(e.mtype==CT_NFY_USERSTATUS){m=e.msg;try{SUPPORT_REPS[m.uname]&&(m.ismonitor=0!=m.ismonitor,SUPPORT_REPS[m.uname]=m),a.UI.showAgentStatus()}catch(e){}}else if(e.mtype==CT_NFY_USERADD){m=e.msg;try{var I=m.users;for(g=0;g'+a[n]+"",t++}return'
'+i+'
'}catch(e){return""}},L=function(e){try{return e.meta.display_card?e.meta.display_card.type:e.meta.input_card.type}catch(e){return""}},U=function(e){try{var s=e.meta[$Widget.display_card];-1!=["links","articles","video"].indexOf(s.type)&&(e.msg=$Widget.getWidgetHTML(e),e.is_ignoreformat=!0,e.bot_image="",e.widget_class={links:"",articles:"artcle-vw"}[s.type]||"")}catch(e){}return e},z=function(e){var s=$Support.EmbedObj,a=s?s.eprops:"";if(s&&!JSON.parse(a.showsmiley))return"";var i=document.createElement("DIV");return i.innerHTML=Smiley.replace(e),(i.textContent||i.innerText).trim()?"":" smily_msg"},j=function(e){return e=Message.format(e),Smiley.replace(e)},D=function(e){return(e.meta&&e.meta.msgid?e.meta.msgid:e.msgid)||""},n=function(e){if(e&&(e.typing_delay||0==e.typing_delay))return 1e3*parseInt(e.typing_delay)},H=function(e){var s=e.file,a=e.convvisitorid,i=e.convchid,t=-1!=e.msg.content.indexOf("image"),n=(e.time,$Support.EmbedObj),r=s.fName||s.name;r=getEscapedText(r);var d=$Support.getAjaxURL("download",".ls");d+="?fsize="+s.size+"&url="+escape(s.url)+"&fName="+encodeURIComponent(r),d+=a?"&visitorid="+a+"&chid="+i+"&isconversation=true":n?"&chid="+n.chatID+"&wmsid="+n.vwmsid:"&chid="+s.chatid;var l=s.purl||d,m=s.msgid?'msgid="'+s.msgid+'"':"",c=getMemSize(s.size),o=(s.progress,s.progress?" fprgs":""),g=$.trim(s.comment)?""+getEscapedText(s.comment)+"":"",p=t?'documentclick="imagepreview"':"";return['",t?'':''+r+'( '+c+" )",v(s,l),""+Smiley.replace(g)].join("")},v=function(e,s){return'
'+(s='')+"
"},V=function(e){return!(!e||-1==e.indexOf("$"))},B=function(e){return!!$Support.EmbedObj&&(!(e=e||$Support.EmbedObj.visitorname)||e&&(0===e.lastIndexOf("Visitor ",0)||0===e.lastIndexOf("Guest",0)))},r=function(e){var s=D(e);if(!s||!o(s)){var a,i=e.html,t=e.ispopulate,n=e.sender,r=$Support.Util.isMessageDIVScrolled();if(f()&&h())if(A(n))_(!0);else{_(!n);var d=$("
").html(i).contents();if(d&&0 .ziq_msg").last(),e.callback)}},c=function(e){var s=e.handoff_config;$Support.isBotChat&&!$Support.hidetransfer&&s&&($("#agenttransfer").remove(),$UI.appendTransferDiv(s.text,s.ack))},o=function(e){return!!$("#msgdiv").find('[data-msgid="'+e+'"]').length},g=function(e){e=e||0;var s=$("#msgmaindiv")[0];$("#msgdiv > .ziq_msg").last();s&&!$("#unreadarrow").length&&$(s).animate({scrollTop:s.scrollHeight-s.offsetHeight},e)},p=function(e,s,a){if(e){var i=s?{right:"auro",left:"-20px",opacity:"0"}:{right:"0",left:"0",opacity:"1"};e.animate(i,300,function(){a&&a(e)})}},u=function(){var t=$Support.container.find(".ziq_msg");t.each(function(e){var s=$(this);s.removeClass("single_msg lst_msg"),d(s);var a=$(t[e-1]),i=$(t[e+1]);!i.length&&!a.length||!i.length&&s.hasClass("agntmsg")&&a.hasClass("vismsg")||!i.length&&s.hasClass("vismsg")&&a.hasClass("agntmsg")||s.hasClass("agntmsg")&&i.hasClass("vismsg")&&a.hasClass("vismsg")||s.hasClass("vismsg")&&i.hasClass("agntmsg")&&(a.hasClass("agntmsg")||!a.length)?s.addClass("single_msg"):(!i.length||s.hasClass("agntmsg")&&i.hasClass("vismsg")||s.hasClass("vismsg")&&i.hasClass("agntmsg"))&&s.addClass("lst_msg")})},d=function(e){var s=e.find(".hr").length;!s||s<=e.find("br").length||e.addClass("hr_line")},f=function(){return 0<$("#siq_bottype").length},h=function(){return $("#siq_bottype").parent().attr("frstmsg")},A=function(e){return e==myMsgObj.sender},_=function(e){var s=$("#siq_bottype"),a=s.parent().prev().hasClass("agntmsg");if(s.length){if(e||a)return void s.parent().remove();s.remove()}},l=function(){return'
'},N=function(e){var s=e?"vismsg":"agntmsg";return!$("#msgdiv").find(".ziq_msg").last().hasClass(s)},W=function(e){return e.isvisitor?s:s=!(!e.meta||!e.meta.hand_off)||!!e.hand_off};return{getTranscript:function(e,s){var a=e.isbotmessage;e=s&&a?U(e):e;var i=$Support.EmbedObj,t=(i&&i.eprops,e.convvisitorid),n=A(e.sender)||t&&("null"==e.sender||V(e.sender))||e.isvisitor,r=i&&n&&!t?i.visitorname||e.name:e.dname,d=(a=e.isbotmessage,e.meta&&e.meta.input_card&&e.meta.input_card.isuseredit),l=R&&R==r;d?l=!0:R=r;var m="agntmsg siq-agntmsg",c="siq-user-name",o="siq-user-message",g="";(n||e.isques)&&(m="vismsg siq-visitmsg",c="siq-visitor-name",o="siq-visitor-message"),r=getEscapedText(r);var p=e.msg;if(e.mtype==CT_ATT_MSG&&(e.file=p),!e.file&&"object"==typeof p)return"";e.iscannedarticle&&(m+=" msg-card");var v="",u='purpose="name"';!B(r)&&r||a||(r=LSResource.getRealValue("common.you")),i&&-1',g='documentclick="userdetails"'));var f=d?"":e.time||"",h=e.uniqueid?e.uniqueid:e.msgid?e.msgid:"";h=e.file?e.file.msgid:h;var _=z(p),b="",y="";e.file&&(b=" file_msg",y='isimage="'+(-1!=e.msg.content.indexOf("image"))+'"');var $=e.ratinghtml?e.ratinghtml:"",S=e.meta&&e.meta.card_data&&e.meta.card_data.value?e.meta.card_data.value.image:null,C=S?e.meta.card_data.value:null,q="";C&&C.lat&&(q=" lat="+C.lat+" lng="+C.lng+' documentclick="openmapfromimage" ');var w=e.bot_image||S,E=w?'
':"",T=w?"msg-botimg":"",x=e.widget_class?" "+e.widget_class:"";m=s?m+" rm_anim":m,(l||n&&!t&&!N(n))&&(m+=" mrgT2",r=v=u=""),m+=e.iswidget?" siq_widget":"";var M=L(e);M=M?'data-wtype="'+M+'"':"";var k='data-msgid="'+D(e)+'"';n||(p=Markdown.apply(p)),p=e.is_ignoreformat?p:j(p);var O=I(e);return m+=O?" buble_bg":"",p=O||''+p+"",e.isvisitor=n,["
","
"+r+v+"
",'
'+E,e.file?H(e):p+$,"
","
"].join("")},updateTranscript:r,removeTyping:_,showTyping:function(e){if($("#msgdiv").length&&0==$("#siq_bottype").length){var s=e.isuseredit,a=$Support.EmbedObj?$Support.EmbedObj.attendername||e.dname:Bot.getBotOBJ().name,i=!N()||Message.presender==e.sender&&!A(Message.presender)?"":a,t='
'+(i?getEncodedText(i):" ")+'
'+l()+"
",n=(e.meta||{}).handoff_config||{};r({html:t,sender:e.sender||" ",istyping:!0,handoff_config:n}),s||(R=a)}},getCustomArticleCard:function(d){if(!d)return"";var e=d.owner_imgkey?'':"";return'
'+(d.image?'
':"")+'
'+(d.title?getEncodedText(d.title):"")+'
'+getEncodedText(d.description||"")+"
"+(d.owner_name?'
'+e+'
'+LSResource.getRealValue("article.by")+" "+getEncodedText(d.owner_name)+"
":"")+(d.articles&&d.articles.length?function(e,s){var a="";for(var i in e){var t=Object.keys(e[i])[0],n=e[i][t]||"";a+='"}var r=s?"":'
'+LSResource.getRealValue("faq.relatedarticles")+" :
";return'
'+r+a+"
"}(d.articles,d.hide_label):"")+"
"},getVideoCard:function(e){return e?'
':""},reSetPreviousSender:function(){R=""},scroll:g,setMessageClass:u,isMessageExist:o,getMessageID:D,getFormatedHTML:j,getImageURL:function(e){if("-1"==e.sender)return"";var s=e.sender.split("_");return s=s[2]||s[0],_SCHEMA+"://"+_EMBEDSERVERURL+"/"+CommonUtil.getScreenName()+"/userimg/"+s.replace("b","")+"/photo.ls?nocache=1"},getMessageDelay:function(e){var s=n(e.meta);if(null==s){var a=e.msglist;if(a&&0"))}if($Support.EmbedObj.status&&e.floatwindowonlinetitle&&!$Support.EmbedObj.attender&&!$Support.getTriggerCookie()&&$("#attname").text(e.floatwindowonlinetitle),$Support.EmbedObj.status||!e.floatwindowofflinetitle||$Support.EmbedObj.attender||$("#attname").text(e.floatwindowofflinetitle),$Support.isConversationAllowed()&&e.defaultview&&"Classic"==e.defaultview&&this.openClassicUI(),e.callstart&&-1==i.chatID&&t&&!$Support.proactive&&!$Support.istriggeredchat){if(avimpl.curr_status)return;avimpl.curr_status="outgoing",$Support.updateVisitorName();var I=LSResource.getRealValue("av.info.callquesmsg",i.visitorname);$Support.container.find('[info = "question"]').val(I),i.isaudiocall=!0,$Support.updateInputValues(),$Support.startChat(),$Support.container.remove(),$UI.setContainer(),$Support.getParent().$ZSIQUtil.getAPIValues(),$Support.container.append($Support.contentdiv=CallUIHandler.getTempForThemes(AV_OUTGOINGCALL)),$Support.getParent().$ZSIQWidgetUI.handleMinimizeCall(),$Support.getParent().$ZSIQChatWindow.openChatWindow()}e.waitime&&$Support.EmbedObj.status&&($Support.EmbedObj.embedwaitingtime=e.waitime),this.updateValuesFromVisitorInfoCookie(),this.Util.fillApiValues()}},handleAPIFunctionalities:function(e,t){var i=$Support.EmbedObj;"chatstart"==e?(i.addinfo.autochat=!0,$Support.getComposer().trigger("keyup")):"chatend"==e&&-1!==i.chatID&&$Support.quitChat()},updateValuesFromVisitorInfoCookie:function(){var e=$Support.EmbedObj,t=this.getCookieValue("ZLD"+e.livelsid+"VISITORINFO");t&&(e.setVisitorName(t.name),e.setVisitorEmail(t.email),e.setAddinfo(t),t.phone&&e.setVisitorPhone(t.phone),this.removeCookie("ZLD"+e.livelsid+"VISITORINFO"))},getOfflineMessage:function(){var e=$Support.EmbedObj;if(e.bushrstatus)return $UI.getBusinessHrInfo();var t=e.deptlist,i=$Support.getAggregateStatus(t),o=i[1],n=i[0];return o?(this.engaged=!0,e.engagedmessage?DynamicMsg.fillValues(e.engagedmessage):LSResource.getRealValue(1u||d.length'+LSResource.getRealValue(n)+"";this.Util.displayInfo(r)}$("#mraction").find("#sharedesktop").addClass("cmn_disable")},handleMeetingJoinCB:function(){this.Util.hideInfo(),$("#mraction").find("#sharedesktop").removeClass("cmn_disable")},shareDesktop:function(e){if(!$(e).hasClass("cmn_disable")){var t=lsnocachefix("json");t.chid=$EmbedManger.getChatID(),t.attender=$Support.EmbedObj.attender,this.handleAjax("authenticatesharedesktop",t,function(e){$Support.Util.hideMoreActionDiv()})}},isHandHeldDevice:function(){return!!$Support.Util.isSIQMobilePreview()||!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10|IEMobile|Opera Mini/i.test(navigator.userAgent)},isMobileWidth:function(){return $Support.getParent().document.body.offsetWidth<555||this.isHandHeldDevice()},setUVID:function(e){$Support.EmbedObj.uvid=e},setTabOwner:function(){var e="ZLD"+$Support.getParent().$ZSIQUtil.getLiveLSID()+"tabowner";this.LSDB.setCookie(e,LSMessanger.getSid())},getTabOwner:function(){var e="ZLD"+$Support.getParent().$ZSIQUtil.getLiveLSID()+"tabowner";return this.LSDB.get(e)},incrementUnreadCount:function(){var e="ZLD"+$Support.EmbedObj.livelsid+"unreadcount",t=$Support.getUnreadCount();t?t+=1:t=1,this.LSDB.set(e,t),$Support.getParent().$ZSIQWidgetUI.updateCount(t)},getUnreadCount:function(){var e="ZLD"+$Support.EmbedObj.livelsid+"unreadcount";return this.LSDB.get(e)},removeUnreadCookie:function(){var e="ZLD"+$Support.EmbedObj.livelsid+"unreadcount";this.LSDB.remove(e)},isAllowFreeLogo:function(){return!$Support.Util.isPreview()&&!CommonUtil.isIntegratedPortal()&&(Licence.isFreePlan()||$Support.EmbedObj.isBetaPortal)},handleAddVisitStatusChange:function(e){var t=$Support.EmbedObj;clearTimeout($Support.waitTimer),delete $Support.waitingtime,$UI.hideBanner(),$Support.removeCookie("ZLD"+t.livelsid+"WAITING"),t.setDepartmentList(e.DEPTLIST),t.setEmbedStatus(e.STATUS),$Support.container.find(".msgbox textarea").stop(),$Support.container.empty(),$Support.contentdiv=void 0,$Support.composer=void 0,$UI.updateOfflineUI(),$Support.container.addClass("outerwin"),$Support.Util.showOfflineBanner(),$UI.setDepartment(t.department),t.question&&$("#sqico-send").attr("documentclick","leavemessage"),LSMessanger.sid=void 0;var i=$Support.getParent().$ZSIQWidget.getWidgetObject();i.status=e.STATUS,i.onlysticker=!0,$Support.getParent().$ZSIQWidgetUI.drawWidget(i),i.hideoffline&&1==i.hideoffline[0]&&($Support.disableTextarea($Support.getComposer()),setTimeout(function(){$Support.getParent().$ZSIQChatWindow.handleChatWindowVisible("hide"),$Support.getParent().$ZSIQWidgetUI.handleWidgetVisible("hide")},3e3)),$Support.isConversationAllowed()&&$Support.Util.handleShowConversation(!1,!0),$Support.Util.handleResize()},handleLeaveMessageStatusChange:function(e){var t=$Support.EmbedObj;t.setDepartmentList(e.DEPTLIST),t.setEmbedStatus(e.STATUS),$Support.container.find(".msgbox textarea").stop(),$Support.container.empty(),$Support.contentdiv=void 0,$Support.composer=void 0,$UI.updateOnlineUI(!0),$Support.container.addClass("outerwin"),$Support.Util.showOnlineBanner(),$UI.setDepartment(t.department),t.question&&$("#sqico-send").attr("documentclick","textarea"),LSMessanger.sid=void 0},getAjaxURL:function(e,t){return url=_SCHEMA+"://"+_EMBEDSERVERURL+"/"+_SCREENNAME+"/"+e+t},appendMetaTag:function(){$("head").append('')},getValuesForDynamicMsg:function(){var e=$Support.EmbedObj,t={};CommonUtil.addIfExists(t,"name",e.visitorname),CommonUtil.addIfExists(t,"email",e.visitoremail),CommonUtil.addIfExists(t,"phone",e.visitorphone),CommonUtil.addIfExists(t,"department",e.department);var i=e.question?e.question:$Support.composer?$.trim($Support.composer.val()):"";return CommonUtil.addIfExists(t,"question",i),CommonUtil.addIfExists(t,"visit_id",e.VISITID),CommonUtil.addIfExists(t,"attendername",e.attendername),CommonUtil.addIfExists(t,"attenderemail",e.attenderemail),t},transferChat:function(e){if($BotImpl.enableComposer(),$Support.areUsersAvailable()){delete $Support.SIQFieldname,$Support.clearBotQuestionTimeout(),$("#conversationoption").remove();var t=lsnocachefix("json"),i=$Support.EmbedObj;t.visitorid=i.visitorID,e&&e.msg&&"DEPARTMENT"!=e.msg.type&&e.msg.userid&&(t.userid=e.msg.userid),i.uvid&&(t.uvid=i.uvid),t.showalert=!0,$(".zsiq_transferdiv").remove(),this.handleAjax("transferchat",t,function(e){$Support.storeHideTransfer(),e&&e.objString&&e.objString.do_not_route_enabled||($Support.deleteBotCookie(),delete $Support.isBotChat)})}else $UI.showOperatorOffline()},deleteBotCookie:function(){var e=$Support.EmbedObj,t=$Support.getCookieValue("ZLD"+e.livelsid);delete t.botchatprops,delete t.isbotchat,this.LSDB.setCookie("ZLD"+e.livelsid,t,31e4)},storeHandoffConfig:function(e,t){t||(t=$Support.EmbedObj.chatID),$Support.LSDB.storeInSession(t+"_handoffconfig",JSON.stringify(e))},getHandoffConfig:function(){var e=$Support.LSDB.getFromSession($Support.EmbedObj.chatID+"_handoffconfig");return e?JSON.parse(e):{}},handleTransferMissed:function(e){$UI.removeTransferDiv(e);var t=lsnocachefix("json"),i=$Support.EmbedObj,o=!(t={lsid:i.livelsid,visitorid:encodeURIComponent(i.visitorID),vwmsid:i.vwmsid,mode:"visitor",actiontype:"2",isbottransfer:!0});"offline"==e.attr("purpose")&&(o=!0),$Support.LSDB.remove("ZLD"+i.livelsid+"transfer_state"),this.handleAjax("missedvisitor",t,function(e){ZSIQConversationForm.clearSessionStorage(),$Support.handleMissedVisitor("error"!=e.objType,null,!0,o)})},hideTransferOption:function(){$UI.removeTransferDiv(),this.setCookie()},storeHideTransfer:function(){$Support.LSDB.storeInSession($Support.EmbedObj.chatID+"_handoff",!0),$Support.hidetransfer=!0,$UI.populateUserAction()},areUsersAvailable:function(){var e=$Support.EmbedObj,t=e.department;for(var i in e.deptlist)if(e.deptlist[i].ID==t)return!e.deptlist[i].ONLYBOTSAVAILABLE;return!1},getDeptName:function(e){var t=$Support.EmbedObj;for(var i in t.deptlist)if(t.deptlist[i].ID==e)return t.deptlist[i].DNAME||t.deptlist[i].NAME},getBotUser:function(){try{var e=$Support.EmbedObj,t=e.department;for(var i in e.deptlist)if(e.deptlist[i].ID==t)return e.deptlist[i].BOTUSER}catch(e){}return null},isConversationAllowed:function(){if($Support.Util.isPreview())return!1;var e=$Support.EmbedObj;return JSON.parse(e.eprops.isconversation)&&Licence.verify("conversationallowed")},bindScrollForConversationListContainer:function(){$Support.convlistcontainer.scroll(function(e){var t=e.target;if($Support.convongoingchatobj&&0==t.scrollTop&&$Support.removeConversationPopupMessage(),t.scrollHeight-t.scrollTop===t.clientHeight){if($Support.convlistindex<$Support.convlistlimit[$Support.EmbedObj.windowsize])return;$Support.PopulateConversationList(function(e,t){if(e.length){var i="";e.forEach(function(e){i+=$Temp.getConversationHistoryHTML(e)}),t?$Support.convlistcontainer.find("#pastchatconv").prepend($(i)):$Support.convlistcontainer.find("#pastchatconv").append(i),$Support.Util.showConversationListUI()}},$Support.convlistindex+1)}})},PopulateConversationList:function(o,n){var r,e={},a=$Support.getParent().$ZSIQUtil.getAvuid();if(e=lsnocachefix("json"),a){var t=this.LSDB.getFromSession(a+"_conversation");if(t&&t.length&&!n){o(t);var i=t[0];(r=i.endtime)&&(e.fromtime=r),$Support.convlistindex=t.length}e.avuid=a;var s=$Support.getParent().$ZSIQUtil.getAPIVisitorID();if(s&&(e.cvuid=s),e.limit=$Support.convlistlimit[$Support.EmbedObj.windowsize],n){if(0!=(e.index=n)){if(0!=$Support.convlistcontainer.find("#convlistloading").length||$Support.isallconvlistfetched)return;$Support.convlistcontainer.find("#pastchatconv").append($Temp.getConversationListLoadingHTML())}}else{var p=this.LSDB.get(a+"_accesstime");p&&(e.clientsynctime=p)}e.version=1,this.handleAjax("conversation",e,function(e){if($Support.convlistcontainer.find("#convlistloading").remove(),"error"!=e.objType){var t=e.objString;if(!t.length)return r||($Support.isallconvlistfetched=!0),void($Support.Util.checkToShowConversationEmptyPage()&&$Support.Util.showConversationEmptyPage());n||$Support.LSDB.setCookie(a+"_accesstime",t[0].endtime,864e5);var i=!!r;$Support.updateConversationCache(t,a,i),o(t,i),$Support.convlistindex+=t.length}})}},updateConversationCache:function(e,t,i){if(e&&e.length){e=$Support.checkDuplicateInConversationList(e,t);var o=this.LSDB.getFromSession(t+"_conversation");o&&o.length&&(e=i?e.concat(o):o.concat(e)),this.LSDB.storeInSession(t+"_conversation",e)}},checkDuplicateInConversationList:function(e,t){try{var i=this.LSDB.getFromSession(t+"_conversation");if(!i||!i.length)return e;for(var o=e.length-1;0<=o;o--)for(var n=e[o],r=0;r","\n"):e,e=t?e:getEscapedText(e);var o=Message.getDisplayContent(e);return i||(o=Markdown.apply(o,!0)),o=Message.format(o)},isConversationTransUIFocussed:function(){try{return $Support.convtranscontainer.is(":visible")}catch(e){}return!1},handleOnGoingchatActionsInConversation:function(e,t){var i=$Support.isConversationAllowed();!i&&$Support.container.find("#showsiqconv").hide(),(!$Support.isFAQEnabled()||($FAQ.updateMessageCount(e),"newchat"!==e&&"triggerchat"!==e||!$Support.isFAQUIFocussed()))&&i&&!CallImpl.isCallWithChat&&{newchat:function(){$Support.handleNewChatInConversation()},pickupchat:function(){$Support.handlePickupChatInConversation()},wtime:function(){$Support.handleWaitingTimeUpdateInConversation(t)},newmsg:function(){$Support.handleNewMessageInConversation(t)},triggerchat:function(){$Support.handleTriggerChatInConversation(t)},typingstatus:function(){$Support.handleAgentTypingStatusInConversation(t)},missedchat:function(){$Support.handleMissedChatInConversation(t)},missedleave:function(){$Support.handleMissedLeaveInConversation(t)},endtimerupdate:function(){$Support.handleChatEndTimerUpdateInConversation(t)},endtimerclear:function(){$Support.handleChatEndTimerClearInConversation()},endchat:function(){$Support.handleChatEndInConversation(t)},leavemsg:function(){$Support.handleOfflineChatInConversation(t)},formchat:function(){$Support.handleOnGoingFormInConversation(t)}}[e]()},handleNewChatInConversation:function(){var e=$Support.EmbedObj,t=LSResource.getRealValue("conversation.pleasewait.toconnect"),i=!1,o=!1;if(-1!=e.chatID){var n=$Support.getRecentMessageOfOngoingChat();t=n.recentmsg,i=n.isattachment,o=n.isvisitormsg}if($Support.convongoingchatobj){if($Support.convongoingchatobj.attr("id")=="conv"+e.chatID){var r=$Support.formatMessage(t,i,o);return $Support.convongoingchatobj.find("#convmsg").html(r),void $Support.convongoingchatobj.trigger("click")}$Support.istriggeredchat?($Support.convongoingchatobj.attr("id","conv"+e.chatID),$Support.convongoingchatobj.attr("visitorid",e.visitorID),$Support.convongoingchatobj.attr("chid",e.chatID)):($Support.proactive&&(t=e.pmsg),$Support.convongoingchatobj.find(".siqc_eletype").show().html(p)[0].className="siqc_eletype",$Support.convongoingchatobj.attr("documentclick","fetchconvtranscript"),$Support.applyOngoingChatClass("siqc_cntbody"),$Support.convongoingchatobj=void 0,t=$Support.proactive?t:LSResource.getRealValue("conversation.pleasewait.toconnect"))}!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show(),!t&&$Support.proactive&&(t=e.pmsg,$Support.container.find("#showsiqchatui").hide()),r=$Support.formatMessage(t,i,o);var a="";$Support.isUserLogoEnabled()&&e.attenderimagefkey&&(a=$Support.Util.getPhotoURL()),(!$Support.convongoingchatobj||$Support.convongoingchatobj&&!$Support.istriggeredchat)&&$Support.convlistcontainer.find("#currchatconv").html($Support.convongoingchatobj=$($Temp.getchatWaitingUIinConversation())),$Support.convongoingchatobj.find("#convchatattendername").text(e.attendername?e.attendername:LSResource.getRealValue("conversation.awaitingtoconnect")),$Support.convongoingchatobj.find("#convchatattenderimg").attr("src",a),e.attender||$Support.convongoingchatobj.find(".sqico-user").addClass("convrstn-wait"),$Support.convongoingchatobj.find("#convmsg").html(r);var s=$Support.intime||e.chatintime;$Support.convongoingchatobj.find("#convwtime").attr("convmtime",s).html(MyDate.timeDifference(s));var p=$Support.getUnreadCount(),d="siqc_cntbody";p?(d+=" siqc_newchat",$Support.convongoingchatobj.find(".siqc_eletype").show().html(p)[0].className="siqc_eletype"):$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2",$Support.applyOngoingChatClass(d),$Support.isConversationUIFocussed()&&$Support.proactive&&($Support.isConversationTransUIFocussed()||$Support.convlistcontainer.scrollTop()>$Support.convongoingchatobj.height())&&($Support.removeConversationPopupMessage(),$Support.container.append($Temp.getPopUpMessageInconversation(e.attendername,t,a)))},handleOnGoingFormInConversation:function(e){if(e){$Support.convongoingchatobj||($Support.convlistcontainer.find("#currchatconv").html($Support.convongoingchatobj=$($Temp.getchatWaitingUIinConversation())),$Support.convlistcontainer.find("#currchatconv").find("#convwtime").addClass("dN"),$Support.convongoingchatobj.find("#convchatattendername").text(getDecodedText(ZSIQConversationForm.getOperatorName())),!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show()),$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2";var t=e&&e.msglist?e.msglist.length:"",i=t?e.msglist[t-1]:e,o=i.meta||{},n=o.input_card?o.input_card.type:o.field_name,r="classic"==e.form_type?e.title||LSResource.getRealValue("ne.operator.question",""):i.msg;r=""==r?ZSIQConversationForm.getDefaultMessage(n.replace("_","")):getEncodedText(r),r=Markdown.apply(r,!0),r=Message.format(r),$Support.convongoingchatobj.find("#convmsg").html(r)}},handleTriggerChatInConversation:function(e){if(e.isbottrigger,!$Support.convongoingchatobj){$Support.EmbedObj,$Support.convlistcontainer.find("#currchatconv").html($Support.convongoingchatobj=$($Temp.getchatWaitingUIinConversation())),$Support.convongoingchatobj.find("#convchatattendername").text(e.sendername);var t="";e.message=$Support.getRecentMessageOfOngoingChat().recentmsg||e.message,e.message=e.message.split("
").join(" "),e.message=getEscapedText(e.message),e.attenderdetails?$Support.isUserLogoEnabled()&&(t=$Support.Util.getPhotoURL()):$Support.convongoingchatobj.find(".sqico-user").addClass("convrstn-wait"),$Support.convongoingchatobj.find("#convchatattenderimg").attr("src",t);var i=Markdown.apply(e.message,!0);$Support.convongoingchatobj.find("#convmsg").html(i);var o=e.time||(new Date).getTime();$Support.convongoingchatobj.find("#convwtime").attr("convmtime",o).html(MyDate.timeDifference(o)),$Support.container.find("#showsiqchatui").hide();var n=$Support.getUnreadCount(),r="siqc_cntbody";n?(r+=" siqc_newchat",$Support.convongoingchatobj.find(".siqc_eletype").show().html(n)[0].className="siqc_eletype"):$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2",$Support.applyOngoingChatClass(r),$Support.isConversationUIFocussed()&&($Support.isConversationTransUIFocussed()||$Support.convlistcontainer.scrollTop()>$Support.convongoingchatobj.height())&&($Support.removeConversationPopupMessage(),$Support.container.append($Temp.getPopUpMessageInconversation(e.sendername,e.message,t)))}},handleWaitingTimeUpdateInConversation:function(e){if(-1!=$Support.EmbedObj.chatID&&$Support.convongoingchatobj){var t=e.wtime;$Support.applyOngoingChatClass("siqc_cntbody siqc_time"),$Support.convongoingchatobj.find(".siqc_eletype").html("").show()[0].className="siqc_eletype sqico-timer",$Support.convongoingchatobj.find("#convwtime").html(t)}},handleMissedChatInConversation:function(e){if($Support.convongoingchatobj){$Support.applyOngoingChatClass("siqc_cntbody siqc_chatend");var t=LSResource.getRealValue("conversation.missedmsg"),i=$Support.EmbedObj;$Support.convongoingchatobj.find("#convchatattendername").text(i.attendername?i.attendername:"Missed Chat"),$Support.convongoingchatobj.find("#convmsg").html(t);var o=$Support.intime||$Support.EmbedObj.chatintime;$Support.convongoingchatobj.find("#convwtime").attr("convmtime",o).html(MyDate.timeDifference(o)),$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype",$Support.convongoingchatobj.find(".sqico-user").removeClass("convrstn-wait"),$Support.convongoingchatobj.find(".siqc_usrimg").addClass("sqico-missed"),$Support.isConversationTransUIFocussed()&&($Support.removeConversationPopupMessage(),$Support.container.append($Temp.getPopUPInfoMessageInConversation(DynamicMsg.fillValues(getUnescapedText($Support.EmbedObj.missedmessage)))))}},handleMissedLeaveInConversation:function(e){$Support.convongoingchatobj&&($Support.convongoingchatobj[0].className="siqc_cntbody",$Support.convongoingchatobj.find("#convmsg").html(getEscapedText(e.msg)))},handlePickupChatInConversation:function(e){if($Support.convongoingchatobj){var t=$Support.EmbedObj,i="";$Support.isUserLogoEnabled()&&t.attenderimagefkey&&(i=$Support.Util.getPhotoURL()),$Support.applyOngoingChatClass("siqc_cntbody"),e||$Support.convongoingchatobj.find("#convmsg").html(getEscapedText(t.question)),$Support.convongoingchatobj.find("#convchatattendername").text(t.attendername?t.attendername:"Awaiting agent"),$Support.convongoingchatobj.find("#convchatattenderimg").attr("src",i);var o=$Support.intime||t.chatintime;$Support.convongoingchatobj.find("#convwtime").attr("convmtime",o).html(MyDate.timeDifference(o)),$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2",$Support.convongoingchatobj.find(".sqico-user").removeClass("convrstn-wait")}},handleNewMessageInConversation:function(e){if($Support.convongoingchatobj){$Support.EmbedObj;var t=e.filename,i=e.content;t||(t=e.msg,"object"==typeof e.msg&&(t=e.msg.fName,i=e.msg.content)),t=e.iscannedarticle?e.cardheader:t;var o=$Support.Util.isAnnonUser(e.sender),n=Message.getDisplayContent(t);o||(n=Markdown.apply(n,!0)),n=Message.format(n);var r=$Support.Util.getFileClassType(i);n=r?''+n+"":n;var a="siqc_cntbody";$Support.convongoingchatobj.find("#convmsg").html(n);var s=$Support.getUnreadCount();if(s){if(a+=" siqc_newchat",$Support.convongoingchatobj.add("#conv-tab").find(".siqc_eletype").show().html(s)[0].className="siqc_eletype",$("#conv-tab").addClass("count"),$Support.isConversationUIFocussed()&&!Message.isLocalUser(e.sender)){if($Support.isConversationTransUIFocussed()||$Support.convlistcontainer.scrollTop()>$Support.convongoingchatobj.height()){$Support.removeConversationPopupMessage();var p="";-1!=e.sender.indexOf($Support.EmbedObj.attender)&&$Support.isUserLogoEnabled()&&(p=$Support.Util.getPhotoURL()),$Support.container.append($Temp.getPopUpMessageInconversation(e.dname,n,p))}if($Support.isConversationTransUIFocussed()){var d=$Support.container.find("#showsiqconv");0==d.find("#siqnoticon").length&&d.prepend("")}}}else $Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2";$Support.applyOngoingChatClass(a)}},removeConversationPopupMessage:function(){$Support.container.find("#convpopupmsg").remove(),$Support.container.find("#convpopupmsg").remove()},handleAgentTypingStatusInConversation:function(e){if($Support.convongoingchatobj){$Support.EmbedObj;var t=e.msg,i=$Support.getUnreadCount(),o="siqc_cntbody";if(t)o+=" siqc_type",$Support.convongoingchatobj.find("#convmsg").html(LSResource.getRealValue("conversation.agent.typing")),$Support.convongoingchatobj.find(".siqc_usrimg").addClass("sqico-typing");else{var n=$Support.getRecentMessageOfOngoingChat(),r=n.recentmsg,a=Message.getDisplayContent(r);n.isvisitormsg||(a=Markdown.apply(a,!0)),a=Message.format(a),$Support.convongoingchatobj.find("#convmsg").html(a),$Support.convongoingchatobj.find(".siqc_usrimg").removeClass("sqico-typing")}i?(o+=" siqc_newchat",$Support.convongoingchatobj.find(".siqc_eletype").show().html(i)[0].className="siqc_eletype"):$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2",$Support.applyOngoingChatClass(o)}},handleChatEndTimerUpdateInConversation:function(e){if($Support.convongoingchatobj){var t=e.isstart,i=LSResource.getRealValue("conversation.endtimer.secs",""+e.timer);$Support.applyOngoingChatClass("siqc_cntbody siqc_goend"),$Support.convongoingchatobj.find("#convwtime").html(i).show();var o=LSResource.getRealValue("conversation.chat.goingtoend");if($Support.convongoingchatobj.find("#convmsg").html(o),$Support.convongoingchatobj.find(".siqc_eletype").html("").show()[0].className="siqc_eletype sqico-alert",$Support.isConversationUIFocussed()&&($Support.isConversationTransUIFocussed()||$Support.convlistcontainer.scrollTop()>$Support.convongoingchatobj.height())){var n=$Support.Util.getPhotoURL();if(t)$Support.container.append($Temp.getPopUpAlertInconversation($Support.EmbedObj.attendername,LSResource.getRealValue("conversation.chatsess.goingtoend"),i,n));else{var r=$Support.container.find("#convpopupmsg");0!=r.length&&r.find("#alerttimer").html(i)}if($Support.isConversationTransUIFocussed()){var a=$Support.container.find("#showsiqconv");a.find("#siqnoticon").remove(),a.prepend("")}}}},handleChatEndTimerClearInConversation:function(){if($Support.convongoingchatobj){var e=$Support.EmbedObj,t=$Support.getRecentMessageOfOngoingChat(),i=t.recentmsg,o=Message.getDisplayContent(i);t.isvisitormsg||(o=Markdown.apply(o,!0)),o=Message.format(o);var n="siqc_cntbody";$Support.convongoingchatobj.find("#convwtime").html(MyDate.timeDifference($Support.intime||e.chatintime)),$Support.convongoingchatobj.find("#convmsg").html(o);var r=$Support.getUnreadCount();r?(n+=" siqc_newchat",$Support.convongoingchatobj.find(".siqc_eletype").show().html(r)[0].className="siqc_eletype"):$Support.convongoingchatobj.find(".siqc_eletype")[0].className="siqc_eletype sqico-chat2",$Support.container.find("#showsiqconv").find("#siqnoticon").remove(),$Support.applyOngoingChatClass(n),$Support.removeConversationPopupMessage()}},handleChatEndInConversation:function(e){if($Support.convongoingchatobj){var t=$Support.EmbedObj,i=$Support.Util.isAnnonUser(e.sender)?"siqc_cntbody":"siqc_cntbody siqc_chatend";$Support.applyOngoingChatClass(i);var o=LSResource.getRealValue("converation.chat.ended");$Support.convongoingchatobj.find("#convmsg").html(o);var n=$Support.intime||t.chatintime;if($Support.convongoingchatobj.find("#convwtime").attr("convmtime",n).html(MyDate.timeDifference(n)),$Support.convongoingchatobj.find(".siqc_eletype").html("").show()[0].className="siqc_eletype",$Support.removeConversationPopupMessage(),$Support.isConversationTransUIFocussed()){var r=e.msg&&e.msg.opruser&&e.msg.opruser.dname?LSResource.getRealValue("converation.agent.chat.ended",""+e.msg.opruser.dname+""):LSResource.getRealValue("converation.chat.ended");$Support.container.append($Temp.getPopUPInfoMessageInConversation(r))}$Support.handleDomainStorage("updatecorsdata","localstorage")}},handleOfflineChatInConversation:function(e){if($Support.isConversationAllowed()){var t=[];t.push(e);var i=$Support.getParent().$ZSIQUtil.getAvuid();$Support.updateConversationCache(t,i,!0);var o=$Temp.getConversationHistoryHTML(e);$Support.convlistcontainer.find("#pastchatconv").prepend(o),!$Support.isConversationAllowed()||$Support.isConversationUIFocussed()||$Support.container.find("#showsiqconv").is("visible")||$Support.container.find("#showsiqconv").show()}},handleChatTransferInConversationListView:function(){if($Support.convongoingchatobj){var e=$Support.EmbedObj,t="";$Support.isUserLogoEnabled()&&e.attenderimagefkey&&(t=$Support.Util.getPhotoURL()),$Support.convongoingchatobj.find("#convchatattenderimg").attr("src",t),$Support.convongoingchatobj.find("#convchatattendername").text(e.attendername)}},getRecentMessageOfOngoingChat:function(){var e=$Support.EmbedObj.question,t=!1,i=!1;if($Support.cachearr.length){var o=$Support.cachearr[$Support.cachearr.length-1];if(o.msg)if(i=$Support.Util.isAnnonUser(o.sender),"object"!=typeof o.msg)e=o.iscannedarticle?o.cardheader:o.msg;else if("object"==typeof o.msg)if(o.msg.fName){e=o.msg.fName;var n=$Support.Util.getFileClassType(o.msg.content);e=n?''+e+"":e,t=!0}else if("cannedarticle"===o.msg.mode)e=$FAQ.getHeaderMessage(o.msg.msg);else{var r=o.msg.msglist||[],a=r.length;o.msg.form_type&&r&&a&&(e=r[a-1].msg||"",i=!0)}}return{recentmsg:e,isattachment:t,isvisitormsg:i}},applyOngoingChatClass:function(e){$Support.convongoingchatobj&&($Support.convongoingchatobj[0].className=e)},cacheCurrentChat:function(){if($Support.isConversationAllowed()){var e=$Support.EmbedObj,t=[],i={};i.attender=e.attendername,i.attender_imgkey=e.attenderimagefkey,i.question=e.question,i.chid=e.chatID,i.visitorid=e.visitorID,i.endtime=(new Date).getTime(),i.isbotattender=$Support.isBotChat;var o=$Support.cachearr[$Support.cachearr.length-1];o&&(o.iscannedarticle&&(o.msg=o.cardheader),i.lastmsg=JSON.stringify(o)),t.push(i);var n=$Support.getParent().$ZSIQUtil.getAvuid();$Support.updateConversationCache(t,n,!0)}},handleNewsLetter:function(){$Support.Util.isPreview()&&$CWPreview.handleNewsLetter()},getEmbedSize:function(){var e=$Support.getParent().$ZSIQWidget.getEmbedSize();return 1==e?2:e},getEmbedSizeClass:function(){return $Support.isMobileWidth()?"":" zsiq_size"+$Support.getEmbedSize()},removeWidget:function(){try{$Support.getParent().$zoho.salesiq.tracking.off()}catch(e){}var e=$Support.getParent().$ZSIQChatWindow.getChatWindowDiv(),t=$Support.getParent().$ZSIQWidgetUI.getWidgetDiv();e&&e.remove(),t&&t.remove()},handleBotTransferAccept:function(){$Support.removeCookie("ZLD"+$Support.EmbedObj.livelsid+"WAITING"),$UI.removeCWaitHandler(),clearTimeout($Support.waitTimer),$UI.removeTransferDiv(),delete $Support.waitTimer,delete $Support.waitingtime,delete $Support.isBotChat,delete $Support.botchatprops,$Support.handlePickupChatInConversation(!0);var e=$TH.getHeader();$Support.isUserLogoEnabled()&&e.find(".cmplogo").attr("data-chttype","agent"),$UI.populateUserAction()},isChatExist:function(){return-1!=$Support.EmbedObj.chatID},isOnlineChat:function(){return $Support.EmbedObj.status},isMacOS:function(){return!!navigator.platform.match(/Mac/i)},openClassicUI:function(){$Support.isChatExist()||0<$Support.convlistcontainer.find("#pastchatconv").find(".siqc_cntbody").length&&$Support.container.find("#showsiqchatui").click()},isFAQEnabled:function(){var e=$Support.EmbedObj.faqaccess;return!!Licence.verify("faqallowed")&&!!e.length&&1==$Support.EmbedObj.faqaccess[0]},getConversationData:function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();return $Support.LSDB.getFromSession(e+"_conversation")},isShowConversationArrow:function(){return $Support.getConversationData()||$Support.convongoingchatobj},isFAQUIFocussed:function(){try{return"faqview"===$Support.container.attr("cwview")}catch(e){}return!1},handleVTransLang:function(e){var t=$Support.getParent(),i=t.$ZSIQChat.getWidgetData().widgetobj,o=t.$ZSIQWidget.getEmbedObject().pinfo,n=1==i.isgdprenabled,r=!1;if(o&&o.pinfo){var a=o.pinfo;r=JSON.parse(a.isgdprenabled)}if(r){if(n||(2==e.GDPRStatus&&$Support.handleVTransLangStatus(1,e.lang),e.GDPRStatus=0),1==JSON.parse(e.GDPRStatus)){var s=$UI.getTranslateBannerHTML(getUnescapedText($Support.EmbedObj.attendername),o.pinfo.gtpolicyurl);$Support.contentdiv.find(".chtcont").after(s),$Support.Util.calculateTextareaHeight()}else 2==JSON.parse(e.GDPRStatus)&&$UI.appendGTConsentDiv(o.pinfo.gtpolicyurl,e.lang);ZSIQTranscript.scroll()}},handleVTransLangStatus:function(e,t){$UI.removeGTConsentDiv();var i=$Support.getAjaxURL("setvtranslang",dext),o=lsnocachefix("json");o.chid=$Support.EmbedObj.chatID,o.visitorid=$Support.EmbedObj.visitorID,o.gdprstatus=e,o.attender=$Support.EmbedObj.attender,o.lang=t,$.ajax({url:i,data:o,type:"POST"})},handleBotSkipOffline:function(){clearTimeout($Support.waitTimer),delete $Support.waitingtime,$UI.hideBanner(),$Support.removeCookie("ZLD"+$Support.EmbedObj.livelsid+"WAITING"),$Support.container.find(".msgbox textarea").stop(),$UI.updateOfflineUI(!0),$Support.container.addClass("outerwin"),$Support.Util.showOfflineBanner(),$(".zsiq_transferdiv").remove()},handleBotTrigger:function(e){var t=e.msg,i=t.lsid;if(!i||i==$Support.EmbedObj.livelsid){t.msglist;var o={isbottrigger:!0,attenderdetails:{attender:t.attender},message:t,sendername:t.dname,time:t.time},n=t.departments;n&&(o.departments=n),$Support.setTriggerCookie(o),$Support.getParent().$ZSIQChatWindow.openChatWindow(!0),$Support.EmbedObj.department=1==n.length?n[0]:$Support.EmbedObj.department,$Support.EmbedObj.pmsg=e.msg,$BotImpl.formatAndDisplay(e),$Support.Util.updateHeader(e.msg),$Support.Util.updateViewAttribute("msgarea"),$('[data-chttype="agent"]').removeClass("sqico-chat"),$Support.container.find("#showsiqchatui").hide(),$Support.handleTriggerChatInConversation(o),!$Support.isConversationAllowed()&&$Support.container.find("#showsiqconv").hide()}},getOrderedDepartmentList:function(){var e=$Support.getApiDepartment(),t=$Support.EmbedObj.deptlist,i=[];if(!e.length)return t;for(var o in e)for(var n in t){var r=t[n];if(r.NAME==getEncodedText(e[o])){i.push(r);break}}return i},getEmbedDepartments:function(){var e=$Support.getOrderedDepartmentList();if(!$Support.isbottrigmsg)return e;var t=$Support.getTriggerCookie();if(t&&t.departments){for(var i=t.departments,o=[],n=0;n'+getEncodedText(t)+"
";o.append(a)}},appendConsentDiv:function(e){var t,n=e?"$Support.getMissedUserConsent":"$Support.getUserConsent",o=$Support.chatdiv||$("#msgdiv");t='
'+LSResource.getRealValue("ne.agent.cardmask")+''+LSResource.getRealValue("common.yes")+''+LSResource.getRealValue("common.no")+"
",0==$(" #creditcardconsent ").length&&o.append(t)},appendChatConsentDiv:function(e,t,n){this.removeTransferDiv();var o=$Support.chatdiv||$("msgdiv"),i=LSResource.getRealValue("common.gdpr.agent.chatconsent2");n&&(i=""+i+"");var a=LSResource.getRealValue("common.gdpr.agent.chatconsent1")+" "+i+" "+LSResource.getRealValue("common.gdpr.agent.chatconsent3"),s=LSResource.getRealValue("common.gdpr.agent.accept"),r=LSResource.getRealValue("common.gdpr.agent.decline"),c=$Support.getParent().$ZSIQUtil.getAPIValues();if(c.textbannerobj&&c.textbannerobj.online){var p=c.textbannerobj.online;if(a=p.description&&0!=p.description.trim().length?p.description:a,s=p.acceptbutton&&0!=p.acceptbutton.trim().length?p.acceptbutton:s,r=p.declinebutton&&0!=p.declinebutton.trim().length?p.declinebutton:r,p.policytextandlink){var u=p.policytextandlink,l=u.text&&0!=u.text.trim().length?u.text:"",d=u.link&&0!=u.link.trim().length&&$Support.getParent().$ZSIQUtil.isValidURL(u.link)?u.link:"";a=$Support.getParent().$ZSIQUtil.hyperLinksSubString(a,l,d)}}chatconsenthtml='
'+a+'
'+s+''+r+"
",0==$(" #chatconsentdiv ").length&&o.append(chatconsenthtml)},removeTransferDiv:function(e){var t=$(".zsiq_transferdiv");t.fadeOut("slow",function(){t.remove(),e&&"missed"==$Support.botchatprops.status&&"Continue with Bot"==e[0].innerHTML&&($Support.botchatprops.status="connected",$Support.setCookie())})},removeConsentDiv:function(){var e=$("#creditcardconsent");e.fadeOut("slow",function(){e.remove()})},removeChatConsentDiv:function(){$("#chatconsentdiv").remove()},removeOfflineConsentDiv:function(){var e=$("#offlineconsent");e.fadeOut("slow",function(){e.remove(),$Support.Util.setTextareaHeight()})},appendGTConsentDiv:function(e,t){var n=$Support.chatdiv||$("msgdiv"),o=" "+LSResource.getRealValue("helplink.learnmore")+"",i=LSResource.getRealValue("common.gdpr.agent.translateinfo")+o,a=LSResource.getRealValue("common.gdpr.agent.accept"),s=LSResource.getRealValue("common.gdpr.agent.decline");gtconsenthtml='
'+i+'
'+a+"'+s+"
",0==$(" #gtconsentdiv ").length&&n.append(gtconsenthtml)},removeGTConsentDiv:function(){var e=$("#gtconsentdiv");e.fadeOut("slow",function(){e.remove()})},showTransferMissed:function(){$(".zsiq_transferdiv").remove();var e='
'+LSResource.getRealValue("ne.agent.transfermissed")+'
'+LSResource.getRealValue("ne.chatwindow.continuewithbot")+''+LSResource.getRealValue("settings.embed.offline")+"
";($Support.chatdiv||$("#msgdiv")).append(e);var t=document.getElementById("msgmaindiv");t.scrollHeight-t.scrollTop==t.clientHeight||t.scrollHeight
";($Support.chatdiv||$("#msgdiv")).append(e);var t=document.getElementById("msgmaindiv");t.scrollHeight-t.scrollTop==t.clientHeight||t.scrollHeight':''}};$Support.Util={jsdownloadtimer:-1,ispostloaddone:!1,isbotconversation:!1,handleTextClear:function(e,t){e.parent().find('input[type="text"]').val("")},minimizeEmbed:function(){$Support.getParent().$ZSIQChatWindow.minimizeChatWindow()},handleMinimizeinBannerTimeout:function(){ZSIQConversationForm.clearSessionStorage(),ZSIQConversationForm.isOldFormView()?$Support.Util.minimizeEmbed():$Support.Util.closeEmbed(),$Support.convongoingchatobj&&$Support.convongoingchatobj.remove(),ConversationFormInput.resetMessageArea()},maximizeEmbed:function(){this.postMessage("newEmaximize",{width:"371",height:"460"})},closeEmbed:function(){$Support.getParent().$ZSIQChatWindow.closeChatWindow(),$Support.enableTextarea(),$Support.contentdiv=null;var e=$Support.EmbedObj;$Support.callquitstatus=!1,e.setVisitorID(-1),e.setChatID(-1),$BotImpl.resetDisableComposerTimer(),e.setVisitID(-1),_JOINED=!1,Message.presender="",$Support.init($Support.getParent().$ZSIQWidget.getEmbedObject()),$Support.getParent().$ZSIQChatWindow.constructIframe(!0)},setThemeInFloat:function(e){this.postMessage("settheme",e)},triggerAdditionalFileDownload:function(){var e=$Support.Util;e.ispostloaddone||(clearTimeout(e.jsdownloadtimer),e.downloadAdditionalFiles())},downloadAdditionalFiles:function(){if(!$Support.Util.ispostloaddone){var e=$Support.getParent().$ZSIQWidget.getEmbedObject(),t=$Support.getParent().$ZSIQChat.getWidgetData().commondata,i=t.schema+"://"+e.embedserverurl,n=document.querySelectorAll("head");if(0==n.length&&((n=[])[0]=document.createElement("head"),document.insertBefore(document.body,n[0])),e.ucomp){var o=document.createElement("script"),r="/js/embedpostload.js",a=t.jsstaticserver+r;t.isCDNEnabled&&(a=t.jscdnstaticserver+$Support.getParent().cssjslist[r]),o.src=a,n[0].appendChild(o);var s="/styles/embedpostload.css",p=$Support.getParent().$ZSIQWidget.getWidgetObject().cssstaticserver+s;t.isCDNEnabled&&(p=$Support.getParent().$ZSIQWidget.getWidgetObject().csscdnstaticserver+$Support.getParent().cssjslist[s]),(m=document.createElement("link")).type="text/css",m.rel="stylesheet",m.href=p,n[0].appendChild(m)}else{for(var d=["/js/embed/new/chatwindow/jquery.ztooltip.js","/js/cw/lsdragdrop.js","/js/cw/pasteimage.js","/js/cw/validator.js","/js/cw/clickoutside.js"],l=0;l"),m.find("#siqnoticon").show(),m.show(),$Support.Util.reSetHeaderClass()},showSiqChatUI:function(){var e=$Support.EmbedObj,t=$Support.isfeedback&&$Support.isfeedbacksent,i=$Support.israting&&$Support.isratingsent,n=!$Support.isfeedback&&!$Support.israting;$Support.contentdiv.hide(),$Support.isFAQEnabled()||$Support.container.find("footer").hide(),-1!=e.chatID||!(t||i||n||-1==$Support.EmbedObj.lchid)||$Support.proactive||$Support.istrigmsg||ZSIQConversationForm.checkContextInitiated()||$Support.container.find("#showsiqchatui").show(),$Support.removeConversationPopupMessage(),$Support.Util.calculateContentHeight()},isAnnonUser:function(e){try{if(-1!=e.indexOf("$"))return!0}catch(e){}return!1},getFileClassType:function(e){var t="";return e?t=-1!=e.indexOf("image")?"sqico-camera":-1!=e.indexOf("audio")?"sqico-audio":-1!=e.indexOf("video")?"sqico-video":"sqico-file-min":t},hexToRGBA:function(e,t){return e+=4==e.length?e.slice(1,4):"","rgba("+parseInt(e.slice(1,3),16)+", "+parseInt(e.slice(3,5),16)+", "+parseInt(e.slice(5,7),16)+", "+(t||1)+")"},handleCompanyLogo:function(){var e=$("#complogo");e.on("load",function(){e.parent().removeClass("sqico-clogo")}),e.on("error",function(){$("#blur_userbg").hide().parent().removeClass("hide_fontico"),""!=e.attr("src")&&(e.attr("src",""),$Support.Util.isBotTranscript()?e.parents(".cmplogo").addClass("siq_botimg"):e.parent().addClass("sqico-clogo"))})},lastMessageTemplate:function(){var e=$Support.rating;if(e){var t=e?'
'+$Temp.getStarHTML(e)+"
":"";return'
'+LSResource.getRealValue("ne.rating.message")+"
"+LSResource.getRealValue("ne.rating.fbmessage")+"
"+t+"
"}},showChatFeedback:function(e){e.addClass("sel")},handleFeedbackSubmit:function(){var e=$("#feedback_res");if(0==e.length){var t=$Support.contentdiv.find("#msgdiv");Message.display(this.lastMessageTemplate()),ZSIQTranscript.setMessageClass();var i=t.find(".fd_lastmsg");i.hasClass("single_msg")&&i.find('[purpose="name"]').text($Support.EmbedObj.attendername),Message.scroll($("#msgmaindiv")[0]);var n=$("#feedback_res").find(".rating");n.find(".sel").removeClass("sel"),n.find("span:nth-child("+(6-$Support.rating)+")").addClass("sel")}else e.removeClass("sel").find('[data-prop="rating"]').text($Support.rating)},setMessageClass:function(e){var o=$Support.container.find(".ziq_msg:not(.siq_widget)");o.each(function(e){var t=$(this);t.removeClass("single_msg lst_msg");var i=$(o[e-1]),n=$(o[e+1]);!n.length&&!i.length||!n.length&&t.hasClass("agntmsg")&&i.hasClass("vismsg")||!n.length&&t.hasClass("vismsg")&&i.hasClass("agntmsg")||t.hasClass("agntmsg")&&n.hasClass("vismsg")&&i.hasClass("vismsg")||t.hasClass("vismsg")&&n.hasClass("agntmsg")&&(i.hasClass("agntmsg")||!i.length)?t.addClass("single_msg"):(!n.length||t.hasClass("agntmsg")&&n.hasClass("vismsg")||t.hasClass("vismsg")&&n.hasClass("agntmsg"))&&t.addClass("lst_msg")})},getTextColor:function(e){var t=this.getRGB(e);return 186<.299*t[0]+.587*t[1]+.114*t[2]?{text_color:"#444",icon_color:"#ccc"}:{text_color:"#fff"}},getRGB:function(e){return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)]},calculateTextareaHeight:function(){if(!$Support.container.hasClass("outerwin")){var e=$Support.container,t=e.find(".msgarea");if(t.length){t.removeAttr("style");var i=e.find(".content"),n=t[0].scrollHeight+2,o=140<(n=n<70?70:n)?{height:"140px",overflow:"auto"}:{height:n+"px",overflow:"hidden"};if(t.css(o),!$Support.isNewHeader()){var r=$("#consentbannerdiv").length?$("#consentbannerdiv").height()+10:0,a=i.height()-i.find(".txtarewrap").height();i.find(".chtcont").css({height:a-r+"px"}),e.find(".dragmask").css({height:a+"px"})}}}},calculateContentHeight:function(){if(!$Support.isNewHeader()){var e=$Support.container,t=2*parseInt(e.css("border-left-width")),i=e.outerHeight()-(e.find("header").outerHeight()+e.find("footer").outerHeight()+t);e.find(".siq_content").css({height:i})}},getImagePreviewHTML:function(e){var t=e.user_photo||"https://img.zohostatic.in/salesiq/Feb_15_2020_https/images/user/user_160-160.png";return'

'+getEncodedText(e.user)+'

'+getEncodedText(e.comment)+"
"+(e.durl?''+e.size+'':"")+'
'},showImagePreview:function(e){var t=e.parents('[data-field="message"]'),i=t.hasClass("vismsg"),n=t.find("img").attr("src");if(n){var o=t.find("code").text(),r=t.find(".fdload").attr("href"),a=i?"":$Support.container.find("header img").attr("src"),s=$("#attname").text();i&&$Support.container.find(".siq-visitor-name").each(function(){if(s)return!1;s=$(this).text()});var p={url:n,comment:o,durl:r,user:s,user_photo:a,size:t.find("[data-filesize]").attr("data-filesize")},d=this.getImagePreviewHTML(p);$(window.parent.document).find("body").append(d)}},handleUpdateBTN:function(e){var t=$("#continue_btn"),i="true"==t.attr("data_isupdate"),n=i?"ne.update":"common.continue";e&&(n=i?"common.updating":"common.continuing"),t.text(LSResource.getRealValue(n))},handleAccordian:function(n){var o=$('[data-type="accordian-item"]').hide();$('[data-type="accordian-header"]').click(function(){var e=$(this),t=o.filter(":visible"),i=e.prev();if($('[data-type="accordian-header"]').find(".sqico-uarrow").removeClass("sqico-uarrow"),t.animate({height:"toggle",opacity:"toggle"},"500"),t[0]!=i[0])return"function"==typeof n&&n(e),e.find(".sqico-darrow").addClass("sqico-uarrow"),i.animate({height:"toggle",opacity:"toggle"},"500"),!1})},handleOnlineStatus:function(e,t){var i=$Support,n=i.EmbedObj;i.contentdiv||$UI.init(e),t&&!$Support.isOnlineChat()&&$UI.showBanner(LSResource.getRealValue("ne.onlinemsg"),!0,null),i.contentdiv.find("#msgarea").attr("dockeyup","textarea").val(null!=n.question?n.question:$("#msgarea").val()).parents(".msgbox").removeClass("posrel"),i.contentdiv.find("#msgarea").attr("dockeydown","textarea").attr("placeholder",LSResource.getRealValue("ne.message.hitenter")),$Support.isFAQEnabled()||$("footer").find(".floatrg").remove().end().append($Temp.getSendBtnHTML(LSResource.getRealValue("common.startchat"))),""!=i.contentdiv.find("#msgarea").val()&&$("footer").find("em#sqico-send").attr("documentclick","textarea"),i.Util.setTextareaHeight();var o=$Support.getParent().$ZSIQWidget.getWidgetObject();o.status=!0,o.onlysticker=!0,$Support.getParent().$ZSIQWidgetUI.drawWidget(o)},updateViewAttribute:function(e){$Support.isBotChat||$Support.isBotattendedchat;$("body").find('[prop="header"]').find(".cmplogo").attr("data-chttype","conv"),$Support.container.attr("cwview",e),"2"===$Support.container.attr("themeid")&&$("body").attr("cwview",e)},getFAQLabel:function(){var e="";if($Support.isFAQEnabled()&&(e=LSResource.getRealValue("faq.header.title"),$Support.EmbedObj.faqaccess)){var t=$Support.EmbedObj.faqaccess[1].label;""!==t&&(e=t)}return e},getChatConsentStatus:function(){var e=$Support.getParent().$ZSIQChat.getWidgetData().widgetobj,t=$Support.EmbedObj.pprops,i=$Support.LSDB.getFromSession(_SCREENNAME+"_gdpr_chatconsent");return!(!(1==e.isgdprenabled)||!JSON.parse(t.isgdprenabled)||1!=JSON.parse(t.chatprivacyconfig)||i)},getConversationSelect:function(e){for(var t="",i=e.options,n=e.type,o=0;o'+a+""}return'
'+t+"
"},chooseField:function(e,t){var i=$(t.target).attr("val"),n=$Support.EmbedObj,o=n.chatID;Message.animate(e.parents(".ziq_msg"),!0,function(e){if(e.remove(),-1==n.department||$Support.Util.IsMandatoryFieldsAvailable())return $Support.getComposer().val(i),$Support.EmbedObj.question=i,$Support.disableTextarea(),$UI.showUserEditUI(),void $Support.container.find('[documentclick="updateuserdetails"]').attr("callback","trigger");!$Support.isbottrigmsg||o&&"-1"!=o?Message.send(o,i):($Support.EmbedObj.question=i,ZSIQTranscript.updateTranscript({html:ZSIQTranscript.getTranscript({msg:i,sender:$Support.EmbedObj.vwmsid}),ispopulate:!0}),$Support.handleBotTriggerReply(i))})},getOfflineAPIConsent:function(e){var t=$Support.getParent().$ZSIQUtil.getAPIValues();if(t.textbannerobj&&t.textbannerobj.offline){var i=t.textbannerobj.offline;if(e=i.description&&0!=i.description.trim().length?i.description:e,i.policytextandlink){var n=i.policytextandlink,o=n.text&&0!=n.text.trim().length?n.text:"",r=n.link&&0!=n.link.trim().length&&$Support.getParent().$ZSIQUtil.isValidURL(n.link)?n.link:"";e=$Support.getParent().$ZSIQUtil.hyperLinksSubString(e,o,r)}}return e},getTypingHTML:function(){return'
'},setDStorageIframe:function(){var e=document.createElement("iframe"),t=_SCHEMA+"://"+_EMBEDSERVERURL+"/setdstorage.ls";e.id="dstorageframe",e.src=t,e.style.display="none",$Support.container.append(e)},isDragNotAllowed:function(){return!CommonUtil.isAllowFileSharing()||$Support.waitingtime||!$Support.isChatExist()},updateHeader:function(e){if(e){var t=e.dname||e.attendername;t=getEscapedText(t||"");var i=getEscapedText(e.aboutme||"");$("#attname").html(t),$("#attabtme").html(i)}},reSetHeaderClass:function(){$Support.container.find("header").removeClass("min_header").removeAttr("style"),$("#header_style").remove()},checkWindowVisibility:function(){if(parent.$ZSIQUtil.getCookieValue("dragpos")){var e=$(window.parent.document).find("body"),t=e.find(".siqembed"),i=t.offset();(i.left+t.width()>e.width()||i.top+t.height()>e.height())&&(t.css({left:"auto",right:"15px",top:"auto",bottom:"15px"}),parent.$ZSIQUtil.storeCookieVal("dragpos","",!0))}},toggleFreeLogo:function(){var e=$("#msgbox_main").find(".flogo");$("#typgstatus").text()?e.fadeOut(250):e.fadeIn(250)},checkAndAddFreeLogo:function(e){$Support.isNewHeader()&&(e.find("#siqfreelogo").remove(),e.append($Temp.getFreeLogoHTML()))},removeHeaderType:function(){$Support.container.find("header").removeAttr("header-type").find(".cmplogo").removeClass("siq_botimg")},updateHeaderBotType:function(e){$Support.Util.removeHeaderType(),$Support.Util.isBotTranscript()&&$Support.container.find("header").attr("header-type","bot")},isMessageDIVScrolled:function(){var e=$("#msgmaindiv").find(".ziq_msg").last()[0];if(!e)return!1;var t=e.getBoundingClientRect();return!(0<=t.top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight))},handleUnReadChatUI:function(e){if($Support.Util.isMessageDIVScrolled()){var t=$("#unreadarrow");if(ZSIQTranscript.isLocalUser(e.sender)||!t.length&&e.istyping)$Support.Util.handleUnReadScroll();else if(t.length){var i=t.find("em");i.text(parseInt(i.text())+(e.istyping?0:1))}else{$("#msgbox_main").append('
1
')}}},handleUnReadScroll:function(){$("#unreadarrow").remove(),ZSIQTranscript.scroll(200)},handleMessageDIVScroll:function(){$("#unreadarrow").length&&!$Support.Util.isMessageDIVScrolled()&&$Support.Util.handleUnReadScroll()},checkAndRemoveUnreadDIV:function(){var e=$("#unreadarrow");if(e.length){var t=$("#msgmaindiv"),i=t[0];t.scrollTop()>i.scrollHeight-i.clientHeight-20&&e.remove()}},isBotTranscript:function(){var e=$Support.EmbedObj.attender,t=$Support.getBotUser();if("msgarea"==$Support.container.attr("cwview")&&e&&t&&-1!=t.indexOf(e))return!0;var i=$Support.isConversationUIFocussed();return i&&$Support.Util.isbotconversation||!i&&$Support.isBotChat},checkToShowConversationEmptyPage:function(e){var t=!e&&$Support.getConversationData(),i=ZSIQConversationForm.isOldFormView(),n=$Support.getParent().$ZSIQChatWindow.isChatExist();return!(!$Support.isNewHeader()||t||n||i)},showConversationEmptyPage:function(e){if($Support.convongoingchatobj||ZSIQConversationForm.checkContextInitiated()){(e?"conv-tab"==e.attr("id"):"")&&$Support.Util.showMessageAreaUI()}else{$Support.Util.removeFormEmptyBg();var t=$Support.convlistcontainer;t.append($Temp.conversationEmptyState()),t.addClass("emptybg"),$Support.Util.showConversationListUI(),$("#msgarea").focus(),$("#showsiqchatui").hide()}},handleBlurImage:function(e){if($Support.isNewHeader()){var t=$(e),i=t.parent(),n=i.find("canvas")[0]||i.append('').find("canvas")[0],o=i.height(),r=i.width();n.height=o,n.width=r,n.getContext("2d").drawImage(e,0,0,o,r),$(n).show(),i.addClass("hide_fontico"),t.parents("header").removeClass("nologo")}},removeFormEmptyBg:function(){var e=$Support.convlistcontainer;e&&(e.find("#emptybg").remove(),e.removeClass("emptybg"))}};Gator(document).on("click","[documentclick]",function(o){try{var n=$(this);({sendCallRating:function(){$Support.Util.isPreview()||($(".sqico-star").removeClass("sel"),n.addClass("sel"),$("#msgarea").focus(),this.feedbacksent||$Support.setRating(n))},sendCallFb:function(){$Support.sendFeedback()},moreaction:function(){$Support.Util.showMoreAction(n,o)},sendmail:function(){$UI.populateSendMail(n,o)},smiley:function(){$UI.populateSmiley(n)},userdetails:function(){$UI.showUserEditUI(!0,!0)},hideuserdetails:function(){$UI.hideUserEditUI(),$Support.hideBotEditUICB(),$Support.checkAndPopulateLastMessage()},updateuserdetails:function(){$Support.checkAndUpdateInfo(n)},triggermsg:function(){$Support.startTriggerChat()},min_iframe:function(){$Support.Util.minimizeEmbed()},max_iframe:function(){$Support.Util.maximizeEmbed()},close_iframe:function(){$Support.Util.closeEmbed()},chatend:function(){$Support.quitChat()},triggermail:function(){$Support.sendMail()},triggermailconfirm:function(){$Support.sendMailConfirm(n)},updatetranslatecookie:function(){$Support.updateTranslateCookie()},rating:function(){$Support.Util.handleRating(n)},showChatFeedback:function(){$Support.Util.showChatFeedback(n)},printfile:function(){$Support.printPreview()},toggleaudio:function(){$Support.Util.toggleAudio(n)},captcha:function(){$Support.Util.handleCaptcha()},restartchat:function(){$Support.restartchat()},imgupload:function(){PasteImage.uploadImage($Support.container)},imgcancel:function(){$Support.Util.hidePasteUI()},accepturl:function(){$Support.Util.openPushPage(n.attr("url"))},sendmessage:function(){$Support.triggerSendMessage()},textarea:function(){$Support.Util.handleStartChat(function(){$Support.startChat(n)})},missedleavemsg:function(){$Support.Util.handleStartChat(function(){$Support.missedLeaveMsg()})},leavemessage:function(){$Support.Util.handleStartChat(function(){$Support.handleLeaveMessage()})},feedback:function(){$Support.sendFeedback()},hideprogress:function(){$UI.hideUploadProgress(n.attr("msgid"))},hidefeedback:function(){$Support.Util.hideFeedback(n)},openmeeting:function(){$Support.handleMeetingJoinCB()},sharedesktop:function(){$Support.shareDesktop(n)},sharescreen:function(){avimpl.shareScreen()},resendmsg:function(){LSMessanger.resendMessages(RESEND_MANUAL)},showconvlist:function(){var t=o.target;if($Support.Util.removeFormEmptyBg(),$(t).parents("header").hasClass("category"))$FAQ.showFAQUI(n);else if("siqnoticon"!=t.id){var e=o.hasOwnProperty("originalEvent");$Support.Util.handleShowConversation(e)}},showchatui:function(){if(!$Support.Util.isPreview()){$Support.Util.removeFormEmptyBg();var t=o.target.id;"removeconvpopup"==o.target.id||$(o.target).is("a")||($Support.Util.showMessageAreaUI(t),$Support.Util.checkAndFocusComposer())}},fetchconvtranscript:function(){"showsiqchatui"!=o.target.id&&$Support.getConversationChatTranscript(n.attr("chid"),n.attr("visitorid"))},removeconvpopupmsg:function(){$Support.removeConversationPopupMessage()},toggleMadatoryField:function(){$CWPreview.toggleMadatoryField(n)},triggerDeleteEMField:function(){$CWPreview.triggerDeleteEMField(n)},newsletter:function(){$Support.handleNewsLetter()},transferchat:function(){$Support.transferChat()},removetransfer:function(){$UI.removeTransferDiv(n),$Support.storeHideTransfer()},transfermissed:function(){$Support.handleTransferMissed(n)},hidetransferoption:function(){$Support.hideTransferOption(),$Support.storeHideTransfer()},audiocall:function(){avimpl.startCall()},imagepreview:function(){$Support.Util.showImagePreview(n)},showfaq:function(){$FAQ.showFAQUI(n)},faqcategory:function(){$FAQ.showCategory(n),o.stopPropagation()},faqsearch:function(){$FAQ.handleSearch(n)},openmapfromimage:function(){ZMaps.openMapsFromImage(o)},showconversation:function(){if(!$Support.Util.isPreview())if(n.addClass("sel").next(".sel").removeClass("sel"),$("#conv-tab").removeClass("count").find(".siqc_eletype").hide(),!$Support.getConversationData()||-1!==$Support.EmbedObj.chatID||$Support.istrigmsg){if(!$Support.Util.checkToShowConversationEmptyPage())return $Support.Util.showMessageAreaUI(),void $Support.Util.calculateTextareaHeight();$Support.Util.showConversationEmptyPage(n)}else $Support.Util.showConversationListUI(n)},faqpreview:function(){$FAQ.showFAQPreview(n)},extendview:function(){$FAQ.showAllArticlesInCategory(n)},validateConversation:function(){$Support.Util.chooseField(n,o)},unreadscroll:function(){$Support.Util.handleUnReadScroll()},validateConversation:function(){ZSIQConversationForm.validateConversation(n)},downloadvcard:function(){ZSIQContactCard.downloadVCard(n)},sharemyscreen:function(){ZSIQMedia.shareMyScreen(n)}})[n.attr("documentclick")]()}catch(t){}});var isComposing=!1,hasCompositionJustEnded=!1,brow_lang=$Support.getParent().$ZSIQUtil.getBrowserLanguage();Gator(document).on("keydown","[dockeydown]",function(t){var e=$(this),o=e.attr("dockeydown"),n=$Support.Util.getKeyCode(t);if(229==n&&hasCompositionJustEnded)return!1;hasCompositionJustEnded=!1,27==n&&$Clickoutside.handleEscape(t),{textarea:function(){$Support.Util.handleKeyDown(e,n,t)},captcha:function(){13==n&&($Support.addVisitor(),t.preventDefault())},pasteimage:function(){27==n&&($Support.Util.hidePasteUI(),t.preventDefault())},dropdown:function(){$Support.Util.handleDrpdwnEvent(e,n,t)},triggermail:function(){$Support.Util.sendMail(t)},removeError:function(){e.removeClass("errfield")},searchfaq:function(){27==n&&e.parent().find(".sqico-close").trigger("click")}}[o]()}).on("compositionstart",function(t){isComposing=!0,$Support.toggleSendButton()}).on("compositionend",function(t){hasCompositionJustEnded=!(isComposing=!1)}),$(document).on("keyup","[dockeyup]",function(t){var e=$Support.Util.getKeyCode(t);if(!isComposing&&!hasCompositionJustEnded||(hasCompositionJustEnded=!1,"13"!=e)){var o=$(this);({textarea:function(){$Support.Util.handleTextareaEnter(o,e,t,function(){$Support.startChat(o)})},sendmessage:function(){$Support.handleSendMessage(o,e,t)},leavemessage:function(){$Support.Util.handleTextareaEnter(o,e,t,function(){$Support.handleLeaveMessage(o)},!0)},triggermsg:function(){$Support.handleTriggerMsg(o,e,t)},missedleavemsg:function(){$Support.Util.handleTextareaEnter(o,e,t,function(){$Support.missedLeaveMsg(o)},!0)},feedback:function(){CallImpl.isCallWithChat?$Support.Util.handleCallFdbEnter(o,e,t):$Support.Util.handleFeedback(o,e,t)},triggermail:function(){$Support.Util.handleSendMail(o,e,t)},handlepasteimage:function(){PasteImage.handlepasteimage(o)},searchfaq:function(){$FAQ.searchFAQ(o,t)},validateConversation:function(){ZSIQConversationForm.validateConversation(o,t)}})[o.attr("dockeyup")]()}}),$(document).mousedown($Support.Util.triggerAdditionalFileDownload),Gator(document).on("blur","[docblur]",function(t){var e=$(this);({email:function(){ZSIQConversationForm.isOldFormView()?$Support.Util.validateFields(e.parent()):$Support.Util.isFormsUI()&&ZSIQConversationForm.checkInputVal(e)},custominput:function(){if(ZSIQConversationForm.isOldFormView())return $Support.Util.validateFields(e.parent()),void $Support.Util.handleInputChange(e.attr("id"),e.val());ZSIQConversationForm.checkInputVal(e)},required:function(){$Support.Util.validateFields(e.parent())},checkInputVal:function(){ZSIQConversationForm.checkInputVal(e)}})[e.attr("docblur")]()}),Gator(document).on("keydown",function(t){27==$Support.Util.getKeyCode(t)&&($Clickoutside.handleEscape(t),CommonUtil.handleEscape(t))}),Gator(document).on("keyup",function(t){var e=$(t.target);e.filter("[data-validate*='required']").length&&(""===$.trim(e.val())?e.next().addClass("req"):e.next().removeClass("req"))}),Gator(document).on("focusin",function(t){KeyHandler.winfocus=!0,$Support.iswindowfocused=!0,Message.stopBlinking()}),Gator(document).on("focusout",function(t){KeyHandler.winfocus=!1,$Support.iswindowfocused=!1});var wheel=void 0!==window.onwheel?"wheel":"mousewheel";function bindDragDropEvents(){CommonUtil.isAllowFileSharing()&&(jQuery.event.props.push("dataTransfer"),$Support.container.on({dragover:function(t){"slider"!==t.srcElement.getAttribute("data-type")&&(t.preventDefault(),$UI.showDragDropUI())},drop:function(t){t.preventDefault(),$Support.Util.handleDropEvent($Support.EmbedObj.chatID,t),$UI.hideDragDrop()},dragleave:function(t){$UI.hideDragDrop()}}))}function handlePaste(){CommonUtil.isAllowPasteImage()&&$("#msgarea").on("paste",function(t){PasteImage.onPaste(t,this),t.stopImmediatePropagation()})}function handleDrag(){if(!$Support.isMobileWidth()){var e=$("header"),o=0,n=0,i=0,a=0;e.on("mousedown.drag",function(t){"INPUT"!==t.target.tagName&&(i=t.pageX,a=t.pageY,e.on("mousemove.drag",function(t){o=t.pageX,n=t.pageY,parent.$ZSIQChatWindow.handleDrag(i-o+"#"+(a-n)),t.stopImmediatePropagation()}),t.preventDefault(),e.on("mouseup.drag",function(t){r(t)}).on("mouseleave.drag",function(t){r(t)}))})}function r(t){parent.$ZSIQChatWindow.cacheChatDivPosition(),e.off("mousemove.drag mouseleave.drag"),t.stopImmediatePropagation()}}Gator(document).on(wheel,"[docwheel]",function(t){var e=$(this);({handlescroll:function(){scrollHandler.init(e,t)},removeUnread:function(){$Support.Util.checkAndRemoveUnreadDIV()}})[e.attr("docwheel")]()}),$(window).resize(function(){$Support.Util.handleResize(),$Support.Util.checkWindowVisibility()}),Gator(document).on("keypress","[onenter]",function(t){if("13"==(t.keyCode?t.keyCode:t.which)){var e=$(this);({updateuserdetails:function(){$Support.checkAndUpdateInfo(e.parents(".editfields").find('[documentclick="updateuserdetails"]'))}})[e.attr("onenter")]()}}),KeyHandler={isWindowFocused:function(){return KeyHandler.winfocus}},$(document).on("focus","[docfocus]",function(t){var e=$(this);({inputFocus:function(){e.parent().addClass("sel")}})[e.attr("docfocus")]()});$ThemeHandler={},$ThemeHandler.theme={updateContainer:function(){$(".siqembed").remove();var e=$("body");e.append($Temp.getCloseWindowHTML()).append($Support.container=$($Temp.getContainerHTML())),$Support.isSeasonalTheme()&&e.addClass("zsiq_seasonal")},updateHeader:function(e){$Support.container.prepend($Temp.getHeaderHTML(e)),handleDrag(),$("#zsiq_customcss").remove(),$("body").append(this.getCustomColor()),$Support.Util.handleCompanyLogo()},updateInnerHeader:function(e){var t=$Support.container.find("header");$Support.container.removeClass("outerwin"),t.length?this.animateHeader(e):this.updateHeader(e)},updateBody:function(e,t){$Support.container.append($Support.contentdiv=$($Temp.getBodyHTML(e,t))).append($Support.convlistcontainer=$($Temp.getConversationContainerHTML())).append($Support.convtranscontainer=$($Temp.getConversationTranscriptContainerHTML())),$Support.bindScrollForConversationListContainer(),$Support.chatdiv=$("#msgdiv"),$Support.chatmaindiv=$("#msgmaindiv"),$Support.composer=$("#msgarea")},updateInnerBody:function(){$Support.container.append($Support.contentdiv=$($Temp.getChatAreaHTML())).append($Support.convlistcontainer=$($Temp.getConversationContainerHTML())).append($Support.convtranscontainer=$($Temp.getConversationTranscriptContainerHTML())),$Support.chatdiv=$("#msgdiv"),$Support.chatmaindiv=$("#msgmaindiv"),$Support.composer=$("#msgarea"),handlePaste(),$Support.bindScrollForConversationListContainer()},updateFooter:function(){$Support.container.find("footer").remove().end().append($Temp.getFooterHTML()),$Support.isConversationUIFocussed()&&!$Support.isFAQEnabled()&&$Support.container.find("footer").hide(),$Support.container.append($Temp.getConversationCreateChatIConHTML()),this.populateSendBtn(),$Support.Util.handleResize(),$Support.Util.isCampaignEnabled()&&($Support.subscribe=!1,$("#newsletter").on("change",function(){$Support.subscribe=$(this).is(":checked")}));var e=$("#chatconsent");$Support.Util.getChatConsentStatus()&&1==e.length&&$("#chatconsent").on("change",function(){1==$(this).is(":checked")?$Support.toggleSendButton($Support.getComposer()):$Support.Util.removeSendClickAction()})},updateDeptDropdown:function(){var e=$("#sqico-drpdwn");e.length&&e.dropdown({options:$Support.getEmbedDepartments(),purpose:"department",defaultval:LSResource.getRealValue("ne.chosedepartment")})},animateHeader:function(e){var t=$Support.container.find("header"),n=t.find(".cmplogo");n.removeClass("siq_botimg"),e.attendername&&(t.find("#attname").html(getEscapedText(e.attendername)),t.find(".cmpylogo").removeClass("sqico-chat").addClass("sqico-user"));var o=e.aboutme||"",i=o?"":"noaboutme";t.find("#attabtme").html(getEscapedText(o)),t.removeClass("noaboutme").addClass(i).removeAttr("header-type");var r=$Support.isUserLogoEnabled();if((e.image_fkey||e.userimg)&&r){t.removeClass("nologo");var a=e.image_fkey?$Support.Util.getPhotoURL():e.userimg;n.removeAttr("style").find("#complogo").attr("src",$Support.Util.getUserImageWithNPS(a)),!$Support.isBotChat||t.attr("header-type","bot")}else(e.chid||!r&&e.attendername)&&(t.removeClass("nologo").addClass("nologo"),n.removeAttr("style").find("#complogo").removeAttr("src"),$("#blur_userbg").hide().parent().removeClass("hide_fontico"));r&&e.attendername?n.attr("data-chttype","agent"):n.removeAttr("data-chttype")},showBanner:function(e,t,n,o,i,r){if(0!=e.length){var a=$Support.contentdiv,s=!1;a.find("#info_banr").length||(s=!0,a.prepend($Temp.getBannerHTML(e,t,i,r)),e=""),$Support.Util.showInfoBanner(e,t,s,n,o)}},hideBanner:function(e){$Support.contentdiv.find("#info_banr").slideUp(500,function(){$(this).remove(),"function"==typeof e&&e()})},showTimerBanner:function(e){clearTimeout($Support.Util.bnrtimer),$Support.contentdiv.append($Temp.getTimerBannerHTML(e))},populateSendMail:function(e){var t=this,n=$Support.contentdiv,o=n.find(".txtarewrap");o=o.length?o:n.find(".chtlnks");var i=n.find("#smailbx");i.length||o.before(i=$($Temp.getSendMailHTML()));var r=$Support.EmbedObj.visitoremail||"";i.find("input").val(r),$Clickoutside.bindclick(function(){t.hideUtilityDiv(i)},"smailbx",e.attr("id"))},populateSendMailConfirm:function(e,t){var n=this,o=$Support.contentdiv,i=!1,r=o.find(".usrinpt"),a=o.find(".infomsg.chtend");(r=r.length?r:a).hasClass("chtend")&&(r.hide(),i=!0);var s=o.find("#consentbannerdiv");"gtranslateconsent"==s.attr("cattr")&&(s.remove(),$Support.Util.calculateTextareaHeight(),s=o.find("#consentbannerdiv")),s.length||r.before(s=$($Temp.getSendMailConfimHTML(e,t))),$Support.Util.calculateTextareaHeight(),$Clickoutside.bindclick(function(){n.hideUtilityDiv(s,!0,i)},"consentbannerdiv","smailbx")},populateSmiley:function(e){Smiley.showSmileyList()},hideUtilityDiv:function(e,t,n){e.animate({bottom:"-60px",opacity:"0"},400,function(){(e.remove(),t&&!n&&$Support.Util.calculateTextareaHeight(),n)&&$Support.contentdiv.find(".infomsg.chtend").show()})},animateUtilityDiv:function(e){e.animate({bottom:"82%",opacity:"1"},400,function(){e.find("input").focus()})},showUserEditUI:function(e,t,n){if(ZSIQConversationForm.isOldFormView()){var o=$Support.contentdiv.find(".editfields");if(o.length&&!o.hasClass("hidemaskanim"))return;$Support.contentdiv.find(".maskdiv").remove().end().prepend($Temp.getUserEditHTML(e)),-1==$Support.EmbedObj.department&&$UI.populateDropDown(),t||$Support.Util.handleCustomHTML(!0),$Support.Util.calculateTextareaHeight();var i=$("#edituserdetails");i.length&&i.find(".siq-input-text-box").first().focus()}else!ZSIQConversationForm.checkContextInitiated()&&ZSIQConversationForm.fetchFieldsToEdit(t,n)},hideUserEditUI:function(){$Support.enableTextarea(),$UI.hideMaskDiv()},showWaitingUI:function(e){$Support.Util.removeSendClickAction(),!ZSIQConversationForm.isOldFormView()&&ZSIQConversationForm.checkContextInitiated()||this.showChatArea(e);var t=$Support.getBroadcastText();t?$UI.showBanner(DynamicMsg.fillValues(t)):e||$UI.showWaitingDialog()},hideMaskDiv:function(){var e=$Support.contentdiv.find(".maskdiv").addClass("hidemaskanim");$Support.Util.removeDiv(e),$Support.contentdiv.removeClass("siq_popup")},showCaptcha:function(e){if(null!=CommonUtil.getCaptcha(e)){var t=$Support.contentdiv,n=$Temp.getCaptchaHTML(e),o=t.find(".maskdiv");o.length?o.html(n):t.prepend('
'+n+"
")}},hideCaptcha:function(){var e=$Support.contentdiv.find(".captcha").addClass("hidemaskanim");$Support.Util.removeDiv(e)},showChatArea:function(e){var t=$Support,n=t.container,o=t.EmbedObj,i=n.find("#msgdiv").find(".siq-user-message"),r=$Support.getParent().$ZSIQUtil.getAPIValues();if(0!=i.length&&-1===o.chatID&&t.istrigmsg&&r.mtrigger){var a=i.html();if(a){var s=a.split("
");for(var p in s)s[p]=getEscapedText(s[p]);o.pmsg=s.join("
")+"
"+getEscapedText(o.pmsg);var c=$Support.getTriggerCookie();c.message=o.pmsg,$Support.setTriggerCookie(c,!0)}}else if(o.pmsg&&"BOT_MESSAGE"!=o.pmsg.mode){var d=o.pmsg?o.pmsg.split("
"):[];for(var p in d)d[p]=getEscapedText(d[p]);o.pmsg=d.join("
")}t.contentdiv.replaceWith(t.contentdiv=$($Temp.getChatAreaHTML())),t.chatdiv=$("#msgdiv"),t.chatmaindiv=$("#msgmaindiv"),t.composer=t.contentdiv.find("#msgarea"),t.chatWindowUICallBk(),t.Util.handleResize(),t.contentdiv=t.container.find(".content");var l=$Support.getBroadcastText();l?$UI.showBanner(DynamicMsg.fillValues(l)):e||($UI.showWaitingDialog(),t.container.find(".content").hide().fadeIn(1e3))},showWaitingDialog:function(){if(!(!$Support.waitingtime||0<$("#wait_div").length||$Support.isBotChat||$Support.proactive&&-1!=$Support.EmbedObj.chatID))return clearTimeout($Support.Util.bnrtimer),{text:function(){$Support.contentdiv.prepend($Temp.getWaitingTextHTML()),$UI.wait_div=$("#wait_div")},video:function(){$(".content").prepend($Temp.getWaitingTextHTML()).animate({top:"auto"},400)}}[$Support.EmbedObj.waitaction]()},populateCWaitHandler:function(){var e=$Support.contentdiv;if($Support.cwaitmsg){var t=e.find("#cwaitmsg");if(t.length)return void t.html($Support.cwaitmsg);e.find("#info_banr").after($Temp.getWaitHandlerHTML())}},removeCWaitHandler:function(){$("#cwaitmsg").remove()},populateVisitorQuestion:function(e){var t=$Support.EmbedObj,n=t.visitorname,o=t.question;if(o||$Support.getTriggerCookie()){var i=t.vwmsid;($Support.istrigmsg||$Support.proactive)&&(n=t.triggername,o=e||t.pmsg,i=-1);var r={sender:i,dname:n,msg:$Support.istrigmsg?Message.getDisplayContent(o):Message.getDisplayContent(getEscapedText(o)),isques:t.question};$BotImpl.formatAndDisplay(r),Message.presender=i}},checkAndShowBotTyping:function(){$Support.isBotAvailable()&&ZSIQTranscript.showTyping({})},getInfoMsgHTML:function(e,t){return $Temp.getInfoHTML(e,t)},populateUserAction:function(){var e=$Support.contentdiv;$Support.EmbedObj;$UI.setSoundConfig(),e.find(".usractions").remove().end().find(".usrinpt").prepend($Temp.getUserActionsHTML());var t=e.find("#mraction li");t.length?1===t.length&&e.find("#moreaction").removeAttr("title").attr({documentclick:t.attr("documentclick"),class:t.attr("class")}).html(t.children()):e.find("#moreaction").hide(),this.populateSendBtn(LSResource.getRealValue("ne.send")),$Support.Util.handleUnmute()},removeUserActions:function(){$Support.contentdiv.find(".usractions").remove().end()},getSoundHTML:function(e){var t=$Temp.getSoundHTML();return e&&(t=t.replace(/
  • /g,""),t=$(t).empty()),t},populateIcon:function(){$UI.removeSmileyIcon(),$Support.contentdiv.find("#smilelist").after($Temp.getIconHTML())},removeSmileyIcon:function(){$Support.contentdiv.find("#smiley").remove(),$("#action_icons").remove()},populateSendBtn:function(e){$Support.isFAQEnabled()||$("footer").find(".floatrg").remove().end().append($Temp.getSendBtnHTML(e))},handleOfflineStatus:function(e,t){var n=$Support,o=n.EmbedObj;n.contentdiv||$UI.init(e),t&&$Support.isOnlineChat()&&($UI.showBanner(n.getOfflineMessage(),!0,null),$("#msgarea").attr("placeholder",$Support.isFAQEnabled()?LSResource.getRealValue("ne.message.clicksubmit.icon"):LSResource.getRealValue("ne.message.clicksubmit")),$Support.isFAQEnabled()&&($("#msgarea").parent().find("#sqico-send").remove(),$("#msgarea").after($Temp.getSendIcon(!0)))),ZSIQConversationForm.isOldFormView()?n.contentdiv.find("#msgarea").attr("dockeyup","leavemessage").val(null!=o.question?o.question:$("#msgarea").val()).parents(".msgbox").addClass("posrel"):n.contentdiv.find("#msgarea").attr("dockeyup","leavemessage"),n.contentdiv.find("#msgarea").removeAttr("dockeydown"),this.populateSendBtn(LSResource.getRealValue("ne.submit")),""!=n.contentdiv.find("#msgarea").val()&&$("footer").find("em#sqico-send").attr("documentclick","leavemessage"),n.Util.setTextareaHeight()},handleMissedStatus:function(e,t){var n=$Support,o=n.composer||$("#msgdiv");o.removeAttr("disabled").attr("placeholder",$Support.isFAQEnabled()?LSResource.getRealValue("ne.missed.placeholder.icon"):LSResource.getRealValue("ne.missed.placeholder")),o.removeAttr("dockeydown"),t||(e?$UI.showBanner(LSResource.getRealValue("ne.offlinemsg")):$UI.showBanner(DynamicMsg.fillValues(n.EmbedObj.missedmessage))),this.removeUserActions(),n.contentdiv.addClass("missed").find("#msgarea").attr("dockeyup","missedleavemsg"),this.populateSendBtn(LSResource.getRealValue("ne.submit")),$UI.updateCloseIcon()},populateFeedbackHTML:function(e){var t=$Support.contentdiv;t.find(".sqico-edit").remove();var n=JSON.parse($Support.EmbedObj.eprops.feedback[0]),o=$Support.israting,i=$Support.isfeedback;if(!(n||o||i)||0==o&&0==i)this.emptyFeedback();else{$Support.isfeedbacksent=!i,$Support.contentdiv.removeClass("siq_popup").addClass("siq_popup");var r=!1===$Support.israting?$Temp.getFeedbackOnlyHTML():$Temp.getFeedbackHTML(!i);t.find(".maskdiv").remove().end().prepend(r),this.emptyFeedback(),i&&this.handleFeedbackBtn()}},handleFeedbackBtn:function(){this.populateSendBtn(LSResource.getRealValue("ne.submit")),$("footer #sqico-send").before(''+LSResource.getRealValue("common.cancel")+"")},emptyFeedback:function(){var e=$Support.contentdiv;e.find("div.usrinpt").remove(),$("footer #sqico-send").remove(),e.addClass("nofdbk"),$("#fdbkarea + .sqico-send").hide()},updateCloseIcon:function(){$Support.container.find(".sqico-min").replaceWith($Temp.getCloseHTML())},showFdbkResponse:function(){var e=document.getElementById("msgmaindiv");if(Message.scroll(e),$Support.isfeedback){var t=$Support.EmbedObj.feedbackcomplete||LSResource.getRealValue("visitorchat.feedback.submit");$UI.showBanner(t,"psabs",!0)}this.feedbackAck()},feedbackAck:function(){$Support.Util.hideFeedback(),$Support.chatmaindiv.addClass("fdbalone"),$("#msgmaindiv").find('.vismsg [purpose="name"]').removeAttr("documentclick")},getInfoMsgContent:function(e,t,n){var o=Message.getInfoHTML(e,t,n);return o?this.getInfoMsgHTML(o):""},showDragDropUI:function(){$Support.Util.isDragNotAllowed()||(this.hideDragDrop(),$Support.contentdiv.prepend($Temp.getDragDropHTML()))},hideDragDrop:function(){$Support.Util.isDragNotAllowed()||$Support.contentdiv.find("#dragmask").remove()},getPreviewHTML:function(){return $Temp.getPreviewHTML()},displayInfo:function(e){$UI.showBanner(e)},getCustomHTML:function(e){var t=e.type||e.format||"text";return/^(phone|number|text|email|url|percentage|decimal|percent|website)$/.exec(t)?$Temp.getCInputHTML(e):{checkbox:function(){return $Temp.getCCheckBxHTML(e)},radio:function(){return $Temp.getCRadioHTML(e)},selectbox:function(){return $Temp.getCDropDwnHTML(e)},textarea:function(){return $Temp.getCTextareaHTML(e)},label:function(){return $Temp.getCLabelHTML(e)}}[t]()||""},getFormattedCustomobj:function(e){var t=e.meta||{},n=t.input_card||{};return{hint:n.placeholder,name:t.field_name,options:n.options,required:!t.skippable,type:n.type,visibility:n.visibility,maxlength:n.maxlength,style:n.style,question:t.msg}},showUploadProgress:function(t){var n=$Support.EmbedObj,o=t.fileobj,i=t.msgid,r=o.name||t.filename,e=$('span[msgid="'+i+'"]'),a=n.vwmsid;if(this["fileprg"+i]||e.length){var s=t.prgval,p=parseInt(s.loaded/s.total*100),c=e.find(".file_prgs"),d=p/100*360;180':"";$Support.contentdiv.find('.vismsg div[purpose="name"]').html(t+n)}},getBusinessHrInfo:function(){var e=$Support.EmbedObj;if(!e.bushrstatus)return"";var t=LSResource.getRealValue("ne.offlinemsg"),n=e.bushrtiming;if(!n)return t;var o;for(var i in n){var r=n[i];r.length&&(isUndefined(o)&&(o=i),n[o][0]!==r[0]&&!1)}return $Temp.getBusnsInfoHTML(n[o][0])},setSoundConfig:function(){var e=$Support.EmbedObj,t=$Support.getCookieValue(e.chatID+"_sound");e.setSoundConfig(t)},addGroupIcon:function(){$Support.container.find("#complogo").after($Temp.getGroupIconHTML())},removeGroupIcon:function(){$Support.container.find("#complogo").next(".sqico-grpico").remove()},getCustomColor:function(){if(4==$Support.getThemeID())return"";var e=$Support.EmbedObj.eprops,t=parent.$zv.embedtheme||e.color[1].code,n=$Support.Util.getTextColor(t),o=n.text_color,i=n.icon_color,r=$Support.Util.getRGB(t),a="";if("#0066cc"!=t){var s=r[0]+", "+r[1]+", "+r[2];a='header, .win_close, .siqc_edt, [themeid="9"] header:after, [themeid="10"] header:after, .buble_bg .msgbx { background-image : -webkit-linear-gradient( 90deg, rgb( '+s+" ) 0%, rgba( "+s+", 0.9 ) 100%) !important; background-image : -moz-linear-gradient( 90deg, rgb( "+s+" ) 0%, rgba( "+s+", 0.9 ) 100%) !important; background-image : -ms-linear-gradient( 90deg, rgb( "+s+" ) 0%, rgba( "+s+", 0.9 ) 100%) !important}"}var p="";return i&&(p+='.headercont, .siq-convback.sqico-larrow:hover:before, .win_close.sqico-larrow:hover::before, aside.siqc_edt:hover:before, .faq-srch .sqico-close:hover:before, div.faq-srch input[type="text"], .min-view:hover .sqico-search:before, .chat_btn { color: '+o+' !important }.win_close.sqico-larrow::before, .siq-convback.sqico-larrow::before, aside.siqc_edt:before, .sqico-user:before, .sqico-typing.siqc_usrimg img[src=""] + .sqico-user:after, .faq-srch .sqico-close:before, .sqico-search::before, .sqico-chat:before { color: '+i+" !important; }.faq-srch input::placeholder{ color: #999 !important; }.cmplogo, .siq-convback.sqico-larrow:hover, .faq-srch, .min-view.faq-srch:hover { background-color: rgba(0, 0, 0, .05); }"),'"},getHeader:function(){return $Support.container.find("header")},getTranslateBannerHTML:function(e,t){return $Temp.getTranslateBannerHTML(e,t)},checkAboutmeClass:function(){var e=$("#attabtme");e.removeClass("empty_abtme"),e.text()||e.addClass("empty_abtme")}};!function(e){e.$Template=e.$Template||{},$Temp=$Template.theme={getContainerHTML:function(){$Support.EmbedObj;if($("body").find("#formcss").remove(),ZSIQConversationForm.isOldFormView()){$("body").append('')}var e=($Support.isParentIframe()?"":" emfullwindow")+" emwin";return e+=$Support.isFAQEnabled()?" faq":"",e+=$Support.isNewHeader()?" zsiq-newtheme":"",e+=$Support.Util.isPreview()?" newpreview":"",['
    '].join("")},getCloseWindowHTML:function(){return $("body").find(".win_close").remove(),$Support.isSignature($Support.EmbedObj)?"":'
    '+$Temp.getSantaCap()+"
    "},getHeaderHTML:function(e){var i=$Support.EmbedObj,s=JSON.parse(i.eprops.iclogo)?i.clogo+"?nps=202":"",t=e&&$Support.isUserLogoEnabled()&&(e.attenderimagefkey||e.imagefkey||e.image_fkey)?$Support.Util.getPhotoURL():"",a=e&&e.attendername;t=!t&&$Support.isBotChat?ZSIQTranscript.getImageURL({sender:i.attender}):t;var o=$Support.isBotChat?t+"?nps=202":t,c=(s=a?o:s)?"":"nologo";a=getEscapedText($Support.getChatWindowTitle(a));var n=getEscapedText(e&&e.aboutme||""),l=n?"":" noaboutme",r=!1;if(i.companywebsite){var d=i.companywebsite;r=!0}return['
    ','','",r?"":"",'
    ','
    '+a+"
    ",'
    '+n+'
    ',"
    ",'',$Temp.getSnowHTML(),"
    "].join("")},getBodyHTML:function(e,i){var s=$Support.getJSAPIMessageHint(),t=$Support.EmbedObj,a=$Support.isSignature(t),o=t.isformremoval,c=0==(r=t.status)?$Support.isFAQEnabled()?LSResource.getRealValue("ne.message.clicksubmit.icon"):LSResource.getRealValue("ne.message.clicksubmit"):LSResource.getRealValue("ne.message.hitenter"),n=s?'placeholder="'+s+'"':'placeholder="'+c+'"';if(!ZSIQConversationForm.isOldFormView())return'
    '+$Temp.getEmptySlate(r)+'
    '+this.getFreeLogoHTML()+'
    ';if(e)return'
    ';t=$Support.EmbedObj;var l="content posrel siq_content siqforms";(a=$Support.isSignature(t))&&(l+="algn_hgt ");var r=$Support.EmbedObj.status,d=t.eprops,p=t.pprops.chatcookiepolicyurl;return['
    ',JSON.parse(d.isname[0])&&!o?this.getNameHTML(d.isname[1].ismandatory):"",JSON.parse(d.isemail[0])&&!o?this.getEmailHTML(d.isemail[1].ismandatory):"",JSON.parse(d.isphoneno[0])&&!o?this.getPhoneHTML(d.isphoneno[1].ismandatory):"",o?this.getFieldHTML():"",-1==t.department||i?'
    ':"",'
    ',this.getQuesAreaHTML(r),0==r?this.getChatConsentHTML(p):"",o?"":this.getCampaignHTML(),"
    ","
    "].join("")},getFieldHTML:function(){$Support.Util.isPreview()&&!ZSIQConversationForm.isNewAppsUI(!0)&&ZSIQConversationForm.updateformconfig();for(var e=$Support.fieldlist||[],i={visitor_name:this.getNameHTML,visitor_email:this.getEmailHTML,visitor_phone:this.getPhoneHTML},s=e.length,t="",a=0;a'+s+""},getQuesAreaHTML:function(e){$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView())return['
    ','',this.getSendIcon(0==e)+"
    "].join("");var i=e?"textarea":"leavemessage",s=$Support.getJSAPIMessageHint(),t=s?'placeholder="'+s+'"':'placeholder="'+LSResource.getRealValue("ne.message.hitenter")+'"';return'
    '+this.getFreeLogoHTML()+'
    '},getNameHTML:function(e,i,s){i=i||"";var t="optional",a='docblur="checkInputVal"',o="",c=s||LSResource.getRealValue("ne.entername");!0===CommonUtil.parseToJSON(e)&&(t="required",a=' docblur="required"',o='iserrorfield="true"');var n=$Support.Util.isInValidVisitorName($Support.EmbedObj.visitorname)?"":$Support.EmbedObj.visitorname;$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){i=i||"";t="optional";var l="";a="";return!0===CommonUtil.parseToJSON(e)&&(t="required",l=" ("+LSResource.getRealValue("ne.required")+")",a=' docblur="required"'),'
    '+$Temp.getRequiredHTML()+"
    "}return'
    Name '+$Temp.getRequiredHTML(e)+"
    "},getEmailHTML:function(e,i,s){$Support.EmbedObj;var t=!0===CommonUtil.parseToJSON(e)?"required":"optional",a=s||LSResource.getRealValue("ne.enteremail"),o=$Support.EmbedObj.visitoremail||"";return ZSIQConversationForm.isOldFormView()?['
    ',''+$Temp.getRequiredHTML(),$Temp.getFetchMailHTML(),"
    "].join(""):'
    Email'+$Temp.getRequiredHTML(e)+""+$Temp.getFetchMailHTML()+"
    "},getFetchMailHTML:function(e){$Support.EmbedObj;return ZSIQConversationForm.isOldFormView()?$Support.EmbedObj.fetchid?'
    ':"":$Support.EmbedObj.fetchid?'':""},getPhoneHTML:function(e,i,s){$Support.EmbedObj;var t=$Support.EmbedObj.visitorphone||"",a=s||LSResource.getRealValue("ne.enterphone");if(ZSIQConversationForm.isOldFormView()){var o="optional",c="",n="";return!0===CommonUtil.parseToJSON(e)&&(o="required",c=" ("+LSResource.getRealValue("ne.required")+")",n=' docblur="required"'),'
    '+$Temp.getRequiredHTML()+"
    "}o="optional",n='docblur="checkInputVal"';var l="";return!0===CommonUtil.parseToJSON(e)&&(o="required",n=' docblur="required"',l='iserrorfield="true"'),'
    Phone '+$Temp.getRequiredHTML(e)+"
    "},getCampaignHTML:function(e){$Support.EmbedObj;if(!$Support.Util.isCampaignEnabled()&&!e)return"";var i=e||$Support.EmbedObj.integprops.integinfo[$Support.enabledCampaignID].subscribelabel||LSResource.getRealValue("embed.campaign.label");return ZSIQConversationForm.isOldFormView()?['"].join(""):'
    "},getChatConsentHTML:function(e){if($Support.Util.getChatConsentStatus()){var i=LSResource.getRealValue("common.gdpr.agent.offlineaccept2");e&&(i=""+i+"");var s=LSResource.getRealValue("common.gdpr.agent.offlineaccept1")+i;return['"].join("")}},getChatAreaHTML:function(){var e=$Support.getJSAPIMessageHint(),i=$Support.EmbedObj,s=$Support.isSignature(i),t=e?'placeholder="'+e+'"':'placeholder="'+LSResource.getRealValue("ne.message.hitenter")+'"';return['
    ','
    ',"
    ",'
    ',this.getFreeLogoHTML(),'
    ',"
    ","
    "].join("")},getSendIcon:function(e){return $Support.isFAQEnabled()&&($Support.Util.isHandHeldDevice()||e)?'':""},getIconHTML:function(){var e=$Support.EmbedObj.eprops;return'
    '+(JSON.parse(e.showsmiley)?'':"")+(CommonUtil.isAllowFileSharing()?''+this.getSendFileHtml()+"":"")+'
    '},getUserActionsHTML:function(){var e=$Support.EmbedObj.eprops;$Support.EmbedObj.isBetaPortal;return['
    ','
    ','
    ','','',"
    ",'
      ',JSON.parse(e.icsound)&&EmbedSound.isPlayerEnable()?this.getSoundHTML():"",JSON.parse(e.icmail)?'
    • '+LSResource.getRealValue("ne.action.sendmail")+"
    • ":"",JSON.parse(e.icprint)?'
    • '+LSResource.getRealValue("common.print")+"
    • ":"",!CommonUtil.isAllowAssist()||$Support.isBotChat||CommonUtil.isScreenSharingAllowed()?"":'
    • '+LSResource.getRealValue("embed.desktop.sharing")+"
    • ","
    ","
    "].join("")},getSoundHTML:function(){var e=$Support.EmbedObj.soundval;return isUndefined(e)||-1!=e?'
  • '+LSResource.getRealValue("ne.action.mute")+"
  • ":'
  • '+LSResource.getRealValue("ne.action.unmute")+"
  • "},getFooterHTML:function(){var e=$Support.Util.getFAQLabel();return['
    ',$Support.EmbedObj.sm?'
    ':"",this.getFreeLogoHTML(),$Support.isFAQEnabled()?'
    '+LSResource.getRealValue("ne.conversation")+'
    '+getEncodedText(e)+"
    ":"","
    "].join("")},getFreeLogoHTML:function(){return $Support.isAllowFreeLogo()?'":""},getSendBtnHTML:function(e){return'
    '+(e=e||LSResource.getRealValue("ne.startchat"))+"
    "},getBannerHTML:function(e,i,s,t){var a='
    "},getSendMailHTML:function(){return['
    ','',"
    "].join("")},getSendMailConfimHTML:function(e,i){var s=i||"";return['
    ',''+LSResource.getRealValue("common.gdpr.emaildoubleoptin")+" "+e+"",'
    '+LSResource.getRealValue("common.no")+"
    ","
    "].join("")},getSmileyHTML:function(){var e='
    ',i=Smiley.defaultsmileyobj;for(var s in i)e+='
    ';return e+="
    "},getUserEditHTML:function(e){var i=$Support,s=i.EmbedObj.eprops,t=s.isname[1].ismandatory,a=s.isemail[1].ismandatory,o=s.isphoneno[1].ismandatory,c=e?LSResource.getRealValue("ne.update"):LSResource.getRealValue("common.continue");i.ismissed&&(c=LSResource.getRealValue("ne.submit"),a="true");var n=' onenter="updateuserdetails"';return['
    ',$Support.Util.checkToShowField("isname","siq_name")?this.getNameHTML(t,n):"",$Support.Util.checkToShowField("isemail","siq_email")?this.getEmailHTML(a,n):"",$Support.Util.checkToShowField("isphoneno","siq_phone")?this.getPhoneHTML(o,n):"",-1==i.EmbedObj.department?'
    ':"",'
    ','

    '+c+"

    ",'

    '+LSResource.getRealValue("common.cancel")+"

    ","
    ","
    "].join("")},getCaptchaHTML:function(e){return["
    ","
    "+LSResource.getRealValue("ne.captcha.title1")+"
    ","

    "+LSResource.getRealValue("ne.captcha.title2")+"

    ","
    "+CommonUtil.getCaptcha(e)+'
    ','','
    ','

    '+LSResource.getRealValue("ne.submit")+"

    ","
    ","
    "].join("")},getWaitingTextHTML:function(){return['
    ',''+DynamicMsg.fillValues($Support.EmbedObj.waitmsg)+"",''+MyDate.formatMS(1e3*$Support.waitingtime)+"","
    "].join("")},getInfoHTML:function(e,i){return'
    '+e+"
    "},getFeedbackHTML:function(e){return['
    ','
    ',"
    ",'
    '+LSResource.getRealValue(e?"ne.rating.alone":"ne.rating")+"
    ",'
    '+this.getStarHTML()+"
    ",'","
    ",e?"":''+this.getSendIcon(),"
    ",'',"
    "].join("")},getFeedbackOnlyHTML:function(e){return['
    ','
    '+LSResource.getRealValue("ne.feedback")+"
    ",'
    ',''+this.getSendIcon(),"
    ","
    "].join("")},getStarHTML:function(e){var i={sad:{classname:"sad_icon"},neutral:{classname:"neutral_icon"},happy:{classname:"happy_icon"}},s="";for(var t in i){var a=e==t?" sel":"";s+=''}return s},getSendFileHtml:function(){$Support.EmbedObj;return''},getDragDropHTML:function(){return'
    '+LSResource.getRealValue("ne.dropfile")+"
    "},getPreviewHTML:function(){return['
    ','
    ','
    ','

    ','','200',"
    ",'
    ','

    '+LSResource.getRealValue("common.upload")+"

    ",'

    '+LSResource.getRealValue("common.cancel")+"

    ","
    ","
    "].join("")},getCCheckBxHTML:function(e){var i=e.options,s=getEscapedText(e.name)||"";$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){for(var t='
    '+this.getCustomWrap(e),a=0;a",t+='',t+='
    "}return t+="
    "}for(t="",a=0;a"}return'
    '+$Temp.getCustomWrap(e)+"
    "+t+"
    "},getCRadioHTML:function(e){var i=e.options,s=getEscapedText(e.name)||"";$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){for(var t='
    '+this.getCustomWrap(e),a=0;a",t+='',t+='
    "}return t+=""}for(t="",a=0;a"}return'
    '+$Temp.getCustomWrap(e)+"
    "+t+"
    "},getCustomWrap:function(e){e.options;var i=getEscapedText(e.name)||"",s=$Temp.getRequiredHTML(e.required);ZSIQConversationForm.isOldFormView()&&(s=JSON.parse(e.required)?$Temp.getRequiredHTML("*"):"");var t=''+getEscapedText(e.hint)+s+"",a=$.parseJSON(e.required)?'iserrorfield="true"':"";return t+='
    "},getRequiredHTML:function(e){$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){var i=e||"";return''+i+""}return $.parseJSON(e)?'*':""},getCInputHTML:function(e){var i=getEscapedText(e.name)||"";$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){var s=e.required&&JSON.parse(e.required)?$Temp.getRequiredHTML():"";return['
    ','"+s,"
    "].join("")}var t=getEscapedText(e.hint)||i;return'
    '+t+$Temp.getRequiredHTML(e.required)+""+$Temp.getFetchMailHTML()+"
    "},getCustomAttr:function(e){e.options;var i=getEscapedText(e.name)||"",s=getEscapedText(e.hint)||i,t=CommonUtil.parseToJSON(e.required)?"required":"optional",a=e.type?e.type:"text",o=e.maxlength||("url"==e.type||"textarea"==e.type?100:30),c=e.minlength?'minlength="'+e.minlength+'"':"",n=t+" "+a;$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView())return'placeholder="'+s+'" id="'+i+'" mandatory="'+e.required+'" custom="'+i+'" name="'+i+'" data-validate="'+n+'" autocomplete="off" maxlength="'+o+'" '+c+' info="'+a+'"';var l=CommonUtil.parseToJSON(e.required)?'iserrorfield="true"':"";return'id="'+i+'" mandatory="'+e.required+'" '+l+' custom="'+i+'" name="'+i+'" data-validate="'+n+'" autocomplete="off" maxlength="'+o+'" info="'+a+'"'},getCDropDwnHTML:function(e){var i=getEscapedText(e.name)||"";$Support.EmbedObj;return ZSIQConversationForm.isOldFormView()?'
    ":'
    "},getCTextareaHTML:function(e){var i=getEscapedText(e.name)||"";$Support.EmbedObj;if(ZSIQConversationForm.isOldFormView()){var s=CommonUtil.parseToJSON(e.required)?$Temp.getRequiredHTML():"";return['
    ','"+s,"
    "].join("")}var t=getEscapedText(e.hint)||i;return'
    '+t+$Temp.getRequiredHTML(e.required)+""+$Temp.getFetchMailHTML()+"
    "},getCLabelHTML:function(e){return e.hint?'
    "+getEscapedText(e.hint)+"
    ":""},getCustomStyle:function(e){var i=e.Style||e.style,s="";if(i)for(var t in i)s+=t+":"+i[t]+";";return s?'style="'+s+'"':""},getCloseHTML:function(){return''},getChatEndHTML:function(){var e=$Support.EmbedObj;return['
    '+(e.chatendmessage?e.chatendmessage:LSResource.getRealValue("ne.chatend",'documentclick="restartchat"')),'
    ',JSON.parse(e.eprops.icmail)?''+LSResource.getRealValue("ne.email.transcript")+"":"","
    ","
    "].join("")},getBusnsInfoHTML:function(e){return["
    "+LSResource.getRealValue("ne.offlinemsg")+"
    ","
    "+LSResource.getRealValue("ne.busnshr")+' : Monday to Friday '+e+"
    "].join("")},getGroupIconHTML:function(){return''},getWaitHandlerHTML:function(){return['
    '+$Support.cwaitmsg,"
    "].join("")},getConversationContainerHTML:function(){return''},getConversationHistoryHTML:function(e){$Support.EmbedObj;var i=e.attender_imgkey&&$Support.isUserLogoEnabled(e)?_SCHEMA+"://"+_EMBEDSERVERURL+"/"+_SCREENNAME+"/userimg/"+e.attender_imgkey+"/photo.ls?nocache=1":"";!e.attender_imgkey&&e.isbotattender&&(i=ZSIQTranscript.getImageURL(JSON.parse(e.lastmsg)));var s=e.attender,t="";e.chid||e.attender?e.attender&&!e.transfer_missed||(s=LSResource.getRealValue("conversation.missedchat"),t=" sqico-missed",i=""):(s=LSResource.getRealValue("conversation.offlinechat"),t=" sqico-offline");var a=Message.getDisplayContent(e.question),o=!1,c="";if(e.lastmsg){var n=JSON.parse(e.lastmsg);if(o=$Support.Util.isAnnonUser(n.sender),n=n.msg){if("object"==typeof n)"cannedarticle"===n.mode?a=$FAQ.getHeaderMessage(n.msg):n.fName&&(a=n.fName,c=$Support.Util.getFileClassType(n.content));else if(a=Message.getDisplayContent(n),o||(a=Markdown.apply(a)),"string"==typeof n)try{JSON.parse(JSON.parse(n).mode&&"MEDIA"===JSON.parse(n).mode)&&(a=Message.getAVMessageBlock(JSON.parse(n),!0))}catch(e){}a=c?''+a+"":a,a=o?LSResource.getRealValue("common.you")+": "+a:a}}return['
    ','
    ','
    ',"
    ",'
    ',''+getEncodedText(s)+"",'
    '+a+"
    ","
    ",'
    '+MyDate.timeDifference(e.endtime)+'
    ',"
    "].join("")},getCallFAQHtml:function(){return''},getConversationCreateChatIConHTML:function(){return''},getConversationTranscriptContainerHTML:function(){var e=$Support.EmbedObj;return['"].join("")},getLoadingHTML:function(){return'
    '},getConversationListLoadingHTML:function(){return'
    '},getchatWaitingUIinConversation:function(){var e=$Support.EmbedObj;return['
    ','
    ','','
    ',"
    ",'
    ','','

    '+getEscapedText(e.question)+"

    ","
    ",'
    ',"
    "].join("")},getPopUpMessageInconversation:function(e,i,s){return['
    ','
    ','','
    ',"
    ",'
    ',''+e+'

    '+i+"

    ","
    ",'',"
    "].join("")},getPopUpAlertInconversation:function(e,i,s,t){return['
    ','
    ','','
    ',"
    ",'
    ',''+e+'

    '+i+"

    ",'
    '+s+"
    ","
    ",'',"
    "].join("")},getPopUPInfoMessageInConversation:function(e){return['
    ','
    ','

    '+e+"

    ","
    ",'',"
    "].join("")},getOutgoingcallUI:function(e,i){var s="",t="";return null==e||""==e?t="":s="",null==i&&(i=""),['
    ','",''+i+''+LSResource.getRealValue("av.info.calling")+"",'
    ','
    ',"
    "].join("")},getReconnectionUI:function(e,i){var s="",t="";return null==e||""==e?s="sqico-person":t="",['
    ','",''+$Support.EmbedObj.attendername+''+LSResource.getRealValue(i)+"",'
    ','
    ',"
    "].join("")},getConnectionDisconnectedUI:function(e,i){var s="",t="";return null==e||""==e?s="sqico-person":t="",['
    ','",''+$Support.EmbedObj.attendername+''+LSResource.getRealValue(i)+"",'
    ','
    ',"
    "].join("")},getUserBusyUI:function(e){var i="",s="";return null==e||""==e?i="sqico-person":s="",['
    ','','",''+$Support.EmbedObj.attendername+''+LSResource.getRealValue("av.info.userbusy")+"",'
    ','
    ','
    ',"
    "].join("")},getAudioCallUI:function(e){var i="",s="";return null==e||""==e?s="":i="",['
    ','",''+LSResource.getRealValue("av.info.callfrom")+""+$Support.EmbedObj.attendername+"",'
    ','
    ','
    ',"
    "].join("")},getOnCallUI:function(e){var i="",s="";return null==e||""==e?i="sqico-person":s="",['
    ','",''+$Support.EmbedObj.attendername+'','
    ','
    ',"
    "].join("")},getStartRecordUI:function(e){var i="",s="";return null==e||""==e?s="sqico-person":i="",['
    ','",''+$Support.EmbedObj.attendername+'','
    ','
    ',"
    "].join("")},getAudioRecordedUI:function(e){var i="",s="";return null==e||""==e?s="sqico-person":i="",['
    ','','",''+$Support.EmbedObj.attendername+'','
    ','
    ','
    ','
    ','
    ',"
    "].join("")},getTranslateBannerHTML:function(e,i){var s=" "+LSResource.getRealValue("helplink.learnmore")+"";return['
    '+LSResource.getRealValue("common.gdpr.agent.translateinfo")+" "+LSResource.getRealValue("common.gdpr.gtranslatehead")+'
    '+s+'
    '+LSResource.getRealValue("common.okay")+"
    "].join("")},handleStartChatBTN:function(){$("#action_icons").length||$Support.contentdiv.find("#smilelist").after('
    ')},getSnowHTML:function(){return $Support.isSeasonalTheme()?'
    ':""},getSantaCap:function(){if(!$Support.isSeasonalTheme())return"";return''},getAskMediaPermission:function(e){var i="zsiq-"+e;return"Chrome"==e&&(i=""),'
    '+LSResource.getRealValue("av.info.pleasetaponlock","")+"

    ("+LSResource.getRealValue("common.or")+")

    "+LSResource.getRealValue("av.info.enablemicrophonesetting")+'
    '+LSResource.getRealValue("chatwindow.mailcopy.clickhere")+"
    "},getMediaSetting:function(e){var i="zsiq-"+e;return"Chrome"==e&&(i=""),'
    '+LSResource.getRealValue("av.info.pleaseallowmicrophone")+"
    "},conversationEmptyState:function(){return'
    '+LSResource.getRealValue("cw.emptypage.title")+'
    '+LSResource.getRealValue("ne.chatnow")+"
    "}}}(window);var scrollHandler=function(){var a,m,n={},h=0,s={8:{min:85,max:120},9:{min:93,max:140},10:{min:87,max:110}},d={bottom:30,skew:9},r=function(e,t){var o=t.deltaY||-1*t.wheelDelta,r=n.header.height(),i=r-o;clearTimeout(h),r=r-20?i.hide():i.show()}}},l=function(e,t){var o=t?100:0;n.header.animate({height:e+"px"},o).removeClass("min_header"),e==a&&n.header.addClass("min_header")},p=function(e){if(9==n.theme){var t=e/(s[9].max-s[9].min)*100,o=d.bottom+-t/100*20,r=d.skew+-t/100*6;d.skew=0[themeid="9"] header:after { bottom: '+d.bottom+"px !important; "+i+" -webkit-"+i+" -moz-"+i+" -o-"+i+" -ms-"+i+" }")}};return{init:function(e,t){if($Support.Util.checkAndRemoveUnreadDIV(),i(e,t),-1==[4].indexOf($Support.getThemeID())){if(!n.size){var o=s[$Support.getThemeID()];n.header=$Support.container.find("header"),n.size=getObjectSize(n),n.theme=$Support.getThemeID(),a=o.min,m=o.max}n.event=t,r(e,t),$TH.checkAboutmeClass(),$.fn.ztooltip.remove()}}}}();ZSIQConversationForm=function(){var r,s=$Support,a={visitorname:{placeholder:"cw.form.name.placeholder",message:"cw.form.name.question",postmessage:"common.name"},visitoremail:{placeholder:"cw.form.email.placeholder",message:"cw.form.email.question",postmessage:"cw.form.email"},visitorphone:{placeholder:"cw.form.phone.placeholder",message:"cw.form.phone.question",postmessage:"ne.enterphone"},department:{postmessage:"common.department",message:"embed.choose_department"},campaign:{message:"embed.campaign.label"}},o=function(e,t){var a=n(e,t);$.ajax({url:a,type:"GET",async:!t,success:function(e){var t=e&&e[0].objString?e[0].objString.form:{};if(Object.keys(t).length)return ZSIQConversationForm.isOldFormView()||$Support.Util.isPreview()?(M(t),void(r=!0)):(V()||($Support.contentdiv.find('[purpose="name"]').find(".sqico-edit").first().addClass("dN"),$Support.handleOnGoingchatActionsInConversation("formchat",t)),void p(e));r=!0,!ZSIQConversationForm.isOldFormView()&&!ZSIQConversationForm.maualedit&&R(),delete ZSIQConversationForm.maualedit,ZSIQConversationForm.clearSessionStorage()},error:function(){ZSIQConversationForm.clearSessionStorage()}})},n=function(e,t){ispreview=$Support.Util.isPreview();var a=s.getParent().$ZSIQChat.getWidgetData().widgetobj.lsid,i=ispreview?"1":$Support.getParent().$ZSIQUtil.getAvuid(),r=$Support.getAjaxURL("fetchvisitorconfigurations",dext),o=$Support.EmbedObj.question;return r+="?avuid="+i+"&lsid="+a+(!V()&&o?"&visitor_question="+o:"")+(V()||ispreview||t?"&fetchallfields="+!0:"")+(e?"&clear_context="+!0:"")},p=function(e){var t=e&&e[0].objString?e[0].objString.form:{},a=$Support.EmbedObj;if(a.question||V()||!t.visitor_question||(a.question=t.visitor_question,$Support.Util.showMessageAreaUI(),$TH.showChatArea()),"classic"==t.form_type||V())m(e);else if(t.msglist&&1"+getEscapedText(r)+"
    "+getEscapedText(e[r])+"
    "}return{sender:t,dname:t,msg:i,isvisitor:!0,time:a,isdisablecache:!0}};_disableComposer=function(){setTimeout(function(){$BotImpl.disableComposer()},2e3)};var V=function(e){return ZSIQConversationForm.maualedit||ZSIQConversationForm.triggerclbk},L=function(){var e,t=$Support.getParent().$ZSIQUtil.getAvuid(),a=B();a&&($Support.EmbedObj.question=a,$Support.Util.showMessageAreaUI(),$TH.showChatArea()),d(),!a&&s.LSDB.storeInSession(t+"_vist_ques",$Support.EmbedObj.question),e=[{sender:"-1",dname:F(),meta:{field_name:"department",skippable:!1,isskiptopost:!1},msg:LSResource.getRealValue("embed.choose_department"),mtime:""+(new Date).getTime()}],$Support.handleOnGoingchatActionsInConversation("formchat",e[0]),e=_(e[0]),(e=u(e)).isdisablecache=!0,$BotImpl.formatAndDisplay(e),_disableComposer()};_updateDeptValue=function(e,t){e.prev("#bottype_msg").remove(),e.remove(),r=!0,R()};var B=function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();return s.LSDB.getFromSession(e+"_vist_ques")},P=function(e){var t=$Support.fieldlist||[],a=t.map(function(e){return e.meta?e.meta.input_card?e.meta.input_card.type:e.meta.field_name:""}).indexOf(e);-1!=a&&t.splice(a,1)},M=function(e){if(e){for(var t=e.msglist||[],a=($Support.fieldlist=t).length,i=[],r=0;r( '+i+" )
    "),$("#msgbox_main").find(".flogo").hide())),void a.addClass("error_bar")}!function(e){var t=e.val()||$("#msgarea").val();if("true"==e.attr("iscustomfield")){var a=e.attr("fieldtype");y(a,t,!0)}else{var i=e.attr("purpose");"visitorname"==i&&A("name","visitorname",t),"visitoremail"==i&&A("email","visitoremail",t),"visitorphone"==i&&A("contactnumber","visitorphone",t)}w(e,t)}(a)}},clearSessionStorage:function(){var e=$Support.getParent().$ZSIQUtil.getAvuid();$Support.LSDB.removeSessionStore(e+"_formcontextinitiated"),$Support.LSDB.removeSessionStore(e+"_vist_ques"),delete ZSIQConversationForm.classicformdata},checkInputVal:function(e){e.attr("value",$.trim(e.val())),e.val()||e.parent().removeClass("sel")},getOperatorName:F,getFormQuestion:function(){return s.EmbedObj.eprops.question[1].msg||LSResource.getRealValue("ne.operator.question","")},fetchFieldsToEdit:function(e,t){ZSIQConversationForm.maualedit=e,ZSIQConversationForm.triggerclbk=t,o()},updateAndGetClassicFormData:function(e){var t=e.msg;_classicformdata={};var a=t.msglist||[];a=h(a);for(var i,r=t.title||LSResource.getRealValue("ne.operator.question",""),o=MyDate.getHoursandMin(e.time,!0,"bclient"),n=t.msglist.length,s=0;s-"),$("#siq_videomin",parent.document).on("click",function(){$(window.parent.document).find("#siqvideo").toggleClass("siq_minvideo")})},avimpl.callConnected=function(){avimpl.removeReconnect(),ZSIQMedia.clearNetworkTimer(),$Support.LSDB.set("avcallstatus_"+$Support.EmbedObj.chatID,!0,5e4),$Support.LSDB.set("avcallconnectionstatus_"+$Support.EmbedObj.chatID,"connected",5e4),avimpl.attenderimgurl=_SCHEMA+"://"+_EMBEDSERVERURL+"/"+_SCREENNAME+"/userimg/"+$Support.EmbedObj.attenderimagefkey+"/photo.ls?nps=404",LSDebugger.postDebugInfo("Audio Call_v - inside call connected| chid |"+avimpl.chid+" | reconect time "+avimpl.reconnecttime,null,null,!0),EmbedSound.stop(),avimpl.active=!0,avimpl.curr_status="ongoing",CallImpl.updateUI(AV_ONGOING),avimpl.isreconnectstate&&clearTimeout(avimpl.reconnecttimeout),avimpl.disconnectionTimer&&clearTimeout(avimpl.disconnectionTimer),clearInterval(avimpl.reconnectinterval),clearInterval(avimpl.ApiCalltimer),$(".zsembd_audiocl").remove(),0!==avimpl.reconnecttime&&null!==avimpl.reconnecttime&&void 0!==avimpl.reconnecttime||(avimpl.starttime=Date.now()),avimpl.checkAndAppendUI($Temp.getOnCallUI(avimpl.attenderimgurl)),void 0!==avimpl.reconnecttime&&null!==avimpl.reconnecttime||(avimpl.reconnecttime=0),avimpl.handleTimerUI(),(avimpl.reconnecttime=0)==avimpl.mutestate&&$("#audiocall_mute").removeClass("sqico-microphone").addClass("sqico-muteaudio"),clearTimeout(avimpl.timer),$Support.LSDB.remove("ZLD_ApiAVCall"),ZSIQMedia.isScreenShareAllowed()&&avimpl.addScreenShareLogo(),avimpl.reconnecttime=avimpl.starttime},avimpl.addScreenShareLogo=function(){$("body").find(".cal_actns").prepend('
    ')},avimpl.shareMyScreen=function(e){e.hasClass("sqico-screenshare")?ZSIQMedia.shareMyScreen():(ZSIQMedia.endScreenShare(),!ZSIQMedia.isScreenShareAllowed()&&$("#screensharecall").remove())},avimpl.toggleScreenShareLogo=function(){!$("#screensharecall").length&&avimpl.addScreenShareLogo(),$("#screensharecall").removeClass("sqico-screenshare").addClass("sqico-ssend").attr("title",LSResource.getRealValue("screenshare.endscreen"))},avimpl.changeScreenShareIcon=function(){ZSIQMedia.isScreenShareAllowed()?$("#screensharecall").removeClass("sqico-ssend").addClass("sqico-screenshare").attr("title",LSResource.getRealValue("screenshare.sharemyscreen")):$("#screensharecall").remove()},avimpl.callFailure=function(e){LSDebugger.postDebugInfo("Audio Call_v - inside call failure| chid |"+avimpl.chid+" | reconect time "+avimpl.reconnecttime+" |type "+e,null,null,!0);avimpl.handleCallTermination(),$(".zsembd_audiocl").remove(),avimpl.reconnecttime=(Date.now()-avimpl.starttime)/1e3,avimpl.checkAndAppendUI($Temp.getReconnectionUI(avimpl.attenderimgurl,"av.info.reconnecting")),avimpl.curr_status="reconnecting",CallImpl.updateUI(AV_RECONNECTING),e==UPSTREAM?(avimpl.reconnect_count=1,avimpl.pc.createOffer({iceRestart:!0}).then(avimpl.successOffer,avaction.sendLog,{mandatory:{OfferToReceiveAudio:!0}})):setTimeout(function(){avimpl.stopOngoingCall(),avimpl.clear()},5e4)},avimpl.addremotestream=function(e,a){try{var i=a._type.toLowerCase();if("audio"==i){remoteAudio=document.createElement("audio");var t=document.getElementById("zaudiodiv");remoteAudio.id="remoteaudio",remoteAudio.autoplay=!0,t.appendChild(remoteAudio),$("body").append(t);var l=e.stream;e.streams&&(l=e.streams[0]);try{remoteAudio.srcObject=l}catch(e){remoteAudio.src=window.URL.createObjectURL(l)}return void(avimpl.remoteStream=l)}if(-1!=["screen_share","video"].indexOf(i)){l=e.stream;e.streams&&(l=e.streams[0]),ZSIQVideo.init({stream:l,id:a._mediaId}),avimpl.hideCallDiv()}}catch(e){LSDebugger.postDebugInfo("Audio Call - Failed in Addremote session | Exception "+e+" | chid "+avimpl.chid,null,null,!0)}},avimpl.hideCallDiv=function(){$("body").find(".zsembd_audiocl").hide()},avimpl.showCallDiv=function(){$("body").find(".zsembd_audiocl").show(),avimpl.changeScreenShareIcon()},avimpl.successAnswer=function(e){avimpl.pc.setLocalDescription(e);var a=_SCHEMA+"://"+_EMBEDSERVERURL+"/visitor/v2/"+_SCREENNAME+"/media/"+avimpl.checkAndGetCallId(avimpl.id)+"/answer",i={};i.session=CommonUtil.toJSON(e),$.ajax({url:a,type:"POST",data:i,dataType:"json",success:function(e){}})},avimpl.successOffer=function(e){avimpl.pc.setLocalDescription(e);var a=_SCHEMA+"://"+_EMBEDSERVERURL+"/visitor/v2/"+_SCREENNAME+"/media/"+avimpl.checkAndGetCallId(avimpl.id)+"/offer",i={};i.session=CommonUtil.toJSON(e),$.ajax({url:a,type:"POST",data:i,dataType:"json",success:function(e){}})},avimpl.toggleMute=function(e){var a=e?$(e):$("#audiocall_mute");-1!==a.attr("class").indexOf("sqico-muteaudio")?(avimpl.mutestate=!0,$("#audiocall_mute").removeClass("sqico-muteaudio").addClass("sqico-microphone"),a.removeAttr("title"),a.attr("title",LSResource.getRealValue("av.info.mute"))):(avimpl.mutestate=!1,$("#audiocall_mute").removeClass("sqico-microphone").addClass("sqico-muteaudio"),a.removeAttr("title"),a.attr("title",LSResource.getRealValue("common.unmute.title"))),ZSIQMedia.toggleMute()},avimpl.stopOngoingCallOnChatEnding=function(){for(var e=document.querySelectorAll("#audio_callagain"),a=0;a'+LSResource.getRealValue("common.reconnecting")+"

    "),ZSIQMedia.getBody().find("#zsiqvideo_time").before(''+LSResource.getRealValue("common.reconnecting")+"")},avimpl.removeReconnect=function(){$("#zsiqreconnect").remove(),ZSIQMedia.getBody().find("#zsiqvideo_reconnect").remove()},avimpl.setAvScreenShareId=function(e){$Support.LSDB.set("avcallscreenshareid",e)},avimpl.removeAvScreenShareId=function(){$Support.LSDB.remove("avcallscreenshareid")},avimpl.endScreenShareOnReload=function(){var e=$Support.LSDB.get("avcallscreenshareid");if(e){avimpl.handleAjaxReq(e,"end",{})}},avimpl.handleAjaxReq=function(e,a,i){var t=_SCHEMA+"://"+_EMBEDSERVERURL+"/visitor/v2/"+_SCREENNAME+"/media/"+e+"/"+a;$.ajax({url:t,type:"POST",data:i,dataType:"json",success:function(e){}})};function CallImpl(){}var AV_INCOMINGCALL=1,AV_OUTGOINGCALL=2,AV_CONNECTING=3,AV_ONGOING=4,AV_RECONNECTING=5,AV_USERBUSY=6,AV_BODY=7,AV_CALLAGAIN=8,AV_RATING=9,AV_FDBCK=10,AV_FDBCKSUCCESS=11,AV_RATINGSUCCESS=12,AV_FDBKRATINGSUCCESS=13,AV_STARTRECORD=14,AV_RECORDING=15,AV_PLAY=16,AV_RECORDSENTSUCCESS=17,AV_DEPT=18,AV_MINIMIZE=1,AV_MAXIMIZE=2,AV_FEDBCK=3;CallImpl.updateUI=function(e,l){if(this.isCallWithChat)switch(e){case AV_OUTGOINGCALL:CallUIHandler.getTemplate(AV_OUTGOINGCALL,AV_MINIMIZE);break;case AV_CONNECTING:CallUIHandler.getTemplate(AV_CONNECTING,AV_MINIMIZE);break;case AV_ONGOING:CallUIHandler.getTemplate(AV_ONGOING,AV_MINIMIZE);break;case AV_RECONNECTING:CallUIHandler.getTemplate(AV_RECONNECTING,AV_MINIMIZE);break;case AV_BODY:CallUIHandler.getTemplate(AV_BODY,AV_MAXIMIZE),$(".cal-bodycont").on("scroll",function(e){CallImpl.handlescroll()});break;case AV_USERBUSY:if(!avimpl.isAudioRecordingSupported()){avimpl.terminateAudioCall();break}CallUIHandler.getTemplate(AV_USERBUSY,AV_MINIMIZE),avimpl.audiorecorder&&avimpl.audiorecorder.destroy(),avimpl.audiorecorder=Recorder(),avimpl.audiorecorder.init();break;case AV_RATING:CallUIHandler.getTemplate(AV_RATING,AV_MINIMIZE);break;case AV_CALLAGAIN:CallUIHandler.getTemplate(AV_CALLAGAIN,AV_MAXIMIZE);break;case AV_RATINGSUCCESS:CallUIHandler.getTemplate(AV_RATINGSUCCESS,AV_MINIMIZE);break;case AV_FDBCK:CallUIHandler.getTemplate(AV_FDBCK,AV_FEDBCK),$(".cal-footer").on("keyup",function(){CallImpl.checkFeedbackMsgHgt()}).focus();break;case AV_FDBCKSUCCESS:CallUIHandler.getTemplate(AV_FDBCKSUCCESS,AV_MAXIMIZE);break;case AV_RECORDING:CallUIHandler.getTemplate(AV_RECORDING,AV_MINIMIZE,-1);break;case AV_PLAY:CallUIHandler.getTemplate(AV_PLAY,AV_MINIMIZE,-1);break;case AV_RECORDSENTSUCCESS:CallUIHandler.getTemplate(AV_RECORDSENTSUCCESS,AV_MINIMIZE,-1)}},CallImpl.handlescroll=function(){var e=$(".cal-bodycont").scrollTop();if($("#call_inptfields").height()+$(".dup_div").height()'},CallImpl.compImgHtml=function(){var e=$Support.EmbedObj.clogo;return e?'
    '},CallImpl.getCompImgHtmlCALFAQ=function(){return'
    '},CallImpl.checkAndStartCall=function(e){if(!$("#dept_strtcall").hasClass("bg-ddd")){var l=$("#call_inptfields");if(!$Support.Util.validateFields(l))return $(".cal-bodycont").animate({scrollTop:0},500),!1;""!=$("#visname").val().trim()&&($Support.EmbedObj.visitorname=$("#visname").val()),""!=$("#visemail").val().trim()&&($Support.EmbedObj.visitoremail=$("#visemail").val()),this.isCallWithChat=!0,CallImpl.updateUI(AV_OUTGOINGCALL),$Support.startChat()}},CallImpl.checkFeedbackMsgHgt=function(){var e=$Support.container;$("#faqcall")&&(e=$("#faqcall"));var l=e.find(".cal-footer"),a=e.find("#fdbkarea");l.removeAttr("style");var t=a[0].scrollHeight+2,i=140'},CallImpl.checkInputFields=function(){var e=$("#callfaq_inptfields");if(!$Support.Util.validateFields(e))return!1;""!=$("#visname").val().trim()&&($Support.EmbedObj.visitorname=$("#visname").val()),""!=$("#visemail").val().trim()&&($Support.EmbedObj.visitoremail=$("#visemail").val()),CallUIHandler.getTemplate(AV_DEPT,AV_MAXIMIZE)},CallImpl.checkDeptFields=function(){$("#dept_strtcall").parent().hasClass("fcal-enb")&&(this.isCallWithChat=!0,CallImpl.updateUI(AV_OUTGOINGCALL),$Support.startChat())},CallImpl.handleFAQClick=function(e){$("body").find("#faqcall").remove(),e&&$("body").append($Temp.getOnCallUI(avimpl.attenderimgurl)),$Support.container.find(".sqico-faqico").click(),document.getElementsByClassName("zsembd_audiocl")[0].sdrag()};function CallUIHandler(){}CallUIHandler.classmapp={},CallUIHandler.classmapp[AV_INCOMINGCALL]="",CallUIHandler.classmapp[AV_OUTGOINGCALL]="outcal",CallUIHandler.classmapp[AV_CONNECTING]="cal-recnct",CallUIHandler.classmapp[AV_ONGOING]="outcal",CallUIHandler.classmapp[AV_RECONNECTING]="cal-recnct",CallUIHandler.classmapp[AV_USERBUSY]="",CallUIHandler.classmapp[AV_RATING]="pL25",CallUIHandler.classmapp[AV_USERBUSY]="";var CALLALONE=1,CALLPLUSFAQ=2,CHATPLUSCALLPLUSFAQ=3;CallUIHandler.getTemplate=function(l,a,e){if("FAQPLUSCALL"!=CallImpl.getTheme()){switch((-1==e?$Support.container.find("#audiorec"):$Support.container.find("#audiocal")).replaceWith(this.mapTemp(l)),handleDrag(),setTimeout(function(){$(".zsembd_audiocl").hide()},1),a){case AV_MINIMIZE:$Support.getParent().$ZSIQWidgetUI.handleMinimizeCall();break;case AV_MAXIMIZE:$Support.getParent().$ZSIQWidgetUI.handleMinCall();break;case AV_FEDBCK:$Support.getParent().$ZSIQWidgetUI.handlefbCall()}}else 0<$("body").find("#faqcall").length?$("body").find("#faqcall").replaceWith(this.getTempForCALLPLUSFAQ(l,CALLPLUSFAQ)):$("body").prepend(this.getTempForCALLPLUSFAQ(l,CALLPLUSFAQ))},CallUIHandler.mapTemp=function(l){return"theme5"==CallImpl.getTheme()?this.getTempForSignChat(l):CallUIHandler.classmapp.hasOwnProperty(l)?this.getTempForThemes(l):this.getRequiredHtml(l)},CallUIHandler.getRequiredHtml=function(l,a){var e="";switch(l){case AV_INCOMINGCALL:e=a==CALLPLUSFAQ?this.getFQCALINCallhtml():this.getIncommingCallHtml();break;case AV_OUTGOINGCALL:e=a==CALLPLUSFAQ?this.getFQCALOUTCallhtml():this.getOutgoingCallHtml();break;case AV_CONNECTING:e=a==CALLPLUSFAQ?this.getFQCALConnectingCallhtml():this.getConnectingHtml();break;case AV_ONGOING:e=a==CALLPLUSFAQ?this.getFQCALOnCallhtml():this.getOnGoingCallHtml();break;case AV_RECONNECTING:e=this.getReConnectingHtml();break;case AV_USERBUSY:e=a==CALLPLUSFAQ?this.getFQCALUserBusyhtml():this.getUserBusyHtml();break;case AV_RATING:e=a==CALLPLUSFAQ?this.getFQCALRatinghtml():this.getRatingHtml();break;case AV_BODY:e=a==CALLPLUSFAQ?this.getFQCALBodyhtml():this.getBodyHtml();break;case AV_DEPT:e=this.getFQCALDepthtml();break;case AV_CALLAGAIN:e=a==CALLPLUSFAQ?this.getFQCALCallAgainhtml():this.getCallCancelledHtml();break;case AV_RATINGSUCCESS:e=this.getRatingSuccessHtml();break;case AV_FDBCK:e=a==CALLPLUSFAQ?this.getFQCALFDBKhtml():this.getFdbkratingHtml();break;case AV_FDBCKSUCCESS:e=a==CALLPLUSFAQ?this.getFQCALFDBKSucesshtml():this.getFdbkSuccessHtml();break;case AV_RECORDING:e=a==CALLPLUSFAQ?this.getFQCALRecordhtml():this.getRecordingHtml();break;case AV_PLAY:e=a==CALLPLUSFAQ?this.getFQCALAVPlayhtml():this.getRecordAVPlayHtml();break;case AV_RECORDSENTSUCCESS:e=a==CALLPLUSFAQ?this.getFQCALRecordSuccesshtml():this.getRecordSuccessHtml()}return e},CallUIHandler.getTempForThemes=function(l){return['
    ','
    ','
    ',this.getRequiredHtml(l),"
    ","
    "].join("")},CallUIHandler.getTempForSignChat=function(l){return['
    ','
    ','
    ',this.getRequiredHtml(l),"
    "].join("")},CallUIHandler.getTempForCALLPLUSFAQ=function(l,a){return['
    ',this.getRequiredHtml(l,a),"
    "].join("")},CallUIHandler.getOutgoingCallHtml=function(){return['
    '+CallImpl.compImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.calling")+"

    ",'
    '].join("")},CallUIHandler.getIncommingCallHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.reconnecting")+"

    ",'
    '].join("")},CallUIHandler.getOnGoingCallHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'

    00:00

    ','
    '].join("")},CallUIHandler.getConnectingHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.connecting")+"

    ",'
    '].join("")},CallUIHandler.getReConnectingHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.reconnecting")+"

    ",'
    '].join("")},CallUIHandler.getUserBusyHtml=function(){return['
    '+CallImpl.compImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.voicemsg")+"

    ",'
    '].join("")},CallUIHandler.getRatingHtml=function(){return['
    '+CallImpl.getAttenderImgHtml()+"
    ",'
    '+this.getStarHTML()+'

    '+LSResource.getRealValue("av.info.ratigclick")+"

    ","
    "].join("")},CallUIHandler.getStarHTML=function(l){for(var a="",e=null!=l?"":'documentclick="sendCallRating"',s=0;s<5;s++)a+='";return a},CallUIHandler.getCallCancelledHtml=function(){return['
    '+CallImpl.getBackGndImg("Comp")+'
    ','
    '+CallImpl.compImgHtml()+'
    '+CallImpl.getCompValueForKey("name")+'
    ','

    '+CallImpl.getCompValueForKey("desc")+'

    '].join("")},CallUIHandler.getFdbkratingHtml=function(){return['
    '+CallImpl.getBackGndImg()+'
    ','
    '+CallImpl.getAttenderImgHtml()+''+$Support.rating+'
    '+$Support.EmbedObj.attendername+"
    ",'
    '+LSResource.getRealValue("av.info.ratingsuccess")+'
    '].join("")},CallUIHandler.getFdbkSuccessHtml=function(){return['
    '+CallImpl.getBackGndImg()+'
    ','
    '+CallImpl.getAttenderImgHtml()+''+$Support.rating+'
    '+$Support.EmbedObj.attendername+"
    ",'
    '+LSResource.getRealValue("av.info.ratingandfbk")+'
    '].join("")},CallUIHandler.getRecordingHtml=function(){return['
    ','
    '+CallImpl.compImgHtml()+'

    00:00:00

    '+LSResource.getRealValue("av.info.recordingaudio")+"

    ",'
    00:00
    '].join("")},CallUIHandler.getRecordAVPlayHtml=function(){return['
    ','
    '+CallImpl.compImgHtml()+"
    ",'
    00:00 / 00:00
    '].join("")},CallUIHandler.getRecordSuccessHtml=function(){return['
    ','
    '+CallImpl.compImgHtml()+"
    ",'

    '+LSResource.getRealValue("av.info.voicesent")+'

    '].join("")},CallUIHandler.getBodyHtml=function(){var l=$Support.EmbedObj,a=($Support.EmbedObj.status,l.eprops);return['
    '+CallImpl.getBackGndImg("Comp")+'
    '+CallImpl.compImgHtml()+'
    '+CallImpl.getCompValueForKey("name")+'
    '+LSResource.getRealValue("av.info.welcomemsg")+"
    ",'
    ',JSON.parse(a.isname[0])?this.getNameHTML(a.isname[1].ismandatory):"",JSON.parse(a.isemail[0])?this.getEmailHTML(a.isemail[1].ismandatory):"",'
    ',1<$Support.EmbedObj.deptlist.length?'
    '+LSResource.getRealValue("av.info.deptchoose")+"
    ":'
    ',1<$Support.EmbedObj.deptlist.length&&(l.department,1)?this.getDeptList():"","
    "].join("")},CallUIHandler.getNameHTML=function(l,a){a=a||"";var e="optional",s="";e="required",LSResource.getRealValue("ne.required"),s=' docblur="required"';var t=$Support.Util.isInValidVisitorName($Support.EmbedObj.visitorname)?"":$Support.EmbedObj.visitorname,i=t?"dN":"";return''},CallUIHandler.getEmailHTML=function(l){LSResource.getRealValue("ne.required");var a=$Support.EmbedObj.visitoremail||"";return['',this.getFetchMailHTML()].join("")},CallUIHandler.handletextfiled=function(l){$(l).siblings("span").addClass("dN"),""==l.value&&$(l).siblings("span").removeClass("dN")},CallUIHandler.getPhoneHTML=function(l){var a="optional",e="",s="";return"true"===l&&(a="required",e=" ("+LSResource.getRealValue("ne.required")+")",s=' docblur="required"'),'
    '+this.getRequiredHTML("*")+"
    "},CallUIHandler.getRequiredHTML=function(l){return l=l||"",'*'},CallUIHandler.getFetchMailHTML=function(l){return $Support.EmbedObj.fetchid?'
    ':""},CallUIHandler.getDeptList=function(){var l="",a=$Support.EmbedObj.deptlist;for(i in a){var e=a[i].DNAME;l+=''+e+""}return['
    ',l,'
    '].join("")},CallUIHandler.getFQCALINCallhtml=function(){},CallUIHandler.getFQCALBodyhtml=function(){var l=$Support.EmbedObj,a=($Support.EmbedObj.status,l.eprops);return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+CallImpl.getCompValueForKey("desc")+"

    ",'
    ',JSON.parse(a.isname[0])?this.getNameHTML(a.isname[1].ismandatory):"",JSON.parse(a.isemail[0])?this.getEmailHTML(a.isemail[1].ismandatory):"",'
    '+LSResource.getRealValue("av.info.deptchoose")+"
    "].join("")},CallUIHandler.getFQCALDepthtml=function(){var l="",a=$Support.EmbedObj.deptlist;for(i in a){var e=a[i].DNAME;l+=''+e+""}return setTimeout(function(){$("#FQCLdeptlist").on("click","[call-dept]",function(){$("#FQCLdeptlist").find("[call-dept]").removeClass("fcal-sel"),$(this).addClass("fcal-sel"),$Support.EmbedObj.department=this.id,$("#dept_strtcall").parent().removeClass("fcal-dis").addClass("fcal-enb")})},2),['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+CallImpl.getCompValueForKey("desc")+"

    ",'
    '+LSResource.getRealValue("av.info.deptchoose")+'
    ',l,'
    '+LSResource.getRealValue("av.info.call")+"
    "].join("")},CallUIHandler.getFQCALOUTCallhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+LSResource.getRealValue("av.info.calling")+"

    ",'
    '+LSResource.getRealValue("av.info.mute")+'
    '+LSResource.getRealValue("av.info.end")+"
    "].join("")},CallUIHandler.getFQCALConnectingCallhtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+'

    '+LSResource.getRealValue("av.info.connecting")+"

    ",'
    '+LSResource.getRealValue("av.info.mute")+'
    '+LSResource.getRealValue("av.info.faq")+'
    '+LSResource.getRealValue("av.info.end")+"
    "].join("")},CallUIHandler.getFQCALOnCallhtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+'

    00:00

    ','
    '+LSResource.getRealValue("av.info.mute")+'
    '+LSResource.getRealValue("av.info.faq")+'
    '+LSResource.getRealValue("av.info.end")+"
    "].join("")},CallUIHandler.getFQCALRatinghtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.rating")+'
    '+this.getStarHTML()+'

    '+LSResource.getRealValue("av.info.ratingclick")+"

    "].join("")},CallUIHandler.getFQCALFDBKhtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+''+$Support.rating+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.ratingsuccess")+'
    '].join("")},CallUIHandler.getFQCALFDBKSucesshtml=function(){return['
    '+CallImpl.getAttenderImgCALFAQHtml()+'
    '+CallImpl.getAttenderName()+"
    ",'
    '+LSResource.getRealValue("av.info.ratingandfbk")+'
    '+LSResource.getRealValue("av.info.callback")+"
    "].join("")},CallUIHandler.getFQCALCallAgainhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+CallImpl.getCompValueForKey("desc")+"

    ",'
    '].join("")},CallUIHandler.getFQCALUserBusyhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+LSResource.getRealValue("av.info.oprbusy")+'

    '+LSResource.getRealValue("av.info.voicemsg")+"

    ",'
    '+LSResource.getRealValue("av.info.voicemsgtxt")+'
    '+LSResource.getRealValue("av.info.faq")+'
    '+LSResource.getRealValue("av.info.callback")+"
    "].join("")},CallUIHandler.getFQCALRecordhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    00:00:00

    ','
    00:00
    '+LSResource.getRealValue("av.info.stop")+"
    "].join("")},CallUIHandler.getFQCALAVPlayhtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    00:00

    ','
    '+LSResource.getRealValue("av.info.voicemsgtxt")+'
    '+LSResource.getRealValue("av.info.play")+'
    '+LSResource.getRealValue("av.info.send")+"
    "].join("")},CallUIHandler.getFQCALRecordSuccesshtml=function(){return['
    '+CallImpl.getCompImgHtmlCALFAQ()+'
    '+CallImpl.getCompValueForKey("name")+'

    '+LSResource.getRealValue("av.info.voicesent")+"

    ",'
    '].join("")},CallUIHandler.getInitialHtml=function(){return['
    '+CallImpl.getBackGndImg("Comp")+'
    ','
    '+CallImpl.compImgHtml()+"
    ",'
    '+CallImpl.getCompValueForKey("name")+'
    ','

    '+CallImpl.getCompValueForKey("desc")+'

    '+LSResource.getRealValue("av.info.callnow")+"
    "].join("")};var Recorder=function(){"use strict";var c,n,i,s,u,a,p,o,d,m,l,g,f,v,h=0,y=!0,w=!1,q=0,C=0,S=function(){},A=function(){},L=function(){},e=function(){return window.AudioContext=window.AudioContext||window.webkitAudioContext,window.URL=window.URL||window.webkitURL,navigator.getUserMedia=avaction.getUserMedia(),window.AudioContext&&navigator.getUserMedia&&window.URL&&window.Worker||(support=!1),!0},T=function(){c.addEventListener("click",t)},b=function(){c.removeEventListener("click",t)},t=function(e){var t=e.target,r=t.getAttribute("cntrl");f[r]&&f[r](t)},r=function(){var e=URL.createObjectURL(new Blob(["( "+V+" )()"]),{type:"javascript"});(n=new Worker(e)).onmessage=function(e){"view"==e.data.key&&(a=e.data.value)}};v=function(e){var t=g[e];t.trigger.classList.add(t.add),t.trigger.classList.remove(t.remove),t.trigger.setAttribute("cntrl",t.cntrl)};var I=function(){(c=document.querySelector(".zsembd_audiocl")).sdrag(),T(),m=c.querySelector("#sqico-timer");var e,t,r,n=c.querySelector("#sqico-canvas");n.innerHTML='',n=n.querySelector("#level_audio2"),p={elem:n,ctx:n.getContext("2d"),step:-4,bufferLength:null,dataArray:null,stepincrement:2,waveTrigger:null,lineX:0},e=c.querySelector('[cntrl="settings"]'),t=c.querySelector('[cntrl="playRecord"]'),r=c.querySelector('[cntrl="stopRecord"]'),g={start:{trigger:e,cntrl:"startRecord",add:"sqico-recorder",remove:"sqico-settings"},stop:{trigger:r,cntrl:"stopRecord",add:"sqico-chkbx",remove:"sqico-videosend"},setting:{trigger:e,cntrl:"settings",add:"sqico-settings",remove:"sqico-recorder"},play:{trigger:t,cntrl:"playRecord",add:"sqico-play",remove:"sqico-pause"},pause:{trigger:t,cntrl:"pauseRecord",add:"sqico-pause",remove:"sqico-play"},send:{trigger:r,cntrl:"uploadRecord",add:"sqico-videosend",remove:"sqico-chkbx"}},S=function(){q=0,v("setting"),g.setting.trigger.style.display="none",g.play.trigger.style.display="none",v("stop"),z(!0),h=6e3},A=function(){v("send"),g.setting.trigger.style.display="inline-block",g.play.trigger.style.display="inline-block",v("play"),v("start"),h=q,q=0},L=function(){c.remove()}},R=function(){(c=document.querySelector("#audiorec"))||(c=document.querySelector("#faqcall")),T(),S=function(){q=0,h=6e3,CallImpl.updateUI(AV_RECORDING),(c=document.querySelector("#audiorec"))||(c=document.querySelector("#faqcall")),m=c.querySelector("#sqico-timer"),l=c.querySelector("#sqico-remtimer");var e,t,r,n=c.querySelector("#sqico-canvas");"FAQPLUSCALL"==CallImpl.getTheme()?(n.innerHTML='',n=n.querySelector("#level_audio2"),p={elem:n,ctx:n.getContext("2d"),step:-4,bufferLength:null,dataArray:null,stepincrement:2,waveTrigger:null,lineX:0},e=c.querySelector('[cntrl="settings"]'),t=c.querySelector('[cntrl="playRecord"]'),r=c.querySelector('[cntrl="stopRecord"]'),g={start:{trigger:e,cntrl:"startRecord",add:"sqico-recorder",remove:"sqico-settings"},stop:{trigger:r,cntrl:"stopRecord",add:"sqico-chkbx",remove:"sqico-videosend"},setting:{trigger:e,cntrl:"settings",add:"sqico-settings",remove:"sqico-recorder"},play:{trigger:t,cntrl:"playRecord",add:"sqico-play",remove:"sqico-pause"},pause:{trigger:t,cntrl:"pauseRecord",add:"sqico-pause",remove:"sqico-play"},send:{trigger:r,cntrl:"uploadRecord",add:"sqico-videosend",remove:"sqico-chkbx"}}):(n.innerHTML='',n=n.querySelector("#level_audio"),p={elem:n,ctx:n.getContext("2d"),bufferLength:null,dataArray:null,waveTrigger:null,slider:null,lineX:0});T()},A=function(){if(h=q,q=0,"FAQPLUSCALL"==CallImpl.getTheme())return $("#faqrcd_play").css("display",""),void $("#faqrcd").css("display","none");CallImpl.updateUI(AV_PLAY),(c=document.querySelector("#audiorec"))||(c=document.querySelector("#faqcall")),T();var e=c.querySelector('[cntrl="playRecord"]');(m=c.querySelector("#sqico-timer")).innerHTML="00:00 / "+te(),p.slider=c.querySelector("#slide"),p.slider.style.cursor="pointer";var r=p.slider.querySelector("#thumb"),n=p.slider.querySelector("#fill"),i=0,t=avaction.getBrowserFromUserAgent(navigator.userAgent).split("-")[0],a="Chrome"==t||"Opera"==t;function o(e){var t=r.offsetLeft-(i-e.clientX);t>p.slider.clientWidth-4||t<-4||(r.style.left=t+"px",n.style.width=t+"px",q=h/parseInt(p.slider.clientWidth)*t,s&&(s.currentTime=a?q/200:q/100),i=e.clientX)}function l(e){document.onmouseup=null,document.onmousemove=null,w&&s&&(K(),s.play())}p.slider.onclick=function(e){var t=e.clientX-p.slider.getBoundingClientRect().left-5;t>p.slider.clientWidth-4||t<-4||(r.style.left=t+"px",n.style.width=t+"px",q=h/parseInt(p.slider.clientWidth)*t,s&&(w&&s.pause(),s.currentTime=a?q/200:q/100,w&&s.play()))},r.onmousedown=function(e){e.stopPropagation(),i=e.clientX,document.onmouseup=l,w&&s&&(s.pause(),clearInterval(d)),document.onmousemove=o},g={play:{trigger:e,cntrl:"playRecord",add:"sqico-play",remove:"sqico-pause"},pause:{trigger:e,cntrl:"pauseRecord",add:"sqico-pause",remove:"sqico-play"}}},L=function(){CallImpl.updateUI(AV_RECORDSENTSUCCESS)}},x=function(){!w&&y&&(S(),n.postMessage({command:"clear"}),s=null,B(),y=!1)},U=function(){y||(A(),i.close(),H(),n.postMessage({command:"getView"}),z(!0),y=!0)},M=function(){s&&(w=!1,clearInterval(d),s.pause(),(!CallImpl.isCallWithChat||"FAQPLUSCALL"==CallImpl.getTheme())&&z(!1)),v("play")},k=function(){if(v("pause"),s)return w=!0,(!CallImpl.isCallWithChat||"FAQPLUSCALL"==CallImpl.getTheme())&&j(O,25),s.play(),void K();s=new Audio,w=!0,"FAQPLUSCALL"==CallImpl.getTheme()&&j(O,25),P(),K()},P=function(){var e=URL.createObjectURL(new Blob([a],{type:"audio/wav"}));if(s.src=e,!CallImpl.isCallWithChat){(i=new AudioContext).resume();var t=i.createMediaElementSource(s);u=i.createAnalyser(),t.connect(u),u.connect(i.destination),j(O,25)}s.play()},W=function(){var e,t,r,n,i;b(),M(),L(),t=window.lamejs?(r=a,n=lamejs.WavHeader.readHeader(r),i=new Int16Array(r.buffer,n.dataOffset,n.dataLen/2),e=function(e,t,r){for(var n=[],i=new lamejs.Mp3Encoder(e,t,128),a=r.length,o=0;1152<=a;o+=1152){var l=r.subarray(o,o+1152),c=i.encodeBuffer(l);0p.slider.clientWidth-4||(p.slider.children[1].style.left=n+"px",p.slider.children[0].style.width=n+"px")):m.innerHTML+="."+(e<10?"0"+e:e),i&&!y&&(l.innerHTML=i)},te=function(){var e=parseInt(h/100)-parseInt(q/100),t=parseInt(e/60);return(t<10?"0"+t:t)+":"+((e%=60)<10?"0"+e:e)};return{init:function(){e()?(r(),f={startRecord:x,stopRecord:U,pauseRecord:M,playRecord:k,uploadRecord:W,cancelRecord:D},CallImpl.isCallWithChat?R():(I(),x())):D()},destroy:function(){D()},isAudioRecordingSupported:function(){return e()}}};function avaction(){}function mediafailureoffer(a,e){if(window.$Temp&&avaction.clearMediaPermissionPop(),!avaction.callObj.mediaStream||!avaction.callObj.chid)if(a&&a.name){switch(a.name){case"NotFoundError":case"DevicesNotFoundError":message=LSResource.getRealValue("av.info.microphone.notavailable");break;case"SourceUnavailableError":case"PermissionDeniedError":case"SecurityError":case"NotAllowedError":default:message=LSResource.getRealValue("av.info.microphone.blocked")}"NotAllowedError"==a.name&&window.$Temp&&$(window.parent.document).find("body").append($Temp.getAskMediaPermission(avimpl.getCurrentBrowerName())),avaction.callObj.checkMediaPermission(message,avaction.callObj.chid),e&&("agent"==avaction.callObj.type?avaction.callObj.rejectCallInvite("reject",avaction.callObj.audioId,avaction.callObj.chid):avaction.callObj.rejectCallInvite(avaction.callObj.chid,null)),LSDebugger.postDebugInfo("Audio Call - Inside Filure media | PeerConnection "+avaction.callObj.pc,null,null,!0)}else avaction.callObj.StartAfterMediaPermission()}avaction.TYPE="AUDIO",avaction.supportedbrowsers=["Chrome","Firefox","Opera","Safari","Edge"],avaction.transfercallpermission=!0,avaction.enableTransferCall=!1,avaction.getScreenID=function(){return window.webkitRTCPeerConnection?'{"mandatory": { "chromeMediaSource": "desktop", "maxWidth": 1920, "maxHeight": 1080, "minAspectRatio": 1.77 }, "optional": [] }':'{"mediaSource":"screen"}'},avaction.constraints={AUDIO:{audio:!0,video:!1},VIDEO:{audio:!0,video:!0},SCREEN_SHARE:{audio:!0,video:JSON.parse(avaction.getScreenID())},SCREEN_VIEW:{audio:!0,video:!1}},avaction.getObject=function(a){return"undefined"==typeof AgentCall||"agent"!==a.msg.media.mode||a.msg.media.visitoraccess?avimpl:AgentCall},avaction.init=function(a){avaction.callObj=avaction.getObject(a);var e,n=a.msg,t=n.media;if("credential"!==a.msg.cbtype&&"call_credential"!==n.operation||(avaction.callObj.setCredentials(t),e="added credential data successfully"),"invite"!==a.msg.cbtype&&"call_initiate"!==n.operation||((t.credentials||a.msg.credential)&&avaction.callObj.setCredentials(t),avaction.callObj.showInvitation(t),e="added credential data and invitation successfully"),"accept"===a.msg.status||"call_accept"===n.operation)if(this.requestStream(t,UPSTREAM),"agent"===a.msg.media.mode){avaction.callObj.acceptedTime();var i=AgentDB.getWMSIDFromLSUID(JSON.parse(a.msg.media.opruser).lsuid);AgentCall.wmsid=i}else avaction.callObj.acceptedTime=Date.now();if("reject"!==a.msg.cbtype&&"call_reject"!==n.operation||("function"==typeof avaction.callObj.showRejectedBanner&&avaction.callObj.showRejectedBanner(t),avaction.callObj.handleUserBusy()),"candidate"!==a.msg.cbtype&&"call_candidates"!==n.operation||(avaction.callObj.connection_estb?avaction.addIceCandidate(t):(avaction.callObj.newcandidate||(avaction.callObj.newcandidate=[]),avaction.callObj.newcandidate.push(t))),"answer"===a.msg.cbtype||"call_answer"===n.operation){var c=JSON.parse(t.session);if(avaction.callObj.pc.setRemoteDescription(new RTCSessionDescription(c)),avaction.callObj.connection_estb=!0,avaction.callObj.newcandidate)for(var o in avaction.callObj.newcandidate)avaction.addIceCandidate(avaction.callObj.newcandidate[o]);avaction.callObj.pc.onaddstream=avaction.callObj.pc.ontrack=function(a){avaction.callObj.remoteStream&&avaction.callObj.remoteStream.active||avaction.callObj.addremotestream(a)}}"end"!==a.msg.status&&"call_end"!==n.operation||avaction.callObj.endCall(),"offer"!==a.msg.cbtype&&"call_offer"!==n.operation||this.requestStream(t,DOWNSTREAM),"cancel"!==a.msg.cbtype&&"call_cancel"!==n.operation&&"miss"!==a.msg.cbtype&&"call_miss"!==n.operation||avaction.callObj.clear(t.chatid),avaction.callObj.sendStats(a,e)},avaction.setNRSServers=function(a){this.NRSServers=a},avaction.setCredentials=function(a){!avimpl.active&&(avimpl.id=a.id);var e=JSON.parse(a.credentials);avaction.setNRSSereverUrls(e.user_name,e.token,e.servers),avaction.callObj.chid=a.chatid},avaction.setNRSSereverUrls=function(a,e,n){var t=n.split(","),i={iceServers:[]};for(var c in t)i.iceServers.push({urls:t[c],username:a,credential:e});avaction.callObj.iceServerlist=i,LSDebugger.postDebugInfo("Audio Call - Ice Servers "+avaction.callObj.iceServerlist+" | Server urls "+this.NRSServers,null,null,!0)},avaction.clearMediaPermissionPop=function(){clearTimeout(avaction.mediaTimer),avimpl.closeViewMediaPermission()},avaction.requestStream=function(e,n){if(!avaction.callObj.iceServerlist)return LSDebugger.postDebugInfo("Audio Call - End on reload| chid |"+avaction.callObj.chid+" | Data "+e+" |type "+n,null,null,!0),void avaction.callObj.endOnReload();if(avaction.callObj.getMediaApi=avaction.getUserMedia(),window.webkitRTCPeerConnection?(avaction.callObj.hostbrowser="Chrome",window.RTCPeerConnection=webkitRTCPeerConnection):window.mozRTCPeerConnection&&(avaction.callObj.hostbrowser="Firefox",window.RTCPeerConnection=mozRTCPeerConnection),avaction.callObj.chid=e.chatid,avaction.callObj.mediaStream){var a=avaction.callObj.mediaStream;n==UPSTREAM?avaction.initializeConnection(a,n):n==DOWNSTREAM&&(avaction.callObj.offer=CommonUtil.parseToJSON(e.offer),avaction.initializeConnection(a,n))}else{if(window.$Temp&&(avaction.mediaTimer=setTimeout(function(){$(window.parent.document).find("body").append($Temp.getMediaSetting(avimpl.getCurrentBrowerName())),clearTimeout(avaction.mediaTimer)},1500)),!avaction.callObj.getMediaApi)return navigator.mediaDevices.getUserMedia(avaction.constraints[avaction.TYPE]).then(function(a){n==UPSTREAM?avaction.initializeConnection(a,n):n==DOWNSTREAM&&(e.offer?avaction.callObj.offer=CommonUtil.parseToJSON(e.offer):avaction.callObj.offer=CommonUtil.parseToJSON(e.session),avaction.initializeConnection(a,n)),window.$Temp&&avaction.clearMediaPermissionPop()}).catch(function(a){mediafailureoffer(a,n)}),!1;avaction.callObj.getMediaApi.call(navigator,avaction.constraints[avaction.TYPE],function(a){n==UPSTREAM?avaction.initializeConnection(a,n):n==DOWNSTREAM&&(e.offer?avaction.callObj.offer=CommonUtil.parseToJSON(e.offer):avaction.callObj.offer=CommonUtil.parseToJSON(e.session),avaction.initializeConnection(a,n)),window.$Temp&&avaction.clearMediaPermissionPop()},function(a){mediafailureoffer(a,n)})}},avaction.initializeConnection=function(a,t){if(avaction.callObj.chid){var e={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}};if(avaction.callObj.pc=new RTCPeerConnection(avaction.callObj.iceServerlist),avaction.callObj.localStream=localStream=a,avaction.getUserMedia()?avaction.callObj.pc.addStream(a):avaction.callObj.localStream.getTracks().forEach(function(a){avaction.callObj.pc.addTrack(a,avaction.callObj.localStream)}.bind(this)),LSDebugger.postDebugInfo("Audio Call - Added local Stream | Stream "+a+" | PeerConnection "+avaction.callObj.pc+" type "+t,null,null,!0),t==DOWNSTREAM&&avaction.callObj.pc.setRemoteDescription(new RTCSessionDescription(avaction.callObj.offer)),LSDebugger.postDebugInfo("Audio Call - Added candidate in Queue | avaction.callObj.newcandidate "+avaction.callObj.newcandidate+" | PeerConnection "+avaction.callObj.pc+" | connectionstate "+avaction.callObj.connection_estb,null,null,!0),avaction.callObj.pc.onicecandidate=function(a){avaction.callObj.addcandidate(a)},avaction.callObj.pc.onaddstream=avaction.callObj.pc.ontrack=function(a){avaction.callObj.remoteStream&&avaction.callObj.remoteStream.active||avaction.callObj.addremotestream(a)},LSDebugger.postDebugInfo("Audio Call - Added onicecandidate and onaddstream | Stream "+a+" | PeerConnection "+avaction.callObj.pc+" type "+t,null,null,!0),"function"==typeof avaction.callObj.addAudioElemts&&avaction.callObj.addAudioElemts(),t==UPSTREAM?avaction.getUserMedia()?avaction.callObj.pc.createOffer().then(avaction.callObj.successOffer,avaction.sendLog,e):avaction.callObj.pc.createOffer(e).then(avaction.callObj.successOffer).catch(avaction.sendLog):("Firefox"===avaction.hostbrowser&&(e=e.mandatory),avaction.getUserMedia()?avaction.callObj.pc.createAnswer(avaction.callObj.successAnswer,avaction.sendLog,e):avaction.callObj.pc.createAnswer(e).then(avaction.callObj.successAnswer).catch(avaction.sendLog),avaction.callObj.connection_estb=!0),avaction.callObj.newcandidate)for(var n in avaction.callObj.newcandidate)avaction.addIceCandidate(avaction.callObj.newcandidate[n]);avaction.callObj.pc.oniceconnectionstatechange=function(a){var e=avaction.callObj.pc.iceConnectionState;if(LSDebugger.postDebugInfo("Audio Call - State change event | event "+e+" | PeerConnection "+avaction.callObj.pc,null,null,!0),e==AV_CONNECTED)avaction.callObj.connectionStatus=!0,avaction.callObj.webrtcStatus=1,avaction.callObj.callConnected(a),avaction.callObj.sendStats(null,"call connected"),(0==avaction.callObj.reconcount||avaction.callObj.isreconnectstate)&&avaction.callObj.sendConnectionStatus("callconnected");else if(e==AV_FAILED){if(avaction.callObj.connectionStatus=!1,t==UPSTREAM){var n=t;avaction.checkConnectionAndCall(avaction.callObj.callReconnect,avaction.checkConnectionActivity,n),avaction.callObj.sendStats(null,"webrtc failed upstream")}else avaction.callObj.callReconnect(t),avaction.callObj.sendStats(null,"webrtc failed downstream");avaction.callObj.connection_estb=!1,(0==avaction.callObj.reconcount||avimpl.isreconnectstate)&&avaction.callObj.sendConnectionStatus("callfailed")}else"disconnected"==e&&(avaction.callObj.reconnecttime=(Date.now()-avimpl.getStartTime())/1e3,avaction.checkConnectionAndCall(avaction.callObj.callDisconnected,avaction.callObj.callDisconnected))}}},avaction.addIceCandidate=function(a){var e;LSDebugger.postDebugInfo("Audio Call - Inside Add Ice Candidate | data "+a+" | PeerConnection "+avaction.callObj.pc,null,null,!0),e=a.candidates?JSON.parse(a.candidates):JSON.parse(a.msg.candidate);var n=new RTCIceCandidate({sdpMid:e.id,sdpMLineIndex:e.label,candidate:e.candidate});avaction.callObj.pc.addIceCandidate(n)},avaction.checkMediaPermission=function(){if(avaction.callObj.getMediaApi=avaction.getUserMedia(),window.$Temp&&(avaction.mediaTimer=setTimeout(function(){$(window.parent.document).find("body").append($Temp.getMediaSetting(avimpl.getCurrentBrowerName())),clearTimeout(avaction.mediaTimer)},1500)),!avaction.callObj.getMediaApi)return navigator.mediaDevices.getUserMedia(avaction.constraints[avaction.TYPE]).then(function(a){mediafailureoffer(null),avaction.callObj.mediaStream=a}).catch(function(a){mediafailureoffer(a)}),!1;avaction.callObj.getMediaApi.call(navigator,avaction.constraints[avaction.TYPE],function(a){mediafailureoffer(null),avaction.callObj.mediaStream=a},function(a){mediafailureoffer(a)})},avaction.sendLog=function(){LSDebugger.postDebugInfo("Audio Call - Inside Filure offer | PeerConnection "+avaction.callObj.pc,null,null,!0)},avaction.getBrowserFromUserAgent=function(a){var e=a.toLowerCase(),n="unknown-unknown";if(-1',r.mic.forEach(function(a){var e="";t===a.deviceId&&(e='class="sqico-tick"'),n+="
    '+a.label+"
    "}),n+=""}if(r.speaker.length){t="default";n+='"}n+="",$(window.parent.document).find("body").append(n),$("#audio_setting",parent.document).on("click","[mdevice-switch]",function(){$("#audio_setting",parent.document).find("[mdevice-switch]").removeClass("sel-bor");var a=$(this).addClass("sel-bor").attr("mdevice-switch");$("#audio_setting",parent.document).find("[mdevice-cnt]").hide(),$("#audio_setting",parent.document).find('[mdevice-cnt="'+a+'"]').show()}),$("#audio_setting",parent.document).on("click","[deviceid]",function(){var a=$(this).parent().attr("mdevice-cnt");if($("#audio_setting",parent.document).find('[mdevice-cnt="'+a+'"]').children().removeClass("sqico-tick"),$(this).addClass("sqico-tick"),"mic"!=a){var e=$(this).attr("deviceid"),n=document.getElementById("remoteaudio");void 0!==n.sinkId&&n.setSinkId(e).then(function(){})}});var e=parent.document.getElementById("siqiframe").getBoundingClientRect(),i=document.getElementById("call_stngicon").getBoundingClientRect(),c=parent.document.getElementById("audio_setting").style,o=e.left+i.left,l=e.top+i.top;c.left=CallImpl.CALLFAQ?o-260+"px":o-284+"px",c.top=CallImpl.CALLFAQ?l+15+"px":l-31+"px",$(document).click(function(a){$(a.target).closest("#audio_setting",parent.document).length||$(a.target).closest("#call_stngicon",parent.document).length||$("#audio_setting",parent.document).is(":visible")&&$("#audio_setting",parent.document).hide()})})},avaction.checkConnectionAndCall=function(a,e,n){$("body").append(''),$("#ntwcheckimg").on("load",function(){"function"==typeof a&&avaction.successCallBack(a,n),$("#ntwcheckimg").remove()}),$("#ntwcheckimg").on("error",function(){"function"==typeof e&&avaction.errorCallBack(a,e,n),$("#ntwcheckimg").remove()}),$("#ntwcheckimg").attr("src","https://img.zohostatic.in/salesiq/Feb_15_2020_https/images/spacer.gif?nocache="+(new Date).getTime())},avaction.checkConnectionActivity=function(a,e,n){avaction.reconnectinterval||(avaction.reconnectinterval=setInterval(function(){avaction.checkConnectionAndCall(a,"",n)},5e3))},avaction.successCallBack=function(a,e){avaction.connectionStatus=!0,avaction.reconnectinterval&&(clearInterval(avaction.reconnectinterval),avaction.reconnectinterval=null),a(e)},avaction.errorCallBack=function(a,e,n){avaction.connectionStatus=!1,e!=avaction.checkConnectionActivity?e():e(a,e,n)},avaction.transferInitiateReq=function(a,e){if(!AgentDB.getRepresentative()[CurrentUser.getLSUID()].callstatus||"DEPARTMENT"!=a.type){var n=a.chid,t=e?a.creator:a.sender,i=a.visitorid,c=a.mediaid;a.transferReqTimeout=setTimeout(function(){PortalUI.rejectTransChat(n,t,i,c)},3e4),avaction.addCallTransferObj(a,e),avaction.showcallTransferInvitation(a,e),Sound.playTune("vchat-transfer",6)}},avaction.showcallTransferInvitation=function(a,e){if(1===$("body").find(".call_wh").length&&$(".call_wh").find(".call_pickup").length<2?($("#additionalcallcount").remove(),$(".call_wh").append(Template.getTransferReqUI(a,e))):0===$("body").find(".call_wh").length&&$("body").append('
    '+Template.getTransferReqUI(a,e)+"
    "),2==$(".call_wh").find(".call_pickup").length){var n=avaction.getCallTransferOBJ(),t=Object.keys(n).length-2;$("#additionalcallcount").remove(),0+'+t+"more Calls")}},avaction.checkAndUpdateCallTransferInvitation=function(){for(var a=avaction.getCallTransferOBJ(),e=Object.keys(a),n=0;n'+$Temp.getLoadingHTML()+"")):$("#faqdiv").html($Temp.getLoadingHTML());o=a?"&canned_category_id="+a:"";_appsenabled?o+="&app_id="+$Support.EmbedObj.livelsid:o+="&department_id="+e,$Support.getParent().$ZSIQUtil.ajax(l()+"/visitor/v2/"+_SCREENNAME+"/cannedmessages?limit="+d+o,function(e){var a=JSON.parse(e).data;t(a)},function(){},!0)}else t(s)},i=function(e){var a=$Support.LSDB.getFromSession(S());if(a){var t=[];if(_appsenabled)t=a;else for(var i=0;i
    '+LSResource.getRealValue("faq.article.viewall")+'
    '+o+'
    '}}var d=$("#faqdiv"),n=!d.find("#article-wrap").length;d.html('
    '+s+"
    "),n&&d.hide().fadeIn(),$Support.Util.handleAccordian(function(e){var a=d.attr("department_id"),t=e.parent().attr("category_id");c(a,t,function(e){_appsenabled?$Support.LSDB.storeInSession("faq_"+t,e):$Support.LSDB.storeInSession("faq_"+a+"_"+t,e),v(a,"",e,t),15/gi," ");l=getEncodedText(l);var p=c.visitors_liked?''+c.visitors_liked+"":"",v=c.visitors_viewed?""+c.visitors_viewed+" "+LSResource.getRealValue("faq.views"):LSResource.getRealValue("faq.noviews");o+='
    '+getEncodedText(l)+'

    '+v+p+"

    ",d.push(c.id),r++}}s&&$("#"+i).html(o),r&&!s&&$("#faqdiv").html(o),r||$("#faqdiv").html(f(a))},u=function(e){$("#"+e).addClass("view_article"),$(".artcle-viewal").attr("categoryid",e)},f=function(e){var a=(e=getEncodedText(e)||"")?LSResource.getRealValue("faq.noarticles"):LSResource.getRealValue("faq.empty.articles"),t=-1==$Support.EmbedObj.chatID?LSResource.getRealValue("ne.chatnow"):LSResource.getRealValue("ne.gotochat");return'

    '+e+"

    "+a+($Support.EmbedObj.status?'
    '+t+"
    ":"")+"
    "},m=function(e){return!e&&(!!$Support.EmbedObj.faqaccess.length&&"1"==$Support.EmbedObj.faqaccess[1].orderbycategory)},S=function(e){return e?"faq_"+e:"faq_count_"+$Support.EmbedObj.mappeddept},o=function(e,a){for(var t="",i=0;i
    '+o+'

    '+r+"

    ")}}var d=$("#faqdiv");if(t){var n=!d.find(".faqlst").length;d.html(t),n&&d.hide().fadeIn()}else d.html(f(a))},d=function(e){$(".faq-srch").remove();var a=e.title||"";$Support.isNewHeader()?!e.hasarrow||$("#showsiqconv").show():a=e.hasarrow?''+a:a;var t=e.desc||"",i=e.classname||"";$("#attname").html(a);var s=e.hasarrow?"":" fulwdth";$("#attabtme").html(t).after('
    '),("2"===$Support.container.attr("themeid")?$("#cmpylogo"):$("header")).removeClass("category").addClass(i),$Support.Util.removeHeaderType(),$Support.Util.reSetHeaderClass(),$("#complogo").parent().removeClass("hide_fontico")},g=function(e,a){var t=$Support.LSDB.getFromSession("article_"+e.id[0]),i={2:"visitors_viewed",3:"visitors_liked",4:"visitors_disliked"},s=e.type[0];t[i[s]]=parseInt(t[i[s]])+1,$Support.LSDB.storeInSession("article_"+e.id[0],t),a.find("em[viewid="+e.id+"]").text(t[i[s]])};return{showFAQUI:function(e){if(!$Support.Util.isPreview()){var i=$("#faqdiv");i.length||($("footer").before('
    Q
    A
    Q
    A
    '),i=$("#faqdiv")),e.addClass("sel").prev(".sel").removeClass("sel"),i.parents(".siqembed").children("section").hide();var s=$Support.EmbedObj.mappeddept,r=!0;t(function(e){if(e[0]&&!e[0].hasOwnProperty("department_id")&&(_appsenabled=!0),_appsenabled)0<(a=$Support.LSDB.getFromSession(S())).length?$FAQ._showCategory(a):i.html(f());else if(o(e),s&&"-1"!==s){for(var a=$Support.LSDB.getFromSession(S()),t=0;t{CHATNOW}':"")+'',r=-1==$Support.EmbedObj.chatID?LSResource.getRealValue("ne.chatnow"):LSResource.getRealValue("ne.gotochat"),o=""===c?(t=(a=e).visitors_liked||"",i=a.visitors_disliked||"",'
    '+($Support.isMobileWidth()?"":LSResource.getRealValue("faq.ishelpful"))+''+t+''+i+"
    "):"";s=s.replace(/{HEADER}/g,getEncodedText(e.message)).replace(/{ARTICLEID}/g,n).replace(/{VOTE}/g,o).replace(/{CHATNOW}/g,r).replace(/{CONTENT}/g,e.article_info.content),$(window.parent.document).find("body").append(s)}else $(window.parent.document).find("body").append('

    '+LSResource.getRealValue("faq.empty.desc")+'

    ')},e=$Support.LSDB.getFromSession("article_"+t)||{},a=e.article_info,e&&a&&a.content?i(e):$Support.getParent().$ZSIQUtil.ajax(l()+"/visitor/v2/"+_SCREENNAME+"/cannedmessages/"+t,function(e){var a=JSON.parse(e).data;$Support.LSDB.storeInSession("article_"+t,a),i(a)},function(){},!0)},updateVote:function(e,a){a=$(a);var t=JSON.stringify({type:a.attr("data-vote")}),i=a.parents("#zsiqfaqpreview");p(t,i.attr("articleid"),function(e){g(e,a),a.parent().html(LSResource.getRealValue("faq.feedback"))},a.attr("data-vote"))},getHeaderMessage:function(e){var a=JSON.parse(CommonUtil.decodeHTML(e));return"object"==typeof a?a.header:""},searchFAQ:function(s,e){clearTimeout(_searchtimer);var a=$Support.Util.getKeyCode(e);if(!(-1<["37","38","39","40","13","9","16"].indexOf(a))){var r=$.trim(s.val()).toLowerCase();!r||r.length<3?function(e){var a=$("#faqdiv").attr("department_id");if(a||_appsenabled){if(""===e&&m())return i(a);v(a,e)}else t(function(e){o(e)})}(r):_searchtimer=setTimeout(function(){var e,t,a,i;e=r,t=function(e){r===s.val().toLowerCase()&&v("",r,e)},a=$("#faqdiv").attr("department_id"),i=l()+"/"+_SCREENNAME+"/searchcanned.ls?query="+e+"&entities=2&mode=listview",i+=a?"&department_id="+a:"",i+="&app_id="+$Support.EmbedObj.livelsid,$Support.getParent().$ZSIQUtil.ajax(i,function(e){var a=JSON.parse(e);a&&0==a[0].res_count&&(a=[]),t(a)},"",!0)},500)}},updateMessageCount:function(e){if("newmsg"===e||"newchat"===e||"triggerchat"===e){var a=$Support.getUnreadCount();a&&($("#conv-tab").addClass("count").find(".siqc_eletype").show().html(a)[0].className="siqc_eletype")}},showAllArticlesInCategory:function(e){e.parent().find(".view_article").removeAttr("style").removeClass("view_article");var a=$("#faqdiv").attr("department_id"),t=e.attr("categoryid");c(a,t,function(e){v(a,"",e,t)},!0)},_noResultsHTML:f}}();$BotImpl=function(){var i,n={},o=ZSIQTranscript,p=function(){a(),""==$("#msgdiv").html()&&S()},a=function(){n={},clearInterval($BotImpl.timer),o.removeTyping()},m=function(e,t){if(o.removeTyping(),(!e.meta||!e.meta.disablesound)&&c(),r(e)?$Widget.showBotReply(e):(e.isbotmessage=b(e),e.time=MyDate.getHoursandMin(e.time,!0,"bclient"),e.html=o.getTranscript(e),o.updateTranscript(e)),t)return a(),e.meta&&(e.meta[$Widget.input_card]||"pending"==e.meta.action)||S(),$BotImpl.resetDisableComposerTimer(),void(e.meta&&"pending"==e.meta.action&&u("pending",18e4));o.showTyping(e)},r=function(e){return!!e.meta&&(e.meta[$Widget.display_card]||e.meta[$Widget.input_card]||e.meta.suggestions)},s=function(e){var t=e.meta;if(clearInterval($BotImpl.timer),n=e,!t)return e.msg&&!e.msg.msglist?void ZSIQTranscript.updateTranscript({html:ZSIQTranscript.getTranscript(e)}):void d(e);t.image&&(e.bot_image=e.meta.image),l(e),e.msglist?g(e,1):m(e,!0)},l=function(e){if(!e.isdisablecache){var t=e.msglist;if(t)for(var a=0;a",n=$Widget.getLayout();n=(n=n.replace(/{BOT_WIDGET}/g,i)).replace(/{CLASSNAME}/g,"botbtn"),$Widget.attachHTML(n),t.hint="calendar"===t.type?LSResource.getRealValue("widget.calendar.hint"):LSResource.getRealValue("widget.rangecalendar.hint"),$("#bot_calender").on("click",function(){zDatepicker.init(t,e)})},u=function(){var t='
    '+LSResource.getRealValue("common.skip")+'
    ',e=$("#msgdiv .msgbx").last().parent();e.find("#skipquestion").length||(e.append(t),$("#skipquestion").click(function(){$(this).remove(),g({type:"skip",msg:"-",id:n,skipped:!0}),a.skip_callback&&a.skip_callback()}),ZSIQTranscript.scroll())},p=function(t,e){s="";var i=$Widget.getMessageOBJ();if(i.isgetwidgethtml)s=t;else{var n=$.extend({},i),a=i.time||i.mtime;$.extend(n,{msg:t||i.msg,time:MyDate.getHoursandMin(a,!0,"bclient"),isbotmessage:!0,iswidget:!0}),e&&(n.is_ignoreformat=!0),n.html=ZSIQTranscript.getTranscript(n),ZSIQTranscript.updateTranscript(n)}},g=function(t){$BotImpl.enableComposer(),$("#skipquestion").remove();var e=t.msg,i=t.value||e;if(e){var n=t.id,a=("true"===$("#bot_widget"+n).attr("hasquestion")?$("#bot_widget"+n):$("#cmpnt"+n)).parents(".ziq_msg"),s=a.find(".cmpnt-desc").html();s?o.meta&&o.meta.input_card&&a.find(".msgbx").html(s):d().animate(a,!0,function(t){t.remove()}),c={type:t.type,value:i},t.data_id&&(c.id=t.data_id),$("#conversationoption").remove(),r=e,$Support.sendMessage(r,$Support.getComposer()),o.active=!1}else d().formatAndDisplay(o)},f=function(i){var t=$("#cmpnt"+i.id).parents(".ziq_msg");$("#skipquestion").remove(),$BotImpl.enableComposer();d().animate(t,!0,function(t){if(o.active=!1,i.ratinghtml){i.star&&(i.ratinghtml=i.ratinghtml.replace(/<\/div>$/,""+i.msg+"")),o.mode="botrating",o.ratinghtml=i.ratinghtml,o.msg=getEncodedText(t.find(".cmpnt-desc").text());var e=i.value;o.value=e,t.remove(),c={type:i.type,value:e},d().formatAndDisplay(o),r=i.msg,$Support.sendMessage(r,$Support.getComposer())}})};return{input_card:"input_card",display_card:"display_card",suggestions:"suggestions",showBotReply:function(t){var e=t.meta;function i(){a.callback=t.callback||e.callback||"",a.validate=t.data_validate,a.isuseredit=t.isuseredit,a.iscustomfield=t.iscustomfield,a.triggerclbk=t.triggerclbk,a.fieldname=e&&e.field_name||"",e.skippable&&(a.skippable=e.skippable,a.skip_callback=e.skip_callback||"")}n=t.time||t.mtime||(new Date).getTime(),o={sender:t.sender,msgid:t.msgid,meta:e,time:n,dname:t.dname,msg:t.msg,isbotmessage:t.isbotmessage,isgetwidgethtml:t.isgetwidgethtml},a={},e[this.input_card]&&(a=e[this.input_card],e[this.display_card]&&(a.image=e[this.display_card].image),i(),l()),e[this.display_card]&&(a=e[this.display_card],i(),l()),e.suggestions&&(a.type="suggestions",a.list=e.suggestions,t.msg&&(t.isbotmessage=$BotImpl.isBotMessage(t),t.time=MyDate.getHoursandMin(n,!0,"bclient"),e[this.display_card]&&(t.bot_image=e[this.display_card].image),t.iswidget=!0,t.html=ZSIQTranscript.getTranscript(t),ZSIQTranscript.updateTranscript(t)),i(),l())},getWidgetHTML:function(t){return $Widget.showBotReply($.extend(t,{isgetwidgethtml:!0})),s||t.msg},getLayout:function(){return function(){o.msg=o.msg?o.msg:"";var t=!!o.msg,e="4"===$Support.container.attr("themeid")?" cmpnt-transtheme":"",i=a.image&&"articles"!=a.type?'
    ':"";return'
    '+i+'
    '+o.msg+'
    {BOT_WIDGET}
    '}()},attachHTML:function(t,e){p(t,e)},removeComponent:function(){!function(){if(0
    '+((e=t)?getEncodedText(e):LSResource.getRealValue("widget.location.set"))+"
    ";var e},getMetaData:function(){return"object"==typeof c?$.extend({},c):c},clearMetaData:function(){c=""},getMetaCardData:function(){return(t={}).card_data=$.extend({},c),t;var t},getLastMessage:function(){return r}}}();Slider=function(){var s=function(t,e){this.RIGHT_ARROW=39,this.LEFT_ARROW=37,this.dotoffset=[],this.config_obj={values:t.values||["1","2","3","4"],initialheadposition:t.initialheadposition||"1",showcurrentposition:t.showcurrentposition||!0,enablearrowkeyopertion:t.enablearrowkeyopertion||!0,range:"range-slider"===t.type,callback:t.callback||function(){}},this.msgid=e};return s.prototype.renderSlider=function(){this.renderComponentHtml(),this.setDivOBJ(),this._sliderwidth=$("#range-wrap").outerWidth();for(var t=this.config_obj.values,e="",i=0;i';this.$rangepoint.html(e),this.$rangeelem=this.$rangepoint.children();for(var s=0;s
    '+this.config_obj.values[0]+'
    '+this.config_obj.values[t-1]+'
    '+(this.config_obj.range?'':"")+'
    ',i=$Widget.getLayout();i=(i=i.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"botslider"),$Widget.attachHTML(i)},s.prototype.setDivOBJ=function(){var t=$("#cmpnt"+this.msgid);this.$displayelem=t.find("#range-display"),this.$rangepoint=t.find("#range-point-wrap"),this.$sliderrighthead=t.find("#sliderrighthead"),this.$sliderlefthead=t.find("#sliderlefthead"),this.$rangeval=t.find("#slider-val")},s.prototype.handleEvents=function(){var i=this,t=$("#cmpnt"+this.msgid);function e(t){var e=this;$(document).bind("mouseup touchend",function(t){$(document).off("mouseup touchend mousemove touchmove"),i.handleHeaderMovement(t)}),$(document).on("mousemove touchmove",function(t){i.handleHeaderMovement(t,e)})}this.ismousedown=!1,this.$sliderrighthead.bind("mousedown touchstart",e),this.config_obj.range&&this.$sliderlefthead.bind("mousedown touchstart",e),t.find("#range-body").click(function(t){i.handleNearestClick(t)}),this.$rangeelem.click(function(t){i.handleDotClicked(t)}),t.find("#range-selected").click(function(){i.handleCallBack()}),this.config_obj.enablearrowkeyopertion&&(this.$sliderrighthead.keyup(function(t){i.handleKeyOperation(t,this)}),this.config_obj.range&&this.$sliderlefthead.keyup(function(t){i.handleKeyOperation(t,this)}))},s.prototype.handleHeaderMovement=function(t,e){if(t.stopPropagation(),"mousemove"==t.type||"touchmove"==t.type){var i=("touchmove"==t.type?t.originalEvent.touches[0].pageX:t.pageX)-this.negwidth,s=$(e);this.updateSliderPosition(i,s)}else{var o=this.$sliderrighthead;if(this.handlePointMove(o[0].offsetLeft,o),this.config_obj.range){var n=this.$sliderlefthead;this.handlePointMove(n[0].offsetLeft,n)}}},s.prototype.handlePointMove=function(t,e){this.updateSliderPosition(this.getNearestPointPosition(t),e)},s.prototype.handleNearestClick=function(t){var e=t.target.id||"";if("sliderrighthead"!==e&&"sliderlefthead"!==e){var i=this.getNearestPointPosition(t.pageX-this.negwidth);this.moveNearestHeader(i)}},s.prototype.handleDotClicked=function(t){var e=t.target.getAttribute("dot");null!=this.dotoffset[e]&&this.moveNearestHeader(this.dotoffset[e])},s.prototype.moveNearestHeader=function(t){var e=this.$sliderrighthead,i=e[0].offsetLeft;if(this.config_obj.range){var s=this.$sliderlefthead[0].offsetLeft;e=sthis._sliderwidth?this._sliderwidth:t<0?0:t,$(".range-value").empty(),e.css("left",t),this.$rangeval.css("width",t);var i=this.$sliderrighthead[0].offsetLeft;if(this.config_obj.range){var s=this.$sliderlefthead[0].offsetLeft;s=this.dotoffset[i]&&this.$rangeelem[i].classList.add("sel");this.$rangeval.css("left",t+"px").css("width",e-t+"px")},s.prototype.handleDisplayValue=function(){var t=this.$sliderrighthead[0].offsetLeft;this.showPointValues(t);var e=this.getTextForPoint(this.getNearestPointPosition(t));if(this.config_obj.range){var i=this.$sliderlefthead[0].offsetLeft;this.showPointValues(i),e=this.getTextForPoint(this.getNearestPointPosition(i))+" - "+e}this.$displayelem.text(e)},s.prototype.showPointValues=function(t){var e=this.dotoffset.indexOf(t);0'+getEncodedText(n.text)+"";else t+='
    '+getEncodedText(n)+"
    "}return t+='
    '+LSResource.getRealValue("common.confirm")+"
    "},bindEvent:function(){var t=this;$("#multiselect [data-value]").off("click.multiple").on("click.multiple",function(){t.handleMultiselection(this)}),$("#cnfmsel").click(function(){t.handleConfirm(this)})},handleMultiselection:function(t){(t=$(t)).hasClass("sel")?(t.find("span").removeClass("sqico-tick"),t.removeClass("sel"),this.sel_count--,0==this.sel_count&&$(".compnt-btn").removeClass("btn-enbl")):this.sel_count');var l=a.target?a.target:"_blank";t+='
    '+r+''+(getEncodedText(a.text)||e)+"
    "}}return t+=""}},{init:function(t,n){t.links?new a(t).populateButtons(n):t.callback("",n)}}}();Rating=(BotRating=function(t,e){this.type=t.type||"smiley",this.image=t.data||this.getRatingobj(t)||"",this.level=t.level||5,this.callback=t.callback||function(){},this.msgid=e},BotRating.prototype.smileyobj={3:{text:["common.neutral","common.good","common.great"],classname:["cmpnt-rtng","cmpnt-rtng good","cmpnt-rtng great"]},5:{text:["smiley.angry","smiley.sad","common.neutral","common.good","common.great"],classname:["cmpnt-rtng angry","cmpnt-rtng sad","cmpnt-rtng","cmpnt-rtng good","cmpnt-rtng great"]}},BotRating.prototype.getRatingobj=function(t){return"smiley"===t.type?this.smileyobj[t.level]:"gesture"===t.type?{text:["common.like","common.dislike"]}:void 0},BotRating.prototype.renderRating=function(){var t=this.type;"smiley"!=t?"star"!=t?"gesture"==t&&this.renderGestureHtml():this.renderStarHtml():this.renderSmileyHtml()},BotRating.prototype.renderSmileyHtml=function(){for(var t=this.image,e='
    ',i=0;i
    '+LSResource.getRealValue(t.text[i])+"
    ";e+="";var a=$Widget.getLayout();for(a=(a=a.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"botrating"),$Widget.attachHTML(a),i=0;i';var a='
    '+e+"
    ",n=$Widget.getLayout();n=(n=n.replace(/{BOT_WIDGET}/g,a)).replace(/{CLASSNAME}/g,"botrating"),$Widget.attachHTML(n)},BotRating.prototype.renderGestureHtml=function(){var t=this.image,e='
    '+LSResource.getRealValue(t.text[0])+'
    '+LSResource.getRealValue(t.text[1])+"
    ",i=$Widget.getLayout();i=(i=i.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"botrating"),$Widget.attachHTML(i)},BotRating.prototype.handleEvents=function(){var t=$("#cmpnt"+this.msgid),e=this;t.find("#rating-wrap").click(function(t){e.handleClicked(t)})},BotRating.prototype.handleClicked=function(t){"star"!=this.type?"smiley"==this.type?this.handleSmileyRating(t):this.handleGestureRating(t):t.target.hasAttribute("star-count")&&this.handleStarRating(t)},BotRating.prototype.handleSmileyRating=function(t){var e=t.target.parentElement;if(e.hasAttribute("data-type")){var i=$(e).find("[purpose=text]").text(),a=$(e).attr("index"),n=e.lastChild.remove();$(n).remove(),this.callback({type:"happiness-rating",value:a,msg:i,ratinghtml:e.outerHTML,id:this.msgid})}},BotRating.prototype.handleGestureRating=function(t){var e=t.target.parentElement;if(e.hasAttribute("data-type")){var i=$(e).find("[purpose=text]").text(),a=i==$("#like-rating").find("[purpose=text]").text(),n=e.lastChild.remove();$(n).remove(),this.callback({type:"like",value:a,msg:i,ratinghtml:e.outerHTML,id:this.msgid})}},BotRating.prototype.handleStarRating=function(t){var e=t.target,i=e.getAttribute("star-count");this.callback({type:"star-rating",value:i,msg:i,ratinghtml:e.outerHTML,id:this.msgid,star:!0})},{init:function(t,e){if(t.type&&""!=t.type){var i=new BotRating(t,e);i.renderRating(),i.handleEvents()}else t.callback("",e)},smiley_init:function(t,e){t.type="smiley",Rating.init(t,e)},star_init:function(t,e){t.type="star",Rating.init(t,e)},like_init:function(t,e){t.type="gesture",Rating.init(t,e)}});"use strict";var zDatepicker=function(){var z={months:["January","February","March","April","May","June","July","August","September","October","November","December"],pad:function(e,t){return e<10&&(e="0"+e),e},toString:function(e){var t=1
    !{label}
    !{schedule}
    ',main:'
    !{date_info}
    !{body}
    !{showTime}
    ',daysSpan:"
    !{shortDay}
    ",dropDown:'
    !{currentValue}
    !{value}
    ',weekWrapperStart:'
    ',meridiemAM:'
    !{AM}!{PM}
    ',meridiemPM:'
    !{AM}!{PM}
    ',timeTemplate:'
    !{timeBody}
    !{timezoneBody}
    ',weekWrapperEnd:"
    ",currentDay:"
    !{day}
    ",normalDay:"
    !{day}
    ",disabledDay:"
    !{day}
    ",selectedDay:"
    !{day}
    ",RangeselectedDay:"
    !{day}
    ",monthsView:'
    !{year}
    !{body}
    ',normalMonth:"!{month}",yearsView:"
    !{year_info}
    !{body}
    ",normalYear:"!{year}",timezone:'
    !{currentTimezone}
    '},i=function(e,t){this.options={format:"yyyy/mm/dd",range:e.range,view:e.view||0,onselect:e.callback,selected:"",showTime:e.time,tz:e.tz,label:e.label,from:e.from&&z.convertToDate(e.from),to:e.to&&z.convertToDate(e.to),limit:e.limit&&z.convertToDate(e.limit),select_label:e.select_label},this.msgid=t,this.type=e.type,this.options.limit=this.options.limit||[this.options.from,this.options.to]};return i.prototype={init:function(){var d,e,c=new Date,l=z.toString(c,this.options.format),s=c.getFullYear(),t=c.getHours();this.hours=z.pad(v(12"+z.pad(o)+"";return s.replace("!{value}",r)};function v(e,t){return e-e%t}var n,y=function(){return M.timezone.replace("!{currentTimezone}",this.tz_name)}.bind(this),r=function(){var e=M.main.replace("!{date_info}",z.toMonthAndYearString(c)),a="",i="",t=M.weekWrapperStart;if(z.listDates(c).forEach(function(e){var t="";0===e.getDay()&&(a+=M.weekWrapperStart),i=z.isSameMonth(c,e)?this.options.range&&e>=z.toDate(m,this.options.format)&&e<=z.toDate(p,this.options.format)?M.RangeselectedDay:l&&z.isSameDay(z.toDate(l,this.options.format),e)?M.selectedDay:this.options.limit&&(this.options.limit[0]&&!z.compareDay(e,this.options.limit[0],"ge")||this.options.limit[1]&&!z.compareDay(e,this.options.limit[1],"le"))?M.disabledDay:M.normalDay:M.disabledDay,a+=i.replace("!{day}",e.getDate()).replace("!{data}",z.toString(e,this.options.format)),6===e.getDay()&&(a+=M.weekWrapperEnd),this.options.range&&z.isSameDay(e,z.toDate(m,this.options.format))&&(t="Start"),this.options.range&&z.isSameDay(e,z.toDate(p,this.options.format))&&(t="End"),a=a.replace("!{extra}",t)}.bind(this)),["Su","Mo","Tu","We","Th","Fr","Sa"].forEach(function(e){t+=M.daysSpan.replace("!{shortDay}",e)}),t+=M.weekWrapperEnd,e=e.replace("!{body}",t+a),this.options.showTime){var n=M.timeTemplate,s=u(this.hours,1,12,1,"hours"),r=u(this.minutes,0,55,5,"minutes"),o=("PM"==this.meridiem?M.meridiemPM:M.meridiemAM).replace("!{AM}",LSResource.getRealValue("time.AM")).replace("!{PM}",LSResource.getRealValue("time.PM"));n=n.replace("!{timeBody}",s+r+o),e=(e=e.replace("!{showTime}",n)).replace("!{timezoneBody}",this.options.tz?y():"")}else e=e.replace("!{showTime}","");(h(e),this.options.showTime)&&d.querySelectorAll(".calndr-drp").forEach(function(e){e.onclick=function(e){var t=d.querySelector(".show");t&&t!=this.nextSibling&&t.classList.remove("show"),this.nextElementSibling.classList.toggle("show"),e.stopImmediatePropagation()}});this.isDateWithinRange(l)||$('[data="'+l+'"]').addClass("disabledday")}.bind(this),o=function(){var e=M.monthsView.replace("!{year}",c.getFullYear()),t="";z.months.forEach(function(e){t+=M.normalMonth.replace("!{month}",e).replace("!{month}",e)}),h(e.replace("!{body}",t))},g=function(){for(var e=s,t=M.yearsView.replace("!{year_info}",e-7+"-"+(e+7)),a="",i=[],n=e-7;n<=e+7;n++)i.push(n);i.forEach(function(e){a+=M.normalYear.replace("!{year}",e).replace("!{year}",e)}),h(t.replace("!{body}",a))},f={date:function(e){if(this.options.range)if(m)if(m&&!p){if(p=e,z.toDate(m,this.options.format)>z.toDate(p,this.options.format)){var t=m;m=p,p=t}this.options.selected=[m,p],this.updateHeader()}else m&&p&&(m=e,p="");else m=e;l=e,this.options.range||(this.options.selected=e,this.updateHeader()),r()}.bind(this),"prev-month":function(){c=z.moveMonth(c,-1),r()},"next-month":function(){c=z.moveMonth(c,1),r()},disabledday:function(e){var t=z.toDate(e,this.options.format);this.isDateWithinRange(t)&&(c=t,r(),f.date(e))}.bind(this),"mo-yr-info":o,month:function(e){var t=z.months.indexOf(e);c=new Date(c.setMonth(t)),r()},"yr-info":g,year:function(e){c=new Date(c.setFullYear(parseInt(e))),o()},"prev-year":function(){s-=15,g()},"next-year":function(){s+=15,g()},hours:function(e){this.hours=e,r()}.bind(this),minutes:function(e){this.minutes=e,r()}.bind(this),schedule:function(){this.options.range&&!p||!this.isDateWithinRange()||(this.options.onselect({type:this.type,msg:this.getReadableSelection(),id:this.msgid,value:this.getValues()}),e.parentNode.removeChild(e),removeEventListener("click",a))}.bind(this),close:function(){e.parentNode.removeChild(e),removeEventListener("click",a)},meridiem:function(e){this.meridiem=e,r()}.bind(this),showtzlist:function(){d.querySelector("#datepicker_timezone").insertAdjacentHTML("beforeend",TimeZone.getTimeZoneHTML(!1)),d.querySelector("#tz-list input").addEventListener("input",function(e){TimeZone.handleSearch(e,this,!1)}),b()},timezone:function(e,t){this.timezone=e,this.tz_name=t.innerHTML,d.querySelector("#tz-list").remove(),b(!0),r()}.bind(this)},D=this,w=function(e,t,a){var i=d.querySelector(".calndr-settime");if(!i)return!0;var n=i.querySelector("#tz-list"),s=i.querySelector(".show");if(t=t?t.value:"",n){if("timezone"===t)return f.timezone(a,e),D.updateHeader(),!1;if(e===n||"showtzlist"===t||n.contains(e))return!1;n.remove(),b(!0)}else s&&e!==s&&s.classList.remove("show");return!0},b=function(e){var t=window.parent.document.querySelector("#siqdateback");e?t.classList.remove("siqshowbckico"):t.classList.toggle("siqshowbckico")};n=M.overlay.replace("!{label}",getEncodedText(this.options.label)||LSResource.getRealValue("common.scheduleameeting")).replace("!{schedule}",getEncodedText(this.options.select_label)||LSResource.getRealValue("common.schedule")),window.parent.document.body.insertAdjacentHTML("beforeend",n),e=window.parent.document.querySelector("#datepicker_body"),d=window.parent.document.querySelector("#zsiqdatepicker"),r(),this.options.selected=l,this.updateHeader(),a=e.addEventListener("click",function(e){var t,a,i;e.stopPropagation(),a=(t=e).target.attributes&&t.target.attributes["data-target"],i=t.target.attributes.data&&t.target.attributes.data.value,w(t.target,a,i)&&a&&(f[a.value](i),D.updateHeader())})},updateHeader:function(){var e=window.parent.document.querySelector("#selectedDateInfo");e&&(e.innerHTML=this.getReadableSelection())},getReadableSelection:function(){var e=this.options.tz?" "+this.timezone:"",t=this.options.showTime?" "+this.hours+":"+this.minutes+" "+this.meridiem:"";if("object"==typeof this.options.selected){var a=this.getRangeString();return a.from+" to "+a.to+t+e}var i=z.toDate(this.options.selected,this.options.format);return z.toString(i,"readable")+t+e},getRangeString:function(){var e=z.toDate(this.options.selected[0],this.options.format),t=z.toDate(this.options.selected[1],this.options.format);return{from:z.toString(e,"readable"),to:z.toString(t,"readable")}},getValues:function(){var e=this.options.tz?{tz:this.timezone}:{},t=this.options.showTime?" "+this.hours+":"+this.minutes+" "+this.meridiem:"";if(this.options.range){var a=this.getRangeString();return e.from_time=a.from+t,e.to_time=a.to+t,e}return e.time=z.toString(z.toDate(this.options.selected,this.options.format),"readable")+t,e},handleTimeFormat:function(){var e=this.getReadableSelection();if(!this.options.showTime)return e;var t=(-1==e.indexOf("GMT")?e:e.substring(e.indexOf(" GMT"),0)).split(/\s(.+)/)[1],a=t.split(":"),i=a[0],n=a[1].split(" ");if(-1==t.indexOf("AM")&&12!=i)i=parseInt(a[0])+12;return e.replace(t,i+":"+n[0]+":00")},getTimestamp:function(){if(this.options.range){var e=new Date(this.options.selected[0]),t=new Date(this.options.selected[1]);return this.options.tz&&(e=z.toTimezone(e,this.timezone.replace("GMT","")),t=z.toTimezone(t,this.timezone.replace("GMT",""))),e.getTime()+"-"+t.getTime()}var a=this.options.selected+(this.options.showTime?" "+this.hours+":"+this.minutes+" "+this.meridiem:"");return a=new Date(a),this.options.tz&&(a=z.toTimezone(a,this.timezone.replace("GMT",""))),a.getTime()},isDateWithinRange:function(e){if(this.options.from||this.options.to){var t=this.options.from?new Date(this.options.from):"",a=this.options.to?new Date(this.options.to):"",i="",n="";if(e||(e=this.options.selected),this.options.range){if(!e||"string"==typeof e)return!0;if(!e[0])return!1;i=new Date(e[0]),n=new Date(e[1])}else n=i=new Date(e);if(t&&z.compareDay(i,t,"l"))return!1;if(a&&z.compareDay(n,a,"g"))return!1}return!0}},{init:function(e,t){var a=new i(e,t);return a.init(),a}}}();var Suggestions=function(){var i=function(t,s){this.dataval=t.list,this.callback=t.callback,this.componentid=s,this.type=t.type,this.userconfig=t};return i.prototype={populateButtons:function(){var t=this.getButtonHtml(),s=$("#msgdiv").children().last();$("#conversationoption").remove(),0===$(".zsiq_transferdiv").length?s.append(t):s.prev().append(t),ZSIQTranscript.scroll(),this.bindEvent()},getButtonHtml:function(){var t="";if("suggestions"!==this.type)return'
    Skip';for(var s=0;s'+getEncodedText(i.text)+""}else{var n=getEncodedText(this.dataval[s]);t+=''+n+""}}return'
    '+t+"
    "},bindEvent:function(){var t=this;$("span[prop=suggestions]").off("click.suggest").on("click.suggest",function(){t.chooseField(this)})},chooseField:function(t){t=$(t),this.callback({msg:t.attr("val"),id:this.componentid,element:t,config:this.userconfig,data_value:t.attr("data-value"),config:this.userconfig,data_id:t.attr("sug_id"),type:t.attr("prop")})}},{init:function(t,s){($BotImpl.enableComposer(),t.list)?new i(t,s).populateButtons():t.callback("",s)}}}();var Singleselect=function(){var a=function(t,e){this.dataval=t.options,this.callback=t.callback,this.componentid=e,this.userconfig=t};return a.prototype={populateButtons:function(){var t=$Widget.getLayout();t=(t=t.replace(/{BOT_WIDGET}/g,this.getButtonHtml())).replace(/{CLASSNAME}/g,"botsselect"),$Widget.attachHTML(t),this.bindEvent()},getButtonHtml:function(){for(var t='
    ',e=0;e'+getEncodedText(a.text)+"
    ";else t+='
    '+getEncodedText(this.dataval[e])+"
    "}return t+="
    "},bindEvent:function(){var t=this;$("#singleselect [data-value]").off("click.select").on("click.select",function(){t.handleSingleselection(this)})},handleSingleselection:function(t){(t=$(t)).parent().find("[data-value]").removeClass("sel"),t.addClass("sel"),this.callback({msg:t.text(),id:this.componentid,type:"select",element:t,config:this.userconfig,data_value:t.attr("data-value")})}},{init:function(t,e){t.options?new a(t,e).populateButtons():t.callback("",e)}}}();var BotArticle=function(){var i=function(t,e){this.data=t,this.data.id=e};return i.prototype={renderArticle:function(){var t=$Widget.getLayout();t=(t=t.replace(/{BOT_WIDGET}/g,ZSIQTranscript.getCustomArticleCard(this.data))).replace(/{CLASSNAME}/g,""),$Widget.attachHTML(t),$("#cmpnt"+this.data.id).parents(".msgbx").addClass("artcle-vw")},setEvents:function(){var e=this;this.data.articles&&this.data.articles.length&&$("#rel-articles-"+this.data.id).click(function(t){e.handleClicked(t)})},handleClicked:function(t){var e=t.target;$(e).attr("article-id")&&$FAQ.showFAQPreview($(e))}},{init:function(t,e){var a=new i(t,e);a.renderArticle(),a.setEvents()},handleClicked:function(t){var e=t.target,a=$(e).attr("article-id");a&&Educate.faqPreview(a,$(e),void 0,void 0,function(){$("#faqpreview_footer").remove()},!0)}}}();var BotTimeSlot=function(){var d=["January","February","March","April","May","June","July","August","September","October","November","December"],m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=function(t,e){this.data=t,this.label=getEncodedText(t.label)||LSResource.getRealValue("widget.timeslot.shedulemeeting"),this.time=e||Date.now(),this.minutes=0,this.shedule={time:"",time_str:"",date:"",date_str:"",tz:"",gmt:""}},a=function(t,e){if(Array.isArray(e))for(var i=0;i",e=$Widget.getLayout();e=(e=e.replace(/{BOT_WIDGET}/g,t)).replace(/{CLASSNAME}/g,"botbtn"),$Widget.attachHTML(e),$("#bot_timeslot").on("click",function(t){$(".cmpnt-wrap").removeClass("botbtn"),$("#bot_timeslot").replaceWith(this.getTimeSlotHTML()),this.renderTimeSlot(this.data)}.bind(this))},getTimeSlotHTML:function(){return'
    '+this.getNextPrevHTML()+"
    "},getNextPrevHTML:function(){return'
    '+LSResource.getRealValue("common.prev")+'
    '+LSResource.getRealValue("common.next")+"
    "},renderTimeSlot:function(t){this.elem=$("#timeslot-"+this.time);var e="timeslots"==this.data.type?"time":"date";this.setDateTimeSlots(e),this.elem.find("#timeslot-move").attr("slot",e),this.setTitleAndZone();var i=this;this.elem.find("#timeslot-move [move]").on("click",function(t){i.handleMoveClick(this,t)})},setTitleAndZone:function(){var t="timeslots"==this.data.type?"widget.timeslot.selecttime":"widget.timeslot.selectday",e='
    '+this.label+'
    '+LSResource.getRealValue(t)+"
    ";this.elem.find("#title-zone").html(e);var i=this;this.elem.find("#title-zone .sqico-larrow").hide().on("click",function(t){i.handleBackArrow()}),this.elem.find("#tz_drpdown").on("click",function(t){"date"!=i.elem.find("#timeslot-move").attr("slot")&&"timeslots"!=i.data.type||i.elem.has("#tz-list").length||i.showTimeZoneList(t)}),this.setTimeZone(),ZSIQTranscript.scroll()},showTimeZoneList:function(t){if(this.data.tz){var e=TimeZone.getTimeZoneHTML(!0);this.elem.find("#timeslot-select").after(e);var i=this;this.elem.find("#tz-list").on("click",function(t){i.handleTimeZoneClick(t)}),this.elem.find("#tz-list input").on("input",function(t){TimeZone.handleSearch(t,this,!0)}),s(i,t)}},setDateTimeSlots:function(t){var e=this,i="";this.data.slots&&(i="date"==t?this.getDateSlots():this.getTimeSlots()),this.elem.find("#timeslot-select").html(i),this.elem.find("#timeslot-select ["+t+"]").on("click",function(t){e.handleDateTimeClick(this,t)}),ZSIQTranscript.scroll()},handleTimeZoneClick:function(t){var e=t.target;e.hasAttribute("data")&&(this.elem.find("#tz-list").remove(),this.shedule.gmt=$(e).attr("data"),this.shedule.tz=$(e).html(),this.setTimeZone())},setTimeZone:function(){var t=this.data.tz?this.shedule.tz:"timeslots"==this.data.type?this.shedule.date_str:"";this.elem.find("#tz_drpdown").html(t)},handleDateTimeClick:function(t,e){if("date"==this.elem.find("#timeslot-move").attr("slot")){var i=$(t).attr("date");if(i){this.shedule.date=i,this.shedule.date_str=$(t).text(),this.minutes=0,this.elem.find("#timeslot-move").attr("slot","time"),this.setDateTimeSlots("time");var s=this.elem.find("#title-zone");s.find(".sqico-larrow").show(),s.find("#tz_drpdown").html(this.shedule.date_str),s.find("[slot-title]").html(LSResource.getRealValue("widget.timeslot.selecttime"))}}else{var l=$(e.target).attr("time");l&&(this.shedule.time=l,this.shedule.time_str=$(e.target).text(),this.setSelectedResult(),this.elem.find("#timeslot-select").hide(),this.elem.find("#timeslot-move").hide().attr("slot","confirm"))}},setSelectedResult:function(){var s=this.shedule.date_str+" at "+this.shedule.time_str,t='
    '+this.label+'
    '+s+'
    '+this.shedule.tz+'
    '+LSResource.getRealValue("common.confirm")+"
    ";this.elem.find("#title-zone").html(t);var l=this;this.elem.find("#title-zone .sqico-larrow").on("click",function(t){l.handleBackArrow()}),s+=" "+this.shedule.tz,this.elem.find("#confirm").on("click",function(t){var e={id:l.time,msg:s,type:l.data.type},i="timeslots"==l.data.type?l.shedule.time:l.shedule.date+" "+l.shedule.time;e.value={tz:l.shedule.gmt,slot:i},l.data.callback(e)})},enableBackArrow:function(){this.elem.find("#title-zone .sqico-larrow").show()},handleBackArrow:function(){var t=this.elem.find("#timeslot-move").attr("slot");"time"==t?(this.elem.find("#title-zone .sqico-larrow").hide(),this.elem.find("#timeslot-move").attr("slot","date"),this.setDateTimeSlots("date"),this.elem.find("#title-zone [slot-title]").html(LSResource.getRealValue("widget.timeslot.selectday")),this.setTimeZone()):"confirm"==t&&(this.elem.find("#timeslot-move").show().attr("slot","time"),this.elem.find("#timeslot-select").show(),this.setTitleAndZone(),"timeslots"!=this.data.type&&(this.elem.find("#title-zone .sqico-larrow").show(),this.elem.find("#tz_drpdown").html(this.shedule.date_str)),this.setDateTimeSlots("time"))},handleMoveClick:function(t){var e=$(t).attr("move"),i=this.elem.find("#timeslot-move").attr("slot");if("date"==i){if("prev"==e){var s=this.index-this.limit;this.index=s<0?0:s}else if("next"==e){s=this.index+this.limit;this.index=s>=this.datelist.length?this.index:s}this.setDateTimeSlots("date")}else if("time"==i){if("prev"==e){s=this.minutes-6;this.minutes=s<0?0:s}else if("next"==e){s=this.minutes+6;this.minutes=s>=a(this.shedule.date,this.data.slots).length?this.minutes:s}this.setDateTimeSlots("time")}},getDateSlots:function(){var t,e="",i=this.elem.find("#timeslot-move");3'+m[t.getDay()]+' '+o+""}return e},getTimeSlots:function(){var t="",e=a(this.shedule.date,this.data.slots),i=this.elem.find("#timeslot-move");if(!e)return"";function s(t){if(!t)return"";var e=t.split(":"),i=e[0]%=24;i=(i=12==i?12:i%12)<10?"0"+i:i;var s=11'+i+":"+e[1]+" "+s+""}6'+s(e[l++])+s(e[l])+"":"";return t}};var s=function(t,e){$Clickoutside&&$Clickoutside.bindclick(function(){t.elem.find("#tz-list").remove()},"tz-list","tz_drpdown",!0,e)};return{init:function(t,e){new i(t,e).init()}}}();var ZMaps=function(){var r,n,o,i,l,s,c,d,u,g,v,p=function(){return $Support.getZMapKeys()},a=function(){v=$Widget.isPreview()?window:window.parent},f=function(){var e=$Widget.getLocationWidgetHtml(r.label),t=$Widget.getLayout();t=(t=t.replace(/{BOT_WIDGET}/g,e)).replace(/{CLASSNAME}/g,"bot-locatn"),$Widget.attachHTML(t),(d=document.querySelector("#bot_location")).addEventListener("click",m)},m=function(){T(r.lat,r.lng)},y=function(e,t){var a=v.document;a.body.insertAdjacentHTML("beforeend",_("overlay")),o=a.querySelector("#glocation_body");var n=a.querySelector("#widget_holder"),i=a.createElement("div");i.style.height="700px",n.insertAdjacentElement("beforeend",i),_event=o.addEventListener("click",function(e){e.stopPropagation(),x(e)});var l=j(M,500);(c=a.querySelector("#searchplace")).addEventListener("input",function(e){var t=e.target.value.length;c.parentElement.querySelector("[data-target = 'suggclose']").style.display=t?"block":"none",1'+e.display_name+"")});var a=document.createElement("span");a.className="siqico-location",a.style["font-size"]="25px";var n={anchor:"center",draggable:!r||!r.radius,element:a,offset:[-0,-12]};l=new g.Marker(n).setLngLat({lat:e,lng:t}).addTo(i),q(e,t,function(e){s=new g.Popup({offset:1}).setHTML('
    '+e.display_name+"
    "),l.setPopup(s)})},b=function(e,t,a){return p().zmapstaticurl+"v2/staticimage?lat="+e+"&lon="+t+"&zoom=12&height=250&width=300&marker=true"},q=function(e,t,a){var n=JSON.stringify({lat:e,lon:t});$.ajax({url:p().zmapstaticurl+"v1/query/rgeocode",type:"GET",data:{params:n,api_key:p().zmapapikey},success:function(e){a(e)}})},M=function(t){if(c.value.length<2)S();else{var e=v.document.querySelector("#autocomplete");e.style.display="block",e.innerHTML='';var a=l.getLngLat(),n={q:t,limit:4,autocomplete:"true",priorityLat:a.lat,priorityLon:a.lng};n=JSON.stringify(n),$.ajax({url:p().zmapstaticurl+"v1/pelias/query/geocode",type:"GET",data:{params:n,api_key:p().zmapapikey},success:function(e){c.value===t&&k(e)}})}},S=function(){var e=v.document.querySelector("#autocomplete");e.innerHTML="",e.style.display="none"},z=function(e){var t,a=v.document.querySelector("#map_sugg"),n={38:function(){t?(t.previousElementSibling?t.previousElementSibling.classList.add("sel"):a.children[a.children.length-1].classList.add("sel"),t.classList.remove("sel")):a.children[a.children.length-1].classList.add("sel")},40:function(){t?(t.nextElementSibling?t.nextElementSibling.classList.add("sel"):a.children[0].classList.add("sel"),t.classList.remove("sel")):a.children[0].classList.add("sel")},13:function(){if(t){var e={};e.target=t,A(e),S()}}};a&&(t=a.querySelector(".sel"),"function"==typeof n[e]&&n[e]())},k=function(e){var t=v.document.querySelector("#autocomplete");t.style.display="block";var a="";if(e.length){for(var n=0;n
    Suggestions
    '+a+"
    "}else t.innerHTML='
    '+LSResource.getRealValue("widget.location.notfound")+"
    "},_=function(e,t){return{overlay:function(){return'
    '+(r.callback?'
    '+(getEncodedText(r.select_label)||LSResource.getRealValue("widget.location.send"))+"
    ":"")+"
    "},suggestion:function(e){var t=e.display_name.split(","),a=E(e);return'
    '+t[0]+'
    '+t[1]+"
    "+(a?'
    '+LSResource.getRealValue("bot.location.outofrange")+"
    ":"")+"
    "}}[e](t)},E=function(e){return R(e.lat,e.lon)>r.radius},T=function(e,t){if(d&&d.removeEventListener("click",m),u)g&&w(e,t);else{var a="";v.document.head.insertAdjacentHTML("beforeend",a),(u=document.createElement("script")).src=p().zmapapiurl,v.document.head.appendChild(u),u.onload=function(){g=p().mapboxgl,w(e,t)}}},w=function(e,t){e&&t?y(e,t):navigator.geolocation.getCurrentPosition(function(e){y(e.coords.latitude,e.coords.longitude)},function(){y(37.686091,-121.893752)})},x=function(e){var t={close:function(){d&&d.addEventListener("click",m),o.remove(),l=null,removeEventListener("click",_event)},sendLocation:function(){var t;t=l.getLngLat(),q(t.lat,t.lng,function(e){e.error?r.callback({type:"location",value:{lat:t.lat,lng:t.lng,image:b(t.lat,t.lng)},msg:t.lat+","+t.lng,id:n}):r.callback({type:"location",value:{street:e.address.road||e.address.village||"",city:e.address.state_district||"",state:e.address.state||"",lat:e.lat,lng:e.lon,image:b(e.lat,e.lon)},msg:e.display_name,id:n})}),l=null,o.remove(),removeEventListener("click",_event)},suggestion:function(){A(e),S(),c.value="",c.parentElement.querySelector("[data-target = 'suggclose']").style.display="none"},suggclose:function(){S(),c.value="",e.target.style.display="none"}},a=e.target.getAttribute("data-target");"function"==typeof t[a]&&t[a](),e.target!=c&&l&&S()},A=function(e){var t=e.target.getAttribute("lng"),a=e.target.getAttribute("lat");if(r.radius&&R(a,t)>r.radius)return;h(a,t),i.flyTo({center:[t,a],zoom:12})},H=function(e,t){i.addSource("radius_source",{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[t,e]}}]}}),i.addLayer({type:"circle",id:"radius",source:"radius_source",layout:{visibility:"visible"},paint:{"circle-radius":{stops:[[0,0],[20,C(r.radius,e)]],base:2},"circle-color":"rgba(0, 102, 204, 0.2)","circle-opacity":1}}),i.flyTo({center:[t,e],zoom:12}),i.on("click","radius",function(e){h(e.lngLat.lat,e.lngLat.lng)})},R=function(e,t){var a=r.lat,n=r.lng,i=P(a),l=P(e),o=P(e-a),s=P(t-n),c=Math.sin(o/2)*Math.sin(o/2)+Math.cos(i)*Math.cos(l)*Math.sin(s/2)*Math.sin(s/2);return 6371e3*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)))},C=function(e,t){return e/.075/Math.cos(t*Math.PI/180)},P=function(e){return e*Math.PI/180},j=function(n,i,l){var o;return function(){var e=this,t=arguments,a=l&&!o;clearTimeout(o),o=setTimeout(function(){o=null,l||n.apply(e,t)},i),a&&n.apply(e,t)}};return{init:function(e,t){r=e,n=t,a(),f()},getStaticImage:function(e,t){return b(e,t)},loadMap:function(e,t){T(e,t)},reverseGeoCoding:function(e,t,a){q(e,t,a)},openMapsFromImage:function(e){var t,a,n;a=(t=e).target.getAttribute("lat"),n=t.target.getAttribute("lng"),r={},T(a,n)}}}();var TimeZone=function(){function T(n,i){var e,a='
    !{list}
    ',f="";return[{name:"GMT-12:00 (Etc/GMT+12)",gmt:"GMT-12:0",offset:720},{name:"GMT-11:00 (Etc/GMT+11)",gmt:"GMT-11:0",offset:660},{name:"West Samoa Time (MIT)",gmt:"GMT-11:0",offset:660},{name:"West Samoa Time (Pacific/Apia)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Midway)",gmt:"GMT-11:0",offset:660},{name:"Niue Time (Pacific/Niue)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Pago_Pago)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Samoa)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (US/Samoa)",gmt:"GMT-11:0",offset:660},{name:"Hawaii-Aleutian Daylight Time (America/Adak)",gmt:"GMT-10:0",offset:600},{name:"Hawaii-Aleutian Daylight Time (America/Atka)",gmt:"GMT-10:0",offset:600},{name:"GMT-10:00 (Etc/GMT+10)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (HST)",gmt:"GMT-10:0",offset:600},{name:"Tokelau Time (Pacific/Fakaofo)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (Pacific/Honolulu)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (Pacific/Johnston)",gmt:"GMT-10:0",offset:600},{name:"Cook Is. Time (Pacific/Rarotonga)",gmt:"GMT-10:0",offset:600},{name:"Tahiti Time (Pacific/Tahiti)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (SystemV/HST10)",gmt:"GMT-10:0",offset:600},{name:"Hawaii-Aleutian Daylight Time (US/Aleutian)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (US/Hawaii)",gmt:"GMT-10:0",offset:600},{name:"Marquesas Time (Pacific/Marquesas)",gmt:"GMT-9:30",offset:570},{name:"Alaska Daylight Time (AST)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Anchorage)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Juneau)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Nome)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Yakutat)",gmt:"GMT-9:0",offset:540},{name:"GMT-09:00 (Etc/GMT+9)",gmt:"GMT-9:0",offset:540},{name:"Gambier Time (Pacific/Gambier)",gmt:"GMT-9:0",offset:540},{name:"Alaska Standard Time (SystemV/YST9)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (SystemV/YST9YDT)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (US/Alaska)",gmt:"GMT-9:0",offset:540},{name:"Pacific Daylight Time (America/Dawson)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Ensenada)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Los_Angeles)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Tijuana)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Vancouver)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Whitehorse)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Canada/Pacific)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Canada/Yukon)",gmt:"GMT-8:0",offset:480},{name:"GMT-08:00 (Etc/GMT+8)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Mexico/BajaNorte)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (PST)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (PST8PDT)",gmt:"GMT-8:0",offset:480},{name:"Pitcairn Standard Time (Pacific/Pitcairn)",gmt:"GMT-8:0",offset:480},{name:"Pacific Standard Time (SystemV/PST8)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (SystemV/PST8PDT)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (US/Pacific)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (US/Pacific-New)",gmt:"GMT-8:0",offset:480},{name:"Mountain Daylight Time (America/Boise)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Cambridge_Bay)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Chihuahua)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Dawson_Creek)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Denver)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Edmonton)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Hermosillo)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Inuvik)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Mazatlan)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Phoenix)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Shiprock)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Yellowknife)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Canada/Mountain)",gmt:"GMT-7:0",offset:420},{name:"GMT-07:00 (Etc/GMT+7)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (MST)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (MST7MDT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Mexico/BajaSur)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Navajo)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (PNT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (SystemV/MST7)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (SystemV/MST7MDT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (US/Arizona)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (US/Mountain)",gmt:"GMT-7:0",offset:420},{name:"Central Standard Time (America/Belize)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Cancun)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Chicago)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Costa_Rica)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/El_Salvador)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Guatemala)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Knox)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Petersburg)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Vincennes)",gmt:"GMT-6:0",offset:360},{name:"Eastern Daylight Time (America/Knox_IN)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Managua)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Menominee)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Merida)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Mexico_City)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Monterrey)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/North_Dakota/Center)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/North_Dakota/New_Salem)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Rainy_River)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Rankin_Inlet)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Regina)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Swift_Current)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Tegucigalpa)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Winnipeg)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (CST)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (CST6CDT)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (Canada/Central)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (Canada/East-Saskatchewan)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (Canada/Saskatchewan)",gmt:"GMT-6:0",offset:360},{name:"Easter Is. Time (Chile/EasterIsland)",gmt:"GMT-6:0",offset:360},{name:"GMT-06:00 (Etc/GMT+6)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (Mexico/General)",gmt:"GMT-6:0",offset:360},{name:"Easter Is. Time (Pacific/Easter)",gmt:"GMT-6:0",offset:360},{name:"Galapagos Time (Pacific/Galapagos)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (SystemV/CST6)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (SystemV/CST6CDT)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (US/Central)",gmt:"GMT-6:0",offset:360},{name:"Eastern Daylight Time (US/Indiana-Starke)",gmt:"GMT-6:0",offset:360},{name:"Eastern Standard Time (America/Atikokan)",gmt:"GMT-5:0",offset:300},{name:"Colombia Time (America/Bogota)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Cayman)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Coral_Harbour)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Detroit)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Eirunepe)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Fort_Wayne)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Grand_Turk)",gmt:"GMT-5:0",offset:300},{name:"Ecuador Time (America/Guayaquil)",gmt:"GMT-5:0",offset:300},{name:"Central Daylight Time (America/Havana)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Indianapolis)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Marengo)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Vevay)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indianapolis)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Iqaluit)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Jamaica)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Louisville)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Monticello)",gmt:"GMT-5:0",offset:300},{name:"Peru Time (America/Lima)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Louisville)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Montreal)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Nassau)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/New_York)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Nipigon)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Panama)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Pangnirtung)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Port-au-Prince)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Porto_Acre)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Rio_Branco)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Thunder_Bay)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Toronto)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (Brazil/Acre)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (Canada/Eastern)",gmt:"GMT-5:0",offset:300},{name:"Central Daylight Time (Cuba)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (EST)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (EST5EDT)",gmt:"GMT-5:0",offset:300},{name:"GMT-05:00 (Etc/GMT+5)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (IET)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (Jamaica)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (SystemV/EST5)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (SystemV/EST5EDT)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/East-Indiana)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/Eastern)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/Michigan)",gmt:"GMT-5:0",offset:300},{name:"Atlantic Standard Time (America/Anguilla)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Antigua)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Aruba)",gmt:"GMT-4:0",offset:240},{name:"Paraguay Time (America/Asuncion)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Barbados)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Blanc-Sablon)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Boa_Vista)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Campo_Grande)",gmt:"GMT-4:0",offset:240},{name:"Venezuela Time (America/Caracas)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Cuiaba)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Curacao)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Dominica)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Glace_Bay)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Goose_Bay)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Grenada)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Guadeloupe)",gmt:"GMT-4:0",offset:240},{name:"Guyana Time (America/Guyana)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Halifax)",gmt:"GMT-4:0",offset:240},{name:"Bolivia Time (America/La_Paz)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Manaus)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Martinique)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Moncton)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Montserrat)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Port_of_Spain)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Porto_Velho)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Puerto_Rico)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (America/Santiago)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Santo_Domingo)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Kitts)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Lucia)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Thomas)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Vincent)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Thule)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Tortola)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Virgin)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (Antarctica/Palmer)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (Atlantic/Bermuda)",gmt:"GMT-4:0",offset:240},{name:"Falkland Is. Summer Time (Atlantic/Stanley)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (Brazil/West)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (Canada/Atlantic)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (Chile/Continental)",gmt:"GMT-4:0",offset:240},{name:"GMT-04:00 (Etc/GMT+4)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (PRT)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (SystemV/AST4)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (SystemV/AST4ADT)",gmt:"GMT-4:0",offset:240},{name:"Newfoundland Daylight Time (America/St_Johns)",gmt:"GMT-3:30",offset:210},{name:"Newfoundland Daylight Time (CNT)",gmt:"GMT-3:30",offset:210},{name:"Newfoundland Daylight Time (Canada/Newfoundland)",gmt:"GMT-3:30",offset:210},{name:"Argentine Time (AGT)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Araguaina)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Buenos_Aires)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Catamarca)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/ComodRivadavia)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Cordoba)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Jujuy)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/La_Rioja)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Mendoza)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Rio_Gallegos)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/San_Juan)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Tucuman)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Ushuaia)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Bahia)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Belem)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Buenos_Aires)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Catamarca)",gmt:"GMT-3:0",offset:180},{name:"French Guiana Time (America/Cayenne)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Cordoba)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Fortaleza)",gmt:"GMT-3:0",offset:180},{name:"Western Greenland Summer Time (America/Godthab)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Jujuy)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Maceio)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Mendoza)",gmt:"GMT-3:0",offset:180},{name:"Pierre & Miquelon Daylight Time (America/Miquelon)",gmt:"GMT-3:0",offset:180},{name:"Uruguay Time (America/Montevideo)",gmt:"GMT-3:0",offset:180},{name:"Suriname Time (America/Paramaribo)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Recife)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Rosario)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Sao_Paulo)",gmt:"GMT-3:0",offset:180},{name:"Rothera Time (Antarctica/Rothera)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (BET)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (Brazil/East)",gmt:"GMT-3:0",offset:180},{name:"GMT-03:00 (Etc/GMT+3)",gmt:"GMT-3:0",offset:180},{name:"Fernando de Noronha Time (America/Noronha)",gmt:"GMT-2:0",offset:120},{name:"South Georgia Standard Time (Atlantic/South_Georgia)",gmt:"GMT-2:0",offset:120},{name:"Fernando de Noronha Time (Brazil/DeNoronha)",gmt:"GMT-2:0",offset:120},{name:"GMT-02:00 (Etc/GMT+2)",gmt:"GMT-2:0",offset:120},{name:"Eastern Greenland Summer Time (America/Scoresbysund)",gmt:"GMT-1:0",offset:60},{name:"Azores Summer Time (Atlantic/Azores)",gmt:"GMT-1:0",offset:60},{name:"Cape Verde Time (Atlantic/Cape_Verde)",gmt:"GMT-1:0",offset:60},{name:"GMT-01:00 (Etc/GMT+1)",gmt:"GMT-1:0",offset:60},{name:"Greenwich Mean Time (Africa/Abidjan)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Accra)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Bamako)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Banjul)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Bissau)",gmt:"GMT+0:0",offset:0},{name:"Western European Time (Africa/Casablanca)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Conakry)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Dakar)",gmt:"GMT+0:0",offset:0},{name:"Western European Time (Africa/El_Aaiun)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Freetown)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Lome)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Monrovia)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Nouakchott)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Ouagadougou)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Sao_Tome)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Timbuktu)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (America/Danmarkshavn)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Canary)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Faeroe)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Madeira)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Atlantic/Reykjavik)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Atlantic/St_Helena)",gmt:"GMT+0:0",offset:0},{name:"Irish Summer Time (Eire)",gmt:"GMT+0:0",offset:0},{name:"GMT+00",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Etc/Greenwich)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/UCT)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/UTC)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/Universal)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/Zulu)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Belfast)",gmt:"GMT+0:0",offset:0},{name:"Irish Summer Time (Europe/Dublin)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Guernsey)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Isle_of_Man)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Jersey)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Europe/Lisbon)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/London)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (GB)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (GB-Eire)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (GMT)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Greenwich)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Iceland)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Portugal)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (UCT)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (UTC)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Universal)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (WET)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Zulu)",gmt:"GMT+0:0",offset:0},{name:"Central European Time (Africa/Algiers)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Bangui)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Brazzaville)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Africa/Ceuta)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Douala)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Kinshasa)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Lagos)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Libreville)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Luanda)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Malabo)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Ndjamena)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Niamey)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Porto-Novo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Africa/Tunis)",gmt:"GMT+1:0",offset:-60},{name:"Western African Summer Time (Africa/Windhoek)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Arctic/Longyearbyen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Atlantic/Jan_Mayen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (CET)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (ECT)",gmt:"GMT+1:0",offset:-60},{name:"GMT+01",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Amsterdam)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Andorra)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Belgrade)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Berlin)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Bratislava)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Brussels)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Budapest)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Copenhagen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Gibraltar)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Ljubljana)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Luxembourg)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Madrid)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Malta)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Monaco)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Oslo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Paris)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Podgorica)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Prague)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Rome)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/San_Marino)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Sarajevo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Skopje)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Stockholm)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Tirane)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vaduz)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vatican)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vienna)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Warsaw)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Zagreb)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Zurich)",gmt:"GMT+1:0",offset:-60},{name:"Middle Europe Summer Time (MET)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Poland)",gmt:"GMT+1:0",offset:-60},{name:"Eastern European Summer Time (ART)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Blantyre)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Bujumbura)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Africa/Cairo)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Gaborone)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Harare)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Johannesburg)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Kigali)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Lubumbashi)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Lusaka)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Maputo)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Maseru)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Mbabane)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Time (Africa/Tripoli)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Amman)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Beirut)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Damascus)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Gaza)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Istanbul)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Asia/Jerusalem)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Nicosia)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Asia/Tel_Aviv)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (CAT)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (EET)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Egypt)",gmt:"GMT+2:0",offset:-120},{name:"GMT+02",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Athens)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Bucharest)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Chisinau)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Helsinki)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Istanbul)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Kaliningrad)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Kiev)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Mariehamn)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Minsk)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Nicosia)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Riga)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Simferopol)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Sofia)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Tallinn)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Tiraspol)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Uzhgorod)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Vilnius)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Zaporozhye)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Israel)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Time (Libya)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Turkey)",gmt:"GMT+2:0",offset:-120},{name:"Eastern African Time (Africa/Addis_Ababa)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Asmera)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Dar_es_Salaam)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Djibouti)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Kampala)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Khartoum)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Mogadishu)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Nairobi)",gmt:"GMT+3:0",offset:-180},{name:"Syowa Time (Antarctica/Syowa)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Aden)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Daylight Time (Asia/Baghdad)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Bahrain)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Kuwait)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Qatar)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Riyadh)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (EAT)",gmt:"GMT+3:0",offset:-180},{name:"GMT+03",gmt:"GMT+3:0",offset:-180},{name:"Moscow Daylight Time (Europe/Moscow)",gmt:"GMT+3:0",offset:-180},{name:"Volgograd Summer Time (Europe/Volgograd)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Antananarivo)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Comoro)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Mayotte)",gmt:"GMT+3:0",offset:-180},{name:"Moscow Daylight Time (W-SU)",gmt:"GMT+3:0",offset:-180},{name:"( GMT 3:7 ) GMT+03",gmt:"GMT+3:7",offset:-187},{name:"( GMT 3:30 ) Iran Standard Time (Asia/Tehran)",gmt:"GMT+3:30",offset:-210},{name:"( GMT 3:30 ) Iran Standard Time (Iran)",gmt:"GMT+3:30",offset:-210},{name:"Azerbaijan Summer Time (Asia/Baku)",gmt:"GMT+4:0",offset:-240},{name:"Gulf Standard Time (Asia/Dubai)",gmt:"GMT+4:0",offset:-240},{name:"Gulf Standard Time (Asia/Muscat)",gmt:"GMT+4:0",offset:-240},{name:"Georgia Time (Asia/Tbilisi)",gmt:"GMT+4:0",offset:-240},{name:"Armenia Summer Time (Asia/Yerevan)",gmt:"GMT+4:0",offset:-240},{name:"GMT+04",gmt:"GMT+4:0",offset:-240},{name:"Samara Summer Time (Europe/Samara)",gmt:"GMT+4:0",offset:-240},{name:"Seychelles Time (Indian/Mahe)",gmt:"GMT+4:0",offset:-240},{name:"Mauritius Time (Indian/Mauritius)",gmt:"GMT+4:0",offset:-240},{name:"Reunion Time (Indian/Reunion)",gmt:"GMT+4:0",offset:-240},{name:"Armenia Summer Time (NET)",gmt:"GMT+4:0",offset:-240},{name:"( GMT 4:30 ) Afghanistan Time (Asia/Kabul)",gmt:"GMT+4:30",offset:-270},{name:"Aqtau Time (Asia/Aqtau)",gmt:"GMT+5:0",offset:-300},{name:"Aqtobe Time (Asia/Aqtobe)",gmt:"GMT+5:0",offset:-300},{name:"Turkmenistan Time (Asia/Ashgabat)",gmt:"GMT+5:0",offset:-300},{name:"Turkmenistan Time (Asia/Ashkhabad)",gmt:"GMT+5:0",offset:-300},{name:"Tajikistan Time (Asia/Dushanbe)",gmt:"GMT+5:0",offset:-300},{name:"Pakistan Time (Asia/Karachi)",gmt:"GMT+5:0",offset:-300},{name:"Oral Time (Asia/Oral)",gmt:"GMT+5:0",offset:-300},{name:"Uzbekistan Time (Asia/Samarkand)",gmt:"GMT+5:0",offset:-300},{name:"Uzbekistan Time (Asia/Tashkent)",gmt:"GMT+5:0",offset:-300},{name:"Yekaterinburg Summer Time (Asia/Yekaterinburg)",gmt:"GMT+5:0",offset:-300},{name:"GMT+05",gmt:"GMT+5:0",offset:-300},{name:"French Southern & Antarctic Lands Time (Indian/Kerguelen)",gmt:"GMT+5:0",offset:-300},{name:"Maldives Time (Indian/Maldives)",gmt:"GMT+5:0",offset:-300},{name:"Pakistan Time (PLT)",gmt:"GMT+5:0",offset:-300},{name:"India Standard Time (Asia/Calcutta)",gmt:"GMT+5:30",offset:-330},{name:"Sri Lanka Time (Asia/Colombo)",gmt:"GMT+5:30",offset:-330},{name:"India Standard Time (IST)",gmt:"GMT+5:30",offset:-330},{name:"Nepal Time (Asia/Katmandu)",gmt:"GMT+5:45",offset:-345},{name:"Mawson Time (Antarctica/Mawson)",gmt:"GMT+6:0",offset:-360},{name:"Vostok Time (Antarctica/Vostok)",gmt:"GMT+6:0",offset:-360},{name:"Alma-Ata Time (Asia/Almaty)",gmt:"GMT+6:0",offset:-360},{name:"Kirgizstan Time (Asia/Bishkek)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (Asia/Dacca)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (Asia/Dhaka)",gmt:"GMT+6:0",offset:-360},{name:"Novosibirsk Summer Time (Asia/Novosibirsk)",gmt:"GMT+6:0",offset:-360},{name:"Omsk Summer Time (Asia/Omsk)",gmt:"GMT+6:0",offset:-360},{name:"Qyzylorda Time (Asia/Qyzylorda)",gmt:"GMT+6:0",offset:-360},{name:"Bhutan Time (Asia/Thimbu)",gmt:"GMT+6:0",offset:-360},{name:"Bhutan Time (Asia/Thimphu)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (BST)",gmt:"GMT+6:0",offset:-360},{name:"GMT+06",gmt:"GMT+6:0",offset:-360},{name:"Indian Ocean Territory Time (Indian/Chagos)",gmt:"GMT+6:0",offset:-360},{name:"Myanmar Time (Asia/Rangoon)",gmt:"GMT+6:30",offset:-390},{name:"Cocos Islands Time (Indian/Cocos)",gmt:"GMT+6:30",offset:-390},{name:"Davis Time (Antarctica/Davis)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Bangkok)",gmt:"GMT+7:0",offset:-420},{name:"Hovd Summer Time (Asia/Hovd)",gmt:"GMT+7:0",offset:-420},{name:"West Indonesia Time (Asia/Jakarta)",gmt:"GMT+7:0",offset:-420},{name:"Krasnoyarsk Summer Time (Asia/Krasnoyarsk)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Phnom_Penh)",gmt:"GMT+7:0",offset:-420},{name:"West Indonesia Time (Asia/Pontianak)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Saigon)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Vientiane)",gmt:"GMT+7:0",offset:-420},{name:"GMT+07",gmt:"GMT+7:0",offset:-420},{name:"Christmas Island Time (Indian/Christmas)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (VST)",gmt:"GMT+7:0",offset:-420},{name:"Western Standard Time (Australia) (Antarctica/Casey)",gmt:"GMT+8:0",offset:-480},{name:"Brunei Time (Asia/Brunei)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Chongqing)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Harbin)",gmt:"GMT+8:0",offset:-480},{name:"Hong Kong Time (Asia/Hong_Kong)",gmt:"GMT+8:0",offset:-480},{name:"Irkutsk Summer Time (Asia/Irkutsk)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Kashgar)",gmt:"GMT+8:0",offset:-480},{name:"Malaysia Time (Asia/Kuala_Lumpur)",gmt:"GMT+8:0",offset:-480},{name:"Malaysia Time (Asia/Kuching)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Macao)",gmt:"GMT+8:0",offset:-480},{name:"Central Indonesia Time (Asia/Makassar)",gmt:"GMT+8:0",offset:-480},{name:"Philippines Time (Asia/Manila)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Shanghai)",gmt:"GMT+8:0",offset:-480},{name:"Singapore Time (Asia/Singapore)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Taipei)",gmt:"GMT+8:0",offset:-480},{name:"Central Indonesia Time (Asia/Ujung_Pandang)",gmt:"GMT+8:0",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulaanbaatar)",gmt:"GMT+8:0",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulan_Bator)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Urumqi)",gmt:"GMT+8:0",offset:-480},{name:"Western Standard Time (Australia) (Australia/Perth)",gmt:"GMT+8:0",offset:-480},{name:"Western Standard Time (Australia) (Australia/West)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (CTT)",gmt:"GMT+8:0",offset:-480},{name:"GMT+08",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (PRC)",gmt:"GMT+8:0",offset:-480},{name:"Singapore Time (Singapore)",gmt:"GMT+8:0",offset:-480},{name:"Choibalsan Summer Time (Asia/Choibalsan)",gmt:"GMT+9:0",offset:-540},{name:"East Timor Time (Asia/Dili)",gmt:"GMT+9:0",offset:-540},{name:"East Indonesia Time (Asia/Jayapura)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (Asia/Pyongyang)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (Asia/Seoul)",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (Asia/Tokyo)",gmt:"GMT+9:0",offset:-540},{name:"Yaktsk Summer Time (Asia/Yakutsk)",gmt:"GMT+9:0",offset:-540},{name:"GMT+09",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (JST)",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (Japan)",gmt:"GMT+9:0",offset:-540},{name:"Palau Time (Pacific/Palau)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (ROK)",gmt:"GMT+9:0",offset:-540},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (ACT)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/Adelaide)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Broken_Hill)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/Darwin)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/North)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/South)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Yancowinna)",gmt:"GMT+9:30",offset:-570},{name:"Eastern Standard Time (New South Wales) (AET)",gmt:"GMT+10:0",offset:-600},{name:"Dumont-d Urville Time (Antarctica/DumontDUrville)",gmt:"GMT+10:0",offset:-600},{name:"Sakhalin Summer Time (Asia/Sakhalin)",gmt:"GMT+10:0",offset:-600},{name:"Vladivostok Summer Time (Asia/Vladivostok)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/ACT)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Brisbane)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Canberra)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Currie)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Hobart)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Lindeman)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Melbourne)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/NSW)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Queensland)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Sydney)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Tasmania)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Victoria)",gmt:"GMT+10:0",offset:-600},{name:"GMT+10",gmt:"GMT+10:0",offset:-600},{name:"Chamorro Standard Time (Pacific/Guam)",gmt:"GMT+10:0",offset:-600},{name:"Papua New Guinea Time (Pacific/Port_Moresby)",gmt:"GMT+10:0",offset:-600},{name:"Chamorro Standard Time (Pacific/Saipan)",gmt:"GMT+10:0",offset:-600},{name:"Truk Time (Pacific/Truk)",gmt:"GMT+10:0",offset:-600},{name:"Yap Time (Pacific/Yap)",gmt:"GMT+10:0",offset:-600},{name:"Load Howe Standard Time (Australia/LHI)",gmt:"GMT+10:30",offset:-630},{name:"Load Howe Standard Time (Australia/Lord_Howe)",gmt:"GMT+10:30",offset:-630},{name:"Magadan Summer Time (Asia/Magadan)",gmt:"GMT+11:0",offset:-660},{name:"GMT+11",gmt:"GMT+11:0",offset:-660},{name:"Vanuatu Time (Pacific/Efate)",gmt:"GMT+11:0",offset:-660},{name:"Solomon Is. Time (Pacific/Guadalcanal)",gmt:"GMT+11:0",offset:-660},{name:"Kosrae Time (Pacific/Kosrae)",gmt:"GMT+11:0",offset:-660},{name:"New Caledonia Time (Pacific/Noumea)",gmt:"GMT+11:0",offset:-660},{name:"Ponape Time (Pacific/Ponape)",gmt:"GMT+11:0",offset:-660},{name:"Solomon Is. Time (SST)",gmt:"GMT+11:0",offset:-660},{name:"Norfolk Time (Pacific/Norfolk)",gmt:"GMT+11:30",offset:-690},{name:"New Zealand Standard Time (Antarctica/McMurdo)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (Antarctica/South_Pole)",gmt:"GMT+12:0",offset:-720},{name:"Anadyr Summer Time (Asia/Anadyr)",gmt:"GMT+12:0",offset:-720},{name:"Petropavlovsk-Kamchatski Summer Time (Asia/Kamchatka)",gmt:"GMT+12:0",offset:-720},{name:"GMT+12",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Kwajalein)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (NST)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (NZ)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (Pacific/Auckland)",gmt:"GMT+12:0",offset:-720},{name:"Fiji Time (Pacific/Fiji)",gmt:"GMT+12:0",offset:-720},{name:"Tuvalu Time (Pacific/Funafuti)",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Pacific/Kwajalein)",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Pacific/Majuro)",gmt:"GMT+12:0",offset:-720},{name:"Nauru Time (Pacific/Nauru)",gmt:"GMT+12:0",offset:-720},{name:"Gilbert Is. Time (Pacific/Tarawa)",gmt:"GMT+12:0",offset:-720},{name:"Wake Time (Pacific/Wake)",gmt:"GMT+12:0",offset:-720},{name:"Wallis & Futuna Time (Pacific/Wallis)",gmt:"GMT+12:0",offset:-720},{name:"Chatham Standard Time (NZ-CHAT)",gmt:"GMT+12:45",offset:-765},{name:"Chatham Standard Time (Pacific/Chatham)",gmt:"GMT+12:45",offset:-765},{name:"GMT+13",gmt:"GMT+13:0",offset:-780},{name:"Phoenix Is. Time (Pacific/Enderbury)",gmt:"GMT+13:0",offset:-780},{name:"Tonga Time (Pacific/Tongatapu)",gmt:"GMT+13:0",offset:-780},{name:"GMT+14",gmt:"GMT+14:0",offset:-840},{name:"Line Is. Time (Pacific/Kiritimati)",gmt:"GMT+14:0",offset:-840}].forEach(function(e){var a=n.toLowerCase(),m=e.name.toLowerCase(),t=e.gmt.toLowerCase();(!n||m.includes(a)||t.includes(a))&&(f+='
    '+(i?e.gmt:"")+" "+e.name+"
    ")}),a=f?a.replace("!{list}",f):(e=n,'
    '+LSResource.getRealValue("widget.timezone.searchnotfound",e)+"
    ")}return{getTimeZoneHTML:function(e){return a=e,'
    '+T("",a)+"
    ";var a},handleSearch:function(e,a,m){var t,n,i,f;n=m,i=(t=a).value,(f=t.parentElement).nextElementSibling&&f.nextElementSibling.remove(),f.insertAdjacentHTML("afterend",T(i,n))},getTimeZone:function(){return[{name:"GMT-12:00 (Etc/GMT+12)",gmt:"GMT-12:0",offset:720},{name:"GMT-11:00 (Etc/GMT+11)",gmt:"GMT-11:0",offset:660},{name:"West Samoa Time (MIT)",gmt:"GMT-11:0",offset:660},{name:"West Samoa Time (Pacific/Apia)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Midway)",gmt:"GMT-11:0",offset:660},{name:"Niue Time (Pacific/Niue)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Pago_Pago)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Samoa)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (US/Samoa)",gmt:"GMT-11:0",offset:660},{name:"Hawaii-Aleutian Daylight Time (America/Adak)",gmt:"GMT-10:0",offset:600},{name:"Hawaii-Aleutian Daylight Time (America/Atka)",gmt:"GMT-10:0",offset:600},{name:"GMT-10:00 (Etc/GMT+10)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (HST)",gmt:"GMT-10:0",offset:600},{name:"Tokelau Time (Pacific/Fakaofo)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (Pacific/Honolulu)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (Pacific/Johnston)",gmt:"GMT-10:0",offset:600},{name:"Cook Is. Time (Pacific/Rarotonga)",gmt:"GMT-10:0",offset:600},{name:"Tahiti Time (Pacific/Tahiti)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (SystemV/HST10)",gmt:"GMT-10:0",offset:600},{name:"Hawaii-Aleutian Daylight Time (US/Aleutian)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (US/Hawaii)",gmt:"GMT-10:0",offset:600},{name:"Marquesas Time (Pacific/Marquesas)",gmt:"GMT-9:30",offset:570},{name:"Alaska Daylight Time (AST)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Anchorage)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Juneau)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Nome)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Yakutat)",gmt:"GMT-9:0",offset:540},{name:"GMT-09:00 (Etc/GMT+9)",gmt:"GMT-9:0",offset:540},{name:"Gambier Time (Pacific/Gambier)",gmt:"GMT-9:0",offset:540},{name:"Alaska Standard Time (SystemV/YST9)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (SystemV/YST9YDT)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (US/Alaska)",gmt:"GMT-9:0",offset:540},{name:"Pacific Daylight Time (America/Dawson)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Ensenada)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Los_Angeles)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Tijuana)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Vancouver)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Whitehorse)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Canada/Pacific)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Canada/Yukon)",gmt:"GMT-8:0",offset:480},{name:"GMT-08:00 (Etc/GMT+8)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Mexico/BajaNorte)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (PST)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (PST8PDT)",gmt:"GMT-8:0",offset:480},{name:"Pitcairn Standard Time (Pacific/Pitcairn)",gmt:"GMT-8:0",offset:480},{name:"Pacific Standard Time (SystemV/PST8)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (SystemV/PST8PDT)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (US/Pacific)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (US/Pacific-New)",gmt:"GMT-8:0",offset:480},{name:"Mountain Daylight Time (America/Boise)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Cambridge_Bay)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Chihuahua)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Dawson_Creek)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Denver)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Edmonton)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Hermosillo)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Inuvik)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Mazatlan)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Phoenix)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Shiprock)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Yellowknife)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Canada/Mountain)",gmt:"GMT-7:0",offset:420},{name:"GMT-07:00 (Etc/GMT+7)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (MST)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (MST7MDT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Mexico/BajaSur)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Navajo)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (PNT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (SystemV/MST7)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (SystemV/MST7MDT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (US/Arizona)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (US/Mountain)",gmt:"GMT-7:0",offset:420},{name:"Central Standard Time (America/Belize)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Cancun)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Chicago)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Costa_Rica)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/El_Salvador)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Guatemala)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Knox)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Petersburg)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Vincennes)",gmt:"GMT-6:0",offset:360},{name:"Eastern Daylight Time (America/Knox_IN)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Managua)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Menominee)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Merida)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Mexico_City)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Monterrey)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/North_Dakota/Center)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/North_Dakota/New_Salem)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Rainy_River)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Rankin_Inlet)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Regina)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Swift_Current)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Tegucigalpa)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Winnipeg)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (CST)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (CST6CDT)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (Canada/Central)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (Canada/East-Saskatchewan)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (Canada/Saskatchewan)",gmt:"GMT-6:0",offset:360},{name:"Easter Is. Time (Chile/EasterIsland)",gmt:"GMT-6:0",offset:360},{name:"GMT-06:00 (Etc/GMT+6)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (Mexico/General)",gmt:"GMT-6:0",offset:360},{name:"Easter Is. Time (Pacific/Easter)",gmt:"GMT-6:0",offset:360},{name:"Galapagos Time (Pacific/Galapagos)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (SystemV/CST6)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (SystemV/CST6CDT)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (US/Central)",gmt:"GMT-6:0",offset:360},{name:"Eastern Daylight Time (US/Indiana-Starke)",gmt:"GMT-6:0",offset:360},{name:"Eastern Standard Time (America/Atikokan)",gmt:"GMT-5:0",offset:300},{name:"Colombia Time (America/Bogota)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Cayman)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Coral_Harbour)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Detroit)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Eirunepe)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Fort_Wayne)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Grand_Turk)",gmt:"GMT-5:0",offset:300},{name:"Ecuador Time (America/Guayaquil)",gmt:"GMT-5:0",offset:300},{name:"Central Daylight Time (America/Havana)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Indianapolis)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Marengo)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Vevay)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indianapolis)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Iqaluit)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Jamaica)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Louisville)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Monticello)",gmt:"GMT-5:0",offset:300},{name:"Peru Time (America/Lima)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Louisville)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Montreal)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Nassau)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/New_York)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Nipigon)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Panama)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Pangnirtung)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Port-au-Prince)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Porto_Acre)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Rio_Branco)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Thunder_Bay)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Toronto)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (Brazil/Acre)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (Canada/Eastern)",gmt:"GMT-5:0",offset:300},{name:"Central Daylight Time (Cuba)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (EST)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (EST5EDT)",gmt:"GMT-5:0",offset:300},{name:"GMT-05:00 (Etc/GMT+5)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (IET)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (Jamaica)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (SystemV/EST5)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (SystemV/EST5EDT)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/East-Indiana)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/Eastern)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/Michigan)",gmt:"GMT-5:0",offset:300},{name:"Atlantic Standard Time (America/Anguilla)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Antigua)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Aruba)",gmt:"GMT-4:0",offset:240},{name:"Paraguay Time (America/Asuncion)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Barbados)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Blanc-Sablon)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Boa_Vista)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Campo_Grande)",gmt:"GMT-4:0",offset:240},{name:"Venezuela Time (America/Caracas)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Cuiaba)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Curacao)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Dominica)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Glace_Bay)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Goose_Bay)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Grenada)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Guadeloupe)",gmt:"GMT-4:0",offset:240},{name:"Guyana Time (America/Guyana)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Halifax)",gmt:"GMT-4:0",offset:240},{name:"Bolivia Time (America/La_Paz)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Manaus)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Martinique)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Moncton)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Montserrat)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Port_of_Spain)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Porto_Velho)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Puerto_Rico)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (America/Santiago)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Santo_Domingo)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Kitts)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Lucia)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Thomas)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Vincent)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Thule)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Tortola)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Virgin)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (Antarctica/Palmer)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (Atlantic/Bermuda)",gmt:"GMT-4:0",offset:240},{name:"Falkland Is. Summer Time (Atlantic/Stanley)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (Brazil/West)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (Canada/Atlantic)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (Chile/Continental)",gmt:"GMT-4:0",offset:240},{name:"GMT-04:00 (Etc/GMT+4)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (PRT)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (SystemV/AST4)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (SystemV/AST4ADT)",gmt:"GMT-4:0",offset:240},{name:"Newfoundland Daylight Time (America/St_Johns)",gmt:"GMT-3:30",offset:210},{name:"Newfoundland Daylight Time (CNT)",gmt:"GMT-3:30",offset:210},{name:"Newfoundland Daylight Time (Canada/Newfoundland)",gmt:"GMT-3:30",offset:210},{name:"Argentine Time (AGT)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Araguaina)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Buenos_Aires)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Catamarca)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/ComodRivadavia)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Cordoba)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Jujuy)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/La_Rioja)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Mendoza)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Rio_Gallegos)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/San_Juan)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Tucuman)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Ushuaia)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Bahia)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Belem)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Buenos_Aires)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Catamarca)",gmt:"GMT-3:0",offset:180},{name:"French Guiana Time (America/Cayenne)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Cordoba)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Fortaleza)",gmt:"GMT-3:0",offset:180},{name:"Western Greenland Summer Time (America/Godthab)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Jujuy)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Maceio)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Mendoza)",gmt:"GMT-3:0",offset:180},{name:"Pierre & Miquelon Daylight Time (America/Miquelon)",gmt:"GMT-3:0",offset:180},{name:"Uruguay Time (America/Montevideo)",gmt:"GMT-3:0",offset:180},{name:"Suriname Time (America/Paramaribo)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Recife)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Rosario)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Sao_Paulo)",gmt:"GMT-3:0",offset:180},{name:"Rothera Time (Antarctica/Rothera)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (BET)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (Brazil/East)",gmt:"GMT-3:0",offset:180},{name:"GMT-03:00 (Etc/GMT+3)",gmt:"GMT-3:0",offset:180},{name:"Fernando de Noronha Time (America/Noronha)",gmt:"GMT-2:0",offset:120},{name:"South Georgia Standard Time (Atlantic/South_Georgia)",gmt:"GMT-2:0",offset:120},{name:"Fernando de Noronha Time (Brazil/DeNoronha)",gmt:"GMT-2:0",offset:120},{name:"GMT-02:00 (Etc/GMT+2)",gmt:"GMT-2:0",offset:120},{name:"Eastern Greenland Summer Time (America/Scoresbysund)",gmt:"GMT-1:0",offset:60},{name:"Azores Summer Time (Atlantic/Azores)",gmt:"GMT-1:0",offset:60},{name:"Cape Verde Time (Atlantic/Cape_Verde)",gmt:"GMT-1:0",offset:60},{name:"GMT-01:00 (Etc/GMT+1)",gmt:"GMT-1:0",offset:60},{name:"Greenwich Mean Time (Africa/Abidjan)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Accra)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Bamako)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Banjul)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Bissau)",gmt:"GMT+0:0",offset:0},{name:"Western European Time (Africa/Casablanca)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Conakry)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Dakar)",gmt:"GMT+0:0",offset:0},{name:"Western European Time (Africa/El_Aaiun)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Freetown)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Lome)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Monrovia)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Nouakchott)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Ouagadougou)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Sao_Tome)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Timbuktu)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (America/Danmarkshavn)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Canary)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Faeroe)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Madeira)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Atlantic/Reykjavik)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Atlantic/St_Helena)",gmt:"GMT+0:0",offset:0},{name:"Irish Summer Time (Eire)",gmt:"GMT+0:0",offset:0},{name:"GMT+00",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Etc/Greenwich)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/UCT)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/UTC)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/Universal)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/Zulu)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Belfast)",gmt:"GMT+0:0",offset:0},{name:"Irish Summer Time (Europe/Dublin)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Guernsey)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Isle_of_Man)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Jersey)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Europe/Lisbon)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/London)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (GB)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (GB-Eire)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (GMT)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Greenwich)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Iceland)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Portugal)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (UCT)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (UTC)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Universal)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (WET)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Zulu)",gmt:"GMT+0:0",offset:0},{name:"Central European Time (Africa/Algiers)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Bangui)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Brazzaville)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Africa/Ceuta)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Douala)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Kinshasa)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Lagos)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Libreville)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Luanda)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Malabo)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Ndjamena)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Niamey)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Porto-Novo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Africa/Tunis)",gmt:"GMT+1:0",offset:-60},{name:"Western African Summer Time (Africa/Windhoek)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Arctic/Longyearbyen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Atlantic/Jan_Mayen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (CET)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (ECT)",gmt:"GMT+1:0",offset:-60},{name:"GMT+01",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Amsterdam)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Andorra)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Belgrade)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Berlin)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Bratislava)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Brussels)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Budapest)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Copenhagen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Gibraltar)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Ljubljana)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Luxembourg)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Madrid)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Malta)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Monaco)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Oslo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Paris)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Podgorica)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Prague)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Rome)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/San_Marino)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Sarajevo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Skopje)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Stockholm)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Tirane)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vaduz)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vatican)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vienna)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Warsaw)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Zagreb)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Zurich)",gmt:"GMT+1:0",offset:-60},{name:"Middle Europe Summer Time (MET)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Poland)",gmt:"GMT+1:0",offset:-60},{name:"Eastern European Summer Time (ART)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Blantyre)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Bujumbura)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Africa/Cairo)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Gaborone)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Harare)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Johannesburg)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Kigali)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Lubumbashi)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Lusaka)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Maputo)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Maseru)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Mbabane)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Time (Africa/Tripoli)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Amman)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Beirut)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Damascus)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Gaza)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Istanbul)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Asia/Jerusalem)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Nicosia)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Asia/Tel_Aviv)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (CAT)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (EET)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Egypt)",gmt:"GMT+2:0",offset:-120},{name:"GMT+02",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Athens)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Bucharest)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Chisinau)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Helsinki)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Istanbul)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Kaliningrad)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Kiev)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Mariehamn)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Minsk)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Nicosia)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Riga)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Simferopol)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Sofia)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Tallinn)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Tiraspol)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Uzhgorod)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Vilnius)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Zaporozhye)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Israel)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Time (Libya)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Turkey)",gmt:"GMT+2:0",offset:-120},{name:"Eastern African Time (Africa/Addis_Ababa)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Asmera)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Dar_es_Salaam)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Djibouti)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Kampala)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Khartoum)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Mogadishu)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Nairobi)",gmt:"GMT+3:0",offset:-180},{name:"Syowa Time (Antarctica/Syowa)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Aden)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Daylight Time (Asia/Baghdad)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Bahrain)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Kuwait)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Qatar)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Riyadh)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (EAT)",gmt:"GMT+3:0",offset:-180},{name:"GMT+03",gmt:"GMT+3:0",offset:-180},{name:"Moscow Daylight Time (Europe/Moscow)",gmt:"GMT+3:0",offset:-180},{name:"Volgograd Summer Time (Europe/Volgograd)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Antananarivo)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Comoro)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Mayotte)",gmt:"GMT+3:0",offset:-180},{name:"Moscow Daylight Time (W-SU)",gmt:"GMT+3:0",offset:-180},{name:"( GMT 3:7 ) GMT+03",gmt:"GMT+3:7",offset:-187},{name:"( GMT 3:30 ) Iran Standard Time (Asia/Tehran)",gmt:"GMT+3:30",offset:-210},{name:"( GMT 3:30 ) Iran Standard Time (Iran)",gmt:"GMT+3:30",offset:-210},{name:"Azerbaijan Summer Time (Asia/Baku)",gmt:"GMT+4:0",offset:-240},{name:"Gulf Standard Time (Asia/Dubai)",gmt:"GMT+4:0",offset:-240},{name:"Gulf Standard Time (Asia/Muscat)",gmt:"GMT+4:0",offset:-240},{name:"Georgia Time (Asia/Tbilisi)",gmt:"GMT+4:0",offset:-240},{name:"Armenia Summer Time (Asia/Yerevan)",gmt:"GMT+4:0",offset:-240},{name:"GMT+04",gmt:"GMT+4:0",offset:-240},{name:"Samara Summer Time (Europe/Samara)",gmt:"GMT+4:0",offset:-240},{name:"Seychelles Time (Indian/Mahe)",gmt:"GMT+4:0",offset:-240},{name:"Mauritius Time (Indian/Mauritius)",gmt:"GMT+4:0",offset:-240},{name:"Reunion Time (Indian/Reunion)",gmt:"GMT+4:0",offset:-240},{name:"Armenia Summer Time (NET)",gmt:"GMT+4:0",offset:-240},{name:"( GMT 4:30 ) Afghanistan Time (Asia/Kabul)",gmt:"GMT+4:30",offset:-270},{name:"Aqtau Time (Asia/Aqtau)",gmt:"GMT+5:0",offset:-300},{name:"Aqtobe Time (Asia/Aqtobe)",gmt:"GMT+5:0",offset:-300},{name:"Turkmenistan Time (Asia/Ashgabat)",gmt:"GMT+5:0",offset:-300},{name:"Turkmenistan Time (Asia/Ashkhabad)",gmt:"GMT+5:0",offset:-300},{name:"Tajikistan Time (Asia/Dushanbe)",gmt:"GMT+5:0",offset:-300},{name:"Pakistan Time (Asia/Karachi)",gmt:"GMT+5:0",offset:-300},{name:"Oral Time (Asia/Oral)",gmt:"GMT+5:0",offset:-300},{name:"Uzbekistan Time (Asia/Samarkand)",gmt:"GMT+5:0",offset:-300},{name:"Uzbekistan Time (Asia/Tashkent)",gmt:"GMT+5:0",offset:-300},{name:"Yekaterinburg Summer Time (Asia/Yekaterinburg)",gmt:"GMT+5:0",offset:-300},{name:"GMT+05",gmt:"GMT+5:0",offset:-300},{name:"French Southern & Antarctic Lands Time (Indian/Kerguelen)",gmt:"GMT+5:0",offset:-300},{name:"Maldives Time (Indian/Maldives)",gmt:"GMT+5:0",offset:-300},{name:"Pakistan Time (PLT)",gmt:"GMT+5:0",offset:-300},{name:"India Standard Time (Asia/Calcutta)",gmt:"GMT+5:30",offset:-330},{name:"Sri Lanka Time (Asia/Colombo)",gmt:"GMT+5:30",offset:-330},{name:"India Standard Time (IST)",gmt:"GMT+5:30",offset:-330},{name:"Nepal Time (Asia/Katmandu)",gmt:"GMT+5:45",offset:-345},{name:"Mawson Time (Antarctica/Mawson)",gmt:"GMT+6:0",offset:-360},{name:"Vostok Time (Antarctica/Vostok)",gmt:"GMT+6:0",offset:-360},{name:"Alma-Ata Time (Asia/Almaty)",gmt:"GMT+6:0",offset:-360},{name:"Kirgizstan Time (Asia/Bishkek)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (Asia/Dacca)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (Asia/Dhaka)",gmt:"GMT+6:0",offset:-360},{name:"Novosibirsk Summer Time (Asia/Novosibirsk)",gmt:"GMT+6:0",offset:-360},{name:"Omsk Summer Time (Asia/Omsk)",gmt:"GMT+6:0",offset:-360},{name:"Qyzylorda Time (Asia/Qyzylorda)",gmt:"GMT+6:0",offset:-360},{name:"Bhutan Time (Asia/Thimbu)",gmt:"GMT+6:0",offset:-360},{name:"Bhutan Time (Asia/Thimphu)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (BST)",gmt:"GMT+6:0",offset:-360},{name:"GMT+06",gmt:"GMT+6:0",offset:-360},{name:"Indian Ocean Territory Time (Indian/Chagos)",gmt:"GMT+6:0",offset:-360},{name:"Myanmar Time (Asia/Rangoon)",gmt:"GMT+6:30",offset:-390},{name:"Cocos Islands Time (Indian/Cocos)",gmt:"GMT+6:30",offset:-390},{name:"Davis Time (Antarctica/Davis)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Bangkok)",gmt:"GMT+7:0",offset:-420},{name:"Hovd Summer Time (Asia/Hovd)",gmt:"GMT+7:0",offset:-420},{name:"West Indonesia Time (Asia/Jakarta)",gmt:"GMT+7:0",offset:-420},{name:"Krasnoyarsk Summer Time (Asia/Krasnoyarsk)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Phnom_Penh)",gmt:"GMT+7:0",offset:-420},{name:"West Indonesia Time (Asia/Pontianak)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Saigon)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Vientiane)",gmt:"GMT+7:0",offset:-420},{name:"GMT+07",gmt:"GMT+7:0",offset:-420},{name:"Christmas Island Time (Indian/Christmas)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (VST)",gmt:"GMT+7:0",offset:-420},{name:"Western Standard Time (Australia) (Antarctica/Casey)",gmt:"GMT+8:0",offset:-480},{name:"Brunei Time (Asia/Brunei)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Chongqing)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Harbin)",gmt:"GMT+8:0",offset:-480},{name:"Hong Kong Time (Asia/Hong_Kong)",gmt:"GMT+8:0",offset:-480},{name:"Irkutsk Summer Time (Asia/Irkutsk)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Kashgar)",gmt:"GMT+8:0",offset:-480},{name:"Malaysia Time (Asia/Kuala_Lumpur)",gmt:"GMT+8:0",offset:-480},{name:"Malaysia Time (Asia/Kuching)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Macao)",gmt:"GMT+8:0",offset:-480},{name:"Central Indonesia Time (Asia/Makassar)",gmt:"GMT+8:0",offset:-480},{name:"Philippines Time (Asia/Manila)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Shanghai)",gmt:"GMT+8:0",offset:-480},{name:"Singapore Time (Asia/Singapore)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Taipei)",gmt:"GMT+8:0",offset:-480},{name:"Central Indonesia Time (Asia/Ujung_Pandang)",gmt:"GMT+8:0",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulaanbaatar)",gmt:"GMT+8:0",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulan_Bator)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Urumqi)",gmt:"GMT+8:0",offset:-480},{name:"Western Standard Time (Australia) (Australia/Perth)",gmt:"GMT+8:0",offset:-480},{name:"Western Standard Time (Australia) (Australia/West)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (CTT)",gmt:"GMT+8:0",offset:-480},{name:"GMT+08",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (PRC)",gmt:"GMT+8:0",offset:-480},{name:"Singapore Time (Singapore)",gmt:"GMT+8:0",offset:-480},{name:"Choibalsan Summer Time (Asia/Choibalsan)",gmt:"GMT+9:0",offset:-540},{name:"East Timor Time (Asia/Dili)",gmt:"GMT+9:0",offset:-540},{name:"East Indonesia Time (Asia/Jayapura)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (Asia/Pyongyang)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (Asia/Seoul)",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (Asia/Tokyo)",gmt:"GMT+9:0",offset:-540},{name:"Yaktsk Summer Time (Asia/Yakutsk)",gmt:"GMT+9:0",offset:-540},{name:"GMT+09",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (JST)",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (Japan)",gmt:"GMT+9:0",offset:-540},{name:"Palau Time (Pacific/Palau)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (ROK)",gmt:"GMT+9:0",offset:-540},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (ACT)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/Adelaide)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Broken_Hill)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/Darwin)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/North)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/South)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Yancowinna)",gmt:"GMT+9:30",offset:-570},{name:"Eastern Standard Time (New South Wales) (AET)",gmt:"GMT+10:0",offset:-600},{name:"Dumont-d Urville Time (Antarctica/DumontDUrville)",gmt:"GMT+10:0",offset:-600},{name:"Sakhalin Summer Time (Asia/Sakhalin)",gmt:"GMT+10:0",offset:-600},{name:"Vladivostok Summer Time (Asia/Vladivostok)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/ACT)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Brisbane)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Canberra)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Currie)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Hobart)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Lindeman)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Melbourne)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/NSW)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Queensland)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Sydney)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Tasmania)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Victoria)",gmt:"GMT+10:0",offset:-600},{name:"GMT+10",gmt:"GMT+10:0",offset:-600},{name:"Chamorro Standard Time (Pacific/Guam)",gmt:"GMT+10:0",offset:-600},{name:"Papua New Guinea Time (Pacific/Port_Moresby)",gmt:"GMT+10:0",offset:-600},{name:"Chamorro Standard Time (Pacific/Saipan)",gmt:"GMT+10:0",offset:-600},{name:"Truk Time (Pacific/Truk)",gmt:"GMT+10:0",offset:-600},{name:"Yap Time (Pacific/Yap)",gmt:"GMT+10:0",offset:-600},{name:"Load Howe Standard Time (Australia/LHI)",gmt:"GMT+10:30",offset:-630},{name:"Load Howe Standard Time (Australia/Lord_Howe)",gmt:"GMT+10:30",offset:-630},{name:"Magadan Summer Time (Asia/Magadan)",gmt:"GMT+11:0",offset:-660},{name:"GMT+11",gmt:"GMT+11:0",offset:-660},{name:"Vanuatu Time (Pacific/Efate)",gmt:"GMT+11:0",offset:-660},{name:"Solomon Is. Time (Pacific/Guadalcanal)",gmt:"GMT+11:0",offset:-660},{name:"Kosrae Time (Pacific/Kosrae)",gmt:"GMT+11:0",offset:-660},{name:"New Caledonia Time (Pacific/Noumea)",gmt:"GMT+11:0",offset:-660},{name:"Ponape Time (Pacific/Ponape)",gmt:"GMT+11:0",offset:-660},{name:"Solomon Is. Time (SST)",gmt:"GMT+11:0",offset:-660},{name:"Norfolk Time (Pacific/Norfolk)",gmt:"GMT+11:30",offset:-690},{name:"New Zealand Standard Time (Antarctica/McMurdo)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (Antarctica/South_Pole)",gmt:"GMT+12:0",offset:-720},{name:"Anadyr Summer Time (Asia/Anadyr)",gmt:"GMT+12:0",offset:-720},{name:"Petropavlovsk-Kamchatski Summer Time (Asia/Kamchatka)",gmt:"GMT+12:0",offset:-720},{name:"GMT+12",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Kwajalein)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (NST)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (NZ)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (Pacific/Auckland)",gmt:"GMT+12:0",offset:-720},{name:"Fiji Time (Pacific/Fiji)",gmt:"GMT+12:0",offset:-720},{name:"Tuvalu Time (Pacific/Funafuti)",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Pacific/Kwajalein)",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Pacific/Majuro)",gmt:"GMT+12:0",offset:-720},{name:"Nauru Time (Pacific/Nauru)",gmt:"GMT+12:0",offset:-720},{name:"Gilbert Is. Time (Pacific/Tarawa)",gmt:"GMT+12:0",offset:-720},{name:"Wake Time (Pacific/Wake)",gmt:"GMT+12:0",offset:-720},{name:"Wallis & Futuna Time (Pacific/Wallis)",gmt:"GMT+12:0",offset:-720},{name:"Chatham Standard Time (NZ-CHAT)",gmt:"GMT+12:45",offset:-765},{name:"Chatham Standard Time (Pacific/Chatham)",gmt:"GMT+12:45",offset:-765},{name:"GMT+13",gmt:"GMT+13:0",offset:-780},{name:"Phoenix Is. Time (Pacific/Enderbury)",gmt:"GMT+13:0",offset:-780},{name:"Tonga Time (Pacific/Tongatapu)",gmt:"GMT+13:0",offset:-780},{name:"GMT+14",gmt:"GMT+14:0",offset:-840},{name:"Line Is. Time (Pacific/Kiritimati)",gmt:"GMT+14:0",offset:-840}]},getCurrentTimeZone:function(){return function(){var e=(new Date).getTimezoneOffset(),a=[{name:"GMT-12:00 (Etc/GMT+12)",gmt:"GMT-12:0",offset:720},{name:"GMT-11:00 (Etc/GMT+11)",gmt:"GMT-11:0",offset:660},{name:"West Samoa Time (MIT)",gmt:"GMT-11:0",offset:660},{name:"West Samoa Time (Pacific/Apia)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Midway)",gmt:"GMT-11:0",offset:660},{name:"Niue Time (Pacific/Niue)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Pago_Pago)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (Pacific/Samoa)",gmt:"GMT-11:0",offset:660},{name:"Samoa Standard Time (US/Samoa)",gmt:"GMT-11:0",offset:660},{name:"Hawaii-Aleutian Daylight Time (America/Adak)",gmt:"GMT-10:0",offset:600},{name:"Hawaii-Aleutian Daylight Time (America/Atka)",gmt:"GMT-10:0",offset:600},{name:"GMT-10:00 (Etc/GMT+10)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (HST)",gmt:"GMT-10:0",offset:600},{name:"Tokelau Time (Pacific/Fakaofo)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (Pacific/Honolulu)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (Pacific/Johnston)",gmt:"GMT-10:0",offset:600},{name:"Cook Is. Time (Pacific/Rarotonga)",gmt:"GMT-10:0",offset:600},{name:"Tahiti Time (Pacific/Tahiti)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (SystemV/HST10)",gmt:"GMT-10:0",offset:600},{name:"Hawaii-Aleutian Daylight Time (US/Aleutian)",gmt:"GMT-10:0",offset:600},{name:"Hawaii Standard Time (US/Hawaii)",gmt:"GMT-10:0",offset:600},{name:"Marquesas Time (Pacific/Marquesas)",gmt:"GMT-9:30",offset:570},{name:"Alaska Daylight Time (AST)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Anchorage)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Juneau)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Nome)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (America/Yakutat)",gmt:"GMT-9:0",offset:540},{name:"GMT-09:00 (Etc/GMT+9)",gmt:"GMT-9:0",offset:540},{name:"Gambier Time (Pacific/Gambier)",gmt:"GMT-9:0",offset:540},{name:"Alaska Standard Time (SystemV/YST9)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (SystemV/YST9YDT)",gmt:"GMT-9:0",offset:540},{name:"Alaska Daylight Time (US/Alaska)",gmt:"GMT-9:0",offset:540},{name:"Pacific Daylight Time (America/Dawson)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Ensenada)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Los_Angeles)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Tijuana)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Vancouver)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (America/Whitehorse)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Canada/Pacific)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Canada/Yukon)",gmt:"GMT-8:0",offset:480},{name:"GMT-08:00 (Etc/GMT+8)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (Mexico/BajaNorte)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (PST)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (PST8PDT)",gmt:"GMT-8:0",offset:480},{name:"Pitcairn Standard Time (Pacific/Pitcairn)",gmt:"GMT-8:0",offset:480},{name:"Pacific Standard Time (SystemV/PST8)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (SystemV/PST8PDT)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (US/Pacific)",gmt:"GMT-8:0",offset:480},{name:"Pacific Daylight Time (US/Pacific-New)",gmt:"GMT-8:0",offset:480},{name:"Mountain Daylight Time (America/Boise)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Cambridge_Bay)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Chihuahua)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Dawson_Creek)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Denver)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Edmonton)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Hermosillo)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Inuvik)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Mazatlan)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (America/Phoenix)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Shiprock)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (America/Yellowknife)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Canada/Mountain)",gmt:"GMT-7:0",offset:420},{name:"GMT-07:00 (Etc/GMT+7)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (MST)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (MST7MDT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Mexico/BajaSur)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (Navajo)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (PNT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (SystemV/MST7)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (SystemV/MST7MDT)",gmt:"GMT-7:0",offset:420},{name:"Mountain Standard Time (US/Arizona)",gmt:"GMT-7:0",offset:420},{name:"Mountain Daylight Time (US/Mountain)",gmt:"GMT-7:0",offset:420},{name:"Central Standard Time (America/Belize)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Cancun)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Chicago)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Costa_Rica)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/El_Salvador)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Guatemala)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Knox)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Petersburg)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Indiana/Vincennes)",gmt:"GMT-6:0",offset:360},{name:"Eastern Daylight Time (America/Knox_IN)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Managua)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Menominee)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Merida)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Mexico_City)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Monterrey)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/North_Dakota/Center)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/North_Dakota/New_Salem)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Rainy_River)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Rankin_Inlet)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Regina)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Swift_Current)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (America/Tegucigalpa)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (America/Winnipeg)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (CST)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (CST6CDT)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (Canada/Central)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (Canada/East-Saskatchewan)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (Canada/Saskatchewan)",gmt:"GMT-6:0",offset:360},{name:"Easter Is. Time (Chile/EasterIsland)",gmt:"GMT-6:0",offset:360},{name:"GMT-06:00 (Etc/GMT+6)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (Mexico/General)",gmt:"GMT-6:0",offset:360},{name:"Easter Is. Time (Pacific/Easter)",gmt:"GMT-6:0",offset:360},{name:"Galapagos Time (Pacific/Galapagos)",gmt:"GMT-6:0",offset:360},{name:"Central Standard Time (SystemV/CST6)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (SystemV/CST6CDT)",gmt:"GMT-6:0",offset:360},{name:"Central Daylight Time (US/Central)",gmt:"GMT-6:0",offset:360},{name:"Eastern Daylight Time (US/Indiana-Starke)",gmt:"GMT-6:0",offset:360},{name:"Eastern Standard Time (America/Atikokan)",gmt:"GMT-5:0",offset:300},{name:"Colombia Time (America/Bogota)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Cayman)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Coral_Harbour)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Detroit)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Eirunepe)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Fort_Wayne)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Grand_Turk)",gmt:"GMT-5:0",offset:300},{name:"Ecuador Time (America/Guayaquil)",gmt:"GMT-5:0",offset:300},{name:"Central Daylight Time (America/Havana)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Indianapolis)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Marengo)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indiana/Vevay)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Indianapolis)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Iqaluit)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Jamaica)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Louisville)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Kentucky/Monticello)",gmt:"GMT-5:0",offset:300},{name:"Peru Time (America/Lima)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Louisville)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Montreal)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Nassau)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/New_York)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Nipigon)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (America/Panama)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Pangnirtung)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Port-au-Prince)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Porto_Acre)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (America/Rio_Branco)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Thunder_Bay)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (America/Toronto)",gmt:"GMT-5:0",offset:300},{name:"Acre Time (Brazil/Acre)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (Canada/Eastern)",gmt:"GMT-5:0",offset:300},{name:"Central Daylight Time (Cuba)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (EST)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (EST5EDT)",gmt:"GMT-5:0",offset:300},{name:"GMT-05:00 (Etc/GMT+5)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (IET)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (Jamaica)",gmt:"GMT-5:0",offset:300},{name:"Eastern Standard Time (SystemV/EST5)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (SystemV/EST5EDT)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/East-Indiana)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/Eastern)",gmt:"GMT-5:0",offset:300},{name:"Eastern Daylight Time (US/Michigan)",gmt:"GMT-5:0",offset:300},{name:"Atlantic Standard Time (America/Anguilla)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Antigua)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Aruba)",gmt:"GMT-4:0",offset:240},{name:"Paraguay Time (America/Asuncion)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Barbados)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Blanc-Sablon)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Boa_Vista)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Campo_Grande)",gmt:"GMT-4:0",offset:240},{name:"Venezuela Time (America/Caracas)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Cuiaba)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Curacao)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Dominica)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Glace_Bay)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Goose_Bay)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Grenada)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Guadeloupe)",gmt:"GMT-4:0",offset:240},{name:"Guyana Time (America/Guyana)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Halifax)",gmt:"GMT-4:0",offset:240},{name:"Bolivia Time (America/La_Paz)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Manaus)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Martinique)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Moncton)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Montserrat)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Port_of_Spain)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (America/Porto_Velho)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Puerto_Rico)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (America/Santiago)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Santo_Domingo)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Kitts)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Lucia)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Thomas)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/St_Vincent)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (America/Thule)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Tortola)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (America/Virgin)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (Antarctica/Palmer)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (Atlantic/Bermuda)",gmt:"GMT-4:0",offset:240},{name:"Falkland Is. Summer Time (Atlantic/Stanley)",gmt:"GMT-4:0",offset:240},{name:"Amazon Time (Brazil/West)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (Canada/Atlantic)",gmt:"GMT-4:0",offset:240},{name:"Chile Time (Chile/Continental)",gmt:"GMT-4:0",offset:240},{name:"GMT-04:00 (Etc/GMT+4)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (PRT)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Standard Time (SystemV/AST4)",gmt:"GMT-4:0",offset:240},{name:"Atlantic Daylight Time (SystemV/AST4ADT)",gmt:"GMT-4:0",offset:240},{name:"Newfoundland Daylight Time (America/St_Johns)",gmt:"GMT-3:30",offset:210},{name:"Newfoundland Daylight Time (CNT)",gmt:"GMT-3:30",offset:210},{name:"Newfoundland Daylight Time (Canada/Newfoundland)",gmt:"GMT-3:30",offset:210},{name:"Argentine Time (AGT)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Araguaina)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Buenos_Aires)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Catamarca)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/ComodRivadavia)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Cordoba)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Jujuy)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/La_Rioja)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Mendoza)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Rio_Gallegos)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/San_Juan)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Tucuman)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Argentina/Ushuaia)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Bahia)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Belem)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Buenos_Aires)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Catamarca)",gmt:"GMT-3:0",offset:180},{name:"French Guiana Time (America/Cayenne)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Cordoba)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Fortaleza)",gmt:"GMT-3:0",offset:180},{name:"Western Greenland Summer Time (America/Godthab)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Jujuy)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Maceio)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Mendoza)",gmt:"GMT-3:0",offset:180},{name:"Pierre & Miquelon Daylight Time (America/Miquelon)",gmt:"GMT-3:0",offset:180},{name:"Uruguay Time (America/Montevideo)",gmt:"GMT-3:0",offset:180},{name:"Suriname Time (America/Paramaribo)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Recife)",gmt:"GMT-3:0",offset:180},{name:"Argentine Time (America/Rosario)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (America/Sao_Paulo)",gmt:"GMT-3:0",offset:180},{name:"Rothera Time (Antarctica/Rothera)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (BET)",gmt:"GMT-3:0",offset:180},{name:"Brasilia Time (Brazil/East)",gmt:"GMT-3:0",offset:180},{name:"GMT-03:00 (Etc/GMT+3)",gmt:"GMT-3:0",offset:180},{name:"Fernando de Noronha Time (America/Noronha)",gmt:"GMT-2:0",offset:120},{name:"South Georgia Standard Time (Atlantic/South_Georgia)",gmt:"GMT-2:0",offset:120},{name:"Fernando de Noronha Time (Brazil/DeNoronha)",gmt:"GMT-2:0",offset:120},{name:"GMT-02:00 (Etc/GMT+2)",gmt:"GMT-2:0",offset:120},{name:"Eastern Greenland Summer Time (America/Scoresbysund)",gmt:"GMT-1:0",offset:60},{name:"Azores Summer Time (Atlantic/Azores)",gmt:"GMT-1:0",offset:60},{name:"Cape Verde Time (Atlantic/Cape_Verde)",gmt:"GMT-1:0",offset:60},{name:"GMT-01:00 (Etc/GMT+1)",gmt:"GMT-1:0",offset:60},{name:"Greenwich Mean Time (Africa/Abidjan)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Accra)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Bamako)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Banjul)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Bissau)",gmt:"GMT+0:0",offset:0},{name:"Western European Time (Africa/Casablanca)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Conakry)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Dakar)",gmt:"GMT+0:0",offset:0},{name:"Western European Time (Africa/El_Aaiun)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Freetown)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Lome)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Monrovia)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Nouakchott)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Ouagadougou)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Sao_Tome)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Africa/Timbuktu)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (America/Danmarkshavn)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Canary)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Faeroe)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Atlantic/Madeira)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Atlantic/Reykjavik)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Atlantic/St_Helena)",gmt:"GMT+0:0",offset:0},{name:"Irish Summer Time (Eire)",gmt:"GMT+0:0",offset:0},{name:"GMT+00",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Etc/Greenwich)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/UCT)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/UTC)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/Universal)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Etc/Zulu)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Belfast)",gmt:"GMT+0:0",offset:0},{name:"Irish Summer Time (Europe/Dublin)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Guernsey)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Isle_of_Man)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/Jersey)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Europe/Lisbon)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (Europe/London)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (GB)",gmt:"GMT+0:0",offset:0},{name:"British Summer Time (GB-Eire)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (GMT)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Greenwich)",gmt:"GMT+0:0",offset:0},{name:"Greenwich Mean Time (Iceland)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (Portugal)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (UCT)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (UTC)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Universal)",gmt:"GMT+0:0",offset:0},{name:"Western European Summer Time (WET)",gmt:"GMT+0:0",offset:0},{name:"Coordinated Universal Time (Zulu)",gmt:"GMT+0:0",offset:0},{name:"Central European Time (Africa/Algiers)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Bangui)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Brazzaville)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Africa/Ceuta)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Douala)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Kinshasa)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Lagos)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Libreville)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Luanda)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Malabo)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Ndjamena)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Niamey)",gmt:"GMT+1:0",offset:-60},{name:"Western African Time (Africa/Porto-Novo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Africa/Tunis)",gmt:"GMT+1:0",offset:-60},{name:"Western African Summer Time (Africa/Windhoek)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Arctic/Longyearbyen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Atlantic/Jan_Mayen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (CET)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (ECT)",gmt:"GMT+1:0",offset:-60},{name:"GMT+01",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Amsterdam)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Andorra)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Belgrade)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Berlin)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Bratislava)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Brussels)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Budapest)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Copenhagen)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Gibraltar)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Ljubljana)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Luxembourg)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Madrid)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Malta)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Monaco)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Oslo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Paris)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Podgorica)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Prague)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Rome)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/San_Marino)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Sarajevo)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Skopje)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Stockholm)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Tirane)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vaduz)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vatican)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Vienna)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Warsaw)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Zagreb)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Europe/Zurich)",gmt:"GMT+1:0",offset:-60},{name:"Middle Europe Summer Time (MET)",gmt:"GMT+1:0",offset:-60},{name:"Central European Summer Time (Poland)",gmt:"GMT+1:0",offset:-60},{name:"Eastern European Summer Time (ART)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Blantyre)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Bujumbura)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Africa/Cairo)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Gaborone)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Harare)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Johannesburg)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Kigali)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Lubumbashi)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Lusaka)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (Africa/Maputo)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Maseru)",gmt:"GMT+2:0",offset:-120},{name:"South Africa Standard Time (Africa/Mbabane)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Time (Africa/Tripoli)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Amman)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Beirut)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Damascus)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Gaza)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Istanbul)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Asia/Jerusalem)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Asia/Nicosia)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Asia/Tel_Aviv)",gmt:"GMT+2:0",offset:-120},{name:"Central African Time (CAT)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (EET)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Egypt)",gmt:"GMT+2:0",offset:-120},{name:"GMT+02",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Athens)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Bucharest)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Chisinau)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Helsinki)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Istanbul)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Kaliningrad)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Kiev)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Mariehamn)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Minsk)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Nicosia)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Riga)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Simferopol)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Sofia)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Tallinn)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Tiraspol)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Uzhgorod)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Vilnius)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Europe/Zaporozhye)",gmt:"GMT+2:0",offset:-120},{name:"Israel Standard Time (Israel)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Time (Libya)",gmt:"GMT+2:0",offset:-120},{name:"Eastern European Summer Time (Turkey)",gmt:"GMT+2:0",offset:-120},{name:"Eastern African Time (Africa/Addis_Ababa)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Asmera)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Dar_es_Salaam)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Djibouti)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Kampala)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Khartoum)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Mogadishu)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Africa/Nairobi)",gmt:"GMT+3:0",offset:-180},{name:"Syowa Time (Antarctica/Syowa)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Aden)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Daylight Time (Asia/Baghdad)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Bahrain)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Kuwait)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Qatar)",gmt:"GMT+3:0",offset:-180},{name:"Arabia Standard Time (Asia/Riyadh)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (EAT)",gmt:"GMT+3:0",offset:-180},{name:"GMT+03",gmt:"GMT+3:0",offset:-180},{name:"Moscow Daylight Time (Europe/Moscow)",gmt:"GMT+3:0",offset:-180},{name:"Volgograd Summer Time (Europe/Volgograd)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Antananarivo)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Comoro)",gmt:"GMT+3:0",offset:-180},{name:"Eastern African Time (Indian/Mayotte)",gmt:"GMT+3:0",offset:-180},{name:"Moscow Daylight Time (W-SU)",gmt:"GMT+3:0",offset:-180},{name:"( GMT 3:7 ) GMT+03",gmt:"GMT+3:7",offset:-187},{name:"( GMT 3:30 ) Iran Standard Time (Asia/Tehran)",gmt:"GMT+3:30",offset:-210},{name:"( GMT 3:30 ) Iran Standard Time (Iran)",gmt:"GMT+3:30",offset:-210},{name:"Azerbaijan Summer Time (Asia/Baku)",gmt:"GMT+4:0",offset:-240},{name:"Gulf Standard Time (Asia/Dubai)",gmt:"GMT+4:0",offset:-240},{name:"Gulf Standard Time (Asia/Muscat)",gmt:"GMT+4:0",offset:-240},{name:"Georgia Time (Asia/Tbilisi)",gmt:"GMT+4:0",offset:-240},{name:"Armenia Summer Time (Asia/Yerevan)",gmt:"GMT+4:0",offset:-240},{name:"GMT+04",gmt:"GMT+4:0",offset:-240},{name:"Samara Summer Time (Europe/Samara)",gmt:"GMT+4:0",offset:-240},{name:"Seychelles Time (Indian/Mahe)",gmt:"GMT+4:0",offset:-240},{name:"Mauritius Time (Indian/Mauritius)",gmt:"GMT+4:0",offset:-240},{name:"Reunion Time (Indian/Reunion)",gmt:"GMT+4:0",offset:-240},{name:"Armenia Summer Time (NET)",gmt:"GMT+4:0",offset:-240},{name:"( GMT 4:30 ) Afghanistan Time (Asia/Kabul)",gmt:"GMT+4:30",offset:-270},{name:"Aqtau Time (Asia/Aqtau)",gmt:"GMT+5:0",offset:-300},{name:"Aqtobe Time (Asia/Aqtobe)",gmt:"GMT+5:0",offset:-300},{name:"Turkmenistan Time (Asia/Ashgabat)",gmt:"GMT+5:0",offset:-300},{name:"Turkmenistan Time (Asia/Ashkhabad)",gmt:"GMT+5:0",offset:-300},{name:"Tajikistan Time (Asia/Dushanbe)",gmt:"GMT+5:0",offset:-300},{name:"Pakistan Time (Asia/Karachi)",gmt:"GMT+5:0",offset:-300},{name:"Oral Time (Asia/Oral)",gmt:"GMT+5:0",offset:-300},{name:"Uzbekistan Time (Asia/Samarkand)",gmt:"GMT+5:0",offset:-300},{name:"Uzbekistan Time (Asia/Tashkent)",gmt:"GMT+5:0",offset:-300},{name:"Yekaterinburg Summer Time (Asia/Yekaterinburg)",gmt:"GMT+5:0",offset:-300},{name:"GMT+05",gmt:"GMT+5:0",offset:-300},{name:"French Southern & Antarctic Lands Time (Indian/Kerguelen)",gmt:"GMT+5:0",offset:-300},{name:"Maldives Time (Indian/Maldives)",gmt:"GMT+5:0",offset:-300},{name:"Pakistan Time (PLT)",gmt:"GMT+5:0",offset:-300},{name:"India Standard Time (Asia/Calcutta)",gmt:"GMT+5:30",offset:-330},{name:"Sri Lanka Time (Asia/Colombo)",gmt:"GMT+5:30",offset:-330},{name:"India Standard Time (IST)",gmt:"GMT+5:30",offset:-330},{name:"Nepal Time (Asia/Katmandu)",gmt:"GMT+5:45",offset:-345},{name:"Mawson Time (Antarctica/Mawson)",gmt:"GMT+6:0",offset:-360},{name:"Vostok Time (Antarctica/Vostok)",gmt:"GMT+6:0",offset:-360},{name:"Alma-Ata Time (Asia/Almaty)",gmt:"GMT+6:0",offset:-360},{name:"Kirgizstan Time (Asia/Bishkek)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (Asia/Dacca)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (Asia/Dhaka)",gmt:"GMT+6:0",offset:-360},{name:"Novosibirsk Summer Time (Asia/Novosibirsk)",gmt:"GMT+6:0",offset:-360},{name:"Omsk Summer Time (Asia/Omsk)",gmt:"GMT+6:0",offset:-360},{name:"Qyzylorda Time (Asia/Qyzylorda)",gmt:"GMT+6:0",offset:-360},{name:"Bhutan Time (Asia/Thimbu)",gmt:"GMT+6:0",offset:-360},{name:"Bhutan Time (Asia/Thimphu)",gmt:"GMT+6:0",offset:-360},{name:"Bangladesh Time (BST)",gmt:"GMT+6:0",offset:-360},{name:"GMT+06",gmt:"GMT+6:0",offset:-360},{name:"Indian Ocean Territory Time (Indian/Chagos)",gmt:"GMT+6:0",offset:-360},{name:"Myanmar Time (Asia/Rangoon)",gmt:"GMT+6:30",offset:-390},{name:"Cocos Islands Time (Indian/Cocos)",gmt:"GMT+6:30",offset:-390},{name:"Davis Time (Antarctica/Davis)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Bangkok)",gmt:"GMT+7:0",offset:-420},{name:"Hovd Summer Time (Asia/Hovd)",gmt:"GMT+7:0",offset:-420},{name:"West Indonesia Time (Asia/Jakarta)",gmt:"GMT+7:0",offset:-420},{name:"Krasnoyarsk Summer Time (Asia/Krasnoyarsk)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Phnom_Penh)",gmt:"GMT+7:0",offset:-420},{name:"West Indonesia Time (Asia/Pontianak)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Saigon)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (Asia/Vientiane)",gmt:"GMT+7:0",offset:-420},{name:"GMT+07",gmt:"GMT+7:0",offset:-420},{name:"Christmas Island Time (Indian/Christmas)",gmt:"GMT+7:0",offset:-420},{name:"Indochina Time (VST)",gmt:"GMT+7:0",offset:-420},{name:"Western Standard Time (Australia) (Antarctica/Casey)",gmt:"GMT+8:0",offset:-480},{name:"Brunei Time (Asia/Brunei)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Chongqing)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Harbin)",gmt:"GMT+8:0",offset:-480},{name:"Hong Kong Time (Asia/Hong_Kong)",gmt:"GMT+8:0",offset:-480},{name:"Irkutsk Summer Time (Asia/Irkutsk)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Kashgar)",gmt:"GMT+8:0",offset:-480},{name:"Malaysia Time (Asia/Kuala_Lumpur)",gmt:"GMT+8:0",offset:-480},{name:"Malaysia Time (Asia/Kuching)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Macao)",gmt:"GMT+8:0",offset:-480},{name:"Central Indonesia Time (Asia/Makassar)",gmt:"GMT+8:0",offset:-480},{name:"Philippines Time (Asia/Manila)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Shanghai)",gmt:"GMT+8:0",offset:-480},{name:"Singapore Time (Asia/Singapore)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Taipei)",gmt:"GMT+8:0",offset:-480},{name:"Central Indonesia Time (Asia/Ujung_Pandang)",gmt:"GMT+8:0",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulaanbaatar)",gmt:"GMT+8:0",offset:-480},{name:"Ulaanbaatar Summer Time (Asia/Ulan_Bator)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (Asia/Urumqi)",gmt:"GMT+8:0",offset:-480},{name:"Western Standard Time (Australia) (Australia/Perth)",gmt:"GMT+8:0",offset:-480},{name:"Western Standard Time (Australia) (Australia/West)",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (CTT)",gmt:"GMT+8:0",offset:-480},{name:"GMT+08",gmt:"GMT+8:0",offset:-480},{name:"China Standard Time (PRC)",gmt:"GMT+8:0",offset:-480},{name:"Singapore Time (Singapore)",gmt:"GMT+8:0",offset:-480},{name:"Choibalsan Summer Time (Asia/Choibalsan)",gmt:"GMT+9:0",offset:-540},{name:"East Timor Time (Asia/Dili)",gmt:"GMT+9:0",offset:-540},{name:"East Indonesia Time (Asia/Jayapura)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (Asia/Pyongyang)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (Asia/Seoul)",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (Asia/Tokyo)",gmt:"GMT+9:0",offset:-540},{name:"Yaktsk Summer Time (Asia/Yakutsk)",gmt:"GMT+9:0",offset:-540},{name:"GMT+09",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (JST)",gmt:"GMT+9:0",offset:-540},{name:"Japan Standard Time (Japan)",gmt:"GMT+9:0",offset:-540},{name:"Palau Time (Pacific/Palau)",gmt:"GMT+9:0",offset:-540},{name:"Korea Standard Time (ROK)",gmt:"GMT+9:0",offset:-540},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (ACT)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/Adelaide)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Broken_Hill)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/Darwin)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (Northern Territory) (Australia/North)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia) (Australia/South)",gmt:"GMT+9:30",offset:-570},{name:"( GMT 9:30 ) Central Standard Time (South Australia/New South Wales) (Australia/Yancowinna)",gmt:"GMT+9:30",offset:-570},{name:"Eastern Standard Time (New South Wales) (AET)",gmt:"GMT+10:0",offset:-600},{name:"Dumont-d Urville Time (Antarctica/DumontDUrville)",gmt:"GMT+10:0",offset:-600},{name:"Sakhalin Summer Time (Asia/Sakhalin)",gmt:"GMT+10:0",offset:-600},{name:"Vladivostok Summer Time (Asia/Vladivostok)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/ACT)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Brisbane)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Canberra)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Currie)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Hobart)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Lindeman)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Melbourne)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/NSW)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Queensland) (Australia/Queensland)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (New South Wales) (Australia/Sydney)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Tasmania) (Australia/Tasmania)",gmt:"GMT+10:0",offset:-600},{name:"Eastern Standard Time (Victoria) (Australia/Victoria)",gmt:"GMT+10:0",offset:-600},{name:"GMT+10",gmt:"GMT+10:0",offset:-600},{name:"Chamorro Standard Time (Pacific/Guam)",gmt:"GMT+10:0",offset:-600},{name:"Papua New Guinea Time (Pacific/Port_Moresby)",gmt:"GMT+10:0",offset:-600},{name:"Chamorro Standard Time (Pacific/Saipan)",gmt:"GMT+10:0",offset:-600},{name:"Truk Time (Pacific/Truk)",gmt:"GMT+10:0",offset:-600},{name:"Yap Time (Pacific/Yap)",gmt:"GMT+10:0",offset:-600},{name:"Load Howe Standard Time (Australia/LHI)",gmt:"GMT+10:30",offset:-630},{name:"Load Howe Standard Time (Australia/Lord_Howe)",gmt:"GMT+10:30",offset:-630},{name:"Magadan Summer Time (Asia/Magadan)",gmt:"GMT+11:0",offset:-660},{name:"GMT+11",gmt:"GMT+11:0",offset:-660},{name:"Vanuatu Time (Pacific/Efate)",gmt:"GMT+11:0",offset:-660},{name:"Solomon Is. Time (Pacific/Guadalcanal)",gmt:"GMT+11:0",offset:-660},{name:"Kosrae Time (Pacific/Kosrae)",gmt:"GMT+11:0",offset:-660},{name:"New Caledonia Time (Pacific/Noumea)",gmt:"GMT+11:0",offset:-660},{name:"Ponape Time (Pacific/Ponape)",gmt:"GMT+11:0",offset:-660},{name:"Solomon Is. Time (SST)",gmt:"GMT+11:0",offset:-660},{name:"Norfolk Time (Pacific/Norfolk)",gmt:"GMT+11:30",offset:-690},{name:"New Zealand Standard Time (Antarctica/McMurdo)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (Antarctica/South_Pole)",gmt:"GMT+12:0",offset:-720},{name:"Anadyr Summer Time (Asia/Anadyr)",gmt:"GMT+12:0",offset:-720},{name:"Petropavlovsk-Kamchatski Summer Time (Asia/Kamchatka)",gmt:"GMT+12:0",offset:-720},{name:"GMT+12",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Kwajalein)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (NST)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (NZ)",gmt:"GMT+12:0",offset:-720},{name:"New Zealand Standard Time (Pacific/Auckland)",gmt:"GMT+12:0",offset:-720},{name:"Fiji Time (Pacific/Fiji)",gmt:"GMT+12:0",offset:-720},{name:"Tuvalu Time (Pacific/Funafuti)",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Pacific/Kwajalein)",gmt:"GMT+12:0",offset:-720},{name:"Marshall Islands Time (Pacific/Majuro)",gmt:"GMT+12:0",offset:-720},{name:"Nauru Time (Pacific/Nauru)",gmt:"GMT+12:0",offset:-720},{name:"Gilbert Is. Time (Pacific/Tarawa)",gmt:"GMT+12:0",offset:-720},{name:"Wake Time (Pacific/Wake)",gmt:"GMT+12:0",offset:-720},{name:"Wallis & Futuna Time (Pacific/Wallis)",gmt:"GMT+12:0",offset:-720},{name:"Chatham Standard Time (NZ-CHAT)",gmt:"GMT+12:45",offset:-765},{name:"Chatham Standard Time (Pacific/Chatham)",gmt:"GMT+12:45",offset:-765},{name:"GMT+13",gmt:"GMT+13:0",offset:-780},{name:"Phoenix Is. Time (Pacific/Enderbury)",gmt:"GMT+13:0",offset:-780},{name:"Tonga Time (Pacific/Tongatapu)",gmt:"GMT+13:0",offset:-780},{name:"GMT+14",gmt:"GMT+14:0",offset:-840},{name:"Line Is. Time (Pacific/Kiritimati)",gmt:"GMT+14:0",offset:-840}],m={};for(var t in a)if(e==a[t].offset){m.gmt=a[t].gmt,m.name=a[t].name;break}return m}()}}}();var ZSIQInput=function(){var e={tel:"phone",name:"text"},n=function(a,i){this.dataval=a,this.callback=a.callback,this.componentid=i};return n.prototype={init:function(){var a=ZSIQTranscript.getFormatedHTML($Widget.getLayout());a=(a=a.replace(/{BOT_WIDGET}/g,this.getInputHtml())).replace(/{CLASSNAME}/g,"botinput"),$Widget.attachHTML(a,!0),this.element=$("#bot_widget"+this.componentid),this.element.parents(".ziq_msg").attr("data-widget","input"),this.bindEvent()},getInputHtml:function(){var a=this.dataval,i="";return"tel"==a.type&&(i='
    '),a.error=a.error||LSResource.getRealValue("cw.common.error"),'
    '+i+'
    '+a.error+'
    '+LSResource.getRealValue("embed.submit")+'
    '},bindEvent:function(){var i=this,e=this.element,a=e.find(".inptwget_sumbt");a.on("click",function(){i.handleConfirm()}),e.find("input").on("keyup",function(a){e.find(".inptwget_error").css("visibility","hidden"),13==a.keyCode&&i.handleConfirm()}).on("focus",function(){a.removeClass("sel").addClass("sel")}).on("blur",function(){a.removeClass("sel")}),"tel"==this.dataval.type&&this.handleDropdown(),e.find("input").focus().select()},validate:function(){return this.element.find('[data-type="input"]').validateInput()},handleDropdown:function(){ZSIQDropdown.init({options:function(){var a={"+93":"Afghanistan","+355":"Albania","+213":"Algeria","+1-684":"American Samoa","+376":"Andorra","+244":"Angola","+1-264":"Anguilla","+672":"Antarctica","+1-268":"Antigua and Barbuda","+54":"Argentina","+374":"Armenia","+297":"Aruba","+61":"Cocos Islands","+43":"Austria","+994":"Azerbaijan","+1-242":"Bahamas","+973":"Bahrain","+880":"Bangladesh","+1-246":"Barbados","+375":"Belarus","+32":"Belgium","+501":"Belize","+229":"Benin","+1-441":"Bermuda","+975":"Bhutan","+591":"Bolivia","+387":"Bosnia and Herzegovina","+267":"Botswana","+55":"Brazil","+246":"British Indian Ocean Territory","+1-284":"British Virgin Islands","+673":"Brunei","+359":"Bulgaria","+226":"Burkina Faso","+257":"Burundi","+855":"Cambodia","+237":"Cameroon","+1":"United States","+238":"Cape Verde","+1-345":"Cayman Islands","+236":"Central African Republic","+235":"Chad","+56":"Chile","+86":"China","+57":"Colombia","+269":"Comoros","+682":"Cook Islands","+506":"Costa Rica","+385":"Croatia","+53":"Cuba","+599":"Netherlands Antilles","+357":"Cyprus","+420":"Czech Republic","+243":"Democratic Republic of the Congo","+45":"Denmark","+253":"Djibouti","+1-767":"Dominica","+1-809, 1-829, 1-849":"Dominican Republic","+670":"East Timor","+593":"Ecuador","+20":"Egypt","+503":"El Salvador","+240":"Equatorial Guinea","+291":"Eritrea","+372":"Estonia","+251":"Ethiopia","+500":"Falkland Islands","+298":"Faroe Islands","+679":"Fiji","+358":"Finland","+33":"France","+689":"French Polynesia","+241":"Gabon","+220":"Gambia","+995":"Georgia","+49":"Germany","+233":"Ghana","+350":"Gibraltar","+30":"Greece","+299":"Greenland","+1-473":"Grenada","+1-671":"Guam","+502":"Guatemala","+44-1481":"Guernsey","+224":"Guinea","+245":"Guinea-Bissau","+592":"Guyana","+509":"Haiti","+504":"Honduras","+852":"Hong Kong","+36":"Hungary","+354":"Iceland","+91":"India","+62":"Indonesia","+98":"Iran","+964":"Iraq","+353":"Ireland","+44-1624":"Isle of Man","+972":"Israel","+39":"Italy","+225":"Ivory Coast","+1-876":"Jamaica","+81":"Japan","+44-1534":"Jersey","+962":"Jordan","+7":"Russia","+254":"Kenya","+686":"Kiribati","+383":"Kosovo","+965":"Kuwait","+996":"Kyrgyzstan","+856":"Laos","+371":"Latvia","+961":"Lebanon","+266":"Lesotho","+231":"Liberia","+218":"Libya","+423":"Liechtenstein","+370":"Lithuania","+352":"Luxembourg","+853":"Macau","+389":"Macedonia","+261":"Madagascar","+265":"Malawi","+60":"Malaysia","+960":"Maldives","+223":"Mali","+356":"Malta","+692":"Marshall Islands","+222":"Mauritania","+230":"Mauritius","+262":"Reunion","+52":"Mexico","+691":"Micronesia","+373":"Moldova","+377":"Monaco","+976":"Mongolia","+382":"Montenegro","+1-664":"Montserrat","+212":"Western Sahara","+258":"Mozambique","+95":"Myanmar","+264":"Namibia","+674":"Nauru","+977":"Nepal","+31":"Netherlands","+687":"New Caledonia","+64":"Pitcairn","+505":"Nicaragua","+227":"Niger","+234":"Nigeria","+683":"Niue","+850":"North Korea","+1-670":"Northern Mariana Islands","+47":"Svalbard and Jan Mayen","+968":"Oman","+92":"Pakistan","+680":"Palau","+970":"Palestine","+507":"Panama","+675":"Papua New Guinea","+595":"Paraguay","+51":"Peru","+63":"Philippines","+48":"Poland","+351":"Portugal","+1-787, 1-939":"Puerto Rico","+974":"Qatar","+242":"Republic of the Congo","+40":"Romania","+250":"Rwanda","+590":"Saint Martin","+290":"Saint Helena","+1-869":"Saint Kitts and Nevis","+1-758":"Saint Lucia","+508":"Saint Pierre and Miquelon","+1-784":"Saint Vincent and the Grenadines","+685":"Samoa","+378":"San Marino","+239":"Sao Tome and Principe","+966":"Saudi Arabia","+221":"Senegal","+381":"Serbia","+248":"Seychelles","+232":"Sierra Leone","+65":"Singapore","+1-721":"Sint Maarten","+421":"Slovakia","+386":"Slovenia","+677":"Solomon Islands","+252":"Somalia","+27":"South Africa","+82":"South Korea","+211":"South Sudan","+34":"Spain","+94":"Sri Lanka","+249":"Sudan","+597":"Suriname","+268":"Swaziland","+46":"Sweden","+41":"Switzerland","+963":"Syria","+886":"Taiwan","+992":"Tajikistan","+255":"Tanzania","+66":"Thailand","+228":"Togo","+690":"Tokelau","+676":"Tonga","+1-868":"Trinidad and Tobago","+216":"Tunisia","+90":"Turkey","+993":"Turkmenistan","+1-649":"Turks and Caicos Islands","+688":"Tuvalu","+1-340":"U.S. Virgin Islands","+256":"Uganda","+380":"Ukraine","+971":"United Arab Emirates","+44":"United Kingdom","+598":"Uruguay","+998":"Uzbekistan","+678":"Vanuatu","+379":"Vatican","+58":"Venezuela","+84":"Vietnam","+681":"Wallis and Futuna","+967":"Yemen","+260":"Zambia","+263":"Zimbabwe"},i=[];for(var e in a)i.push({key:e,val:a[e],subval:e});return i}(),selected:"+1",element:this.element.find(".teldrop"),currentlist_header:"cw.current.country",list_header:"cw.other.country",placeholder:"cw.search.country",callback:function(){this.element.find('[data-type="input"]').focus()}})},handleConfirm:function(){var a=this.element;if(!this.validate())return a.find(".inptwget_error").css("visibility","visible"),void a.find("input").focus();var i=a.find("#dropdownheader").text()+" "+a.find('[data-type="input"]').val();a.parents(".ziq_msg").removeAttr("data-widget").removeAttr("data-wtype").removeClass("siq_widget"),this.callback({type:this.dataval.type,msg:i,id:this.componentid,value:i,config:this.dataval})}},{init:function(a,i){new n(a,i).init()}}}();var ConversationFormInput=function(){var a=function(t,e){this.dataval=t};return a.prototype={init:function(){this.populateUI()},populateUI:function(){$Widget.attachHTML(""),ZSIQTranscript.scroll(),this.handleTextarea()},handleTextarea:function(){var t=this.dataval,e=t.fieldtype?t.fieldtype.replace("_",""):"";$("#msgarea").attr("data-validate","required "+t.validate).attr("purpose",e).attr("data-type",e).attr("placeholder",t.placeholder).attr("dockeyup","validateConversation").attr("fieldtype",t.fieldname).attr("iscustomfield",t.iscustomfield).removeAttr("readonly").removeAttr("disabled").focus(),$("#action_icons").show()}},{init:function(t,e){new a(t,e).init()},resetMessageArea:function(){var t=$Support.EmbedObj.status,e=ZSIQConversationForm.getSelectedDeptstatus(),a=(t=null!=e?t&&e:t)?"sendmessage":"leavemessage";$("#msgarea").attr("data-validate","required").attr("purpose","").attr("placeholder",LSResource.getRealValue("ne.message.hitenter")).attr("dockeyup",a).attr("custom","question").removeAttr("data-type").removeAttr("fieldtype").val(""),$("#skipquestion").remove()}}}();var ZSIQContactCard=function(){var n={tel:"phone",name:"text"},i=function(a,e){this.dataval=a,this.callback=a.callback,this.componentid=e};return i.prototype={init:function(){var a=ZSIQTranscript.getFormatedHTML($Widget.getLayout());a=(a=a.replace(/{BOT_WIDGET}/g,this.getInputHtml())).replace(/{CLASSNAME}/g,"botinput"),$Widget.attachHTML(a,!0),this.element=$("#bot_widget"+this.componentid),this.bindEvent()},getInputHtml:function(){var a="";for(var e in this.dataval.fields){var i=this.dataval.fields[e];i.error=i.error&&i.error[0]?i.error[0]:LSResource.getRealValue("cw.common.error"),a+='
    '+("tel"==i.type?'
    ':"")+''+(i.label?''+i.label+"":"")+''+i.error+"
    "}return'
    '+a+'
    '+LSResource.getRealValue("embed.submit")+"
    "},bindEvent:function(){var a=this,e=this.element;e.find(".inptwget_sumbt").on("click",function(){a.handleConfirm()}),e.on("keydown","input",function(a){9!=a.keyCode&&$(this).parent().addClass("hide_plhld")}),e.on("keyup","input",function(){var a=$(this),e=a.parent();e.removeClass("hide_plhld").removeClass("error_fld"),a.val()&&e.addClass("hide_plhld")}),this.handleDropdown()},handleDropdown:function(){var a=this.element.find(".teldrop");0==a.length||a.find(".drop_hdr").length||ZSIQDropdown.init({options:function(){var a={"+93":"Afghanistan","+355":"Albania","+213":"Algeria","+1-684":"American Samoa","+376":"Andorra","+244":"Angola","+1-264":"Anguilla","+672":"Antarctica","+1-268":"Antigua and Barbuda","+54":"Argentina","+374":"Armenia","+297":"Aruba","+61":"Cocos Islands","+43":"Austria","+994":"Azerbaijan","+1-242":"Bahamas","+973":"Bahrain","+880":"Bangladesh","+1-246":"Barbados","+375":"Belarus","+32":"Belgium","+501":"Belize","+229":"Benin","+1-441":"Bermuda","+975":"Bhutan","+591":"Bolivia","+387":"Bosnia and Herzegovina","+267":"Botswana","+55":"Brazil","+246":"British Indian Ocean Territory","+1-284":"British Virgin Islands","+673":"Brunei","+359":"Bulgaria","+226":"Burkina Faso","+257":"Burundi","+855":"Cambodia","+237":"Cameroon","+1":"United States","+238":"Cape Verde","+1-345":"Cayman Islands","+236":"Central African Republic","+235":"Chad","+56":"Chile","+86":"China","+57":"Colombia","+269":"Comoros","+682":"Cook Islands","+506":"Costa Rica","+385":"Croatia","+53":"Cuba","+599":"Netherlands Antilles","+357":"Cyprus","+420":"Czech Republic","+243":"Democratic Republic of the Congo","+45":"Denmark","+253":"Djibouti","+1-767":"Dominica","+1-809, 1-829, 1-849":"Dominican Republic","+670":"East Timor","+593":"Ecuador","+20":"Egypt","+503":"El Salvador","+240":"Equatorial Guinea","+291":"Eritrea","+372":"Estonia","+251":"Ethiopia","+500":"Falkland Islands","+298":"Faroe Islands","+679":"Fiji","+358":"Finland","+33":"France","+689":"French Polynesia","+241":"Gabon","+220":"Gambia","+995":"Georgia","+49":"Germany","+233":"Ghana","+350":"Gibraltar","+30":"Greece","+299":"Greenland","+1-473":"Grenada","+1-671":"Guam","+502":"Guatemala","+44-1481":"Guernsey","+224":"Guinea","+245":"Guinea-Bissau","+592":"Guyana","+509":"Haiti","+504":"Honduras","+852":"Hong Kong","+36":"Hungary","+354":"Iceland","+91":"India","+62":"Indonesia","+98":"Iran","+964":"Iraq","+353":"Ireland","+44-1624":"Isle of Man","+972":"Israel","+39":"Italy","+225":"Ivory Coast","+1-876":"Jamaica","+81":"Japan","+44-1534":"Jersey","+962":"Jordan","+7":"Russia","+254":"Kenya","+686":"Kiribati","+383":"Kosovo","+965":"Kuwait","+996":"Kyrgyzstan","+856":"Laos","+371":"Latvia","+961":"Lebanon","+266":"Lesotho","+231":"Liberia","+218":"Libya","+423":"Liechtenstein","+370":"Lithuania","+352":"Luxembourg","+853":"Macau","+389":"Macedonia","+261":"Madagascar","+265":"Malawi","+60":"Malaysia","+960":"Maldives","+223":"Mali","+356":"Malta","+692":"Marshall Islands","+222":"Mauritania","+230":"Mauritius","+262":"Reunion","+52":"Mexico","+691":"Micronesia","+373":"Moldova","+377":"Monaco","+976":"Mongolia","+382":"Montenegro","+1-664":"Montserrat","+212":"Western Sahara","+258":"Mozambique","+95":"Myanmar","+264":"Namibia","+674":"Nauru","+977":"Nepal","+31":"Netherlands","+687":"New Caledonia","+64":"Pitcairn","+505":"Nicaragua","+227":"Niger","+234":"Nigeria","+683":"Niue","+850":"North Korea","+1-670":"Northern Mariana Islands","+47":"Svalbard and Jan Mayen","+968":"Oman","+92":"Pakistan","+680":"Palau","+970":"Palestine","+507":"Panama","+675":"Papua New Guinea","+595":"Paraguay","+51":"Peru","+63":"Philippines","+48":"Poland","+351":"Portugal","+1-787, 1-939":"Puerto Rico","+974":"Qatar","+242":"Republic of the Congo","+40":"Romania","+250":"Rwanda","+590":"Saint Martin","+290":"Saint Helena","+1-869":"Saint Kitts and Nevis","+1-758":"Saint Lucia","+508":"Saint Pierre and Miquelon","+1-784":"Saint Vincent and the Grenadines","+685":"Samoa","+378":"San Marino","+239":"Sao Tome and Principe","+966":"Saudi Arabia","+221":"Senegal","+381":"Serbia","+248":"Seychelles","+232":"Sierra Leone","+65":"Singapore","+1-721":"Sint Maarten","+421":"Slovakia","+386":"Slovenia","+677":"Solomon Islands","+252":"Somalia","+27":"South Africa","+82":"South Korea","+211":"South Sudan","+34":"Spain","+94":"Sri Lanka","+249":"Sudan","+597":"Suriname","+268":"Swaziland","+46":"Sweden","+41":"Switzerland","+963":"Syria","+886":"Taiwan","+992":"Tajikistan","+255":"Tanzania","+66":"Thailand","+228":"Togo","+690":"Tokelau","+676":"Tonga","+1-868":"Trinidad and Tobago","+216":"Tunisia","+90":"Turkey","+993":"Turkmenistan","+1-649":"Turks and Caicos Islands","+688":"Tuvalu","+1-340":"U.S. Virgin Islands","+256":"Uganda","+380":"Ukraine","+971":"United Arab Emirates","+44":"United Kingdom","+598":"Uruguay","+998":"Uzbekistan","+678":"Vanuatu","+379":"Vatican","+58":"Venezuela","+84":"Vietnam","+681":"Wallis and Futuna","+967":"Yemen","+260":"Zambia","+263":"Zimbabwe"},e=[];for(var i in a)e.push({key:i,val:a[i],subval:i});return e}(),selected:"+1",element:a,currentlist_header:"cw.current.country",list_header:"cw.other.country",placeholder:"cw.search.country",callback:function(){this.element.find('[data-type="input"]').focus()}})},handleConfirm:function(){var a=this.element,t={},r="",o=!0;a.find("input[data-validate]").each(function(){var a=$(this),e=a.parent();if(!a.validateInput())return e.addClass("error_fld"),a.focus(),o=!1;var i=(-1!=a.attr("data-validate").indexOf("phone")?e.find("#dropdownheader").text()+" ":"")+a.val(),n=a.attr("data-fieldtype");t[n]=i,r+=(r?", ":"")+n+" : "+i}),o&&(a.parents(".ziq_msg").removeAttr("data-widget").removeAttr("data-wtype").removeClass("siq_widget"),this.callback({type:this.dataval.type,msg:r,id:this.componentid,value:t,config:this.dataval}))}},{init:function(a,e){new i(a,e).init()}}}();var ZSIQForm=function(){var i=function(e,t){this.fields=e.msglist,this.callback=e.callback,this.componentid=t,this.userconfig=e||{},this.dname=e.dname||ZSIQConversationForm.getOperatorName(),this.title=e.title||ZSIQConversationForm.getFormQuestion()},c=function(e){return e?'*':""},l=function(e){var t=e.input_card||{},i=e.skippable?"optional":"required",s=e.type||e.format||"text",a=t.maxlength||"url"==e.format||"textarea"==e.type?100:30,o=i+" "+s,n=!!e.iscustomfield,r=t.visibility||"both",d=n?"custom":!n&&t.type?t.type.replace("_",""):e.field_name,c=((e.input_card?e.input_card.placeholder:e.field_name)||ZSIQConversationForm.getDefaultPlaceholder(d),getEscapedText(e.field_name)||d);return'index="'+e.index+'" custom="'+c+'" purpose="'+d+'" customid="'+c+'" visibility="'+r+'" id="'+c+'" fieldkey="'+ZSIQConversationForm.getDefaultPostMessage(d)+'"name="'+c+'" data-validate="'+o+'" autocomplete="off" maxlength="'+a+'" info="'+s+'"'},p=function(e){getEscapedText(e.name||e.field_name);return'
    "},u=function(e){var t=e.input_card||{},i=(e.options,getEscapedText(e.field_name)),s=c(!e.skippable),a=e.msg,o=a?''+getEscapedText(a)+s+"":"",n=$.parseJSON(e.required)?'iserrorfield="true"':"",r=e.iscustomfield?"custom":e.key;return o+='
    "};return i.prototype={init:function(){this.populateUI()},populateUI:function(){this.populateFormTitle();var e=!!this.userconfig.isuseredit||"",t=this.userconfig.triggerclbk?'callback = "'+this.userconfig.triggerclbk+'"':"",i='
    "+LSResource.getRealValue("common.done")+"
    "+this.checkAndGetSkipHTML()+"
    ";var n=$Widget.getLayout();n=(n=n.replace(/{BOT_WIDGET}/g,i)).replace(/{CLASSNAME}/g,"botform"),$Widget.attachHTML(n),this.handleDropdown(),this.reStoreValues(),this.bindEvents()},populateFormTitle:function(){var e=!(!this.userconfig.isuseredit&&!this.userconfig.triggerclbk),t=this.componentid?MyDate.getHoursandMin(this.componentid,!0,"bclient"):"";this.title&&!e&&$BotImpl.formatAndDisplay({sender:"-1",dname:this.dname,msg:getEncodedText(this.title),time:t})},checkAndGetSkipHTML:function(){for(var e=this.userconfig.msglist,t=!1,i=!!this.userconfig.isuseredit,s=0;s'+LSResource.getRealValue("common.skip")+"":""},getHTML:function(s){var e,t,i,a,o,n,r,d=s.format?s.format:s.input_card?s.input_card.type:"text";return/^(number|text|email|phone|url|percentage|decimal|percent|website)$/.exec(d)?(e=s,t=$Support.EmbedObj.errorinfo||{},i=e&&e.input_card&&e.input_card.type?e.input_card.type:"",a=e.iscustomfield?i:"vis"+i.replace("visitor_",""),o=e.iscustomfield?"custom":i.replace("_","")||e.field_name,n=e.input_card?getEscapedText(e.input_card.placeholder||e.msg)||ZSIQConversationForm.getDefaultPlaceholder(o):"",r=t[a]?t[a]:/^number|email|url|percentage|percent|decimal|name|email|phone$/.exec(a)?LSResource.getRealValue("ne.errorinfo."+a):"",'
    '+n+c(!e.skippable)+'
    '):{checkbox:function(){return function(e){for(var t=e.input_card?e.input_card.options:e.options,i=getEscapedText(e.field_name),s="",a=0;a"}return'
    '+u(e)+'
    '+s+"
    "}(s)},radio:function(){return function(e){for(var t=e.input_card?e.input_card.options:e.options,i=getEscapedText(e.field_name)||"",s="",a=0;a"}return'
    '+u(e)+"
    "+s+"
    "}(s)},selectbox:function(){return p(s)},textarea:function(){return e=s,t=getEscapedText(e.field_name)||"",i=getEscapedText(e.msg)||t,'
    '+i+c(e.required)+"
    ";var e,t,i},label:function(){return(e=s).msg?'
    '+getEscapedText(e.msg)+"
    ":"";var e}}[d]()||""},handleDropdown:function(){var e=$("#siqform"),n=this;e.find(".sqico-drpdwn").each(function(){var e=$(this),t=e.attr("index"),i=n.fields[t],s=!i.meta||!i.meta.iscustomfield,a=i.meta?i.meta.suggestions||(i.meta.input_card?i.meta.input_card.options:""):i.options,o=s?LSResource.getRealValue("ne.chosedepartment"):i.msg||(i.meta?i.meta.field_name:"");e.dropdown({options:a,purpose:s?"department":"customdrpdwn",defaultval:o+c("true")})})},reStoreValues:function(){var e=$("#siqform"),t=$Support.EmbedObj,i=e.find('[purpose = "visitorname"]'),s=e.find('[purpose = "visitoremail"]'),a=e.find('[purpose = "visitorphone"]');t.visitorname&&!$Support.Util.isInValidVisitorName(t.visitorname)&&0'+(i.subtitles?'':"")+""};return a.prototype={render:function(){var i,t,n;$Widget.attachHTML((i=this.data,t=this.data.id,n=$Widget.getMessageOBJ().msg,'
    '+(i.favicon_link?'':"")+''+l(i)+"
    "+(i.title?'
    '+i.title+"
    ":"")+(i.description?'
    '+i.description+"
    ":"")+"
    "+(i.thumbnail_url?'
    '+("video"==i.type?'':"")+"
    ":"")+(i.thumbnail_url?"":s(i))+'
    '+i.url+"
    "+(n?'
    '+n+"
    ":"")))},setEvents:function(){var t=this.data,i=$("#linkinfo_"+this.data.id),n=i.find("#linfoplay");n.click(function(i){$(this).parent().replaceWith(s(t)),i.stopPropagation()}),i.click(function(){window.open(t.url)}),t.autoplay&&t.thumbnail_url&&n.trigger("click")}},{init:function(i,t){var n=new a(i,t);n.render(),n.setEvents()}}}();var ZSIQDropdown=function(){var t=function(e){this.data=e};return t.prototype={render:function(){this.populateList(),this.populateHeader(),this.header=this.data.element.find(".drop_hdr"),this.listdiv=this.data.element.find(".popup_list"),this.searchinput=this.data.element.find("#popupsearch"),this.setEvents()},populateHeader:function(e){this.data.element.append('')},populateList:function(){var e="";for(var t in this.data.options){var a=this.data.options[t],i=a.key;e+='",i==this.data.selected&&(this.default_select=a)}this.default_select=this.default_select||this.data.options[0];var s=this.default_select,d='";this.data.element.append(d)},setEvents:function(){var a=this;this.header.on("click",function(e){a.clearSearch(),$(this).parent().find(".popup_list").toggle();var t=a.default_select;a.listdiv.find("#selectedval").attr("data-key",t.key).html(t.val+""+(t.subval||"")+""),$Clickoutside.bindclick(function(){a.listdiv.hide()},"dropdownlist","dropdownheader",!0,e),$("#popupsearch").focus()}),this.listdiv.on("click",function(e){var t=$(e.target);$(e.target).hasClass("popup_li")&&(a.setSelectedObj(t.attr("data-key")),a.header.find(".txtelips").attr("data-key",a.default_select.key).text(a.default_select.key),a.listdiv.hide(),"function"==typeof a.data.callback&&a.data.callback())}),this.searchinput.on("keyup",function(){a.handleSearch()})},setSelectedObj:function(e){for(var t in this.data.options)if(this.data.options[t].key==e){this.default_select=this.data.options[t];break}},handleSearch:function(){var t=this.searchinput.val().toLowerCase().replace(/ /g,""),e=this.listdiv;if(e.find(".popup_src_emty").remove(),t){e.find(".curnt_val").hide(),e.find(".select_val div").hide();var a=!1;e.find(".select_val").find(".popup_li").each(function(){var e=$(this);-1!=e.text().toLowerCase().replace(/ /g,"").indexOf(t)&&(e.show(),a=!0)}),a||this.handleEmpty()}else this.clearSearch()},clearSearch:function(){var e=this.listdiv;e.find(".curnt_val").show(),e.find(".select_val").show(),e.find(".select_val div").show(),e.find(".popup_src_emty").remove(),this.searchinput.val("")},handleEmpty:function(){var e=this.listdiv;e.find(".curnt_val").hide(),e.find(".select_val").hide(),e.find(".popup_src_ul").append('")}},{init:function(e){new t(e).render()}}}();PeerConnection=function(){var i,a=null,o=null,c=null,r=0,s={getScreenShareConstrains:function(){return window.webkitRTCPeerConnection&&navigator.mediaDevices&&void 0===navigator.mediaDevices.getDisplayMedia?{audio:!1,video:{mandatory:{chromeMediaSource:"desktop"}}}:window.webkitRTCPeerConnection?{audio:!1,video:!0}:{audio:!1,video:{mediaSource:"screen"}}},setcredential:function(e,n){return s.initConnection(e,n).connectionId},initConnection:function(e,n){return e=t(e,n)},getUserMedia:function(){return navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||null},checkScreenExtensionNeeded:function(e){if("SCREEN_SHARE"===e&&window.webkitRTCPeerConnection&&void 0===navigator.mediaDevices.getDisplayMedia)return window.addEventListener("message",function(e){s._screenShareExtnSuccsess(e)}),void MediaConnection.sendPostMessageToExtn("zoho_cliq_extn_check")},_screenShareExtnSuccsess:function(e){if(e.data.message&&"ZOHOCLIQ-EXTN-CHECK"===e.data.message.type)!0,s.getExtensionScreenId();else if(e.data.message&&"ZOHOCLIQ-SCEEN-SOURCE-ID"===e.data.message.type){var n=e.data.message.data;d.constraints.SCREEN_SHARE.video.mandatory.chromeMediaSourceId=n,mediaApi=s.getUserMedia(),navigator.mediaDevices.getUserMedia(d.constraints.SCREEN_SHARE).then(function(e){s.addLocalStream(e,"SCREEN_SHARE",i)}).catch(function(e){s.mediafailure(e)})}},getExtensionScreenId:function(){MediaConnection.sendPostMessageToExtn("zoho_cliq_get_screen_sourceId")},checkMediaPermission:function(e,n){var t=e;if(i=n,mediaApi=s.getUserMedia(),window.webkitRTCPeerConnection?window.RTCPeerConnection=webkitRTCPeerConnection:window.mozRTCPeerConnection&&(window.RTCPeerConnection=mozRTCPeerConnection),window.$Temp&&"AUDIO"==e&&(r=setTimeout(function(){$(window.parent.document).find("body").append($Temp.getMediaSetting(avimpl.getCurrentBrowerName())),clearTimeout(r)},1500)),e!=d.screenshare.toUpperCase()||void 0!==navigator.mediaDevices.getDisplayMedia)return mediaApi||e==d.screenshare.toUpperCase()?e==d.screenshare.toUpperCase()&&void 0!==navigator.mediaDevices.getDisplayMedia?(null!=typeof navigator.mediaDevices.getDisplayMedia?navigator.mediaDevices.getDisplayMedia(d.constraints[e]).then(function(e){s.addLocalStream(e,t,n)}).catch(function(e){s.mediafailure(e,!0,t)}):navigator.mediaDevices.getUserMedia(d.constraints[e]).then(function(e){s.addLocalStream(e,t,n)}).catch(function(e){s.mediafailure(e,!0,t)}),!0):void mediaApi.call(navigator,d.constraints[e],function(e){s.addLocalStream(e,t,n)},function(e){s.mediafailure(e,!0,t)}):(navigator.mediaDevices.getUserMedia(d.constraints[e]).then(function(e){s.addLocalStream(e,t,n)}).catch(function(e){mediafailure(e,!0,t)}),!1);s.checkScreenExtensionNeeded(e)},addLocalStream:function(e,n,t){clearTimeout(r),"AUDIO"==n?a=e:"SCREEN_SHARE"==n?(o=e).getVideoTracks()[0].onended=function(){MediaConnection.endConnection("screen_share")}:"VIDEO"==n&&(c=e),window.$Temp&&avimpl.closeViewMediaPermission(),"SCREEN_SHARE"==n&&ZSIQMedia.isAlreadyShared()?s.closeLocalStream("screen_share"):MediaConnection.initiateConnection(n,t)},mediafailure:function(e,n,t){switch(window.$Temp&&"AUDIO"==t&&(clearTimeout(r),avimpl.closeViewMediaPermission()),e.name){case"NotFoundError":case"DevicesNotFoundError":message=LSResource.getRealValue("av.info.microphone.notavailable");break;case"SourceUnavailableError":case"PermissionDeniedError":case"SecurityError":case"NotAllowedError":default:message=LSResource.getRealValue("av.info.microphone.blocked")}"NotAllowedError"==e.name&&window.$Temp&&"AUDIO"==t&&$(window.parent.document).find("body").append($Temp.getAskMediaPermission(avimpl.getCurrentBrowerName())),0==n&&"AUDIO"==t&&(LSDebugger.postDebugInfo("Audio Call reject by - peerconnection chatid "+i,null,null,!0),avimpl.rejectCallInvite(i,null)),window.$Temp&&n&&"AUDIO"==t&&avimpl.clear(),"AUDIO"==t&&avimpl.checkMediaPermission(message,i),"SCREEN_SHARE"==t&&ZSIQMedia.isInvite()&&ZSIQMedia.screenShareReject(),LSDebugger.postDebugInfo("Audio Call - Inside Filure media permission | PeerConnection ",null,null,!0)},closeLocalStream:function(e){"audio"==e?(a&&s.closeTracksInStream(a),o&&s.closeTracksInStream(o)):"screen_share"==e&&o&&s.closeTracksInStream(o)},closeTracksInStream:function(e){var n=e.getTracks();for(var t in n)n[t].stop()}},d={incoming:1,outgoing:2,connected:3,reconnect:4,onhold:5,accepted:6,agent:"agent",visitor:"visitor",screenshare:"screen_share",sdpConstraints:{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!1}},constraints:{AUDIO:{audio:!0,video:!1},VIDEO:{audio:!0,video:!0},SCREEN_SHARE:s.getScreenShareConstrains(),SCREEN_VIEW:{audio:!0,video:!1}}},t=function(e,n){this.chatid=e.chatid;var t=JSON.parse(e.credentials),i=new l(e.chatid,e.id,e.type,n,t.user_name,t.servers,t.token);return"AUDIO"==i._type&&(i._localStream=a),MediaConnection.addNewPeerConnection(i.referenceId,i),i},l=function(e,n,t,i,a,o,c){this.referenceId=e,this._connectionId=Math.floor(1e9*Math.random()),this._mediaId=n,this._type=t.toUpperCase(),this._localSdp=null,this._remoteSdp=null,this._isUpStream=i,this._localStream=null,this._isReconnecting=!1,this._callstatus=null,this._localIceCandidates=null,this._remoteIceCandidates=null,this._credential=c,this._userName=a,this._turnServer=o,this._mediaApi=null,this._browser=null,this._remoteCandidatePushed=!1,this._connection=null,this._reconnectInterval=null};return l.prototype={_getConfiguration:function(){var e=this._turnServer.split(","),n=this._userName,t=this._credential,i=[];return e.forEach(function(e){i.push({urls:e,username:n,credential:t})}),{iceServers:i}},_requestStream:function(e){if(this._isReconnecting)this._setRemoteDescription(e);else{this._mediaApi=s.getUserMedia();var n=this;if(n.mediaObj=e,window.webkitRTCPeerConnection?(this._browser="Chrome",window.RTCPeerConnection=webkitRTCPeerConnection):window.mozRTCPeerConnection&&(avaction.callObj.hostbrowser="Firefox",window.RTCPeerConnection=mozRTCPeerConnection),window.$Temp&&"AUDIO"==this._type&&(r=setTimeout(function(){$(window.parent.document).find("body").append($Temp.getMediaSetting(avimpl.getCurrentBrowerName())),clearTimeout(r)},1500)),!this._mediaApi&&this._type!=d.screenshare.toUpperCase())return navigator.mediaDevices.getUserMedia(d.constraints[this._type]).then(function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n),n._isUpStream||(n.initRTCConn(!1),n._setRemoteDescription(n.mediaObj))}).catch(function(e){s.mediafailure(e,n._isUpStream,n._type)}),!1;this._type!=d.screenshare.toUpperCase()?this._mediaApi.call(navigator,d.constraints[this._type],function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n),n._isUpStream||(n.initRTCConn(!1),n._setRemoteDescription(n.mediaObj))},function(e){s.mediafailure(e,n._isUpStream,n._type)}):n._isUpStream?null!=typeof navigator.mediaDevices.getDisplayMedia?navigator.mediaDevices.getDisplayMedia(d.constraints[this._type]).then(function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n)}).catch(function(e){s.mediafailure(e,n._isUpStream,n._type)}):navigator.mediaDevices.getUserMedia(d.constraints[this._type]).then(function(e){n._localStream=e,MediaConnection.replacePeerConnection(n.referenceId,n)}).catch(function(e){s.mediafailure(e,n._isUpStream,n._type)}):(MediaConnection.addNewPeerConnection(n.referenceId,n),n.initRTCConn(!1),n._setRemoteDescription(n.mediaObj))}},initRTCConn:function(e){window.$Temp&&"AUDIO"==this._type&&(clearTimeout(r),avimpl.closeViewMediaPermission()),this._isUpStream?e||("AUDIO"==this._type?this._localStream=a:"SCREEN_SHARE"==this._type?this._localStream=o:"VIDEO"==this._type&&(this._localStream=c),this._connection=new RTCPeerConnection(this._getConfiguration()),MediaConnection.replacePeerConnection(this.referenceId,this),this._createOffer(!1)):this._connection=new RTCPeerConnection(this._getConfiguration()),"AUDIO"==this._type&&avimpl.addAudioElemts(this._localStream,this._type),this._getRemoteStream(this)},_createOffer:function(e){e&&(d.sdpConstraints.iceRestart=!0);var n=this._connection,t=this;e||(t._streamData=t._localStream.getTracks().forEach(function(e){"function"==typeof t._connection.addTrack?t._connection.addTrack(e,t._localStream):t._connection.addStream(t._localStream)})),n.createOffer(d.sdpConstraints).then(function(e){t._localSdp=e,t._connection.setLocalDescription(e),MediaConnection.replacePeerConnection(t.referenceId,t),MediaConnection.sendOffer(e,t._type),t._createIceCandidate(),t._connection.onicecandidate=function(e){t._localIceCandidates.push(e),MediaConnection.sendCandidate(e,t._type)},t._chekConnectionStatus(t)})},_createIceCandidate:function(){var n=this;n._localIceCandidates=[],n._connection.onicecandidate=function(e){n._localIceCandidates.push(e),MediaConnection.sendCandidate(e,n._type)}},_setRemoteDescription:function(e){var n=e.session;this._remoteSdp=n;var t=this;t._isUpStream||"AUDIO"!=t._type||(t._streamData?t._localStream.getTracks().forEach(function(e){t._streamData.replaceTrack(e)}):t._localStream.getTracks().forEach(function(e){"function"==typeof t._connection.addTrack?t._streamData=t._connection.addTrack(e,t._localStream):t._connection.addStream(t._localStream)})),t._connection.setRemoteDescription(new RTCSessionDescription(JSON.parse(n))),t._reconnectInterval&&(clearTimeout(t._reconnectInterval),t._reconnectInterval=null),t._isUpStream||t._connection.createAnswer(d.sdpConstraints).then(function(e){t._localSdp=e,t._connection.setLocalDescription(new RTCSessionDescription(e)),MediaConnection.replacePeerConnection(t.referenceId,t),MediaConnection.sendAnswer(e,t._type),t._createIceCandidate(),t._chekConnectionStatus(t),t._remoteCandidatePushed||t._pushIceCandidate()}),t._remoteCandidatePushed||t._pushIceCandidate()},_pushIceCandidate:function(){if(this._remoteIceCandidates&&0
    '+r("screenshare.request.desc",s()?$Support.EmbedObj.attendername:avimpl.getVisitorName())+'
    '+r("common.share")+''+r("common.decline")+"
    ",i=d();i.append(n),i.find("#zsiqconfirmss").on("click",function(){I(),M()}),i.find("#zsiqdecliness").on("click",y),i.find(".zsiq_popup").find(".siqico-close").on("click",y)}},M=function(){d().find(".zsiq_popup").remove()},y=function(){MediaConnection.terminateConnection(c,"reject"),v("screen_share"),a=!1},z=function(){MediaConnection.endConnection(c),d().find(".zsiq_video_main").remove(),avimpl.showCallDiv()},I=function(e){if(o)$UI.updateStatus(r("screenshare.requested.errormsg"),5e3,!0);else{var n=s()?$EmbedManger.getChatID():t.audio.chatid;PeerConnection.checkMediaPermission(c.toUpperCase(),n),e&&e.parent().hide()}},w=function(n,i){setTimeout(function(){var e=document.createElement("IMG");e.src="https://img.zohostatic.in/salesiq/Feb_15_2020_https/images/spacer.gif?nocache="+(new Date).getTime(),e.onload=function(){MediaConnection.initReconnect(n,i)},e.onerror=function(){w(n,i)}},2e3),e||(e=setTimeout(function(){avimpl.stopOngoingCall()},3e4)),avimpl.showReconnect()},b=function(){return!!t[c]};return window.onbeforeunload=function(){if(b())return""},{init:function(e,n){PeerConnection.checkMediaPermission(e.toUpperCase(),n)},handleMediaUI:function(e){var n={credential:function(e){},call_credential:function(e){l(e.type,e.chatid,e.id)},answer:function(e){},call_answer:function(e){},reject:u,call_reject:u,offer:p,call_offer:p,invite:g,call_initiate:S,accept:m,call_accept:m,end:h,call_end:h,cancel:f,call_cancel:f,miss:_,call_miss:_,call_invite:g},i=e.msg.cbtype||e.msg.operation;n[i]&&n[i](e.msg.media)},handleMediaErrorCallBack:function(e){},endCall:function(){t.screen_share&&z(),MediaConnection.endConnection(i)},endScreenShare:z,acceptScreenShare:function(){MediaConnection.acceptCallInvite(c),ZSIQVideo.init()},getCurrentMedia:function(e){return t[e]},requestScreenShare:function(e){e&&e.parent().hide(),o?$UI.updateStatus(r("screenshare.requested.errormsg"),5e3,!0):(MediaConnection.callReqInvite(c),o=!0)},shareMyScreen:I,setCurrentMedia:l,isEmbed:s,getBody:d,checkNetwork:w,clearNetworkTimer:function(){clearTimeout(e),e=0},isScreenShareAllowed:function(){var e=window.navigator.userAgent;if(-1!=e.indexOf("MSIE ")||-1!=e.indexOf("Safari")&&-1==e.indexOf("Chrome"))return!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10|IEMobile|Opera Mini/i.test(e))return!1;try{if(!s()&&/Apple Safari|Microsoft Edge|Microsoft Internet Explorer/i.test(avimpl.details[Visitors.getCUIDFromCHID(ZSIQMedia.getCurrentMedia("audio").chatid)].BROWSER))return!1}catch(e){}return CommonUtil.isScreenSharingAllowed()},handleEndConnection:function(e){v(e),e==c&&avimpl.changeScreenShareIcon()},showVideoIcons:function(){clearTimeout(n);var e=d().find(".zsiq_video_main");e.length&&(e.removeClass("zsiq_showcntl").addClass("zsiq_showcntl"),n=setTimeout(function(){e.removeClass("zsiq_showcntl")},1500))},toggleMute:function(){var e=t[i];MediaConnection.toggleMute(e.chatid,e.connectionid)},clearUI:M,isScreenShareRequested:function(){return o},screenShareReject:y,isAlreadyShared:function(){return t.screen_share&&!a},isInvite:function(){return a},isOnbeforeUnload:b}}();var ZSIQVideo=function(){var a=function(e){this.data=e,this._icontimer=0},t=function(){return ZSIQMedia.isEmbed()},n=function(){return ZSIQMedia.getBody()},s=function(){return n().find(".zsiq_video_main")};return a.prototype={render:function(){var e,i,a;n().append((e=this.data,i=t()?"siqico":"sqico",a=!1===avimpl.mutestate?"unmute":"mute",'
    ')),this.createVideo()},createVideo:function(){var e=document.createElement("video");e.id="zsiqvideoviewer",e.className="zsiq_video",e.autoplay=!0,e.srcObject=this.data.stream,s().append(e)},stopCallBack:function(){avimpl.stopOngoingCall(),s().remove()},setEvents:function(){var e=this.data,i=n().find('[data-videoid="'+e.id+'"]');i.find('[data-type="size"]').on("click",function(){var e=$(this).parent();e.hasClass("zsiq_maxvideo")?e.removeClass("zsiq_maxvideo"):e.addClass("zsiq_maxvideo")}),i.find('[data-type="mic"]').on("click",function(){avimpl.handleScreenshareMute($(this))}),i.find('[data-type="end"]').on("click",this.stopCallBack);var a=t()?parent.document:a;$(a).on("mousemove",ZSIQMedia.showVideoIcons),t()?i[0].zsiqdrag(i[0]):i.draggable({containment:"window",scroll:!1})},remove:function(){s().remove()}},{init:function(e){if(!s().length){ZSIQMedia.clearUI();var i=new a(e);i.render(),i.setEvents()}},stopCallBack:function(){ZSIQMedia.endScreenShare(),s().remove()}}}();